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
Removes a die, given the position in the arraylist
public Die removeDie(int position) { return this.bag.remove(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAt(int pos)\n {\n for (int i = pos; i < length - 1; i++)\n {\n list[i] = list[i + 1];\n }\n length--;\n }", "public void removeElementAt(int index);", "void remove( int index );", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "public void remove(int index);", "public abstract void remove(int pos) throws IndexOutOfBoundsException;", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public void remove(int pos) throws IndexOutOfBoundsException {\n list.remove(pos);\n }", "void remove(int idx);", "public Type remove(int index);", "boolean remove(int pos);", "public void excluirItem(Cerveja cerveja){\r\n\t\tint indice = IntStream.range(0, itens.size())\r\n\t\t\t\t.filter(i -> itens.get(i).getCerveja().equals(cerveja)) \r\n\t\t .findAny().getAsInt(); // getAsInt forca o retornar o valor do indice\r\n\t\t\r\n\t\t// remove o item da lista, pelo indice do item passado como parametro\r\n\t\titens.remove(indice);\r\n\t}", "@Override\n\t\tpublic void deleteItem(int index) {\n\t\t\tmGuanzhuList.remove(index);\n\t\t}", "public Object remove(int index){\n\t\tif(index < listSize){\n\t\t\tObject o = myArrayList[index];\n\t\t\tmyArrayList[index] = null;\n\t\t\tint temp = index;\n\t\t\twhile(temp < listSize){\n\t\t\t\tmyArrayList[temp] = myArrayList[temp+1];\n\t\t\t\tmyArrayList[temp+1] = 0;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t\tlistSize --;\n\t\t\treturn o;\n\t\t}else{\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\t}\n\t}", "public void remove( int index ) {\n\tif (index > _lastPos)\n\t System.out.println(\"No meaningful value at index\");\n\telse {for (int i= index; i < _lastPos; i++){\n\t\t_data[i]= _data[i+1];\n\t }\n\t _size--;\n\t _lastPos--;\n\t}\n }", "abstract void remove(int index);", "@Override\r\n\tpublic Score remove(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\tScore a = scoreList[i];\r\n\t\tfor (int j = i; j < numItems - 1; j++) {\r\n\t\t\tscoreList[j] = scoreList[j + 1];\r\n\t\t}\r\n\t\tnumItems--;\r\n\t\treturn a;\r\n\t}", "public void removeActor(int index) { ActorSet.removeElementAt(index); }", "int remove(int idx);", "public void removeCat(int position)\r\n {\r\n int numberOfCats = catCollection.size();\r\n // check for valid index position\r\n if ((position >= 0) && (position < numberOfCats )) {\r\n catCollection.remove(position);\r\n }\r\n else {\r\n System.out.println(\"Not a valid index position!\");\r\n }\r\n }", "public void remove(int index) {\r\n\t\t//checks if the index is valid\r\n\t\tif(index>=0 && index<=size) {\r\n\t\t\tfor (int k=index;k<size;k++) {\t//shifting element\r\n\t\t\t\tlist[k]=list[k+1];\r\n\t\t\t}\r\n\t\t\tsize--;\t\t//decreases size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t} else {\t//index is not valid\r\n\t\t\tSystem.out.println(\"index \"+index+\" is out or range!\");\r\n\t\t}\r\n\t}", "public void remove(int index) {\n\n\t}", "void removeRoadside(int i);", "E remove(int i ) throws IndexOutOfBoundsException;", "E remove(int i) throws IndexOutOfBoundsException;", "@Test\n public void deleteByIndex(){\n List <Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n list.add(5);\n assertEquals(1,(int)list.get(0));\n\n list.remove(0);\n assertEquals(2,(int)list.get(0));\n }", "public E remove(int index);", "public void removeAt(int index){\n E[] array2 = (E[]) new Object[capacity*2];\n int j=0;\n for(int i=0;i<size;i++){\n if(i!=index) {\n array2[j] = array[i];\n j++;\n }\n }\n array=array2;\n size--;\n }", "private void removeAtIndex(int index) {\n // save the last item\n FoodItem toMoveBack = this._stock[this._noOfItems-1];\n // make it null\n this._stock[this._noOfItems-1] = null;\n // for each item until the index to remove from:\n for (int i = this._noOfItems-2; i > index-1; i--) {\n // save the last moved back temporarily\n FoodItem tempToMoveBack = toMoveBack;\n // assign to the next iteration item to move back\n toMoveBack = this._stock[i];\n // move back the item for current iteration\n this._stock[i] = tempToMoveBack;\n }\n // we removed an item - so let's decrease the item counter.\n this._noOfItems--;\n }", "public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}", "public void remove(int element) {\r\n\t\tint i = find(element);\r\n\t\tlist[i] = -1;\r\n\t\tinsertionSort(list);\r\n\t\tcurrentPosition = i;\r\n\t}", "public void eliminar(ArrayList<Correo>cor,int posicion){\r\n for(Correo corre:cor){\r\n if(cor.contains(posicion-1)){\r\n cor.remove(corre);\r\n }\r\n }\r\n }", "T remove(int index);", "T remove(int index);", "public void remove(int index) {\n\t\tpoints.remove(index);\n\t}", "public static void hapus() {\n int dump;\n System.out.print(\"Index Ke = \");\n dump = input.nextInt();\n try {\n todolist.remove(dump);\n kembali(\"Data Berhasil Hapus\");\n\n }catch (IndexOutOfBoundsException e){\n kembali(\"Index Yang Anda Input Salah\");\n }\n }", "public void remove(int indx) {\n\t\tgameObjects.remove(indx);\n\t}", "public void removeIndex(int i) {\n // YOUR CODE HERE\n }", "public void removeFood(int foodIndex) {\n if (foodIndex < 0 || foodIndex >= amount) {\n return;\n }\n\n for (int i = foodIndex+1; i < amount; i++) {\n foodPositions[i - 1] = foodPositions[i];\n }\n // decrement amount since food is removed\n amount--;\n }", "void removeGuide(int i);", "public void remove(int index) {\n for (int i = index; i < this.list.length-1; i++) {\n this.list[i]=this.list[i+1];\n }\n this.size--;\n }", "private void removeTimeFromList(int position) {\n final int index = position;\n AlertDialog.Builder alert = new AlertDialog.Builder(\n AddMedicationActivity.this);\n \n alert.setTitle(\"Delete\");\n alert.setMessage(\"Do you want delete this item?\");\n alert.setNegativeButton(\"YES\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TOD O Auto-generated method stub\n \n // main code on after clicking yes\n //list.remove(deletePosition);\n //adapter.notifyDataSetChanged();\n //adapter.notifyDataSetInvalidated();\n \t\tif (index == 4) \n \t\t\tcurrentTimes[4] = \" \";\n \t\telse {\n \t\t\tfor (int a = index + 1; a <= 4; a++)\n {\n \t\t\t\tcurrentTimes[a-1] = currentTimes[a];\n }\n \t\t\tcurrentTimes[4] = \" \";\n \t\t}\n \n \n timeCount--;\n setTimes();\n \n \n }\n });\n alert.setPositiveButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n dialog.dismiss();\n }\n });\n \n alert.show();\n \n }", "@Override\r\n public Copiable deleteAt(int index) throws IndexRangeException {\r\n if (count == 0) {\r\n throw new IndexRangeException(-1, -1, index);\r\n }\r\n if (index >= 0 && index <= count - 1) {\r\n Copiable temp = list[index];\r\n int shift = 0;\r\n for (int i = index; i < list.length - 1; i++) {\r\n list[i] = list[i + 1];\r\n shift++;\r\n }\r\n list[index + shift] = null;\r\n count--;\r\n return temp;\r\n } else {\r\n throw new IndexRangeException(0, count - 1, index);\r\n }\r\n }", "public void remove(int index) {\r\n\t\t//Das Element am Index soll weg:\r\n\t\t//1. Alle Elemente davor sollen erhalten bleiben\r\n\t\t//2. Alle Elemente dahinter sollen erhalten bleiben\r\n\t\t//und der Index 1 kleiner werden\r\n\t\tfor(int i=index+1;i < geheim.length; i++) {\r\n\t\t\tgeheim[i-1] = geheim[i];\r\n\t\t}\r\n\t\t//3. Das Array soll um eins kleiner sein\r\n\t\tresize(-1);\r\n\t}", "private void deleteElement(int index) {\n Object[] first = new Object[index];\n System.arraycopy(this.container, 0, first, 0, index);\n\n Object[] second = new Object[this.container.length - index - 1];\n System.arraycopy(this.container, index + 1, second, 0, second.length);\n\n this.container = new Object[this.container.length];\n System.arraycopy(first, 0, this.container, 0, first.length);\n System.arraycopy(second, 0, this.container, index, second.length);\n\n this.position--;\n }", "public void remove(int index)\r\n\t{\r\n\t\tif(index<0 || index >=n)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid index\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(int i=index;i<n;i++)\r\n\t\t\t{\r\n\t\t\t\ta[i]=a[i+1];\r\n\t\t\t}\r\n\t\t\tn--;\r\n\t\t}\t\t\r\n\t}", "public void remove(int index)\n {\n numItems--;\n items[index] = null;\n }", "void delete(int index) throws ListException;", "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 void removeItem() {\n if (this.size() == 0) {\n System.out.println(\"Empty List.\");\n return;\n }\n this.print();\n String code;\n System.out.println(\"Enter the code of removed item: \");\n code = sc.nextLine().toUpperCase();\n int pos = find(code);\n if (pos < 0) {\n System.out.println(\"This code does not exist.\");\n } else {\n this.remove(pos);\n System.out.println(\"The item \" + code + \" has been removed.\");\n\n }\n }", "public void removeObject(int i);", "private void removeFromActiveCourseList() {\n System.out.println(\"The current courses in the active course list are: \");\n\n for (int i = 0; i < activeCourseList.size(); i++) {\n System.out.println((i + 1) + \": \" + activeCourseList.get(i).getName());\n }\n\n System.out.println(\"Write the number of the one you wish to remove\");\n int removeIndex = obtainIntSafely(1, activeCourseList.size(), \"Number out of bounds\");\n activeCourseList.remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public void removeItemAt(int theIndex) {\n\t\tList<Item> keys = new ArrayList<Item>(inventory.keySet());\t\n\t\tItem item = keys.get(theIndex);\n\t\tinventory.remove(item);\t\t\n\t}", "public T remove(int index) {\n\n if (index >= size) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size);\n }\n\n T oldValue = myList[index];\n int value = size - index - 1;\n\n if (value > 0) {\n System.arraycopy(myList, index + 1, myList, index, value);\n }\n System.out.println(\"one \" + size);\n myList[--size] = null;\n System.out.println(\"two \" + size);\n\n return oldValue;\n }", "@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100));\r\n\t\tAssert.assertTrue(list.get(5).equals(list.remove(5)));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "private void removeItemFromList(int position) {\n final int index = position;\n AlertDialog.Builder alert = new AlertDialog.Builder(\n AddMedicationActivity.this);\n \n alert.setTitle(\"Delete\");\n alert.setMessage(\"Do you want delete this item?\");\n alert.setNegativeButton(\"YES\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TOD O Auto-generated method stub\n \n // main code on after clicking yes\n //list.remove(deletePosition);\n //adapter.notifyDataSetChanged();\n //adapter.notifyDataSetInvalidated();\n \t\tif (index == 9) \n \t\t\tcurrentConflictions[9] = \" \";\n \t\telse {\n \t\t\tfor (int a = index + 1; a <= 9; a++)\n {\n \t\t\t\tcurrentConflictions[a-1] = currentConflictions[a];\n }\n \t\t\tcurrentConflictions[9] = \" \";\n \t\t}\n \n \n conCount--;\n setCon();\n \n \n }\n });\n alert.setPositiveButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n dialog.dismiss();\n }\n });\n \n alert.show();\n \n }", "public static void removeItem() {\n removeItem();\n scanner scan; \n scan = new Scanner(System.in);\n while(true){\n System.out.print(\"Enter the Index you'd like to remove:\");\n if (scan.hasNextInt()){\n int idx=scan.nextInt();\n ArrayList.remove(idx);\n }\n }\n \n\t}", "public abstract T remove(int index);", "public abstract E remove(int index);", "protected /*override*/ void RemoveItem(int index) \r\n {\r\n CheckSealed(); \r\n super.RemoveItem(index); \r\n }", "public void remove(int index) {\n items.remove(index);\n }", "public T remove(int pos)\n {\n T el = _objs[pos];\n for (Integer i = pos; i < _size - 1; ++i)\n {\n _objs[i] = _objs[i + 1];\n }\n _size--;\n return el;\n }", "@Override\n public final Integer remove(final int index) {\n // Verify that the specified index is valid\n if (!checkRange(index)) {\n throw new IndexOutOfBoundsException();\n } else {\n final int temp = arrayList[index];\n // Shift all elements after the removed elements down\n for (int i = index; i < (size - 1); i++) {\n arrayList[i] = arrayList[i + 1];\n arrayList[i + 1] = 0;\n }\n size--;\n return temp;\n\n }\n }", "public boolean deleteItem(int index);", "@Override\r\n\tpublic void removeToIndex(int index) {\n\t}", "private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }", "public void remove(int indeksi) {\n int[] ennen = new int[indeksi];\n int[] jalkeen = new int[koko - indeksi - 1];\n for (int i = 0; i < ennen.length; i++) {\n ennen[i] = arreilist[i];\n }\n for (int i = 0; i < jalkeen.length; i++) {\n jalkeen[i] = arreilist[indeksi + 1 + i];\n }\n for (int i = 0; i < ennen.length; i++) {\n arreilist[i] = ennen[i];\n }\n for (int i = 0; i < jalkeen.length; i++) {\n arreilist[indeksi + i] = jalkeen[i];\n }\n koko--;\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }", "public void remove(int num) {\n // find the index of num\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n // shift the elements leftward and decrement count\n for (int j = 0; j < count - 1; j++) {\n list[i+j] = list[i+j+1];\n }\n count--;\n return;\n }\n }\n }", "public Dice removeDice (Dice diceToRemove){\n dicesList.remove(diceToRemove);\n diceIterator = dicesList.listIterator();\n return diceToRemove;\n }", "protected void removeItemFromList(final int position) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.str_title_delete_dialog));\n builder.setMessage(getString(R.string.str_delete_safezone))\n .setPositiveButton(getString(R.string.fire_yes), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Toast.makeText(getActivity(), \"delete device \" + deletePosition, Toast.LENGTH_SHORT).show();\n //Device.deleteDevice(deviceList.get(deletePosition).deviceID);\n Safezone.delete(safezoneArrayList.get(position).get_id());\n }\n })\n .setNegativeButton(getString(R.string.fire_no), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n // Create the AlertDialog object and return it\n builder.show();\n }", "public void removeItem(int n)\n {\n items.remove(n);\n }", "public void deletePolynom(int position) {\n collection.remove(position);\n }", "public static void removeOneCharacter (List<Character> listCP){\n System.out.println(\"enter the index of your character : \");\n int ch = getUserChoice();\n System.out.println(\"Are you sure that you wants to delete this character? Step 1 to confirm. \");\n int yn = getUserChoice();\n if (yn == 1) {\n // remove object Character at index ch and retrieve this object from method return\n Character removedCharacter = listCP.remove(ch);\n System.out.println( \"The character named \" + removedCharacter.getName() + \" from class \" + removedCharacter.getClass().getSimpleName() + \" has been removed ^^\" );\n }\n }", "public void RemoveItemFromUcet(int index)\n {\n\n\n\n\n celk_kor -= ucty.get(index).kor;\n celk_hal -= ucty.get(index).hal;\n\n\n if (celk_hal < 0)\n {\n celk_kor -= 1;\n celk_hal = 100 + celk_hal;\n }\n\n TextView celkem = (TextView) findViewById(R.id.celkova_castka);\n celkem.setText(\"\"+celk_kor+\".\"+celk_hal+\" Kč\");\n\n\n for (int i = index; i < ucty.size(); i++)\n {\n ucty.get(i).index -= 1;\n }\n ucty.remove(index);\n mGalleryView.removeView(index);\n }", "@Override\n\tpublic E remove(int idx) {\n\t\tif (idx < 0 || idx >= size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tE element = null;\n\t\telement = list[idx];\n\t\tif (idx == size - 1) {\n\t\t\tlist[idx] = null;\n\t\t} else {\n\t\t\tfor (int i = idx; i < size - 1; i++) {\n\t\t\t\tlist[i] = list[i + 1];\n\t\t\t}\n\t\t\tlist[size - 1] = null;\n\t\t}\n\t\tsize--;\n\t\treturn element;\n\t}", "void remove(int index) {\n\t\tfor (int i = index; i < array.length - 1; i++) {\n\t\t\tarray[i] = array[i + 1];\n\t\t}\n\t\tint[] temp = new int[array.length - 1];\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\ttemp[i] = array[i];\n\t\t}\n\t\tint lastValue = array[array.length - 1];// index starts @ 0, so its the\n\t\t\t\t\t\t\t\t\t\t\t\t// array.length - 1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t// for the 0\n\t\tarray = temp;\n\n\t}", "public int remove(T element) {\n\n int index = -1;\n\n for (int i = 0; i < myList.length; i++) {\n if (myList[i].equals(element)) {\n index = i;\n break;\n }\n }\n\n if (index >= 0) {\n this.remove(index);\n }\n\n return index;\n }", "void remove (int offset, int size);", "public T remove(int index) {\n chk();\n return list.remove(index);\n }", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public <T> void my_remove_element(int index) throws myException{\r\n\t\tmyNode current = Lnode;\r\n\t\tfor (int i =0; i< index;i++){\r\n\t\t\tif (index < 0 || index > counterNo){\r\n\t\t\t\tSystem.out.print(\"index out of bounds\");\r\n\t\t\t\treturn;\r\n\t\t\t\t\r\n\t\t\t}else if (current == null ){\r\n\t\t\t\tSystem.out.print(\"This list is empty\");\r\n\t\t\t\treturn;\r\n\t\t\t}else if (i == index -1){\r\n\t\t\t\tmyNode<T>Lnode = current.getRight();\r\n\t\t\t\tmyNode<T>Rnode = current.getLeft();\r\n\t\t\t\tRnode.setRight(Rnode);\r\n\t\t\t\tLnode.setLeft(Lnode);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcurrent = current.getRight();\r\n\t\t\tcounterNo -= 1;\r\n\t\t}", "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n System.out.println(arrayList);\n\n }", "@Override\n public E remove(int index) {\n // todo: Students must code\n int pos = calculate(index);\n\n E temp = data[pos];\n data[pos] = null;\n if(pos == head)\n head = (head+1) % data.length;\n else if(pos == tail)\n tail = (tail-1) % data.length;\n else {\n // shift all array contents after pos left 1\n for(int i = pos; i < (pos + curSize-index-1); i++)\n data[calculate(i)] = data[calculate(i+1)];\n tail = (tail-1) % data.length;\n }\n curSize--;\n return temp;\n }", "public void remove(int index) {\n\t\t// checks range\n\t\tcheckRange(index);\n\t\t// creates new JS array\n\t\tarray.remove(index);\n\t}", "public ArrayList<ArrayList<String>> removeDOF(ArrayList<ArrayList<String>> outer) {\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"What's the position of the data you would like to delete?\");\r\n\t\tint pos = s.nextInt();\r\n\t\tArrayList<ArrayList<String>> list1 = new ArrayList<ArrayList<String>>(outer);\r\n\t\tfor (int i = 0; i < list1.size(); i++) {\r\n\t\t\tlist1.get(i).remove(pos);\r\n\t\t}\r\n\t\treturn list1;\r\n\t}", "public void delete(int posicao){\n /*\n *\n * Nega a existência da posição na Lista.\n * Uma pequena gambiarra para não aninhar expressões if e else\n *\n */\n if(!verificaPosicao(posicao))\n throw new IllegalArgumentException(\"Posição inválida\");\n\n for (int i = posicao; i < this.tamanho-1; ++i){\n this.lista[i] = this.lista[i+1];\n }\n this.tamanho--;\n }", "public ArrayList<ArrayList<String>> removeItem(ArrayList<ArrayList<String>> outer) {\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Which specific data would you like to delete? Please type the position of the field and position of the data\");\r\n\t\tint posf = s.nextInt();\r\n\t\tint pos = s.nextInt();\r\n\t\tArrayList<ArrayList<String>> list3 = new ArrayList<ArrayList<String>>(outer);\r\n\t\tlist3.get(posf-1).remove(pos);\r\n\t\treturn list3;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T remove(int pos){\n\t\n\t\tif(pos >= 0 && pos< currentsize){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\t\n\t\tfor(int x = pos; x < data.length -1; x++){\n\t\t\tdata[x] = data[x+1];\n\t\t}\n\n\t\treturn (T)data[pos];\n\t}", "public void removeVoting(int index){\n if (index>=0 && index< votingList.size()){\n votingList.remove(index);\n }\n else {\n System.out.println(\"index is not valid\");\n }\n\n }", "public native String removeItem(Number index);", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "@Override\r\n\tpublic void removeElementAt(int index) {\r\n\r\n try {\r\n VOI voi = VOIAt(index);\r\n super.removeElementAt(index);\r\n fireVOIremoved(voi);\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "int removeHabit(Habit habit);", "public void drop(){\r\n if(activeFish.isEmpty()) return;\r\n \r\n ArrayList<Fish> toremove = new ArrayList<Fish>();\r\n for(Fish bone : activeFish){\r\n bone.drop();\r\n\r\n if(!(bone.inBounds())){ // branch for out of bound fh\r\n toremove.add(bone);\r\n }\r\n }\r\n missedFish(toremove);\r\n\r\n update();\r\n }", "private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }", "void removeLanes(int i);" ]
[ "0.6990488", "0.67773044", "0.6586357", "0.65557784", "0.65557784", "0.65557784", "0.65557784", "0.65306264", "0.648827", "0.6487825", "0.64579463", "0.6394195", "0.63924867", "0.6369092", "0.6283725", "0.6279464", "0.62688965", "0.62598264", "0.62573457", "0.619362", "0.6191779", "0.61667067", "0.6160956", "0.6156355", "0.61342967", "0.6115741", "0.6111256", "0.61000675", "0.6082724", "0.6080288", "0.60665375", "0.6063926", "0.6062573", "0.6044769", "0.6035533", "0.6033079", "0.6033079", "0.6029817", "0.60104126", "0.60075295", "0.59972996", "0.59962046", "0.5992903", "0.59853053", "0.59770215", "0.5955106", "0.5950864", "0.59488136", "0.59486395", "0.59455884", "0.59329647", "0.5927957", "0.5926983", "0.59169847", "0.5908536", "0.5902953", "0.5900919", "0.5897237", "0.5894423", "0.5876846", "0.58752114", "0.5869422", "0.58647895", "0.5857293", "0.58554566", "0.58516", "0.58500487", "0.584051", "0.58242625", "0.58190495", "0.5816973", "0.5816095", "0.5812968", "0.5811559", "0.5789953", "0.5782516", "0.5773644", "0.57727534", "0.57720333", "0.5766079", "0.57651466", "0.5762958", "0.5760505", "0.5757678", "0.57508236", "0.5750811", "0.5748245", "0.57481164", "0.5743852", "0.57425535", "0.5738604", "0.5738547", "0.5734766", "0.573132", "0.57284385", "0.5721074", "0.5709298", "0.57057595", "0.5705343", "0.5698227" ]
0.6742432
2
Getter for size of the bag
public int size() { return bag.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size () {\r\n return this.size;\r\n }", "public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int get_size();", "public int get_size();", "public Integer getSize() {\n return size;\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int getSize()\n {\n return this.size;\n }", "public int getSize() {\n return this.size;\n }", "public int getSize(){\n\t\treturn this.size;\n\t}", "public int getSize() {\r\n return this.size;\r\n }", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int getSize()\n\t{\n\t\treturn this.size;\n\t}", "public int size ()\n {\n return size;\n }", "public int size() {\n return size;\r\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\n {\n return this.size;\n }", "public int size()\n {\n return this.size;\n }", "public int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public int size() {\r\n return size;\r\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int getSize()\r\n {\r\n return size;\r\n }", "public int size() {\r\n return size; \r\n }", "public int size() {\n return _size;\n }", "@Override\n public int size() {\n return this.size; // Returns value in size field\n }", "public int size(){\n return this.size;\n }", "public int size() {\r\n return size;\r\n }", "public int getSize( )\n {\n return size;\n }", "public int size() { \r\n return size; \r\n }", "public long size() {\n\t\treturn size;\n\t}", "public int size () {\n\t\treturn size;\n\t}", "public int size () {\n\t\treturn size;\n\t}", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getSize() {\r\n return _size;\r\n }" ]
[ "0.77630806", "0.77142304", "0.77092963", "0.77092963", "0.7676121", "0.76683825", "0.7666734", "0.76393557", "0.7621788", "0.7617487", "0.75997514", "0.75997514", "0.75997514", "0.75997514", "0.75997514", "0.75979984", "0.75979984", "0.75979984", "0.75979984", "0.7595614", "0.7591319", "0.75895816", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.7588132", "0.758329", "0.758329", "0.758329", "0.7582176", "0.758188", "0.7573149", "0.7573149", "0.75696063", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.75633055", "0.7559638", "0.755815", "0.75567865", "0.7552762", "0.75523746", "0.7550514", "0.7549965", "0.75486946", "0.75484145", "0.7547261", "0.7547261", "0.7546907", "0.7544809" ]
0.8576556
0
Helper method to unify async and sync invocation
public void call(Runnable task) { if (asyncLogging) { executor.submit(task); } else { task.run(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void callSync() {\n\n }", "public abstract T await();", "public interface AsyncOperationHelper {\n\t\n\t/**\n\t * Inserisce l'operazione asincrona e restituisce il risultato dell'invocazione.\n\t * \n\t * @param account l'account relativo alla richiesta\n\t * @param azioneRichiesta l'azione richiesta\n\t * @param ente l'ente\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link InserisciOperazioneAsinc}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tInserisciOperazioneAsincResponse inserisciOperazioneAsincrona(Account account, AzioneRichiesta azioneRichiesta, Ente ente, Richiedente richiedente)\n\t\tthrows WebServiceInvocationFailureException;\n\t\n\t/**\n\t * Effettua il polling dell'operazione asincrona.\n\t * \n\t * @param idAzioneAsync l'id dell'azione asincrona\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link GetOperazioneAsincResponse}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tGetOperazioneAsincResponse getOperazioneAsinc(Integer idAzioneAsync, Richiedente richiedente) throws WebServiceInvocationFailureException;\n\t\n}", "void async(Callback<T> success, Callback<Throwable> error);", "public interface AsynService {\n void asynMethod();\n}", "public void requestExtraSync()\n {\n executor.requestExtraSync();\n }", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "public interface ChallongeApiCall<T> {\n\n /**\n * Performs a sync API call.\n * Blocking request which returns the object right away.\n *\n * @return The received object\n * @throws IOException Exception thrown by error handling\n * @throws ChallongeException Exception thrown by error handling\n */\n T sync() throws IOException, ChallongeException;\n\n /**\n * Performs an async API call.\n * One of the callbacks must be called on completion\n *\n * @param success Called on successful call completion\n * @param error Called on failure\n */\n void async(Callback<T> success, Callback<Throwable> error);\n\n /**\n * Performs an async API call.\n * One of the callbacks must be called on completion\n *\n * @deprecated Deprecated in favor of {@link ChallongeApiCall#async(Callback, Callback)}\n * @param callback The callback\n */\n @Deprecated\n void async(AsyncCallback<T> callback);\n}", "static CompletableFuture<String> callAsync(Api2 ignored) {\n return CompletableFuture.supplyAsync(() -> {\n System.out.println(\"supplyAsync thread =:\" + Thread.currentThread().getName());\n throw new RuntimeException(\"oops\");\n });\n }", "default <T> EagerFutureStream<T> sync(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =SequentialElasticPools.eagerReact.nextReactor().withAsync(false);\n\t\t return react.apply( r)\n\t\t\t\t \t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t \t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\t\t\t \t\n\t}", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "public interface ConnectionServiceAsync {\n void searchSynonyms(String input, AsyncCallback<List<String>> callback) throws IllegalArgumentException;;\n void callMaplabelsToSynonyms(AsyncCallback<Boolean> callback) throws IllegalArgumentException;;\n\n\n}", "public interface Async {\n public void afterExec(JSONObject jsonObject);\n}", "@Override\n\tpublic boolean isAsyncSupported() {\n\t\treturn false;\n\t}", "RESPONSE_TYPE doSync(final RequestImpl _requestImpl) throws Exception;", "public interface TaskDelegate {\n /*\n Notifies an activity of an async method's completion\n */\n public void taskCompletionResult(ArrayList<String> result);\n}", "default EagerFutureStream<U> async(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.async();\n\t}", "public interface AsyncDelegate {\n\n public void asyncComplete(boolean success);\n\n\n}", "default <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}", "@SuppressWarnings(\"SynchronizationOnLocalVariableOrMethodParameter\") // I know what I'm doing - famous last words.\n private static void awaitCompletion(final HashMultimap<UUID, Future<Void>> handles) {\n final Set<Future<Void>> futures;\n synchronized (handles) {\n futures = new HashSet<>(handles.values());\n handles.clear();\n }\n\n for (final Future<Void> future : futures) {\n await(future);\n }\n }", "interface InterfaceAsyncRequestData {\n\n /*\n * This is Interface used when a VALUE obtained from\n * an Async Thread (Class) has to be pass over to another\n * Class (probably UI thread for display to user),\n * but Async Thread and UI Thread are seperated in 2 different class.\n *\n * NOTE:\n * Implementation for these methods are\n * preferable to be\n * inside the necessary displayed UI Activity, e.g. MainActivity\n *\n * Summary:\n * - UI Thread = setup the methods, (activityRequestData = this), just for standby, NOT TO BE CALLED!\n *\n * - Background/Async Thread = invoke/call the methods, activityRequestData=null\n *\n * - Interface (or I called it \"Skin\") here = just a skin / head / methods name only, without implementation\n *\n *\n * UI Thread:\n * -implements and link->>\n *\n * ClassName implements AsyncRespondInterface {\n * ClassName(){\n * Async.activityRequestData = this;\n * }\n * // implements the rest of the methods()\n * }\n *\n * Background/Async Thread:\n * -prepare->> AsyncRespondInterface activityRequestData = null;\n * -invoke->> AsyncRespondInterface.someMethods();\n *\n */\n\n void getArrayListJSONResult(ArrayList<JSONObject> responses);\n}", "public interface InternalAuditServiceAsync {\n\n\tvoid signIn(String userid, String password, AsyncCallback<Employee> callback);\n\n\tvoid fetchObjectiveOwners(AsyncCallback<ArrayList<Employee>> callback);\n\n\tvoid fetchDepartments(AsyncCallback<ArrayList<Department>> callback);\n\n\tvoid fetchRiskFactors(int companyID, AsyncCallback<ArrayList<RiskFactor>> callback);\n\n\tvoid saveStrategic(Strategic strategic, HashMap<String, String> hm, AsyncCallback<String> callback);\n\n\tvoid fetchStrategic(HashMap<String, String> hm, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid fetchRiskAssesment(HashMap<String, String> hm, AsyncCallback<ArrayList<RiskAssesmentDTO>> callback);\n\n\tvoid saveRiskAssesment(HashMap<String, String> hm, ArrayList<StrategicDegreeImportance> strategicRisks,\n\t\t\tArrayList<StrategicRiskFactor> arrayListSaveRiskFactors, float resultRating, AsyncCallback<String> callback);\n\n\tvoid sendBackStrategic(Strategic strategics, AsyncCallback<String> callback);\n\n\tvoid declineStrategic(int startegicId, AsyncCallback<String> callback);\n\n\tvoid fetchStrategicAudit(AsyncCallback<ArrayList<StrategicAudit>> callback);\n\n\tvoid fetchDashBoard(HashMap<String, String> hm, AsyncCallback<ArrayList<DashBoardDTO>> callback);\n\n\tvoid fetchFinalAuditables(AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid checkDate(Date date, AsyncCallback<Boolean> callback);\n\n\tvoid fetchSchedulingStrategic(HashMap<String, String> hm, AsyncCallback<ArrayList<StrategicDTO>> callback);\n\n\tvoid fetchSkills(AsyncCallback<ArrayList<Skills>> callback);\n\n\tvoid saveJobTimeEstimation(JobTimeEstimationDTO entity, ArrayList<SkillUpdateData> updateForSkills,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid fetchJobTime(int jobId, AsyncCallback<JobTimeEstimationDTO> callback);\n\n\tvoid fetchEmployees(AsyncCallback<ArrayList<Employee>> callback);\n\n\tvoid fetchResourceUseFor(int jobId, AsyncCallback<ArrayList<ResourceUse>> callback);\n\n\tvoid fetchEmployeesByDeptId(ArrayList<Integer> depIds, AsyncCallback<ArrayList<Employee>> asyncCallback);\n\n\tvoid saveJobAndAreaOfExpertiseState(ArrayList<JobAndAreaOfExpertise> state, AsyncCallback<Void> callback);\n\n\tvoid fetchCheckBoxStateFor(int jobId, AsyncCallback<ArrayList<JobAndAreaOfExpertise>> callback);\n\n\tvoid saveCreatedJob(JobCreationDTO job, AsyncCallback<String> callback);\n\n\tvoid fetchCreatedJobs(boolean getEmpRelation, boolean getSkillRelation,\n\t\t\tAsyncCallback<ArrayList<JobCreationDTO>> asyncCallback);\n\n\tvoid getEndDate(Date value, int estimatedWeeks, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchEmployeesWithJobs(AsyncCallback<ArrayList<JobsOfEmployee>> callback);\n\n\tvoid updateEndDateForJob(int jobId, String startDate, String endDate, AsyncCallback<JobCreation> asyncCallback);\n\n\tvoid getMonthsInvolved(String string, String string2, AsyncCallback<int[]> callback);\n\n\tvoid fetchAllAuditEngagement(int loggedInEmployee, AsyncCallback<ArrayList<AuditEngagement>> callback);\n\n\tvoid fetchCreatedJob(int jobId, AsyncCallback<JobCreation> callback);\n\n\tvoid updateAuditEngagement(AuditEngagement e, String fieldToUpdate, AsyncCallback<Boolean> callback);\n\n\tvoid syncAuditEngagementWithCreatedJobs(int loggedInEmployee, AsyncCallback<Void> asyncCallback);\n\n\tvoid saveRisks(ArrayList<RiskControlMatrixEntity> records, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid sendEmail(String body, String sendTo, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid fetchAuditEngagement(int selectedJobId, AsyncCallback<AuditEngagement> asyncCallback);\n\n\tvoid fetchRisks(int auditEngId, AsyncCallback<ArrayList<RiskControlMatrixEntity>> asyncCallback);\n\n\t// void fetchEmpForThisJob(\n\t// int selectedJobId,\n\t// AsyncCallback<ArrayList<Object>> asyncCallback);\n\n\tvoid fetchEmployeeJobRelations(int selectedJobId, AsyncCallback<ArrayList<JobEmployeeRelation>> asyncCallback);\n\n\tvoid fetchJobs(AsyncCallback<ArrayList<JobCreation>> asyncCallback);\n\n\tvoid fetchEmployeeJobs(Employee loggedInEmployee, String reportingTab,\n\t\t\tAsyncCallback<ArrayList<JobCreation>> asyncCallback);\n\n\tvoid fetchJobExceptions(int jobId, AsyncCallback<ArrayList<Exceptions>> asyncCallbac);\n\n\tvoid fetchEmployeeExceptions(int employeeId, int jobId, AsyncCallback<ArrayList<Exceptions>> asyncCallbac);\n\n\tvoid sendException(Exceptions exception, Boolean sendMail, String selectedView, AsyncCallback<String> asyncCallbac);\n\n\tvoid saveAuditStepAndExceptions(AuditStep step, ArrayList<Exceptions> exs, AsyncCallback<Void> asyncCallback);\n\n\tvoid getSavedAuditStep(int selectedJobId, int auditWorkId, AsyncCallback<AuditStep> asyncCallback);\n\n\tvoid getSavedExceptions(int selectedJobId, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid saveAuditWork(ArrayList<AuditWork> records, AsyncCallback<Void> asyncCallback);\n\n\tvoid updateKickoffStatus(int auditEngId, Employee loggedInUser, AsyncCallback<Void> asyncCallback);\n\n\tvoid fetchAuditHeadExceptions(int auditHeadId, int selectedJob, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid fetchCreatedJob(int id, boolean b, boolean c, String string, AsyncCallback<JobCreationDTO> asyncCallback);\n\n\tvoid fetchAuditWorkRows(int selectedJobId, AsyncCallback<ArrayList<AuditWork>> asyncCallback);\n\n\tvoid fetchApprovedAuditWorkRows(int selectedJobId, AsyncCallback<ArrayList<AuditWork>> asyncCallback);\n\n\tvoid saveAuditNotification(int auditEngagementId, String message, String to, String cc, String refNo, String from,\n\t\t\tString subject, String filePath, String momoNo, String date, int status,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid logOut(AsyncCallback<String> asyncCallback);\n\n\tvoid selectYear(int year, AsyncCallback<Void> asyncCallback);\n\n\tvoid fetchNumberofPlannedJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberofInProgressJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberofCompletedJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchJobsKickOffWithInaWeek(AsyncCallback<ArrayList<String>> asyncCallback);\n\n\tvoid fetchNumberOfAuditObservations(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsInProgress(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsImplemented(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsOverdue(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchEmployeesAvilbleForNext2Weeks(AsyncCallback<ArrayList<String>> asyncCallback);\n\n\tvoid fetchStrategicDepartments(int strategicId, AsyncCallback<ArrayList<StrategicDepartments>> asyncCallback);\n\n\tvoid fetchResourceIds(int strategicId, AsyncCallback<ArrayList<Integer>> asyncCallback);\n\n\tvoid fetchJobSoftSkills(int strategicId, AsyncCallback<ArrayList<Integer>> asyncCallback);\n\n\tvoid fetchReportSearchResult(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> department, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid fetchReportWithResourcesSearchResult(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> resources, ArrayList<String> department, AsyncCallback<ArrayList<JobCreation>> callback);\n\n\tvoid fetchStrategicDepartmentsMultiple(ArrayList<Integer> ids,\n\t\t\tAsyncCallback<ArrayList<StrategicDepartments>> callback);\n\n\tvoid exportAuditPlanningReport(ArrayList<ExcelDataDTO> excelDataList, String btn, AsyncCallback<String> callback);\n\n\tvoid fetchReportAuditScheduling(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> jobStatus,\n\t\t\tArrayList<String> responsiblePerson, ArrayList<String> dep, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid approveFinalAuditable(Strategic strategic, AsyncCallback<String> callback);\n\n\tvoid declineFinalAuditable(Strategic strategic, AsyncCallback<String> asyncCallback);\n\n\tvoid saveUser(Employee employee, AsyncCallback<String> asyncCallback);\n\n\tvoid updateUser(int previousHours, Employee employee, AsyncCallback<String> asyncCallback);\n\n\tvoid getStartEndDates(AsyncCallback<ArrayList<Date>> asyncCallback);\n\n\tvoid fetchNumberOfDaysBetweenTwoDates(Date from, Date to, AsyncCallback<Integer> asyncCallback);\n\n\tvoid saveCompany(Company company, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCompanies(AsyncCallback<ArrayList<Company>> asyncCallback);\n\n\tvoid updateStrategic(Strategic strategic, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteRisk(RiskControlMatrixEntity risk, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteAuditWork(int auditWorkId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCurrentYear(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchEmployeesBySkillId(int jobId, AsyncCallback<ArrayList<Employee>> asyncCallback);\n\n\tvoid checkNoOfResourcesForSelectedSkill(int noOfResources, int skillId, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteException(int exceptionId, AsyncCallback<String> asyncCallback);\n\n\tvoid approveScheduling(AsyncCallback<String> asyncCallback);\n\n\tvoid fetchSelectedEmployee(int employeeId, AsyncCallback<Employee> asyncCallback);\n\n\tvoid fetchExceptionReports(ArrayList<String> div, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> resources, ArrayList<String> jobs, ArrayList<String> auditees,\n\t\t\tArrayList<String> exceptionStatus, ArrayList<String> department, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid exportJobTimeAllocationReport(ArrayList<JobTimeAllocationReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid exportAuditExceptionsReport(ArrayList<ExceptionsReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid exportAuditSchedulingReport(ArrayList<AuditSchedulingReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid isScheduleApproved(AsyncCallback<Boolean> asyncCallback);\n\n\tvoid fetchDashboard(HashMap<String, String> hm, AsyncCallback<DashBoardNewDTO> asyncCallback);\n\n\tvoid updateUploadedAuditStepFile(int auditStepId, AsyncCallback<String> asyncCallback);\n\n\tvoid saveSelectedAuditStepIdInSession(int auditStepId, AsyncCallback<String> asyncCallback);\n\n\tvoid submitFeedBack(Feedback feedBack, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchProcessDTOs(AsyncCallback<ArrayList<ProcessDTO>> callback);\n\n\tvoid fetchSubProcess(int processId, AsyncCallback<ArrayList<SubProcess>> callback);\n\n\tvoid saveActivityObjectives(ArrayList<ActivityObjective> activityObjectives, int jobid, int status,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid saveRiskObjectives(ArrayList<RiskObjective> riskObjectives, int jobid, int status,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid saveExistingControls(ArrayList<SuggestedControls> suggestedControls, AsyncCallback<String> callback);\n\n\tvoid saveAuditWorkProgram(ArrayList<AuditProgramme> auditWorkProgramme, int selectedJobId,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchApprovedAuditProgrammeRows(int selectedJobId, AsyncCallback<ArrayList<AuditProgramme>> asyncCallback);\n\n\tvoid deleteRiskObjective(int riskId, int jobId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchJobStatus(int jobId, AsyncCallback<JobStatusDTO> asyncCallback);\n\n\tvoid fetchDashBoardListBoxDTOs(AsyncCallback<ArrayList<DashboardListBoxDTO>> callback);\n\n\tvoid savetoDo(ToDo todo, AsyncCallback<String> callback);\n\n\tvoid saveinformationRequest(InformationRequestEntity informationrequest, String filepath,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchEmailAttachments(AsyncCallback<ArrayList<String>> callback);\n\n\tvoid saveToDoLogs(ToDoLogsEntity toDoLogsEntity, AsyncCallback<String> callback);\n\n\tvoid saveInformationRequestLogs(InformationRequestLogEntity informationRequestLogEntity,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchAuditStepExceptions(String id, AsyncCallback<ArrayList<String>> callback);\n\n\tvoid fetchAuditStepsProcerdure(String id, String mainFolder, AsyncCallback<ArrayList<String>> callback);\n\n\tvoid deleteAttachmentFile(String id, String mainFolder, String fileName, AsyncCallback<String> callback);\n\n\tvoid deleteUnsavedAttachemnts(String pathtodouploads, AsyncCallback<String> callback);\n\n\tvoid fetchAssignedFromToDos(AsyncCallback<ArrayList<ToDo>> callback);\n\n\tvoid fetchAssignedToToDos(AsyncCallback<ArrayList<ToDo>> callback);\n\n\tvoid fetchAssignedFromIRReLoad(AsyncCallback<ArrayList<InformationRequestEntity>> callback);\n\n\tvoid fetchJobExceptionWithImplicationRating(int jobId, int ImplicationRating,\n\t\t\tAsyncCallback<ArrayList<Exceptions>> callback);\n\n\tvoid fetchControlsForReport(int jobId, AsyncCallback<ArrayList<SuggestedControls>> callback);\n\n\tvoid fetchSelectedJob(int jobId, AsyncCallback<JobCreation> callback);\n\n\tvoid saveReportDataPopup(ArrayList<ReportDataEntity> listReportData12, AsyncCallback<String> callback);\n\n\tvoid fetchReportDataPopup(int jobId, AsyncCallback<ArrayList<ReportDataEntity>> callback);\n\n\tvoid saveAssesmentGrid(ArrayList<AssesmentGridEntity> listAssesment, int jobid, AsyncCallback<String> callback);\n\n\tvoid fetchAssesmentGrid(int jobId, AsyncCallback<ArrayList<AssesmentGridDbEntity>> callback);\n\n\tvoid deleteActivityObjective(int jobId, AsyncCallback<String> callback);\n\n\tvoid getNextYear(Date value, AsyncCallback<Date> asyncCallback);\n\n\tvoid readExcel(String subFolder, String mainFolder, AsyncCallback<ArrayList<SamplingExcelSheetEntity>> callback);\n\n\tvoid fetchAssignedToIRReLoad(AsyncCallback<ArrayList<InformationRequestEntity>> asyncCallback);\n\n\tvoid generateSamplingOutput(String populationSize, String samplingSize, String samplingMehod,\n\t\t\tArrayList<SamplingExcelSheetEntity> list, Integer auditStepId, AsyncCallback<ArrayList<SamplingExcelSheetEntity>> callback);\n\n\n\tvoid exportSamplingAuditStep(String samplingMehod, String reportFormat, ArrayList<SamplingExcelSheetEntity> list,\n\t\t\tInteger auditStepId, AsyncCallback<String> callback);\n\n\tvoid fetchDivision(AsyncCallback<ArrayList<Division>> asyncCallback);\n\n\tvoid fetchDivisionDepartments(int divisionID, AsyncCallback<ArrayList<Department>> asyncCallback);\n\n\tvoid fetchSavedSamplingReport(String folder, String auditStepId, AsyncCallback<String> callback);\n\n\tvoid fetchJobsAgainstSelectedDates(Date startDate, Date endDate, AsyncCallback<ArrayList<JobCreation>> callback);\n\n\tvoid fetchStrategicSubProcess(int id, AsyncCallback<StrategicSubProcess> asyncCallback);\n\n\tvoid fetchCompanyPackage(int companyId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCompanyLogoPath(int companyID, AsyncCallback<String> asyncCallback);\n\n\tvoid updatePassword(Employee loggedInUser, AsyncCallback<String> asyncCallback);\n\n\tvoid validateRegisteredUserEmail(String emailID, AsyncCallback<Integer> asyncCallback);\n\n\tvoid sendPasswordResetEmail(String emailBody, String value, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid resetPassword(Integer employeeID, String newPassword, AsyncCallback<String> asyncCallback);\n\n\tvoid upgradeSoftware(AsyncCallback<String> asyncCallback);\n\n\tvoid addDivision(String divisionName, AsyncCallback<String> asyncCallback);\n\n\tvoid addDepartment(int divisionID, String departmentName, AsyncCallback<String> asyncCallback);\n\n\tvoid editDivisionName(Division division, AsyncCallback<String> asyncCallback);\n\n\tvoid editDepartmentName(Department department, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteDivision(int divisionID, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteDepartment(int departmentID, AsyncCallback<String> asyncCallback);\n\n\tvoid uploadCompanyLogo(String fileName, int companyID, AsyncCallback<String> callback);\n\n\tvoid fetchDegreeImportance(int companyID, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid saveDegreeImportance(ArrayList<DegreeImportance> arrayListDegreeImportance, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid deleteDegreeImportance(int degreeID, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid saveRiskFactor(ArrayList<RiskFactor> arrayListRiskFacrors, AsyncCallback<ArrayList<RiskFactor>> asyncCallback);\n\n\tvoid deleteRiskFactor(int riskID, AsyncCallback<ArrayList<RiskFactor>> asyncCallback);\n\n\tvoid removeStrategicDegreeImportance(int id, AsyncCallback<String> asyncCallback);\n\n\tvoid removeStrategicRiskFactor(int id, AsyncCallback<String> callback);\n\n\tvoid fetchStrategicDuplicate(Strategic strategic, AsyncCallback<ArrayList<Strategic>> asyncCallback);\n\n}", "private static void mergingSyncMadeAsync() {\n Observable.merge(getDataSync(1).subscribeOn(Schedulers.io()), getDataSync(2).subscribeOn(Schedulers.io())).blockingForEach(System.out::println);\n }", "protected ResultHolder<S, T> handleASyncServiceCall() {\n\n\t\t// Check we have a service action\n\t\tServiceAction action = getServiceAction();\n\t\tif (action == null) {\n\t\t\tthrow new IllegalStateException(\"No service action provided for polling.\");\n\t\t}\n\n\t\t// Generate a cache key so the polling result can be held\n\t\tif (!isUseCachedResult()) {\n\t\t\t//Generate a key\n\t\t\tsetServiceCacheKey(generateCacheKey());\n\t\t\t// Clear previous result\n\t\t\tsetServiceResult(null);\n\t\t}\n\n\t\t// Check we have a cache key\n\t\tString key = getServiceCacheKey();\n\t\tif (key == null) {\n\t\t\tthrow new IllegalStateException(\"No cache key provided for polling.\");\n\t\t}\n\n\t\t// Start Service action (will return result if already cached)\n\t\ttry {\n\t\t\tResultHolder result = SERVICE_HELPER.handleAsyncServiceCall(getServiceCache(), key, getServiceCriteria(), action);\n\t\t\tsetServiceRunning(true);\n\t\t\treturn result;\n\t\t} catch (RejectedTaskException e) {\n\t\t\t// Could not start service (usually no threads available). Try and start on the next poll.\n\t\t\tLOG.info(\"Could not start service in pool [\" + getServiceThreadPool() + \"]. Will try next poll.\");\n\t\t\tsetServiceRunning(false);\n\t\t\treturn null;\n\t\t}\n\t}", "public interface TreeServiceAsync {\r\n\tvoid getChild(String book, String id, ContextTreeItem input,\r\n\t\t\tAsyncCallback<List<ContextTreeItem>> callback)\r\n\t\t\tthrows IllegalArgumentException;\r\n\r\n\tvoid getText(String book, String id, ContextTreeItem item,\r\n\t\t\tAsyncCallback<String> asyncCallback)\r\n\t\t\tthrows IllegalArgumentException;\r\n\r\n}", "@SuppressWarnings(\"SynchronizationOnLocalVariableOrMethodParameter\") // I know what I'm doing - famous last words.\n private static void awaitCompletion(final HashMultimap<UUID, Future<Void>> handles, final UUID handle) {\n final Set<Future<Void>> futures;\n synchronized (handles) {\n futures = handles.removeAll(handle);\n }\n\n for (final Future<Void> future : futures) {\n await(future);\n }\n }", "@Override\n\tprotected void doAsyncExecute(VoiceMessage requestMessage) {\n\n\t}", "public interface UrlMakerApiAsync {\n\tvoid encode(String url, AsyncCallback<Map<String, String>> callback);\n\tvoid ping(AsyncCallback<Void> callback);\n}", "public interface IAsyncComplete<T> {\n \n public abstract void onComplete(T result);\n \n}", "default EagerFutureStream<U> sync(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.sync();\n\t}", "public abstract void onAsyncRun(View view);", "@SuppressWarnings({\"unused\", \"unchecked\"})\n public void execute(IN... ins) {\n asyncTask.execute(ins);\n }", "public interface Api {\n // get异步\n void getAsync(String url, ApiParams apiParams, Class<? extends BaseResponse> cls, CallBack callBack);\n\n // get同步\n BaseResponse getSync(String url, ApiParams apiParams, Class<? extends BaseResponse> cls);\n\n // post同步\n void postAsync(String url, ApiParams apiParams, Class<? extends BaseResponse> cls, CallBack callBack);\n\n // post同步\n BaseResponse postSync(String url, ApiParams apiParams, Class<? extends BaseResponse> cls);\n}", "public interface AsyncLogger {\n\n public void logMessage(String message);\n}", "public interface AppServiceAsync {\r\n void addBookmark(Bookmark bookmark, AsyncCallback<Long> callback);\r\n\r\n void deleteBookmark(Long id, AsyncCallback<Void> callback);\r\n\r\n void getBookmarks(AsyncCallback<List<Bookmark>> callback);\r\n\r\n void isLogged(String location, AsyncCallback<String> callback);\r\n}", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "public interface IOperation {\n Future<String> AsyncRead();\n Future AsyncWrite(final String message);\n}", "public void asyncFire(EventI event);", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public interface AcnServiceAsync {\r\n\t\r\n\tvoid ordernarSequencia(Integer num1, Integer num2, AsyncCallback<Integer[]> callback) throws Exception;\r\n\t\r\n\tvoid recuperarListaPessoa(int quantidade, AsyncCallback<Map<String, List<Pessoa>>> callback);\r\n\t\r\n}", "public interface HomepageServiceAsync {\n\tpublic void getProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\n\tpublic void getRecentBackups(int backupType, int backupStatus,int top, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getVMRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, BackupVMModel vmModel,AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getBackupInforamtionSummary(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tpublic void updateProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\t\n\tpublic void getDestSizeInformation(BackupSettingsModel model,AsyncCallback<DestinationCapacityModel> callback);\n\t\n\tpublic void getNextScheduleEvent(int in_iJobType,AsyncCallback<NextScheduleEventModel> callback);\n\n\tpublic void getTrustHosts(\n\t\t\tAsyncCallback<TrustHostModel[]> callback);\n\n\tvoid becomeTrustHost(TrustHostModel trustHostModel,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid checkBaseLicense(AsyncCallback<Boolean> callback);\n\n\tvoid getBackupInforamtionSummaryWithLicInfo(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tvoid getLocalHost(AsyncCallback<TrustHostModel> callback);\n\n\tvoid PMInstallPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);\n\t\n\tvoid PMInstallBIPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);//added by cliicy.luo\n\t\n\tvoid getVMBackupInforamtionSummaryWithLicInfo(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMBackupInforamtionSummary(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMProtectionInformation(BackupVMModel vmModel,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getVMNextScheduleEvent(BackupVMModel vmModel,\n\t\t\tAsyncCallback<NextScheduleEventModel> callback);\n\tpublic void getVMRecentBackups(int backupType, int backupStatus,int top,BackupVMModel vmModel, AsyncCallback<RecoveryPointModel[]> callback);\n\n\tvoid updateVMProtectionInformation(BackupVMModel vm,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getArchiveInfoSummary(AsyncCallback<ArchiveJobInfoModel> callback);\n\n\tvoid getLicInfo(AsyncCallback<LicInfoModel> callback);\n\n\tvoid getVMStatusModel(BackupVMModel vmModel,\n\t\t\tAsyncCallback<VMStatusModel[]> callback);\n\n\tvoid getConfiguredVM(AsyncCallback<BackupVMModel[]> callback);\n\n\tvoid getMergeJobMonitor(String vmInstanceUUID,\n\t\t\tAsyncCallback<MergeJobMonitorModel> callback);\n\n\tvoid pauseMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid resumeMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid getMergeStatus(String vmInstanceUUID,\n AsyncCallback<MergeStatusModel> callback);\n\n\tvoid getBackupSetInfo(String vmInstanceUUID, \n\t\t\tAsyncCallback<ArrayList<BackupSetInfoModel>> callback);\n\t\n\tpublic void getDataStoreStatus(String dataStoreUUID, AsyncCallback<DataStoreInfoModel> callback);\n\n\tvoid getVMDataStoreStatus(BackupVMModel vm, String dataStoreUUID,\n\t\t\tAsyncCallback<DataStoreInfoModel> callback);\n\t\n}", "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "default <R> EagerFutureStream<R> thenSync(final Function<U, R> fn){\n\t\t return (EagerFutureStream<R>)FutureStream.super.thenSync(fn);\n\t }", "public interface GenerateResourceServiceAsync {\n /**\n * {@link GenerateResourceServiceImpl#generateTSDPattern(long,boolean)}\n */\n void generateTSDPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateBehaviorPattern(long,boolean)}\n */\n void generateBehaviorPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateScenarioSet(long, boolean)}\n */\n void generateScenarioSet(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateConcreteScenarioSet(long, byte[])}\n */\n void generateConcreteScenarioSet(long settingFileId, byte[] pattern, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, long)}\n */\n void getPartOfFileContent(long projectId, long fileId, long startRecordOffset, long recordCount, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, String)}\n */\n void getPartOfFileContent(long projectId, long fileId, long patternId, String generationHash, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getSettingFileJobStatusList(long, long)}\n */\n void getSettingFileJobStatusList(long fileId, long projectId, AsyncCallback<List<JobStatusInfo>> callback) throws IllegalArgumentException;\n\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Lists nodes.\n * </pre>\n */\n default void listNodes(\n com.google.cloud.tpu.v2alpha1.ListNodesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListNodesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the details of a node.\n * </pre>\n */\n default void getNode(\n com.google.cloud.tpu.v2alpha1.GetNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.Node> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a node.\n * </pre>\n */\n default void createNode(\n com.google.cloud.tpu.v2alpha1.CreateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a node.\n * </pre>\n */\n default void deleteNode(\n com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Stops a node. This operation is only available with single TPU nodes.\n * </pre>\n */\n default void stopNode(\n com.google.cloud.tpu.v2alpha1.StopNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Starts a node.\n * </pre>\n */\n default void startNode(\n com.google.cloud.tpu.v2alpha1.StartNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates the configurations of a node.\n * </pre>\n */\n default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists queued resources.\n * </pre>\n */\n default void listQueuedResources(\n com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListQueuedResourcesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets details of a queued resource.\n * </pre>\n */\n default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a QueuedResource TPU instance.\n * </pre>\n */\n default void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a QueuedResource TPU instance.\n * </pre>\n */\n default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Resets a QueuedResource TPU instance\n * </pre>\n */\n default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates the Cloud TPU service identity for the project.\n * </pre>\n */\n default void generateServiceIdentity(\n com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateServiceIdentityMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists accelerator types supported by this API.\n * </pre>\n */\n default void listAcceleratorTypes(\n com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAcceleratorTypesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets AcceleratorType.\n * </pre>\n */\n default void getAcceleratorType(\n com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.AcceleratorType>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAcceleratorTypeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists runtime versions supported by this API.\n * </pre>\n */\n default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a runtime version.\n * </pre>\n */\n default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves the guest attributes for the node.\n * </pre>\n */\n default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Simulates a maintenance event.\n * </pre>\n */\n default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }\n }", "default T await() {\n return await(0, TimeUnit.NANOSECONDS);\n }", "Boolean autoSync();", "public <T> void mo51641a(AsyncTask<T, ?, ?> asyncTask, T... tArr) {\n try {\n asyncTask.execute(tArr);\n } catch (Throwable unused) {\n }\n }", "public interface RespuestaAsync {\n void ProcesoFinalizado(String salida);\n}", "public interface StakeServiceAsync {\n\tvoid sendStake(long uuid, int raceType, int horseNumber, int summ, AsyncCallback<Integer> callback);\n\t\n\tvoid getRaceResultfromDB(int raceId, AsyncCallback<List<Result>> callback);\n}", "public interface Requestor {\r\n \r\n /**\r\n * Marshal the given operation and its parameters into a request object, send\r\n * it to the remote component, and interpret the answer and convert it back\r\n * into the return type of generic type T\r\n * \r\n * @param <T>\r\n * generic type of the return value\r\n * @param objectId\r\n * the object that this request relates to; not that this may not\r\n * necessarily just be the object that the method is called upon\r\n * @param operationName\r\n * the operation (=method) to invoke\r\n * @param typeOfReturnValue\r\n * the java reflection type of the returned type\r\n * @param argument\r\n * the arguments to the method call\r\n * @return the return value of the type given by typeOfReturnValue\r\n */\r\n <T> T sendRequestAndAwaitReply(String objectId, String operationName, Type typeOfReturnValue, String accessToken, Object... argument);\r\n\r\n}", "public interface GreetingServiceAsync {\r\n\tvoid getAll( String type, AsyncCallback<HashMap<String, String>> callback );\r\n\tvoid delete(String id,AsyncCallback callback );\r\n\tvoid getById(String idData, AsyncCallback<PhotoClient> callback);\r\n\tvoid addProject(String proName,AsyncCallback callback);\r\n\tvoid getProjectList(AsyncCallback callback);\r\n\tvoid getFolderChildren(FileModel model, AsyncCallback<List<FileModel>> children);\r\n \r\n}", "public DJSync(){\n }", "public interface AsyncResponse\n{\n void onAsyncJsonFetcherComplete(int mode, JSONArray json, boolean jsonException);\n}", "@Test\n public void async_2() throws InterruptedException {\n Func1<Integer, Observable<String>> wsKald = param -> Observable.<String>create(s -> {\n s.onStart();\n s.onNext(\"called with \" + param);\n s.onCompleted();\n }).subscribeOn(Schedulers.io());\n\n Func1<Long, Observable<Integer>> multi = param -> Observable.<Integer>create(s -> {\n s.onStart();\n IntStream.range(1, param.intValue()).forEach(s::onNext);\n s.onCompleted();\n }).subscribeOn(Schedulers.io());\n\n // asynkron tæller, hvert ½ sekund\n Observable<Long> ticker = Observable.interval(500, TimeUnit.MILLISECONDS);\n\n ticker.take(10)\n .flatMap(multi)\n .flatMap(wsKald)\n .toBlocking()\n .subscribe(log::info);\n }", "public ChannelProgressivePromise syncUninterruptibly()\r\n/* 100: */ {\r\n/* 101:132 */ super.syncUninterruptibly();\r\n/* 102:133 */ return this;\r\n/* 103: */ }", "public interface AuthenticationAsync {\r\n\tvoid login(String login, int passwordHash, AsyncCallback<Boolean> callback) throws IllegalArgumentException;\r\n}", "public interface AsyncRunner {\n\n\t\tvoid closeAll();\n\n\t\tvoid closed(ClientHandler clientHandler);\n\n\t\tvoid exec(ClientHandler code);\n\t}", "@Async @Endpoint(\"http://0.0.0.0:8080\")\npublic interface AsyncEndpoint {\n\t\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} and {@link AsyncHandler}.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which handles the results of the asynchronous request\n\t * \n\t * @return {@code null}, since the request is processed asynchronously\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/asyncsuccess\")\n\tString asyncSuccess(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} and {@link AsyncHandler} which returns response \n\t * code that signifies a failure. This should invoke {@link AsyncHandler#onFailure(HttpResponse)} on the \n\t * provided callback.</p> \n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which handles the results of the asynchronous request\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/asyncfailure\")\n\tvoid asyncFailure(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} and {@link AsyncHandler} whose execution is \n\t * expected to fail with an exception and hence handled by the callback {@link AsyncHandler#onError(Exception)}.</p>\n\t * \n\t * <p>The error is caused by the deserializer which attempts to parse the response content, which is \n\t * not JSON, into the {@link User} model.</p> \n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which handles the results of the asynchronous request\n\t * \n\t * @since 1.3.4\n\t */\n\t@Deserialize(JSON)\n\t@GET(\"/asyncerror\")\n\tvoid asyncError(AsyncHandler<User> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} but does not expect the response to be \n\t * handled using an {@link AsyncHandler}.</p>\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/asyncnohandling\")\n\tvoid asyncNoHandling();\n\t\n\t/**\n\t * <p>Processes a successful execution, but the user provided implementation of the callback \n\t * {@link AsyncHandler#onSuccess(HttpResponse, Object)} throws an exception.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which is expected to throw an exception in <i>onSuccess</i>\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/successcallbackerror\")\n\tvoid asyncSuccessCallbackError(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Processes a failed execution, but the user provided implementation of the callback \n\t * {@link AsyncHandler#onFailure(HttpResponse)} throws an exception.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which is expected to throw an exception in <i>onFailure</i>\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/failurecallbackerror\")\n\tvoid asyncFailureCallbackError(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Processes an erroneous execution, but the user provided implementation of the callback \n\t * {@link AsyncHandler#onError(Exception)} throws an exception itself.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which is expected to throw an exception in <i>onError</i>\n\t * \n\t * @since 1.3.0\n\t */\n\t@Deserialize(JSON)\n\t@GET(\"/errorcallbackerror\")\n\tvoid asyncErrorCallbackError(AsyncHandler<User> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request <b>synchronously</b> by detaching the inherited @{@link Async} annotation.</p> \n\t * \n\t * @return the response string which indicated a synchronous request\n\t * \n\t * @since 1.3.0\n\t */\n\t@Detach(Async.class) \n\t@GET(\"/asyncdetached\")\n\tString asyncDetached();\n}", "public interface PgStudioServiceAsync {\n\n\tvoid getConnectionInfoMessage(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid getList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid getList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback)\n \t\tthrows IllegalArgumentException;\n\n\tvoid getRangeDiffFunctionList(String connectionToken, String schema, String subType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getTriggerFunctionList(String connectionToken, int schema, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid getItemObjectList(String connectionToken, int item, ITEM_TYPE type, ITEM_OBJECT_TYPE object, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemMetaData(String connectionToken, int item, ITEM_TYPE type, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemData(String connectionToken, int item, ITEM_TYPE type, int count, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getQueryMetaData(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid executeQuery(String connectionToken, String query, String queryType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItem(String connectionToken, int item, ITEM_TYPE type, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid analyze(String connectionToken, int item, ITEM_TYPE type, boolean vacuum, boolean vacuumFull, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid renameItem(String connectionToken, int item, ITEM_TYPE type, String newName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid truncate(String connectionToken, int item, ITEM_TYPE type, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createIndex(String connectionToken, int item, String indexName, INDEX_TYPE indexType, boolean isUnique, boolean isConcurrently, ArrayList<String> columnList, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItemObject(String connectionToken, int item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameItemObject(String connectionToken, int item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, String newObjectName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameSchema(String connectionToken, String oldSchema, String schema, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid dropSchema(String connectionToken, String schemaName, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createSchema(String connectionToken, String schemaName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getExplainResult(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createView(String connectionToken, String schema, String viewName, String definition, String comment, boolean isMaterialized, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createColumn(String connectionToken, int item, String columnName, String datatype, String comment, boolean not_null, String defaultval, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTable(String connectionToken, int schema, String tableName, boolean unlogged, boolean temporary, String fill, ArrayList<String> col_list, HashMap<Integer,String> commentLog, ArrayList<String> col_index, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createUniqueConstraint(String connectionToken, int item, String constraintName, boolean isPrimaryKey, ArrayList<String> columnList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createCheckConstraint(String connectionToken, int item, String constraintName, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createForeignKeyConstraint(String connectionToken, int item, String constraintName, ArrayList<String> columnList, String referenceTable, ArrayList<String> referenceList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid createSequence(String connectionToken, int schema, String sequenceName, boolean temporary, int increment, int minValue, int maxValue, int start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createFunction(String connectionToken, int schema, String functionName, String returns, String language, ArrayList<String> paramList, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createType(String connectionToken, String schema, String typeName, TYPE_FORM form, String baseType, String definition, ArrayList<String> attributeList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createForeignTable(String connectionToken, String schema, String tableName, String server, ArrayList<String> columns, HashMap<Integer, String> comments, ArrayList<String> options, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid refreshMaterializedView(String connectionToken, String schema, String viewName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createRule(String connectionToken, int item, ITEM_TYPE type, String ruleName, String event, String ruleType, String definition, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createTrigger(String connectionToken, int item, ITEM_TYPE type, String triggerName, String event, String triggerType, String forEach, String function, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid revoke(String connectionToken, int item, ITEM_TYPE type, String privilege, String grantee, boolean cascade, AsyncCallback<String> callback) \n\t\t\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid grant(String connectionToken, int item, ITEM_TYPE type, ArrayList<String> privileges, String grantee, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid doLogout(String connectionToken, String source, AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid invalidateSession(AsyncCallback<Void> callback);\n\n}", "EagerFutureStream<U> withAsync(boolean async);", "public interface PgStudioServiceAsync {\n\n\tvoid getConnectionInfoMessage(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid getList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid getList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback)\n \t\tthrows IllegalArgumentException;\n\n\tvoid getRangeDiffFunctionList(String connectionToken, String schema, String subType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getTriggerFunctionList(String connectionToken, int schema, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid getItemObjectList(String connectionToken, long item, ITEM_TYPE type, ITEM_OBJECT_TYPE object, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemMetaData(String connectionToken, long item, ITEM_TYPE type, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemData(String connectionToken, long item, ITEM_TYPE type, int count, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getQueryMetaData(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid executeQuery(String connectionToken, String query, String queryType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItem(String connectionToken, long item, ITEM_TYPE type, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid analyze(String connectionToken, long item, ITEM_TYPE type, boolean vacuum, boolean vacuumFull, boolean reindex, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid renameItem(String connectionToken, long item, ITEM_TYPE type, String newName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid truncate(String connectionToken, long item, ITEM_TYPE type, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createIndex(String connectionToken, long item, String indexName, INDEX_TYPE indexType, boolean isUnique, boolean isConcurrently, ArrayList<String> columnList, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItemObject(String connectionToken, long item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameItemObject(String connectionToken, long item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, String newObjectName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameSchema(String connectionToken, String oldSchema, String schema, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid dropSchema(String connectionToken, String schemaName, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createSchema(String connectionToken, String schemaName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getExplainResult(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createView(String connectionToken, String schema, String viewName, String definition, String comment, boolean isMaterialized, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createColumn(String connectionToken, long item, String columnName, String datatype, String comment, boolean not_null, String defaultval, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTable(String connectionToken, int schema, String tableName, boolean unlogged, boolean temporary, String fill, ArrayList<String> col_list, HashMap<Integer,String> commentLog, ArrayList<String> col_index, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTableLike(String connectionToken, int schema, String tableName, String source, boolean defaults, boolean constraints, boolean indexes, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createUniqueConstraint(String connectionToken, long item, String constraintName, boolean isPrimaryKey, ArrayList<String> columnList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createCheckConstraint(String connectionToken, long item, String constraintName, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createForeignKeyConstraint(String connectionToken, long item, String constraintName, ArrayList<String> columnList, String referenceTable, ArrayList<String> referenceList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid createSequence(String connectionToken, int schema, String sequenceName, boolean temporary, String increment, String minValue, String maxValue, String start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createFunction(String connectionToken, AlterFunctionRequest funcRequest, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createType(String connectionToken, String schema, String typeName, TYPE_FORM form, String baseType, String definition, ArrayList<String> attributeList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createForeignTable(String connectionToken, String schema, String tableName, String server, ArrayList<String> columns, HashMap<Integer, String> comments, ArrayList<String> options, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid refreshMaterializedView(String connectionToken, String schema, String viewName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createRule(String connectionToken, long item, ITEM_TYPE type, String ruleName, String event, String ruleType, String definition, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createTrigger(String connectionToken, long item, ITEM_TYPE type, String triggerName, String event, String triggerType, String forEach, String function, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid revoke(String connectionToken, long item, ITEM_TYPE type, String privilege, String grantee, boolean cascade, AsyncCallback<String> callback) \n\t\t\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid grant(String connectionToken, long item, ITEM_TYPE type, ArrayList<String> privileges, String grantee, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getActivity(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid configureRowSecurity(String connectionToken, long item, boolean hasRowSecurity, boolean forceRowSecurity, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid createPolicy(String connectionToken, long item, String policyName, String cmd, String role, String using, String withCheck, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid doLogout(String connectionToken, String source, AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid invalidateSession(AsyncCallback<Void> callback);\n\t\n\tvoid alterFunction(String connectionToken, AlterFunctionRequest alterFunctionRequest, AsyncCallback<String> asyncCallback) throws Exception;\n\t\n\tvoid incrementValue(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid alterSequence(String connectionToken, int schema, String sequenceName, String increment, String minValue, String maxValue, String start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid changeSequenceValue(String connectionToken, int schema, String sequenceName, String value, AsyncCallback<String> asyncCallback);\n\n\tvoid restartSequence(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid resetSequence(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getLanguageFullList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback) throws IllegalArgumentException;\n\t\n\tvoid getFunctionFullList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback) throws IllegalArgumentException;\n\n\tvoid fetchDictionaryTemplates(String connectionToken, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid addDictionary(String connectionToken, int schema, String dictName, String template, String option, String comment, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createFTSConfiguration(String connectionToken, String schemaName, String configurationName, String templateName, String parserName, String comments, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSTemplatesList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\t\n\tvoid getFTSParsersList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\t\n\tvoid alterFTSConfiguration(String connectionToken, String schemaName, String configurationName, String comments, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropFTSConfiguration(String connectionToken, String schemaName, String configurationName, boolean cascade, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSConfigurations(String connectionToken, String schemaName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid fetchDictionaryDetails(String connectionToke, int schema, long id, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid alterDictionary(String connectionToken, int schema, String dictName, String newDictName, String options, String comments, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createFTSMapping(String connectionToken, String schemaName, String configurationName, String tokenType, String dictionary, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSTokensList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\n\tvoid getFTSDictionariesList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\n\tvoid alterFTSMapping(String connectionToken, String schemaName, String configurationName, String tokenType, String oldDict, String newDict, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropFTSMapping(String connectionToken, String schemaName, String configurationName, String token, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSConfigurationDetails(String connectionToken, String schemaName, String configName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid importData(String connectionToken, List<String> columnList, List<ArrayList<String>> dataRows, int schema, String tableId, String tableName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropItemData(String connectionToken, int schema, String tableName,AsyncCallback<String> callback) throws IllegalArgumentException, DatabaseConnectionException, PostgreSQLException;\n\n\tvoid connectToDatabase(String connectionToken, String databaseName , AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid fetchDomainDetails(String connectionToken, long item, AsyncCallback<DomainDetails> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid addCheck(String connectionToken, int schema, String domainName, String checkName, String expression, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropCheck(String connectionToken, int schema, String domainName, String checkName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid alterDomain(String connectionToken, int schema, AlterDomainRequest request, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n void createItemData(String connectionToken, int schema, String tableName, ArrayList<String>colNames, ArrayList<String> values, AsyncCallback<String> callback) throws IllegalArgumentException, DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid alterColumn(String connectionToken, long item, AlterColumnRequest command, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource on a given Google Cloud project and region.\n * `AzureClient` resources hold client authentication\n * information needed by the Anthos Multicloud API to manage Azure resources\n * on your Azure subscription on your behalf.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.\n * </pre>\n */\n default void getAzureClient(\n com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureClient>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClients(\n com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClientsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource.\n * If the client is used by one or more clusters, deletion will\n * fail and a `FAILED_PRECONDITION` error will be returned.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resource on a given Google Cloud Platform project and region.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureCluster(\n com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void updateAzureCluster(\n com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void getAzureCluster(\n com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureCluster>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClusters(\n com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClustersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * Fails if the cluster has one or more associated\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates a short-lived access token to authenticate to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],\n * attached to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureNodePool(\n com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].\n * </pre>\n */\n default void updateAzureNodePool(\n com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * </pre>\n */\n default void getAzureNodePool(\n com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureNodePool>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]\n * resources on a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureNodePool(\n com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns information, such as supported Azure regions and Kubernetes\n * versions, on a given Google Cloud location.\n * </pre>\n */\n default void getAzureServerConfig(\n com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureServerConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureServerConfigMethod(), responseObserver);\n }\n }", "public interface AsyncResponse {\n void processFinish(String output);\n}", "@Service\npublic interface BugFetch {\n @Async\n void fetch(BugzillaConnector conn) throws InterruptedException;\n}", "@Override\r\n\tpublic Object request(Invocation invocation) throws Exception {\n\t\tRpcRequest req=new RpcRequest();\r\n\t\treq.setId(UUID.randomUUID().toString());\r\n\t\treq.setArgs(invocation.getAgrs());\r\n\t\treq.setMethod(invocation.getMethod().getName());\r\n\t\treq.setParameterTypes(invocation.getMethod().getParameterTypes());\r\n\t\treq.setType(invocation.getInterface());\r\n\t\treq.setAsyn(invocation.isAsyn());\r\n\t\tCompletableFuture<Object> result=new CompletableFuture<>();\r\n\t\tclientPool.borrowObject().request(req,result);\r\n\t\tif(invocation.isAsyn()){\r\n\t\t\treturn result;\r\n\t\t}else{\r\n\t\t\treturn result.get();\r\n\t\t}\r\n\r\n\r\n\t}", "public interface AsyncConnection {\n \n /**\n * Return <tt>true</tt> is the current connection associated with \n * this event has been suspended.\n */\n public boolean isSuspended();\n \n \n /**\n * Suspend the current connection. Suspended connection are parked and\n * eventually used when the Grizzlet Container initiates pushes.\n */\n public void suspend() throws AlreadyPausedException;\n \n \n /**\n * Resume a suspended connection. The response will be completed and the \n * connection become synchronous (e.g. a normal http connection).\n */\n public void resume() throws NotYetPausedException;\n \n \n /**\n * Advises the Grizzlet Container to start intiating a push operation, using \n * the argument <code>message</code>. All asynchronous connection that has \n * been suspended will have a chance to push the data back to their \n * associated clients.\n *\n * @param message The data that will be pushed.\n */\n public void push(String message) throws IOException;\n \n \n /**\n * Return the GrizzletRequest associated with this AsynchConnection. \n */\n public GrizzletRequest getRequest();\n \n \n /**\n * Return the GrizzletResponse associated with this AsynchConnection. \n */\n public GrizzletResponse getResponse();\n \n \n /**\n * Is this AsyncConnection being in the process of being resumed?\n */\n public boolean isResuming();\n \n \n /**\n * Is this AsyncConnection has push events ready to push back data to \n * its associated client.\n */\n public boolean hasPushEvent();\n \n \n /**\n * Return the <code>message</code> that can be pushed back.\n */\n public String getPushEvent();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get.\n */\n public boolean isGet();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get. \n */\n public boolean isPost();\n \n \n /**\n * Return the number of suspended connections associated with the current\n * {@link Grizzlet}\n */\n public int getSuspendedCount();\n \n \n}", "public interface FunctionAsync<T, R> {\n public Promise<R> apply(T value) throws Exception;\n}", "public interface AmazonConfigAsync extends AmazonConfig {\n /**\n * <p>\n * Returns the current status of the specified delivery channel. If a\n * delivery channel is not specified, this action returns the current\n * status of all delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelStatusRequest Container for the\n * necessary parameters to execute the DescribeDeliveryChannelStatus\n * operation on AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannelStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the current status of the specified delivery channel. If a\n * delivery channel is not specified, this action returns the current\n * status of all delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelStatusRequest Container for the\n * necessary parameters to execute the DescribeDeliveryChannelStatus\n * operation on AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannelStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest,\n AsyncHandler<DescribeDeliveryChannelStatusRequest, DescribeDeliveryChannelStatusResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the name of one or more specified configuration recorders.\n * If the recorder name is not specified, this action returns the names\n * of all the configuration recorders associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecordersRequest Container for the\n * necessary parameters to execute the DescribeConfigurationRecorders\n * operation on AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorders service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the name of one or more specified configuration recorders.\n * If the recorder name is not specified, this action returns the names\n * of all the configuration recorders associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecordersRequest Container for the\n * necessary parameters to execute the DescribeConfigurationRecorders\n * operation on AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorders service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest,\n AsyncHandler<DescribeConfigurationRecordersRequest, DescribeConfigurationRecordersResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Starts recording configurations of all the resources associated with\n * the account.\n * </p>\n * <p>\n * You must have created at least one delivery channel to successfully\n * start the configuration recorder.\n * </p>\n *\n * @param startConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StartConfigurationRecorder operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * StartConfigurationRecorder service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Starts recording configurations of all the resources associated with\n * the account.\n * </p>\n * <p>\n * You must have created at least one delivery channel to successfully\n * start the configuration recorder.\n * </p>\n *\n * @param startConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StartConfigurationRecorder operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * StartConfigurationRecorder service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest,\n AsyncHandler<StartConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new delivery channel object to deliver the configuration\n * information to an Amazon S3 bucket, and to an Amazon SNS topic.\n * </p>\n * <p>\n * You can use this action to change the Amazon S3 bucket or an Amazon\n * SNS topic of the existing delivery channel. To change the Amazon S3\n * bucket or an Amazon SNS topic, call this action and specify the\n * changed values for the S3 bucket and the SNS topic. If you specify a\n * different value for either the S3 bucket or the SNS topic, this action\n * will keep the existing value for the parameter that is not changed.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param putDeliveryChannelRequest Container for the necessary\n * parameters to execute the PutDeliveryChannel operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * PutDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new delivery channel object to deliver the configuration\n * information to an Amazon S3 bucket, and to an Amazon SNS topic.\n * </p>\n * <p>\n * You can use this action to change the Amazon S3 bucket or an Amazon\n * SNS topic of the existing delivery channel. To change the Amazon S3\n * bucket or an Amazon SNS topic, call this action and specify the\n * changed values for the S3 bucket and the SNS topic. If you specify a\n * different value for either the S3 bucket or the SNS topic, this action\n * will keep the existing value for the parameter that is not changed.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param putDeliveryChannelRequest Container for the necessary\n * parameters to execute the PutDeliveryChannel operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * PutDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest,\n AsyncHandler<PutDeliveryChannelRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Deletes the specified delivery channel.\n * </p>\n * <p>\n * The delivery channel cannot be deleted if it is the only delivery\n * channel and the configuration recorder is still running. To delete the\n * delivery channel, stop the running configuration recorder using the\n * StopConfigurationRecorder action.\n * </p>\n *\n * @param deleteDeliveryChannelRequest Container for the necessary\n * parameters to execute the DeleteDeliveryChannel operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DeleteDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Deletes the specified delivery channel.\n * </p>\n * <p>\n * The delivery channel cannot be deleted if it is the only delivery\n * channel and the configuration recorder is still running. To delete the\n * delivery channel, stop the running configuration recorder using the\n * StopConfigurationRecorder action.\n * </p>\n *\n * @param deleteDeliveryChannelRequest Container for the necessary\n * parameters to execute the DeleteDeliveryChannel operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DeleteDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest,\n AsyncHandler<DeleteDeliveryChannelRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Stops recording configurations of all the resources associated with\n * the account.\n * </p>\n *\n * @param stopConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StopConfigurationRecorder operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * StopConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Stops recording configurations of all the resources associated with\n * the account.\n * </p>\n *\n * @param stopConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StopConfigurationRecorder operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * StopConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest,\n AsyncHandler<StopConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Schedules delivery of a configuration snapshot to the Amazon S3\n * bucket in the specified delivery channel. After the delivery has\n * started, AWS Config sends following notifications using an Amazon SNS\n * topic that you have specified.\n * </p>\n * \n * <ul>\n * <li>Notification of starting the delivery.</li>\n * <li>Notification of delivery completed, if the delivery was\n * successfully completed.</li>\n * <li>Notification of delivery failure, if the delivery failed to\n * complete.</li>\n * \n * </ul>\n *\n * @param deliverConfigSnapshotRequest Container for the necessary\n * parameters to execute the DeliverConfigSnapshot operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DeliverConfigSnapshot service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Schedules delivery of a configuration snapshot to the Amazon S3\n * bucket in the specified delivery channel. After the delivery has\n * started, AWS Config sends following notifications using an Amazon SNS\n * topic that you have specified.\n * </p>\n * \n * <ul>\n * <li>Notification of starting the delivery.</li>\n * <li>Notification of delivery completed, if the delivery was\n * successfully completed.</li>\n * <li>Notification of delivery failure, if the delivery failed to\n * complete.</li>\n * \n * </ul>\n *\n * @param deliverConfigSnapshotRequest Container for the necessary\n * parameters to execute the DeliverConfigSnapshot operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DeliverConfigSnapshot service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest,\n AsyncHandler<DeliverConfigSnapshotRequest, DeliverConfigSnapshotResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new configuration recorder to record the resource\n * configurations.\n * </p>\n * <p>\n * You can use this action to change the role ( <code>roleARN</code> )\n * of an existing recorder. To change the role, call the action on the\n * existing configuration recorder and specify a role.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param putConfigurationRecorderRequest Container for the necessary\n * parameters to execute the PutConfigurationRecorder operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * PutConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new configuration recorder to record the resource\n * configurations.\n * </p>\n * <p>\n * You can use this action to change the role ( <code>roleARN</code> )\n * of an existing recorder. To change the role, call the action on the\n * existing configuration recorder and specify a role.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param putConfigurationRecorderRequest Container for the necessary\n * parameters to execute the PutConfigurationRecorder operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * PutConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest,\n AsyncHandler<PutConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns a list of configuration items for the specified resource. The\n * list contains details about each state of the resource during the\n * specified time interval. You can specify a <code>limit</code> on the\n * number of results returned on the page. If a limit is specified, a\n * <code>nextToken</code> is returned as part of the result that you can\n * use to continue this request.\n * </p>\n * <p>\n * <b>NOTE:</b> Each call to the API is limited to span a duration of\n * seven days. It is likely that the number of records returned is\n * smaller than the specified limit. In such cases, you can make another\n * call, using the nextToken .\n * </p>\n *\n * @param getResourceConfigHistoryRequest Container for the necessary\n * parameters to execute the GetResourceConfigHistory operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * GetResourceConfigHistory service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns a list of configuration items for the specified resource. The\n * list contains details about each state of the resource during the\n * specified time interval. You can specify a <code>limit</code> on the\n * number of results returned on the page. If a limit is specified, a\n * <code>nextToken</code> is returned as part of the result that you can\n * use to continue this request.\n * </p>\n * <p>\n * <b>NOTE:</b> Each call to the API is limited to span a duration of\n * seven days. It is likely that the number of records returned is\n * smaller than the specified limit. In such cases, you can make another\n * call, using the nextToken .\n * </p>\n *\n * @param getResourceConfigHistoryRequest Container for the necessary\n * parameters to execute the GetResourceConfigHistory operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * GetResourceConfigHistory service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest,\n AsyncHandler<GetResourceConfigHistoryRequest, GetResourceConfigHistoryResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns details about the specified delivery channel. If a delivery\n * channel is not specified, this action returns the details of all\n * delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelsRequest Container for the necessary\n * parameters to execute the DescribeDeliveryChannels operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannels service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns details about the specified delivery channel. If a delivery\n * channel is not specified, this action returns the details of all\n * delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelsRequest Container for the necessary\n * parameters to execute the DescribeDeliveryChannels operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannels service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest,\n AsyncHandler<DescribeDeliveryChannelsRequest, DescribeDeliveryChannelsResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the current status of the specified configuration recorder.\n * If a configuration recorder is not specified, this action returns the\n * status of all configuration recorder associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecorderStatusRequest Container for the\n * necessary parameters to execute the\n * DescribeConfigurationRecorderStatus operation on AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorderStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the current status of the specified configuration recorder.\n * If a configuration recorder is not specified, this action returns the\n * status of all configuration recorder associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecorderStatusRequest Container for the\n * necessary parameters to execute the\n * DescribeConfigurationRecorderStatus operation on AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorderStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest,\n AsyncHandler<DescribeConfigurationRecorderStatusRequest, DescribeConfigurationRecorderStatusResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n}", "public interface AsyncResponse {\n\n void processFinish(String output);\n\n}", "public interface EmailService {\n\n Boolean send(Greeting greeting);\n\n void sendAsync(Greeting greeting);\n\n CompletableFuture<Boolean> sendAsyncWithResults(Greeting greeting);\n}", "public interface ClientServiceAsync {\n\t/**\n\t * Save a Client instance to the data store\n\t * @param c The client to be saved\n\t * @param cb The async callback\n\t */\n\tpublic void saveClient(Client c, AsyncCallback<Void> cb);\n\t\n\t/**\n\t * Load all the Client instances from the server\n\t * @param cb The async callback\n\t */\n\tpublic void getClients(AsyncCallback<List<Client>> cb);\n\t\n\t/**\n\t * Get a Client by id\n\t * @param id The client id\n\t * @param cb The async callback\n\t */\n\tpublic void getClient(String id, AsyncCallback<Client> cb);\n\n\t/**\n\t * Delete a list of clients from the data store\n\t * @param clients The list of clients to be deleted\n\t * @param cb The async callback\n\t */\n\tpublic void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);\n\t\n\tpublic void saveClients(Collection<Client> clients, AsyncCallback<Void> cb);\n}", "protected DefaultPromise()\r\n/* 44: */ {\r\n/* 45: 83 */ this.executor = null;\r\n/* 46: */ }", "public void start( boolean async );", "protected abstract void asyncExecuteWorkFlow(String queryId, LogicalWorkflow workflow, IResultHandler\n resultHandler) throws ConnectorException;", "public void setAsync(boolean async) {\n this.async = async;\n }", "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n throw new VoldemortException(\"Callback failed\");\n\n } catch(ExecutionException e1) {\n\n logger.error(\"Callback failed during execution\", e1);\n throw new VoldemortException(\"Callback failed during execution\");\n }\n\n }", "public abstract void task();", "public interface AsyncResponse {\n void processFinish(double calories, double date);\n}", "public interface Task<T> {\n public void doHandle(CallBack<T> callback);\n}", "@Override\n\tpublic void invoke(final Request request, final AsyncCallback<Response> callback) {\n\t\tcallback.callback(CallbackBus.super.invoke(request));\n\t}", "public interface AsyncRpcCallback {\n\n void success(Object result);\n\n void fail(Exception e);\n\n}", "public abstract void doExecute(A a, TaskCompletionSource<ResultT> taskCompletionSource) throws RemoteException;", "public interface TaskLoadedCallback {\n void onTaskDone(Object... values);\n}", "public interface TaskLoadedCallback {\n void onTaskDone(Object... values);\n}", "public interface ReplicaRepositoryServiceAsync extends IAsyncRemoteServiceProxy {\n\t\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies. The ontology\n\t * will belong to no group. Use <code>addOWLOntology(OWLOntology, ID)</code>\n\t * if you want to set the group to which the ontology belongs.\n\t * \n\t * @param ontology\n\t * @return\n\t * @throws ReplicaOntologyAddException\n\t * \n\t * @deprecated use addOWLOntology(OWLOntology, ID) instead\n\t */\n\t// OWLOntology addOWLOntology(OWLOntology ontology) throws\n\t// ReplicaOntologyAddException;\n\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies in\n\t * <code>groups</code>. If <code>groups</code> is null, then the ontology will\n\t * belong to no group. If <code>groups</code> does not exist yet, it will be\n\t * created.\n\t * \n\t * @param ontology\n\t * @param groups\n\t * @param listener\n\t * @throws AddException\n\t */\n\tvoid addOWLOntologyAsync(OWLOntology ontology, Set<? extends Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows AddException;\n\n\t/**\n\t * Fetches the ontology with the specified OWLOntologyID.\n\t * \n\t * @param ontologyID\n\t * @param listener\n\t * @throws FetchException\n\t */\n\tvoid getOWLOntologyAsync(OWLOntologyID ontologyID,\n\t\t\tIAsyncCallback<OWLOntology> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies or an empty list if none found.\n\t * \n\t * @deprecated use getOWLOntologies(String group) instead\n\t */\n\t// List<OWLOntologyID> getOWLOntologies() throws\n\t// ReplicaOntologyFetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies which belong to the specified groups.\n\t * <br>\n\t * If <code>groups</code> is null, IDs of all shared ontologies will be\n\t * returned.<br>\n\t * Beware that the specified set implementation has to be serializable.\n\t * \n\t * @param groups\n\t * @param listener\n\t */\n\tvoid getOWLOntologyIDsAsync(Set<Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns a set of all group names currently registered.\n\t * \n\t * @param listener\n\t */\n\tvoid getGroupsAsync(IAsyncCallback<Set<Object>> callback);\n//\t\t\tthrows FetchException;\n\t\n}", "String getAsyncDelayedRedelivery();", "ResilientExecutionUtil() {\n // do nothing\n }", "@JsonGetter(\"async\")\n public boolean isAsync() {\n return async != null && async;\n }", "public interface AsyncResponse {\n void processFinish(HttpJson output);\n}", "<T> AsyncResult<T> startProcess(Callable<T> task);", "public interface CommandService {\n\n /**\n * Executes given command remotely and synchronously and returns the similar object as executed, but changed on the remote\n * side.\n */\n <T extends Command> T execute(T command);\n}", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "@Override\n\tpublic boolean isAsyncStarted() {\n\t\treturn false;\n\t}", "public interface ApplicationServletAsync {\r\n\r\n\tvoid sendRequest(Map<String, Serializable> requestParameters,\r\n\t\t\tMap<String, Serializable> responseParameters,\r\n\t\t\tAsyncCallback<Void> callback);\r\n}", "public interface ProjectsApi {\n //findProjectsByLanguage\n void findProjectsByLanguage(String lang, Handler<AsyncResult<List<ProjectInfo>>> handler);\n \n}", "public interface AsyncCallback<T>\n{\n\tpublic void onPreExecute();\n\tpublic void onPostExecute(T arg);\n}", "@Test\n public void orgApacheFelixEventadminAsyncToSyncThreadRatioTest() {\n // TODO: test orgApacheFelixEventadminAsyncToSyncThreadRatio\n }", "<T> T sendRequestAndAwaitReply(String objectId, String operationName, Type typeOfReturnValue, String accessToken, Object... argument);", "public interface AsyncService {\n\n /**\n * <pre>\n * Creates or removes asset group signals. Operation statuses are\n * returned.\n * </pre>\n */\n default void mutateAssetGroupSignals(com.google.ads.googleads.v14.services.MutateAssetGroupSignalsRequest request,\n io.grpc.stub.StreamObserver<com.google.ads.googleads.v14.services.MutateAssetGroupSignalsResponse> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateAssetGroupSignalsMethod(), responseObserver);\n }\n }", "@Override\n\tpublic AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse)\n\t\t\tthrows IllegalStateException {\n\t\treturn null;\n\t}" ]
[ "0.687267", "0.6424739", "0.6183051", "0.6165986", "0.61597127", "0.6090134", "0.6015153", "0.60033166", "0.5914713", "0.58099794", "0.5806812", "0.5757185", "0.57531464", "0.5747152", "0.57114923", "0.5683409", "0.5610133", "0.5608276", "0.556951", "0.55649847", "0.5562638", "0.5452733", "0.54362434", "0.5402943", "0.54001296", "0.5399847", "0.5375486", "0.5364954", "0.5349327", "0.53362703", "0.5318087", "0.52993864", "0.5294877", "0.52936953", "0.528775", "0.5283343", "0.52787143", "0.52707106", "0.52618945", "0.5256518", "0.5253959", "0.52490747", "0.52378017", "0.523337", "0.52226937", "0.522231", "0.52156883", "0.5211019", "0.52045184", "0.5192293", "0.5191442", "0.51795906", "0.5178374", "0.51738054", "0.517379", "0.5168154", "0.5160698", "0.5158455", "0.51546764", "0.5154336", "0.5144906", "0.51441777", "0.51324743", "0.5131878", "0.51308113", "0.5129406", "0.5127328", "0.5120974", "0.51195043", "0.51159006", "0.5102276", "0.5097427", "0.5094718", "0.50899255", "0.50882393", "0.5080475", "0.5071649", "0.5066479", "0.50614154", "0.50607806", "0.505485", "0.5049623", "0.50464576", "0.50427127", "0.50427127", "0.50382036", "0.50310874", "0.5027582", "0.5027522", "0.5012916", "0.50113857", "0.50100034", "0.49983305", "0.49908984", "0.4989238", "0.49862066", "0.4983803", "0.49799916", "0.4973402", "0.4967401", "0.49657568" ]
0.0
-1
name: IMultifragmentActivity desc: date: 20150615 author: David Copyright (c) 2015 David Han
public interface IMultifragmentActivity { Toolbar getToolbar(); void showBackButton(boolean visible); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "public interface IFragmentPresenter {\n\tpublic void onItemClick(int position);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface IFragmentView {\n\n void setCategoryItems(List<PictureModel> list);\n\n String getTitle();\n\n}", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface ActivityWithDeepLinking {\n}", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "@Override\n public void onFragmentInteraction(Uri uri){\n }", "@Override\n public void onFragmentInteraction(Uri uri){\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tLog.d(\"Fragment02\",\"onAttach\");\n\t}", "public interface IFragmentListener {\n void onRefresh(SwipeRefreshLayout refreshLayout);\n void loadMore();\n}", "@Override\r\n\tpublic void onFragmentStop() {\n\t}", "public final String mo60917a() {\n return \"tag_fragment_discover\";\n }", "interface CompactNavigationListFragmentImpl {\n void onAttach(Activity activity);\n\n void onDetach();\n\n void onSaveInstanceState(Bundle outState);\n\n View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState);\n\n void onViewCreated(View view, @Nullable Bundle savedInstanceState);\n\n void onDestroyView();\n\n void setItems(List<? extends CompositeNavigationItemDescriptor> items);\n\n void setSections(List<NavigationSectionDescriptor> sections);\n\n void setHeaderView(View view, boolean clickable);\n\n void notifyDataSetChanged();\n\n void setBackgroundColor(int color);\n\n void setBackground(Drawable drawable);\n\n void setBackgroundResource(@DrawableRes @ColorRes int resource);\n\n void setBackgroundAttr(@AttrRes int attr);\n\n void setSelectedItem(int id);\n\n void onInflate(Activity activity, AttributeSet attrs, Bundle savedInstanceState);\n\n LayoutInflater getLayoutInflater2();\n\n void setReselectEnabled(boolean reselectEnabled);\n}", "public interface IPrimaryFragPresenter extends IPresenter {\n}", "public abstract Activity getActivity(IBinder token);", "@Override\r\n\tpublic void onFragmentResume() {\n\t}", "public interface IOrderMagnageActivityView {\n\n /**\n * 初始化商品管理分类\n */\n void initOrderManage(List<Fragment> fragmentList);\n}", "void switchFragment(@IdRes int itemId) {\n Intent intent = getIntent();\n // passing intent's extra to the fragment\n Bundle extras = intent.getExtras();\n Bundle arguments = (extras != null ? new Bundle(extras) : new Bundle());\n switch (itemId) {\n case R.id.nav_journal:\n arguments.putString(TITLE, getString(R.string.Journal));\n switchFragment(journalFragment, arguments);\n break;\n case R.id.nav_black_list:\n arguments.putString(TITLE, getString(R.string.Black_list));\n arguments.putInt(CONTACT_TYPE, Contact.TYPE_BLACK_LIST);\n switchFragment(blackListFragment, arguments);\n break;\n case R.id.nav_white_list:\n arguments.putString(TITLE, getString(R.string.White_list));\n arguments.putInt(CONTACT_TYPE, Contact.TYPE_WHITE_LIST);\n switchFragment(whiteListFragment, arguments);\n break;\n case R.id.nav_sms:\n arguments.putString(TITLE, getString(R.string.Messaging));\n switchFragment(smsFragment, arguments);\n break;\n case R.id.nav_settings:\n arguments.putString(TITLE, getString(R.string.Settings));\n switchFragment(settingsFragment, arguments);\n break;\n default:\n arguments.putString(TITLE, getString(R.string.Information));\n switchFragment(informationFragment, arguments);\n break;\n }\n\n // remove used extras\n intent.removeExtra(LIST_POSITION);\n }", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "interface DownloadsPres extends LifeCycleMap\n {\n Fragment getAdapterFragment(int position);\n }", "public void filterActivities(int mActivity) {\n ArrayList<DiscoverTile> newTest = new ArrayList<DiscoverTile>();\n ArrayList<DiscoverTile> source = new ArrayList<>();\n if (TFmode == useDTF) {\n source = Test;\n } else if (TFmode == useFTF) {\n source = filtered;\n }\n\n // Check to see if all activities have been selected.\n if (mActivity != R.drawable.ic_all) {\n // Loop through to filter out activities.\n for (int i = 0; i < source.size(); i++) {\n for (int j = 0; j < source.get(i).noOfActivities(); j++) {\n int activity = source.get(i).getActivities().get(j);\n if (activity == mActivity) {\n //Log.d(TAG, \"Yes\");\n newTest.add(source.get(i));\n break;\n }\n //Log.d(TAG, \"No\");\n }\n }\n } else { // Show all tiles if 'all' has been selected.\n newTest = source;\n }\n\n\n // Based on the TFmode, the process of restarting the fragment which show tiles will differ.\n switch (TFmode) {\n case useDTF:\n if (filteredTileFragment == null) {\n // Create filteredTileFragment.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", newTest);\n filteredTileFragment.setArguments(bundle);\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.discover_tilefragment, filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n } else {\n // May not need to exist.\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.remove(filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n\n // Edit new fragment.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", newTest);\n filteredTileFragment.setArguments(bundle);\n fragmentTransaction.add(R.id.discover_tilefragment, filteredTileFragment);\n\n fragmentTransaction.commit();\n }\n break;\n case useFTF:\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.remove(filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n\n // Edit new fragment.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", newTest);\n filteredTileFragment.setArguments(bundle);\n fragmentTransaction.add(R.id.discover_tilefragment, filteredTileFragment);\n\n fragmentTransaction.commit();\n break;\n\n }\n\n }", "public interface ShowcaseFragment {\n\n /** @return If any the tag to use when this is into a backstack */\n @Nullable\n String getBackstackTag();\n\n /** @return The resourceId for the title */\n int getTitleId();\n}", "public void W(Fragment fragment, int i2, int i3, int i4, boolean z2) {\n int i5;\n Fragment fragment2;\n boolean z3;\n ViewGroup viewGroup;\n String str;\n Parcelable parcelable;\n Parcelable parcelable2;\n Fragment fragment3;\n int i6;\n int i7 = 1;\n if (!fragment.k || fragment.z) {\n i5 = i2;\n if (i5 > 1) {\n i5 = 1;\n }\n } else {\n i5 = i2;\n }\n if (fragment.l && i5 > (i6 = fragment.f902b)) {\n i5 = (i6 != 0 || !fragment.u()) ? fragment.f902b : 1;\n }\n int i8 = 3;\n if (fragment.F && fragment.f902b < 3 && i5 > 2) {\n i5 = 2;\n }\n d.b bVar = fragment.N;\n int min = bVar == d.b.CREATED ? Math.min(i5, 1) : Math.min(i5, bVar.ordinal());\n int i9 = fragment.f902b;\n if (i9 <= min) {\n if (!fragment.m || fragment.n) {\n if (!(fragment.c() == null && fragment.g() == null)) {\n fragment.B(null);\n fragment.C(null);\n W(fragment, fragment.s(), 0, 0, true);\n }\n int i10 = fragment.f902b;\n if (i10 != 0) {\n if (i10 != 1) {\n if (i10 != 2) {\n }\n if (min <= 2) {\n fragment.t.X();\n fragment.t.K();\n i8 = 3;\n fragment.f902b = 3;\n fragment.C = false;\n fragment.C = true;\n fragment.O.d(d.a.ON_START);\n j jVar = fragment.t;\n jVar.u = false;\n jVar.v = false;\n jVar.H(3);\n z(fragment, false);\n } else {\n i8 = 3;\n }\n if (min > i8) {\n fragment.t.X();\n fragment.t.K();\n fragment.f902b = 4;\n fragment.C = false;\n fragment.C = true;\n fragment.O.d(d.a.ON_RESUME);\n j jVar2 = fragment.t;\n jVar2.u = false;\n jVar2.v = false;\n jVar2.H(4);\n fragment.t.K();\n x(fragment, false);\n fragment.f903c = null;\n fragment.d = null;\n }\n }\n } else if (min > 0) {\n Bundle bundle = fragment.f903c;\n if (bundle != null) {\n bundle.setClassLoader(this.p.f579c.getClassLoader());\n fragment.d = fragment.f903c.getSparseParcelableArray(\"android:view_state\");\n String string = fragment.f903c.getString(\"android:target_state\");\n if (string == null) {\n fragment3 = null;\n } else {\n fragment3 = this.g.get(string);\n if (fragment3 == null) {\n f0(new IllegalStateException(\"Fragment no longer exists for key \" + \"android:target_state\" + \": unique id \" + string));\n throw null;\n }\n }\n String str2 = fragment3 != null ? fragment3.e : null;\n fragment.h = str2;\n if (str2 != null) {\n fragment.i = fragment.f903c.getInt(\"android:target_req_state\", 0);\n }\n boolean z4 = fragment.f903c.getBoolean(\"android:user_visible_hint\", true);\n fragment.G = z4;\n if (!z4) {\n fragment.F = true;\n if (min > 2) {\n min = 2;\n }\n }\n }\n h hVar = this.p;\n fragment.s = hVar;\n Fragment fragment4 = this.r;\n fragment.u = fragment4;\n fragment.r = fragment4 != null ? fragment4.t : hVar.f;\n Fragment fragment5 = fragment.g;\n if (fragment5 != null) {\n Fragment fragment6 = this.g.get(fragment5.e);\n Fragment fragment7 = fragment.g;\n if (fragment6 == fragment7) {\n if (fragment7.f902b < 1) {\n W(fragment7, 1, 0, 0, true);\n }\n fragment.h = fragment.g.e;\n fragment.g = null;\n } else {\n throw new IllegalStateException(\"Fragment \" + fragment + \" declared target fragment \" + fragment.g + \" that does not belong to this FragmentManager!\");\n }\n }\n String str3 = fragment.h;\n if (str3 != null) {\n Fragment fragment8 = this.g.get(str3);\n if (fragment8 == null) {\n throw new IllegalStateException(\"Fragment \" + fragment + \" declared target fragment \" + fragment.h + \" that does not belong to this FragmentManager!\");\n } else if (fragment8.f902b < 1) {\n W(fragment8, 1, 0, 0, true);\n }\n }\n v(fragment, this.p.f579c, false);\n fragment.t.d(fragment.s, new c(fragment), fragment);\n fragment.C = false;\n h hVar2 = fragment.s;\n Context context = hVar2.f579c;\n fragment.C = true;\n if (hVar2.f578b != null) {\n fragment.C = false;\n fragment.C = true;\n }\n if (fragment.C) {\n if (fragment.u == null) {\n this.p.g(fragment);\n }\n q(fragment, this.p.f579c, false);\n if (!fragment.M) {\n w(fragment, fragment.f903c, false);\n Bundle bundle2 = fragment.f903c;\n fragment.t.X();\n fragment.f902b = 1;\n fragment.C = false;\n fragment.R.a(bundle2);\n fragment.C = true;\n if (!(bundle2 == null || (parcelable2 = bundle2.getParcelable(\"android:support:fragments\")) == null)) {\n fragment.t.a0(parcelable2);\n fragment.t.k();\n }\n j jVar3 = fragment.t;\n if (!(jVar3.o >= 1)) {\n jVar3.k();\n }\n fragment.M = true;\n if (fragment.C) {\n fragment.O.d(d.a.ON_CREATE);\n r(fragment, fragment.f903c, false);\n } else {\n throw new z(\"Fragment \" + fragment + \" did not call through to super.onCreate()\");\n }\n } else {\n Bundle bundle3 = fragment.f903c;\n if (!(bundle3 == null || (parcelable = bundle3.getParcelable(\"android:support:fragments\")) == null)) {\n fragment.t.a0(parcelable);\n fragment.t.k();\n }\n fragment.f902b = 1;\n }\n } else {\n throw new z(\"Fragment \" + fragment + \" did not call through to super.onAttach()\");\n }\n }\n if (min > 0 && fragment.m && !fragment.p) {\n fragment.w(fragment.x(fragment.f903c), null, fragment.f903c);\n fragment.E = null;\n }\n if (min > 1) {\n if (!fragment.m) {\n int i11 = fragment.w;\n if (i11 == 0) {\n viewGroup = null;\n } else if (i11 != -1) {\n viewGroup = (ViewGroup) this.q.b(i11);\n if (viewGroup == null && !fragment.o) {\n try {\n h hVar3 = fragment.s;\n Context context2 = hVar3 == null ? null : hVar3.f579c;\n if (context2 != null) {\n str = context2.getResources().getResourceName(fragment.w);\n StringBuilder d2 = b.a.a.a.a.d(\"No view found for id 0x\");\n d2.append(Integer.toHexString(fragment.w));\n d2.append(\" (\");\n d2.append(str);\n d2.append(\") for fragment \");\n d2.append(fragment);\n f0(new IllegalArgumentException(d2.toString()));\n throw null;\n }\n throw new IllegalStateException(\"Fragment \" + fragment + \" not attached to a context.\");\n } catch (Resources.NotFoundException unused) {\n str = \"unknown\";\n }\n }\n } else {\n f0(new IllegalArgumentException(\"Cannot create fragment \" + fragment + \" for a container view with no id\"));\n throw null;\n }\n fragment.D = viewGroup;\n fragment.w(fragment.x(fragment.f903c), viewGroup, fragment.f903c);\n fragment.E = null;\n }\n fragment.t.X();\n fragment.f902b = 2;\n fragment.C = false;\n fragment.C = true;\n j jVar4 = fragment.t;\n jVar4.u = false;\n jVar4.v = false;\n jVar4.H(2);\n p(fragment, fragment.f903c, false);\n fragment.f903c = null;\n }\n if (min <= 2) {\n }\n if (min > i8) {\n }\n } else {\n return;\n }\n } else if (i9 > min) {\n if (i9 != 1) {\n if (i9 != 2) {\n if (i9 != 3) {\n if (i9 == 4) {\n if (min < 4) {\n fragment.t.H(3);\n fragment.O.d(d.a.ON_PAUSE);\n fragment.f902b = 3;\n fragment.C = false;\n fragment.C = true;\n u(fragment, false);\n }\n }\n }\n if (min < 3) {\n j jVar5 = fragment.t;\n jVar5.v = true;\n jVar5.H(2);\n fragment.O.d(d.a.ON_STOP);\n fragment.f902b = 2;\n fragment.C = false;\n fragment.C = true;\n A(fragment, false);\n }\n }\n if (min < 2) {\n fragment.t.H(1);\n fragment.f902b = 1;\n fragment.C = false;\n fragment.C = true;\n b.C0019b bVar2 = ((a.n.a.b) a.n.a.a.b(fragment)).f655b;\n int i12 = bVar2.f657b.i();\n for (int i13 = 0; i13 < i12; i13++) {\n Objects.requireNonNull(bVar2.f657b.j(i13));\n }\n fragment.p = false;\n B(fragment, false);\n fragment.D = null;\n fragment.P = null;\n fragment.Q.g(null);\n fragment.E = null;\n fragment.n = false;\n }\n }\n if (min < 1) {\n if (this.w) {\n if (fragment.c() != null) {\n View c2 = fragment.c();\n fragment.B(null);\n c2.clearAnimation();\n } else if (fragment.g() != null) {\n Animator g2 = fragment.g();\n fragment.C(null);\n g2.cancel();\n }\n }\n if (fragment.c() == null && fragment.g() == null) {\n boolean z5 = fragment.l && !fragment.u();\n if (z5 || this.E.b(fragment)) {\n h hVar4 = this.p;\n if (hVar4 instanceof t) {\n z3 = this.E.f;\n } else {\n Context context3 = hVar4.f579c;\n z3 = context3 instanceof Activity ? !((Activity) context3).isChangingConfigurations() : true;\n }\n if (z5 || z3) {\n l lVar = this.E;\n Objects.requireNonNull(lVar);\n l lVar2 = lVar.f593c.get(fragment.e);\n if (lVar2 != null) {\n lVar2.a();\n lVar.f593c.remove(fragment.e);\n }\n s sVar = lVar.d.get(fragment.e);\n if (sVar != null) {\n sVar.a();\n lVar.d.remove(fragment.e);\n }\n }\n fragment.t.m();\n fragment.O.d(d.a.ON_DESTROY);\n fragment.f902b = 0;\n fragment.C = false;\n fragment.M = false;\n fragment.C = true;\n s(fragment, false);\n } else {\n fragment.f902b = 0;\n }\n fragment.C = false;\n fragment.C = true;\n fragment.L = null;\n j jVar6 = fragment.t;\n if (!jVar6.w) {\n jVar6.m();\n fragment.t = new j();\n }\n t(fragment, false);\n if (!z2) {\n if (!z5 && !this.E.b(fragment)) {\n fragment.s = null;\n fragment.u = null;\n fragment.r = null;\n String str4 = fragment.h;\n if (!(str4 == null || (fragment2 = this.g.get(str4)) == null || !fragment2.A)) {\n fragment.g = fragment2;\n }\n } else if (this.g.get(fragment.e) != null) {\n for (Fragment fragment9 : this.g.values()) {\n if (fragment9 != null && fragment.e.equals(fragment9.h)) {\n fragment9.g = fragment;\n fragment9.h = null;\n }\n }\n this.g.put(fragment.e, null);\n if (!S()) {\n this.E.f592b.remove(fragment);\n }\n String str5 = fragment.h;\n if (str5 != null) {\n fragment.g = this.g.get(str5);\n }\n fragment.t();\n fragment.e = UUID.randomUUID().toString();\n fragment.k = false;\n fragment.l = false;\n fragment.m = false;\n fragment.n = false;\n fragment.o = false;\n fragment.q = 0;\n fragment.r = null;\n fragment.t = new j();\n fragment.s = null;\n fragment.v = 0;\n fragment.w = 0;\n fragment.x = null;\n fragment.y = false;\n fragment.z = false;\n }\n }\n } else {\n fragment.b().f907c = min;\n if (fragment.f902b == i7) {\n Log.w(\"FragmentManager\", \"moveToState: Fragment state for \" + fragment + \" not updated inline; expected state \" + i7 + \" found \" + fragment.f902b);\n fragment.f902b = i7;\n return;\n }\n return;\n }\n }\n }\n i7 = min;\n if (fragment.f902b == i7) {\n }\n }", "private void m6941a() {\n getAsyncTaskQueue().a(new RoutesSelfFrag$1(this), new String[0]);\n }", "public final void mo91949l(int i) {\n boolean z = false;\n boolean z2 = true;\n if (i == 0) {\n C0608j childFragmentManager = getChildFragmentManager();\n StringBuilder sb = new StringBuilder();\n sb.append(MusAbsProfileFragment.f94515y);\n sb.append(1);\n C36340al alVar = (C36340al) childFragmentManager.mo2644a(sb.toString());\n if (alVar == null) {\n alVar = ((IBridgeService) ServiceManager.get().getService(IBridgeService.class)).createAwemeListFragment(C21085a.m71117a().mo56926b(), 0, C21115b.m71197a().getCurUserId(), C6861a.m21337f().getCurUser().getSecUid(), true, false);\n }\n mo91942a((ProfileListFragment) alVar, Integer.valueOf(0));\n alVar.mo90817a(this.f94722ah);\n if (this.f94528N != this.f94516A.indexOf(Integer.valueOf(0))) {\n z2 = false;\n }\n alVar.mo90832e(z2);\n alVar.mo92454h(C43105eq.m136725a(0));\n } else if (i == 2) {\n C0608j childFragmentManager2 = getChildFragmentManager();\n StringBuilder sb2 = new StringBuilder();\n sb2.append(MusAbsProfileFragment.f94515y);\n sb2.append(2);\n this.f94794ao = (C36340al) childFragmentManager2.mo2644a(sb2.toString());\n if (this.f94794ao == null) {\n this.f94794ao = ((IBridgeService) ServiceManager.get().getService(IBridgeService.class)).createAwemeListFragment(C21085a.m71117a().mo56926b(), 1, C21115b.m71197a().getCurUserId(), C6861a.m21337f().getCurUser().getSecUid(), true, false);\n }\n mo91942a((ProfileListFragment) this.f94794ao, Integer.valueOf(1));\n this.f94794ao.mo90831e(this.f94796aq);\n this.f94794ao.mo90817a(this.f94722ah);\n C36340al alVar2 = this.f94794ao;\n if (this.f94528N == this.f94516A.indexOf(Integer.valueOf(1))) {\n z = true;\n }\n alVar2.mo90832e(z);\n this.f94794ao.mo92454h(C43105eq.m136725a(1));\n } else {\n if (i == 3) {\n OriginMusicListFragment Q = m116771Q();\n mo91942a((ProfileListFragment) Q, Integer.valueOf(3));\n Q.mo92306h(C43105eq.m136725a(3));\n Q.mo92305g(true);\n Q.f87866e = this;\n Q.mo65501a(C21115b.m71197a().getCurUserId(), C6861a.m21337f().getCurUser().getSecUid());\n }\n }\n }", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface IAnimProductionRecordFragment extends IMVPList {\n void refresh(List<QroducingAreaProcessListBean.DataListBean> dataListBean);\n\n void loadMore(List<QroducingAreaProcessListBean.DataListBean> dataListBean);\n\n}", "public abstract String getFragmentName();", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "protected ActivityPart getActivityPart() {\n\t\treturn (ActivityPart) getHost();\n\t}", "public int getFragmentBundles();", "public IntentDetailFragment() {\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tMyUtilsContest.CUR_RFRAGTAG = MyUtilsContest.BottomTag.Tag_one;\n\t}", "@Override\n public void onFragmentInteraction(Uri uri) {\n }", "@Override\n public void onFragmentInteraction(Uri uri) {\n }", "public interface FragmentInteractionListener {\n int FRAG_ADD = 1;\n int FRAG_REPLACE = 2;\n int FRAG_ADD_ANIMATE = 3;\n int FRAG_DIALOG = 4;\n int FRAG_REPLACE_WITH_STACK = 5;\n int FRAG_ADD_WITH_STACK = 6;\n\n void setCurrentFragment(Bundle bundle, int fragmentType, int transType, int frameId);\n\n void popTopFragment();\n\n void popAllFromStack();\n\n String getActiveFragmentTag();\n\n}", "public interface UrlFragment extends EObject\n{\n}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n try{\n// mCallback = (FragmentIterationListener) activity;\n// }catch(CastClassException ex){\n }catch(Exception ex){\n Log.e(MovimientoListFragment.TAG, \"El Activity debe implementar la interfaz FragmentIterationListener\");\n }\n }", "public interface IMainView extends BaseView {\n\n void inflateBottomViewParent();\n\n void moveToHomeWorkActivity();\n\n void moveToAttendanceActivity();\n\n void moveToMoreFragment();\n\n void logout();\n\n\n}", "public interface Interfaz_Icon {\n //interfaz de comunicacion entre fragment y activity\n public void select_details(int icon, String text);\n}", "public interface IBaseActivityListEvent {\n\n /**\n * Creates a new fragment with the listentries of the given ShoppingList item.\n *\n * @param _ShoppingList of the list that the content should be shown.\n */\n void selectList(ShoppingList _ShoppingList);\n}", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"regis\",mostCurrent.activityBA);\n //BA.debugLineNum = 31;BA.debugLine=\"Activity.Title = \\\"Register\\\"\";\nmostCurrent._activity.setTitle(BA.ObjectToCharSequence(\"Register\"));\n //BA.debugLineNum = 33;BA.debugLine=\"ImageView1.Visible = False\";\nmostCurrent._imageview1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void onFragmentAttached() {\n }", "Activity getActivity();", "Activity getActivity();", "public void mo5336a(Parcelable parcelable) {\n }", "@Override\r\n\tpublic Fragment getItem(int arg0) {\n\t\t\r\n\t\tswitch (arg0) {\r\n\t\t\r\n case 0:\r\n \t \r\n \t return new MyTasks();\r\n \t \r\n \t \r\n case 1:\r\n \t \r\n \t return new PlannedActivities();\r\n \t \r\n \t \r\n /* case 2:\r\n \t \r\n \t return new MOPWheatHome();*/\r\n \t \r\n case 2:\r\n \t return new MyRetailers();\r\n \t // return new ExpensesHome();\r\n \r\n case 3:\r\n \t return new FarmerHome();\r\n case 4:\r\n \t return new Stock();\r\n case 5:\r\n \t return new UpcomingDemoHome();\r\n case 6:\r\n \t return new Reports_FA();\r\n /* case 4:\r\n \t \r\n \t return new MOPMustardHome();\r\n \t \r\n case 5:\r\n \t \r\n \t return new RetailerHomeScreen();*/\r\n \t \r\n /*case 6:\r\n \t \r\n \t return new PotashContent();\r\n \t */\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public String getActivity(){\n return Activity;\n }", "void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);", "@Override\n\tpublic Activity getActivity() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Activity getActivity() {\n\t\treturn null;\n\t}", "int getActivityLayoutId();", "public interface ICorrelationFragmentPresenter extends BasePresenter{\n void studyVideoList(String token,int offset, int limit);\n\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "@Override\n public void created(Bundle savedInstance) {\n activity = getActivity();\n //final File methodTracingFile = new File(activity.getExternalFilesDir(\"Caches\"), \"AppStart.trace\");\n //Log.d(TAG, \"methodTracingPath=\" + methodTracingFile.getPath());\n //Debug.startMethodTracing(methodTracingFile.getPath());\n PlayerApp.getRefWatcher(activity).watch(this);\n attachView = this.view;\n\n mMovieFragModel = new MovieFragModel();\n initListener();\n pagerHeader = (ViewPager) getActivity().findViewById(R.id.frag_pagerHeader);\n\n homepage_recommendview_title = (TextView) getActivity().findViewById(R.id.homepage_recommendview_title);\n ci = (CircleIndicator) getActivity().findViewById(R.id.frag_ci);\n initMovieView();\n\n\n\n }", "public static com.google.android.gms.internal.zzpc zza(android.support.p000v4.app.FragmentActivity r3) {\n /*\n r0 = zzaoq;\n r0 = r0.get(r3);\n r0 = (java.lang.ref.WeakReference) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x000a:\n r0 = r0.get();\n r0 = (com.google.android.gms.internal.zzpc) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x0012:\n return r0;\n L_0x0013:\n r0 = r3.getSupportFragmentManager();\t Catch:{ ClassCastException -> 0x0048 }\n r1 = \"SupportLifecycleFragmentImpl\";\n r0 = r0.findFragmentByTag(r1);\t Catch:{ ClassCastException -> 0x0048 }\n r0 = (com.google.android.gms.internal.zzpc) r0;\t Catch:{ ClassCastException -> 0x0048 }\n if (r0 == 0) goto L_0x0027;\n L_0x0021:\n r1 = r0.isRemoving();\n if (r1 == 0) goto L_0x003d;\n L_0x0027:\n r0 = new com.google.android.gms.internal.zzpc;\n r0.<init>();\n r1 = r3.getSupportFragmentManager();\n r1 = r1.beginTransaction();\n r2 = \"SupportLifecycleFragmentImpl\";\n r1 = r1.add(r0, r2);\n r1.commitAllowingStateLoss();\n L_0x003d:\n r1 = zzaoq;\n r2 = new java.lang.ref.WeakReference;\n r2.<init>(r0);\n r1.put(r3, r2);\n goto L_0x0012;\n L_0x0048:\n r0 = move-exception;\n r1 = new java.lang.IllegalStateException;\n r2 = \"Fragment with tag SupportLifecycleFragmentImpl is not a SupportLifecycleFragmentImpl\";\n r1.<init>(r2, r0);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzpc.zza(android.support.v4.app.FragmentActivity):com.google.android.gms.internal.zzpc\");\n }", "public interface MeiziView extends IView {\n void finish();\n boolean isFavorite();\n void favoriteOrNot();\n Activity getActivity();\n void onPageSelected(int position);\n void onPageScrollStateChanged(int state);\n}", "private final boolean m123457a(Bundle bundle) {\n List list;\n if (bundle == null) {\n Bundle bundle2 = new Bundle();\n ArrayList arrayList = new ArrayList();\n C33153d a = C33153d.m106972a();\n if (a != null) {\n list = a.mo84910c();\n } else {\n list = null;\n }\n if (list != null) {\n C33153d a2 = C33153d.m106972a();\n C7573i.m23582a((Object) a2, \"MediaManager.instance()\");\n arrayList = (ArrayList) a2.mo84910c();\n }\n String stringExtra = getIntent().getStringExtra(\"file_path\");\n if (getIntent().hasExtra(\"open_sdk_import_media_list\")) {\n arrayList = getIntent().getParcelableArrayListExtra(\"open_sdk_import_media_list\");\n C7573i.m23582a((Object) arrayList, \"intent.getParcelableArra…PEN_SDK_IMPORT_MEDIALIST)\");\n }\n boolean z = false;\n if (!TextUtils.isEmpty(stringExtra) || !arrayList.isEmpty()) {\n String str = \"is_multi_mode\";\n if (arrayList.size() > 1) {\n z = true;\n }\n bundle2.putBoolean(str, z);\n bundle2.putString(\"single_video_path\", stringExtra);\n bundle2.putParcelableArrayList(\"multi_video_path_list\", arrayList);\n bundle2.putParcelable(\"page_intent_data\", getIntent());\n getSupportFragmentManager().mo2645a().mo2585a((int) R.id.cuv, (Fragment) C38650a.m123512a(bundle2)).mo2604c();\n } else {\n finish();\n return false;\n }\n }\n return true;\n }", "public interface IBaseFragmentView {\n}", "@Override\n public void onClick(View v) {\n for (BAActivityEntryFragmentGridItem item : entryItems) {\n BAActivityFavorited favoritedActivity = item.getActivityFavorited();\n //Log.i(TAG, item.getName() + \": \" + item.isEntered());\n BAActivityEntry entry = new BAActivityEntry();\n entry.setActivityType(favoritedActivity.getActivtyType());\n entry.setName(favoritedActivity.getName());\n entry.setTimeOfEntry(currentTime);\n entry.setDateInLong(formattedTime.getCurrentTimeInMilliSecs());\n if (item.isEntered()) {\n activityViewModel.addActivityEntry(entry, formattedTime.getCurrentDateAsYYYYMMDD());\n //activityRepository.insertFavoritedActivity(favoritedActivity);\n if (FirebaseAuth.getInstance().getCurrentUser() != null) {\n firebaseManager.getActivityTodayRef().\n child(getCurrentTimeInString())\n .child(favoritedActivity.getName())\n .child(\"numEntry\").setValue(1L);\n firebaseManager.getActivityTodayRef()\n .child(getCurrentTimeInString())\n .child(favoritedActivity.getName())\n .child(\"type\")\n .setValue(favoritedActivity.getActivtyType());\n }\n }\n }\n ViewPager viewPager = getActivity().findViewById(R.id.activity_make_entry_viewpager);\n int currentItem = viewPager.getCurrentItem();\n Log.i(TAG, \"# of fragments: \" + userInputsInUseList.size() + \", \" + \"current position: \" + currentItem);\n if (userInputsInUseList.size() == 1 || currentItem == userInputsInUseList.size() - 1) {\n Intent intent = new Intent(getActivity(), MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(intent);\n } else {\n viewPager.setCurrentItem(currentItem + 1, true);\n }\n }", "public interface SubTabFragmentCallback {\n void onTakeSnapshot();\n}", "public interface ActivityModuleItem {\n ActivityModuleItemView getActivityModuleItemView();\n}", "@Override\n public void onAttach(Activity activity) {\n \tsuper.onAttach(activity);\n \tthis.act=activity;\n \t\n try{\n mCallback = (FragmentIterationListener) activity;\n }catch(ClassCastException ex){\n Log.e(\"ExampleFragment\", \"El Activity debe implementar la interfaz FragmentIterationListener\");\n }\n }", "public interface IHomeFragment extends IMvpView {\n\n void getDoctorRequestNumber(int number);\n\n void getPatientRequestNumber(int number);\n\n void getReferralPatientRequestNumber(int number);\n}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState){\n\t\tmActivity=getActivity();\n\t\tsuper.onCreate(savedInstanceState);\n\t}", "void onFragmentInteractionMain();", "public void m6913a(int i) {\n FragmentTransaction beginTransaction = this.f5639h.beginTransaction();\n switch (i) {\n case 1:\n this.f5637f.setImageResource(C1373R.drawable.ic_section_location);\n if (this.f5645n != null) {\n beginTransaction.show(this.f5645n);\n } else {\n this.f5645n = new SectionListFragment();\n beginTransaction.add((int) C1373R.id.activity_competition_section_content, this.f5645n);\n }\n this.f5654w.setVisibility(8);\n break;\n case 2:\n this.f5637f.setImageResource(C1373R.drawable.ic_section_search_list);\n this.f5654w.setVisibility(0);\n if (this.f5645n != null) {\n beginTransaction.hide(this.f5645n);\n break;\n }\n break;\n }\n beginTransaction.setTransition(8194).commitAllowingStateLoss();\n this.f5637f.setEnabled(true);\n }", "private final void m136464d() {\n BaseFragment baseFragment;\n if (this.f98816d && this.f98817e && getView() != null && (baseFragment = this.f98814b) != null) {\n if (baseFragment.isDetached() || baseFragment.getContext() == null) {\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E0D86797D413B135B973A60B825AFDF79985\"), null, 2, null);\n return;\n }\n if (baseFragment.getActivity() != null) {\n FragmentActivity activity = baseFragment.getActivity();\n if ((activity != null ? activity.getApplication() : null) != null) {\n m136459a(baseFragment);\n return;\n }\n }\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E0D86797D413B135B973A60B825AFDF79986\"), null, 2, null);\n }\n }", "public interface DetailView {\n void initTabHost(JSONObject mJsonObject);\n\n void ExecutionUnitReuilt(String ExecutionUnit);\n\n void setAdapterListFileAttach(FileAttachAdapter attachAdapter, ArrayList<AttachFile> arrAttach, String TabName);\n\n void setVisibilitiesButtonForward(String Resuilt, String TabName);\n\n void setAdapterListDetais(List<DetailsRows> arrDetails, String TabName);\n\n void setAdapterMsgGroupTask(List<GroupMsgTasksRow> arrDocConnect,String TabName);\n\n void setAdapterContentTask(List<ContentTasksRow> arrDocConnect, String TabName, ModuleRow moduleRow);\n\n void setAdapterReportTask(List<ReportTasksRow> arrDocConnect,String TabName, ModuleRow moduleRow);\n\n void SetViewList(AndroidTreeView treeView,String TabName);\n\n void setAdapterFeedBack(List<FeedBackRow> arrFeedBack,String TabName, ModuleRow moduleRow);\n\n void deleteNotify();\n\n void CheckShowMenuOther(JSONObject mOther, String other);\n\n void closeProgress();\n\n void ToastError(String s);\n\n boolean isDestroy();\n\n void getContextMenu(ArrayList<ContextMenuForwardRow> arrContextMenu);\n\n void startIntent();\n\n void showError();\n\n void inseartInputPersonDatabase(String s);\n\n void DetleteRow(boolean mResuilt);\n\n void setVisible(int i);\n\n void getArrMenuDialog(List<DialogMenuDetailAdapter.ItemMenu> arrMenu);\n\n void startAddTransfer(int tapType);\n}", "public interface MainF4Presenter {\n void loadItem();\n\n public interface fragment{\n void updateView();\n }\n}", "public interface FragmentCallback {\n void func1(String s);\n}", "interface C1287b extends View<Fragment> {\n void mo4315a(int i);\n }", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "private final void m136459a(BaseFragment baseFragment) {\n Theater a;\n TopInfoFD topInfoFD;\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E5F3\"), null, 2, null);\n View view = getView();\n if (view != null && (a = StaticProperty.f99549a.mo120385a()) != null) {\n m136465e();\n if (view != null) {\n ViewGroup viewGroup = (ViewGroup) view;\n if (StaticProperty.f99549a.mo120391e()) {\n topInfoFD = new ThemeTopInfoFD(baseFragment, viewGroup);\n } else {\n topInfoFD = new TopInfoFD(baseFragment, viewGroup);\n }\n ViewStub viewStub = (ViewStub) view.findViewById(R.id.fd_top_info);\n C32569u.m150513a((Object) viewStub, C6969H.m41409d(\"G7F8AD00DF136AF16F2018077FBEBC5D8\"));\n topInfoFD.mo119787a(viewStub);\n topInfoFD.mo119788a(a);\n BottomControlFD bottomControlFD = new BottomControlFD(baseFragment, viewGroup);\n ViewStub viewStub2 = (ViewStub) view.findViewById(R.id.fd_bottom_control);\n C32569u.m150513a((Object) viewStub2, C6969H.m41409d(\"G7F8AD00DF136AF16E401845CFDE8FCD4668DC108B03C\"));\n bottomControlFD.mo119787a(viewStub2);\n bottomControlFD.mo119788a(a);\n view.post(new RunnableC28690b(viewGroup, a, view, this, baseFragment));\n return;\n }\n throw new TypeCastException(C6969H.m41409d(\"G6796D916FF33AA27E8018408F0E083D46890C15AAB3FEB27E900DD46E7E9CF977D9AC51FFF31A52DF401994CBCF3CAD27ECDE313BA278C3BE91B80\"));\n }\n }", "@Pretty(headerName = \"SecondActivity\")\n private void intializeActivity(Bundle args) {\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\t\tmMainView = inflater.inflate(R.layout.tzfrag, (ViewGroup) getActivity()\r\n\t\t\t\t.findViewById(R.id.vp), false);\r\n\t\ttzlv = (AutoListView) mMainView.findViewById(R.id.tzlv);\r\n\t\tprocess=(ProgressBar) mMainView.findViewById(R.id.progressBar1);\r\n\t\ttips=(TextView) mMainView.findViewById(R.id.tips);\r\n\t\ttzlv.setOnRefreshListener(this);\r\n\t\ttzlv.setOnLoadListener(this);\r\n\t\ttzlv.setFocusableInTouchMode(true);\r\n\t\ttzlv.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent i = new Intent(getActivity(), TzIn.class);\r\n\t\t\t\tSystem.out.println(position);\r\n\t\t\t\tif (position != 0 && position != tz.size() + 1) {\r\n\t\t\t\t\ti.putExtra(\"tzid\", tz.get(position - 1).getId());\r\n\t\t\t\t\ti.putExtra(\"bkid\", tz.get(position - 1).getBkid());\r\n\t\t\t\t\tstartActivityForResult(i, 0);\r\n\t\t\t\t\tgetActivity().overridePendingTransition(R.anim.push_left_in,\r\n\t\t\t\t\t\t\tR.anim.push_left_out);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tinitView();\r\n\t\t\r\n\t}", "public interface FragmentVisibility {\n void fragmentBecameVisible();\n}", "public interface FragmentManager {\n /**\n * Handle the next incoming record batch.\n *\n * @param batch\n * @return True if the fragment has enough incoming data to be able to be run.\n * @throws FragmentSetupException, IOException\n */\n boolean handle(IncomingDataBatch batch) throws FragmentSetupException, IOException;\n\n /**\n * Get the fragment runner for this incoming fragment. Note, this can only be requested once.\n *\n * @return\n */\n FragmentExecutor getRunnable();\n\n void cancel();\n\n /**\n * Find out if the FragmentManager has been cancelled.\n *\n * @return true if the FragmentManager has been cancelled.\n */\n boolean isCancelled();\n\n /**\n * If the executor is paused (for testing), this method should unpause the executor. This method should handle\n * multiple calls.\n */\n void unpause();\n\n boolean isWaiting();\n\n FragmentHandle getHandle();\n\n FragmentContext getFragmentContext();\n\n void receivingFragmentFinished(final FragmentHandle handle);\n\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState){\n\t\tsuper.onCreate(savedInstanceState);\n\t\t/*LIST PAGES*/\n\t\taddTab(R.string.main,MainActivity.class);\n\t\t//addTab(R.string.menu,MenuActivity.class);\n\t\taddTab(R.string.menu,PagerCore.MenuActivity.class);\n\t\taddTab(R.string.murasyoulaw,LawViewerActivity.class);\n\n\t\t//for(Map.Entry<Integer,Class<? extends Activity>> i:dic.entrySet())helper.add(i);\n\t\tfor(Map.Entry<Integer,Class<? extends Activity>> i:helper)decorCache.put(dbg(i.getValue()),openActivity(i.getValue()));\n\t\tfor(Map.Entry<Class<? extends Activity>,View> i:decorCache.entrySet())helper2.add(i.getValue());\n\t\t\n\t\tif(sdkint>=21)getActionBar().setElevation(0);\n\t\tinstance=new WeakReference<PagerFlameActivity>(this);\n\t\tsetContentView(getLocalActivityManager().startActivity(\"core\",new Intent(this,PagerCore.class)).getDecorView());\n\t}", "void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);", "public void setFragments(Context c) {\n fragA = RecentHighscoreFragment.newInstance(0);\n fragB = RecentHighscoreFragment.newInstance(1);\n fragC = RecentHighscoreFragment.newInstance(2);\n }", "public interface SetFragmentView extends MvpBaseView {\n /**\n * 获取当前版本\n * @param versionBean\n */\n void getVersion(VersionBean versionBean);\n\n /**\n * 下载APK\n * @param o\n * @param versionBean\n * @param newVersion\n */\n void downLoadApk(File o, VersionBean versionBean, String newVersion);\n}", "@Override\n\tpublic int getActivityInfo() {\n\t\treturn Constants.ActivityInfo.ACTIVITY_ADDWAITACTIVITY;\n\t}", "public interface ListPersonaActivity {\n String TAG = \"listPersonaAct\";\n void showPersonas();\n}", "public void mo1505a(Parcelable parcelable) {\n }", "@Override\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_master_list, container, false);\n final GridView gridView = rootView.findViewById(R.id.images_grid_view);\n if (getString(R.string.screen_size).equals(\"tablet\")) {\n twoPane = true;\n gridView.setNumColumns(2);\n } else {\n twoPane = false;\n }\n MasterListAdapter listAdapter = new MasterListAdapter(getContext(), AndroidImageAssets.getAll());\n gridView.setAdapter(listAdapter);\n gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n int bodyPartNumber = position / 12;\n int listIndex = position - 12 * bodyPartNumber;\n\n switch (bodyPartNumber) {\n case 0:\n headIndex = listIndex;\n break;\n case 1:\n bodyIndex = listIndex;\n break;\n case 2:\n legIndex = listIndex;\n break;\n }\n if (twoPane) {\n FragmentManager fragmentManager = getFragmentManager();\n\n HeadFragment headFragment = new HeadFragment(headIndex);\n assert fragmentManager != null;\n fragmentManager.beginTransaction().replace(R.id.head_frame, headFragment)\n .commit();\n BodyFragment bodyFragment = new BodyFragment(bodyIndex);\n fragmentManager.beginTransaction().replace(R.id.body_frame, bodyFragment)\n .commit();\n LegFragment legFragment = new LegFragment(legIndex);\n fragmentManager.beginTransaction().replace(R.id.leg_frame, legFragment)\n .commit();\n } else {\n Bundle bundle = new Bundle();\n bundle.putInt(\"headIndex\", headIndex);\n bundle.putInt(\"bodyIndex\", bodyIndex);\n bundle.putInt(\"legIndex\", legIndex);\n\n Intent intent = new Intent(getContext(), AndroidMeActivity.class);\n intent.putExtras(bundle);\n\n startActivity(intent);\n }\n }\n });\n return rootView;\n }", "public final FragmentActivity mo97962O() {\n return (FragmentActivity) this.f33526d_;\n }", "public Intent getActivityIntent() {\n Intent intent = new Intent(this.context, InterstitialActivity.class);\n intent.setFlags(268435456);\n intent.addFlags(67108864);\n intent.putExtra(\"id\", getPlacementID());\n if (this.setAutoPlay) {\n intent.putExtra(\"auto_play\", this.autoPlay);\n }\n if (this.setCanClose) {\n intent.putExtra(\"can_close\", isBackButtonCanClose());\n }\n if (this.setMute) {\n intent.putExtra(\"mute\", getMute());\n }\n intent.putExtra(\"cat\", getCategories());\n intent.putExtra(\"pbk\", getPostback());\n intent.putExtra(\"b_color\", getButtonColor());\n intent.putExtra(\"skip_title\", getSkipText());\n intent.putExtra(\"creative\", getCreative());\n return intent;\n }" ]
[ "0.62524146", "0.6149453", "0.6058842", "0.6035932", "0.5941804", "0.58317626", "0.5782318", "0.57816", "0.57365066", "0.570155", "0.5659747", "0.5609193", "0.56071436", "0.5584818", "0.5584818", "0.55742866", "0.55733806", "0.5567801", "0.5534542", "0.5519502", "0.55131805", "0.55120367", "0.5501362", "0.54996437", "0.54826427", "0.54802585", "0.5478929", "0.54621494", "0.5451637", "0.5451097", "0.5448626", "0.5430387", "0.5400473", "0.5395667", "0.53909636", "0.5382359", "0.5376507", "0.5369271", "0.5366549", "0.53557616", "0.5355746", "0.53411317", "0.53411317", "0.53381747", "0.5332614", "0.5323852", "0.53181434", "0.531566", "0.5312505", "0.52999324", "0.52966404", "0.5293143", "0.5293143", "0.5288319", "0.52843297", "0.52825266", "0.527946", "0.5277708", "0.5277708", "0.52725554", "0.52708197", "0.5265104", "0.5259351", "0.52585906", "0.5255899", "0.5251619", "0.5250649", "0.525042", "0.5246353", "0.5239383", "0.52310175", "0.5228", "0.52269524", "0.5223025", "0.52203006", "0.52125657", "0.52076", "0.519841", "0.519711", "0.5194093", "0.51892924", "0.5185618", "0.51838905", "0.5178807", "0.517872", "0.5177142", "0.5175957", "0.51754624", "0.5174939", "0.51667464", "0.51653415", "0.5154084", "0.5146472", "0.51447165", "0.51429784", "0.51414096", "0.51412106", "0.51399815", "0.5138457", "0.51378906" ]
0.68135893
0
IFoodMgr: a thing that takes care of creating food tokens and their behaviours.
public interface IFoodMgr { /** * Update the IBubbleMgr - must be called on each pass thru update loop */ void update(Env world) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createFood() {\n }", "public TinyTokenManager() throws IOException {\n init();\n }", "Yard createYard();", "public interface Manager {\n\n}", "ImplementationManager createManager();", "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "public interface IFood {\n double printFood(); // visa hur många gram mat\n String foodsType(); // visa vilken sorts mat\n}", "public interface MonsterInterface {\r\n\r\n\t/**\r\n\t * Returns status of monster\r\n\t * \r\n\t * @return true or false\r\n\t */\r\n\tpublic boolean isDead();\r\n\r\n\t/**\r\n\t * Returns name of the monster\r\n\t * \r\n\t * @return name of the monster\r\n\t */\r\n\tpublic String getName();\r\n\r\n\t/**\r\n\t * Makes so that the monster takes damage\r\n\t * \r\n\t * @param damage\r\n\t */\r\n\tpublic void takeDamage(int damage);\r\n\r\n\t/**\r\n\t * Returns the monsters maximum health\r\n\t * \r\n\t * @return monsters max health\r\n\t */\r\n\tpublic int getMaxHealth();\r\n\r\n\t/**\r\n\t * Returns the amount of health the monster currently have\r\n\t * \r\n\t * @return monster health\r\n\t */\r\n\tpublic int getHealth();\r\n\r\n\t/**\r\n\t * Returns the amount of damage the monster does\r\n\t * \r\n\t * @return damage of monster\r\n\t */\r\n\tpublic int giveDamage();\r\n\r\n\t/**\r\n\t * Returns amount of experience the monster gives\r\n\t * \r\n\t * @return experience monster gives\r\n\t */\r\n\tpublic int getExperience();\r\n\r\n\t/**\r\n\t * Returns the amount of toughness the monster have\r\n\t * \r\n\t * @return toughness of monster\r\n\t */\r\n\tpublic int getToughness();\r\n\r\n\t/**\r\n\t * Returns the amount of gold the monster gives\r\n\t * \r\n\t * @return gold of monster\r\n\t */\r\n\tpublic int getGold();\r\n}", "public GameManager(){\r\n init = new Initialisation();\r\n tower=init.getTower();\r\n courtyard=init.getCourtyard();\r\n kitchen=init.getKitchen();\r\n banquetHall=init.getBanquetHall();\r\n stock=init.getStock();\r\n throneHall=init.getThroneHall();\r\n vestibule=init.getVestibule();\r\n stables=init.getStables();\r\n\r\n this.player = new Player(tower);\r\n\r\n push(new IntroductionState());\r\n\t}", "@Override\n public void apply(ResourceManager manager) {\n ExtendedFoodRegistry.clearExtendedFood();\n\n for (Identifier identifier : manager.findResources(\"rot\", path -> path.endsWith(\".json\"))) {\n HardcoreMod.LOGGER.debug(\"Processing resource: {}\", identifier.toString());\n\n try (InputStream stream = manager.getResource(identifier).getInputStream()) {\n JsonParser parser = new JsonParser();\n JsonObject root = parser.parse(new JsonReader(new InputStreamReader(stream))).getAsJsonObject();\n\n Set<Map.Entry<String, JsonElement>> entries = root.entrySet();\n for (Map.Entry<String, JsonElement> entry : entries) {\n String key = entry.getKey();\n Item item = Registry.ITEM.get(new Identifier(key));\n if (!Registry.ITEM.getId(item).toString().equals(key)) {\n throw new Exception(\"You fucked up putting this in: \" + key);\n }\n\n Gson gson = new Gson();\n JsonObject object = entry.getValue().getAsJsonObject();\n ExtendedFoodComponent component = gson.fromJson(object, ExtendedFoodComponent.class);\n // TODO: Requires input validation\n if (component != null) {\n ExtendedFoodRegistry.registerExtendedFood(item, component);\n } else {\n throw new Exception(\"Bad data in: \" + key);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public interface MyOntologyService {\n\n OWLOntology readMyOntology(OWLOntologyManager ontManager, String owlFilePath);\n\n OWLNamedIndividual applyClassAssertionFromObject(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n Object obj,\n String indName);\n\n void applyObjectPropertyAssertion(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_obj,\n String objectPropertyName,\n OWLNamedIndividual ind_field_obj);\n\n OWLObjectPropertyAssertionAxiom getObjectPropertyAssertionAxiom(\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n OWLNamedIndividual ind_object);\n\n void applyDataPropertyAssertion(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_obj,\n String dataPropertyName,\n Object data);\n\n OWLDataPropertyAssertionAxiom getDataPropertyAssertionAxiom(\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n Object data);\n\n OWLObjectProperty getObjectProperty(\n String propName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n OWLDataProperty getDataProperty(\n String propName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n OWLNamedIndividual getNamedIndividual(\n String indName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n boolean isObjectPropEntailed(\n PelletReasoner reasoner,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n OWLNamedIndividual ind_object);\n\n boolean isDataPropEntailed(\n PelletReasoner reasoner,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n Object data);\n\n// void createRuleObjectForTest(\n// OWLOntologyManager ontManager,\n// OWLDataFactory factory,\n// OWLOntology myOntology,\n// PrefixOWLOntologyFormat pm\n// );\n\n // Dilara's method\n //This method is to use OWL API and create rule from our own Rule object.\n SWRLRule getOWLRepresentation(RuleForPrinego rule);\n\n RuleForPrinego SWRLtoRule(SWRLRule swl);\n\n List<SWRLRule> listRules(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm\n );\n\n boolean createRule(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n SWRLRule rule\n );\n\n boolean deleteRule(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n SWRLRule rule\n );\n\n}", "public interface DrinksFactory {\n //饮料\n Drinks dBuild();\n\n //面包\n Bread bBuild();\n\n void buyWhat();\n}", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "@Override\n\tpublic void eatFood(Food f) {\n\t\t\n\t}", "public static void createArmy() {\n Unit unitOne = new Unit(\"Unit One\");\n Unit unitTwo = new Unit(\"Unit Two\");\n Unit unitThree = new Unit(\"Unit Three\");\n Unit unitFour = new Unit(\"Unit Four\");\n Unit unitFive = new Unit(\"Unit Five\");\n\n Knight knightOne = new Knight(\"Knight One\");\n Knight knightTwo = new Knight(\"Knight Two\");\n Knight knightThree = new Knight(\"Knight Three\");\n\n General general = new General(\"General\");\n Doctor doctor = new Doctor(\"Doctor\");\n }", "public interface GameFactory {\n\n /**\n * Creates an item stack from the given compound tag.\n *\n * @param tag\n * The tag.\n * @return The item stack.\n */\n ItemStack createItemStack(CompoundTag tag);\n\n /**\n * Gets the material map.\n * \n * @return The material map.\n */\n WorldMaterialMap getMaterialMap();\n}", "public interface NutsHome {\n\t/**\n\t * Initialize context by given resource \n\t * \n\t * @throws NutsHomeInitializeException\n\t */\n\tpublic void init(Resource resource) throws NutsHomeInitializeException;\n\t/**\n\t * Destroy the context and all nuts registered\n\t * \n\t * @throws ContextDestroyException\n\t */\n\tpublic void destroy() throws ContextDestroyException;\n\t\n\t/**\n\t * Get nut by passing name ,and type.\n\t * The name type combination should be UNIQUE across all nuts\n\t * If anyone is founded ,then return it,otherwise just throw {@code NutsNotFoundException}\n\t * \n\t * @param name\n\t * @return return a list of all nuts founded,if searching by name works ,then the return \n\t */\n\tpublic<T> T getNut(String name,T type) throws NutsNotFoundException;\n\t\n\t/**\n\t * Refresh the Nut by given name and type \n\t * The name type combination should be UNIQUE across all nuts\n\t * \n\t * @param name\n\t */\n\tpublic<T> void refreshNut(String name,T type) throws NutsRegisterException;\n}", "public interface IDogManager extends IInterface {\n String DESCRIPTOR = \"com.afollestad.aidlexample.IDogManager\";\n\n int TRANSACTION_getDogList= IBinder.FIRST_CALL_TRANSACTION+0;\n int TRANSACTION_addDog= IBinder.FIRST_CALL_TRANSACTION+1;\n List<Dog> getDogList() throws RemoteException;\n\n void addDog(Dog dog) throws RemoteException;\n}", "public MoodController(int mood){\n this.mood = new Mood(mood);\n }", "@Override\r\n public Food createFood(List<Coordinate> obstacles) {\r\n Random random = new Random();\r\n double num = random.nextDouble();\r\n\r\n if (num <= MushroomPowerUp.rarity) {\r\n return new MushroomPowerUp(randomCoordinates(obstacles));\r\n }\r\n if (num <= DoubleScorePowerUp.rarity + MushroomPowerUp.rarity) {\r\n return new DoubleScorePowerUp(randomCoordinates(obstacles));\r\n }\r\n return new AppleFactory().createFood();\r\n }", "public interface IManagerService {\n public boolean login(String account, String password);\n public void setInfo(Books[] books);\n public void checkBookType(Books [] books);\n public void checkBookTypeInfo(Books [] books,String type);\n public void setBookNum(Books [] books,int bookId, int bookNum);\n public void modifyInfo(Books [] books,int bookId);\n}", "public interface MnemeService\n{\n\t/** The type string for this application: should not change over time as it may be stored in various parts of persistent entities. */\n\tstatic final String APPLICATION_ID = \"sakai:mneme\";\n\n\t/** Event tracking event for deleting an assessment. */\n\tstatic final String ASSESSMENT_DELETE = \"mneme.assessment.delete\";\n\n\t/** Event tracking event for changing an assessment. */\n\tstatic final String ASSESSMENT_EDIT = \"mneme.assessment.edit\";\n\n\t/** Event tracking event for creating an assessment. */\n\tstatic final String ASSESSMENT_NEW = \"mneme.assessment.new\";\n\n\t/** Event tracking event for publishing an assessment. */\n\tstatic final String ASSESSMENT_PUBLISH = \"mneme.assessment.publish\";\n\n\t/** The sub-type for assessment in references (/mneme/assessment/...) */\n\tstatic final String ASSESSMENT_TYPE = \"assessment\";\n\n\t/** Event tracking event for un-publishing an assessment. */\n\tstatic final String ASSESSMENT_UNPUBLISH = \"mneme.assessment.unpublish\";\n\n\t/** The security function used to check if users can setup a formal course evaluation. */\n\tstatic final String COURSE_EVAL_PERMISSION = \"mneme.course.eval\";\n\n\t/** Event tracking event for download submissions for question. */\n\tstatic final String DOWNLOAD_SQ = \"mneme.download.sq\";\n\n\t/** The number of ms we allow answers and completions of submissions after hard deadlines. */\n\tstatic final long GRACE = 2 * 60 * 1000;\n\n\t/** The security function used to check if users can grade tests. */\n\tstatic final String GRADE_PERMISSION = \"mneme.grade\";\n\n\t/** The security function used to check if users have guest access. */\n\tstatic final String GUEST_PERMISSION = \"mneme.guest\";\n\n\t/** The security function used to check if users can manage tests. */\n\tstatic final String MANAGE_PERMISSION = \"mneme.manage\";\n\n\t/** Event tracking event for deleting a pool. */\n\tstatic final String POOL_DELETE = \"mneme.pool.delete\";\n\n\t/** Event tracking event for changing a pool. */\n\tstatic final String POOL_EDIT = \"mneme.pool.edit\";\n\n\t/** Event tracking event for creating a pool. */\n\tstatic final String POOL_NEW = \"mneme.pool.new\";\n\n\t/** The sub-type for pool in references (/mneme/pool/...) */\n\tstatic final String POOL_TYPE = \"pool\";\n\n\t/** Event tracking event for deleting a question. */\n\tstatic final String QUESTION_DELETE = \"mneme.question.delete\";\n\n\t/** Event tracking event for changing a question. */\n\tstatic final String QUESTION_EDIT = \"mneme.question.edit\";\n\n\t/** Event tracking event for creating a question. */\n\tstatic final String QUESTION_NEW = \"mneme.question.new\";\n\n\t/** The sub-type for question in references (/mneme/question/...) */\n\tstatic final String QUESTION_TYPE = \"question\";\n\n\t/** This string starts the references to resources in this service. */\n\tstatic final String REFERENCE_ROOT = \"/mneme\";\n\n\t/** Event tracking event for adding a submission. */\n\tstatic final String SUBMISSION_ADD = \"mneme.submit\";\n\n\t/** Event tracking event for answering a question in a submission. */\n\tstatic final String SUBMISSION_ANSWER = \"mneme.answer\";\n\n\t/** Event tracking event for the system automatically completing a submission. */\n\tstatic final String SUBMISSION_AUTO_COMPLETE = \"mneme.auto_complete\";\n\n\t/** Event tracking event for completing a submission. */\n\tstatic final String SUBMISSION_COMPLETE = \"mneme.complete\";\n\n\t/** Event tracking event for re-entering a submission. */\n\tstatic final String SUBMISSION_CONTINUE = \"mneme.continue\";\n\n\t/** Event tracking event for entering a submission. */\n\tstatic final String SUBMISSION_ENTER = \"mneme.enter\";\n\n\t/** Event tracking event for grading a submission. */\n\tstatic final String SUBMISSION_GRADE = \"mneme.grade\";\n\n\t/** Event tracking event for reviewing a submission. */\n\tstatic final String SUBMISSION_REVIEW = \"mneme.review\";\n\n\t/** The sub-type for submissions in references (/mneme/submission/...) */\n\tstatic final String SUBMISSION_TYPE = \"submission\";\n\n\t/** The security function used to check if users can submit to an assessment. */\n\tstatic final String SUBMIT_PERMISSION = \"mneme.submit\";\n\n\t/**\n\t * Find a question plugin for this question type.\n\t * \n\t * @param type\n\t * The question type.\n\t * @return The question plugin for this question type, or null if none found.\n\t */\n\tQuestionPlugin getQuestionPlugin(String type);\n\n\t/**\n\t * Access all the quesiton plugins, sorted by the (localized) type name.\n\t * \n\t * @return A List of all the quesiton plugins, sorted by the (localized) type name.\n\t */\n\tList<QuestionPlugin> getQuestionPlugins();\n\n\t/**\n\t * Register a question plugin.\n\t * \n\t * @param plugin\n\t * The question plugin.\n\t */\n\tvoid registerQuestionPlugin(QuestionPlugin plugin);\n}", "StoriesFactory getStoriesFactory();", "public interface AmmoInterface\n{\n\n /*------------------------------------------------------------------------------------*/\n\n /** Throw at target.<br>\n * Should be another version to throw at buildings.\n * @param target the target\n */\n public void throwAt(Player target);\n\n /** Put in hand. Ready to throw().\n */\n public void equip();\n\t\n \n /** Gets the damage inflicted with a bow. -1 if impossible\n * @return bowDamage\n */\n public short getBowDamage();\n\t\n /** Sets the damage inflicted with a bow. -1 if impossible\n * @param bowDamage the new damage inflicted with a bow\n */\n public void setBowDamage(short bowDamage);\n\n\t\n /** Gets the damage inflicted throwed by hand. -1 if impossible\n * @return handThrowDamage\n */\n public short getHandThrowDamage();\n\t\n /** Sets the damage inflicted throwed by hand. -1 if impossible\n * @param handThrowDamage the new damage inflicted with a hand-throw\n */\n public void setHandThrowDamage(short handThrowDamage);\n\n\t\n /** Gets the damage inflicted with a siege weapon. -1 if impossible\n * @return siegeWeaponDamage\n */\n public short getSiegeWeaponDamage();\n\t\n /** Sets the damage inflicted throwed by siege weapon. -1 if impossible\n * @param siegeWeaponDamage the new damage inflicted with a siege weapon\n */\n public void setSiegeWeaponDamage(short siegeWeaponDamage);\n\n\t\n /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/\n\n}", "private void createSpells() {\n spells.add(new Heal(owner, assets));\n spells.add(new Renew(owner, assets));\n spells.add(new FlashHeal(owner, assets));\n spells.add(new Dispel(owner, assets));\n spells.add(new HolyNova(owner, assets));\n spells.add(new PrayerOfMending(owner, assets));\n spells.add(new Barrier(owner, assets));\n spells.add(new GreaterHeal(owner, assets));\n spells.add(new Smite(owner, assets));\n spells.add(new Penance(owner, assets));\n spells.add(new HolyShock(owner, assets));\n spells.add(new Lightwell(owner, assets));\n spells.add(new DivineHymn(owner, assets));\n spells.add(new DivineProtection(owner, assets));\n spells.add(new BlessedGarden(owner, assets));\n\n // add spell to group\n for(int i = 0; i < spells.size(); i++) {\n addActor(spells.get(i));\n }\n }", "public interface TokenGenerator {\n\n String generate();\n\n}", "public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}", "protected void setup() {\r\n \t//inizializza gli attributi dell'iniziatore in base ai valori dei parametri\r\n Object[] args = this.getArguments();\r\n \t\tif (args != null)\r\n \t\t{\r\n \t\t\tthis.goodName = (String) args[0];\r\n \t\t\tthis.price = (int) args[1];\r\n \t\t\tthis.reservePrice = (int) args[2];\r\n \t\t\tthis.dif = (int) args[3];\r\n \t\t\tthis.quantity = (int) args[4];\r\n \t\t\tthis.msWait = (int) args[5];\r\n \t\t} \t\t\r\n\r\n manager.registerLanguage(codec);\r\n manager.registerOntology(ontology);\r\n \r\n //inizializza il bene oggetto dell'asta\r\n good = new Good(goodName, price, reservePrice, quantity);\r\n \r\n //cerca ed inserisce nell'ArrayList gli eventuali partecipanti\r\n findBidders(); \r\n \r\n //viene aggiunto l'apposito behaviour\r\n addBehaviour(new BehaviourInitiator(this));\r\n\r\n System.out.println(\"Initiator \" + this.getLocalName() + \" avviato\");\r\n }", "public interface DataManager extends PreferencesHelper, KamusEngIndHelper, KamusIndEngHelper {\n}", "UsabilityGoal createUsabilityGoal();", "public GameManager(Manager manager) {\n\t\tthis.manager = manager;\n\t\tloginValidator = new LoginValidator();\n\t\trv = new RegisterValidator();\n\t\tbool = new AtomicBoolean();\n\t}", "public interface RegisterAdminService {\n\n\tHashMap<String, Item> INVENTORY = new HashMap<String, Item>();\n\tHashMap<String, Special> SPECIALS = new HashMap<String, Special>();\n\tHashMap<String, Markdown> MARKDOWNS = new HashMap<String, Markdown>();\n\n\t/**\n\t * Creates a new {@link Item} using the item name, item price, and if <code>true</code>\n\t * setting item as charge by weight.\n\t * \n\t * @param itemName\t\t\tname of the item being created.\n\t * @param itemPrice\t\t\tdefault price of the item.\n\t * @param isChargeByWeight\t<code>true</code> if the item will need to be scaled\n\t * \t\t\t\t\t\t\twhen completing the {@link CartItem} creation.\n\t */\n\tvoid createItem(String itemName, String itemPrice, boolean isChargeByWeight);\n\n\t/**\n\t * Gets item from <code>INVENTORY</code>. Used whenever we need to verify that an item\n\t * exists in inventory. Returns the item by using the <code>itemName</code> as the key\n\t * in the map.\n\t * \n\t * @param itemName\t\t\tname of the item to search for.\n\t * @return\t\t\t\t\t{@link Item}\n\t */\n\tItem getItem(String itemName);\n\n\t/**\n\t * Creates a new {@link Special} of type {@link BuyNForX} using the special name, minimum\n\t * quantity of items required to buy, and the price amount for the group.\n\t * \n\t * @param specialName\t\tidentifying name of the special.\n\t * @param buyQtyRequirement\tminimum quantity of items needed in cart\n\t * \t\t\t\t\t\t\tbefore Special applies. \n\t * @param discountPrice \tprice to return for group of items purchased.\n\t */\n\tvoid createSpecialBuyNForX(String specialName, int buyQtyRequirement, String discountPrice);\n\n\t/**\n\t * Creates a new {@link Special} of type {@link BuyNGetMatXPercentOff} using the special name, minimum\n\t * quantity of items required to buy, number of items to receive at discounted percentage \n\t * and the discount percentage.\n\t * \n\t * @param specialName\t\tidentifying name of the special.\n\t * @param buyQtyRequirement\tminimum quantity of items needed in cart\n\t * \t\t\t\t\t\t\tbefore Special applies. \n\t * @param receiveQtyItems\tnumber of items to receive at discounted rate.\n\t * @param percentOff\t\tdiscount percentage entered as a whole number.\n\t * \t\t\t\t\t\t\t<strong>Example:</strong> 50% is entered as\n\t * \t\t\t\t\t\t\t50 or 50.0.\n\t */\n\tvoid createSpecialBuyNGetMAtXPercentOff(String specialName, int buyQtyRequirement, \n\t\t\tint receiveQtyItems, double percentOff); \n\t\n\t/**\n\t * Gets special from <code>SPECIALS</code> using name of the special \n\t * as a key for the object map.\n\t * \n\t * @param specialName\t\tname of the special to search for.\n\t * @return\t\t\t\t\t{@link Special}\n\t * @see \t\t\t\t\tSpecial\n\t * @see\t\t\t\t\t\tBuyNGetMatXPercentOff\n\t * @see\t\t\t\t\t\tBuyNForX\n\t */\n\tSpecial getSpecial(String specialName);\n\n\t/**\n\t * Creates a new {@link Markdown} using a mark down description and price.\n\t * \n\t * @param description\t\tdescription of the markdown for reference.\n\t * @param markdownAmount\trepresents the amount to subtract from the default price.\n\t */\n\tvoid createMarkdown(String description, String markdownAmount);\n\n\t/**\n\t * Gets mark-down from <code>MARKDOWNS</code> using the name of the mark-down\n\t * as a key for the object map.\n\t * \n\t * @param markdownDescription\tname of the mark-down to search for.\n\t * @return\t\t\t\t\t\t{@link Markdown}\n\t * @see \t\t\t\t\t\tMarkdown\n\t */\n\tMarkdown getMarkdown(String markdownDescription);\n\n\t/**\n\t * Gets the inventory collection for referencing items within \n\t * the collection.\n\t * \n\t * @return\t\t\t\t\t\tCollection of Items within <code>INVENTORY</code>.\n\t */\n\tCollection<Item> getInventory();\n\n\t/**\n\t * Gets the collection of Specials for referencing the specials stored.\n\t * \n\t * @return\t\t\t\t\tCollection of Specials which can be any type of \n\t * \t\t\t\t\t\t\t{@link Special} such as,{@link BuyNGetMatXPercentOff} \n\t * \t\t\t\t\t\t\tor {@link BuyNForX}.\n\t */\n\tCollection<? extends Special> getSpecials();\n\n\t/**\n\t * Gets the collection of Markdowns for referencing the markdowns available for\n\t * use.\n\t * \n\t * @return\t\t\t\tCollection of Markdowns.\n\t */\n\tCollection<Markdown> getMarkdowns();\n\n\t/**\n\t * Updates {@link Item}'s default price or adds {@link Markdown} or \n\t * assigns {@link Special}. <code>itemName</code> is required.\n\t * \n\t * @param itemName\t\t\t\tname of item to search for.\n\t * @param newDefaultPrice\t\tassignment of new default price.\n\t * @param markdownDescription\tname of mark-down to search for and apply.\n\t * @param specialName\t\t\tname of special to search for and apply.\n\t */\n\tvoid updateItem(String itemName, String newDefaultPrice, String markdownDescription\n\t\t\t, String specialName);\n\n\t/**\n\t * Adds a limit to {@limit Special} using the <code>specialName</code>\n\t * to search for the special and uses <code>limitQty</code> to assign\n\t * the limit quantity.\n\t * \n\t * @param specialName\t\t\tname of special to search for.\n\t * @param limitQty\t\t\t\tamount to set limit to\n\t */\n\tvoid addLimitToSpecial(String specialName, int limitQty);\n\n\n}", "private UndoManager() {\n undoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n redoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n descriptionMap = new IdentityHashMap<LinkedList, String>();\n }", "Actuator createActuator();", "private ArticleMgr() {\r\n\r\n\t}", "private void registerManagers() {\n registerProviders();\n\n // Cast Managers\n if (worldGuardManager.isEnabled()) castManagers.add(worldGuardManager);\n if (preciousStonesManager.isEnabled()) castManagers.add(preciousStonesManager);\n if (redProtectManager != null && redProtectManager.isFlagsEnabled()) castManagers.add(redProtectManager);\n\n // Entity Targeting Managers\n if (preciousStonesManager.isEnabled()) targetingProviders.add(preciousStonesManager);\n if (townyManager.isEnabled()) targetingProviders.add(townyManager);\n if (residenceManager != null) targetingProviders.add(residenceManager);\n if (redProtectManager != null) targetingProviders.add(redProtectManager);\n\n // PVP Managers\n if (worldGuardManager.isEnabled()) pvpManagers.add(worldGuardManager);\n if (pvpManager.isEnabled()) pvpManagers.add(pvpManager);\n if (multiverseManager.isEnabled()) pvpManagers.add(multiverseManager);\n if (preciousStonesManager.isEnabled()) pvpManagers.add(preciousStonesManager);\n if (townyManager.isEnabled()) pvpManagers.add(townyManager);\n if (griefPreventionManager.isEnabled()) pvpManagers.add(griefPreventionManager);\n if (factionsManager.isEnabled()) pvpManagers.add(factionsManager);\n if (residenceManager != null) pvpManagers.add(residenceManager);\n if (redProtectManager != null) pvpManagers.add(redProtectManager);\n\n // Build Managers\n if (worldGuardManager.isEnabled()) blockBuildManagers.add(worldGuardManager);\n if (factionsManager.isEnabled()) blockBuildManagers.add(factionsManager);\n if (locketteManager.isEnabled()) blockBuildManagers.add(locketteManager);\n if (preciousStonesManager.isEnabled()) blockBuildManagers.add(preciousStonesManager);\n if (townyManager.isEnabled()) blockBuildManagers.add(townyManager);\n if (griefPreventionManager.isEnabled()) blockBuildManagers.add(griefPreventionManager);\n if (mobArenaManager != null && mobArenaManager.isProtected()) blockBuildManagers.add(mobArenaManager);\n if (residenceManager != null) blockBuildManagers.add(residenceManager);\n if (redProtectManager != null) blockBuildManagers.add(redProtectManager);\n if (landsManager != null) blockBuildManagers.add(landsManager);\n\n // Break Managers\n if (worldGuardManager.isEnabled()) blockBreakManagers.add(worldGuardManager);\n if (factionsManager.isEnabled()) blockBreakManagers.add(factionsManager);\n if (locketteManager.isEnabled()) blockBreakManagers.add(locketteManager);\n if (preciousStonesManager.isEnabled()) blockBreakManagers.add(preciousStonesManager);\n if (townyManager.isEnabled()) blockBreakManagers.add(townyManager);\n if (griefPreventionManager.isEnabled()) blockBreakManagers.add(griefPreventionManager);\n if (mobArenaManager != null && mobArenaManager.isProtected()) blockBreakManagers.add(mobArenaManager);\n if (citadelManager != null) blockBreakManagers.add(citadelManager);\n if (residenceManager != null) blockBreakManagers.add(residenceManager);\n if (redProtectManager != null) blockBreakManagers.add(redProtectManager);\n if (landsManager != null) blockBreakManagers.add(landsManager);\n\n // Team providers\n if (heroesManager != null && heroesManager.useParties()) teamProviders.add(heroesManager);\n if (skillAPIManager != null && skillAPIManager.usesAllies()) teamProviders.add(skillAPIManager);\n if (useScoreboardTeams) teamProviders.add(new ScoreboardTeamProvider());\n if (permissionTeams != null && !permissionTeams.isEmpty()) {\n teamProviders.add(new PermissionsTeamProvider(permissionTeams));\n }\n if (factionsManager != null) teamProviders.add(factionsManager);\n if (battleArenaManager != null && useBattleArenaTeams) teamProviders.add(battleArenaManager);\n if (ultimateClansManager != null) teamProviders.add(ultimateClansManager);\n\n // Player warp providers\n if (preciousStonesManager != null && preciousStonesManager.isEnabled()) {\n playerWarpManagers.put(\"fields\", preciousStonesManager);\n }\n if (redProtectManager != null) playerWarpManagers.put(\"redprotect\", redProtectManager);\n if (residenceManager != null) playerWarpManagers.put(\"residence\", residenceManager);\n }", "public interface AvanceSalaireManager\r\n extends GenericManager<AvanceSalaire, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"AvanceSalaireManager\";\r\n \r\n public AvanceSalaire generereglement(AvanceSalaire entity);\r\n \r\n public AvanceSalaire confirme(AvanceSalaire entity);\r\n \r\n public AvanceSalaire annule(AvanceSalaire entity);\r\n\r\n}", "public interface FighterFactory {\n /**\n * Create a PlayerFighter from a game player\n *\n * @param player The player\n *\n * @return The PlayerFighter\n */\n public PlayerFighter create(GamePlayer player);\n}", "public MyDictionaryGenerator() throws IOException {\n\t\t\n\t\ttry {\t\t\t\t// Attempts to open dictionary.txt for parsing\n\t\t\tFile dictionary = new File(\"dictionary.txt\");\n\t\t\tscan = new Scanner(dictionary);\n\t\t}\n\t\t\n\t\tcatch (FileNotFoundException e) {\t\t\t// Throws a file not found exception if it is missing\n\t\t\tSystem.out.printf(\"Error: Could not find \\\"dictionary.txt\\\". Please check your directory for the text file.\\n\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tmyDictionary = new PrintWriter(new File(\"my_dictionary.txt\"));\t\t// Creates my_dictionary.txt\n\t\ttrie = new DLBTrie<Character, String>();\t\t\t\t// Initializes the dictionary trie\n\t\t\n\t\tSystem.out.printf(\"\\nCreating my_dictionary.txt...\\n\");\n\t\t\n\t\twhile (scan.hasNextLine()) {\t\t\t\t// Loops while dictionary.txt has a line to parse\n\t\t\tword = scan.nextLine().toLowerCase();\t\t\t// Pulls a word from dictionary.txt and converts it to lowercase\n\t\t\t\n\t\t\tif (word.length() > 5) {\t\t\t\t// If the word is greater than 5 letters, it is skipped\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tDLBTCharMethods.addWord(trie, word);\t\t// Adds the word to the dictionary trie\n\t\t\tmyDictionary.println(word);\t\t\t\t\t// Adds the word to my_dictionary.txt\n\t\t\t\n\t\t\tconvertWord(word, 0);\t\t\t// Takes the word and finds all possible enumerations to add\n\t\t}\n\t\t\n\t\tmyDictionary.close();\t\t\t\t// Closes my_dictionary.txt\n\t\t\n\t\tnew GoodPasswords(trie);\t\t\t// Calls the class that creates good_passwords.txt\n\t}", "private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "public void familiarTick() {\n\t\tattacked = false;\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tif (!c.goodDistance(c.getX(), c.getY(), c.getInstance().summoned.getX(), c.getInstance().summoned.getY(),\n\t\t\t\t\t8)) {\n\t\t\t\tcallOnTeleport();\n\t\t\t}\n\t\t\tif (!c.goodDistance(c.getX(), c.getY(), c.getInstance().summoned.getX(), c.getInstance().summoned.getY(),\n\t\t\t\t\t8)) {\n\t\t\t\tc.getSummoning().callFamiliar();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (c.getInstance().playerIndex != 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson = true;\n\t\t\t} else if (c.getInstance().playerIndex == 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson = false;\n\t\t\t}\n\t\t\tif (c.getInstance().underAttackBy != 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson = true;\n\t\t\t} else if (c.getInstance().underAttackBy == 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson = false;\n\t\t\t}\n\t\t\tif (c.getInstance().npcIndex != 0\n\t\t\t\t\t&& !NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = true;\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(0);\n\t\t\t} else if (NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC == true)\n\t\t\t\t\tcallFamiliar();\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = false;\n\t\t\t}\n\t\t\tif (c.getInstance().summoned.killerId != 0 && c.getInstance().summoned.underAttackBy == 0) {\n\t\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\t\tc.getSummoning().callFamiliar();\n\t\t\t}\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tPlayer o = PlayerHandler.players[c.getInstance().underAttackBy];\n\t\t\t\t\tif (o != null) {\n\t\t\t\t\t\tif (o.getInstance().inMulti()) {\n\t\t\t\t\t\t\tif (actionTimer == 0) {\n\t\t\t\t\t\t\t\tServer.npcHandler.followPlayer(c.getInstance().summoningMonsterId, o.playerId,\n\t\t\t\t\t\t\t\t\t\tc.playerId);\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(o.playerId);\n\t\t\t\t\t\t\t\tServer.npcHandler.attackPlayer(o, c.getInstance().summoningMonsterId);\n\t\t\t\t\t\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].index = o.playerId;\n\t\t\t\t\t\t\t\tactionTimer = 7;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionTimer--;\n\t\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}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tPlayer o = PlayerHandler.players[c.getInstance().playerIndex];\n\t\t\t\t\tif (o != null) {\n\t\t\t\t\t\tif (o.getInstance().inMulti()) {\n\t\t\t\t\t\t\tif (actionTimer == 0) {\n\t\t\t\t\t\t\t\tServer.npcHandler.followPlayer(c.getInstance().summoningMonsterId, o.playerId,\n\t\t\t\t\t\t\t\t\t\tc.playerId);\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(o.playerId);\n\t\t\t\t\t\t\t\tServer.npcHandler.attackPlayer(o, c.getInstance().summoningMonsterId);\n\t\t\t\t\t\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].index = o.playerId;\n\t\t\t\t\t\t\t\tactionTimer = 7;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionTimer--;\n\t\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}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tNPC n = NPCHandler.npcs[c.getInstance().npcIndex];\n\t\t\t\t\tif (n != null) {\n\t\t\t\t\t\t// if(n.inMulti()) {\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = true;\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().npcIndex].IsUnderAttackNpc = true;\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().npcIndex].randomWalk = false;\n\t\t\t\t\t\t// GameEngine.npcHandler.attackNPC(c.npcIndex,\n\t\t\t\t\t\t// c.getVariables().summoningMonsterId, c);\n\t\t\t\t\t\tServer.npcHandler.NpcVersusNpc(c.getInstance().summoningMonsterId,\n\t\t\t\t\t\t\t\tc.getInstance().npcIndex, c);\n\t\t\t\t\t\t// }\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tspeakTimer++;\n\t\t\tif (speakTimer == 100) {\n\t\t\t\tc.getInstance().summoned.forceChat(summonedFamiliar.speakText);\n\t\t\t\tspeakTimer = 0;\n\t\t\t}\n\t\t\tc.getInstance().specRestoreTimer -= 1;\n\t\t\tint hours = (c.getInstance().specRestoreTimer / 2) / 3600;\n\t\t\tint minutes = ((c.getInstance().specRestoreTimer / 2) - hours * 3600) / 60;\n\t\t\tint seconds = ((c.getInstance().specRestoreTimer / 2) - (hours * 3600 + minutes * 60));\n\n\t\t\tString timer = String.format(\"%02d:%02d\", minutes, seconds);\n\t\t\tc.getPA().sendString(timer, 17021);\n\t\t\tif (c.getInstance().specRestoreTimer == 100) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 1 minute.\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer == 50) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 30 seconds.\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer == 25) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 15 seconds.\");\n\t\t\t\tc.sendMessage(\"@blu@ You can renew your familiar with a new pouch by clicking @red@ Renew pouch\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer <= 0) {\n\t\t\t\tdismissFamiliar(false);\n\t\t\t}\n\t\t\tif (familiarSpecialEnergy != 60) {\n\t\t\t\tspecialRestoreCycle++;\n\t\t\t\tif (specialRestoreCycle == 50) {\n\t\t\t\t\tif (familiarSpecialEnergy != 60) {\n\t\t\t\t\t\tfamiliarSpecialEnergy += 15;\n\t\t\t\t\t\tif (familiarSpecialEnergy >= 60) {\n\t\t\t\t\t\t\tfamiliarSpecialEnergy = 60;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tspecialRestoreCycle = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tspecialTimer--;\n\t\t}\n\t\tif (renewTimer > 0) {\n\t\t\trenewTimer--;\n\t\t\tif (renewTimer == 0 && c.getInstance().summoned == null && summonedFamiliar != null) {\n\t\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0,\n\t\t\t\t\t\tSummoningData.getSummonHealth(summonedFamiliar.npcId), 1, 1, 1);\n\t\t\t\tcallFamiliar();\n\t\t\t}\n\t\t}\n\t\tif (loginCycle > 0) {\n\t\t\tloginCycle--;\n\t\t\tif (loginCycle == 0 && c.getInstance().summoned == null && summonedFamiliar != null) {\n\t\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0,\n\t\t\t\t\t\tSummoningData.getSummonHealth(summonedFamiliar.npcId), 1, 1, 1);\n\t\t\t\tcallFamiliar();\n\t\t\t}\n\t\t}\n\t}", "public interface IEnemyFeature {\n\n}", "protected abstract void defineEnemy();", "Oracion createOracion();", "@Override\n public void food(){\n System.out.println(\"They are Herbivorous in nature.\");\n }", "public interface GameItemConsumer {\n\n\t/**\n\t * Adds more gold to the amount of gold the player already has\n\t * \n\t * @param gold The amount of gold to add\n\t */\n\tpublic abstract void addGold(int gold);\n\n\t/**\n\t * Add to the player's HP\n\t * \n\t * @param hp The amount of HP to add to the player\n\t */\n\tpublic abstract void incrementHealth(int hp);\n\n\t/**\n\t * Sets the AP to zero. Used by actions which take up all the AP\n\t */\n\tpublic abstract void zeroAP();\n\t\n\t\n\t/**\n\t * Informs the user of an equipment change;\n\t * @param string\n\t */\n\tpublic abstract void equipmentChange(String string);\n}", "public StockDemo(StockManager manager)\n {\n this.manager = manager;\n randomGenerator = new Random();\n }", "public BStarTokenMaker() {\n\t\tsuper();\n\t}", "public ArtilleryTracker() {\n weapons = new Hashtable<Mounted, Vector<ArtilleryModifier>>();\n }", "public interface Food {\n\n void get();\n}", "public static synchronized MoodsCreator getInstance(){\n return moodsCreator;\n }", "public interface HeroInterface {\n public void saveBeauty();\n public void helpPool();\n}", "public interface RetardManager\r\n extends GenericManager<Retard, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"RetardManager\";\r\n \r\n /**\r\n * Justification d'un retard\r\n * @param entity\r\n * @return\r\n */\r\n public Retard justifie(Retard entity);\r\n \r\n /**\r\n * \r\n * @param entity\r\n * @return\r\n */\r\n public Retard nonjustifie(Retard entity);\r\n\r\n}", "public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}", "public interface IMatchmaking {\n \n /**\n *\n * Return collection of matchmaking managers\n *\n * @return Allocated matchmaking managers\n */\n Collection<MatchmakingManager> getManagers();\n \n /**\n *\n * Return specific matchmaking manager by matchmaking id\n *\n * @param matchmakingId String which can identify matchmaking manager\n * @return Matchmaking manager\n */\n MatchmakingManager getManager(String matchmakingId);\n \n}", "public interface Manager {\n void saveResponse();\n}", "Emote.Factory getEmoteFactory();", "public interface CustomService {\n\n boolean processTokenScript(Management management, OauthClient oauthClient, OauthUser oauthUser,\n String scope, String tokenType, String claimJson, String type);\n\n Map processTokenTest(Management management, String userId, String clientId, String scopes,\n String tokenType, String claimJson, String script);\n\n List<String> getUseCaseList(Management management);\n\n boolean inCase(Management management, String useCase);\n}", "private void importState() {\n SpeakerManager s = new SpeakerManager();\n this.speakerManager = s.importState();\n\n RoomManager r = new RoomManager();\n this.roomManager = r.importState();\n\n OrganizerManager o = new OrganizerManager();\n this.organizerManager = o.importState();\n\n EventManager e = new EventManager();\n this.eventManager = e.importState();\n\n ChatManager c = new ChatManager();\n this.chatManager = c.importState();\n\n AttendeeManager a = new AttendeeManager();\n this.attendeeManager = a.importState();\n\n\n }", "public void setIdManager(IdMgr idMgr);", "public interface IGUITextManager extends IManager<GUIText> {\n\n\t/**\n\t * Returns font manager.\n\t * \n\t * @return {@link IFontManager} value\n\t */\n\tIFontManager getFonts();\n\n}", "public interface EnemyShipPartsFactory {\n ESWeapon addESGun();\n ESEngine addESEngine();\n}", "Thing createThing();", "public Contexte() {\n FactoryRegistry registry = FactoryRegistry.getRegistry();\n registry.register(\"module\", new ModuleFactory());\n registry.register(\"if\", new ConditionFactory());\n registry.register(\"template\", new TemplateFactory());\n registry.register(\"dump\", new DumpFactory());\n }", "public interface Audio {\n\n /**\n * Type: Generator\n * Takes a string parameter and accesses a music file on the system.\n * Creates a Music object and returns it.\n * @param file String containing file location\n * @return Music Object\n * @see Music\n */\n public Music createMusic(String file);\n\n /**\n * Type: Generator\n * Takes a string parameter and accesses a sound file on the system.\n * Creates a Sound object and returns it.\n * @param file String containing file location\n * @return Sound Object\n * @see Sound\n */\n public Sound createSound(String file);\n}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public interface FriendAutoCompleterFactory {\n\n /**\n * Returns a FriendLibraryAutocompleter that will supply suggestions based\n * on category.\n */\n public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch);\n\n /**\n * Returns a FriendLibraryPropertyAutocompleter that will supply suggestions\n * based on category and FilePropertyKey combination.\n */\n public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch,\n FilePropertyKey filePropertyKey);\n\n}", "public void serveFood() {\r\n System.out.println(\"Serving food from \" + name + \" is a \" + type + \" restaurant\");\r\n }", "@Override\n public void feedingMeat() {\n\n }", "@Override\n\tpublic Attack makeAttack() {\n\t\tattack = new Attack();\n\t\tunit = getRandomListUnit();\n\t\t/*\n\t\tobliczenie wartosci ataku od losowo wybranej jednostki oraz\n\t\tustawienie tej wartosci w obiekcie Attack\n\t\tDOdatkowo zostaje przeslane informacje do loggera. Inofrmacje zawieraja, jaka jednostka, wartosc ataku, ilosc jednostek w armii\n\t\t*/\n\t\tint attackValue = (unit.getDefense()+unit.getHp())/2;\n\t\tattack.setAttack(attackValue);\n\t\tlogger.add(\"attacker\",attackValue, unitListSize());\n\n\t\treturn attack;\n\t}", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "private ValorantManager() {\n this.resourceHandler = new ResourceHandler();\n\n JSONObject agentsData = getAssetJson(\"agents.json\");\n\n // Agents require roles so read them first\n this.roles = readRoles(agentsData.getJSONArray(\"roles\"));\n\n this.agents = readAgents(agentsData.getJSONObject(\"agents\"));\n this.weapons = readWeapons();\n this.ranks = createRankMap();\n }", "public void register(OpModeManager manager) {\n //manager.register(\"INFO: ver. 3.51.01 (pre-summer version)\", infoclass.class);\n// manager.register(\"NullOp\", NullOp.class);\n// manager.register(\"newTeleOp\", newTeleOp.class);\n// manager.register(\"ARMTESTER\", armsinglestick.class);\n// manager.register(\"BOTv1\", botv1.class);\n// manager.register(\"TURNLEFT\", auto2.class);\n// manager.register(\"TURNRIGHT\", auto3.class);\n// manager.register(\"ColorTest\", ColorTest.class);\n // manager.register(\"basicLineFollow\", basicLineFollow.class);\n // manager.register(\"basicLineAlign\", basicLineAlign.class);\n manager.register(\"TeleOp\", Teleop.class);\n // manager.register(\"JupiterTeleOp\", JupiterBotTeleOp.class);\n manager.register(\"PushTeleOp\", PushBotTest.class);\n // manager.register(\"PushTeleOp42\", PushBotTest42.class);\n// manager.register(\"colortest\", onecolortesst.class);\n// manager.register(\"AUTOENCODERS\", autoencode.class);\n// manager.register(\"autotestfour\", auto4.class);\n// manager.register(\"theGOOD THING\", encodertest.class);\n// manager.register(\"colortest2222222222\", seenpush.class);\n //manager.register(\"encode\", encodertest.class);\n//manager.register(\"encode\", encode.class);\n// manager.register(\"TESTR4LIN3D3T3CT!!!!\", linedetect.class);\n// manager.register(\"gyro test\", gyro.class);\n // manager.register(\"Kierian's teleop\", teleoptest.class);\n // manager.register(\"I2CCHANGER bottom\", LinearI2cColorSensorAddressChange9915.class);\n // manager.register(\"I2CCHANGER top\", Lineari2cchange2.class);\n// manager.register(\"pushbutton\", pushbutton.class);\n// manager.register(\"right\", practice.class);\n//manager.register(\"left\",left.class);\n// manager.register(\"rightclimber\", rightclimber.class);\n// manager.register(\"leftclimber\", leftclimber.class);\n// manager.register(\"leftreg\", regleft.class);/\n// / manager.register(\"rightreg\", regright.class);\n// manager.register(\"gyrotest\", gyro.class);\n// manager.register(\"THISISGONNAWORK\", thisisgonnawork.class);\n// manager.register(\"auto\", thisisgonnaworkods.class);\n// manager.register(\"ods test\", odstest.class);\n// manager.register(\"real\", realauto.class);\n //manager.register(\"right aka blue WITH THE LINE FOLLOW\", bluepid.class);\n //manager.register(\"right aka blue\", blue.class);\n// manager.register(\"line follow\", linefoolow.class);\n// manager.register(\"right\", radicalnewideablue.class);\n // manager.register(\"rightrmi\", rniblue.class);\n // manager.register(\"leftrmi\", rnired.class);\n // manager.register(\"they're running right\", theysayitsbetterblue.class);\n // manager.register(\"they're running left\", theysayitsbetterred.class);\n// manager.register(\"color\", button.class);\n // manager.register(\"left aka red (use at own risk)\", red.class);\n// manager.register(\"rightest\", bluetest.class);\n// manager.register(\"fake\", fakeauto.class);\n// manager.register(\"button\", temp.class);\n// manager.register(\"tot\", tot.class);\n// manager.register(\"left\", red.class);\n }", "public interface Registry {\n\n Bonus getRandom();\n Bonus getByName(String name);\n\n}", "abstract int food();", "public HelperManager() {\r\n\r\n myHelpers = new ArrayList<Helper>();\r\n\r\n //Demo Data\r\n Helper helper01 = new Helper(\"Max\", \"Mustermann\", \"Male\", \"GER\");\r\n Helper helper02 = new Helper(\"Hans\", \"Werner\", \"Female\", \"AUS\");\r\n Helper helper03 = new Helper(\"Maria\", \"Mülller\", \"Divers\", \"SWE\");\r\n myHelpers.add(helper01);\r\n myHelpers.add(helper02);\r\n myHelpers.add(helper03);\r\n }", "@Override\n public EFoodType getFoodtype() {\n MessageUtility.logGetter(name,\"getFoodtype\",EFoodType.MEAT);\n return EFoodType.MEAT;\n }", "public DiceManager(){\n dicesList = new ArrayList<Dice>();\n diceIterator = dicesList.listIterator();\n }", "@Override\n\tpublic void msgFinishEating(Food food) {\n\t\t\n\t}", "Idiom createIdiom();", "public void newFood(Food food) {\n\t\t\n\t\tfoodDao.newFood(food);\n\t\t\n\t}", "public interface IMonster {\n\n /**\n * Checks surrounding grid locations for spots\n * Then makes corresponding moves based upon the locations\n */\n void act();\n\n /**\n * Gets the actors currently on the grid.\n * Looks for grid locations that are surrounding the area for open spots\n * @return List of actor\n */\n ArrayList<Actor> getActors();\n\n /**\n * Gets the actors currently on the grid\n * Watches to see if a current monster can eat a human or food\n * Once the Human or food as been ate it is removed from the grid\n * @param actors\n */\n void processActors(ArrayList<Actor> actors);\n\n /**\n * Locates moves available on the grid\n * @return location\n */\n ArrayList<Location> getMoveLocations();\n\n /**\n * Selects an available move that can be made\n * @param locs\n * @return location of r\n */\n Location selectMoveLocation(ArrayList<Location> locs);\n\n /**\n * Checks whether a monster can move to the next grid spot\n * @return true or false\n */\n boolean canMove();\n\n /**\n * Moves the Monster to a location of the grid\n * If the location is null the Monster is removed from the grid\n * Also over writes other Monsters of the grid spot if needed\n * @param loc\n */\n void makeMove(Location loc);\n}", "public interface TokenRulesService {\n /**\n * Return the token rule for the given bin.\n * \n * @param iisnBin\n * String - The bin.\n * @return TokenRule - The token rule.\n */\n TokenRule get(String iisnBin);\n\n /**\n * Saves the token in the DB.\n * \n * @param tokenRule\n * TokenRule - The token rule dto.\n * @return TokenRule - The token rule which is saved.\n */\n TokenRule save(TokenRule tokenRule);\n\n /**\n * Fetches the real bins for the issuer.\n * \n * @param iisn\n * String - The iisn.\n * \n * @return List<String> - The bins.\n */\n List<String> getBins(String iisn);\n\n /**\n * @return load list of token bins from token bin mapping.\n */\n List<String> loadListOfTokenBins();\n}", "public interface ITreeMaker {\n /**\n * Return the Huffman/coding tree.\n * @return the Huffman tree\n */\n public HuffTree makeHuffTree(InputStream stream) throws IOException;\n}", "private void createEnemy()\n {\n scorpion = new Enemy(\"Giant Scorpion\", 5, 10); \n rusch = new Enemy(\"Mr. Rusch\", 10, 1000);\n skeleton = new Enemy(\"Skeleton\", 10, 50);\n zombie = new Enemy(\"Zombie\", 12, 25);\n ghoul = new Enemy(\"Ghoul\", 15, 45);\n ghost = new Enemy(\"Ghost\", 400, 100);\n cthulu = new Enemy(\"Cthulu\", 10000000, 999999);\n concierge = new Enemy(\"Concierge\", 6, 100);\n wookie = new Enemy(\"Savage Wookie\", 100, 300);\n }", "private InformationManager() {\n\t\tlives = ConfigurationManager.getConfigurationManager().getConfiguration().getLives();\n\t\tshields = ConfigurationManager.getConfigurationManager().getConfiguration().getShields();\n\t}", "public interface Enemy {\n /**\n * Prints Enemy name and health\n */\n void printInfo();\n\n /**\n * Returns an Enemy's current health\n *\n * @return health : Float\n */\n Float getHealth();\n\n /**\n * Decreases an Enemy's health by the amount of damage taken\n */\n void decreaseHealth(Float damage);\n\n /**\n * Checks if an Enemy is a Boss\n *\n * @return Boolean\n */\n Boolean isBoss();\n\n /**\n * Checks if an Enemy died and returns the result\n *\n * @return Boolean\n */\n Boolean isDead();\n\n /**\n * Returns the damage an Enemy has inflicted\n *\n * @return damage : Integer\n */\n Float attack();\n}", "public interface DictionaryManager {\n List<Dictionary> getDictionaryByType(Integer type);\n}", "public interface MedicalForegroundService {\n\n void loadMedicalData(Consumer<HandleResult> callback);\n\n void saveMedicalData(Medical medical, Consumer<HandleResult> callback);\n\n void setTemp(String key, String tempValue);\n\n String getTemp(String key);\n\n void clearTemp(boolean clearContact);\n\n Doctor getDoctorById(String doctorId);\n\n String getNextExpertDoctorId();\n\n boolean isExpertDoctor(Doctor doctor);\n\n Medical getMedicalData();\n\n void login114();\n\n void listMedicalResource(String hospitalId, String departmentId, String date, boolean amPm, Consumer<HandleResult> callback);\n\n void start(TargetDate targetDate, Consumer<HandleResult> stepCallback);\n\n void submitVerifyCode(String verifyCode);\n}", "public interface ObservationMgr\n{\n /** \n * Event topic prefix for all {@link ObservationMgr} events. \n */\n String TOPIC_PREFIX = \"mil/dod/th/ose/gui/webapp/observation/ObservationMgr/\";\n \n /**\n * Topic used for when the observation store was altered, either by retrieval or deletion requests.\n */\n String TOPIC_OBS_STORE_UPDATED = TOPIC_PREFIX + \"OBS_STORE_UPDATED\";\n \n /**\n * Get observation data model for the currently active controller.\n * \n * @return\n * a lazy data model that will only load observations needed for the page\n */\n LazyDataModel<GuiObservation> getObservations();\n \n /**\n * Return a list of target classifications in string form.\n * @param obs\n * the observation for which to retrieve target classifications\n * @return\n * a list of target classifications that have been\n */\n List<String> getTargetClassifications(Observation obs);\n\n /**\n * Return the string representation of the sensing modality for an \n * observation.\n * @param obs\n * the observation from which to retrieve the sensing modality\n * @return\n * the list of the string representation of the sensing modalities \n * for an observation\n */\n List<String> getModalities(Observation obs);\n \n /**\n * Method which retrieves the start date used to filter observations.\n * @return\n * start date for filtering observations\n */\n Date getStartDate();\n \n /**\n * Method which retrieves the end date used to filter observations.\n * @return\n * end date for filtering observations\n */\n Date getEndDate();\n \n /**\n * Method which sets the start date used to filter observations.\n * @param startDate\n * start date for filtering observations\n */\n void setStartDate(Date startDate);\n \n /**\n * Method which sets the end date used to filter observations.\n * @param endDate\n * end date for filtering observations\n */\n void setEndDate(Date endDate);\n \n /**\n * Sets value indicating whether or not observations should be filtered by date.\n * Value is <code>true</code> if observations should be filtered by date.\n * <code>false</code> otherwise. \n * @param isFilterByDate\n * <code>true</code> if observations should be filtered by date.\n * <code>false</code> otherwise.\n */\n void setFilterByDate(boolean isFilterByDate);\n \n /**\n * Gets value indicating whether or not observations should be filtered by date.\n * Value is <code>true</code> if observations should be filtered by date.\n * <code>false</code> otherwise. \n * @return\n * <code>true</code> if observations should be filtered by date.\n * <code>false</code> otherwise.\n */\n boolean isFilterByDate();\n \n /**\n * PostValidateEvent function which verifies that a given end date within the component comes\n * after the given start date.\n * @param event\n * the event which has been triggered on the PostValidateEvent\n */\n void validateDates(ComponentSystemEvent event);\n\n /**\n * Returns the filter for the observation query.\n * @return\n * filter currently set\n */\n String getFilter();\n \n /**\n * Sets the filter to use for observation queries.\n * @param filter\n * filter to use\n */\n void setFilter(String filter);\n \n /**\n * Gets the boolean value indicating whether filtered observations should be \n * in relation to a filter string.\n * @return \n * <code>true</code> if filtered observations should be in relation to the filter string,\n * <code>false</code> if not.\n */\n boolean isFilterByExpression();\n \n /**\n * Sets the boolean value indicating whether filtered observations should be \n * in relation to a filter string.\n * @param filterByExpression\n * <code>true</code> if filtered observations should be in relation to the filter string,\n * <code>false</code> if not.\n */\n void setFilterByExpression(boolean filterByExpression);\n \n /**\n * Check the current filter value is valid.\n * @param context\n * context for the current value\n * @param component\n * component that is being updated\n * @param value\n * current value that needs to be validated\n * @throws ValidatorException\n * if validation fails\n */\n void checkFilter(FacesContext context, UIComponent component, Object value) throws ValidatorException;\n \n /**\n * Handle the manual (button press) request to filter observations.\n */\n void handleManualFilterRequest();\n \n /**\n * Retrieve the observation model for the observation with the specified UUID.\n * \n * @param observationUuid\n * UUID of the observation to be retrieved.\n * @return\n * Model that represents the observation with the specified UUID.\n */\n GuiObservation getObservation(UUID observationUuid);\n}", "public abstract void eat(String foodName);", "void cook(Food food) {\n }", "protected abstract void addMeat();", "private void addAI(){\n\n }", "public interface SectionManager\r\n{\r\n /**\r\n * Display the given section.\r\n */\r\n public void gotoSection(BrewerySection section);\r\n}", "public interface IShopManagerService {\n\t\n\t// --- returns list of all aids, weapons and armors into database ---\n\tList <Aid> getAllAids();\t\n\tList <Weapon> getAllWeapons();\t\n\tList <Armor> getAllArmors();\n\t// ---\t\n\t\n\t// --- allow to sell/buy items\n\tboolean sellWeaponsForUser(int uid, List<Integer> wIds);\n\tboolean sellArmorsForUser(int uid, List<Integer> arIds);\n\tboolean sellAidsForUser(int uid, List<Integer> aidIds);\n\t\n\tboolean buyWeaponsForUser(int uid, List<Integer> wIds);\n\tboolean buyArmorsForUser(int uid, List<Integer> arIds);\n\tboolean buyAidsForUser(int uid, List<Integer> aidIds);\n\t// ---\n\t\n}", "public interface LeagueManager {\n\tpublic boolean deleteClub(String name);\n\n\tpublic void addTheClub(FootballClub club, String name, String location, int wins, int draws, int defeats,\n\t\t\tint goalsReceived, int defeatsScored, int points, int mathces);\n\n\tpublic void addTheClub(FootballClub club, String name, String location);\n\n\tpublic void showTheClubs();\n\n\tpublic void showTheClubs(String name);\n\n\tpublic void displayPremierLeague();\n\n\tpublic void updateScore(String name, int score);\n\n}", "public interface Actor extends LogicalHandled\n{\t\n\t/**\n\t * This is the actors action, which will be called at each step\n\t */\n\tpublic void act();\n}", "public interface IdeaService {\n\n public void addIdea(String ideaTitle, String ideaDescription, User user);\n\n public void addIdea(String title, String descrption, CategoryIdea category, User user);\n\n public void deleteIdea(Idea idea);\n\n public List<Idea> getAllIdeas();\n\n\n}" ]
[ "0.5587027", "0.5546627", "0.5492893", "0.5420454", "0.5312046", "0.52070284", "0.5157828", "0.5151679", "0.5117358", "0.505299", "0.50483865", "0.49931166", "0.4974423", "0.49700472", "0.49493557", "0.4938349", "0.49226826", "0.49193904", "0.49126104", "0.49109197", "0.49056748", "0.48902714", "0.48896638", "0.48874056", "0.488722", "0.4868609", "0.48662615", "0.48622912", "0.48587313", "0.4837309", "0.47978032", "0.47856933", "0.47836772", "0.47752637", "0.47714603", "0.47705638", "0.47661534", "0.4764711", "0.4761164", "0.4753266", "0.47478625", "0.47391954", "0.47387767", "0.47245696", "0.47212622", "0.4709635", "0.47094262", "0.4709011", "0.47085273", "0.47041556", "0.4704004", "0.47036833", "0.47017857", "0.47013265", "0.47010335", "0.4699157", "0.46920076", "0.46872863", "0.46807304", "0.46566477", "0.46561077", "0.46552762", "0.46483475", "0.46460316", "0.4641607", "0.46409", "0.46405718", "0.46353313", "0.46305576", "0.4628756", "0.4628218", "0.46248254", "0.462386", "0.46214715", "0.46193746", "0.4617183", "0.46146584", "0.46140325", "0.46107042", "0.46076503", "0.46011958", "0.46010378", "0.4598478", "0.459133", "0.45886096", "0.45878232", "0.45858473", "0.458559", "0.45855004", "0.4585", "0.45843577", "0.45842588", "0.45832506", "0.4582542", "0.45814225", "0.45809934", "0.45809028", "0.45789784", "0.45773482", "0.45757616" ]
0.5073321
9
Update the IBubbleMgr must be called on each pass thru update loop
void update(Env world) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IFoodMgr\n{\n /**\n * Update the IBubbleMgr - must be called on each pass thru update loop\n */\n void update(Env world) throws Exception;\n\n}", "@Override\n public void update() {\n updateBuffs();\n }", "@Override\n public void update() {\n this.blnDoUpdate.set(true);\n }", "public void updateManager();", "public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}", "private void notifyUpdateLoop(UpdateLoopEvento event) {\r\n\t\tIterator ite = this.iterator();\r\n\t\twhile (ite.hasNext()) {\r\n\t\t\tIListaLoopListener ilLoop = (IListaLoopListener) ite.next();\r\n\t\t\tilLoop.LoopUpdate(event);\r\n\t\t}\r\n\t}", "protected void onUpdate() {\r\n\r\n\t}", "private void follow_updates() {\n new Thread() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(1000);\n GUI.setUps(upd_count);\n upd_count = 0;\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }", "@Override\n public void notifyUpdate() {\n Update();\n //Invia all'activity di questo frammento il totale speso per aggiornare la sezione di controllo del budget\n onSendTotSpent.ReceiveTotSpent(contactGiftAdapter.totSpent());\n }", "public void notifyListeners() {\n Logger logger = LogX;\n logger.d(\"notifyListeners: \" + this.mListeners.size(), false);\n List<IWalletCardBaseInfo> tmpCardInfo = getCardInfo();\n Iterator<OnDataReadyListener> it = this.mListeners.iterator();\n while (it.hasNext()) {\n it.next().refreshData(tmpCardInfo);\n }\n }", "public void update(){\r\n\t\t\r\n\t}", "private void updateAllBonuses() {\n\t\tfor(int i = 0; i < bonuses.length; i++)\n\t\t\tbonuses[i] = 0;\n\t\tfor(Item item : getItems()) {\n\t\t\tupdateBonus(null, item);\n\t\t}\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic void onUpdate() {\n\t\tlistener.onUpdate();\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void updateActivity() {\n if (bubbleMode) {\n final ObservableList<Node> children = this.bubbleBox.getChildren();\n for (Node child : children) {\n Circle circle = (Circle) child;\n IServiceModel model = (IServiceModel) circle.getUserData();\n if (model.equals(activeModel)) {\n circle.setStrokeWidth(STROKE_WIDTH);\n circle.setStroke(Colors.COLOR_DARK_HEADER);\n circle.setFill(null);\n }\n else if (model.isActive()) {\n circle.setStrokeWidth(STROKE_WIDTH);\n circle.setStroke(Colors.COLOR_DARK_HEADER);\n circle.setFill(Color.valueOf(Colors.HEX_COLOR_INACTIVE));\n }\n else {\n circle.setFill(Colors.COLOR_DARK_HEADER);\n }\n }\n }\n else {\n gc.clearRect(0, 0, PAGER_WIDTH, bubbleRadius*2+2);\n gc.setFill(Paint.valueOf(Colors.HEX_COLOR_INACTIVE));\n gc.fillRoundRect(0, 0, PAGER_WIDTH, bubbleRadius*2+2, bubbleRadius*2+2, bubbleRadius*2+2);\n gc.setFill(Paint.valueOf(Colors.HEX_COLOR_DARK));\n\n double pos = new Double(PAGER_WIDTH-bubbleRadius*2) / models.size();\n pos = (pos * models.indexOf(activeModel)) + 2;\n gc.fillOval(pos, 1, bubbleRadius*2, bubbleRadius*2);\n }\n }", "public void update() {}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\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}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "public void update(){\r\n }", "@Override\r\n\tpublic void Update() {\n\t\tSystem.out.println(name+\",¹Ø±ÕNBA£¬¼ÌÐø¹¤×÷£¡\"+abstractNotify.getAction());\r\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "void onUpdate(Message message);", "@Override\n public void update() {\n }", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "public void update() {\n\t\t\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "@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 updateGUIStatus() {\r\n\r\n }", "@Override\n public void update() {\n \n }", "@Override\n public void update()\n {\n\n }", "private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }", "@Override\n public void update() {\n\n }", "private void notifyidiots() {\n\t\tfor(Observ g:obslist) {\n\t\t\tg.update();\n\t\t}\n\t}", "public void update() {\n manager.update();\n }", "public void update() {\n }", "private void checkForUpdates() {\n UpdateManager.register(this);\n }", "private void checkForUpdates() {\n UpdateManager.register(this);\n }", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void updateComponents(){\n adapter.updateItems();\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}", "EventChannel.Update update();", "public void update()\n {\n for (Container container : containers)\n container.update(false);\n\n Gui.update(BanksGUI.class);\n Gui.update(BankGUI.class);\n Gui.update(ItemsGroupsGUI.class);\n }", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "public void updateIM(){\n \n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "public void update(){\n \n // ADD YOU CODE HERE\n\n // Updating the number of steps label\n nbreOfStepsLabel.setText(\"Number of steps: \" + Integer.toString(gameModel.getNumberOfSteps()));\n \n // Updating the icons\n for (int i=0; i<gameModel.getHeigth(); i++) {\n\n for (int j=0; j<gameModel.getWidth(); j++) {\n\n board[i][j].setIconNumber(getIcon(j,i));\n \n } \n }\n\n pack();\n }", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "public void update() {\n menu = new PopupMenu();\n\n final MenuItem add = new MenuItem(Messages.JOINCHANNEL);\n\n final MenuItem part = new MenuItem(Messages.PARTCHANNEL);\n\n final MenuItem reload = new MenuItem(Messages.RELOAD);\n\n final Menu language = new Menu(Messages.LANGUAGE);\n\n final MenuItem eng = new MenuItem(Messages.ENGLISH);\n\n final MenuItem fr = new MenuItem(Messages.FRENCH);\n\n final MenuItem sp = new MenuItem(Messages.SPANISH);\n\n final MenuItem debug = new MenuItem(Messages.DEBUG);\n\n final MenuItem about = new MenuItem(Messages.ABOUT);\n\n final MenuItem exit = new MenuItem(Messages.EXIT);\n exit.addActionListener(e -> Application.getInstance().disable());\n about.addActionListener(e -> JOptionPane.showMessageDialog(null,\n Messages.ABOUT_MESSAGE));\n add.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n if (Application.getInstance().getChrome().getToolbar()\n .getButtonCount() < 10) {\n Application.getInstance().getChrome().getToolbar().parent\n .actionPerformed(new ActionEvent(this, e.getID(),\n \"add\"));\n } else {\n JOptionPane.showMessageDialog(null,\n \"You have reached the maximum amount of channels!\");\n }\n }\n });\n part.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n Application.getInstance().getChrome().getToolbar().parent\n .actionPerformed(new ActionEvent(this,\n ActionEvent.ACTION_PERFORMED, \"remove\"\n + \".\"\n + Application.getInstance().getChrome()\n .getToolbar().getCurrentTab()));\n }\n });\n debug.addActionListener(e -> {\n if (!LoadScreen.getDebugger().isVisible()) {\n LoadScreen.getDebugger().setVisible(true);\n } else {\n LoadScreen.getDebugger().setVisible(true);\n }\n });\n\n eng.addActionListener(arg0 -> {\n Messages.setLanguage(Language.ENGLISH);\n Application.getInstance().getTray().update();\n });\n\n fr.addActionListener(arg0 -> {\n Messages.setLanguage(Language.FRENCH);\n Application.getInstance().getTray().update();\n });\n\n sp.addActionListener(arg0 -> {\n Messages.setLanguage(Language.SPANISH);\n Application.getInstance().getTray().update();\n });\n\n if (eng.getLabel().equalsIgnoreCase(Messages.CURR)) {\n eng.setEnabled(false);\n }\n\n if (fr.getLabel().equalsIgnoreCase(Messages.CURR)) {\n fr.setEnabled(false);\n }\n\n if (sp.getLabel().equalsIgnoreCase(Messages.CURR)) {\n sp.setEnabled(false);\n }\n\n if (Application.getInstance().getChrome().getToolbar().getCurrentTab() == -1) {\n part.setEnabled(false);\n }\n if (!Application.getInstance().getChrome().getToolbar().isAddVisible()) {\n add.setEnabled(false);\n }\n\n language.add(eng);\n language.add(fr);\n language.add(sp);\n\n menu.add(add);\n menu.add(part);\n menu.add(reload);\n menu.addSeparator();\n menu.add(language);\n menu.addSeparator();\n menu.add(debug);\n menu.add(about);\n menu.addSeparator();\n menu.add(exit);\n Tray.sysTray.setPopupMenu(menu);\n }", "@Override\n\tpublic void update() { }", "public void receivedUpdateFromServer();", "@Override\n public void update() {\n }", "public void update(){\n }", "public void update() {\n\n }", "public void update() {\n\n }", "@Override\n public void doUpdate(NotificationMessage notification) {\n \n }", "private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }", "public void update () {\n synchronized (this) {\n messagesWaiting.add\n (new OleThreadRequest(UPDATE,\n 0, 0, 0, 0));\n notify();\n }\n }", "public void update(){}", "public void update(){}", "public synchronized void startUpdates(){\n mStatusChecker.run();\n }", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "public void update()\n {\n tick++;\n if (this.part != null)\n {\n for (UpdatedLabel label : dataLabels)\n {\n label.update();\n }\n int c = 0;\n for (Entry<MechanicalNode, ForgeDirection> entry : part.node.getConnections().entrySet())\n {\n if (entry.getKey() != null)\n {\n this.connections[c].setText(\"Connection\" + c + \": \" + entry.getKey());\n c++;\n }\n }\n for (int i = c; i < connections.length; i++)\n {\n this.connections[i].setText(\"Connection\" + i + \": NONE\");\n }\n }\n }", "protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }", "public void updateClientBag()\n\t{\n\t\tfor(int i = 0; i < getBag().getItems().size(); i++)\n\t\t\tupdateClientBag(i);\n\t}", "private void notifyListeners() {\n\t\tfor(ModelListener l:listeners) {\n\t\t\tl.update();\t// Tell the listener that something changed\n\t\t}\n\t}", "private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }" ]
[ "0.69970614", "0.6664835", "0.6504675", "0.632884", "0.62836546", "0.62421936", "0.6234469", "0.6217059", "0.62159145", "0.6107097", "0.6095852", "0.608168", "0.60681057", "0.6066313", "0.60582894", "0.6057306", "0.604292", "0.6042586", "0.6042586", "0.6042586", "0.6042586", "0.6040341", "0.6040341", "0.6040341", "0.6040341", "0.6040341", "0.60346967", "0.60240626", "0.6021617", "0.6016159", "0.6016159", "0.6015746", "0.60030955", "0.6002753", "0.6002753", "0.6002408", "0.5999517", "0.5993093", "0.5993093", "0.59907776", "0.5987441", "0.5986475", "0.5985273", "0.59832394", "0.5980493", "0.59799016", "0.5961246", "0.59604144", "0.59604144", "0.59543264", "0.59525555", "0.594609", "0.594609", "0.594609", "0.594609", "0.594609", "0.594609", "0.5940272", "0.59385777", "0.59343946", "0.59343946", "0.59343946", "0.5924553", "0.5923179", "0.59156495", "0.59156495", "0.59156495", "0.5914984", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.59139323", "0.5911895", "0.59093684", "0.59040236", "0.59033734", "0.58930266", "0.5891557", "0.5891557", "0.5890783", "0.5886974", "0.58837336", "0.58813035", "0.58813035", "0.5878396", "0.58482456", "0.5847768", "0.5847768", "0.58390725", "0.58364683", "0.58330643", "0.58284914", "0.5819019", "0.58187133", "0.58061683" ]
0.0
-1
Users for corresponding credential
@BeforeAll public void setup() throws CredentialAlreadyExistsException { LocalDate now_ld = LocalDate.now(); user1 = new User("testuser1@email.com", "FirstName1", "LastName1", now_ld, null); user2 = new User("testuser2@email.com", "FirstName2","LastName2", now_ld, null); // Add credentials to the database to use for testing if they don't already exist. password1 = "testuser11234"; password2 = "testuser21234"; credentialUser = new Credential("testuser1", password1, user1); credentialAdmin = new Credential("testuser2", password2, user2); credentialAdmin.setUserRole("ROLE_ADMIN"); credentialUser = credentialService.add(credentialUser); credentialAdmin = credentialService.add(credentialAdmin); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "public String[] getUsers(){\n try {\n names = credentials.keys();\n }catch (java.util.prefs.BackingStoreException e1){\n System.out.println(e1);\n }\n return names;\n }", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }", "private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void multipleUsersExample()\t{\n\t}", "public List<Utilizator> listUsers();", "private void lookUpUsers() {\n\t\ttry {\n\t\t\tString[] regList = Naming.list(\"//localhost:3000\");\n\t\t\tfor (String s : regList) {\n\t\t\t\tif (!s.contains(\"Notary\") && !s.contains(this.id)) {\n\t\t\t\t\tremoteUsers\n\t\t\t\t\t\t.put(s.replace(\"//localhost:3000/\", \"\"), (UserInterface) Naming.lookup(s));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\n\t\t\tSystem.err.println(\"ERROR looking up user\");\n\t\t}\n\t}", "public void getAllUsers() {\n\t\t\n\t}", "@Override\n public void gotUsers(ArrayList<User> usersList) {\n for(int i = 0; i < usersList.size(); i++) {\n User currentUser = usersList.get(i);\n if(currentUser.getUser_name().equals(username) && currentUser.getUser_password()\n .equals(password)) {\n disableButton.setEnabled(true);\n Intent intent = new Intent(NewaccountActivity.this,\n OverviewActivity.class);\n intent.putExtra(\"loggedInUser\", currentUser);\n startActivity(intent);\n }\n }\n }", "@Override\n\tpublic User getUserByCredentials(String userName, String password) {\n\t\tList<User> userList = new ArrayList<User>();\n\t\tString query = \"SELECT u FROM User u\";\n\t\tuserList = em.createQuery(query, User.class).getResultList();\n\t\tUser returnUser = null;\n\t\tfor (User user : userList) {\n\t\t\tif (user.getUserName().equals(userName) && user.getPassword().equals(password)) {\n\t\t\t\tSystem.out.println(user);\n\t\t\t\treturnUser = user;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not found\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn returnUser;\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "public List<UserCredential> getAllCredentials() {\n\t\t List<UserCredential> userCredentials = new ArrayList<>();\n\t\t \n\t\t credentialRepo.findAll().forEach(userCredential -> userCredentials.add(userCredential));\n\t\t \n\t\treturn userCredentials;\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "public void getUsers(String[] tokens) {\n\n }", "public Map<Long, User> showUsers() throws UserException {\n\t\treturn null;\r\n\t}", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "public List getAllUsers();", "@DataProvider(name = \"Authentication\")\n\t public static Object[][] credentials() {\n\t return new Object[][] { { \"testuser_1\", \"Test@123\" }, { \"testuser_2\", \"Test@1234\" }}; \n\t }", "com.heroiclabs.nakama.api.User getUsers(int index);", "public void selectAllUser() {\n String sql = \"SELECT id, user, publickey, password, salt FROM users\";\n\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n System.out.println(rs.getInt(\"id\") + \"\\t\" + rs.getString(\"user\") + \"\\t\" + rs.getDouble(\"publickey\")\n + \"\\t\" + rs.getString(\"password\") + \"\\t\" + rs.getString(\"salt\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n\tpublic List<UserCredential> viewAllEmployees(String authToken) throws ManualException{\r\n\t\tfinal\tSession session=sessionFactory.openSession();\r\n\t\tList<UserCredential> userlist =null;\r\n\r\n\t\t/* check for authToken of admin */\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\ttry{\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\n\t\t\tUser user = authtable.getUser();\r\n\t\t\tif(user.getUsertype().equals(\"Admin\")){\r\n\t\t\t\tString hql=\"from user\";\r\n\t\t\t\tQuery q=session.createQuery(hql);\r\n\t\t\t\tuserlist=(List)q.list();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tManualException ex = new ManualException(\"user.list.empty\",env.getProperty(\"user.list.empty\"));\r\n\t\t\tuserlist=null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn userlist;\r\n\t\t}\r\n\t}", "public void loadUsers() {\n CustomUser userOne = new CustomUser();\n userOne.setUsername(SpringJPABootstrap.MWESTON);\n userOne.setPassword(SpringJPABootstrap.PASSWORD);\n\n CustomUser userTwo = new CustomUser();\n userTwo.setUsername(SpringJPABootstrap.TEST_ACCOUNT_USER_NAME);\n userTwo.setPassword(SpringJPABootstrap.TEST_ACCOUNT_PASSWORD);\n\n String firstUserName = userOne.getUsername();\n\n /*\n * for now I am not checking for a second user because there is no delete method being\n * used so if the first user is created the second user is expected to be created. this\n * could cause a bug later on but I will add in more logic if that is the case in a\n * future build.\n */\n if(userService.isUserNameTaken(firstUserName)) {\n log.debug(firstUserName + \" is already taken\");\n return ;\n }\n userService.save(userOne);\n userService.save(userTwo);\n\n log.debug(\"Test user accounts have been loaded!\");\n }", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "private static Map<String, User> getUsers() {\n Map<String, User> users = new HashMap<String, User>();\n\n User userOne = new User(\"one\",\"1\");\n User userTwo = new User(\"two\",\"2\");\n\n users.put(userOne.getName(), userOne);\n users.put(userTwo.getName(), userTwo);\n\n return users;\n }", "public void getUserAccounts(){\n UserAccountDAO userAccountsManager = DAOFactory.getUserAccountDAO();\n //populate with values from the database\n if(!userAccountsManager.readUsersHavingResults(userAccounts)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read user accounts from database. Please check your internet connection and try again.\");\n System.exit(-4);\n }\n }", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public People getUser(int index) {\n return user_.get(index);\n }", "@Override\n public void initializeUsersForImportation() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeUsersForImportation\");\n }\n clearAddPanels();\n setRenderImportUserPanel(true);\n\n List<User> users;\n\n usersForImportation = new ArrayList<Pair<Boolean, User>>();\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n users = User.listUsersForCompany(choosenInstitutionForAdmin);\n } else {\n users = User.listAllUsers();\n }\n } else {\n users = User.listUsersForCompany(Institution.getLoggedInInstitution());\n }\n boolean emailAlreadyExists;\n for (User user : users) {\n emailAlreadyExists = false;\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n\n if (user.getEmail().equals(cp.getEmail())) {\n emailAlreadyExists = true;\n }\n }\n\n if (!emailAlreadyExists) {\n usersForImportation.add(new Pair<Boolean, User>(false, user));\n }\n }\n }", "@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }", "User findByCredential(Credential credential);", "public String[] listUsers();", "@Override\r\n\tpublic List<User> getUsersList(String key) {\n\t\treturn loginDao.findByUsernameAndRole(key,\"USER\");\r\n\t}", "private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "private List<ApplicationUser> getApplicationUsers() {\r\n List<ApplicationUser> appUsers = Lists.newArrayList(\r\n\r\n new ApplicationUser(\r\n STUDENT.getGrantedAuthorities(),\r\n passEncoder.encode(\"notthebees\"),\r\n \"mirajones\",\r\n true,\r\n true,\r\n true,\r\n true\r\n ),\r\n\r\n new ApplicationUser(\r\n ADMIN.getGrantedAuthorities(),\r\n passEncoder.encode(\"password123\"),\r\n \"linda\",\r\n true,\r\n true,\r\n true,\r\n true\r\n ),\r\n\r\n new ApplicationUser(\r\n ADMINTRAINEE.getGrantedAuthorities(),\r\n passEncoder.encode(\"thisisapass\"),\r\n \"tomtrainee\",\r\n true,\r\n true,\r\n true,\r\n true\r\n )\r\n );\r\n\r\n return appUsers;\r\n }", "public String ListUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio\r\n listUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n return listUsers.toString(); \r\n }", "private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }", "public List<EOSUser> findUsers(List<String> logins);", "public void viewUsers(){\n Database manager = new Database(\n this,\n \"mypets\",\n null,\n 1\n );\n //2. Let write on DB\n SQLiteDatabase mypets = manager.getWritableDatabase();\n //3. Get information from database\n int idAdmin = 1;\n Cursor row = mypets.rawQuery(\n \"SELECT * FROM users WHERE id not in (?)\",\n idAdmin\n );\n\n if (row.getCount() == 0) {\n Toast.makeText(\n this,\n \"::: There isn't any user registered:::\",\n Toast.LENGTH_SHORT\n ).show();\n } else {\n while(row.moveToNext()) {\n listUsers.add(row.getString(1));\n listUsers.add(row.getString(3));\n }\n adapter = new ArrayAdapter<>(\n this,\n android.R.layout.simple_list_item_1,\n listUsers\n );\n userList.setAdapter(adapter);\n }\n }", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "private Map<Object, User> getSimpleUsers(NotesSession notesSession,\n Connection connection, Collection<?> userNames) {\n PreparedStatement exactMatchStmt = null;\n PreparedStatement commonNameStmt = null;\n Map<Object, User> users = new HashMap<Object, User>();\n try {\n exactMatchStmt = connection.prepareStatement(\"select * from \"\n + userTableName + \" where notesname = ?\",\n ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n commonNameStmt = connection.prepareStatement(\"select * from \"\n + userTableName + \" where notesname like ?\",\n ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n for (Object userObj : userNames) {\n if (userObj == null) {\n continue;\n }\n String userName = userObj.toString();\n try {\n // Try an exact match.\n String lookupString = userName;\n User user = getSimpleUser(connection, exactMatchStmt, lookupString);\n if (user != null) {\n users.put(userObj, user);\n continue;\n }\n LOGGER.log(Level.FINEST, \"User not found using: {0}\", lookupString);\n // Try converting to canonical format.\n NotesName notesName = notesSession.createName(userName);\n if (notesName != null) {\n lookupString = notesName.getCanonical();\n user = getSimpleUser(connection, exactMatchStmt, lookupString);\n if (user != null) {\n users.put(userObj, user);\n continue;\n }\n LOGGER.log(Level.FINEST, \"User not found using: {0}\", lookupString);\n }\n // If an exact match failed, see if we have a common name.\n if (!userName.toLowerCase().startsWith(\"cn=\")) {\n lookupString = \"cn=\" + userName + \"/%\";\n user = getSimpleUser(connection, commonNameStmt, lookupString);\n if (user != null) {\n users.put(userObj, user);\n continue;\n }\n LOGGER.log(Level.FINEST, \"User not found using: {0}\", lookupString);\n }\n LOGGER.log(Level.FINEST, \"No record found for user: {0}\", userName);\n } catch (Exception e) {\n LOGGER.log(Level.SEVERE, \"Failed to lookup user: \" + userName, e);\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.SEVERE,\n \"Failed to complete user lookup: \" + userNames, e);\n }\n return users;\n }", "public com.rpg.framework.database.Protocol.User getUsers(int index) {\n return users_.get(index);\n }", "public com.rpg.framework.database.Protocol.User getUsers(int index) {\n return users_.get(index);\n }", "public void fillUsers(int totalEntries) {\n\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n storeOperations.createAccount(\"user_\" + i, \"password_\" + i, Fairy.create().person().getFirstName(), Fairy.create().person().getLastName());\n }\n }", "private static Set<User> createUsers() {\n\t\tfinal Set<User> users = new HashSet<>();\n\t\tusers.add(new User(\"Max\", \"password\"));\n\t\treturn users;\n\t}", "People getUser();", "@Override\r\n\tpublic void viewAllUsers() {\n\t\tList<User> allUsers = new ArrayList<User>();\r\n\t\tallUsers = udao.getAllUsers();\r\n\t\t\r\n\t\tSystem.out.println(\"ALL USERS:\");\r\n\t\tSystem.out.println(\"ID\\tUsername\\tName\");\r\n\t\t\r\n\t\tfor(int i = 0; i < allUsers.size(); i++) {\r\n\t\t\tUser tempUser = allUsers.get(i);\r\n\t\t\tSystem.out.println(tempUser.getUserID() + \"\\t\" + tempUser.getUsername() + \"\\t\"\r\n\t\t\t\t\t+ tempUser.getFirstName() + \" \" + tempUser.getLastName());\r\n\t\t}\r\n\r\n\t}", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "@Override\n\tpublic List<Login> findAllUsers() {\n\t\treturn userRepo.findAll();\n\t}", "@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}", "public List getUsers(User user);", "@Override\r\n\tpublic List<User> viewUsers() {\n\t\treturn user.viewUsers();\r\n\t}", "@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }", "public void findUsers() throws SQLException {\r\n\t\t// Query to get all users and ids.\r\n\t\t\r\n\t\t// Clear existing list\r\n\t\tusersList.clear();\r\n\t\tuseridsList.clear();\r\n\t\t\r\n\t\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t ResultSet rs = statement.executeQuery(\"select * from users\");\r\n\t while(rs.next())\r\n\t {\r\n\t // read the result set\r\n\t\t\t usersList.add(rs.getString(\"name\"));\r\n\t\t\t useridsList.add(rs.getInt(\"id\"));\r\n\t }\r\n\t\t// For loop to add each result to list.\r\n\r\n\t}", "public List<User> list(String currentUsername);", "@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }", "@Override\n public BlueUserContainer getUsers() {\n return users;\n }", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "public List<User> getAllUsers() {\n\n\t\tList<User> result = new ArrayList<User>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllUsers);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tString query = \"SELECT IdGlobal, TCELLIP, PUBLICKEY, TCELLPORT from USER\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint UserGID =rs.getInt(1);\n\t\t\t\tString TCellIP = rs.getString(2);\n\t\t\t\t\n\t\t\t\t//convert Blob to String\n\t\t\t\tBlob myPubKeyBlob = rs.getBlob(3);\n\t\t\t\tbyte[] bPubKey = myPubKeyBlob.getBytes(1, (int) myPubKeyBlob.length());\n\t\t\t\tString pubKey = new String(bPubKey);\n\t\t\t\t\n\t\t\t\tint port = rs.getInt(4);\n\t\t\t\tUser user = new User(UserGID,TCellIP, port, pubKey);\n\t\t\t\tresult.add(user);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\n\t}", "private UserDao() {\n\t\tusersList = new HashMap<String, User>();\n\t\tusersDetails = JsonFilehandling.read();\n\t\tfor (JSONObject obj : usersDetails) {\n\t\t\tusersList.put(obj.get(\"id\").toString(), new User(obj.get(\"id\").toString(),obj.get(\"name\").toString(), obj.get(\"profession\").toString()));\n\t\t}\n\t}", "@Override\n\tpublic User getUser(Account account) {\n\t\treturn usersHashtable.get(account);\n\t\t\n\t}", "public List<User> listUsers(String userName);", "private void getManagedUsers(Request request) {\n // LUA uuid/ManagedBy Id\n String uuid = (String) request.get(JsonKey.ID);\n\n boolean withTokens = Boolean.valueOf((String) request.get(JsonKey.WITH_TOKENS));\n\n Map<String, Object> searchResult =\n userClient.searchManagedUser(\n getActorRef(ActorOperations.USER_SEARCH.getValue()),\n request,\n request.getRequestContext());\n List<Map<String, Object>> userList = (List) searchResult.get(JsonKey.CONTENT);\n\n List<Map<String, Object>> activeUserList = null;\n if (CollectionUtils.isNotEmpty(userList)) {\n activeUserList =\n userList\n .stream()\n .filter(o -> !BooleanUtils.isTrue((Boolean) o.get(JsonKey.IS_DELETED)))\n .collect(Collectors.toList());\n }\n if (withTokens && CollectionUtils.isNotEmpty(activeUserList)) {\n // Fetch encrypted token from admin utils\n Map<String, Object> encryptedTokenList =\n userService.fetchEncryptedToken(uuid, activeUserList, request.getRequestContext());\n // encrypted token for each managedUser in respList\n userService.appendEncryptedToken(\n encryptedTokenList, activeUserList, request.getRequestContext());\n }\n Map<String, Object> responseMap = new HashMap<>();\n if (CollectionUtils.isNotEmpty(activeUserList)) {\n responseMap.put(JsonKey.CONTENT, activeUserList);\n responseMap.put(JsonKey.COUNT, activeUserList.size());\n } else {\n responseMap.put(JsonKey.CONTENT, new ArrayList<>());\n responseMap.put(JsonKey.COUNT, 0);\n }\n Response response = new Response();\n response.put(JsonKey.RESPONSE, responseMap);\n sender().tell(response, self());\n }", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException 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}", "@Override\r\n\tpublic User getUseByUsernameAndPassword(User user) {\n\t\tString sql = \"select id,username,password,email from user where username=? and password=?\";\r\n\t\t\r\n\t\treturn this.queryOne(sql,user.getUsername(),user.getPassword());\r\n\t}", "@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}", "@Override\n\tpublic List<User> findUser() {\n\t\treturn userdao.findUser();\n\t}", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "@Override\n public Future<Seq<TUser>> getUsers() {\n return futurePool.apply(new BlockingUserRetriever(\"user1\", false))\n .join(futurePool.apply(new BlockingUserRetriever(\"user2\", false)))\n .transformedBy(\n new FutureTransformer<Tuple2<User, User>, List<TUser>>() {\n @Override\n public List<TUser> map(Tuple2<User, User> value) {\n List<TUser> list = new ArrayList<TUser>(2);\n list.add(value._1().toTObject());\n list.add(value._2().toTObject());\n return list;\n }\n\n // if we call BlockingUserRetriever with useRandom=true then\n // one of the users of maybe both can fail because don't exist so\n // we catch the exception and return an empty list instead\n @Override\n public List<TUser> handle(Throwable throwable) {\n return new ArrayList<TUser>();\n }\n }\n ).transformedBy(\n new FutureTransformer<List<TUser>, Seq<TUser>>() {\n @Override\n public Seq<TUser> map(List<TUser> value) {\n return ScalaSupport.toScalaSeq(value);\n }\n }\n );\n }", "@Override\r\n\tpublic void viewAllAccountsAllUsers() {\n\t\tas.getAllAccountsAllUsers();\r\n\t}", "public void getUserNames(){\n //populate all the usernames in here\n if(dbConnection.ConnectDB()){\n //we are connected to the database\n //get the userList from the database\n if(this.dbConnection.populateUserList()){\n //the list was created by the database method \n this.userNames = this.dbConnection.getUserNames();\n \n }\n }else{\n System.out.println(\"Connected to database\");\n \n }\n }", "@Override\r\n\tpublic List<User> getUserList(Map map) {\n\t\treturn userDao.findUser(map);\r\n\t}", "public int getLoggedInUsers();", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "@Override\n public List<LdapUser> getAllLdapUsers() throws NamingException {\n\n LOGGER.info(\"Getting all Ldap Users Service implementation\");\n Hashtable<String, String> env = new Hashtable<>();\n SearchControls searchCtrls = new SearchControls();\n searchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n env.put(Context.INITIAL_CONTEXT_FACTORY,\n \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, ldapUrl);\n env.put(Context.REFERRAL, \"follow\");\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n env.put(Context.SECURITY_PRINCIPAL, ldapUsername);\n env.put(Context.SECURITY_CREDENTIALS, ldapPassword);\n DirContext context = new InitialDirContext(env);\n String filter = ldapFilter;\n String searchBase = ldapSearchBase;\n NamingEnumeration answer = context.search(searchBase, filter, searchCtrls);\n List<LdapUser> userList = null;\n userList = new ArrayList<>();\n LdapUser user = null;\n while (answer.hasMoreElements()) {\n SearchResult sr = (SearchResult) answer.next();\n user = new LdapUser();\n user.setName(sr.getName());\n userList.add(user);\n Attributes attrs = sr.getAttributes();\n if (attrs != null) {\n this.ifAttrsNotNull(user, attrs);\n }\n }\n return userList;\n }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "public void setUser(LoginUser loginUser)\n {\n try (Connection connection = DatabaseAccess.getInstance().getConnection())\n {\n Statement statement = connection.createStatement();\n\n String query =\n \"SELECT * FROM \" + loginUser.getAccessType() + \" WHERE email = '\"\n + loginUser.getUsername() + \"' AND password = '\" + loginUser\n .getPassword() + \"'\";\n\n ResultSet r = statement.executeQuery(query);\n r.next();\n\n if (loginUser.getAccessType() == AccessType.DOCTOR)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Doctor(r.getString(\"f_name\"), r.getString(\"mid_name\"),\n r.getString(\"l_name\"), r.getLong(\"ssn\"), r.getDate(\"dob\"), address,\n r.getString(\"contact_f_name\"), r.getString(\"contact_mid_name\"),\n r.getString(\"contact_l_name\"), r.getString(\"contact_phone\"),\n r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"specialization\"),\n new Ward(r.getString(\"ward_name\"), r.getInt(\"room_number\")),\n r.getString(\"email\"), r.getString(\"password\"));\n doctorsAppointments = r.getInt(\"nr_appointments\");\n }\n\n else if (loginUser.getAccessType() == AccessType.NURSE)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Nurse(r.getLong(\"ssn\"), r.getLong(\"doctor_ssn\"),\n r.getString(\"f_name\"), r.getString(\"mid_name\"),\n r.getString(\"l_name\"), r.getDate(\"dob\"), address,\n r.getString(\"contact_f_name\"), r.getString(\"contact_mid_name\"),\n r.getString(\"contact_l_name\"), r.getString(\"contact_phone\"),\n r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"experience\"), r.getString(\"email\"),\n r.getString(\"password\"));\n }\n\n else if (loginUser.getAccessType() == AccessType.MANAGER)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Manager(r.getLong(\"ssn\"), r.getString(\"f_name\"),\n r.getString(\"mid_name\"), r.getString(\"l_name\"), r.getDate(\"dob\"),\n address, r.getString(\"contact_f_name\"),r.getString(\"contact_mid_name\"), r.getString(\"contact_l_name\"),\n r.getString(\"contact_phone\"), r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"position\"), r.getString(\"email\"),\n r.getString(\"password\"));\n }\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n }", "@Query(\"SELECT * FROM USERS_TABLE\")\n List<UsersEntity>checkUsernameAndPassword();", "public List<User> loadAllUserDetails()throws Exception;", "List<User> getActivatedUserList();", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}", "public static void populateUsers() throws Exception {\n FrameworkUtil.setKeyStoreProperties();\n if (executionEnvironment.equals(Platforms.product.name())) {\n productGroupName = InitialContextPublisher.getContext().getPlatformContext().\n getFirstProductGroup().getGroupName();\n List<Instance> instanceList = InitialContextPublisher.getContext().getPlatformContext().\n getFirstProductGroup().getAllStandaloneInstances();\n for (Instance instance : instanceList) {\n instanceName = instance.getName();\n sessionCookie = InitialContextPublisher.\n getAdminUserSessionCookie(productGroupName, instanceName);\n backendURL = InitialContextPublisher.\n getSuperTenantEnvironmentContext(productGroupName, instanceName).\n getEnvironmentConfigurations().getBackEndUrl();\n userPopulator = new UserPopulator(sessionCookie, backendURL, multiTenantEnabled);\n log.info(\"Populating users for \" + productGroupName + \" product group: \" +\n instanceName + \" instance\");\n userPopulator.populateUsers(productGroupName, instanceName);\n }\n }\n //here we go through every product group and populate users for those\n else if (executionEnvironment.equals(Platforms.platform.name())) {\n List<ProductGroup> productGroupList = InitialContextPublisher.getContext().\n getPlatformContext().getAllProductGroups();\n for (ProductGroup productGroup : productGroupList) {\n productGroupName = productGroup.getGroupName();\n if (! productGroup.isClusteringEnabled()) {\n instanceName = productGroup.getAllStandaloneInstances().get(0).getName();\n } else {\n if (productGroup.getAllLBWorkerManagerInstances().size() > 0) {\n LBWorkerManagerInstance lbWorkerManagerInstance = productGroup.\n getAllLBWorkerManagerInstances().get(0);\n lbWorkerManagerInstance.setHost(lbWorkerManagerInstance.getManagerHost());\n instanceName = lbWorkerManagerInstance.getName();\n } else if (productGroup.getAllLBManagerInstances().size() > 0) {\n instanceName = productGroup.getAllLBManagerInstances().get(0).getName();\n } else if (productGroup.getAllManagerInstances().size() > 0) {\n instanceName = productGroup.getAllManagerInstances().get(0).getName();\n }\n }\n sessionCookie = InitialContextPublisher.\n getAdminUserSessionCookie(productGroupName, instanceName);\n backendURL = InitialContextPublisher.\n getSuperTenantEnvironmentContext(productGroupName, instanceName).\n getEnvironmentConfigurations().getBackEndUrl();\n userPopulator = new UserPopulator(sessionCookie, backendURL, multiTenantEnabled);\n log.info(\"Populating users for \" + productGroupName + \" product group: \" +\n instanceName + \" instance\");\n userPopulator.populateUsers(productGroupName, instanceName);\n }\n }\n }", "private void listarUsuarios() {\r\n \t\r\n \tfor(String usuario : ConfigureSetup.getUsers()) {\r\n \t\tif(!usuario.equals(ConfigureSetup.getUserName()))\r\n \t\t\tlista_usuarios.getItems().add(usuario);\r\n \t}\r\n \t\r\n \t//lista_usuarios.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\t\r\n }", "public com.rpg.framework.database.Protocol.User getUsers(int index) {\n if (usersBuilder_ == null) {\n return users_.get(index);\n } else {\n return usersBuilder_.getMessage(index);\n }\n }", "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "public com.rpg.framework.database.Protocol.User getUsers(int index) {\n if (usersBuilder_ == null) {\n return users_.get(index);\n } else {\n return usersBuilder_.getMessage(index);\n }\n }", "private User[] getUsers(Changelist[] changes) {\n User[] userList = new User[changes.length];\n\n // Collect users in a hashtable to avoid the overhead of\n // fetching duplicates from Perforce\n Hashtable<String, User> users = new Hashtable<String, User>();\n\n // Get the user of each changelist\n String username = null;\n for (int idx = 0; idx < changes.length; idx++) {\n username = changes[idx].getUser();\n if (users.containsKey(username)) {\n userList[idx] = (User) users.get(username);\n } else {\n userList[idx] = User.getUser(username);\n if (userList[idx] != null) {\n users.put(username, userList[idx]);\n }\n }\n }\n\n return userList;\n }", "@Override\n public List<LdapUser> getAllLdapUsers() throws NamingException {\n\n LOGGER.info(\"Getting all Ldap Users Service implementation\");\n Hashtable<String, String> env = new Hashtable<>();\n SearchControls searchCtrls = new SearchControls();\n searchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n env.put(Context.INITIAL_CONTEXT_FACTORY,\n \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, ldapUrl);\n env.put(Context.REFERRAL, \"follow\");\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n env.put(Context.SECURITY_PRINCIPAL, ldapUsername);\n env.put(Context.SECURITY_CREDENTIALS, ldapPassword);\n String filter = ldapFilter;\n String searchBase = ldapSearchBase;\n LdapUser user = null;\n List<LdapUser> userList = null;\n DirContext context = new InitialDirContext(env);\n NamingEnumeration answer = context.search(searchBase, filter, searchCtrls);\n userList = new ArrayList<>();\n while (answer.hasMoreElements()) {\n SearchResult sr = (SearchResult) answer.next();\n user = new LdapUser();\n user.setName(sr.getName());\n userList.add(user);\n Attributes attrs = sr.getAttributes();\n if (attrs != null) {\n this.ifAttrsNotNull(user, attrs);\n }\n }\n return userList;\n }", "private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }", "public User getSpecificUser(String username);", "@Override\n\tpublic user getUser(int i) {\n\t\treturn userdb.get(i); \n\t}", "private UserData[] getEnvoyUsers(){\n UserData sofort = setUserData(\"DE\", \"EUR\");\n //Set custom regexp validation rule, set more short random valid email\n emailValidationRule.setRegexp(\"[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-]{1,6}[.]{0,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]{0,6}[.]{0,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]{1,8}[@]{1,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]{1,21}[.]{0,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]{0,30}[.]{1,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]{2,4}\");\n sofort.setEmail(emailValidationRule.generateValidString());\n// UserData ibanq = setUserData(\"JP\", \"USD\");\n// UserData moneta = setUserData(\"RU\", \"USD\");\n// UserData poli = setUserData(\"AU\", \"AUD\");\n return new UserData[]{\n// ideal, //0\n// prezelwy, //1\n// eKonto, //2\n// euteller, //3\n// ewire, //4\n sofort, //5\n// ibanq, //6\n// moneta, //7\n// poli //8\n };\n }" ]
[ "0.64990723", "0.6433972", "0.64023525", "0.64015865", "0.6399378", "0.6387578", "0.6386855", "0.6368299", "0.6355506", "0.6328035", "0.62497354", "0.62077665", "0.62007457", "0.6192849", "0.61926", "0.61876374", "0.6178185", "0.61770695", "0.6168805", "0.61226606", "0.6122041", "0.6088849", "0.6086271", "0.6076024", "0.60582846", "0.6053537", "0.6030024", "0.6028046", "0.60031414", "0.5981412", "0.5974457", "0.59713995", "0.59651774", "0.5962716", "0.5955886", "0.59523183", "0.59484", "0.5946531", "0.5936456", "0.5935993", "0.5928134", "0.5926952", "0.59216243", "0.59176946", "0.59172624", "0.5913413", "0.59119064", "0.588448", "0.58815426", "0.58747345", "0.5861927", "0.5852371", "0.5842099", "0.5831267", "0.5805483", "0.5791406", "0.5791269", "0.5788732", "0.5786279", "0.57844734", "0.578268", "0.57779366", "0.57752043", "0.57751155", "0.57750624", "0.57740384", "0.5773776", "0.57734114", "0.5770514", "0.57632226", "0.57625425", "0.575791", "0.57399136", "0.5739513", "0.5739176", "0.57379144", "0.5736949", "0.57357144", "0.5734379", "0.573085", "0.5730405", "0.57259864", "0.57241875", "0.5724119", "0.5723599", "0.5723126", "0.57197696", "0.5719005", "0.57178724", "0.5716719", "0.5712078", "0.5711383", "0.57107776", "0.5710685", "0.5710127", "0.57063234", "0.5703666", "0.5703243", "0.5703171", "0.5702259", "0.57018775" ]
0.0
-1
Invoked by candidates to gather votes
public RequestVoteRsp RequestVote(RequestVoteReq candidate) { boolean voted = false; //if term > currentTerm if (candidate.getTerm() > this.persistentState.getCurrentTerm()) { // currentTerm = term; this.persistentState.setCurrentTerm(candidate.getTerm()); //step down if leader or candidate if (this.role != Role.FOLLOWER) { this.role = Role.FOLLOWER; } } //if term = currentTerm, voteFor is null or candidateId, and candidate's log is at least as complete as local log if (candidate.getTerm() == this.persistentState.getCurrentTerm() && (this.persistentState.getVotedFor() == 0 || this.persistentState.getVotedFor() == candidate.getCandidateId()) && candidate.getLastLogIndex() >= this.lastEntry.getIndex()) { //grant vote voted = true; //reset election timeout resetElectionTimeout(); } return new RequestVoteRsp(this.persistentState.getCurrentTerm(), voted); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void doVote() {\n }", "@Override\n public void processElection() {\n if (context.getState().equals(LEADER) || !context.getActive()) {\n return;\n }\n\n log.info(\"Peer #{} Start election\", context.getId());\n\n context.setState(CANDIDATE);\n Long term = context.incCurrentTerm();\n context.setVotedFor(context.getId());\n\n List<Integer> peersIds = context.getPeers().stream().map(Peer::getId).collect(Collectors.toList());\n long voteGrantedCount = 1L;\n long voteRevokedCount = 0L;\n\n //while didn't get heartbeat from leader or new election started\n while (checkCurrentElectionStatus(term)) {\n List<AnswerVoteDTO> answers = getVoteFromAllPeers(term, peersIds);\n peersIds = new ArrayList<>();\n for (AnswerVoteDTO answer : answers) {\n if (answer.getStatusCode().equals(OK)) {\n if (answer.getTerm() > context.getCurrentTerm()) {\n //• If RPC request or response contains term T > currentTerm: set currentTerm = T, convert to follower (§5.1)\n context.setTermGreaterThenCurrent(answer.getTerm());\n return;\n }\n if (answer.isVoteGranted()) {\n log.info(\"Peer #{} Vote granted from {}\", context.getId(), answer.getId());\n context.getPeer(answer.getId()).setVoteGranted(true);\n voteGrantedCount++;\n } else\n log.info(\"Peer #{} Vote revoked from {}\", context.getId(), answer.getId());\n voteRevokedCount++;\n } else {\n log.info(\"Peer #{} No vote answer from {}\", context.getId(), answer.getId());\n peersIds.add(answer.getId());\n }\n }\n if (voteGrantedCount >= context.getQuorum()) {\n winElection(term);\n return;\n } else if (voteRevokedCount >= context.getQuorum()) {\n loseElection(term);\n return;\n } //else retry\n delay();\n }\n }", "public void countVotes() {\n int[] voteResponses = RaftResponses.getVotes(mConfig.getCurrentTerm());\n int numVotes = 0;\n if(voteResponses == null) {\n //System.out.println(mID + \" voteResponses null\");\n //System.out.println(\"cur \" + mConfig.getCurrentTerm() + \" RR: \" + RaftResponses.getTerm());\n }\n else {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n //If vote has not been received yet, resend request\n //if(voteResponses[i] == -1)\n //this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n if(voteResponses[i] == 0)\n numVotes++;\n }\n }\n //If election is won, change to leader\n if(numVotes >= (mConfig.getNumServers()/2.0)) {\n electionTimer.cancel();\n voteCountTimer.cancel();\n RaftServerImpl.setMode(new LeaderMode());\n }\n else {\n voteCountTimer = scheduleTimer((long) 5, 2);\n }\n }", "void castVote(Peer candidate) {\n votedFor = candidate;\n }", "public void vote(int index,Person voter,ArrayList<String> choices){\n votingList.get(index).vote(voter,choices);\n\n }", "void votedOnPoll(String pollId);", "public void addVote() {\n this.votes++;\n }", "public void setVotes(int votes) {\n this.votes = votes;\n }", "public void vote(int index,Person personName,ArrayList<String> choices){\n if (votingList.get(index).getType()==0 && choices.size()==1 && choices.get(0).equals(\"random\")){\n\n Random random = new Random();\n int rand = random.nextInt(votingList.get(index).getPolls().size());\n choices.remove(0);\n choices.add(votingList.get(index).getPolls().get(rand));\n }\n\n votingList.get(index).vote(personName,choices);\n\n }", "public void printVottingQuestion(){\n for (Voting voting : votingList){\n System.out.println(\"question : \"+voting.getQuestion());\n }\n\n }", "public synchronized void beginVoting() {\n\t\tvotingThread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// votes should be filled with [each delegate] -> `null`\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tvotingThread.start();\n\t}", "public void printResult(int index){\n votingList.get(index).printVotes();\n }", "public void printResult(int index){\n votingList.get(index).printVotes();\n }", "public static void doVoteAndComment() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}", "public void setVotes(Set<Vote> arg0) {\n \n }", "public static void main(String[] args)\r\n{\r\n\tresetVotes();\r\n\tVoteRecorder voter1 = new VoteRecorder();\t\r\n\tvoter1.getAndConfirmVotes();\r\n\tSystem.out.println(\"President: \" + getCurrentVotePresident());\r\n\tSystem.out.println(\"Vice President: \" + getCurrentVoteVicePresident());\r\n\tSystem.out.println(votesCandidatePresident1);\r\n\r\n}", "@Test\n public void vote() {\n System.out.println(client.makeVotes(client.companyName(0), \"NO\"));\n }", "private void postVote() {\n if ( unvotedParties() == 0 )\n TransactionManager.getTransactionManager().resolveTransaction(txId);\n }", "public int calculateVotes() {\n return 1;\n }", "@FXML\n public void start_vote(ActionEvent e)\n {\n //calling functions to get ballot count and candidate count\n can_counter();\n ball_counter();\n //checks there are any candidates and ballots\n if((candidate_count!=0)&&(ballot_count!=0))\n {\n //if candidates and voters available, voting will start\n voting_state=1;\n a=new Alert(Alert.AlertType.INFORMATION);\n a.setContentText(\"Voting Has Been Started !\");\n a.show();\n }\n //for 0 candidate count with ballots\n else if ((candidate_count==0)&&(ballot_count!=0))\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Candidates !\");\n a.show();\n }\n //for 0 ballots with candidates\n else if ((ballot_count==0)&&(candidate_count!=0))\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Ballots !\");\n a.show();\n }\n else\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Candidates And 0 Ballots !\");\n a.show();\n }\n }", "public void addKickVote()\n\t{\n\t\tthis.numberOfKickVotes++;\n\t}", "public List getResults() {\r\n List<Candidate> list = new ArrayList<>();\r\n list = getCurrentVoting().getCandidates();\r\n list.sort(Comparator.comparingInt(Candidate::getVoices));\r\n return list;\r\n }", "public VotingSystem(){\n votingList = new ArrayList<Voting>();\n }", "public void sendVoteRequests() {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n }\n //Initiate count vote timer\n voteCountTimer = scheduleTimer((long) 5, 2);\n }", "public synchronized void reportVotes() {\n StringBuilder voteReport = new StringBuilder(\"\");\n for (Player player : playerVotes.keySet()) {\n voteReport.append(player.getUserName()).append(\": \").append(\n playerVotes.get(player) ? \"yes\\n\" : \"no\\n\");\n }\n sendPublicMessage(\"The votes were:\\n\" + voteReport.toString());\n }", "public void setCandidates(List<Candidate> candidates) {\n this.candidates = candidates;\n }", "public Integer getVotes();", "public int getVotes() {\n return votes;\n }", "public int getVotes() {\n return votes;\n }", "private void results() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\t// when the election is closed,\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\t\t\tSystem.out.println(\"Current election results for all polling places.\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoe){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t}\n\t}", "public VotingSystem() {\n votingList=new ArrayList<>();\n }", "private int[] collectVotes()\n {\n int[] votes = new int[ 6 ];\n double centerX = (double) xCoord + 0.5;\n double centerY = (double) yCoord + 0.5;\n double centerZ = (double) zCoord + 0.5;\n\n // For each player:\n List players = worldObj.playerEntities;\n for( int i = 0; i < players.size(); ++i )\n {\n // Determine whether they're looking at the block:\n EntityPlayer player = (EntityPlayer) players.get( i );\n if( player != null )\n {\n // Check the player can see:\n if( QCraft.isPlayerWearingGoggles( player ) )\n {\n continue;\n }\n else\n {\n ItemStack headGear = player.inventory.armorItemInSlot( 3 );\n if( headGear != null && headGear.getItem() == Item.getItemFromBlock( Blocks.pumpkin ) )\n {\n continue;\n }\n }\n\n // Get position info:\n double x = player.posX - centerX;\n double y = player.posY + 1.62 - (double) player.yOffset - centerY;\n double z = player.posZ - centerZ;\n\n // Check distance:\n double distance = Math.sqrt( x * x + y * y + z * z );\n if( distance < 96.0 )\n {\n // Get direction info:\n double dx = x / distance;\n double dy = y / distance;\n double dz = z / distance;\n\n // Get facing info:\n float pitch = player.rotationPitch;\n float yaw = player.rotationYaw;\n float f3 = MathHelper.cos( -yaw * 0.017453292f - (float) Math.PI );\n float f4 = MathHelper.sin( -yaw * 0.017453292f - (float) Math.PI );\n float f5 = -MathHelper.cos( -pitch * 0.017453292f );\n float f6 = MathHelper.sin( -pitch * 0.017453292f );\n float f7 = f4 * f5;\n float f8 = f3 * f5;\n double fx = (double) f7;\n double fy = (double) f6;\n double fz = (double) f8;\n\n // Compare facing and direction (must be close to opposite):\n double dot = fx * dx + fy * dy + fz * dz;\n if( dot < -0.4 )\n {\n if( QCraft.enableQBlockOcclusionTesting )\n {\n // Do some occlusion tests\n Vec3 playerPos = Vec3.createVectorHelper( centerX + x, centerY + y, centerZ + z );\n boolean lineOfSightFound = false;\n for( int side = 0; side < 6; ++side )\n {\n // Only check faces that are facing the player\n Vec3 sideNormal = Vec3.createVectorHelper(\n 0.49 * Facing.offsetsXForSide[ side ],\n 0.49 * Facing.offsetsYForSide[ side ],\n 0.49 * Facing.offsetsZForSide[ side ]\n );\n Vec3 blockPos = Vec3.createVectorHelper(\n centerX + sideNormal.xCoord,\n centerY + sideNormal.yCoord,\n centerZ + sideNormal.zCoord\n );\n Vec3 playerPosLocal = playerPos.addVector(\n -blockPos.xCoord,\n -blockPos.yCoord,\n -blockPos.zCoord\n );\n //if( playerPosLocal.dotProduct( sideNormal ) > 0.0 )\n {\n Vec3 playerPos2 = playerPos.addVector( 0.0, 0.0, 0.0 );\n if( checkRayClear( playerPos2, blockPos ) )\n {\n lineOfSightFound = true;\n break;\n }\n }\n }\n if( !lineOfSightFound )\n {\n continue;\n }\n }\n\n // Block is being observed!\n\n // Determine the major axis:\n int majoraxis = -1;\n double majorweight = 0.0f;\n\n if( -dy >= majorweight )\n {\n majoraxis = 0;\n majorweight = -dy;\n }\n if( dy >= majorweight )\n {\n majoraxis = 1;\n majorweight = dy;\n }\n if( -dz >= majorweight )\n {\n majoraxis = 2;\n majorweight = -dz;\n }\n if( dz >= majorweight )\n {\n majoraxis = 3;\n majorweight = dz;\n }\n if( -dx >= majorweight )\n {\n majoraxis = 4;\n majorweight = -dx;\n }\n if( dx >= majorweight )\n {\n majoraxis = 5;\n majorweight = dx;\n }\n\n // Vote for this axis\n if( majoraxis >= 0 )\n {\n if( getSubType() == BlockQBlock.SubType.FiftyFifty )\n {\n boolean flip = s_random.nextBoolean();\n if( flip )\n {\n majoraxis = Facing.oppositeSide[ majoraxis ];\n }\n }\n votes[ majoraxis ]++;\n }\n }\n }\n }\n }\n\n return votes;\n }", "public void printVoting(int index){\n System.out.println(\"vote question : \"+votingList.get(index).getQuestion());\n for (int i = 0;i<votingList.get(index).getPolls().size();i++){\n System.out.println(\"poll \"+(i+1)+\" : \"+votingList.get(index).getPolls().get(i));\n }\n }", "public void createVoting(String question , int type,ArrayList<String> choices){\n Voting voting = new Voting(type,question);\n for (String choice : choices){\n voting.createChoice(choice);\n }\n votingList.add(voting);\n }", "public Response<Poll> votePoll(String id, long[] choices);", "public void trigger()\r\n\t{\r\n\t\tif(!this.inProgress && this.round >= Config.RoundLimit)\r\n\t\t{\r\n\t\t\tthis.sendMessages(new String[]{\"The game has already ended.\"});\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint count = this.playerCount();\r\n\t\t\tif(count > 1 && count - this.readyCount() == 0)\r\n\t\t\t{\r\n\t\t\t\tList<String> messages = new LinkedList<>();\r\n\t\t\t\tif(this.inProgress)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Config.Phases[this.phase].equals(Config.VotePhaseName))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmessages.add(\"Voting ended. Counting votes.\");\r\n\t\t\t\t\t\t// Sum all the votes from each player.\r\n\t\t\t\t\t\tint[] votes = new int[Config.TableCards];\r\n\t\t\t\t\t\tfor(Player player : this.players)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tint[] playerVotes = player.getVotes();\r\n\t\t\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\t\t\twhile(i < playerVotes.length)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(playerVotes[i] != 0)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tvotes[i] += playerVotes[i];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t++i;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tplayer.resetVotes();\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// Pick the cards with more yes votes than no votes.\r\n\t\t\t\t\t\tList<Card> picked = new LinkedList<>();\r\n\t\t\t\t\t\tint pos = 0;\r\n\t\t\t\t\t\twhile(pos < this.onTable.size())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(votes[pos] > 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tCard card = this.onTable.get(pos);\r\n\t\t\t\t\t\t\t\tpicked.add(card);\r\n\t\t\t\t\t\t\t\tfor(Share price : this.prices)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(price.getStock().equals(card.stock))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tprice.addShares(card.effect);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\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\t++pos;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Prepare the output string for the picked cards.\r\n\t\t\t\t\t\tString message = \"\";\r\n\t\t\t\t\t\tboolean isNotFirst = false;\r\n\t\t\t\t\t\tfor(Card card : picked)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isNotFirst)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmessage += \", \";\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\tisNotFirst = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmessage += card.stock;\r\n\t\t\t\t\t\t\tif(card.effect > 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmessage += \"+\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmessage += card.effect;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.dealToTable();\r\n\t\t\t\t\t\tmessages.add(\"Picked influence cards: \" + message);\r\n\t\t\t\t\t\tmessages.add(\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t++this.phase;\r\n\t\t\t\t\tif(this.phase >= Config.Phases.length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.phase = 0;\r\n\t\t\t\t\t\t++this.round;\r\n\t\t\t\t\t\tif(this.round >= Config.RoundLimit)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tthis.stopGame();\r\n\t\t\t\t\t\t\tShare[] prices = this.prices.toArray(new Share[0]);\r\n\t\t\t\t\t\t\tfor(Player player : this.players)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tplayer.sellAll(prices);\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\tmessages.add(\"Game over. Scores:\");\r\n\t\t\t\t\t\t\t// Copy and sort the players list by total money.\r\n\t\t\t\t\t\t\tPlayer[] winners = Arrays.copyOf(this.players, this.players.length);\r\n\t\t\t\t\t\t\tArrays.sort(winners, (Player o1, Player o2) -> {\r\n\t\t\t\t\t\t\t\tif(o1 == null && o2 == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(o1 == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(o2 == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn o2.getMoney() - o1.getMoney();\r\n\t\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\tint lastScore = winners[0].getMoney();\r\n\t\t\t\t\t\t\tint num = 0;\r\n\t\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\t\twhile(i < winners.length)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(winners[i] == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(lastScore > winners[i].getMoney())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tnum = i;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tmessages.add(Config.PlayerPositions[num] + \": Player \" + winners[i].getPlayerNumber() + \", \" + winners[i].getName() + \" - \" + Config.Currency + winners[i].getMoney());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t++i;\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\tmessages.add(\"Round \" + (this.round + 1) + \" of \" + Config.RoundLimit + \".\");\r\n\t\t\t\t\t\t\tmessages.add(Config.Phases[this.phase] + \" phase started.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmessages.add(Config.Phases[this.phase] + \" phase started.\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.inProgress = true;\r\n\t\t\t\t\tmessages.add(\"Game started. Round \" + (this.round + 1) + \" of \" + Config.RoundLimit + \".\");\r\n\t\t\t\t\tmessages.add(Config.Phases[this.phase] + \" phase started.\");\r\n\t\t\t\t}\r\n\t\t\t\tthis.sendMessages(messages.toArray(new String[0]));\r\n\t\t\t\tfor(Player player : this.players)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tplayer.setReady(false);\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 getVotes() {\n return this.votes;\n }", "public static void showResults(List<Candidate> candidates) {\n\t\tif (candidates.isEmpty()) {\r\n\t\t\tSystem.out.println(\"No autocomplete candidates found\\n\");\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tfor (int i = 0; i < candidates.size(); i++) {\r\n\t\t\t\tSystem.out.println(String.format(\"WORD: %s\\nCONFIDENCE: %d\\n\", candidates.get(i).getWord(), candidates.get(i).getConfidence()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@GET(\"/{interaction-id}/votes\")\n List<GetGlueInteraction> votes(\n @EncodedPath(\"interaction-id\") String interactionId\n );", "public int compare(Candidate a, Candidate b) \n { \n return b.getNoOfVotes() - a.getNoOfVotes(); \n }", "int getVotes(QuestionId questionId);", "@Override\n public void onThirdVote(String arg0) {\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdoVote(getIntent().getStringExtra(\"aid\"), getIntent().getStringExtra(\"id\"));\n\t\t\t\t\t\n\t\t\t\t}", "public void printVotingQuestions(){\n int i=0;\n System.out.println(\"Question\");\n for (Voting v:votingList) {\n System.out.println(i+\":\"+v.getQuestion());\n i++ ;\n }\n }", "public static void main(String[] args){\n\t\tBallotBox aBallotBox = new BallotBox();\n\t\tBagInterface<Ballot> ballots = aBallotBox.getBallots();\n\t\tboolean isDone = false;\n\t\tSystem.out.println(\"Welcome to the election! What would you like to do?\");\n\t\tSystem.out.println(\"1: Vote for a candidate\");\n\t\tSystem.out.println(\"2: Count the number of votes for a candidate\");\n\t\tSystem.out.println(\"3: Remove a vote\");\n\t\tSystem.out.println(\"4: Get number of votes in the ballot box\");\n\t\tSystem.out.println(\"5: Empty ballot box\");\n\t\tSystem.out.println(\"6: Print all votes\");\n\t\tSystem.out.println(\"7: Quit\");\n\t\twhile (isDone == false){ \n\t\tSystem.out.println(\"Enter your choice here:\");\n\t\tScanner keyboard = new Scanner(System.in); //assume the input will be an integer\n\t\tint i = keyboard.nextInt();\n\t\tswitch (i) {\n\t\tcase 1: \n\t\t\t//add a ballot\n\t\t\tSystem.out.println(\"Please type in the name of the candidate you would like to vote for: \");\n\t\t\tScanner keyboardName = new Scanner(System.in);\n\t\t\tString name = keyboardName.next();\n\t\t\tSystem.out.println(\"Please type in bribe amount: \");\n\t\t\tScanner keyboardBribeAmount = new Scanner(System.in);\n\t\t\tdouble bribeAmount = keyboardBribeAmount.nextDouble();\n\t\t\tballots.add(new Ballot(name, bribeAmount));\n\t\t\tSystem.out.println(\"Vote added successfully\");\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\t// count the votes for a particular candidate\n\t\t\tSystem.out.println(\"Please type in the name of the candidate for whom the votes you would like to count: \");\n\t\t\tkeyboardName = new Scanner(System.in);\n\t\t\tname = keyboardName.next();\n\t\t\tint frequency = ballots.getFrequencyOf(new Ballot(name,1));\n\t\t\tSystem.out.println(\"The number is \" + frequency);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t//remove a vote\n\t\t\tSystem.out.println(\"1: to remove a random one\");\n\t\t\tSystem.out.println(\"2: to remove a specific one\");\n\t\t\tScanner keyboardRemove = new Scanner(System.in);\n\t\t\tint m = keyboardRemove.nextInt();\n\t\t\tif (m==1) {\n\t\t\t\t\tBallot ballotRemoved = ballots.remove();\n\t\t\t\t\tSystem.out.println(\"You have removed the vote: \" + ballotRemoved);\n\t\t\t}\n\t\t\telse if (m==2){\n\t\t\t\t\tSystem.out.println(\"Please enter the name of the person whose vote you want to remove\");\n\t\t\t\t\tScanner keyboardNameRemove = new Scanner(System.in);\n\t\t\t\t\tString nameRemove = keyboardNameRemove.next();\n\t\t\t\t\tboolean done = false; \n\t\t\t\t\tint q = 0;\n\t\t\t\t\tObject[] arr = ballots.toArray();\n\t\t\t\t\twhile ( done == false){\n\t\t\t\t\t\tif (arr[q].equals(new Ballot(nameRemove, 1)))\n\t\t\t\t\t\t\t\tballots.remove((Ballot) arr[q]);\n\t\t\t\t\t\t\t\tSystem.out.println(\"A vote for \" + arr[q] + \" has been removed\");\t\n\t\t\t\t\t\t\t\tdone = true;}\n\t\t\t}\n\t\t\telse System.out.println(\"Sorry your input is not valid\");\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t//getCurrentSize()\n\t\t\tSystem.out.println(\"We have \" + ballots.getCurrentSize() + \" votes right now\");\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t//clear();\n\t\t\tballots.clear();\n\t\t\tSystem.out.println(\"The ballot box is empty now\");\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t//print; \n\t\t\tObject[] ballotArray = ballots.toArray();\n\t\t\tfor (Object occur:ballotArray){\n\t\t\t\tSystem.out.println(occur);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\t//quit\n\t\t\tisDone = true;\n\t\t\tSystem.out.println(\"Thank you!\");\n\t\t\tbreak;\t\n\t\tdefault: System.out.println(\"Please enter a valid number:\");\n\t\t}}\n\t}", "public void setNumVotes(int value) {\n this.numVotes = value;\n }", "public static void main(String[] args) throws IOException {\n readCandidateName(\"/Users/macos/stv/Ballet/src/candidates.txt\");\n printCandidates();\n arrangeVoteStructure();\n outputVotes();\n System.out.println(\"Please enter the vote preference as a sequence: > \");\n }", "public void createVoting(String question,int type,ArrayList<String> choices){\n Voting newVoting=new Voting(type,question);\n votingList.add(newVoting);\n for (String s:choices)\n newVoting.createChoice(s);\n }", "private synchronized void delegateVoted(Vote voteType) {\n\t\tvotes.put(currentlyVoting, voteType);\n\t\tif (currentlyVoting.getStatus().hasVetoPower && voteType.isVoteAgainst) {\n\t\t\t// A delegate with veto power voted against.\n\t\t\tvetoed = true;\n\t\t}\n\t\tsynchronized (votingThread) {\n\t\t\tvotingThread.notify();\n\t\t}\n\t}", "private void vote(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tif (this.controller.vote(p.getName())) {\n\t\t\t\tfield3.addSupported(p);\n\t\t\t}\n\t\t}\n\t}", "public Vote(int id, int v) {\n candidate_id = id;\n priority = v;\n }", "@Override\n\tpublic void action() {\n\n\t\tif(this.step.equals(STATE_INIT))\n\t\t{\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.nbAsynchronousPlayers = 0;\n\t\t\tthis.globalResults = new VoteResults();\n\t\t\tthis.agentSender = null;\n\t\t\tthis.request = null;\n\t\t\tthis.currentTime = -1;\n\t\t\tthis.results = new VoteResults();\n\t\t\tthis.nextStep = STATE_RECEIVE_REQUEST;\n\n\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RECEIVE_REQUEST))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_REQUEST\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\t\t\t\tthis.agentSender = message.getSender();\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\n\t\t\t\t\t//System.err.println(\"[RQST INITIAL] \"+message.getContent());\n\n\t\t\t\t\tthis.request = mapper.readValue(message.getContent(), VoteRequest.class);\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\n\t\t\t\t\tFunctions.newActionToLog(\"Début vote \"+this.request.getRequest(),this.myAgent, this.controllerAgent.getGameid());\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tthis.nextStep = SEND_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\n\t\t}\n\t\telse if(this.step.equals(SEND_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\tif(!agents.isEmpty())\n\t\t\t{\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tfor(AID aid : agents)\n\t\t\t\t{\n\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t}\n\t\t\t\tmessage.setConversationId(\"GLOBAL_VOTE_RESULTS\");\n\n\t\t\t\tthis.myAgent.send(message);\n\t\t\t}\n\n\t\t\tthis.nextStep = RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t}\n\t\telse if(this.step.equals(RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GLOBAL_VOTE_RESULTS\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\n\t\t\t\t//System.out.println(\"CTRL Reception de global results\");\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tthis.globalResults = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t\tthis.request.setGlobalCitizenVoteResults(this.globalResults);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.nextStep = STATE_GET_SIMPLE_SUSPICION;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(this.step.equals(STATE_SEND_REQUEST))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"VOTE_REQUEST\");\n\n\t\t\tint reste = this.request.getAIDVoters().size()-this.nbVoters;\n\t\t\tif(false )// reste >= Data.MAX_SYNCHRONOUS_PLAYERS)\n\t\t\t{\n\t\t\t\t/** hybrid synchronous mode **/\n\t\t\t\tthis.nbAsynchronousPlayers = (int) (Math.random()*Math.min(Data.MAX_SYNCHRONOUS_PLAYERS-1, (reste-1)))+1;\n\t\t\t\t//System.err.println(\"HYDBRID ASYNCRHONOUS ENABLED BECAUSE TOO MANY PARTICIPANTS \"+this.nbAsynchronousPlayers+\" in //\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nbAsynchronousPlayers = 1;\n\t\t\t}\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\n\t\t\t\tSystem.err.println(\"[RQST] \"+json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(int i = 0; i<this.nbAsynchronousPlayers; ++i)\n\t\t\t{\n\t\t\t\t//System.err.println(\"DK ENVOI REQUEST \"+this.request.getAIDVoters().get(this.nbVoters+i).getLocalName());\n\t\t\t\tmessageRequest.addReceiver(this.request.getAIDVoters().get(this.nbVoters+i));\t\n\t\t\t}\n\n\t\t\tthis.myAgent.send(messageRequest);\n\n\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t}\n\t\telse if(this.step.equals(STATE_RECEIVE_INFORM))\n\t\t{\n\t\t\tif(this.currentTime == -1)\n\t\t\t{\n\t\t\t\tthis.currentTime = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\tif(System.currentTimeMillis() - this.currentTime > 3000)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\tACLMessage wakeup = new ACLMessage(ACLMessage.UNKNOWN);\n\t\t\t\twakeup.setSender(this.myAgent.getAID());\n\t\t\t\tif(nbVoters < this.request.getVoters().size())\n\t\t\t\t{\n\t\t\t\t\twakeup.addReceiver(this.request.getAIDVoters().get(nbVoters));\n\t\t\t\t\twakeup.setConversationId(\"WAKEUP\");\n\t\t\t\t\tthis.myAgent.send(wakeup);\n\n\t\t\t\t\tSystem.out.println(\"Relance du joueur \"+this.request.getAIDVoters().get(nbVoters).getLocalName()+\" ...\");\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_INFORM\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\t++this.nbVoters;\n\t\t\t\t--this.nbAsynchronousPlayers;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tVoteResults res = new VoteResults();\n\t\t\t\ttry {\n\t\t\t\t\tres = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\n\t\t\t\tthis.results.add(res);\n\n\t\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\")&&\n\t\t\t\t\t\tDFServices.containsGameAgent(aidPlayer, \"PLAYER\", \"MAYOR\", this.myAgent, this.controllerAgent.getGameid()))\n\t\t\t\t{\n\t\t\t\t\t/** poids double **/\n\t\t\t\t\tthis.results.add(res);\n\t\t\t\t\tthis.globalResults.add(res);\n\t\t\t\t}\n\n\n\t\t\t\t//envoi du resultat partiel \n\t\t\t\tString json = \"\";\n\t\t\t\tmapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmsg.setContent(json);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setConversationId(\"NEW_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmsg.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(msg);\n\t\t\t\t}\n\n\t\t\t\t///\tSystem.err.println(\"\\nSV : \"+this.nbVoters+\"/\"+this.request.getAIDVoters().size());\n\n\t\t\t\tif(this.nbVoters >= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\t//System.err.println(\"SV next step\");\n\t\t\t\t\tthis.nextStep = STATE_RESULTS;\n\t\t\t\t}\n\t\t\t\telse if(this.nbAsynchronousPlayers > 0)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"SV waiting other\");\n\t\t\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"SV send request to other\");\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\t\n\t\t\t}\n\t\t}\n\n\n\t\telse if(this.step.equals(STATE_GET_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"GET_SIMPLE_SUSPICION\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(AID aid : this.request.getAIDVoters()){\n\t\t\t\tmessageRequest.addReceiver(aid);\t\n\t\t\t}\n\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.myAgent.send(messageRequest);\n\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t}\n\t\telse if(this.step.equals(STATE_ADD_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GET_SIMPLE_SUSPICION\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\t++this.nbVoters;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tSuspicionScore suspicionScore = new SuspicionScore();\n\t\t\t\ttry {\n\t\t\t\t\tsuspicionScore = mapper.readValue(message.getContent(), SuspicionScore.class);\n\t\t\t\t\t//System.err.println(\"ADD PARTIAL SUSPICION \\n\"+message.getContent());\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\t\t\t\tthis.request.getCollectiveSuspicionScore().addSuspicionScoreGrid(aidPlayer.getName(), suspicionScore);\n\n\t\t\t\tif(this.nbVoters>= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tSystem.err.println(\"SUSPICION COLLECTIVE \\n \"+this.request.getCollectiveSuspicionScore().getScore());\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RESULTS))\n\t\t{\n\t\t\tthis.finalResults = this.results.getFinalResults();\n\n\t\t\t/** equality ? **/\n\t\t\tif(this.finalResults.size() == 1)\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//defavorisé le bouc emmissaire\n\t\t\t\tList<AID> scapegoats = DFServices.findGamePlayerAgent(Roles.SCAPEGOAT, this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tList<String> nameScapegoats = new ArrayList<String>();\n\t\t\t\tfor(AID scapegoat : scapegoats)\n\t\t\t\t{\n\t\t\t\t\tnameScapegoats.add(scapegoat.getName());\n\t\t\t\t}\n\t\t\t\tfor(String scapegoat : nameScapegoats)\n\t\t\t\t{\n\t\t\t\t\tif(this.finalResults.contains(scapegoat))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.request.isVoteAgainst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults = nameScapegoats;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.finalResults.size()>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults.remove(scapegoat);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(this.lastResults != null && this.lastResults.equals(this.finalResults))\n\t\t\t\t{\n\t\t\t\t\t/** interblocage **/\n\t\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\n\t\t\t\t\t//System.err.println(\"INTERBLOCAGE\");\n\n\t\t\t\t\t/** random choice **/\n\t\t\t\t\ttmp.add(this.finalResults.get((int)Math.random()*this.finalResults.size()));\t\t\t\t\n\t\t\t\t\tthis.finalResults = tmp;\n\n\t\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// new vote with finalists\n\t\t\t\t\tthis.request.setChoices(this.finalResults);\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\n\t\t\t\t\tthis.results = new VoteResults();\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.lastResults = this.finalResults;\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(this.step.equals(STATE_SEND_RESULTS))\n\t\t{\n\t\t\tif(this.finalResults.isEmpty())\n\t\t\t{\n\t\t\t\tSystem.err.println(\"ERROR\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"RESULTS => \"+this.finalResults.get(0));\n\t\t\t}\n\n\t\t\t//envoi resultat final + maj global vote\n\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\"))\n\t\t\t{\n\t\t\t\tString json = \"\";\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmessage.setContent(json);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tmessage.setConversationId(\"NEW_CITIZEN_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\tmessage.addReceiver(this.agentSender);\n\t\t\tmessage.setConversationId(\"VOTE_RESULTS\");\n\t\t\tmessage.setContent(this.finalResults.get(0));\n\n\n\t\t\tString name = this.finalResults.get(0);\n\n\t\t\tif(!this.request.isAskRequest()){\n\t\t\t\tint index = name.indexOf(\"@\");\n\t\t\t\tname = name.substring(0, index);\n\t\t\t\tFunctions.newActionToLog(\"Vote : \"+name, this.getAgent(), this.controllerAgent.getGameid());\n\t\t\t}\n\t\t\t\n\n\t\t\tthis.myAgent.send(message);\t\n\t\t\tthis.nextStep = STATE_INIT;\n\t\t}\n\n\n\n\t\tif(!this.nextStep.isEmpty())\n\t\t{\n\t\t\tthis.step = this.nextStep;\n\t\t\tthis.nextStep =\"\";\n\t\t}\n\n\n\t}", "void handle(VoteMessage vote);", "public void printVoting(int index){\n System.out.print(\"Question : \"+votingList.get(index).getQuestion()+\" Choices: \");\n int i=0;\n for (String s:votingList.get(index).getChoices()) {\n System.out.print(i + \": \" + s + \" \");\n i++;\n }\n System.out.println();\n }", "public void addVote(String token);", "public void voteFor (String name)\n {\n boolean searching = true;\n int index = 0;\n\n while(searching)\n {\n if(index < pList.size())\n {\n Personality objectHolder = pList.get(index);\n String personalityName = objectHolder.getName();\n\n if(name.equals(personalityName))\n {\n objectHolder.increaseVotes(1);\n searching = false;\n }\n }\n else\n {\n System.out.println(\"No personality found with the name : \" + name);\n searching = false;\n }\n\n index++;\n }\n }", "private static void arrangeVoteStructure() {\n\n System.out.println(\"Please enter the vote preference as a sequence: > \");\n Scanner in = new Scanner(System.in);\n\n // while (true) {\n\n // System.out.println(\"Please enter the vote preference as a sequence: > \");\n\n String voteKey = in.nextLine();\n\n /**\n if(voteKey.contentEquals(\"tally\")){\n System.out.println(\"You have completed voting..\");\n break;\n }\n */\n\n // split the voteKey by letter. eg:- A\n\n String votes[] = voteKey.split(\" \");\n\n\n for (int x = 0; x < numberOfCandidates; x++) {\n for (int y = x; y < votes.length; y++) {\n\n //Add vote to each candidate's HashMap.\n\n candidateVotes.get(votes[y].charAt(0)).add(counter);\n counter++;\n break;\n }\n }\n // }\n }", "@FXML\n public void end_vote()\n {\n Alert a;\n //checks is the voting has started\n if(voting_state==0)\n {\n a=new Alert(Alert.AlertType.WARNING);\n a.setContentText(\"Please Start Voting First !\");\n a.show();\n }\n else\n {\n //prints graph of votes for each candidate\n for (HashMap.Entry<String, Candidate> set1 : allCandidates.entrySet())\n {\n Candidate can = set1.getValue();\n\n\n //System.out.print(can.getName()+\"\\t : \\t\");\n int can_count=0;\n for (HashMap.Entry<String, Vote> set2 : allVotes.entrySet())\n {\n Vote vot = set2.getValue();\n if(vot.getCandidate_Id().equals(can.getId()))\n {\n can_count=can_count+1;\n }\n }\n CandidateCount ccount=new CandidateCount(can.getId(),can_count);\n allCounts.put(can.getId(),ccount);\n if(can_count>max)\n {\n max=can_count;\n }\n if(can.getName().length()>maxchar)\n {\n maxchar=can.getName().length();\n }\n /*System.out.print(can_count+\" | \");\n for(int i=0;i<can_count;i++)\n {\n System.out.print(\"*\");\n }\n System.out.println();*/\n }\n String Align_Format = \" %-\"+(maxchar+2)+\"s \";\n for(int i=max;i>=0;i--)\n {\n //System.out.println(\"uuuu\");\n System.out.println();\n for (HashMap.Entry<String, CandidateCount> set : allCounts.entrySet())\n {\n CandidateCount ccount = set.getValue();\n int count=ccount.getCandidate_Count();\n if(count<=i)\n {\n System.out.format(Align_Format,\" \");\n }\n else\n {\n System.out.format(Align_Format,\"*\");\n }\n }\n }\n System.out.println();\n String under=\"\";\n for(int i=0;i<maxchar;i++)\n {\n under=under+\"_\";\n }\n String Align_Format3 = \"__%-\"+(maxchar)+\"s_\";\n for (HashMap.Entry<String, CandidateCount> set : allCounts.entrySet())\n {\n CandidateCount coun = set.getValue();\n System.out.format(Align_Format3,under);\n }\n System.out.println();\n String Align_Format2 = \" |%-\"+(maxchar+1)+\"s \";\n for (HashMap.Entry<String, Candidate> set : allCandidates.entrySet())\n {\n Candidate can = set.getValue();\n System.out.format(Align_Format,can.getName());\n }\n System.out.println();\n int Total_votes=0;\n for (HashMap.Entry<String, CandidateCount> set : allCounts.entrySet())\n {\n CandidateCount coun = set.getValue();\n System.out.format(Align_Format,coun.getCandidate_Count());\n Total_votes=Total_votes+coun.getCandidate_Count();\n }\n System.out.println(\"\\n\\nTotal Votes : \"+Total_votes);\n //end voting\n voting_state=2;\n a=new Alert(Alert.AlertType.INFORMATION);\n a.setContentText(\"Voting Has Been Ended !\");\n a.show();\n }\n }", "private void botVoting(){\n int stockPos;\n int myStockPos = getMostShares(playerList.lastIndexOf(player));\n Collections.sort(playerList);\n if(playerList.get(0) == player){ //if i am the leader\n stockPos = getMostShares(1); //get the second players info\n }else{\n stockPos = getMostShares(0); //else get the first players info\n }\n\n //if my most shares are the same as other players most shares, don't vote.\n if(game.getStockByIndex(stockPos) != game.getStockByIndex(myStockPos)){\n //offensive play against leader\n if(game.isCardPositive(game.getStockByIndex(stockPos))){\n game.getStockByIndex(stockPos).vote(0);\n player.getVotedStocks().append(game.getStockByIndex(stockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted NO for \" + game.getStockByIndex(stockPos).getName() );\n }else{\n game.getStockByIndex(stockPos).vote(1);\n player.getVotedStocks().append(game.getStockByIndex(stockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted YES for \" + game.getStockByIndex(stockPos).getName());\n }\n //defensive play, votes that will benefit me\n if(game.isCardPositive(game.getStockByIndex(myStockPos))){\n game.getStockByIndex(myStockPos).vote(1);\n player.getVotedStocks().append(game.getStockByIndex(myStockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted YES for \" + game.getStockByIndex(myStockPos).getName());\n }else{\n game.getStockByIndex(myStockPos).vote(0);\n player.getVotedStocks().append(game.getStockByIndex(myStockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted NO for \" + game.getStockByIndex(myStockPos).getName());\n }\n }\n }", "private void vote(Connection connection, Matcher matcher) {\n\n final EventBus bus = getEventBus();\n if (!matcher.matches()) {\n bus.publish(new ConnectionMessageCommandEvent(connection, \"Invalid command!\"));\n return;\n }\n\n long pollID = Long.parseLong(matcher.group(1));\n int optionID = Integer.parseInt(matcher.group(2));\n\n try {\n StrawpollAPI.vote(pollID, optionID);\n bus.publish(new ConnectionMessageCommandEvent(connection, System.lineSeparator() + \"You voted successfully\"));\n }\n catch (Exception e) {\n bus.publish(new ConnectionMessageCommandEvent(connection, System.lineSeparator() + \"Whoops, it looks like we did not find a poll with the given id or index\"));\n e.printStackTrace();\n }\n\n }", "private void setVoteOrder() {\n\t\tfor (int i = 1; i < temp.size(); i++) {\n\t\t\t// deleting the comma from the name\n\t\t\tString s = temp.elementAt(i).replaceAll(\",\", \"\");\n\t\t\t// creating a vector \"tempVoteOrder\" to store the preferences of\n\t\t\t// each voter\n=======\n\t\t\tCandidats.add(candidat);\n\t\t\ttempCandidats = tempCandidats.replaceFirst(\n\t\t\t\t\ttempCandidats.substring(0, tempCandidats.indexOf(\",\") + 1),\n\t\t\t\t\t\"\");// delete the first candidat in the String\n\t\t}\n\t\tfor (int j = 0; j < Candidats.size(); j++)\n\t\t\tCandidats.elementAt(j).setVowsPerRound(Candidats.size());// fill the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// vector\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// size\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"candidats\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0's\n\t}", "private static void outputVotes() {\n Iterator<Map.Entry<Character, ArrayList>> it = candidateVotes.entrySet().iterator();\n\n while (it.hasNext()) {\n\n Map.Entry<Character, ArrayList> next = it.next();\n System.out.println(next.getKey() +\"->\"+\n Integer.parseInt(next.getValue().toString().replace(\"[\",\"\").replace(\"]\",\"\")));\n }\n }", "@OnClick(R.id.upvote)\n public void onUpvoteClicked() {\n upvoted.setEnabled(false);\n downvoted.setEnabled(true);\n dataItem.setUpvoted();\n points++;\n upvoted.setBackgroundColor(Color.parseColor(\"#666bff\"));\n downvoted.setBackgroundColor(Color.parseColor(\"#ffffff\"));\n a.setText(points + \" points\");\n }", "private void receiveVote() {\n\t\t//Se la postazione termina la connessione informiamo lo staff con un messaggio di errore\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"La postazione \"+ ip.getHostAddress() + \" non ha inviato i pacchetti di voto.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Vengono recuperati i voti cifrati\n\t\tMessage request;\n\t\tWrittenBallot[] encryptedBallots;\n\t\ttry {\n\t\t\trequest = (Message) Message.fromB64(link.read(), \"postazione \" + ip.getHostAddress());\n\t\t\tString[] required = {\"encryptedBallots\"};\n\t\t\tClass<?>[] types = {WrittenBallot[].class};\n\t\t\t\n\t\t\trequest.verifyMessage(Protocol.sendVoteToStation, required, types, \"postazione \" + ip.getHostAddress());\n\t\t\tencryptedBallots = request.getElement(\"encryptedBallots\");\n\t\t\t\n\t\t\t//I voti vengono memorizzati nel seggio in attesa dell'invio all'urna\n\t\t\tif(((Controller) controller).storeVoteLocally(encryptedBallots, ip))\n\t\t\t\tlink.write(Protocol.votesReceivedAck);\n\t\t\telse\n\t\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\t\n\t\t} catch (PEException e) {\n\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\tcontroller.printError(e);\n\t\t}\n\t}", "private void perPollingPlaceResults() {\n\t\tif (election.pollsStatus()){\n\t\t\t// when the election is not closed,\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry{\n\t\t\tString pollingPlaceName = ValidInputReader.getValidString(\"Name of polling place:\", \"^[a-zA-Z0-9 ]+$\");\n\t\t\tMap<String,Integer> results = election.resultsForSpecficPollingPlace(pollingPlaceName);\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\n\t\t\t// when the polling place exists,\n\t\t\tSystem.out.println(\"Current election results for \" + pollingPlaceName + \".\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoeError){\n\n\n\t\t}catch(IllegalArgumentException iaeError){\n\t\t\t// when the polling place doesn't exist,\n\t\t\tSystem.out.println(\"No such polling place was found.\");\n\t\t}\n\t}", "public interface VotingService {\n\n public String deploy(List<String> list) throws Exception;\n\n\n public TransactionReceipt voteForCandidate(String candidateName) throws Exception;\n\n public BigInteger totalVotesFor(String candidateName) throws Exception;\n\n}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t\tloadprofiletinfo(MainActivity.website+\"/video/search?ss=artist&so=most_voted&sp=\"+uid);\n\t\t\tMessage msglvpro= new Message();\n\t msglvpro.what=1;\n\t handlerlvpro.sendMessage(msglvpro);\n \t \n }", "public Voting getVoting(int index){\n return votingList.get(index);\n }", "TrackerVotes getTrackerVotes(final Integer id);", "public long numCandidates();", "List<AlgorithmResult> count(final String pollId, final List<byte[]> votesArr);", "private void eliminate() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\tList<Map.Entry<String,Integer>> entryList = new ArrayList(results.entrySet());\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\n\t\t\tif(entryList.get(entryList.size()-1).getValue()/(double)totalVotes > 0.5) {\n\t\t\t\t// when the election already has a winner,\n\t\t\t\tSystem.out.println(\"A candidate already has a majority of the votes.\");\n\t\t\t\tSystem.out.println(\"You cannot remove any more candidates.\");\n\t\t\t}else {\n\n\t\t\t\t// when we can eliminate a candidate,\n\t\t\t\tSystem.out.println(\"Eliminating the lowest-ranked candidate.\");\n\t\t\t\tList lowestCans = new ArrayList();\n\t\t\t\tlowestCans.add(entryList.get(0).getKey());\n\t\t\t\tint i = 1;\n\t\t\t\twhile (i<entryList.size() && entryList.get(i).getValue() == entryList.get(0).getValue() ){\n\t\t\t\t\tlowestCans.add(entryList.get(i).getKey());\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\tif (lowestCans.size() >1) {\n\t\t\t\t\tCollections.sort(lowestCans);\n\t\t\t\t\tCollections.reverse(lowestCans);\n\t\t\t\t}\n\t\t\t\t\telection.eliminateCandidateWithName((String) lowestCans.get(0));\n\n\t\t\t\tSystem.out.println(\"Eliminated \"+lowestCans.get(0)+\".\");\n\t\t\t}\n\n\t\t}catch(UnsupportedOperationException uso){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before eliminating candidates.\");\n\t\t}\n\n\t}", "public ElectionTextUI() {\n\t\tSystem.out.println(\"Election Vote Counter\");\n\n\t\t// TODO: initialization code can go here\n\t\t//crash(\"TODO: implement initialization code\");\n\t\telection = Election.getInstance();\n\t\telection.readInCandidates(\"candidates.txt\");\n\n\t}", "public void addVote(String vote){\r\n\t\tif(allVotes.get(vote) == null){\r\n\t\t\tallVotes.put(vote, 1);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tallVotes.put(vote, allVotes.get(vote) + 1);\r\n\t\t}\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(\"vote\");\r\n\t}", "public ArrayList<Voting> getVotingList() {\n return votingList;\n }", "public Ratio getVotes() {\n return votes;\n }", "void addVote(UserId userId, QuestionId questionId, int vote);", "public String tally (List<String> votes){\n\n int mostVotes = 0;\n String winner = \"\";\n\n //iterate each voting option\n for (String x : votes){\n //get frequency of each item.\n int freq = Collections.frequency(votes, x);\n // if greater, assign new winner and count\n if (freq > mostVotes) {\n mostVotes = freq;\n winner = x;\n }\n }\n //format output\n String output = winner + \" received the most votes!\";\n return output;\n }", "public void upVote(Post p) {\n p.upvote();\n }", "private void vote(Vote whichVoteButton, MenuItem item, PostData p) {\n if (!RedditLoginInformation.isLoggedIn()) {\n Toast.makeText(this, R.string.you_must_be_logged_in_to_vote, Toast.LENGTH_SHORT).show();\n return;\n }\n\n Intent intent = new Intent(Consts.BROADCAST_UPDATE_SCORE);\n intent.putExtra(Consts.EXTRA_PERMALINK, p.getPermalink());\n\n switch (whichVoteButton) {\n case DOWN:\n switch (p.getVote()) {\n case DOWN:\n RedditService.vote(this, p.getName(), Vote.NEUTRAL);\n item.setIcon(R.drawable.ic_action_downvote);\n p.setVote(Vote.NEUTRAL);\n p.setScore(p.getScore() + 1);\n break;\n\n case NEUTRAL:\n case UP:\n RedditService.vote(this, p.getName(), Vote.DOWN);\n item.setIcon(R.drawable.ic_action_downvote_highlighted);\n p.setVote(Vote.DOWN);\n mUpvoteMenuItem.setIcon(R.drawable.ic_action_upvote);\n p.setScore(p.getScore() - 1);\n break;\n }\n break;\n\n case UP:\n switch (p.getVote()) {\n case NEUTRAL:\n case DOWN:\n RedditService.vote(this, p.getName(), Vote.UP);\n item.setIcon(R.drawable.ic_action_upvote_highlighted);\n p.setVote(Vote.UP);\n p.setScore(p.getScore() + 1);\n mDownvoteMenuItem.setIcon(R.drawable.ic_action_downvote);\n break;\n\n case UP:\n RedditService.vote(this, p.getName(), Vote.NEUTRAL);\n item.setIcon(R.drawable.ic_action_upvote);\n p.setVote(Vote.NEUTRAL);\n p.setScore(p.getScore() - 1);\n break;\n }\n\n break;\n\n default:\n break;\n }\n\n // Broadcast the intent to update the score in the ImageDetailFragment\n intent.putExtra(Consts.EXTRA_SCORE, p.getScore());\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "public void vote(int triviaId, int optionId, final OnVoteComplete callback){\n // Creamos el servicio\n TriviaService service = createService(TriviaService.class);\n // Generamos la call\n RestBodyCall<Boolean> call = service.vote(Mobileia.getInstance().getAppId(), getAccessToken(), triviaId, optionId);\n // Ejecutamos la call\n call.enqueue(new Callback<RestBody<Boolean>>() {\n @Override\n public void onResponse(Call<RestBody<Boolean>> call, Response<RestBody<Boolean>> response) {\n // Verificar si la respuesta fue incorrecta\n if (!response.isSuccessful() || !response.body().success) {\n callback.onSuccess(false);\n return;\n }\n // Enviamos la respuesta\n callback.onSuccess(response.body().response);\n }\n\n @Override\n public void onFailure(Call<RestBody<Boolean>> call, Throwable t) {\n callback.onSuccess(false);\n }\n });\n }", "TrackerVotes loadTrackerVotes(final Integer id);", "public void vote(int rating) {\n\t\tnew WebTraceTask(this, String.valueOf(rating)).execute(WebTraceTask.VOTE);\n\t}", "public void beginSpeeches() {\n\t\tfinal ArrayList<Delegate> withRights = new ArrayList<Delegate>();\n\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\tVote vote = votes.get(delegate);\n\t\t\tif (vote == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (vote.withRights) {\n\t\t\t\twithRights.add(delegate);\n\t\t\t}\n\t\t}\n\t\tif (withRights.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tfinal SpeechPanel sp = new SpeechPanel(false, null);\n\t\tfinal Time speakingTime = new Time(0, 0, 30); // 30 seconds\n\n\t\tfor (final Delegate delegate : withRights) {\n\n\t\t\tJPanel pnlMain = new JPanel(new BorderLayout());\n\t\t\tpnlMain.add(sp, BorderLayout.CENTER);\n\n\t\t\tfinal Vote vote = votes.get(delegate);\n\t\t\tfinal JLabel lblVote = new JLabel(Character.toString(' '));\n\t\t\tlblVote.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tlblVote.setFont(lblVote.getFont()\n\t\t\t\t\t.deriveFont((float) (lblVote.getFont().getSize() * 2))\n\t\t\t\t\t.deriveFont(Font.BOLD));\n\t\t\tpnlMain.add(lblVote, BorderLayout.SOUTH);\n\n\t\t\tfinal Window ancestor = SwingUtilities\n\t\t\t\t\t.getWindowAncestor(RollCallVotePanel.this);\n\t\t\tfinal JDialog dialog = new JDialog(ancestor);\n\t\t\tdialog.setTitle(Messages.getString(\"RollCallVotePanel.SpeechPrefix\") //$NON-NLS-1$\n\t\t\t\t\t+ delegate.getName()\n\t\t\t\t\t+ Messages.getString(\"RollCallVotePanel.SpeechSeparator\") //$NON-NLS-1$\n\t\t\t\t\t+ (delegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t: vote.normalText));\n\t\t\tdialog.setContentPane(pnlMain);\n\t\t\tdialog.pack();\n\t\t\tdialog.setLocationRelativeTo(ancestor);\n\t\t\tdialog.setModalityType(ModalityType.APPLICATION_MODAL);\n\t\t\tsp.addSpeechListener(new SpeechListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void speechActionPerformed(SpeechEvent se) {\n\t\t\t\t\tfor (SpeechListener sfl : listenerList\n\t\t\t\t\t\t\t.getListeners(SpeechListener.class)) {\n\t\t\t\t\t\tsfl.speechActionPerformed(new SpeechEvent(\n\t\t\t\t\t\t\t\tRollCallVotePanel.this, delegate,\n\t\t\t\t\t\t\t\tSpeechEventType.FINISHED));\n\t\t\t\t\t}\n\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\tdialog.dispose();\n\t\t\t\t}\n\t\t\t});\n\t\t\tsp.startSpeech(delegate, speakingTime, null);\n\t\t\tdialog.setVisible(true);\n\t\t}\n\t}", "public int getNumVotes() {\n return numVotes;\n }", "@Override\n public void onClick(View view) {\n mVoteListener.editListener(\"newQuestion\",\n \"newOptionOne\", \"newOptionTwo\");\n }", "public void setVotingThreshold(double votingThreshold) {\n this.votingThreshold = votingThreshold;\n }", "@Override\n public void onPick(VoteContent.Vote[] picked) {\n\n mPickFragments.clear();\n\n for (int i = 0; i < picked.length; i++) {\n mPickFragments.add(PickFragment.newInstance(picked[i].content, i, picked.length));\n }\n\n mSectionsPagerAdapter.notifyDataSetChanged();\n moveToFragment(mPosResults);\n }", "public void checkVotes() {\r\n\t\tnew Timer().scheduleAtFixedRate(new TimerTask() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tURLConnection connection = new URL(\"https://glowning.dev/discordminer/webhook/votes.txt\").openConnection();\r\n\t\t\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\r\n\t\t\t\t\tconnection.connect();\r\n\r\n\t\t\t\t\tBufferedReader r = new BufferedReader(new InputStreamReader(connection.getInputStream(), Charset.forName(\"UTF-8\")));\r\n\r\n\t\t\t\t\tString line = \"\";\r\n\t\t\t\t\twhile ((line = r.readLine()) != null) {\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\tUser u = getShards().getUserById(line);\r\n\t\t\t\t\t\tif (u != null) {\r\n\t\t\t\t\t\t\tint crate;\r\n\r\n\t\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\t\t\t\tcal.setTimeInMillis(System.currentTimeMillis());\r\n\t\t\t\t\t\t\tcal.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n\r\n\t\t\t\t\t\t\tif (cal.get(Calendar.DAY_OF_WEEK) == Calendar.FRIDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\r\n\t\t\t\t\t\t\t\tcrate = 2;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcrate = 1;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tMiner miner = new Miner(u.getIdLong());\r\n\t\t\t\t\t\t\tif (miner.exists()) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Crates given to \" + u.getName() + \" (\" + u.getIdLong() + \")\");\r\n\t\t\t\t\t\t\t\tu.openPrivateChannel().complete().sendMessage(\"Hey! Thank you for your vote.\\nAs a reward, I give you **\" + crate + \" crate\" + (crate == 2 ? \"s\" : \"\") + \"**.\").queue();\r\n\r\n\t\t\t\t\t\t\t\tminer.addCrates(\"vote\", crate);\r\n\t\t\t\t\t\t\t\tminer.getStats().put(\"votes\", miner.getStats().getInt(\"votes\") + 1);\r\n\t\t\t\t\t\t\t\tminer.update();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tHttpClient httpclient = HttpClients.createDefault();\r\n\t\t\t\t\t\tHttpPost httppost = new HttpPost(\"https://glowning.dev/discordminer/webhook/discordbots.php\");\r\n\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>(2);\r\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"Authorization\", \"DiscordMiner\"));\r\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"user\", line));\r\n\t\t\t\t\t\thttppost.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\r\n\t\t\t\t\t\thttpclient.execute(httppost);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}, 0, 1000);\r\n\t}", "@Override\n public String getDescription() {\n return \"Vote casting\";\n }", "public void announceWinners() {\n\t\tsynchronized (blockedAnnouncer) {\n\t\t\tif (resultsNotInAnnouncer(blockedAnnouncer)) {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tblockedAnnouncer.wait();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}// while\n\t\t\t}// if\n\t\t}// synch\n\t\twhile (waitingForResults.size() > 0) {\n\t\t\tsynchronized (waitingForResults.elementAt(0)) {\n\t\t\t\twaitingForResults.elementAt(0).notify();\n\t\t\t\twaitingForResults.removeElementAt(0);\n\t\t\t}// sncnh\n\t\t}// while\n\t}", "public void removeKickVote()\n\t{\n\t\tnumberOfKickVotes--;\n\t}", "public interface OnVoteComplete{\n void onSuccess(Boolean response);\n }", "public String toString() {\n return this.name + \": \" + this.votes;\n }", "public DemographicVote()\n\t{\n\t\t//initialize the votes to zero\n\t\tliberal=0;\n\t\tndp=0;\n\t\tgreen=0;\n\t}", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "@ScheduledMethod(start=1, priority = 8)\n\tpublic void contextPreference(){\n\t\t//dit doe je ook in addVenue\n\t\tfor(Location l:candidateLocations){\n\t\t\tif(!contextPreference.containsKey(l)){\n\t\t\tdouble preference = RandomHelper.nextDoubleFromTo(0, 1.0);\n\t\t\tcontextPreference.put(l, preference);\n\t\t\t}\n\t\t}\n\t\t\n//\t\t//includehimself but who cares\n//\t\tcontextPreferenceA=new HashMap<Agent, Double>();\n\t\tfor(Agent a: agents){\n\t\t\tif(!contextPreference.containsKey(a)){\n\t\t\tdouble preference = RandomHelper.nextDoubleFromTo(0, 1.0);\n\t\t\tcontextPreference.put(a, preference);\n\t\t\ta.contextPreference.put(this, preference);\n\t\t\t}\n\t\t}\n\t}", "public void chooseAnswer(View view)\n {\n\n if(view.getTag().toString().equals(Integer.toString(pos_of_correct)))\n {\n //Log.i(\"Result\",\"Correct Answer\");\n correct++;\n noOfQues++;\n correct();\n }\n else\n {\n //Log.i(\"Result\",\"Incorrect Answer\");\n //resluttextview.setText(\"Incorrect!\");\n incorrect();\n noOfQues++;\n }\n pointtextView.setText(Integer.toString(correct)+\"/\"+Integer.toString(noOfQues));\n if(tag==4)\n generateAdditionQuestion();\n if(tag==5)\n generateSubtractionQuestion();\n if(tag==6)\n generateMultiplicationQuestion();\n if(tag==7)\n generateDivisionQuestion();\n\n }", "public void readVotes(File inFile);" ]
[ "0.7137386", "0.6700155", "0.66670275", "0.66662633", "0.6659692", "0.64801073", "0.64489865", "0.6413851", "0.63723963", "0.6362356", "0.630888", "0.62448484", "0.62448484", "0.62196606", "0.6217235", "0.6214323", "0.61805224", "0.6170283", "0.6165395", "0.61578107", "0.61290574", "0.61057365", "0.60783505", "0.6070857", "0.6034091", "0.6032783", "0.6020058", "0.6016316", "0.59617406", "0.59617406", "0.5951519", "0.5950852", "0.59468424", "0.59292835", "0.59010637", "0.5896614", "0.58810735", "0.5875344", "0.58664125", "0.58608294", "0.58521104", "0.5849758", "0.58428216", "0.5823419", "0.58032453", "0.5799354", "0.5798401", "0.57717186", "0.57552904", "0.57457536", "0.57438475", "0.5729386", "0.57278544", "0.5711505", "0.56858695", "0.56489724", "0.56439584", "0.5631166", "0.56240183", "0.56173307", "0.5603316", "0.5593851", "0.55869186", "0.5552761", "0.5536525", "0.5528038", "0.549141", "0.5491155", "0.54885703", "0.5473425", "0.54637486", "0.5450797", "0.54448736", "0.5444392", "0.54362404", "0.5427579", "0.5423219", "0.53930575", "0.5390286", "0.5388101", "0.53814816", "0.53528243", "0.534385", "0.5319914", "0.53122395", "0.5301498", "0.5301181", "0.52866715", "0.52449566", "0.52445143", "0.5231822", "0.5221494", "0.5219347", "0.52184796", "0.52158254", "0.52048135", "0.51992565", "0.5170088", "0.51421636", "0.5127009" ]
0.5503159
66
Invoked by leader to replicate log entries and discover inconsistencies; also used as heartbeat.
public AppendEntriesRsp AppendEntries(AppendEntriesReq leader) { // return if term < currentTerm if (leader.getTerm() < this.persistentState.getCurrentTerm()) { return new AppendEntriesRsp(this.persistentState.getCurrentTerm(), false); } //if term > currentTerm if (leader.getTerm() > this.persistentState.getCurrentTerm()) { //update currentTerm this.persistentState.setCurrentTerm(leader.getTerm()); //step down if leader or candidate if (this.role != Role.FOLLOWER) { this.role = Role.FOLLOWER; } //reset election timeout resetElectionTimeout(); } //return failure if log doesn't contain an entry at prevLogIndex whose term matches prevLogTerm if (this.persistentState.getEntries().size() <leader.getPrevLogIndex() || leader.getPrevLogTerm() == this.persistentState.getEntries().get(leader.getPrevLogIndex()).getTerm()) { return new AppendEntriesRsp(this.persistentState.getCurrentTerm(), false); } boolean conflictDeleted = false; for (int i = 0; i < leader.getEntries().length; i++) { Entry newEntry = leader.getEntries()[i]; int indexOnServer = leader.getPrevLogIndex() + 1 + i; //if existing entries conflict with new entries if (!conflictDeleted && this.persistentState.getEntries().size() >= indexOnServer && !this.persistentState.getEntries().get(indexOnServer).equals(newEntry)) { //delete all existing entries starting with first conflicting entry for(int j=indexOnServer;j<this.persistentState.getEntries().size();j++) { this.persistentState.getEntries().remove(j); } conflictDeleted = true; } //append any new entries not already in the log this.persistentState.getEntries().add(newEntry); } //advance state machine with newly committed entries // TODO: 2017/3/30 return new AppendEntriesRsp(this.persistentState.getCurrentTerm(), true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void apply(LogReplicationEntryMsg message) {\n\n verifyMetadata(message.getMetadata());\n\n if (message.getMetadata().getSnapshotSyncSeqNum() != recvSeq ||\n message.getMetadata().getEntryType() != LogReplicationEntryType.SNAPSHOT_MESSAGE) {\n log.error(\"Received {} Expecting snapshot message sequencer number {} != recvSeq {} or wrong message type {} expecting {}\",\n message.getMetadata(), message.getMetadata().getSnapshotSyncSeqNum(), recvSeq,\n message.getMetadata().getEntryType(), LogReplicationEntryType.SNAPSHOT_MESSAGE);\n throw new ReplicationWriterException(\"Message is out of order or wrong type\");\n }\n\n List<OpaqueEntry> opaqueEntryList = CorfuProtocolLogReplication.extractOpaqueEntries(message);\n\n // For snapshot message, it has only one opaque entry.\n if (opaqueEntryList.size() > 1) {\n log.error(\" Get {} instead of one opaque entry in Snapshot Message\", opaqueEntryList.size());\n return;\n }\n\n OpaqueEntry opaqueEntry = opaqueEntryList.get(0);\n if (opaqueEntry.getEntries().keySet().size() != 1) {\n log.error(\"The opaqueEntry has more than one entry {}\", opaqueEntry);\n return;\n }\n UUID regularStreamId = opaqueEntry.getEntries().keySet().stream().findFirst().get();\n\n if (ignoreEntriesForStream(regularStreamId)) {\n log.warn(\"Skip applying log entries for stream {} as it is noisy. Source and Sink are likely to be operating in\" +\n \" different versions\", regularStreamId);\n recvSeq++;\n return;\n }\n\n // Collect the streams that have evidenced data from source.\n replicatedStreamIds.add(regularStreamId);\n\n processUpdatesShadowStream(opaqueEntry.getEntries().get(regularStreamId),\n message.getMetadata().getSnapshotSyncSeqNum(),\n getShadowStreamId(regularStreamId),\n CorfuProtocolCommon.getUUID(message.getMetadata().getSyncRequestId()));\n recvSeq++;\n }", "void preReplicateLogEntries(final ObserverContext<RegionServerCoprocessorEnvironment> ctx,\n List<WALEntry> entries, CellScanner cells) throws IOException;", "void postReplicateLogEntries(final ObserverContext<RegionServerCoprocessorEnvironment> ctx,\n List<WALEntry> entries, CellScanner cells) throws IOException;", "@Override\n\tpublic synchronized void run() {\n\t\tif ((infoMessage.getStoredValue() > node.getLeaderValue())\n\t\t\t\t|| ((infoMessage.getStoredValue() == node.getStoredValue())\n\t\t\t\t\t\t&& (infoMessage.getLeaderId() > node.getLeaderID()))) {\n\n\t\t\tnode.setLeaderID(infoMessage.getLeaderId());\n\t\t\tnode.setLeaderValue(infoMessage.getStoredValue());\n\t\t\tnode.setStoredId(node.getNodeID());\n\t\t\tnode.setStoredValue(node.getNodeValue());\n\t\t\tSystem.out.println(\"INFO HANDLER: 1) Leader changed in Node \" + node.getNodeID() + \" to: \"\n\t\t\t\t\t+ node.getLeaderID() + \" due to exchanging messages with \" + infoMessage.getIncomingId());\n\n\t\t\t// End to Exchanging Leaders Timer && Processing\n\t\t\tnode.networkEvaluation.setEndExchangingLeadersTimer(infoMessage.getIncomingId());\n\t\t\tnode.networkEvaluation.getExchangingLeaderTimer(infoMessage.getIncomingId());\n\n\t\t\t// Metric 3 - Without Leader Timer\n\t\t\tnode.networkEvaluation.setEndWithoutLeaderTimer();\n\t\t\tnode.networkEvaluation.getWithoutLeaderTimer();\n\n\t\t\t// send \"special \"Leader message to all neighbours except one that passed the\n\t\t\t// info to me\n\t\t\tIterator<Integer> i = node.getNeighbors().iterator();\n\n\t\t\tHashSet<Integer> toSend = new HashSet<Integer>();\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tInteger temp = i.next();\n\t\t\t\tif (temp != infoMessage.getIncomingId()) {\n\t\t\t\t\ttoSend.add(temp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If I have no neighbours except node I exchanged info messages with, no need\n\t\t\t// to send leader messages\n\t\t\tif (!(toSend.isEmpty())) {\n\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"INFO HANDLER: 2) Sending special leader to all nodes.\");\n\n\t\t\t\tsendMessage(logic.MessageType.LEADER_SPECIAL, toSend);\n\t\t\t}\n\t\t\treturn;\n\n\t\t} else if ((infoMessage.getStoredValue() == node.getLeaderValue()) // Prevents infinite message passing\n\t\t\t\t&& (infoMessage.getLeaderId() == node.getLeaderID())) {\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"INFO HANDLER: 3) Same Leader! Agreement Reached.\");\n\n\t\t\t// End to Exchanging Leaders Timer && Processing\n\t\t\tnode.networkEvaluation.setEndExchangingLeadersTimer(infoMessage.getIncomingId());\n\t\t\tnode.networkEvaluation.getExchangingLeaderTimer(infoMessage.getIncomingId());\n\n\t\t\t// Metric 3 - Without Leader Timer\n\t\t\tnode.networkEvaluation.setEndWithoutLeaderTimer();\n\t\t\tnode.networkEvaluation.getWithoutLeaderTimer();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If not, send a message back saying that the other node should send the leader\n\t\t// message instead with my leader\n\t\telse {\n\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"INFO HANDLER: 4) Sending back stronger leader.\\n-----------------------------\");\n\n\t\t\tsendMessage(logic.MessageType.INFO, infoMessage.getIncomingId());\n\n\t\t}\n\t}", "private void monotoring() {\n int sizeMap = this.hostsMap.size();\n System.out.print(\" \");\n System.out.println(\"Monotoring...\");\n for(int i=0 ; i<sizeMap; i++) {\n\n List<String> addAndPort = this.hostsMap.get(i);\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yy_HH-mm-ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n new Thread(() -> {\n\n int interval = 0, monotor=0;\n\n String address = addAndPort.get(0);\n String port = addAndPort.get(1);\n\n Client client = null;\n try {\n client = new Client(address, port);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String output = new String();\n\n if(this.secondsInterval<50){\n monotor=1;\n }else{\n if(this.secondsInterval<200){\n monotor=5;\n }else{\n monotor=10;\n }\n }\n while (interval < this.secondsInterval) {\n client.setSeconds(interval);\n output = output + client.snmpWalk();\n interval += monotor;\n try {\n Thread.sleep(monotor * 1000);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n\n Logger logFile = Logger.getLogger(\"MyLog\" + address);\n FileHandler fh;\n\n try {\n String linkLog = \"../logger\"+ address + \"_\" + formattedDate + \".log\";\n fh = new FileHandler(linkLog);\n logFile.addHandler(fh);\n SimpleFormatter formatter = new SimpleFormatter();\n fh.setFormatter(formatter);\n logFile.info(output);\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }).start();\n }\n }", "LogTailer startTailing();", "@Test\n public void testMultipleAppendsDuringCatchupTailing() throws Exception {\n Configuration conf = new Configuration();\n // Set a length edits tailing period, and explicit rolling, so we can\n // control the ingest of edits by the standby for this test.\n conf.set(DFS_HA_TAILEDITS_PERIOD_KEY, \"5000\");\n conf.setInt(DFS_HA_LOGROLL_PERIOD_KEY, (-1));\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).nnTopology(MiniDFSNNTopology.simpleHATopology()).numDataNodes(3).build();\n FileSystem fs = null;\n try {\n cluster.transitionToActive(0);\n fs = HATestUtil.configureFailoverFs(cluster, conf);\n Path fileToAppend = new Path(\"/FileToAppend\");\n Path fileToTruncate = new Path(\"/FileToTruncate\");\n final byte[] data = new byte[1 << 16];\n ThreadLocalRandom.current().nextBytes(data);\n final int[] appendPos = AppendTestUtil.randomFilePartition(data.length, TestHAAppend.COUNT);\n final int[] truncatePos = AppendTestUtil.randomFilePartition(data.length, 1);\n // Create file, write some data, and hflush so that the first\n // block is in the edit log prior to roll.\n FSDataOutputStream out = TestHAAppend.createAndHflush(fs, fileToAppend, data, appendPos[0]);\n FSDataOutputStream out4Truncate = TestHAAppend.createAndHflush(fs, fileToTruncate, data, data.length);\n // Let the StandbyNode catch the creation of the file.\n cluster.getNameNode(0).getRpcServer().rollEditLog();\n cluster.getNameNode(1).getNamesystem().getEditLogTailer().doTailEdits();\n out.close();\n out4Truncate.close();\n // Append and re-close a few time, so that many block entries are queued.\n for (int i = 0; i < (TestHAAppend.COUNT); i++) {\n int end = (i < ((TestHAAppend.COUNT) - 1)) ? appendPos[(i + 1)] : data.length;\n out = fs.append(fileToAppend);\n out.write(data, appendPos[i], (end - (appendPos[i])));\n out.close();\n }\n boolean isTruncateReady = fs.truncate(fileToTruncate, truncatePos[0]);\n // Ensure that blocks have been reported to the SBN ahead of the edits\n // arriving.\n cluster.triggerBlockReports();\n // Failover the current standby to active.\n cluster.shutdownNameNode(0);\n cluster.transitionToActive(1);\n // Check the FSCK doesn't detect any bad blocks on the SBN.\n int rc = ToolRunner.run(new org.apache.hadoop.hdfs.tools.DFSck(cluster.getConfiguration(1)), new String[]{ \"/\", \"-files\", \"-blocks\" });\n Assert.assertEquals(0, rc);\n Assert.assertEquals(\"CorruptBlocks should be empty.\", 0, cluster.getNameNode(1).getNamesystem().getCorruptReplicaBlocks());\n AppendTestUtil.checkFullFile(fs, fileToAppend, data.length, data, fileToAppend.toString());\n if (!isTruncateReady) {\n TestFileTruncate.checkBlockRecovery(fileToTruncate, cluster.getFileSystem(1), 300, 200);\n }\n AppendTestUtil.checkFullFile(fs, fileToTruncate, truncatePos[0], data, fileToTruncate.toString());\n } finally {\n if (null != cluster) {\n cluster.shutdown();\n }\n if (null != fs) {\n fs.close();\n }\n }\n }", "private void handleHeartbeat(AppendEntries appendEntries) {\n\n AppendEntriesReply reply;\n\n this.isHeartbeat.set(true);\n\n do {\n\n try {\n long duration = this.raftProperties.getHeartbeat().toMillis() - (System.currentTimeMillis() - this.communicationStart.get());\n if (duration > 0)\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n return;\n }\n\n this.communicationStart.set(System.currentTimeMillis());\n\n try {\n reply = (AppendEntriesReply) this.sendRPCHandler(() -> this.outbound.appendEntries(this.targetServerName, appendEntries));\n } catch (InterruptedException e) {\n return;\n }\n\n } while (reply == null);\n\n AppendEntriesReply finalReply = reply;\n this.taskExecutor.execute(() -> this.consensusModule.appendEntriesReply(finalReply, this.targetServerName));\n\n }", "public void requestAppendLog(AppendLogCommand appendLogCmd) throws PandaException {\r\n\r\n //logger.info(\"request Append in ,UUID : {}\", cmd.getUuid());\r\n // uuid is handled ?\r\n \r\n if(this.counter.size() > 300) return ;\r\n\r\n if (uuidHadRequest(appendLogCmd)) {\r\n\r\n\r\n return;\r\n }\r\n \r\n \r\n\r\n\r\n counter.initCmdCounter(appendLogCmd, corePeer.getMemberPeers().size());\r\n\r\n\r\n corePeer.getStore().appendCommand(appendLogCmd);// leader store\r\n\r\n \r\n leaderHandler.sendToAllFollowers(appendLogCmd);\r\n\r\n\r\n\r\n }", "public void startOnNewTread() {\n stop();\n\n mReadLogsHandler = new ReadLogsHandler();\n\n mReadLogThread = new ReadLogsThread();\n mReadLogThread.start();\n }", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}", "public void startRecord(Leader leader) {\n this.record = new Record();\n record.add(leader);\n }", "@Test\n public void testRetry() throws Exception {\n factory.setSecondsToWait(5L);\n CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1);\n CountDownLatch secondWorkerCreated = factory.getRunCountLatch(2);\n LogFile logFile = tracker.open(\"foo\", \"/biz/baz/%s.log\", DateTime.now());\n manager.start(); //start manager first so it can register to receive notifications\n tracker.written(logFile);\n awaitLatch(oneWorkerCreated);\n logFile.setState(LogFileState.PREP_ERROR); //simulate failure of first prep attempt\n awaitLatch(secondWorkerCreated); //wait for retry\n }", "public IngestLog processSeeds() throws IOException {\n long insertedcount = 0L;\n long rejectedcount = 0L;\n long duplicatecount = 0L;\n long errorcount = 0L;\n long domainsAddedCount = 0L;\n long updatecount = 0L;\n\n List<String> logentries = new ArrayList<String>();\n initalizeLogs();\n\n long lines = 0;\n SeedsDAO sdao = daoFactory.getSeedsDAO();\n DomainsDAO ddao = daoFactory.getDomainsDAO();\n\n try (BufferedReader fr = new BufferedReader(new FileReader(seedsfile))) {\n\n String line;\n while ((line = fr.readLine()) != null) {\n if (line.trim().isEmpty()) { // Silently ignore empty lines\n continue;\n }\n ++lines;\n if (lines % 10000 == 0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" Processed {} seeds.\", lines);\n System.out.println(datestamp + \" Processed \" + lines + \" seeds\");\n }\n\n if (insertedcount % 10000 == 0 && insertedcount>0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" Accepted {} seeds.\", insertedcount);\n System.out.println(datestamp + \" Accepted \" + insertedcount + \" seeds\");\n }\n if (rejectedcount % 10000 == 0 && rejectedcount>0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" Rejected {} seeds.\", rejectedcount);\n System.out.println(datestamp + \" Rejected \" + rejectedcount + \" seeds\");\n }\n if (updatecount % 10000 == 0 && updatecount > 0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" UpdatedLog reached {} lines.\", updatecount);\n System.out.println(datestamp + \" UpdatedLog reached \" + updatecount + \" lines\");\n }\n\n String errMsg = \"\";\n String url = removeAnnotationsIfNecessary(line.trim());\n URL_REJECT_REASON rejectreason = UrlUtils.isRejectableURL(url);\n \n if (!rejectreason.equals(URL_REJECT_REASON.NONE)){\n String logEntry = rejectreason + \": \" + url + \" \" + errMsg;\n if (!onlysavestats) {\n logentries.add(logEntry);\n }\n rejectedcount++;\n writeTo(logEntry, rejectLog);\n continue;\n } else {\n Seed singleSeed = new Seed(url);\n if (ingestAsDanica) {\n singleSeed.setDanicaStatus(DanicaStatus.YES);\n singleSeed.setDanicaStatusReason(\"Known by curators to be danica\");\n singleSeed.setStatus(Status.DONE);\n singleSeed.setStatusReason(\"Set to Status done at ingest to prevent further processing of this url\");\n }\n\n try {\n boolean inserted;\n inserted = sdao.insertSeed(singleSeed);\n\n if (inserted) {\n String domainName = singleSeed.getDomain();\n if (!ddao.existsDomain(domainName)) {\n Domain newdomain = Domain.createNewUndecidedDomain(domainName);\n boolean insertedDomain = ddao.insertDomain(newdomain);\n String domainLogEntry = null;\n if (!insertedDomain) {\n domainLogEntry = \"Failed to add domain '\" + domainName + \"' to domains table, the domain of seed '\" + url + \"'\";\n errorcount++;\n } else {\n domainLogEntry = \"Added domain '\" + domainName + \"' to domains table, the domain of seed '\" + url + \"'\";\n }\n\n if (!onlysavestats) {\n logentries.add(\"DOMAINS: \" + domainLogEntry); \n }\n writeTo(\"DOMAINS: \" + domainLogEntry, updateLog);\n }\n insertedcount++;\n if (!onlysavestats) {\n acceptedList.add(url);\n }\n writeTo(url, acceptLog);\n\n } else {\n if (ingestAsDanica) {\n // update state of seed if not already in Status.DONE\n Seed oldSeed = sdao.getSeed(url);\n if (oldSeed == null) {\n // Should not happen\n rejectreason = URL_REJECT_REASON.UNKNOWN;\n logger.warn(\"The url '{}' should have been in database. But no record was found\", url);\n errMsg = \"The url '\" + url + \"' should have been in database. But no record was found\";\n // Add errMsg to errors.log with datestamp\n String datestamp=\"[\" + new Date() + \"] \";\n writeTo(datestamp + errMsg, errorsLog);\n errorcount++;\n } else {\n String updateLogEntry = null;\n if (oldSeed.getDanicaStatus().equals(DanicaStatus.YES)) {\n updateLogEntry = \"The seed '\" + url + \"' is already in the database with DanicaStatus.YES and status '\" + oldSeed.getStatus() + \"'\";\n } else {\n updateLogEntry = \"The seed '\" + url + \"' is already in the database with DanicaStatus=\" + oldSeed.getDanicaStatus() + \", and status '\" +\n oldSeed.getStatus() + \"'. Changing to DanicaStatus.YES and status.DONE\";\n\n oldSeed.setDanicaStatus(DanicaStatus.YES);\n oldSeed.setDanicaStatusReason(\"Known by curators to be danica\");\n oldSeed.setStatus(Status.DONE);\n oldSeed.setStatusReason(\"Set to Status done at ingest to prevent further processing of this url\");\n sdao.updateSeed(oldSeed);\n }\n writeTo(\"UPDATED: \" + updateLogEntry, updateLog);\n\n }\n } else {\n rejectreason = URL_REJECT_REASON.DUPLICATE;\n duplicatecount++;\n }\n }\n } catch (DaoException e) {\n logger.error(\"Failure in communication with HBase\", e);\n rejectreason = URL_REJECT_REASON.UNKNOWN;\n errMsg = \"Failure in communication with HBase: \" + ExceptionUtils.getFullStackTrace(e);\n errorcount++;\n\n String datestamp=\"[\" + new Date() + \"] \";\n writeTo(datestamp + errMsg, errorsLog);\n }\n if (!rejectreason.equals(URL_REJECT_REASON.UNKNOWN)) {\n String logEntry = rejectreason + \": \" + url + \" \" + errMsg;\n if (!onlysavestats) {\n logentries.add(logEntry);\n }\n rejectedcount++;\n writeTo(logEntry, rejectLog);\n }\n\n }\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to read file \" + seedsfile, e);\n } finally {\n ddao.close();\n sdao.close();\n }\n // trying to update the cache\n try {\n Cache.getCache(daoFactory);\n } catch (Exception e1) {\n System.err.println(\"WARNING: failed to update the statecache: \" \n + ExceptionUtils.getFullStackTrace(e1));\n }\n\n try {\n writeStatsToLogs(insertedcount, rejectedcount, duplicatecount, errorcount, lines, logentries, onlysavestats, domainsAddedCount, updatecount); \n } catch (Exception e) {\n throw new RuntimeException(\"Failed to write logs\", e);\n }\n\n try {\n return logIngestStats(logentries, lines, insertedcount, rejectedcount, duplicatecount, errorcount);\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to log ingest stats\",e);\n }\n\n}", "private void catchUp(JournalStateMachine stateMachine, RaftJournalAppender client)\n throws TimeoutException, InterruptedException {\n long startTime = System.currentTimeMillis();\n long waitBeforeRetry =\n Configuration.getMs(PropertyKey.MASTER_EMBEDDED_JOURNAL_CATCHUP_RETRY_WAIT);\n // Wait for any outstanding snapshot to complete.\n CommonUtils.waitFor(\"snapshotting to finish\", () -> !stateMachine.isSnapshotting(),\n WaitForOptions.defaults().setTimeoutMs(10 * Constants.MINUTE_MS));\n OptionalLong endCommitIndex = OptionalLong.empty();\n try {\n // raft peer IDs are unique, so there should really only ever be one result.\n // If for some reason there is more than one..it should be fine as it only\n // affects the completion time estimate in the logs.\n synchronized (this) { // synchronized to appease findbugs; shouldn't make any difference\n RaftPeerId serverId = mServer.getId();\n Optional<RaftProtos.CommitInfoProto> commitInfo = getGroupInfo().getCommitInfos().stream()\n .filter(commit -> serverId.equals(RaftPeerId.valueOf(commit.getServer().getId())))\n .findFirst();\n if (commitInfo.isPresent()) {\n endCommitIndex = OptionalLong.of(commitInfo.get().getCommitIndex());\n } else {\n throw new IOException(\"Commit info was not present. Couldn't find the current server's \"\n + \"latest commit\");\n }\n }\n } catch (IOException e) {\n LogUtils.warnWithException(LOG, \"Failed to get raft log information before replay.\"\n + \" Replay statistics will not be available\", e);\n }\n\n RaftJournalProgressLogger progressLogger =\n new RaftJournalProgressLogger(mStateMachine, endCommitIndex);\n\n // Loop until we lose leadership or convince ourselves that we are caught up and we are the only\n // master serving. To convince ourselves of this, we need to accomplish three steps:\n //\n // 1. Write a unique ID to Ratis.\n // 2. Wait for the ID to by applied to the state machine. This proves that we are\n // caught up since Ratis cannot apply commits from a previous term after applying\n // commits from a later term.\n // 3. Wait for a quiet period to elapse without anything new being written to Ratis. This is a\n // heuristic to account for the time it takes for a node to realize it is no longer the\n // leader. If two nodes think they are leader at the same time, they will both write unique\n // IDs to the journal, but only the second one has a chance of becoming leader. The first\n // will see that an entry was written after its ID, and double check that it is still the\n // leader before trying again.\n while (true) {\n if (mPrimarySelector.getState() != NodeState.PRIMARY) {\n return;\n }\n long lastAppliedSN = stateMachine.getLastAppliedSequenceNumber();\n long gainPrimacySN = ThreadLocalRandom.current().nextLong(Long.MIN_VALUE, 0);\n LOG.info(\"Performing catchup. Last applied SN: {}. Catchup ID: {}\",\n lastAppliedSN, gainPrimacySN);\n Exception ex;\n try {\n JournalEntry entry = JournalEntry.newBuilder().setSequenceNumber(gainPrimacySN).build();\n CompletableFuture<RaftClientReply> future = client.sendAsync(\n Message.valueOf(UnsafeByteOperations.unsafeWrap(entry.toByteArray())));\n RaftClientReply reply = future.get(5, TimeUnit.SECONDS);\n ex = reply.getException();\n } catch (TimeoutException | ExecutionException | IOException e) {\n ex = e;\n }\n\n if (ex != null) {\n // LeaderNotReadyException typically indicates Ratis is still replaying the journal.\n if (ex instanceof LeaderNotReadyException) {\n progressLogger.logProgress();\n } else {\n LOG.info(\"Exception submitting term start entry: {}\", ex.toString());\n }\n // avoid excessive retries when server is not ready\n Thread.sleep(waitBeforeRetry);\n continue;\n }\n\n // Wait election timeout so that this master and other masters have time to realize they\n // are not leader.\n try {\n long maxElectionTimeoutMs =\n Configuration.getMs(PropertyKey.MASTER_EMBEDDED_JOURNAL_MAX_ELECTION_TIMEOUT);\n CommonUtils.waitFor(\"check primacySN \" + gainPrimacySN + \" and lastAppliedSN \"\n + lastAppliedSN + \" to be applied to leader\", () ->\n stateMachine.getLastAppliedSequenceNumber() == lastAppliedSN\n && stateMachine.getLastPrimaryStartSequenceNumber() == gainPrimacySN,\n WaitForOptions.defaults()\n .setInterval(Constants.SECOND_MS)\n .setTimeoutMs((int) maxElectionTimeoutMs));\n } catch (TimeoutException e) {\n // Someone has committed a journal entry since we started trying to catch up.\n // Restart the catchup process.\n continue;\n }\n LOG.info(\"Caught up in {}ms. Last sequence number from previous term: {}.\",\n System.currentTimeMillis() - startTime, stateMachine.getLastAppliedSequenceNumber());\n return;\n }\n }", "static void respawnReplicaServers(Master master) throws IOException {\n System.out.println(\"[@main] respawning replica servers \");\n // TODO make file names global\n BufferedReader br = new BufferedReader(new FileReader(\"repServers.txt\"));\n int n = Integer.parseInt(br.readLine().trim());\n ReplicaLoc replicaLoc;\n String s;\n\n for (int i = 0; i < n; i++) {\n s = br.readLine().trim();\n replicaLoc = new ReplicaLoc(i, s.substring(0, s.indexOf(':')), true);\n ReplicaServer rs = new ReplicaServer(i, \"./\");\n\n ReplicaInterface stub = (ReplicaInterface) UnicastRemoteObject.exportObject(rs, 0);\n registry.rebind(\"ReplicaClient\" + i, stub);\n\n master.registerReplicaServer(replicaLoc, stub);\n\n System.out.println(\"replica server state [@ main] = \" + rs.isAlive());\n }\n br.close();\n }", "public void beginLogging() {\n\t\ttry {\n\t\t\tserverSocket.setSoTimeout(0);\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"Beginning logging...\");\t\t\n\n\t\twhile(keepRunning) {\n\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\n\t\t\t\tSystem.out.println(\"Accepted a client for a NetworkDatum log!\");\n\t\t\t\t\n\t\t\t\tObjectInputStream inputData = new ObjectInputStream(clientSocket.getInputStream());\n\n\t\t\t\tSystem.out.println(\"Trying to add NetworkDatum to our list...\");\n\n\t\t\t\ttry {\n\t\t\t\t\tNetworkDatum nd = (NetworkDatum) inputData.readObject();\n\t\t\t\t\tnetworkLog.add(nd);\n\n\t\t\t\t\tSystem.out.println(\"NetworkDatum added from \" + nd.username + \" at playback time: \" + nd.time);\n\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch(IOException e) {\n\t\t\t\tnetworkLog.registerError();\n\t\t\t}\n\n\t\t}\n\t}", "private void invokeReconnection(WatchdogListener listener, Entry<String, Integer> entrySet) {\n logger.debug(\"[{}] - Invoke of reconnection.\", entrySet.getKey());\n if (listener != null) {\n listener.reconnectionRequired(entrySet.getKey());\n }\n }", "public static void sendCoordinatorMsg() {\n int numberOfRequestsNotSent = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if ( key != ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n\n try {\n MessageTransfer.sendServer(\n ServerMessage.getCoordinator( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent leader ID to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n numberOfRequestsNotSent += 1;\n System.out.println(\"WARN : Server s\"+destServer.getServerID()+\n \" has failed, it will not receive the leader\");\n }\n }\n }\n if( numberOfRequestsNotSent == ServerState.getInstance().getServers().size()-1 ) {\n // add self clients and chat rooms to leader state\n List<String> selfClients = ServerState.getInstance().getClientIdList();\n List<List<String>> selfRooms = ServerState.getInstance().getChatRoomList();\n\n for( String clientID : selfClients ) {\n LeaderState.getInstance().addClientLeaderUpdate( clientID );\n }\n\n for( List<String> chatRoom : selfRooms ) {\n LeaderState.getInstance().addApprovedRoom( chatRoom.get( 0 ),\n chatRoom.get( 1 ), Integer.parseInt(chatRoom.get( 2 )) );\n }\n\n leaderUpdateComplete = true;\n }\n }", "protected void onANRHappend(long delta) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[############ ANR: take \");\n sb.append(delta);\n sb.append(\" ms #############]\\n\");\n\n printAllStackTraces(sb.toString(), KANRLog);\n\n try {\n // there are may be problem\n LogToES.writeThreadLogToFileReal(LogToES.LOG_PATH,\n KANRLog.logFileName,\n KANRLog);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void issueHeartbeat() {\n updateProperties();\n\n issueConnectorPings();\n }", "public int IntroduceSelf()\n\t{\n\t\tif(m_sNodeType.equals(Commons.NODE_INTROCUDER))\n\t\t{\n\t\t\tm_oLogger.Info(new String(\"Adding self as introducer and leader with Sno 0\"));\n\t\t\t//If recover from checkpoint, set new leader in election. Don't reset serial number\n\t\t\tm_oMember.AddSelf(0);\n\t\t\tm_oElection.SetSerialNumber(0);\n\t\t\tm_oElection.SetLeader(m_oMember.UniqueId());\n\t\t\tRecoverFromCheckPoint();\n\t\t}\n\t\telse if(m_sNodeType.equals(Commons.NODE_PARTICIPANT))\n\t\t{\n\t\t\tCommandIfaceProxy proxy = new CommandIfaceProxy();\n\t\t\tint counter = 0;\n\n\t\t\t// continuous pinging for introducer to connect\n\t\t\twhile(Commons.FAILURE == proxy.Initialize(m_oConfig.IntroducerIP(), m_oConfig.CmdPort(), m_oLogger))\n\t\t\t{\n\t\t\t\tif( counter++ > 100) \n\t\t\t\t{\n\t\t\t\t\tm_oLogger.Error(\"Failed to connect to Introducer. Exiting after 100 tries\");\n\t\t\t\t\treturn Commons.FAILURE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// sleep 5 secs before next retry\n\t\t\t\tm_oLogger.Warning(\"Failed to connect to Introducer. Trying again in 5 secs\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tm_oLogger.Error(m_oLogger.StackTraceToString(e));\n\t\t\t\t\treturn Commons.FAILURE;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// checkpointing will change this part of the logic\n\t\t\t//Added call to JoinGroup for getting serialNumbers\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint serialNumber = proxy.JoinGroup();\n\t\t\t\tm_oLogger.Info(new String(\"Received serial number from introdcr : \" + String.valueOf(serialNumber)));\n\t\t\t\tm_oMember.AddSelf(serialNumber);\n\t\t\t\tm_oElection.SetSerialNumber(serialNumber);\n\t\t\t} catch (TException e2) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tm_oLogger.Error(m_oLogger.StackTraceToString(e2));\n\t\t\t}\n\t\t\tint leaderCounter = 0;\n\t\t\ttry {\n\t\t\t\twhile(!proxy.IsLeaderAlive())\n\t\t\t\t{\n\t\t\t\t\tif( leaderCounter++ > 10) \n\t\t\t\t\t{\n\t\t\t\t\t\tm_oLogger.Error(\"Failed to receive leader. Exiting after 10 tries\");\n\t\t\t\t\t\treturn Commons.FAILURE;\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(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tm_oLogger.Error(m_oLogger.StackTraceToString(e));\n\t\t\t\t\t}\n\t\t\t\t\tm_oLogger.Warning(new String(\"Leader not alive. Trying in 5 secs\"));\t\t\t\n\t\t\t\t}\n\t\t\t\tm_oElection.SetLeader(proxy.GetLeaderId());\n\t\t\t\t\n\t\t\t} catch (TException e3) {\n\t\t\t\tm_oLogger.Error(m_oLogger.StackTraceToString(e3));\n\t\t\t}\n\t\t\t\n\t\t\tByteBuffer buf;\n\t\t\ttry {\n\t\t\t\tbuf = proxy.GetMembershipList();\n\t\t\t} catch (TException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tm_oLogger.Error(m_oLogger.StackTraceToString(e1));\n\t\t\t\treturn Commons.FAILURE;\n\t\t\t}\n\t\t\tbyte[] bufArr = new byte[buf.remaining()];\n\t\t\tbuf.get(bufArr);\n\t\t\ttry {\n\t\t\t\tm_oMember.MergeList(bufArr);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tm_oLogger.Error(m_oLogger.StackTraceToString(e));\n\t\t\t\treturn Commons.FAILURE;\n\t\t\t}\n\t\t}\n\t\treturn Commons.SUCCESS;\n\t}", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "public void StartReplicationMgr()\n\t{\n\t\tif( hostIP.equals(m_oElection.GetLeaderIP()))\n\t\t{\n\t\t\tm_oSDFSMaster.StartReplicationMgr();\n\t\t}\n\t}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "public void startup() {\n /* Schedule the cleanup task to delete old logs */\n if (scheduler != null) {\n logger.info(\"Starting log cleanup with a period of {} ms.\", retentionCheckMs);\n scheduler.schedule(\"kafka-log-retention\", new Runnable() {\n @Override\n public void run() {\n cleanupLogs();\n }\n }, InitialTaskDelayMs, retentionCheckMs, TimeUnit.MILLISECONDS);\n logger.info(\"Starting log flusher with a default period of {} ms.\", flushCheckMs);\n scheduler.schedule(\"kafka-log-flusher\", new Runnable() {\n @Override\n public void run() {\n flushDirtyLogs();\n }\n }, InitialTaskDelayMs, flushCheckMs, TimeUnit.MILLISECONDS);\n scheduler.schedule(\"kafka-recovery-point-checkpoint\", new Runnable() {\n @Override\n public void run() {\n checkpointRecoveryPointOffsets();\n }\n }, InitialTaskDelayMs, flushCheckpointMs, TimeUnit.MILLISECONDS);\n }\n if (cleanerConfig.enableCleaner)\n cleaner.startup();\n }", "@Override\n\tpublic void takeLeadership(CuratorFramework curator) throws Exception\n\t{\n\n\t\tLOG.info(\"a new leader has been elected: kaboom.id={}\", config.getKaboomId());\n\t\n\t\tThread.sleep(30 * 1000);\n\n\t\twhile (true)\n\t\t{\n\t\t\tMap<String, String> partitionToHost = new HashMap<String, String>();\n\t\t\tMap<String, List<String>> hostToPartition = new HashMap<String, List<String>>();\n\t\t\tfinal Map<String, KaBoomNodeInfo> clients = new HashMap<String, KaBoomNodeInfo>();\n\t\t\tMap<String, List<String>> clientToPartitions = new HashMap<String, List<String>>();\n\t\t\tMap<String, String> partitionToClient = new HashMap<String, String>();\n\t\t\tList<String> topics = new ArrayList<String>();\n\n\t\t\t// Get a full set of metadata from Kafka\n\t\t\tStateUtils.readTopicsFromZooKeeper(config.getKafkaZkConnectionString(), topics);\n\n\t\t\t// Map partition to host and host to partition\n\t\t\tStateUtils.getPartitionHosts(config.getKafkaSeedBrokers(), topics, partitionToHost, hostToPartition);\n\n\t\t\t// Get a list of active clients from zookeeper\n\t\t\tStateUtils.getActiveClients(curator, clients);\n\n\t\t\t// Get a list of current assignments\n\t\t\t// Get a list of current assignments\n\t\t\t\n\t\t\tfor (String partition : partitionToHost.keySet())\n\t\t\t{\n\t\t\t\tStat stat = curator.checkExists().forPath(\"/kaboom/assignments/\" + partition);\n\t\t\t\t\n\t\t\t\tif (stat != null)\n\t\t\t\t{\n\t\t\t\t\t// check if the client is still connected, and delete node if it is not.\n\t\t\t\t\t\n\t\t\t\t\tString client = new String(curator.getData().forPath(\"/kaboom/assignments/\" + partition), UTF8);\n\t\t\t\t\t\n\t\t\t\t\tif (clients.containsKey(client))\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.debug(\"Partition {} : client {} is connected\", partition, client);\n\t\t\t\t\t\t\n\t\t\t\t\t\tpartitionToClient.put(partition, client);\t\t\t\t\t\t\n\t\t\t\t\t\tList<String> parts = clientToPartitions.get(client);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (parts == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparts = new ArrayList<String>();\n\t\t\t\t\t\t\tclientToPartitions.put(client, parts);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparts.add(partition);\n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.debug(\"Partition {} : client {} is not connected\", partition, client);\n\t\t\t\t\t\tcurator.delete().forPath(\"/kaboom/assignments/\" + partition);\n\t\t\t\t\t\tstat = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tStateUtils.calculateLoad(partitionToHost, clients, clientToPartitions);\n\n\t\t\t// If any node is over its target by at least one, then unassign partitions until it is at or below its target\n\t\t\t\n\t\t\tfor (Entry<String, KaBoomNodeInfo> e : clients.entrySet())\n\t\t\t{\n\t\t\t\tString client = e.getKey();\n\t\t\t\tKaBoomNodeInfo info = e.getValue();\n\n\t\t\t\tif (info.getLoad() >= info.getTargetLoad() + 1)\n\t\t\t\t{\n\t\t\t\t\tList<String> localPartitions = new ArrayList<String>();\n\t\t\t\t\tList<String> remotePartitions = new ArrayList<String>();\n\n\t\t\t\t\tfor (String partition : clientToPartitions.get(client))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (partitionToHost.get(partition).equals(info.getHostname()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlocalPartitions.add(partition);\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\tremotePartitions.add(partition);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (info.getLoad() > info.getTargetLoad())\n\t\t\t\t\t{\n\t\t\t\t\t\tString partitionToDelete;\n\t\t\t\t\t\tif (remotePartitions.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpartitionToDelete = remotePartitions.remove(rand.nextInt(remotePartitions.size()));\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\tpartitionToDelete = localPartitions.remove(rand.nextInt(localPartitions.size()));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tLOG.info(\"Unassgning {} from overloaded client {}\", partitionToDelete, client);\n\t\t\t\t\t\tpartitionToClient.remove(partitionToDelete);\n\t\t\t\t\t\tclientToPartitions.get(client).remove(partitionToDelete);\n\t\t\t\t\t\tinfo.setLoad(info.getLoad() - 1);\n\n\t\t\t\t\t\tcurator.delete().forPath(\"/kaboom/assignments/\" + partitionToDelete);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Sort the clients by percent load, then add unassigned clients to the lowest loaded client\t\t\t\n\t\t\t{\n\t\t\t\tList<String> sortedClients = new ArrayList<String>();\n\t\t\t\tComparator<String> comparator = new Comparator<String>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(String a, String b)\n\t\t\t\t\t{\n\t\t\t\t\t\tKaBoomNodeInfo infoA = clients.get(a);\n\t\t\t\t\t\tdouble valA = infoA.getLoad() / infoA.getTargetLoad();\n\n\t\t\t\t\t\tKaBoomNodeInfo infoB = clients.get(b);\n\t\t\t\t\t\tdouble valB = infoB.getLoad() / infoB.getTargetLoad();\n\n\t\t\t\t\t\tif (valA == valB)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn 0;\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\tif (valA > valB)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn 1;\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\treturn -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\n\t\t\t\tsortedClients.addAll(clients.keySet());\n\n\t\t\t\tfor (String partition : partitionToHost.keySet())\n\t\t\t\t{\n\t\t\t\t\t// If it's already assigned, skip it\n\t\t\t\t\t\n\t\t\t\t\tif (partitionToClient.containsKey(partition))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCollections.sort(sortedClients, comparator);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * \n\t\t\t\t\t * Iterate through the list until we find either a local client below capacity, or we reach the ones that are \n\t\t\t\t\t * above capacity. If we reach clients above capacity, then just assign it to the first node.\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\tLOG.info(\"Going to assign {}\", partition);\n\t\t\t\t\tString chosenClient = null;\n\t\t\t\t\t\n\t\t\t\t\tfor (String client : sortedClients)\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.info(\"- Checking {}\", client);\t\t\t\t\t\t\n\t\t\t\t\t\tKaBoomNodeInfo info = clients.get(client);\t\t\t\t\t\t\n\t\t\t\t\t\tLOG.info(\"- Current load = {}, Target load = {}\", info.getLoad(), info.getTargetLoad());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (info.getLoad() >= info.getTargetLoad())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tchosenClient = sortedClients.get(0);\n\t\t\t\t\t\t\tbreak;\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\tif (clients.get(client).getHostname().equals(partitionToHost.get(partition)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tchosenClient = client;\n\t\t\t\t\t\t\t\tbreak;\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\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (chosenClient == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tchosenClient = sortedClients.get(0);\n\t\t\t\t\t}\n\n\t\t\t\t\tLOG.info(\"Assigning partition {} to client {}\", partition, chosenClient);\n\n\t\t\t\t\tcurator\n\t\t\t\t\t\t .create()\n\t\t\t\t\t\t .withMode(CreateMode.PERSISTENT)\n\t\t\t\t\t\t .forPath(\"/kaboom/assignments/\" + partition,\n\t\t\t\t\t\t\t chosenClient.getBytes(UTF8));\n\n\t\t\t\t\tList<String> parts = clientToPartitions.get(chosenClient);\n\t\t\t\t\t\n\t\t\t\t\tif (parts == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tparts = new ArrayList<String>();\n\t\t\t\t\t\tclientToPartitions.put(chosenClient, parts);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tparts.add(partition);\n\n\t\t\t\t\tpartitionToClient.put(partition, chosenClient);\n\n\t\t\t\t\tclients.get(chosenClient).setLoad(clients.get(chosenClient).getLoad() + 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check to see if the kafka_ready flag writer thread exists and is alive:\n\t\t\t * \n\t\t\t * If it doesn't exist or isn't running, start it. This is designed to \n\t\t\t * work well when the load balancer sleeps for 10 minutes after assigning \n\t\t\t * work. If that behavior changes then additional logic will be required\n\t\t\t * to ensure this isn't executed too often \n\t\t\t */\n\t\t\t\n\t\t\tif (readyFlagThread == null || !readyFlagThread.isAlive())\n\t\t\t{\n\t\t\t\tLOG.info(\"[ready flag writer] thread doesn't exist or is not running\");\t\t\t\t\n\t\t\t\treadyFlagWriter = new ReadyFlagWriter(config, curator);\n\t\t\t\treadyFlagWriter.addListener(this);\n\t\t\t\treadyFlagThread = new Thread(readyFlagWriter);\n\t\t\t\treadyFlagThread.start();\n\t\t\t\tLOG.info(\"[ready flag writer] thread created and started\");\n\t\t\t}\n\n\t\t\tThread.sleep(10 * 60 * 1000);\n\t\t}\n\t}", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "void startToPerformAsLeader();", "private void handleNormalAppendEntries(AppendEntries appendEntries) {\n\n AppendEntriesReply reply;\n\n do {\n\n this.communicationStart.set(System.currentTimeMillis());\n\n try {\n reply = (AppendEntriesReply) this.sendRPCHandler(() -> this.outbound.appendEntries(this.targetServerName, appendEntries));\n } catch (InterruptedException e) {\n return;\n }\n\n } while (reply == null);\n\n AppendEntriesReply finalReply = reply;\n this.taskExecutor.execute(() -> this.consensusModule.appendEntriesReply(finalReply, this.targetServerName));\n\n }", "public void run() {\n\n switch( operation )\n {\n case \"Timer\":\n System.out.println( \"INFO : Timer started\" );\n try {\n // wait 7 seconds\n Thread.sleep( 7000 );\n if( !receivedOk )\n {\n // OK not received. Set self as leader\n LeaderState.getInstance().setLeaderID( ServerState.getInstance().getSelfID() );\n electionInProgress = false; // allow another election request to come in\n leaderFlag = true;\n System.out.println( \"INFO : Server s\" + LeaderState.getInstance().getLeaderID()\n + \" is selected as leader! \" );\n\n LeaderState.getInstance().resetLeader(); // reset leader lists when newly elected\n\n Runnable sender = new BullyAlgorithm( \"Sender\", \"coordinator\" );\n new Thread( sender ).start();\n }\n\n if( receivedOk && !leaderFlag )\n {\n System.out.println( \"INFO : Received OK but coordinator message was not received\" );\n\n electionInProgress = false;\n receivedOk = false;\n\n Runnable sender = new BullyAlgorithm( \"Sender\", \"election\" );\n new Thread( sender ).start();\n }\n }\n catch( Exception e ) {\n System.out.println( \"INFO : Exception in timer thread\" );\n }\n break;\n\n case \"Heartbeat\":\n while( true ) {\n try {\n Thread.sleep(10);\n if( leaderFlag && ServerState.getInstance().getSelfID() != LeaderState.getInstance().getLeaderID() ) {\n Thread.sleep( 1500 );\n Server destServer = ServerState.getInstance().getServers()\n .get( LeaderState.getInstance().getLeaderID() );\n\n MessageTransfer.sendServer(\n ServerMessage.getHeartbeat( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n //System.out.println( \"INFO : Sent heartbeat to leader s\" + destServer.getServerID() );\n }\n }\n\n catch( Exception e ) {\n leaderFlag = false;\n leaderUpdateComplete = false;\n System.out.println( \"WARN : Leader has failed!\" );\n // send election request\n Runnable sender = new BullyAlgorithm( \"Sender\", \"election\" );\n new Thread( sender ).start();\n }\n }\n\n case \"Sender\":\n switch( reqType ) {\n case \"election\":\n try {\n sendElectionRequest();\n } catch( Exception e ) {\n System.out.println( \"WARN : Server has failed, election request cannot be processed\" );\n }\n break;\n\n case \"ok\":\n try {\n sendOK();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n break;\n\n case \"coordinator\":\n try {\n sendCoordinatorMsg();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n break;\n }\n break;\n }\n }", "public static void main(String[] args) \n\t{\n\t\t// Create a new log server (client) and attempt to connect to the server\n\t\tLogServer ls = new LogServer();\n\t\ttry \n\t\t{\n\t\t\tls.open(HOST_SERVER, PORT_NUMBER);\t\n\t\t} \n\t\tcatch (UnknownHostException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Attempt to retrieve a new ticket from the server.\n\t\tString ticket = \"\";\n\t\ttry \n\t\t{\n\t\t\tticket = ls.newTicket();\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Add some entries to the log for this new ticket\n\t\tif (ticket.length() > 0)\n\t\t{\n\t\t\tls.addEntry(ticket, \"Message 1-caw\");\n\t\t\tls.addEntry(ticket, \"Message 2-caw\");\n\t\t\tls.addEntry(ticket, \"Message 3-caw\");\n\t\t\tls.addEntry(ticket, \"Message 4-caw\");\n\t\t\tls.addEntry(ticket, \"Message 5-caw\");\n\t\t\tls.addEntry(ticket, \"Message 6-caw\");\n\t\t\tls.addEntry(ticket, \"Message 7-caw\");\n\t\t\t\n\t\t\t// Now, retrieve the messages back and display them to stdout\n\t\t\tList<String> entries = new ArrayList<String>();\n\t\t\ttry \n\t\t\t{\n\t\t\t\tentries = ls.getEntries(ticket);\n\t\t\t} \n\t\t\tcatch (IOException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfor (int i = 0; i < entries.size(); i++) \n\t\t\t{\n\t\t\t\tSystem.out.println(entries.get(i));\n\t\t\t}\n\t\t\t\n\t\t\t// Finally, release the ticket to void it from use\n\t\t\tls.releaseTicket(ticket);\n\t\t}\n\t}", "private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) || (currProbe.curr_status == models.MessageProbe.STATUS.NEW)) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToPost());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.POSTED;\n currProbe.curr_error = null;\n postCounter++;\n }\n currProbe.update();\n }\n }\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.DELETED) {\n currProbe.delete();\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.EDITED) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToModify());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.WAIT_CONFIRM;\n currProbe.curr_error = null;\n editCounter++;\n }\n currProbe.update();\n }\n }\n }\n }\n }", "public void log(Request request, Reply reply, int nbytes, long duration) {\n Client client = request.getClient();\n long date = reply.getDate();\n String user = (String) request.getState(AuthFilter.STATE_AUTHUSER);\n URL urlst = (URL) request.getState(Request.ORIG_URL_STATE);\n String requrl;\n if (urlst == null) {\n URL u = request.getURL();\n if (u == null) {\n requrl = noUrl;\n } else {\n requrl = u.toExternalForm();\n }\n } else {\n requrl = urlst.toExternalForm();\n }\n StringBuffer sb = new StringBuffer(512);\n String logs;\n int status = reply.getStatus();\n if ((status > 999) || (status < 0)) {\n status = 999;\n }\n synchronized (sb) {\n byte ib[] = client.getInetAddress().getAddress();\n if (ib.length == 4) {\n boolean doit;\n edu.hkust.clap.monitor.Monitor.loopBegin(349);\nfor (int i = 0; i < 4; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(349);\n{\n doit = false;\n int b = ib[i];\n if (b < 0) {\n b += 256;\n }\n if (b > 99) {\n sb.append((char) ('0' + (b / 100)));\n b = b % 100;\n doit = true;\n }\n if (doit || (b > 9)) {\n sb.append((char) ('0' + (b / 10)));\n b = b % 10;\n }\n sb.append((char) ('0' + b));\n if (i < 3) {\n sb.append('.');\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(349);\n\n } else {\n sb.append(client.getInetAddress().getHostAddress());\n }\n sb.append(\" - \");\n if (user == null) {\n sb.append(\"- [\");\n } else {\n sb.append(user);\n sb.append(\" [\");\n }\n dateCache(date, sb);\n sb.append(\"] \\\"\");\n sb.append(request.getMethod());\n sb.append(' ');\n sb.append(requrl);\n sb.append(' ');\n sb.append(request.getVersion());\n sb.append(\"\\\" \");\n sb.append((char) ('0' + status / 100));\n status = status % 100;\n sb.append((char) ('0' + status / 10));\n status = status % 10;\n sb.append((char) ('0' + status));\n sb.append(' ');\n if (nbytes < 0) {\n sb.append('-');\n } else {\n sb.append(nbytes);\n }\n if (request.getReferer() == null) {\n if (request.getUserAgent() == null) {\n sb.append(\" \\\"-\\\" \\\"-\\\"\");\n } else {\n sb.append(\" \\\"-\\\" \\\"\");\n sb.append(request.getUserAgent());\n sb.append('\\\"');\n }\n } else {\n if (request.getUserAgent() == null) {\n sb.append(\" \\\"\");\n sb.append(request.getReferer());\n sb.append(\"\\\" \\\"-\\\"\");\n } else {\n sb.append(\" \\\"\");\n sb.append(request.getReferer());\n sb.append(\"\\\" \\\"\");\n sb.append(request.getUserAgent());\n sb.append('\\\"');\n }\n }\n sb.append('\\n');\n logs = sb.toString();\n }\n logmsg(logs);\n }", "void reportHeartbeat();", "abstract void initiateLog();", "void onHeartbeat(GuidPrefix senderGuidPrefix, Heartbeat hb) {\r\n\t\tlogger.debug(\"[{}] Got Heartbeat: #{} {}-{}, F:{}, L:{} from {}\", getEntityId(), hb.getCount(),\r\n\t\t\t\thb.getFirstSequenceNumber(), hb.getLastSequenceNumber(), hb.finalFlag(), hb.livelinessFlag(),\r\n\t\t\t\tsenderGuidPrefix);\r\n\r\n\t\tWriterProxy wp = getWriterProxy(new Guid(senderGuidPrefix, hb.getWriterId()));\r\n\t\tif (wp != null) {\r\n\t\t\twp.assertLiveliness(); // Got HB, writer is alive\r\n\r\n\t\t\tif (wp.heartbeatReceived(hb)) {\r\n\t\t\t\tif (hb.livelinessFlag()) {\r\n\t\t\t\t\t//wp.assertLiveliness(); Not really needed, every HB asserts liveliness??? \r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (isReliable()) { // Only reliable readers respond to\r\n\t\t\t\t\t// heartbeat\r\n\t\t\t\t\tboolean doSend = false;\r\n\t\t\t\t\tif (!hb.finalFlag()) { // if the FinalFlag is not set, then\r\n\t\t\t\t\t\t// the Reader must send an AckNack\r\n\t\t\t\t\t\tdoSend = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (wp.getGreatestDataSeqNum() < hb.getLastSequenceNumber()) {\r\n\t\t\t\t\t\t\tdoSend = true;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlogger.trace(\"[{}] Will no send AckNack, since my seq-num is {} and Heartbeat seq-num is {}\",\r\n\t\t\t\t\t\t\t\t\tgetEntityId(), wp.getGreatestDataSeqNum(), hb.getLastSequenceNumber());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (doSend) {\r\n\t\t\t\t\t\tsendAckNack(wp);\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\telse {\r\n\t\t\tlogger.warn(\"[{}] Discarding Heartbeat from unknown writer {}, {}\", getEntityId(), senderGuidPrefix,\r\n\t\t\t\t\thb.getWriterId());\r\n\t\t}\r\n\t}", "public void logStoreAppendSuccess(AppendLogCommand cmd) {\r\n\r\n\r\n\r\n if (logger.isInfoEnabled())\r\n logger.info(\"LogStore call back MemberAppend {}\",\r\n new String(cmd.getTerm() + \" \" + cmd.getLastIndex()));\r\n\r\n\r\n\r\n // send to all follower and self\r\n\r\n\r\n\r\n }", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "private void startHeartbeats() {\r\n\t\tClientProperties props = ClientProperties.getInstance();\r\n\t\tint heartbeatInterval = Integer.parseInt(props.getProperty(ClientProperties.HEARTBEAT_INTERVAL));\r\n\t\theartbeatProducer.startHeartbeats(heartbeatInterval);\r\n\t}", "private void maybeIncrementLeaderHW(Replica leaderReplica) {\n Set<LogOffsetMetadata> allLogEndOffsets = Sc.map(inSyncReplicas, r -> r.logEndOffset());\n LogOffsetMetadata newHighWatermark = allLogEndOffsets.stream().min(LogOffsetMetadata::compare).get();\n LogOffsetMetadata oldHighWatermark = leaderReplica.highWatermark();\n if (oldHighWatermark.precedes(newHighWatermark)) {\n StringBuilder s = new StringBuilder();\n inSyncReplicas.forEach(r -> s.append(String.format(\"id%s.logEnd=%s\", r.brokerId, r.logEndOffset())));\n logger.info(String.format(\"=== maybeIncrementLeaderHW.id%s.highWatermark =%s log[%s]\", leaderReplica.brokerId, newHighWatermark, s));\n// Utils.printStack();\n leaderReplica.highWatermark_(newHighWatermark);\n debug(String.format(\"High watermark for partition <%s,%d> updated to %s\", topic, partitionId, newHighWatermark));\n // some delayed requests may be unblocked after HW changed;\n TopicAndPartition requestKey = new TopicAndPartition(this.topic, this.partitionId);\n replicaManager.unblockDelayedFetchRequests(requestKey);\n replicaManager.unblockDelayedProduceRequests(requestKey);\n } else {\n debug(String.format(\"Skipping update high watermark since Old hw %s is larger than new hw %s for partition <%s,%d>. All leo's are %s\",\n oldHighWatermark, newHighWatermark, topic, partitionId, allLogEndOffsets.toString()));\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\tlogger.info( \"RollingProximityGenerationIndicator run\");\n\t\t\tthis.beacon.setChangeAddressFlag( true);\n\t\t}", "public void checkpointRecoveryPointOffsets() {\n Table<String, TopicAndPartition, Log> recoveryPointsByDir = Utils.groupBy(this.logsByTopicPartition(), new Function2<TopicAndPartition, Log, String>() {\n @Override\n public String apply(TopicAndPartition _1, Log _2) {\n return _2.dir.getParent();\n }\n });\n for (File dir : logDirs) {\n Map<TopicAndPartition, Log> recoveryPoints = recoveryPointsByDir.row(dir.toString());\n if (recoveryPoints != null)\n this.recoveryPointCheckpoints.get(dir).write(Utils.map(recoveryPoints, new Function2<TopicAndPartition, Log, Tuple2<TopicAndPartition, Long>>() {\n @Override\n public Tuple2<TopicAndPartition, Long> apply(TopicAndPartition arg1, Log log) {\n return Tuple2.make(arg1, log.recoveryPoint);\n }\n }));\n }\n }", "private MapWritable reportForDuty(final Sleeper sleeper) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Telling master at \" +\n conf.get(MASTER_ADDRESS) + \" that we are up\");\n }\n HMasterRegionInterface master = null;\n while (!stopRequested.get() && master == null) {\n try {\n // Do initial RPC setup. The final argument indicates that the RPC\n // should retry indefinitely.\n master = (HMasterRegionInterface)HbaseRPC.waitForProxy(\n HMasterRegionInterface.class, HMasterRegionInterface.versionID,\n new HServerAddress(conf.get(MASTER_ADDRESS)).getInetSocketAddress(),\n this.conf, -1);\n } catch (IOException e) {\n LOG.warn(\"Unable to connect to master. Retrying. Error was:\", e);\n sleeper.sleep();\n }\n }\n this.hbaseMaster = master;\n MapWritable result = null;\n long lastMsg = 0;\n while(!stopRequested.get()) {\n try {\n this.requestCount.set(0);\n this.serverInfo.setLoad(new HServerLoad(0, onlineRegions.size(), 0, 0));\n lastMsg = System.currentTimeMillis();\n result = this.hbaseMaster.regionServerStartup(serverInfo);\n break;\n } catch (Leases.LeaseStillHeldException e) {\n LOG.info(\"Lease \" + e.getName() + \" already held on master. Check \" +\n \"DNS configuration so that all region servers are\" +\n \"reporting their true IPs and not 127.0.0.1. Otherwise, this\" +\n \"problem should resolve itself after the lease period of \" +\n this.conf.get(\"hbase.master.lease.period\")\n + \" seconds expires over on the master\");\n } catch (IOException e) {\n LOG.warn(\"error telling master we are up\", e);\n }\n sleeper.sleep(lastMsg);\n }\n return result;\n }", "@Override\n\tpublic void run() {\n\n\t\tprogressivNumber++;\n\t\tStoRMStatus status = detective.haveaLook();\n\t\tstatus.setPulseNumber(progressivNumber);\n\t\tHEALTH_LOG.debug(\"*** HEARTHBEAT ***\");\n\t\tHEALTH_LOG.info(status.toString());\n\t}", "@Override\n public Flux<ClusterMembershipEvent> watchLeaderElectionProcessUpdates() {\n Flux<ClusterMembershipEvent> lockWatcher = Flux.defer(() -> {\n Scheduler singleScheduler = Schedulers.newSingle(\"LeaderWatcher-\" + WATCHER_THREAD_IDX.getAndIncrement());\n return Flux.interval(LEADER_POLL_INTERVAL, singleScheduler)\n .flatMap(tick -> {\n long started = electedLeaderRefreshAction.start();\n ClusterMembershipRevision<ClusterMemberLeadership> revision;\n try {\n revision = refreshCurrentLeaderRevision();\n electedLeaderRefreshAction.finish(started);\n } catch (Exception e) {\n Throwable unwrapped = e.getCause() != null ? e.getCause() : e;\n electedLeaderRefreshAction.failure(unwrapped);\n return Flux.error(unwrapped);\n }\n return Flux.<ClusterMembershipEvent>just(ClusterMembershipEvent.leaderElected(revision));\n })\n .retryWhen(RetryHandlerBuilder.retryHandler()\n .withRetryCount(LEADER_POLL_RETRIES)\n .withDelay(Math.max(1, leaseDuration.toMillis() / 10), leaseDuration.toMillis(), TimeUnit.MILLISECONDS)\n .withReactorScheduler(Schedulers.parallel())\n .buildRetryExponentialBackoff()\n )\n .doOnCancel(singleScheduler::dispose)\n .doAfterTerminate(singleScheduler::dispose);\n }).distinctUntilChanged();\n\n return lockWatcher.mergeWith(handlerProcessor.flatMap(LeaderElectionHandler::events));\n }", "@Override\n public void replicationFinished()\n {\n MyMessage dummyMessage = new MyMessage(this);\n registration().getQueue().enqueue(dummyMessage);\n registration().getQueue().dequeue();\n examination().getQueue().enqueue(dummyMessage);\n examination().getQueue().dequeue();\n vaccination().getQueue().enqueue(dummyMessage);\n vaccination().getQueue().dequeue();\n syringes().getQueue().enqueue(dummyMessage);\n syringes().getQueue().dequeue();\n //End of dummy message\n \n getFinishTime().addSample(currentTime());\n \n getCoolingLengths().addSample(currentTime() - 32400);\n getArrivals().addSample(enviroment().getArrivals());\n getDepartures().addSample(enviroment().getDepartures());\n\n getRegistrationWaitings().addSample(registration().getWaitingStat().mean());\n getExaminationWaitings().addSample(examination().getWaitingStat().mean());\n getVaccinationWaitings().addSample(vaccination().getWaitingStat().mean());\n\n getRegistrationQueueLengths().addSample(registration().getQueueStat().mean());\n getExaminationQueueLengths().addSample(examination().getQueueStat().mean());\n getVaccinationQueueLengths().addSample(vaccination().getQueueStat().mean());\n\n double efficiency = 0.0;\n for (Staff personal : registration().getPersonal()) {\n efficiency += (personal.getWorkingTime() / (currentTime() - (personal.getLunchEnd() - personal.getLunchStart())));\n }\n getRegistrationEfficiency().addSample(efficiency / registration().getPersonal().size());\n\n efficiency = 0.0;\n for (Staff personal : examination().getPersonal()) {\n efficiency += (personal.getWorkingTime() / (currentTime() - (personal.getLunchEnd() - personal.getLunchStart())));\n }\n getExaminationEfficiency().addSample(efficiency / examination().getPersonal().size());\n\n efficiency = 0.0;\n for (Staff personal : vaccination().getPersonal()) {\n efficiency += (personal.getWorkingTime() / (currentTime() - (personal.getLunchEnd() - personal.getLunchStart())));\n }\n getVaccinationEfficiency().addSample(efficiency / vaccination().getPersonal().size());\n\n getWaitingRoomFilling().addSample(waitingRoom().getFillingStat().mean());\n\n getRefillWaitings().addSample(syringes().getWaitingStat().mean());\n getRefillQueueLengths().addSample(syringes().getQueueStat().mean());\n \n getLunchLengths().addSample(canteen().getLunchLengthStat().mean());\n \n super.replicationFinished();\n }", "@Override\n public void noteNewTurn()\n {\n if ( traceStats && stateMachine.getInstanceId() == 1 )\n {\n ForwardDeadReckonLegalMoveInfo[] masterList = stateMachine.getFullPropNet().getMasterMoveList();\n for(int i = 0; i < bestResponseScores.length; i++)\n {\n float best = -Float.MAX_VALUE;\n float bestFollow = -Float.MAX_VALUE;\n int bestIndex = -1;\n int bestFollowIndex = -1;\n for(int j = 0; j < bestResponseScores.length; j++)\n {\n if ( responseSampleSize[i][j] > 0 )\n {\n float score = bestResponseScores[i][j]/responseSampleSize[i][j];\n if ( masterList[i].mRoleIndex != masterList[j].mRoleIndex)\n {\n if ( score > best )\n {\n best = score;\n bestIndex = j;\n }\n }\n else\n {\n if ( score > bestFollow )\n {\n bestFollow = score;\n bestFollowIndex = j;\n }\n }\n }\n }\n\n LOGGER.info(\"Best response to \" + masterList[i].mInputProposition + \": \" + (bestIndex == -1 ? \"NONE\" : masterList[bestIndex].mInputProposition + \" (\" + (100*best) + \"% [\" + responseSampleSize[i][bestIndex] + \"] )\"));\n LOGGER.info(\"Best follow-on to \" + masterList[i].mInputProposition + \": \" + (bestFollowIndex == -1 ? \"NONE\" : masterList[bestFollowIndex].mInputProposition + \" (\" + (100*bestFollow) + \"% [\" + responseSampleSize[i][bestFollowIndex] + \"] )\"));\n if ( bestIndex != -1 && opponentEquivalent[bestIndex] != bestFollowIndex )\n {\n int bestDeny = opponentEquivalent[bestIndex];\n LOGGER.info(\"Best denial to \" + masterList[i].mInputProposition + \": \" + (bestDeny == -1 ? \"NONE\" : masterList[bestDeny].mInputProposition + \" (\" + (100*(bestResponseScores[i][bestDeny]/responseSampleSize[i][bestDeny])) + \"% [\" + responseSampleSize[i][bestDeny] + \"] )\"));\n }\n }\n }\n\n // Reset the stats\n for(int i = 0; i < bestResponseScores.length; i++)\n {\n for(int j = 0; j < bestResponseScores.length; j++)\n {\n bestResponseScores[i][j] /= 2;\n responseSampleSize[i][j] /= 2;\n }\n }\n }", "public void run() throws Exception {\n logger.log(Level.FINE, \"run()\");\n /* Start the discovery prcess by creating a LookupDiscovery\n * instance configured to discover BOTH the initial and additional\n * lookup services to be started.\n */\n String[] groupsToDiscover = toGroupsArray(getAllLookupsToStart());\n logger.log(Level.FINE,\n \"starting discovery by creating a \"\n +\"LookupDiscovery to discover -- \");\n for(int i=0;i<groupsToDiscover.length;i++) {\n logger.log(Level.FINE, \" \"+groupsToDiscover[i]);\n }//end loop\n LookupDiscovery ld = new LookupDiscovery(groupsToDiscover,\n getConfig().getConfiguration());\n lookupDiscoveryList.add(ld);\n\n /* Verify that the lookup discovery utility created above is\n * operational by verifying that the INITIIAL lookups are\n * discovered.\n */\n mainListener.setLookupsToDiscover(getInitLookupsToStart());\n ld.addDiscoveryListener(mainListener);\n waitForDiscovery(mainListener);\n\n /* Terminate the lookup discovery utility */\n ld.terminate();\n logger.log(Level.FINE, \"terminated lookup discovery\");\n\n\n /* Since the lookup discovery utility was terminated, the listener\n * should receive no more events when new lookups are started that\n * belong to groups the utility is configured to discover. Thus,\n * reset the listener to expect no more events.\n */\n mainListener.clearAllEventInfo();\n /* Verify that the lookup discovery utility created above is no\n * longer operational by starting the additional lookups, and\n * verifying that the listener receives no more discovered events.\n */\n logger.log(Level.FINE,\n \"starting additional lookup services ...\");\n startAddLookups();\n /* Wait a nominal amount of time to allow any un-expected events\n * to arrive.\n */\n waitForDiscovery(mainListener);\n }", "@Test\n public void testProcessRetries() throws Exception {\n System.out.println(\"processRetries\");\n // has null pointer issues if run standalone without the listen\n instance.listen();\n instance.processRetries();\n }", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "public void delete() {\n Utils.inWriteLock(leaderIsrUpdateLock, () -> {\n assignedReplicaMap.clear();\n Set<Replica> inSyncReplicas = Sets.newHashSet();\n leaderReplicaIdOpt = Optional.empty();\n logManager.deleteLog(new TopicAndPartition(topic, partitionId));\n// error(String.format(\"Error deleting the log for partition <%s,%d>\", topic, partitionId), e);\n// Runtime.getRuntime().halt(1);\n return null;\n });\n }", "private void recover() throws IllegalStateException, InvalidRecordLocationException, IOException, IOException {\n \n RecordLocation pos = null;\n int transactionCounter = 0;\n \n log.info(\"Journal Recovery Started from: \" + journal);\n ConnectionContext context = new ConnectionContext();\n \n // While we have records in the journal.\n while ((pos = journal.getNextRecordLocation(pos)) != null) {\n org.activeio.Packet data = journal.read(pos);\n DataStructure c = (DataStructure) wireFormat.unmarshal(data);\n \n if (c instanceof Message ) {\n Message message = (Message) c;\n JournalMessageStore store = (JournalMessageStore) createMessageStore(message.getDestination());\n if ( message.isInTransaction()) {\n transactionStore.addMessage(store, message, pos);\n }\n else {\n store.replayAddMessage(context, message);\n transactionCounter++;\n }\n } else {\n switch (c.getDataStructureType()) {\n case JournalQueueAck.DATA_STRUCTURE_TYPE:\n {\n JournalQueueAck command = (JournalQueueAck) c;\n JournalMessageStore store = (JournalMessageStore) createMessageStore(command.getDestination());\n if (command.getMessageAck().isInTransaction()) {\n transactionStore.removeMessage(store, command.getMessageAck(), pos);\n }\n else {\n store.replayRemoveMessage(context, command.getMessageAck());\n transactionCounter++;\n }\n }\n break;\n case JournalTopicAck.DATA_STRUCTURE_TYPE: \n {\n JournalTopicAck command = (JournalTopicAck) c;\n JournalTopicMessageStore store = (JournalTopicMessageStore) createMessageStore(command.getDestination());\n if (command.getTransactionId() != null) {\n transactionStore.acknowledge(store, command, pos);\n }\n else {\n store.replayAcknowledge(context, command.getClientId(), command.getSubscritionName(), command.getMessageId());\n transactionCounter++;\n }\n }\n break;\n case JournalTransaction.DATA_STRUCTURE_TYPE:\n {\n JournalTransaction command = (JournalTransaction) c;\n try {\n // Try to replay the packet.\n switch (command.getType()) {\n case JournalTransaction.XA_PREPARE:\n transactionStore.replayPrepare(command.getTransactionId());\n break;\n case JournalTransaction.XA_COMMIT:\n case JournalTransaction.LOCAL_COMMIT:\n Tx tx = transactionStore.replayCommit(command.getTransactionId(), command.getWasPrepared());\n if (tx == null)\n break; // We may be trying to replay a commit that\n // was already committed.\n \n // Replay the committed operations.\n tx.getOperations();\n for (Iterator iter = tx.getOperations().iterator(); iter.hasNext();) {\n TxOperation op = (TxOperation) iter.next();\n if (op.operationType == TxOperation.ADD_OPERATION_TYPE) {\n op.store.replayAddMessage(context, (Message) op.data);\n }\n if (op.operationType == TxOperation.REMOVE_OPERATION_TYPE) {\n op.store.replayRemoveMessage(context, (MessageAck) op.data);\n }\n if (op.operationType == TxOperation.ACK_OPERATION_TYPE) {\n JournalTopicAck ack = (JournalTopicAck) op.data;\n ((JournalTopicMessageStore) op.store).replayAcknowledge(context, ack.getClientId(), ack.getSubscritionName(), ack\n .getMessageId());\n }\n }\n transactionCounter++;\n break;\n case JournalTransaction.LOCAL_ROLLBACK:\n case JournalTransaction.XA_ROLLBACK:\n transactionStore.replayRollback(command.getTransactionId());\n break;\n }\n }\n catch (IOException e) {\n log.error(\"Recovery Failure: Could not replay: \" + c + \", reason: \" + e, e);\n }\n }\n break;\n case JournalTrace.DATA_STRUCTURE_TYPE:\n JournalTrace trace = (JournalTrace) c;\n log.debug(\"TRACE Entry: \" + trace.getMessage());\n break;\n default:\n log.error(\"Unknown type of record in transaction log which will be discarded: \" + c);\n }\n }\n }\n \n RecordLocation location = writeTraceMessage(\"RECOVERED\", true);\n journal.setMark(location, true);\n \n log.info(\"Journal Recovered: \" + transactionCounter + \" message(s) in transactions recovered.\");\n }", "public void entryAdded(EntryEvent<Identifier, SystemMetadata> event) {\n\n if (ComponentActivationUtility.replicationIsActive()) {\n log.info(\"Received entry added event on the hzSystemMetadata map for pid: \"\n + event.getKey().getValue());\n\n if (isAuthoritativeReplicaValid(event.getValue())) {\n createReplicationTask(event.getKey());\n } else {\n log.info(\"Authoritative replica is not valid, not queueing to replication for pid: \"\n + event.getKey().getValue());\n }\n }\n }", "@Override\n public void run() {\n final long currentTimeMillis = System.currentTimeMillis();\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(heartbeat + \" HeartbeatProcessor ...\");\n }\n if (!heartbeat.getSkillState().equals(State.READY)) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"No heartbeat because this skill has not yet joined the network.\");\n }\n return;\n }\n\n // send heartbeats after waiting at least the specified duration\n final long outboundHeartbeatReceivedThresholdMillis = currentTimeMillis - OUTBOUND_HEARTBEAT_PERIOD_MILLIS;\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\" \" + outboundParentHeartbeatInfo);\n }\n if (outboundParentHeartbeatInfo.heartbeatSentMillis < outboundHeartbeatReceivedThresholdMillis) {\n sendHeartbeat(outboundParentHeartbeatInfo, heartbeat);\n }\n }", "@Override\n public synchronized void Notify(WatchedEvent e) {\n\n switch (e.getType()) {\n case NodeDeleted:\n if (e.getPath().equals(buildPath(ROOT, watchedLeader))) {\n LOG.info(\"[Notify] The leader before me has died I must find a new Leader!\");\n // the leader before us has died, start an election\n runLeaderElection(zkService);\n }\n break;\n }\n }", "@Test\n public void testAuditLogger() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n fs.setTimes(new Path(\"/\"), time, time);\n Assert.assertEquals(1, TestAuditLogger.DummyAuditLogger.logCount);\n } finally {\n cluster.shutdown();\n }\n }", "private void startFresh() throws JournalException {\n try {\n this.log = this.node.getWriter(this.filename, false);\n } catch (IOException e) {\n throw new JournalException(\"Failed to create initial log file.\");\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tStaticString.information = null;// 判断回复信息之间清空之前信息\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\t\tSocketConnet.getInstance().communication(888,new String[]{mLogsIndexNumber});\r\n\t\t\t\tif (ReplyParser.waitReply()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void run() {\n\t\tLOG.info(\"consumer thread started for topic: \" + topic + \" partition: \" + partition);\n\t\tSimpleConsumer consumer = getConsumer(leadBroker);\n\t\tlong readOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.EarliestTime(),\n\t\t\t\tclientName);\n\n\t\tint numErrors = 0;\n\t\twhile (!shutdown) {\n\t\t\tif (consumer == null) {\n\t\t\t\tconsumer = getConsumer(leadBroker);\n\t\t\t}\n\t\t\tFetchRequest req = new FetchRequestBuilder().clientId(clientName)\n\t\t\t\t\t.addFetch(topic, partition, readOffset, timeOut).build();\n\t\t\tFetchResponse fetchResponse = consumer.fetch(req);\n\n\t\t\tif (fetchResponse.hasError()) {\n\t\t\t\tnumErrors++;\n\t\t\t\t// Something went wrong!\n\t\t\t\tshort code = fetchResponse.errorCode(topic, partition);\n\t\t\t\tLOG.warn(\"Error fetching data from the Broker:\" + leadBroker + \" Reason: \" + code);\n\t\t\t\tif (numErrors > 5) //TODO: do i want this?? maybe throw up\n\t\t\t\t\tbreak;\n\t\t\t\tif (code == ErrorMapping.OffsetOutOfRangeCode()) {\n\t\t\t\t\t// We asked for an invalid offset. For simple case ask for\n\t\t\t\t\t// the last element to reset\n\t\t\t\t\treadOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.LatestTime(),\n\t\t\t\t\t\t\tclientName);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconsumer.close();\n\t\t\t\tconsumer = null;\n\t\t\t\tleadBroker = findNewLeader(leadBroker, topic, partition);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnumErrors = 0;\n\n\t\t\tlong numRead = 0;\n\t\t\tfor (MessageAndOffset messageAndOffset : fetchResponse.messageSet(topic,partition)) {\n\t\t\t\tlong currentOffset = messageAndOffset.offset();\n\t\t\t\tif (currentOffset < readOffset) {\n\t\t\t\t\tLOG.info(\"Found an old offset: \" + currentOffset + \" Expecting: \" + readOffset);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\treadOffset = messageAndOffset.nextOffset();\n\t\t\t\ttry {\n\t\t\t\t\tLOG.debug(\"##################### received a message! on topic: \" + topic + \" partition \" + partition);\n\t\t\t\t\tmessages.put(new Message<String, String>(\n\t\t\t\t\t\t\tconvertBytesToString(messageAndOffset.message().key()),\n\t\t\t\t\t\t\tconvertBytesToString(messageAndOffset.message().payload())));\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\tLOG.error(\"message failure to decode bytes into UTF-8 format.\",e);\n\t\t\t\t\tthrow new RuntimeException(\"Cannot decode the messages into UTF-8 format\",e);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tLOG.error(\"interupted waiting to add to the queue\",e);\n\t\t\t\t\tthrow new RuntimeException(\"Cannot add to my own queue\");\n\t\t\t\t}\n\t\t\t\tnumRead++;\n\t\t\t}\n\n\t\t\tif (numRead == 0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException ie) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (consumer != null)\n\t\t\tconsumer.close();\n\t\tLOG.info(\"shutdown complete\");\n\t}", "@Test\n public void testReplicateEntriesForHFiles() throws Exception {\n Path dir = TestReplicationSink.TEST_UTIL.getDataTestDirOnTestFS(\"testReplicateEntries\");\n Path familyDir = new Path(dir, Bytes.toString(TestReplicationSink.FAM_NAME1));\n int numRows = 10;\n List<Path> p = new ArrayList<>(1);\n final String hfilePrefix = \"hfile-\";\n // 1. Generate 25 hfile ranges\n Random rng = new SecureRandom();\n Set<Integer> numbers = new HashSet<>();\n while ((numbers.size()) < 50) {\n numbers.add(rng.nextInt(1000));\n } \n List<Integer> numberList = new ArrayList<>(numbers);\n Collections.sort(numberList);\n Map<String, Long> storeFilesSize = new HashMap<>(1);\n // 2. Create 25 hfiles\n Configuration conf = TestReplicationSink.TEST_UTIL.getConfiguration();\n FileSystem fs = dir.getFileSystem(conf);\n Iterator<Integer> numbersItr = numberList.iterator();\n for (int i = 0; i < 25; i++) {\n Path hfilePath = new Path(familyDir, (hfilePrefix + i));\n HFileTestUtil.createHFile(conf, fs, hfilePath, TestReplicationSink.FAM_NAME1, TestReplicationSink.FAM_NAME1, Bytes.toBytes(numbersItr.next()), Bytes.toBytes(numbersItr.next()), numRows);\n p.add(hfilePath);\n storeFilesSize.put(hfilePath.getName(), fs.getFileStatus(hfilePath).getLen());\n }\n // 3. Create a BulkLoadDescriptor and a WALEdit\n Map<byte[], List<Path>> storeFiles = new HashMap<>(1);\n storeFiles.put(TestReplicationSink.FAM_NAME1, p);\n org.apache.hadoop.hbase.wal.WALEdit edit = null;\n WALProtos.BulkLoadDescriptor loadDescriptor = null;\n try (Connection c = ConnectionFactory.createConnection(conf);RegionLocator l = c.getRegionLocator(TestReplicationSink.TABLE_NAME1)) {\n HRegionInfo regionInfo = l.getAllRegionLocations().get(0).getRegionInfo();\n loadDescriptor = ProtobufUtil.toBulkLoadDescriptor(TestReplicationSink.TABLE_NAME1, UnsafeByteOperations.unsafeWrap(regionInfo.getEncodedNameAsBytes()), storeFiles, storeFilesSize, 1);\n edit = org.apache.hadoop.hbase.wal.WALEdit.createBulkLoadEvent(regionInfo, loadDescriptor);\n }\n List<WALEntry> entries = new ArrayList<>(1);\n // 4. Create a WALEntryBuilder\n WALEntry.Builder builder = TestReplicationSink.createWALEntryBuilder(TestReplicationSink.TABLE_NAME1);\n // 5. Copy the hfile to the path as it is in reality\n for (int i = 0; i < 25; i++) {\n String pathToHfileFromNS = new StringBuilder(100).append(TestReplicationSink.TABLE_NAME1.getNamespaceAsString()).append(SEPARATOR).append(Bytes.toString(TestReplicationSink.TABLE_NAME1.getName())).append(SEPARATOR).append(Bytes.toString(loadDescriptor.getEncodedRegionName().toByteArray())).append(SEPARATOR).append(Bytes.toString(TestReplicationSink.FAM_NAME1)).append(SEPARATOR).append((hfilePrefix + i)).toString();\n String dst = ((TestReplicationSink.baseNamespaceDir) + (Path.SEPARATOR)) + pathToHfileFromNS;\n Path dstPath = new Path(dst);\n FileUtil.copy(fs, p.get(0), fs, dstPath, false, conf);\n }\n entries.add(builder.build());\n try (ResultScanner scanner = TestReplicationSink.table1.getScanner(new Scan())) {\n // 6. Assert no existing data in table\n Assert.assertEquals(0, scanner.next(numRows).length);\n }\n // 7. Replicate the bulk loaded entry\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(edit.getCells().iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n try (ResultScanner scanner = TestReplicationSink.table1.getScanner(new Scan())) {\n // 8. Assert data is replicated\n Assert.assertEquals(numRows, scanner.next(numRows).length);\n }\n // Clean up the created hfiles or it will mess up subsequent tests\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.i(\"imi\", \"Delete Log Start\");\n\t\t\t\tLog.i(\"imi\",mVIPIncomingNumber);\n\t\t\t\tif(deleteLastCallLogEntry(mVIPIncomingNumber))\n\t\t\t\t\tLog.i(\"imi\",\"true\");\n\t\t\t\telse\n\t\t\t\t\tLog.i(\"imi\",\"false\");\n\t\t\t}", "private void runRemotely() {\n if (!isDas())\n return;\n\n List<Server> remoteServers = getRemoteServers();\n\n if (remoteServers.isEmpty())\n return;\n\n try {\n ParameterMap paramMap = new ParameterMap();\n paramMap.set(\"monitor\", \"true\");\n paramMap.set(\"DEFAULT\", pattern);\n ClusterOperationUtil.replicateCommand(\"get\", FailurePolicy.Error, FailurePolicy.Warn, remoteServers,\n context, paramMap, habitat);\n }\n catch (Exception ex) {\n setError(Strings.get(\"admin.get.monitoring.remote.error\", getNames(remoteServers)));\n }\n }", "public static void main(String[] args) {\n Runnable taskUDP = () -> {\n try {\n RMListener();\n } catch (Exception e) {\n e.printStackTrace();\n }\n };\n new Thread(taskUDP).start();\n System.out.println(\"Replica Manager3 is ready and listening\");\n }", "@Override\n public void preStart() {\n cluster.subscribe(getSelf(), RoleLeaderChanged.class);\n }", "public void leaderElection () {\n leaderID++;\n if (leaderID > numServers) {\n leaderID = 1;\n }\n if (isLeader()) {\n leader = new Leader(combine(index, Constants.LEADER), this,\n acceptors, replicas);\n leader.start();\n } else {\n leader = null;\n }\n }", "private void recover() throws JournalException {\n if (!Utility.fileExists(this.node, this.filename)) {\n // no log file to recover, just start fresh\n startFresh();\n } else {\n PersistentStorageReader reader = null;\n try {\n reader = node.getReader(this.filename);\n } catch (IOException e) {\n throw new JournalException(\"Failed to open log file: \" \n + this.filename + \" for recovery.\");\n }\n\n if (reader != null) {\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n if (line.equals(COMPLETE_TOKEN)) {\n this.pendingOps.poll();\n } else {\n try {\n Serializable obj = (Serializable)Serialization.decode(Utility.fromBase64(line));\n this.pendingOps.offer(obj);\n } catch (Exception e) {\n throw new JournalException(\"Error deserializing on recovery.\");\n }\n }\n }\n } catch (IOException e) {\n throw new JournalException(\"Error while reading from recovery log.\");\n }\n } else {\n throw new JournalException(\"Failed to open log file: \"\n + this.filename + \" for recovery.\");\n }\n try {\n this.log = this.node.getWriter(this.filename, true);\n } catch (IOException e) {\n throw new JournalException(\"Failed to open log file.\");\n }\n }\n }", "@Test\n public void testRelinquishRole()\n throws IOException, InterruptedException, CloneNotSupportedException {\n LightWeightNameNode hdfs1 =\n new LightWeightNameNode(new HdfsLeDescriptorFactory(),\n DFS_LEADER_CHECK_INTERVAL_IN_MS, DFS_LEADER_MISSED_HB_THRESHOLD,\n TIME_PERIOD_INCREMENT, HTTP_ADDRESS, RPC_ADDRESS);\n nnList.add(hdfs1);\n LightWeightNameNode hdfs2 =\n new LightWeightNameNode(new HdfsLeDescriptorFactory(),\n DFS_LEADER_CHECK_INTERVAL_IN_MS, DFS_LEADER_MISSED_HB_THRESHOLD,\n TIME_PERIOD_INCREMENT, HTTP_ADDRESS, RPC_ADDRESS);\n nnList.add(hdfs2);\n\n hdfs1.getLeaderElectionInstance().waitActive();\n hdfs2.getLeaderElectionInstance().waitActive();\n long hdfs1Id = hdfs1.getLeCurrentId();\n long hdfs2Id = hdfs2.getLeCurrentId();\n assertTrue(\"Leader Check Failed \", hdfs1.isLeader() == true);\n assertTrue(\"Leader Check Failed \", hdfs2.isLeader() == false);\n\n\n // relinquish role\n hdfs1.getLeaderElectionInstance().relinquishCurrentIdInNextRound();\n assertTrue(\"Leader Check Failed \", hdfs1.isLeader() == false);\n Thread.sleep(\n DFS_LEADER_CHECK_INTERVAL_IN_MS * (DFS_LEADER_MISSED_HB_THRESHOLD + 1));\n long hdfs1IdNew = hdfs1.getLeCurrentId();\n long hdfs2IdNew = hdfs2.getLeCurrentId();\n assertTrue(\"Leader Check Failed \", hdfs1.isLeader() == false);\n assertTrue(\"Leader Check Failed \", hdfs2.isLeader() == true);\n\n assertTrue(\"ID Check Failed \", hdfs1Id != hdfs1IdNew);\n assertTrue(\"ID Check Failed \", hdfs2Id == hdfs2IdNew);\n\n\n }", "public void run() {\n\n ConfigFileURLResolver resolver = new ConfigFileURLResolver(); \n \n try {\n this._domainFile = resolver.getFileURL(this._domainFilename);\n } catch (SessionException sesEx) {\n this._logger.error(ERROR_TAG + \"Error occurred while loading login file: \"+sesEx.getMessage());\n ++this._errorCount;\n return;\n }\n \n //--------------------------\n \n //try to create login file instance\n try {\n _loginReader = new LoginFile();\n } catch (IOException ioEx) {\n this._logger.error(ERROR_TAG + \"Error occurred while loading login file\");\n ++this._errorCount;\n return;\n }\n \n //--------------------------\n \n //try to create encrypter instance\n try {\n _encrypter = new PublicKeyEncrypter();\n } catch (IOException ioEx) {\n this._logger.error(ERROR_TAG + \"Error occurred while loading encrypter\");\n //ioEx.printStackTrace();\n this._logger.trace(null, ioEx);\n ++this._errorCount;\n return;\n }\n \n //--------------------------\n \n //create reconnect throttle \n \n _throttle = new ReconnectThrottle();\n \n //--------------------------\n \n //install shutdown handler to hook\n //Runtime.getRuntime().addShutdownHook(new ShutDownHandler());\n \n //check action id\n if (this._actionId.equals(Constants.NOOPERATION)) {\n this._logger.error(ERROR_TAG + \"Unrecognized user operation: \"\n + this._userOperation);\n ++this._errorCount;\n return;\n }\n\n boolean parseError = false;\n\n try {\n //construct parser and parser\n this._parser.parse(this._actionId, this._args);\n } catch (ParseException pEx) {\n parseError = true;\n\n //if no arguments were provided and exception is missing args,\n //then just send message to debug and rely on help message\n if (this._args.length == 0 && \n pEx.getErrorOffset() == UtilCmdParser.CODE_MISSING_ARGUMENTS)\n this._logger.debug(ERROR_TAG + pEx.getMessage());\n else\n this._logger.error(ERROR_TAG + pEx.getMessage());\n this._logger.debug(null, pEx);\n } catch (Exception ex) {\n parseError = true;\n this._logger.error(ERROR_TAG + ex.getMessage());\n this._logger.debug(null, ex);\n }\n\n if (parseError) {\n //attempt to logout\n try {\n this._logout();\n } catch (Exception le) {\n this._logger.debug(null, le);\n }\n ++this._errorCount;\n }\n\n //-------------------------\n\n boolean help = parseError || \n (this._parser == null) || this._parser.printHelp();\n\n //if help is true, print usage and return\n if (help) {\n this._logger.info(this._getUsage());\n return;\n }\n\n \n //-------------------------\n\n// FileEventHandlerManager fehManager = new FileEventHandlerManager(\n// this._argTable, this._actionId); \n// this._fileEventHandlerSet = fehManager.getFileEventHandlers();\n \n //-------------------------\n\n this._using = (this._parser.getOptionsFilename() != null);\n\n try {\n //iterate over number of argument sets, processing each\n\n Hashtable argTable;\n this._parser.reset();\n int iterations = this._parser.iterations();\n for (int i = 0; i < iterations; ++i) {\n argTable = (Hashtable) this._parser.getCurrentArguments();\n \n try {\n _process(argTable);\n } catch (SessionException sesEx) {\n this._logger.error(ERROR_TAG + sesEx.getMessage());\n this._logger.debug(null, sesEx);\n try {\n this._logout();\n } catch (Exception le) {\n this._logger.debug(null, le);\n }\n ++this._errorCount;\n //return;\n }\n this._parser.advance();\n }\n\n //-------------------------\n\n //logout successfully\n this._logout();\n\n //-------------------------\n\n } catch (Exception ex) {\n this._logger.error(ERROR_TAG + ex.getMessage());\n this._logger.debug(null, ex);\n try {\n this._logout();\n } catch (Exception le) {\n this._logger.debug(null, le);\n }\n ++this._errorCount;\n return;\n }\n\n }", "public void testSimpleMasterEpochHandler() throws Exception {\n final ASCIIString CELL_ID = new ASCIIString(\"testcell\");\n\n final AtomicReference<Flease> result = new AtomicReference();\n\n SimpleMasterEpochHandler meHandler = new SimpleMasterEpochHandler(\"/tmp/xtreemfs-test/\");\n Service.State svcState = meHandler.startAndWait();\n if (svcState != Service.State.RUNNING) {\n LOG.error(\"Unable to start Master Epoch Handler\", meHandler.failureCause());\n }\n\n FleaseStage fs = new FleaseStage(cfg, \"/tmp/xtreemfs-test/\", new FleaseMessageSenderInterface() {\n\n @Override\n public void sendMessage(FleaseMessage message, InetSocketAddress recipient) {\n //ignore me\n }\n }, true, new FleaseViewChangeListenerInterface() {\n\n @Override\n public void viewIdChangeEvent(ASCIIString cellId, int viewId) {\n }\n },new FleaseStatusListener() {\n\n @Override\n public void statusChanged(ASCIIString cellId, Flease lease) {\n // System.out.println(\"state change: \"+cellId+\" owner=\"+lease.getLeaseHolder());\n synchronized (result) {\n result.set(new Flease(cellId, lease.getLeaseHolder(), lease.getLeaseTimeout_ms(),lease.getMasterEpochNumber()));\n result.notify();\n }\n }\n\n @Override\n public void leaseFailed(ASCIIString cellId, FleaseException error) {\n MasterEpochTest.fail(error.toString());\n }\n }, meHandler);\n\n FleaseMessage msg = new FleaseMessage(FleaseMessage.MsgType.EVENT_RESTART);\n msg.setCellId(CELL_ID);\n\n fs.startAndWait();\n\n fs.openCell(CELL_ID, new ArrayList(),true);\n\n synchronized(result) {\n if (result.get() == null)\n result.wait(1000);\n if (result.get() == null)\n fail(\"timeout!\");\n }\n\n assertEquals(result.get().getLeaseHolder(),cfg.getIdentity());\n assertEquals(1, result.get().getMasterEpochNumber());\n\n FleaseFuture f = fs.closeCell(CELL_ID, false);\n f.get();\n\n fs.stopAndWait();\n meHandler.stopAndWait();\n\n Thread.sleep(12000);\n\n //restart\n meHandler = new SimpleMasterEpochHandler(\"/tmp/xtreemfs-test/\");\n if (meHandler.startAndWait() != Service.State.RUNNING) {\n LOG.error(\"Couldnt start meHandler\", meHandler.failureCause());\n }\n\n fs = new FleaseStage(cfg, \"/tmp/xtreemfs-test/\", new FleaseMessageSenderInterface() {\n\n @Override\n public void sendMessage(FleaseMessage message, InetSocketAddress recipient) {\n //ignore me\n }\n }, true, new FleaseViewChangeListenerInterface() {\n\n @Override\n public void viewIdChangeEvent(ASCIIString cellId, int viewId) {\n }\n },new FleaseStatusListener() {\n\n @Override\n public void statusChanged(ASCIIString cellId, Flease lease) {\n // System.out.println(\"state change: \"+cellId+\" owner=\"+lease.getLeaseHolder());\n synchronized (result) {\n result.set(new Flease(cellId, lease.getLeaseHolder(), lease.getLeaseTimeout_ms(),lease.getMasterEpochNumber()));\n result.notify();\n }\n }\n\n @Override\n public void leaseFailed(ASCIIString cellId, FleaseException error) {\n MasterEpochTest.fail(error.toString());\n }\n }, meHandler);\n\n fs.startAndWait();\n\n result.set(null);\n\n fs.openCell(CELL_ID, new ArrayList(), true);\n\n synchronized(result) {\n if (result.get() == null)\n result.wait(1000);\n if (result.get() == null)\n fail(\"timeout!\");\n }\n\n assertEquals(result.get().getLeaseHolder(),cfg.getIdentity());\n assertEquals(result.get().getMasterEpochNumber(),2);\n\n fs.stopAndWait();\n\n }", "private void diffusionPhase() {\n if (prevMaxTimestamp == -1 || currMaxTimestamp == -1 || prevMaxTimestamp == currMaxTimestamp) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n if (client.player.getVs() == null\n || inboxHistory.get(father).getLatestTimestamp() > client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = (client.player.getVs() == null) ? availableDescriptionsAtFather : (client.player.getVs()\n .getAvailableDescriptions(prevMaxTimestamp)).getDelta(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(prevMaxTimestamp, currMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n if (client.player.getVs() != null) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n }\n alreadyRequested.update(requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "void takeLeadership() throws Exception;", "public void run(String topic, int partition) {\n PartitionMetadata metadata = findLeader(seedBrokers, port, topic, partition);\n if (metadata == null) {\n LOGGER.error(\"Can't find metadata for Topic and Partition\");\n return;\n }\n if (metadata.leader() == null) {\n LOGGER.error(\"Can't find Leader for Topic and Partition\");\n return;\n }\n String leadBroker = metadata.leader().host();\n String clientName = \"Client_\" + topic + \"_\" + partition;\n\n SimpleConsumer consumer = new SimpleConsumer(leadBroker, port, 100000, 64 * 1024, clientName);\n\n long readOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.EarliestTime(), clientName);\n\n int numErrors = 0;\n while (true) {\n if (consumer == null) {\n consumer = new SimpleConsumer(leadBroker, port, 100000, 64 * 1024, clientName);\n }\n FetchRequest req = new FetchRequestBuilder()\n .clientId(clientName)\n .addFetch(topic, partition, readOffset, 100000) // Note: this fetchSize of 100000 might need to be increased if large batches are written to Kafka\n .build();\n FetchResponse fetchResponse = consumer.fetch(req);\n\n if (fetchResponse.hasError()) {\n numErrors++;\n short code = fetchResponse.errorCode(topic, partition);\n\n LOGGER.error(\"Error fetching data from the Broker:\" + leadBroker + \" Reason: \" + code);\n if (numErrors > 5) break;\n if (code == ErrorMapping.OffsetOutOfRangeCode()) {\n // We asked for an invalid offset. For simple case ask for the last element to reset\n readOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.LatestTime(), clientName);\n continue;\n }\n consumer.close();\n consumer = null;\n leadBroker = findNewLeader(leadBroker, topic, partition, port);\n continue;\n }\n numErrors = 0;\n\n long numRead = 0;\n for (MessageAndOffset messageAndOffset : fetchResponse.messageSet(topic, partition)) {\n long currentOffset = messageAndOffset.offset();\n if (currentOffset < readOffset) {\n LOGGER.error(\"Found an old offset: \" + currentOffset + \" Expecting: \" + readOffset);\n continue;\n }\n readOffset = messageAndOffset.nextOffset();\n ByteBuffer payload = messageAndOffset.message().payload();\n\n byte[] bytes = new byte[payload.limit()];\n payload.get(bytes);\n\n handleMessage(messageAndOffset.offset(), bytes);\n numRead++;\n }\n\n if (numRead == 0) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n LOGGER.error(\"Unable to sleep\", e);\n }\n }\n }\n consumer.close();\n }", "@Test\n public void testReplicatedClient()\n {\n generateEvents(\"repl-client-test\");\n checkEvents(true, false);\n }", "public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }", "@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }", "private void doRecoveryRead() {\n if (!promise.isDone()) {\n startEntryToRead = endEntryToRead + 1;\n endEntryToRead = endEntryToRead + clientCtx.getConf().recoveryReadBatchSize;\n new RecoveryReadOp(lh, clientCtx, startEntryToRead, endEntryToRead, this, null)\n .initiate();\n }\n }", "public void start() {\n logger.info(\"LeaderSelector start racing for leadership\");\n leaderElection();\n }", "@Override\n public void run() {\n String message = router.toString() + \"/\" + router.toString() + \"/\" + 0 + \"/\" + router.getPort() + \"/\";\n Set<Map.Entry<Node, Double>> neighbours = router.getNeighbours().entrySet();\n for (Map.Entry<Node, Double> m : neighbours) {\n Node n = m.getKey();\n message += n.toString() + \" \" + m.getValue() + \" \" + n.getPort() + \"/\";\n }\n buffer.initLSA(router.toString(), message);\n\n Processor p = new Processor(network, processing_buffer, router, nodeSequence);\n new Thread(p).start();\n\n for (Node n : router.getNeighbours().keySet()) {\n heartBeat.put(n.toString(), 0);\n }\n\n receive();\n }", "private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tRunRecMaintenance maintain = new RunRecMaintenance();\n\t\t\t\t\t\tmaintain.startAutomaticMaintain();\n\t\t\t\t\t}", "public static void main(String[] args) {\n Properties props = new Properties();\n props.put(\"bootstrap.servers\", kafkaServers);\n props.put(\"group.id\", eventName);\n props.put(\"enable.auto.commit\", \"false\");\n props.put(\"max.block.ms\", \"5000\");\n props.put(\"key.deserializer\", \"org.apache.kafka.common.serialization.StringDeserializer\");\n props.put(\"value.deserializer\", \"org.apache.kafka.common.serialization.StringDeserializer\");\n\n\n // Connect to Kafka\n KafkaConsumer<String, String> consumer = new KafkaConsumer<>(props);\n log.info(String.format(\"Connecting to Kafka servers: %s\", kafkaServers));\n\n // Subscribe to topic\n consumer.subscribe(Arrays.asList(kafkaTopic));\n log.info(String.format(\"Subscribing to topic: %s\", kafkaTopic));\n log.info(String.format(\"Group id: %s\", eventName));\n\n // Create buffer and folder variables\n List<ConsumerRecord<String, String>> buffer = new ArrayList<>();\n String folder = new SimpleDateFormat(pattern).format(new Date());\n\n log.info(String.format(\"Listening for %s: %s\", matchEnvKey, String.join(\", \", matchConditions)));\n\n // Create shutdown hook to save tweets read by current worker and commit results to Kafka\n String finalFolder = folder;\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n log.info(\"Finishing process...Done\");\n saveTweets(consumer, buffer, finalFolder);\n }));\n SignalHandler handler = sig -> {\n log.info(\"Finishing process...\");\n saveTweets(consumer, buffer, finalFolder);\n System.exit(1);\n };\n Signal.handle(new Signal(\"INT\"), handler);\n Signal.handle(new Signal(\"TERM\"), handler);\n\n // Tweet matching algorithm selection\n TweetMatchStrategy tweetMatch;\n switch (matchEnvKey) {\n case \"FOLLOWS\":\n tweetMatch = new TweetFollowStrategy();\n break;\n case \"COVID19\":\n tweetMatch = new TweetCovid19Strategy();\n break;\n case \"KEYWORDS\":\n default:\n tweetMatch = new TweetKeywordStrategy();\n break;\n }\n\n while (true) {\n\n // Check if Kafka connection is up. Kill system otherwise.\n try {\n consumer.listTopics(Duration.ofMillis(1000));\n } catch (TimeoutException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n // Poll for records from queue\n ConsumerRecords<String, String> records = consumer.poll(Duration.ofMillis(pollDurationMs));\n\n // Process all messages\n for (ConsumerRecord<String, String> record : records) {\n for (String match : matchConditions) {\n boolean isMatch = tweetMatch.isTweetMatch(record.value(), match);\n if (isMatch) {\n buffer.add(record);\n\n // Check if we need to save tweets (if batchsize has been reached or if we need to dump it because we are changing folder\n folder = checkFileCreation(consumer, buffer, folder);\n break;\n }\n }\n }\n folder = checkFileCreation(consumer, buffer, folder);\n }\n\n }", "private void updateLog(TxnContext txnContext, List<SMREntry> smrEntries, UUID streamId) {\n ReplicationMetadata metadata = metadataManager.queryReplicationMetadata(txnContext, session);\n long persistedTopologyConfigId = metadata.getTopologyConfigId();\n long persistedSnapshotStart = metadata.getLastSnapshotStarted();\n long persistedSequenceNum = metadata.getLastSnapshotTransferredSeqNumber();\n\n if (topologyConfigId != persistedTopologyConfigId || srcGlobalSnapshot != persistedSnapshotStart) {\n log.warn(\"Skip processing opaque entry. Current topologyConfigId={}, srcGlobalSnapshot={}, currentSeqNum={}, \" +\n \"persistedTopologyConfigId={}, persistedSnapshotStart={}, persistedLastSequenceNum={}\", topologyConfigId,\n srcGlobalSnapshot, recvSeq, persistedTopologyConfigId, persistedSnapshotStart, persistedSequenceNum);\n return;\n }\n\n metadataManager.updateReplicationMetadataField(txnContext, session, ReplicationMetadata.TOPOLOGYCONFIGID_FIELD_NUMBER, topologyConfigId);\n metadataManager.updateReplicationMetadataField(txnContext, session, ReplicationMetadata.LASTSNAPSHOTSTARTED_FIELD_NUMBER, srcGlobalSnapshot);\n\n for (SMREntry smrEntry : smrEntries) {\n txnContext.logUpdate(streamId, smrEntry, replicationContext.getConfig(session).getDataStreamToTagsMap().get(streamId));\n }\n }", "@Override\n public void process(ChannelHandlerContext ctx, Node node, Message message) {\n if (logger.isTraceEnabled()) {\n logger.trace(\" receive heartbeat, host: {}, seq: {}\", node, message.getSeq());\n }\n }", "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 }", "int insertSelective(H5AppDownloadLog record);", "public void migrateLogsFromRcToDb();", "@Override public void run() {\n\t\t\t\tsaveLogCache();\n\t\t\t\tserverToken = null;\n\t\t\t\toffline = true;\n\t\t\t}", "@Test\n public void testRedaction() {\n Properties logProps = new Properties(defaults);\n logProps.setProperty(PRE + \"redactor.policy.rules\",\n resourcePath + \"/real-1.json\");\n PropertyConfigurator.configure(logProps);\n Logger log = Logger.getLogger(RedactorAppenderTest.class);\n\n log.info(\"WHERE x=123-45-6789\");\n String out = getAndResetLogOutput();\n Assert.assertEquals(\"WHERE x=XXX-XX-XXXX\", out);\n\n log.info(\"x=123-45-6789 WHERE\");\n out = getAndResetLogOutput();\n Assert.assertEquals(\"x=XXX-XX-XXXX WHERE\", out);\n\n log.info(\"WHERE x=123-45-6789 or y=000-00-0000\");\n out = getAndResetLogOutput();\n Assert.assertEquals(\"WHERE x=XXX-XX-XXXX or y=XXX-XX-XXXX\", out);\n\n log.info(\"x=1234-1234-1234-1234 or y=000-00-0000\");\n out = getAndResetLogOutput();\n Assert.assertEquals(\"x=XXXX-XXXX-XXXX-XXXX or y=XXX-XX-XXXX\", out);\n\n log.info(\"xxx password=\\\"hi\\\"\");\n out = getAndResetLogOutput();\n Assert.assertEquals(\"xxx password=xxxxx\", out);\n\n log.info(\"Mail me at myoder@cloudera.com, dude.\");\n out = getAndResetLogOutput();\n Assert.assertEquals(\"Mail me at email@redacted.host, dude.\", out);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (!terminateThread.get()) {\n\t\t\t\t\tComponentLogger.getInstance().log(LogMessageType.LOAD_BALANCER_PROMPTED_RE_ELECTION);\n\t\t\t\t\tSystem.out.println(\"Prompting for a re-election\");\n\t\t\t\t\tinitiatePreElection();\n\t\t\t\t}\n\t\t\t}", "private void guardedTakeLeadership(final CuratorFramework curator) throws Exception {\n\n try {\n callback.becameLeader().get(30, TimeUnit.SECONDS);\n } catch (final Exception e) {\n throw new RuntimeException(\"Failed to setup new leader\", e);\n }\n\n final PathChildrenCache members =\n new PathChildrenCache(curator, MEMBERS, false, false, executor);\n\n members.getListenable().addListener(new PathChildrenCacheListener() {\n @Override\n public void childEvent(\n final CuratorFramework client, final PathChildrenCacheEvent event\n ) throws Exception {\n switch (event.getType()) {\n case CHILD_ADDED:\n callback.memberAdded(decodeMemberId(event.getData()));\n break;\n case CHILD_REMOVED:\n callback.memberRemoved(decodeMemberId(event.getData()));\n break;\n default:\n log.info(\"event: {}\", event);\n break;\n }\n }\n\n private String decodeMemberId(final ChildData data) {\n final String path = data.getPath();\n\n final int lastSlash = path.lastIndexOf('/');\n\n if (lastSlash < 0) {\n throw new IllegalArgumentException(\"illegal path: \" + path);\n }\n\n return path.substring(lastSlash + 1);\n }\n });\n\n members.start();\n\n try {\n callback.takeLeadership();\n } catch (final Exception e) {\n log.error(\"Leadership process threw exception\", e);\n }\n\n members.close();\n }", "public void run() {\n\t\t\twhile(true){\n\t\t\t\t//recieve new state\n\t \t \t\t//StoryFactory.getInstance().setAllLogs((ArrayList<ArrayList<UserStory>>) inputFromServer.readObject());\n\t\t\t}\t\t \n\t\t}", "private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}", "public Vote lookForLeader() throws InterruptedException {\n try {\n self.jmxLeaderElectionBean = new LeaderElectionBean();\n MBeanRegistry.getInstance().register(self.jmxLeaderElectionBean, self.jmxLocalPeerBean);\n } catch (Exception e) {\n LOG.warn(\"Failed to register with JMX\", e);\n self.jmxLeaderElectionBean = null;\n }\n\n self.start_fle = Time.currentElapsedTime();\n try {\n /*\n * The votes from the current leader election are stored in recvset. In other words, a vote v is in recvset\n * if v.electionEpoch == logicalclock. The current participant uses recvset to deduce on whether a majority\n * of participants has voted for it.\n */\n Map<Long, Vote> recvset = new HashMap<>();\n\n /*\n * The votes from previous leader elections, as well as the votes from the current leader election are\n * stored in outofelection. Note that notifications in a LOOKING state are not stored in outofelection.\n * Only FOLLOWING or LEADING notifications are stored in outofelection. The current participant could use\n * outofelection to learn which participant is the leader if it arrives late (i.e., higher logicalclock than\n * the electionEpoch of the received notifications) in a leader election.\n */\n Map<Long, Vote> outofelection = new HashMap<>();\n\n int notTimeout = minNotificationInterval;\n\n synchronized (this) {\n logicalclock.incrementAndGet();\n updateProposal(getInitId(), getInitLastLoggedZxid(), getPeerEpoch());\n }\n\n LOG.info(\n \"New election. My id = {}, proposed zxid=0x{}\",\n self.getMyId(),\n Long.toHexString(proposedZxid));\n sendNotifications();\n\n SyncedLearnerTracker voteSet = null;\n\n /*\n * Loop in which we exchange notifications until we find a leader\n */\n\n while ((self.getPeerState() == ServerState.LOOKING) && (!stop)) {\n /*\n * Remove next notification from queue, times out after 2 times\n * the termination time\n */\n Notification n = recvqueue.poll(notTimeout, TimeUnit.MILLISECONDS);\n\n /*\n * Sends more notifications if haven't received enough.\n * Otherwise processes new notification.\n */\n if (n == null) {\n if (manager.haveDelivered()) {\n sendNotifications();\n } else {\n manager.connectAll();\n }\n\n /*\n * Exponential backoff\n */\n notTimeout = Math.min(notTimeout << 1, maxNotificationInterval);\n\n /*\n * When a leader failure happens on a master, the backup will be supposed to receive the honour from\n * Oracle and become a leader, but the honour is likely to be delay. We do a re-check once timeout happens\n *\n * The leader election algorithm does not provide the ability of electing a leader from a single instance\n * which is in a configuration of 2 instances.\n * */\n if (self.getQuorumVerifier() instanceof QuorumOracleMaj\n && self.getQuorumVerifier().revalidateVoteset(voteSet, notTimeout != minNotificationInterval)) {\n setPeerState(proposedLeader, voteSet);\n Vote endVote = new Vote(proposedLeader, proposedZxid, logicalclock.get(), proposedEpoch);\n leaveInstance(endVote);\n return endVote;\n }\n\n LOG.info(\"Notification time out: {} ms\", notTimeout);\n\n } else if (validVoter(n.sid) && validVoter(n.leader)) {\n /*\n * Only proceed if the vote comes from a replica in the current or next\n * voting view for a replica in the current or next voting view.\n */\n switch (n.state) {\n case LOOKING:\n if (getInitLastLoggedZxid() == -1) {\n LOG.debug(\"Ignoring notification as our zxid is -1\");\n break;\n }\n if (n.zxid == -1) {\n LOG.debug(\"Ignoring notification from member with -1 zxid {}\", n.sid);\n break;\n }\n // If notification > current, replace and send messages out\n if (n.electionEpoch > logicalclock.get()) {\n logicalclock.set(n.electionEpoch);\n recvset.clear();\n if (totalOrderPredicate(n.leader, n.zxid, n.peerEpoch, getInitId(), getInitLastLoggedZxid(), getPeerEpoch())) {\n updateProposal(n.leader, n.zxid, n.peerEpoch);\n } else {\n updateProposal(getInitId(), getInitLastLoggedZxid(), getPeerEpoch());\n }\n sendNotifications();\n } else if (n.electionEpoch < logicalclock.get()) {\n LOG.debug(\n \"Notification election epoch is smaller than logicalclock. n.electionEpoch = 0x{}, logicalclock=0x{}\",\n Long.toHexString(n.electionEpoch),\n Long.toHexString(logicalclock.get()));\n break;\n } else if (totalOrderPredicate(n.leader, n.zxid, n.peerEpoch, proposedLeader, proposedZxid, proposedEpoch)) {\n updateProposal(n.leader, n.zxid, n.peerEpoch);\n sendNotifications();\n }\n\n LOG.debug(\n \"Adding vote: from={}, proposed leader={}, proposed zxid=0x{}, proposed election epoch=0x{}\",\n n.sid,\n n.leader,\n Long.toHexString(n.zxid),\n Long.toHexString(n.electionEpoch));\n\n // don't care about the version if it's in LOOKING state\n recvset.put(n.sid, new Vote(n.leader, n.zxid, n.electionEpoch, n.peerEpoch));\n\n voteSet = getVoteTracker(recvset, new Vote(proposedLeader, proposedZxid, logicalclock.get(), proposedEpoch));\n\n if (voteSet.hasAllQuorums()) {\n\n // Verify if there is any change in the proposed leader\n while ((n = recvqueue.poll(finalizeWait, TimeUnit.MILLISECONDS)) != null) {\n if (totalOrderPredicate(n.leader, n.zxid, n.peerEpoch, proposedLeader, proposedZxid, proposedEpoch)) {\n recvqueue.put(n);\n break;\n }\n }\n\n /*\n * This predicate is true once we don't read any new\n * relevant message from the reception queue\n */\n if (n == null) {\n setPeerState(proposedLeader, voteSet);\n Vote endVote = new Vote(proposedLeader, proposedZxid, logicalclock.get(), proposedEpoch);\n leaveInstance(endVote);\n return endVote;\n }\n }\n break;\n case OBSERVING:\n LOG.debug(\"Notification from observer: {}\", n.sid);\n break;\n\n /*\n * In ZOOKEEPER-3922, we separate the behaviors of FOLLOWING and LEADING.\n * To avoid the duplication of codes, we create a method called followingBehavior which was used to\n * shared by FOLLOWING and LEADING. This method returns a Vote. When the returned Vote is null, it follows\n * the original idea to break swtich statement; otherwise, a valid returned Vote indicates, a leader\n * is generated.\n *\n * The reason why we need to separate these behaviors is to make the algorithm runnable for 2-node\n * setting. An extra condition for generating leader is needed. Due to the majority rule, only when\n * there is a majority in the voteset, a leader will be generated. However, in a configuration of 2 nodes,\n * the number to achieve the majority remains 2, which means a recovered node cannot generate a leader which is\n * the existed leader. Therefore, we need the Oracle to kick in this situation. In a two-node configuration, the Oracle\n * only grants the permission to maintain the progress to one node. The oracle either grants the permission to the\n * remained node and makes it a new leader when there is a faulty machine, which is the case to maintain the progress.\n * Otherwise, the oracle does not grant the permission to the remained node, which further causes a service down.\n *\n * In the former case, when a failed server recovers and participate in the leader election, it would not locate a\n * new leader because there does not exist a majority in the voteset. It fails on the containAllQuorum() infinitely due to\n * two facts. First one is the fact that it does do not have a majority in the voteset. The other fact is the fact that\n * the oracle would not give the permission since the oracle already gave the permission to the existed leader, the healthy machine.\n * Logically, when the oracle replies with negative, it implies the existed leader which is LEADING notification comes from is a valid leader.\n * To threat this negative replies as a permission to generate the leader is the purpose to separate these two behaviors.\n *\n *\n * */\n case FOLLOWING:\n /*\n * To avoid duplicate codes\n * */\n Vote resultFN = receivedFollowingNotification(recvset, outofelection, voteSet, n);\n if (resultFN == null) {\n break;\n } else {\n return resultFN;\n }\n case LEADING:\n /*\n * In leadingBehavior(), it performs followingBehvior() first. When followingBehavior() returns\n * a null pointer, ask Oracle whether to follow this leader.\n * */\n Vote resultLN = receivedLeadingNotification(recvset, outofelection, voteSet, n);\n if (resultLN == null) {\n break;\n } else {\n return resultLN;\n }\n default:\n LOG.warn(\"Notification state unrecognized: {} (n.state), {}(n.sid)\", n.state, n.sid);\n break;\n }\n } else {\n if (!validVoter(n.leader)) {\n LOG.warn(\"Ignoring notification for non-cluster member sid {} from sid {}\", n.leader, n.sid);\n }\n if (!validVoter(n.sid)) {\n LOG.warn(\"Ignoring notification for sid {} from non-quorum member sid {}\", n.leader, n.sid);\n }\n }\n }\n return null;\n } finally {\n try {\n if (self.jmxLeaderElectionBean != null) {\n MBeanRegistry.getInstance().unregister(self.jmxLeaderElectionBean);\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to unregister with JMX\", e);\n }\n self.jmxLeaderElectionBean = null;\n LOG.debug(\"Number of connection processing threads: {}\", manager.getConnectionThreadCount());\n }\n }", "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "@Override\n public void run(String... args) throws Exception {\n initProgressReporter.submitProgress(String.format(LoaderProgress.ENTRY_POINT.message(), delayStartInSeconds));\n Thread.sleep(delayStartInSeconds * 1000);\n\n boolean allReady;\n do {\n initProgressReporter.submitProgress(LoaderProgress.WAITING_FOR_ALL.message());\n\n var applications = this.discoveryClient.getServices();\n initProgressReporter.submitProgress(\n String.format(LoaderProgress.N_SERVICES_REGISTERED.message(), applications.size()));\n for (var application : applications) {\n initProgressReporter.submitProgress(\n String.format(LoaderProgress.SERVICE_REGISTERED.message(), application));\n }\n\n allReady = applications.containsAll(\n Arrays.asList(\"config-server\", \"site-service\", \"role-service\", \"practitioner-service\"));\n if (!allReady) {\n Thread.sleep(5000);\n }\n } while (!allReady);\n\n initProgressReporter.submitProgress(LoaderProgress.ALL_REGISTERED.message());\n\n try {\n initProgressReporter.submitProgress(LoaderProgress.GET_ROLES_FROM_CONFIG.message());\n var roles = trialConfig.getRoles();\n\n initProgressReporter.submitProgress(LoaderProgress.CREATE_ROLES.message());\n roleServiceInvoker.createRoles(roles);\n\n initProgressReporter.submitProgress(LoaderProgress.GET_SITES_FROM_CONFIG.message());\n var sites = trialConfig.getSites();\n\n initProgressReporter.submitProgress(LoaderProgress.CREATE_SITES.message());\n List<String> siteIds = siteServiceInvoker.createSites(sites);\n\n initProgressReporter.submitProgress(LoaderProgress.GET_PERSONS_FROM_CONFIG.message());\n var persons = trialConfig.getPersons();\n\n initProgressReporter.submitProgress(String.format(\n LoaderProgress.SELECT_FIRST_SITE_FROM_COLLECTION_OF_SIZE.message(), siteIds.size()));\n // Assumption in story https://ndph-arts.atlassian.net/browse/ARTS-164\n String siteIdForUserRoles = siteIds.get(0);\n initProgressReporter.submitProgress(LoaderProgress.CREATE_PRACTITIONER.message());\n practitionerServiceInvoker.execute(persons, siteIdForUserRoles);\n initProgressReporter.submitProgress(LoaderProgress.FINISHED_SUCCESSFULY.message());\n } catch (Exception ex) {\n initProgressReporter.submitProgress(ex.toString());\n initProgressReporter.submitProgress(LoaderProgress.FAILURE.message());\n throw ex;\n }\n }", "private void onReconnect(Supplier<List<CoreDescriptor>> descriptorsSupplier)\n throws SessionExpiredException {\n log.info(\"ZooKeeper session re-connected ... refreshing core states after session expiration.\");\n clearZkCollectionTerms();\n try {\n // recreate our watchers first so that they exist even on any problems below\n zkStateReader.createClusterStateWatchersAndUpdate();\n\n // this is troublesome - we don't want to kill anything the old\n // leader accepted\n // though I guess sync will likely get those updates back? But\n // only if\n // he is involved in the sync, and he certainly may not be\n // ExecutorUtil.shutdownAndAwaitTermination(cc.getCmdDistribExecutor());\n // we need to create all of our lost watches\n\n // seems we don't need to do this again...\n // Overseer.createClientNodes(zkClient, getNodeName());\n\n // start the overseer first as following code may need it's processing\n if (!zkRunOnly) {\n ElectionContext context = new OverseerElectionContext(zkClient, overseer, getNodeName());\n\n ElectionContext prevContext = overseerElector.getContext();\n if (prevContext != null) {\n prevContext.cancelElection();\n prevContext.close();\n }\n\n overseerElector.setup(context);\n\n if (cc.nodeRoles.isOverseerAllowedOrPreferred()) {\n overseerElector.joinElection(context, true);\n }\n }\n\n cc.cancelCoreRecoveries();\n\n try {\n registerAllCoresAsDown(descriptorsSupplier, false);\n } catch (SessionExpiredException e) {\n // zk has to reconnect and this will all be tried again\n throw e;\n } catch (Exception e) {\n // this is really best effort - in case of races or failure cases where we now\n // need to be the leader, if anything fails, just continue\n log.warn(\"Exception while trying to register all cores as DOWN\", e);\n }\n\n // we have to register as live first to pick up docs in the buffer\n createEphemeralLiveNode();\n\n List<CoreDescriptor> descriptors = descriptorsSupplier.get();\n // re register all descriptors\n ExecutorService executorService = (cc != null) ? cc.getCoreZkRegisterExecutorService() : null;\n if (descriptors != null) {\n for (CoreDescriptor descriptor : descriptors) {\n // TODO: we need to think carefully about what happens when it was a leader\n // that was expired - as well as what to do about leaders/overseers with\n // connection loss\n try {\n // unload solr cores that have been 'failed over'\n throwErrorIfReplicaReplaced(descriptor);\n\n if (executorService != null) {\n executorService.submit(new RegisterCoreAsync(descriptor, true, true));\n } else {\n register(descriptor.getName(), descriptor, true, true, false);\n }\n } catch (Exception e) {\n log.error(\"Error registering SolrCore\", e);\n }\n }\n }\n\n // notify any other objects that need to know when the session was re-connected\n HashSet<OnReconnect> clonedListeners;\n synchronized (reconnectListeners) {\n clonedListeners = new HashSet<>(reconnectListeners);\n }\n // the OnReconnect operation can be expensive per listener, so do that async in\n // the background\n for (OnReconnect listener : clonedListeners) {\n try {\n if (executorService != null) {\n executorService.submit(new OnReconnectNotifyAsync(listener));\n } else {\n listener.command();\n }\n } catch (Exception exc) {\n // not much we can do here other than warn in the log\n log.warn(\n \"Error when notifying OnReconnect listener {} after session re-connected.\",\n listener,\n exc);\n }\n }\n } catch (InterruptedException e) {\n // Restore the interrupted status\n Thread.currentThread().interrupt();\n throw new ZooKeeperException(ErrorCode.SERVER_ERROR, \"\", e);\n } catch (SessionExpiredException e) {\n throw e;\n } catch (Exception e) {\n log.error(\"Exception during reconnect\", e);\n throw new ZooKeeperException(ErrorCode.SERVER_ERROR, \"\", e);\n }\n }", "public void run() {\n Thread.currentThread().setPriority(Thread.NORM_PRIORITY);\n while( true ) {\n long currentTime = System.currentTimeMillis();\n for(H2ONode n: H2O.CLOUD._memary) {\n if (n == H2O.SELF) continue;\n for (RPC t : n.tasks()) {\n if (H2O.CLOUD.contains(t._target) ||\n // Also retry clients who do not appear to be shutdown\n (t._target._heartbeat._client && t._retry < HeartBeatThread.CLIENT_TIMEOUT)) {\n if (currentTime > (t._started + t._retry) && !t.isDone() && !t._nack) {\n if (++t._resendsCnt % 10 == 0)\n Log.warn(\"Got \" + t._resendsCnt + \" resends on task #\" + t._tasknum + \", class = \" + t._dt.getClass().getSimpleName());\n t.call();\n }\n } else { // Target is dead, nobody to retry to\n t.cancel(true);\n }\n }\n }\n long timeElapsed = System.currentTimeMillis() - currentTime;\n if(timeElapsed < 1000)\n try {Thread.sleep(1000-timeElapsed);} catch (InterruptedException e) {}\n }\n }", "@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }" ]
[ "0.6087714", "0.60176736", "0.5866482", "0.5665832", "0.5658016", "0.5595778", "0.55055237", "0.5439433", "0.5374405", "0.53269523", "0.5305012", "0.5303569", "0.5283202", "0.52688706", "0.5266859", "0.5257779", "0.5257144", "0.5257051", "0.5196675", "0.5181687", "0.5155523", "0.5125734", "0.512181", "0.5105747", "0.508864", "0.5063935", "0.5061676", "0.5055643", "0.50450385", "0.5039906", "0.50380933", "0.5030393", "0.50302297", "0.50244457", "0.50102884", "0.5005022", "0.50017345", "0.49918178", "0.49912658", "0.49887598", "0.49859357", "0.49801153", "0.49759498", "0.49561954", "0.49437386", "0.49305186", "0.4923761", "0.4921638", "0.49140868", "0.49067965", "0.4904771", "0.4896264", "0.489195", "0.48807985", "0.48672387", "0.48500377", "0.48424038", "0.484187", "0.4837056", "0.4831804", "0.48305693", "0.48284927", "0.48258308", "0.4823627", "0.48215595", "0.48191977", "0.48111698", "0.48010007", "0.47891936", "0.4785981", "0.4782035", "0.47758776", "0.47684392", "0.47661796", "0.47613794", "0.47501162", "0.47495514", "0.47473606", "0.47407776", "0.47383955", "0.47263768", "0.4724896", "0.47242665", "0.47226933", "0.4722385", "0.47085902", "0.47059625", "0.47053415", "0.47008625", "0.4700439", "0.47003", "0.46976268", "0.46927077", "0.469119", "0.4690933", "0.46903858", "0.46855184", "0.46812508", "0.467555", "0.46710452" ]
0.5425972
8
Get user's data space
@GetMapping("{userId}") public List<DSNodeDto> getDataSpace(@PathVariable Long userId) { return dataSpaceDataService.getDataSpace(userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "DataStoreInfo getUserDataStoreInfo();", "public char[] storage_GET()\n {return storage_GET(new char[120], 0);}", "protected String[] getUserData(){\n if (Utilities.isWindows()) {\n ArrayList<String> result = new ArrayList<String>();\n String localAppData = System.getenv(\"LOCALAPPDATA\"); // NOI18N\n if (localAppData != null) {\n result.add(localAppData+\"\\\\Google\\\\Chrome\\\\User Data\");\n } else {\n localAppData = Utils.getLOCALAPPDATAonWinXP();\n if (localAppData != null) {\n result.add(localAppData+\"\\\\Google\\\\Chrome\\\\User Data\");\n }\n }\n String appData = System.getenv(\"APPDATA\"); // NOI18N\n if (appData != null) {\n // we are in C:\\Documents and Settings\\<username>\\Application Data\\ on XP\n File f = new File(appData);\n if (f.exists()) {\n String fName = f.getName();\n // #219824 - below code will not work on some localized WinXP where\n // \"Local Settings\" name might be \"Lokale Einstellungen\";\n // no harm if we try though:\n f = new File(f.getParentFile(),\"Local Settings\");\n f = new File(f, fName);\n if (f.exists()) {\n result.add(f.getPath()+\"\\\\Google\\\\Chrome\\\\User Data\");\n }\n }\n }\n return result.toArray(new String[result.size()]);\n }\n else if (Utilities.isMac()) {\n return Utils.getUserPaths(\"/Library/Application Support/Google/Chrome\");// NOI18N\n }\n else {\n return Utils.getUserPaths(\"/.config/google-chrome\", \"/.config/chrome\");// NOI18N\n }\n }", "public DataStorage getDataStorage();", "ByteBuffer getApplicationData();", "Object getUserData();", "Map<String, Object> getPermStorage();", "public UserStorage getUserStorage() {\n return UserStorage.getInstance();\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "ApplicationData getActualAppData();", "public Object getUserData();", "public Object getUserData () {\n\t\treturn userData;\n\t}", "public Object getUserData()\n\t{\n\t\treturn userData;\n\t}", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "abstract public Object getUserData();", "protected ScServletData getData()\n {\n return ScServletData.getLocal();\n }", "@Override\n public String getUserData()\n {\n return id+\"\"+acceptedDirs+\"x\"+(int)mirror.getX()+\"y\"+(int)mirror.getY();\n }", "DataStore getDataStore ();", "Object getCurrentData();", "public File getDataStoreDir() {\n\t\treturn this.localDataStoreDir;\n\t}", "public String getKeyspace() {\n return keyspace;\n }", "public String getDataOwner();", "String getNameSpace();", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "public Path getDataDirectory();", "String getNameKeySpace();", "public static JavaSpace05 getSpace() {\n return instance.doGetSpace();\n }", "public String getDataDir() {\n\t\treturn dataDir;\n\t}", "public Object getUserData() {\n return userData;\n }", "DSpace getSpace();", "public SharedProgramInstanceData getSharedProgramInstanceData()\r\n \t{\r\n \t\treturn m_sharedProgramInstanceData;\r\n \t}", "com.google.protobuf.ByteString\n getKeyspaceBytes();", "com.google.protobuf.ByteString\n getKeyspaceBytes();", "com.google.protobuf.ByteString\n getKeyspaceBytes();", "com.google.protobuf.ByteString\n getKeyspaceBytes();", "public String getDataDirectory() {\n return dataDirectory;\n }", "OStorage getStorage();", "@Provides\n @Singleton\n DataStorage providesDataStorage(Application application, UtilsPrefs utilsPrefs) {\n DataStorage dataStorage = new DataStorage(application, utilsPrefs);\n return dataStorage;\n }", "public IData getStoreddata();", "public File getDataFolder() {\n return dataFolder;\n }", "public String getDataParent () {\n if (dataParent == null) {\n return System.getProperty (GlobalConstants.USER_DIR);\n } else {\n return dataParent;\n }\n }", "public String getDataPath() {\n\t\treturn \"data\";\r\n\t}", "public String[] getGamingUsers() {\n connect();\n\n String data[] = null;\n try {\n doStream.writeUTF(\"GAMING_USERS\");\n doStream.writeUTF(currentUser.getUserName());\n int aux = diStream.readInt();\n data = new String[aux];\n\n for (int i = 0 ; i < aux; i++){\n data[i] = diStream.readUTF();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n disconnect();\n\n return data;\n }", "public Object \n\tgetData(\n\t\t\tString key) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) return null;\n\n\t\t\treturn user_data.get(key);\n\n\t\t}finally{\n\n\t\t\tthis_mon.exit();\n\t\t}\n\t}", "public static UizaWorkspaceInfo getUizaWorkspaceInfo(Context context) {\n SharedPreferences pref = context.getSharedPreferences(PREFERENCES_FILE_NAME, 0);\n return new Gson().fromJson(pref.getString(V3UIZAWORKSPACEINFO, \"\"), UizaWorkspaceInfo.class);\n }", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "private String getStoreName() {\n if (storeName == null) {\n storeName = System.getProperty(\"user.dir\")\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_DICT_STORE_NAME\n + \"dat\";\n }\n return storeName;\n }", "public String getUserStorageLocation(){\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String user = (String) auth.getPrincipal();\n return user + \"/\";\n }", "public User getUserData();", "public Map<Integer, Integer> getMemoryDataMap(){\n return dataMemory.getMemoryMap();\n }", "public DataStoreEnvironment getDataStoreEnvironment (){\n\t\treturn _dataStoreEnvironment;\n\t}", "public long getStorage() {\n\t\t// List<Storage> listSim = new ArrayList<Storage>();\n\t\t//\n\t\t// Storage storage;\n\t\t//\n\t\t// for (int i = 0; i < 3; i++) {\n\t\t// storage = new Storage();\n\t\t//\n\t\t// storage.setDeviceName(\"/dev/sda1\");\n\t\t// storage.setFreeSpaceKB(3 * 100 * 12 * 5 * i);\n\t\t// storage.setTotalSizeKB(288237920);\n\t\t// storage.setMountPoint(\"/\");\n\t\t// storage.setOsSpecificFSType(\"ext4\");\n\t\t//\n\t\t// listSim.add(storage);\n\t\t// }\n\t\t// return listSim;\n\n\t\treturn new Random().nextInt(19700621);\n\t}", "private String getKeySpace()\r\n\t\t{\r\n\t\t\tString firstKey;\r\n\t\t\tString lastKey;\r\n\t\t\tif (incompleteKeySpaces.isEmpty())\r\n\t\t\t{\r\n\t\t\t\trunningKeySpaces.add(highestKey);\r\n\t\t\t\tfirstKey = highestKey.toString();\r\n\t\t\t\thighestKey = highestKey.add(keySpaceSize);\r\n\t\t\t\tlastKey = highestKey.toString();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\trunningKeySpaces.add(incompleteKeySpaces.get(0));\r\n\t\t\t\tfirstKey = incompleteKeySpaces.get(0).toString();\r\n\t\t\t\tlastKey = incompleteKeySpaces.get(0).add(keySpaceSize).toString();\r\n\t\t\t\tincompleteKeySpaces.remove(0);\r\n\t\t\t}\r\n\t\t\tlog(\"Assigning keyspace: \" + firstKey);\r\n\t\t\treturn firstKey + \",\" + lastKey;\r\n\t\t}", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "com.google.protobuf.ByteString\n getNameKeySpaceBytes();", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}", "@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}", "Preferences userRoot();", "@Override\n public Object getUserData() {\n return this.userData;\n }", "int getItemStorage();", "protected Space getSpace() {\n return space;\n }", "@Pure\n\tpublic Collection<Object> getAllUserData() {\n\t\tif (this.userData == null) {\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t\treturn Collections.unmodifiableCollection(this.userData);\n\t}", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "public int DataMemorySize() { return DATA_MEMORY_SIZE; }", "public Long getUsedSpace() {\n return usedSpace;\n }", "public void loadAllUserData(){\n\n }", "String getDataFromScreen();", "public String getCurrentSpace() {\n return spaces.getValue();\n }", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }", "public static Object[] getUserData(){\n String name, password;\n\n System.out.println(\"\\n1. Manager\\n2. Customer\");\n int res = ConsoleReader.getInt();\n System.out.print(\"\\nEnter your name :\");\n ConsoleReader.getString();\n name = ConsoleReader.getString();\n System.out.print(\"Enter your password :\");\n password = ConsoleReader.getString();\n return new Object[] {res, name, password};\n }", "Map<String, Object> getTempStorage();", "public byte[] getSystemOperationData() {\n\t\treturn this.systemOperationData;\n\t}", "public static File getUserDir()\n {\n return fUserDir;\n }", "public int[] getStorageUsers(String path) throws RemoteException;", "public AbstractDataInput getSystemDataInput()\n\t{\n\t\treturn systemDataInput;\n\t}", "private void loadUserData() {\n\t\tuserData = new UserData();\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public interface DataVar {\n String APP_ROOT_FILE = Environment.getExternalStorageDirectory().getPath()\n + File.separator + \"NoteMyLife\";\n String APP_IMG_FILE = APP_ROOT_FILE + File.separator + \"img\";\n\n //把当前用户的登陆信息保存到本地时的键\n String SP_FILE = \"USER_DATA\";\n String SP_USER_ID = \"userId\";\n String SP_EMAIL = \"userAccount\";\n String SP_PASSWORD = \"userPassword\";\n String SP_HEAD = \"head\";\n String INIT_HEAD_IMAGE_FILE_NAME = \"0.png\";\n}", "public SharedMemory infos();", "public java.lang.String getKSDM() {\r\n return localKSDM;\r\n }", "public String getNameSpace() {\n return nameSpace;\n }", "public String getDataCenter() {\n return this.dataCenter;\n }", "public static Object getExternalStorageDirectory() {\n \n //User home directory\n String home = System.getProperty(\"user.home\");\n File dir = new File(home+\"/externalStorage/databases/\");\n FileObject myfolder = FileUtil.toFileObject(dir);\n dir.mkdir();\n /*if(myfolder == null){\n //Testing\n //displayMessage(\"Creating folder \"+dir.getPath());\n \n return null;\n }*/\n \n return dir.getAbsolutePath();\n \n }", "public Toolboxspace getToolboxspace() {\n return toolboxspace;\n }", "@Override\r\n\t\tpublic Object getUserData(String key)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public List<Site> getSpaces() {\n SiteQuery sq = new SiteQuery.Builder().withSiteTypes(SiteType.SPACE).build();\n List<Site> s = PortalRequest.getInstance().getPortal().findSites(sq);\n return s;\n }", "Database getDataBase() {\n return database;\n }", "public String[][] getSpace() {\n return this.space;\n }", "String getHome(ObjectStorage storage);" ]
[ "0.68218005", "0.68218005", "0.68218005", "0.68218005", "0.68218005", "0.6488377", "0.6341221", "0.62097335", "0.6093358", "0.6092986", "0.6064636", "0.6026567", "0.5954931", "0.59206706", "0.59206706", "0.59206706", "0.59206706", "0.586811", "0.5847229", "0.5832935", "0.5790496", "0.57712674", "0.57625914", "0.5640125", "0.56244665", "0.56155384", "0.5601923", "0.5600529", "0.5579057", "0.55529654", "0.55314577", "0.5520949", "0.5517031", "0.5515202", "0.5510992", "0.5509765", "0.55020577", "0.549264", "0.5475464", "0.54705113", "0.54705113", "0.54705113", "0.54705113", "0.5461261", "0.5417296", "0.54122114", "0.54035443", "0.5395832", "0.5395733", "0.5371256", "0.53640926", "0.53602314", "0.5357085", "0.5354184", "0.53313935", "0.5328557", "0.5289965", "0.52830046", "0.5278133", "0.5266629", "0.52532935", "0.52461517", "0.52323383", "0.5228913", "0.52250135", "0.5221537", "0.5197436", "0.51852065", "0.5185077", "0.51623964", "0.5162174", "0.5156404", "0.5149584", "0.51457375", "0.51353353", "0.5132714", "0.5127502", "0.51245207", "0.51228595", "0.5113481", "0.5112127", "0.51085466", "0.51033944", "0.5102814", "0.5098969", "0.50883365", "0.507231", "0.5068707", "0.50677955", "0.5061596", "0.505959", "0.50466955", "0.50455874", "0.50432813", "0.50152653", "0.5011057", "0.5007786", "0.49985874", "0.4996034", "0.4991981" ]
0.62275416
7
Get Shared data (SingleContactActivity and SharedActivity)
@GetMapping("shared") public List<DSNodeDto> getSharedDataSpace(@RequestParam Long userId, @RequestParam Long contactId, @RequestParam Optional<Long> nodesCount) { if (nodesCount.isPresent()) { return dataSpaceDataService.getSharedData(userId, contactId, nodesCount.get()); } else { return dataSpaceDataService.getSharedData(userId, contactId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "@Override\n public void onSuccess(String message) {\n Toast.makeText(getApplicationContext(), \"Successfully shared with \" + message , Toast.LENGTH_LONG).show();\n //TODO SET THE DATA FOR SHARED FRAGMENT - READ FROM FB HERE AND ONSUCCESS SET THE DATA.\n\n\n\n }", "private void getDataFromSharedPrefernce() {\r\n\r\n\t\tprofileImageString = mSharedPreferences_reg.getString(\"ProfileImageString\",\"\");\r\n\t\tpsedoName = mSharedPreferences_reg.getString(\"PseudoName\", \"\");\r\n\t\tprofiledescription = mSharedPreferences_reg.getString(\"Pseudodescription\", \"\");\r\n\r\n\t\tsetDataToRespectiveFields();\r\n\t}", "private SharedPreferences getSharedPrefs() {\n return Freelancer.getContext().getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n }", "private void GetSharedPrefs()\n {\n// SharedPreferences pref = getActivity().getSharedPreferences(\"LoginPref\", 0);\n// UserId = pref.getInt(\"user_id\", 0);\n// Mobile = pref.getString(\"mobile_number\",DEFAULT);\n// Email = pref.getString(\"email_id\",DEFAULT);\n// Username = pref.getString(\"user_name\",DEFAULT);\n// Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"RegPref\", 0); // 0 - for private mode\n UserId = pref.getInt(\"user_id\", 0);\n Mobile = pref.getString(\"mobile_number\",DEFAULT);\n Email = pref.getString(\"email_id\",DEFAULT);\n Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n CallOnGoingRideAPI();\n }", "private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}", "void getData() {\n Intent intent = this.getIntent();\n /* Obtain String from Intent */\n Sname = intent.getExtras().getString(\"name\");\n Sbloodbank = intent.getExtras().getString(\"bloodbank\");\n Sbranch = intent.getExtras().getString(\"branch\");\n Sdate = intent.getExtras().getString(\"date\");\n Stime = intent.getExtras().getString(\"time\");\n Sphone = intent.getExtras().getString(\"phone\");\n Log.d(\"userDetails received\", Sname + \",\" + Sphone ); //Don't ignore errors!\n }", "private void getIntentData() {\r\n if (getIntent() != null && getIntent().getExtras() != null) {\r\n // Handling intent data from DirectoryDetailsActivity class\r\n if (Constant.ALBUM_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n position = getIntent().getIntExtra(Constant.POSITION, 0);\r\n nameKey = getIntent().getStringExtra(Constant.KEY_NAME);\r\n } else if (Constant.LIST_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else if (Constant.SECURE_TAB.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else {\r\n // Handling other intent data like camera intent\r\n Uri uri = getIntent().getData();\r\n GalleryHelper.getImageFolderMap(this);\r\n File file = new File(getRealPathFromURI(uri));\r\n nameKey = FileUtils.getParentName(file.getParent());\r\n GalleryHelperBaseOnId.getMediaFilesOnIdBasis(this, GalleryHelper.imageFolderMap.get(nameKey).get(0).getBucketId());\r\n }\r\n }\r\n }", "private void callWebServiceData() {\r\n\r\n\t\tif(Utility.FragmentContactDataFetchedOnce){\r\n\t\t\tgetDataFromSharedPrefernce();\r\n\t\t} else {\r\n\t\t\t//Utility.startDialog(activity);\r\n\t\t\tnew GetDataAsynRegistration().execute();\r\n\t\t}\r\n\t}", "public SharedProgramInstanceData getSharedProgramInstanceData()\r\n \t{\r\n \t\treturn m_sharedProgramInstanceData;\r\n \t}", "public void Retrive_data_with_sharedPrefernce(){\r\n\r\n SharedPreferences sharedPreferences = getContext().getSharedPreferences(\"Insert_status\",Context.MODE_PRIVATE) ;\r\n Boolean restoreStatus = sharedPreferences.getBoolean(\"Local_Status\",false);\r\n if(!restoreStatus){\r\n get_jsondata();\r\n }\r\n\r\n\r\n }", "public static SharedPreferences getCommonSharedPrefs(Context context) {\r\n return context.getSharedPreferences(AppConstants.SP_COMMON, Context.MODE_MULTI_PROCESS);\r\n }", "private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }", "public boolean getShared(){\n return this.shared;\n }", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "public LinkedHashMap<String, SharedDataInfo> sharedData(){\n return new LinkedHashMap<String, SharedDataInfo>();\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "private void getIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle.containsKey(\"DOCTOR_ID\")\n && bundle.containsKey(\"DOCTOR_NAME\")\n && bundle.containsKey(\"CLINIC_ID\")\n && bundle.containsKey(\"CLINIC_NAME\")\n && bundle.containsKey(\"CLINIC_LATITUDE\")\n && bundle.containsKey(\"CLINIC_LONGITUDE\")\n && bundle.containsKey(\"CLINIC_ADDRESS\")) {\n DOCTOR_ID = bundle.getString(\"DOCTOR_ID\");\n DOCTOR_NAME = bundle.getString(\"DOCTOR_NAME\");\n CLINIC_ID = bundle.getString(\"CLINIC_ID\");\n CLINIC_NAME = bundle.getString(\"CLINIC_NAME\");\n CLINIC_LATITUDE = bundle.getDouble(\"CLINIC_LATITUDE\");\n CLINIC_LONGITUDE = bundle.getDouble(\"CLINIC_LONGITUDE\");\n CLINIC_ADDRESS = bundle.getString(\"CLINIC_ADDRESS\");\n\n if (DOCTOR_NAME != null) {\n txtDoctorName.setText(DOCTOR_NAME);\n }\n\n if (CLINIC_NAME != null) {\n txtClinicName.setText(CLINIC_NAME);\n }\n\n if (CLINIC_ADDRESS != null) {\n txtClinicAddress.setText(CLINIC_ADDRESS);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info....\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }", "public void retrieveDataFromSharedPreference(View view) {\n\n name = sharedPreferences.getString(\"name\",\"no data\");\n email = sharedPreferences.getString(\"email\",\"no data\");\n\n nameEditText.setText(name);\n emailEditText.setText(email);\n\n }", "public void returnLoadedData(List<ContactsClass> contactList) {\n mWhatsappContacts = contactList;\n Log.d(LOG_TAG, \"Size of whatsapp contacts is \" + mWhatsappContacts.size() + \" mUser number of whatsapp friends: \" + mUser.getNumberWhatsappFriends());\n\n /* Do this when starting app or once per day*/\n if(mUser.getNumberWhatsappFriends() == 0) {\n mFirestoreTasks.syncContacts(mFirestore, mUserRef, mWhatsappContacts);\n }\n }", "public static String getSharedPrefs() {\n return SHARED_PREFS;\n }", "private void getContactDataBefore() {\n int i = 0;\n List<String> list = new ArrayList<>();\n\n Cursor c1 = getContentResolver()\n .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n if ((c1 != null) && c1.moveToFirst()) {\n\n // add contact id's to the mIDs list\n do {\n String id = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts._ID));\n String name = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n\n // query all contact numbers corresponding to current id\n Cursor c2 = getContentResolver()\n .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=?\",\n new String[]{id}, null);\n\n if (c2 != null && c2.moveToFirst()) {\n // Log.d(\"DEBUG\",\"name =\" + name);\n list = new ArrayList<>();\n\n if (idsHash.containsKey(name)) {\n list = idsHash.get(name);\n } else {\n mIDs.add(id);\n mNames.add(name);\n mNumbers.add(c2.getString(c2\n .getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER)));\n }\n\n list.add(id);\n idsHash.put(name, list);\n\n c2.close();\n } else {\n c2.close();\n }\n\n i++;\n } while (c1.moveToNext() && i < c1.getCount());\n\n c1.close();\n }\n }", "private static SharedPreferences getSharedPrefs(final Context context) {\n final String prefsName = context.getString(R.string.sharedprefs_name);\n return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE);\n }", "public Object getShared (Object aKey)\n\t{\n\t\treturn shared.get (aKey);\n\t}", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "private void getFriendData() {\n //Create our query\n final GetUsersFriendsByUUIDQuery getFriends = GetUsersFriendsByUUIDQuery.builder()\n .uuid(SharedPreferencesHelper.getStringValue(\"uuid\"))\n .build();\n\n //Make the call.\n apolloClient\n .query(getFriends)\n .enqueue(\n new ApolloCall.Callback<GetUsersFriendsByUUIDQuery.Data>() {\n MainActivity mainActivity = MainActivity.this;\n\n @Override\n public void onResponse(@NotNull Response<GetUsersFriendsByUUIDQuery.Data> response) {\n Log.d(\"TEST\", \"Got a friend uuid response from the API.\");\n //Get the received data into our models\n //Get all of our data\n Object[] data = response.getData().GetUserFriendsByUUID().toArray();\n\n //Send this back to the main thread.\n mainActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mainActivity.receiveData(data);\n }\n });\n }\n\n @Override\n public void onFailure(@NotNull ApolloException e) {\n mainActivity.runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(mainActivity, \"An error has occurred!\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n );\n }", "public Object getData() {\n if (this.mInvitation != null) return this.mInvitation;\n else if (this.mChatMessageFragment != null) return this.mChatMessageFragment;\n else return null;\n }", "public int getShared() {\n\t\treturn shared;\n\t}", "Shared shared();", "String[] getSharedFields();", "boolean isShared();", "public int getSharedTo() {\n return sharedTo_;\n }", "private void getDataFromIntent() {\n\t\tfinal Intent intent = getIntent();\n\t\tdata.setmUsername(intent.getStringExtra(Constants.PARAM_USERNAME));\n\t\tdata.setmPassword(intent.getStringExtra(Constants.PARAM_PASSWORD));\n\t\tdata.setmHost(intent.getStringExtra(Constants.PARAM_HOST));\n\t\tdata.setmPort(intent.getIntExtra(Constants.PARAM_PORT, 389));\n\t\tdata.setmEncryption(intent.getIntExtra(Constants.PARAM_ENCRYPTION, 0));\n\t\tdata.setmRequestNewAccount((data.getmUsername() == null));\n\t\tdata.setmConfirmCredentials(intent.getBooleanExtra(Constants.PARAM_CONFIRMCREDENTIALS, false));\n\t}", "public String getIsShare() {\n return isShare;\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public Object getCustomerContactActivityRecord() {\n return customerContactActivityRecord;\n }", "public boolean isShared() {\n return isShared;\n }", "public byte[] share(Sharer s) {\n sharer = s;\n return segment_data;\n }", "private List<BasicContact> getDataForListView() {\n\t\tlong groupId = getIntent().getLongExtra(Constants.INTENT_LONG_GROUP_ID, -1L);\r\n\t\tHashSet<Long> rawContactIds;\r\n\t\tif (groupId != -1) { // a group was selected\r\n\t\t\tList<Long> groupIds = new ArrayList<Long>(1);\r\n\t\t\tgroupIds.add(groupId);\r\n\t\t\trawContactIds = ContactsHelper.getRawContactIds(LabelView.this, groupIds);\r\n\t\t} else { // a tag was selected\r\n\t\t\trawContactIds = ContactsHelper.getRawContactIdsGivenTag(LabelView.this,\r\n\t\t\t\t\tmLabel);\r\n\t\t}\r\n\t\t\r\n\t\treturn ApplicationData.getBasicContacts(rawContactIds);\r\n\t}", "private static SharedPreferences getSharedPreference(Context context){\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "private void fetchIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle.containsKey(\"TAX_ID\") && bundle.containsKey(\"TAX_NAME\")) {\n INCOMING_TAX_NAME = bundle.getString(\"TAX_NAME\");\n INCOMING_TAX_ID = bundle.getString(\"TAX_ID\");\n if (INCOMING_TAX_ID != null) {\n new fetchTaxDetails().execute();\n } else {\n //TODO: SHOW AN ERROR\n }\n } else {\n //TODO: SHOW AN ERROR\n }\n }", "private void initData() {\n\t\tIntent intent = getIntent();\r\n\t\t\r\n\t\tstoid = intent.getStringExtra(\"stoid\");\r\n\t\t\r\n\t\tRequestParams params = new RequestParams();\r\n\t\tparams.addBodyParameter(\"stoid\", stoid);\r\n\t\t\r\n\t\tMyApplication.httpUtils.send(HttpMethod.POST, HttpUrl.STORESINFO, params, new RequestCallBack<String>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\r\n\t\t\t\t//Toast.makeText(SnaDetailsActivity.this, \"StoryContentInfo数据加载失败\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\t//storycontentinfo = MyApplication.gson.fromJson(json, StoryContentInfo.class);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString json = arg0.result;\r\n\t\t\t\t\tLog.i(\"json=\", \"dealjson=\"+json);\r\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(arg0.result);\r\n\t\t\t\t\tsto_name = jsonObject.getJSONObject(\"stoinfo\").getString(\"sto_name\");\r\n\t\t\t\t\tsto_addr = jsonObject.getJSONObject(\"stoinfo\").getString(\"sto_addr\");\r\n\t\t\t\t\tproject = jsonObject.getJSONObject(\"stoinfo\").getString(\"sto_content\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tstoyrName.setText(sto_name);\r\n\t\t\t\t\tstory_addr.setText(sto_addr);\r\n\t\t\t\t} catch (JSONException 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\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "private EmergencyContactInfo persistEmergencyContactInfo(Intent data){\n\t //Declarations\n\t\t\tEmergencyContactInfo emergencyContactInfo;\n\t\t\t\n\t\t\t//Get the contact details\n \tContactProvider contactProvider = ContactProvider.getContactProvider(getActivity());\n \tContactDetail contactDetail = contactProvider.getContact(data);\t\t\t \t \t \t\n \t\n \t//Check its availability in data store\n \tif(DataStore.getEmergencyContactInfo(getActivity()) == null)\n \t\temergencyContactInfo = new EmergencyContactInfo();\t \t\n \telse\n \t\temergencyContactInfo = DataStore.getEmergencyContactInfo(getActivity());\n \t\n \temergencyContactInfo.getContactDetails().put(mContactTag, contactDetail);\t \t\n \tDataStore.setEmergencyContactInfo(emergencyContactInfo);\n \tDataStore.commitEmergencyContactInfo(getActivity());\n \t\n \t\n \treturn emergencyContactInfo;\n\t\t}", "public Intent returnShareIntent() {\n Intent intent = new Intent(Intent.ACTION_INSERT);\n // Sets the MIME type\n intent.setType(ContactsContract.Contacts.CONTENT_TYPE);\n // store data in intent\n intent.putExtra(ContactsContract.Intents.Insert.NAME, this.name);\n intent.putExtra(ContactsContract.Intents.Insert.PHONE, this.mobile);\n intent.putExtra(ContactsContract.Intents.Insert.EMAIL, this.email);\n intent.putExtra(ContactsContract.Intents.Insert.COMPANY, this.company);\n intent.putExtra(ContactsContract.Intents.Insert.POSTAL, this.postal);\n intent.putExtra(ContactsContract.Intents.Insert.JOB_TITLE, this.job);\n intent.putExtra(ContactsContract.Intents.Insert.NOTES, this.detail);\n return intent;\n }", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }", "public static SharedPreferences getSharedPrefs() {\n return App.getAppContext().getSharedPreferences(PREFS_LABEL, Context.MODE_PRIVATE);\n }", "public static Resources getSharedResources() {\n return sharedResource;\n }", "private void getSharedPreferenceValues(){\n // retrieve values\n // note: second item is the default value\n sortOrderOfResults = sharedPreferences.getString(DEFAULT_QUERY_PATH, AppUtilities.QUERY_PATH_POPULAR);\n preferredMovieGenre = sharedPreferences.getString(getString(R.string.pref_genre_key),\n getString(R.string.pref_genre_any_value));\n preferredStartYear = sharedPreferences.getString(getString(R.string.pref_earliest_year_key),\n getString(R.string.pref_earliest_year_default));\n preferredEndYear = sharedPreferences.getString(getString(R.string.pref_latest_year_key),\n getString(R.string.pref_latest_year_default));\n }", "public void loadData(){\n SharedPreferences sharedPreferences=getSharedPreferences(\"logDetails\",Context.MODE_PRIVATE);\n nameText=sharedPreferences.getString(\"name\",\"na\");\n regText=sharedPreferences.getString(\"regnum\",\"na\");\n count=sharedPreferences.getInt(\"count\",1);\n\n\n }", "protected void showShare() {\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\tAppDataItemText textItem;\n \t\t\t\ttry {\n \t\t\t\t\ttextItem = (AppDataItemText)item;\n \t\t\t\t\t\n \t\t\t\t\tIntent sharingIntent = new Intent(Intent.ACTION_SEND);\n \t\t\t\t\tsharingIntent.setType(\"text/plain\");\n \t\t\t\t\t//sharingIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { \"contacto@neurowork.net\" });\n \t\t\t\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, textItem.getItemText());\n \t\t\t\t\tstartActivity(Intent.createChooser(sharingIntent,\"Compartir contenido\"));\n \n \t\t\t\t}catch (ClassCastException e) {\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}", "void getBundleData(Intent intent);", "private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }", "public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }", "public Map<String, Integer> getCurrentContacts() {\n\t\tcurrentUser = userCatalog.getUser(currentUser.getId());\n\t\tHashMap<String, Integer> result = new HashMap<String, Integer>();\n\t\ttry {\n\t\t\tcurrentUser.getContacts().stream().forEach(contact -> {\n\t\t\t\tresult.put(contact.getName(), contact.getId());\n\t\t\t});\n\t\t} catch (NullPointerException e) {\n\t\t\t// Can't stop the view's access while switching users,\n\t\t\t// App will just try again after loading.\n\t\t\treturn null;\n\t\t}\n\t\treturn result;\n\t}", "private ArrayList<TodoData> getTodos() {\n Intent intent = (Intent) getIntent();\n return (ArrayList<TodoData>) intent.getSerializableExtra(\"todos\");\n }", "public boolean isShared() {\n return shared;\n }", "public boolean isShared() {\n return shared;\n }", "@GetMapping(value = \"/profile/{idRecipient}/shared\")\n\tpublic Set<Share> getSharedResourcesByRecipient(@PathVariable long idRecipient) {\n\t\treturn shareServices.getShareByRecipient(idRecipient);\n\t}", "UserActivity findUserActivityByActivityId(int activityId) throws DataNotFoundException;", "public int getPeopleActivityInstanceId()\r\n {\r\n return mPeopleActivityInstanceId;\r\n }", "@Override\r\n protected Cursor doInBackground(Long... params)\r\n {\r\n databaseConnector.open();\r\n \r\n // get a cursor containing all data on given entry\r\n return databaseConnector.getOneContact(params[0]);\r\n }", "@Override\n public DetailToMainActivityState getDataFromDetailScreen(){\n DetailToMainActivityState state = mediator.getDetailToMainActivityState();\n return state;\n }", "@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }", "protocol.ChatData.ChatItem getChatData();", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "private void showContacts() {\n // Check the SDK version and whether the permission is already granted or not.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, PERMISSIONS_REQUEST_READ_CONTACTS);\n //After this point you wait for callback in onRequestPermissionsResult(int, String[], int[]) overriden method\n } else {\n\n // Android version is lesser than 6.0 or the permission is already granted.\n List contacts = getContactNames();\n final ContactAdapter cAdapter = new ContactAdapter(this, contacts);\n contactList.setAdapter(cAdapter);\n contactList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n Intent i = new Intent(getApplicationContext(), ChatActivity.class);\n\n //Få tak i navnet på kontakten man har valgt, og send den videre til chatActivity\n String contactName = cAdapter.getItem(position).getName();\n if(!(DomainSingleton.getSingleton(ContactActivity.this).getAllConversationNames().contains(contactName))) {\n i.putExtra(CONTACT_NAME, contactName);\n startActivity(i);\n }\n else\n {\n int conversationId = DomainSingleton.getSingleton(ContactActivity.this).getConversationIdByContactName(contactName);\n i.putExtra(CONVERSATION_ID, conversationId);\n i.putExtra(CONTACT_NAME, contactName);\n startActivity(i);\n }\n\n }\n });\n\n\n }\n }", "private Chat getChatSession(Intent intent) {\n ApiManager instance = ApiManager.getInstance();\n String sessionId = intent\n .getStringExtra(ChatIntent.EXTRA_CONTACT);\n if (instance == null) {\n Logger.i(TAG, \"ApiManager instance is null\");\n return null;\n }\n ChatService chatApi = instance.getChatApi();\n if (chatApi == null) {\n Logger.d(TAG, \"MessageingApi instance is null\");\n return null;\n }\n Chat chatSession = null;\n Logger.d(TAG, \"The chat session is null1\");\n try {\n chatSession = chatApi.getChat(sessionId);\n } catch (JoynServiceException e) {\n Logger.e(TAG, \"Get chat session failed\");\n Logger.d(TAG, \"The chat session is null2\");\n e.printStackTrace();\n chatSession = null;\n }\n if (chatSession != null) {\n return chatSession;\n }\n try {\n // Set<Chat> totalChats = null;\n Set<Chat> totalChats = chatApi.getChats();\n if (totalChats != null) {\n Logger.w(TAG, \"aaa getChatSession size: \"\n + totalChats.size());\n Logger.d(TAG, \"The chat session is null3 : \"\n + totalChats.size());\n for (Chat setElement : totalChats) {\n if (setElement.getRemoteContact().equals(\n sessionId)) {\n Logger.e(TAG, \"Get chat session finally\");\n // might work or might throw exception, Java calls it\n // indefined behaviour:\n chatSession = setElement;\n break;\n }\n }\n } else {\n Logger.w(TAG, \"aaa getChatSession size: null\");\n }\n } catch (JoynServiceException e) {\n Logger.e(TAG, \"Get chat session xyz\");\n e.printStackTrace();\n }\n return chatSession;\n }", "private void getFriendData(String userEmail){\r\n Map<String, Object> data = new HashMap<>();\r\n\r\n data.put(\"text\", user.getEmail());\r\n data.put(\"push\", true);\r\n\r\n mFunctions\r\n .getHttpsCallable(\"getFriends\")\r\n .call(data)\r\n .continueWith(new Continuation<HttpsCallableResult, HashMap>() {\r\n @Override\r\n public HashMap then(@NonNull Task<HttpsCallableResult> task) throws Exception {\r\n HashMap map = (HashMap) task.getResult().getData();\r\n mFriendData = map;\r\n return map;\r\n }\r\n });\r\n }", "public String getCurrentIdentity(){\n mSharedPreference = mContext.getSharedPreferences( mContext.getString(R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n if(mSharedPreference.contains(\"zzxxyz\")) {\n\n return mSharedPreference.getString(\"zzxxyz\", \"\");\n }\n else\n return \"\";\n}", "public void shareData(){\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n //now get Editor\n SharedPreferences.Editor editor = sharedPref.edit();\n //put your value\n editor.putInt(\"score3\", points);\n\n //commits your edits\n editor.commit();\n }", "private void fetchChatContact(){\n chatRemoteDAO.getAllChatRequestHandler(profileRemoteDAO.getUserId());\n }", "public abstract boolean isShared();", "private void getContactList() {\r\n\r\n\t\tgroupData.clear();\r\n\t\tchildData.clear();\r\n\t\tDataHelper dataHelper = new DataHelper(ContactsActivity.this);\r\n\t\tdataHelper.openDatabase();\r\n\t\tgroupData = dataHelper.queryZoneAndCorpInfo(childData);\r\n\t\tdataHelper.closeDatabase();\r\n\t\thandler.sendEmptyMessage(1);\r\n\r\n\t\tif (groupData == null || groupData.size() == 0) {\r\n\t\t\tDataTask task = new DataTask(ContactsActivity.this);\r\n\t\t\ttask.execute(Constants.KServerurl + \"GetAllOrgList\", \"\");\r\n\t\t}\r\n\t}", "public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(resultCode==2){\n\t\t\tHashMap<String, Object> map=new HashMap<String, Object>();\n\t\t\tmap.put(\"id\",data.getLongExtra(\"id\", -1));\n\t\t\tmap.put(\"members\", RecordUtil.shareRecordUtil(this).idToName(data.getStringExtra(\"ids\")));\n\t\t\tlist.addFirst(map);\n\t\t\tadapter.notifyDataSetChanged();\n\t\t}\n\t}", "private void getData() {\n\t\tSharedPreferences preferences = getActivity().getSharedPreferences(\"the_username_and_password\", LoginActivity.MODE_PRIVATE);\n\t\tmToken = preferences.getString(\"accessToken\", \"\");\n//\t\tmap.put(\"access_token\", mToken);\n\n\t\tIPresenter presenter = new IPresenter(new IView<FeaturesBean>() {\n\n\t\t\t@Override\n\t\t\tpublic void success(FeaturesBean bean) {\n\t\t\t\tif (swipe != null) {\n\t\t\t\t\tswipe.setRefreshing(false);\n\t\t\t\t\tswipe.setEnabled(true);\n\t\t\t\t}\n\t\t\t\tonSuccess(bean);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void defeat(String s) {\n\t\t\t\tswipe.setRefreshing(false);\n\t\t\t\tswipe.setEnabled(true);\n\t\t\t}\n\t\t});\n\n\t\tpresenter.DoGet(UrlUtils.ROUTE_URL + mToken);\n\t}", "public final int getSharedAccess() {\n\t return m_sharedAccess;\n\t}", "kr.pik.message.Profile.Contact getContact();", "@Override\n protected String doInBackground(String... params) {\n\n mInvites();\n String str = readWhatsappContacts();\n return str;\n }", "@Override\n protected Cursor doInBackground(Long... params)\n {\n dbc.open();\n Log.i(TAG, \"in LoadGigDetailsTask and in doInBackground\");\n Cursor cursor = dbc.getOneContact(params[0]);\n if (!cursor.moveToFirst()) {\n \t Log.i(TAG, \"in LoadGigDetailsTask and in doInBackground. Cursor is EMPTY\");\n }\n //get a cursor containing all data on given entry\n return cursor;\n }", "public SharedMemory infos();", "public ContactInfo getContactInfo() {\n\n return contactInfo;\n }", "ApplicationData getActualAppData();", "public void setShared(boolean shared) {\n this.shared = shared;\n }", "public void run() {\n String str;\n String str2 = str;\n boolean z = jSONArray.length() > 1;\n final Intent intent = new Intent(z ? \"android.intent.action.SEND_MULTIPLE\" : \"android.intent.action.SEND\");\n final PendingIntent broadcast = PendingIntent.getBroadcast(SocialSharing.this.cordova.getActivity().getApplicationContext(), 0, new Intent(SocialSharing.this.cordova.getActivity().getApplicationContext(), ShareChooserPendingIntent.class), 134217728);\n intent.addFlags(524288);\n String str3 = null;\n try {\n if (jSONArray.length() <= 0 || \"\".equals(jSONArray.getString(0))) {\n intent.setType(\"text/plain\");\n if (SocialSharing.notEmpty(str2)) {\n intent.putExtra(\"android.intent.extra.SUBJECT\", str2);\n }\n if (SocialSharing.notEmpty(str3)) {\n str2 = SocialSharing.notEmpty(str2) ? str2 + \" \" + str3 : str3;\n }\n if (SocialSharing.notEmpty(str2)) {\n intent.putExtra(\"android.intent.extra.TEXT\", str2);\n if (Build.VERSION.SDK_INT < 21) {\n intent.putExtra(\"sms_body\", str2);\n }\n }\n intent.addFlags(268435456);\n str = str4;\n if (str == null) {\n if (str.contains(\"/\")) {\n String[] split = str4.split(\"/\");\n String str4 = split[0];\n str3 = split[1];\n str = str4;\n }\n ActivityInfo activity = SocialSharing.this.getActivity(this.callbackContext, intent, str, str6);\n if (activity == null) {\n return;\n }\n if (z) {\n this.callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK));\n return;\n }\n intent.addCategory(\"android.intent.category.LAUNCHER\");\n String str5 = activity.applicationInfo.packageName;\n if (str3 == null) {\n str3 = activity.name;\n }\n intent.setComponent(new ComponentName(str5, str3));\n SocialSharing.this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass1 */\n\n public void run() {\n cordovaInterface.startActivityForResult(this, intent, 0);\n }\n });\n if (SocialSharing.this.pasteMessage != null) {\n new Timer().schedule(new TimerTask() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass2 */\n\n public void run() {\n SocialSharing.this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass2.AnonymousClass1 */\n\n public void run() {\n SocialSharing.this.copyHintToClipboard(str, SocialSharing.this.pasteMessage);\n SocialSharing.this.showPasteMessage(SocialSharing.this.pasteMessage);\n }\n });\n }\n }, 2000);\n }\n } else if (z) {\n this.callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK));\n } else {\n SocialSharing.this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass3 */\n\n public void run() {\n Intent intent;\n if (Build.VERSION.SDK_INT >= 22) {\n intent = Intent.createChooser(intent, str5, broadcast.getIntentSender());\n } else {\n intent = Intent.createChooser(intent, str5);\n }\n cordovaInterface.startActivityForResult(this, intent, z2 ? 1 : 2);\n }\n });\n }\n } else {\n String downloadDir = SocialSharing.this.getDownloadDir();\n if (downloadDir != null) {\n ArrayList arrayList = new ArrayList();\n Uri uri = null;\n for (int i = 0; i < jSONArray.length(); i++) {\n uri = FileProvider.getUriForFile(SocialSharing.this.webView.getContext(), SocialSharing.this.cordova.getActivity().getPackageName() + \".sharing.provider\", new File(SocialSharing.this.getFileUriAndSetType(intent, downloadDir, jSONArray.getString(i), str2, i).getPath()));\n arrayList.add(uri);\n }\n if (!arrayList.isEmpty()) {\n if (z) {\n intent.putExtra(\"android.intent.extra.STREAM\", arrayList);\n } else {\n intent.putExtra(\"android.intent.extra.STREAM\", uri);\n }\n }\n } else {\n intent.setType(\"text/plain\");\n }\n if (SocialSharing.notEmpty(str2)) {\n }\n if (SocialSharing.notEmpty(str3)) {\n }\n if (SocialSharing.notEmpty(str2)) {\n }\n intent.addFlags(268435456);\n str = str4;\n if (str == null) {\n }\n }\n } catch (Exception e) {\n this.callbackContext.error(e.getMessage());\n }\n }", "private void BundleData(Intent intent) {\n bundle=new Bundle();\n bundle.putString(\"FNAME\",fname);\n bundle.putString(\"LNAME\",lname);\n bundle.putString(\"LOCALITY\",locality);\n bundle.putString(\"CITY\",city);\n bundle.putInt(\"PINCODE\",pincode);\n bundle.putString(\"TIME_TO_CALL\",timers);\n bundle.putString(\"PHONE\",phone);\n bundle.putString(\"ALTPHONE\",altphone);\n bundle.putString(\"EMAIL\",emailid);\n intent.putExtras(bundle);\n }", "private void getUser(){\n user = new User();\n SharedPreferences preferences = getSharedPreferences(\"account\", MODE_PRIVATE);\n user.setId(preferences.getInt(\"id\", 0));\n user.setPhone(preferences.getString(\"phone\", \"\"));\n user.setType(preferences.getInt(\"type\",0));\n }", "private CCData getCCData(CallerContext cc)\n {\n synchronized (implObject)\n {\n // Retrieve the data for the caller context\n CCData data = (CCData) cc.getCallbackData(implObject);\n\n // If a data block has not yet been assigned to this caller context\n // then allocate one and add this caller context to ccList.\n if (data == null)\n {\n data = new CCData();\n cc.addCallbackData(data, implObject);\n ccList = CallerContext.Multicaster.add(ccList, cc);\n }\n return data;\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tSharedPreferences share = getSharedPreferences(\"BBGJ_UserInfo\",\r\n\t\t\t\t\tActivity.MODE_WORLD_READABLE);\r\n\t\t\tint comId = share.getInt(\"comId\", 0);\r\n\t\t\tBBGJDB tdd = new BBGJDB(context);\r\n\t\t\tString qurl = MessengerService.URL;\r\n\t\t\tString qmethodname = MessengerService.METHOD_GETVIDEOINFO;\r\n\t\t\tString qnamespace = MessengerService.NAMESPACE;\r\n\t\t\tString qsoapaction = qnamespace + \"/\" + qmethodname;\r\n\r\n\t\t\tSoapObject rpc = new SoapObject(qnamespace, qmethodname);\r\n\t\t\trpc.addProperty(\"pagesize\", 1000);\r\n\t\t\trpc.addProperty(\"pageindex\", 1);\r\n\t\t\trpc.addProperty(\"comId\", comId);\r\n\t\t\tSoapSerializationEnvelope envelope = new SoapSerializationEnvelope(\r\n\t\t\t\t\tSoapEnvelope.VER11);\r\n\t\t\tenvelope.bodyOut = rpc;\r\n\t\t\tenvelope.dotNet = true;\r\n\t\t\tenvelope.setOutputSoapObject(rpc);\r\n\t\t\tHttpTransportSE ht = new HttpTransportSE(qurl);\r\n\t\t\tht.debug = true;\r\n\t\t\ttry {\r\n\t\t\t\tht.call(qsoapaction, envelope);\r\n\t\t\t\tSoapObject journal = (SoapObject) envelope.bodyIn;\r\n\t\t\t\tfor (int i = 0; i < journal.getPropertyCount(); i++) {\r\n\t\t\t\t\tSoapObject soapchilds = (SoapObject) journal.getProperty(i);\r\n\t\t\t\t\tfor (int j = 0; j < soapchilds.getPropertyCount(); j++) {\r\n\t\t\t\t\t\tSoapObject soapchildsson = (SoapObject) soapchilds\r\n\t\t\t\t\t\t\t\t.getProperty(j);\r\n\r\n\t\t\t\t\t\tString webid = soapchildsson.getProperty(\"Id\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\tString title = soapchildsson.getProperty(\"Title\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\tString pic = soapchildsson.getProperty(\"Pic\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\tString video = soapchildsson.getProperty(\"Video\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\tString extension = soapchildsson.getProperty(\r\n\t\t\t\t\t\t\t\t\"Extension\").toString();\r\n\t\t\t\t\t\tString size = soapchildsson.getProperty(\"Size\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\tString content = soapchildsson.getProperty(\"Content\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\tString crtime = soapchildsson.getProperty(\"Crtime\")\r\n\t\t\t\t\t\t\t\t.toString();\r\n\r\n\t\t\t\t\t\tContentValues values = new ContentValues();\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_WEBID, webid);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_TITLE, title);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_PIC, pic);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_VIDEO, video);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_EXTENSION, extension);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_SIZE, size);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_CONTENT, content);\r\n\t\t\t\t\t\tvalues.put(tdd.VIDEO_CRTIME, crtime);\r\n\t\t\t\t\t\tlong aaa = tdd.insertvideo(values);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\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} catch (XmlPullParserException 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\tMessage msg = new Message();\r\n\t\t\tmsg.obj = lvbt;\r\n\t\t\tthreadMessageHandler.sendMessage(msg);\r\n\t\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t/**\n\t\t * Get Extra values\n\t\t */\n\t\tBundle b = getIntent().getExtras();\n\t\tif (b != null) {\n\t\t\tKEY_IS_SHARING = b.getBoolean(Const.KEY_IS_SHARING, false);\n\t\t\tKEY_IS_SHARE_SONG = b.getInt(Const.KEY_SHARE_TYPE,\n\t\t\t\t\tShareUtility.TYPE_SONG) == ShareUtility.TYPE_SONG;\n\t\t\tSHARING_OBJECT_ID = b.getInt(Const.KEY_SHARE_VALUE, 0);\n\t\t\tif (KEY_IS_SHARING) {\n\t\t\t\tbtn_Addfriend\n\t\t\t\t.setBackgroundResource(R.drawable.selector_button_share);\n\t\t\t\tbtn_Addfriend.setText(\"Chia sẻ\");\n\t\t\t}\n\t\t}\n\t\tif (KEY_IS_SHARING || KEY_BACK_FROM_SHARE\n\t\t\t\t|| !MSISDN.equals(datastore.getMsisdn())) {\n\t\t\tfriend_adapter = null;\n\t\t\tfan_adapter = null;\n\t\t}\n\t\tif (KEY_BACK_FROM_PROFILE || !MSISDN.equals(datastore.getMsisdn())) {\n\t\t\tswitch (tab_interested_fan.getCheckedRadioButtonId()) {\n\t\t\tcase R.id.btn_Interested:\n\t\t\t\tif(KEY_IS_SEARCHING) {\n\t\t\t\t\tfriend_search_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_SEARCHING, 0, false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfriend_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING, 0, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_Fan:\n\t\t\t\tif(KEY_IS_SEARCHING) {\n\t\t\t\t\tfan_search_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_SEARCHING, 0, false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfan_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_LISTING, 0, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else\n\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING, 0, false);\n\t}", "@Override public void onActivityResult(int req, int res, Intent data) {\n switch (req) {\n case REQUEST_SELECT_CONTACT:\n if (res == RESULT_OK) {\n mContactId = data.getIntExtra(Contact.ID, Contact.INVALID_ID);\n }\n // Give up sharing the send_message if the user didn't choose a contact.\n if (mContactId == Contact.INVALID_ID) {\n finish();\n return;\n }\n prepareUI();\n break;\n default:\n super.onActivityResult(req, res, data);\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t\tif (requestCode == CONTACT_PICKER_RESULT) {\n\t\t\t\n\t\t\tif (resultCode == Activity.RESULT_OK) {\n\t \t \n\t Cursor cursor = null;\n\n\t try {\n\t Uri result = data.getData();\n\t \n\t String contact_name = \"\";\n\t String contact_num = \"\";\n\t \n\t //Get Name\n\t cursor = getActivity().getContentResolver().query(result, null, null, null, null);\n\t if (cursor.moveToFirst()) {\n\t \n\t \t// this is the contact name picked by the user\n\t \tcontact_name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\t \t\n\t \t/* THE FOLLOWING CODE QUERIES AGAIN WITH THE ID TO GET THE PHONE NUMBER\n\t \t */\n\t \t\n\t \tString contactId = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n\t \t\n\t \tCursor c1 = getActivity().getContentResolver().query(Data.CONTENT_URI,\n\t \t\t new String[] {Data._ID, Phone.NUMBER, Phone.TYPE, Phone.LABEL},\n\t \t\t Data.CONTACT_ID + \"=?\" + \" AND \"\n\t \t\t + Data.MIMETYPE + \"='\" + Phone.CONTENT_ITEM_TYPE + \"'\",\n\t \t\t new String[] {String.valueOf(contactId)}, null);\n\t \t\tc1.moveToFirst();\n\t \t\n\t \tcontact_num = c1.getString(1);\n\t \t\n\t \tToast.makeText(\n getActivity(),\n \"You've picked: \"+contact_name+\"\\nas your response.\\nPress next button to continue\",\n Toast.LENGTH_SHORT).show();\n\t \t\n\t \t//hash the contact number as response\n\t \tcontact_num = Encoder.hashPhoneNumber(contact_num);\n\t \t\n\t \t//setting the response for that survey question\n\t \t\t\t\teventbean.setTieResponse(contact_num);\n\t \t\n\t\t\t\t\t\tresponse_tv.setText(contact_name);\n\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t \t} \n\t }catch (Exception e) {Log.w(\"debugtag\", \"Warning: contact picker error\");}\n\t \n\t\t\t\t}else{Log.w(\"debugtag\", \"Warning: activity result not ok\");}\n\t\t\t}\n\t\t\n\t}", "Object getCurrentData();", "private void getTransferDataFromActivity() {\n Gson gson = new Gson();\n manageRest_manageDish = getIntent();\n transferData = manageRest_manageDish.getExtras();\n\n rest_id = transferData.getInt(\"restID\");\n String dishJSON = transferData.getString(\"dishJSON\");\n dish = gson.fromJson(dishJSON, Dish.class);\n\n // Check null pointer and shut down activity\n if (dish == null) {\n Toast.makeText(this,\n \"Dish object is null. Are you forgot to create it?\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n\n if (!dish.getUrlImage().isEmpty())\n imagesUri.add(Uri.parse(dish.getUrlImage()));\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Shared \"+id;\n\t}", "static synchronized SharedPreferences m45630a(Context context) {\n synchronized (C7529d.class) {\n if (Build.VERSION.SDK_INT >= 11) {\n f31839a = context.getSharedPreferences(\".tpush_mta\", 4);\n } else {\n f31839a = context.getSharedPreferences(\".tpush_mta\", 0);\n }\n if (f31839a == null) {\n f31839a = PreferenceManager.getDefaultSharedPreferences(context);\n }\n return f31839a;\n }\n }" ]
[ "0.653829", "0.6441773", "0.63521385", "0.60727453", "0.6008678", "0.5929861", "0.590332", "0.58575255", "0.58559775", "0.58555037", "0.57967466", "0.57899106", "0.57465494", "0.5704947", "0.5678368", "0.5671453", "0.56426054", "0.5628212", "0.55985415", "0.5580397", "0.5561251", "0.5519867", "0.5490065", "0.5488069", "0.54862386", "0.54847693", "0.544194", "0.5401746", "0.54007125", "0.53992665", "0.53921056", "0.53736275", "0.5372942", "0.5368846", "0.5363027", "0.5350602", "0.52558595", "0.5247602", "0.52356493", "0.5230666", "0.52159846", "0.52156776", "0.5211681", "0.52048194", "0.5194484", "0.5193676", "0.5190507", "0.5188099", "0.5187221", "0.51839566", "0.51710147", "0.51328206", "0.51245135", "0.5119676", "0.5102419", "0.50973356", "0.50933033", "0.50919366", "0.50876725", "0.50863695", "0.50863695", "0.50804263", "0.507746", "0.50730735", "0.50694495", "0.5064319", "0.5063065", "0.50615585", "0.50607026", "0.50586194", "0.5058383", "0.50573707", "0.5051285", "0.50469553", "0.5043138", "0.50380915", "0.50261956", "0.50244504", "0.50204635", "0.5018004", "0.50154155", "0.50143296", "0.49974403", "0.49952957", "0.4977532", "0.4971696", "0.4970621", "0.49656397", "0.49630705", "0.4960449", "0.49474037", "0.4935262", "0.49263862", "0.49258858", "0.4923229", "0.4897694", "0.48934835", "0.48900253", "0.48888537", "0.48866194" ]
0.5237079
38
TODO Autogenerated method stub
public Builder withFileProcessor(FileProcessor fileProcessor) throws IOException, NullPointerException, FileNotFoundException { String[] sentenceList = fileProcessor.readLine().split("\\."); for (int i = 0; i < sentenceList.length; i++) { String trimmedWord = sentenceList[i].trim(); String pattern = "[a-zA-Z\\.\\s]+"; if (trimmedWord.matches(pattern)) { MyElement obj = new MyElement(trimmedWord); sentenceArrayLst.add(obj); } else{ System.out.println("Please Enter the Input file with valid characters"); } } return new Builder(); }
{ "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
Accept method to accept the visitor
@Override public void accept(Visitor visitor) throws FileNotFoundException, IOException { for (Element e : sentenceArrayLst) { ((Element) e).accept(visitor); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void accept(Visitor visitor);", "public void accept(Visitor visitor);", "public abstract void accept(Visitor v);", "void accept(Visitor visitor);", "public void accept(IVisitor visitor);", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "void accept(Visitor<V> visitor);", "public Object accept(Visitor v, Object params);", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "void visit(Visitor visitor);", "@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "public abstract void visit();", "@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "@Override\n public void accept(TreeVisitor visitor) {\n }", "@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\n\tpublic void accept(TreeVisitor visitor) {\n\n\t}", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "public void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\r\n \tpublic final void accept(IASTNeoVisitor visitor) {\r\n \t\tassertNotNull(visitor);\r\n \t\t\r\n \t\t// begin with the generic pre-visit\r\n \t\tif(visitor.preVisit(this)) {\r\n \t\t\t// dynamic dispatch to internal method for type-specific visit/endVisit\r\n \t\t\taccept0(visitor);\r\n \t\t}\r\n \t\t// end with the generic post-visit\r\n \t\tvisitor.postVisit(this);\r\n \t}", "@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }", "@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }", "public abstract <E, F, D, I> E accept(ReturnVisitor<E, F, D, I> visitor);", "public Object accept (Visitor v) {\n return v.visit(this);\n }", "public abstract void accept0(IASTNeoVisitor visitor);", "public void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "public abstract void accept(CodeVisitor v);", "public void accept(ExpressionNodeVisitor visitor);", "public abstract void visit(V v) throws VisitorException;", "<R,D> R accept(TreeVisitor<R,D> visitor, D data);", "@Override\n\tpublic <T> T accept(ASTVisitor<T> v) {\n\t\treturn v.visit(this);\n\t}", "public void accept(ParseNodeVisitor visitor) {\n visitor.visit(this);\n }", "interface VisitorAccept {\n\t/**\n\t * Methode permettant d'accepter le visiteur.\n\t * \n\t * @param visitor\n\t * ; MessageVisitor\n\t */\n\tpublic void accept(MessageVisitor visitor);\n}", "<R> R accept(ValueVisitor<R> visitor);", "public abstract void accept(GameObjectVisitor v);", "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }", "public interface Visitor {\n\t/* METHODS */\n\t/**\n\t * Visits a Liquor.\n\t * @param liquor The Liquor to visit.\n\t */\n\tvoid visit(Liquor liquor);\n\t\n\t/**\n\t * Visits a Tobacco.\n\t * @param tobacco The Tobacco to visit.\n\t */\n\tvoid visit(Tobacco tobacco);\n\t\n\t/**\n\t * Visits a Necessity.\n\t * @param necessity The Necessity to visit.\n\t */\n\tvoid visit(Necessity necessity);\n}", "public void accept(MessageVisitor visitor);", "public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }", "public void accept(Visitor v, Context c) {\n\t\tv.visit(this, c);\n\t}", "void accept(TmxElementVisitor visitor);", "public Object accept(FilterVisitor visitor, Object extraData) {\n \treturn visitor.visit(this,extraData);\n }", "public Object accept(ExpressionNodeVisitor visitor) {\n\t\t\n\t\treturn visitor.visit(this);\n\t\t\n\t}", "@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }", "@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}", "public abstract double accept(TopologyVisitor visitor);", "public <C> void accept(Visitor<B> visitor, Class<C> clz);", "public abstract void accept(PhysicalPlanVisitor visitor);", "void accept(Visitor visitor, BufferedImage im);", "@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\npublic interface Visitor {\n /**\n * <p>\n * Visits the given <code>Document</code>\n * </p>\n * \n * @param document\n * is the <code>Document</code> node to visit.\n */\n void visit(Document document);\n\n /**\n * <p>\n * Visits the given <code>DocumentType</code>\n * </p>\n * \n * @param documentType\n * is the <code>DocumentType</code> node to visit.\n */\n void visit(DocumentType documentType);\n\n /**\n * <p>\n * Visits the given <code>Element</code>\n * </p>\n * \n * @param node\n * is the <code>Element</code> node to visit.\n */\n void visit(Element node);\n\n /**\n * <p>\n * Visits the given <code>Attribute</code>\n * </p>\n * \n * @param node\n * is the <code>Attribute</code> node to visit.\n */\n void visit(Attribute node);\n\n /**\n * <p>\n * Visits the given <code>CDATA</code>\n * </p>\n * \n * @param node\n * is the <code>CDATA</code> node to visit.\n */\n void visit(CDATA node);\n\n /**\n * <p>\n * Visits the given <code>Comment</code>\n * </p>\n * \n * @param node\n * is the <code>Comment</code> node to visit.\n */\n void visit(Comment node);\n\n /**\n * <p>\n * Visits the given <code>Entity</code>\n * </p>\n * \n * @param node\n * is the <code>Entity</code> node to visit.\n */\n void visit(Entity node);\n\n /**\n * <p>\n * Visits the given <code>Namespace</code>\n * </p>\n * \n * @param namespace\n * is the <code>Namespace</code> node to visit.\n */\n void visit(Namespace namespace);\n\n /**\n * <p>\n * Visits the given <code>ProcessingInstruction</code>\n * </p>\n * \n * @param node\n * is the <code>ProcessingInstruction</code> node to visit.\n */\n void visit(ProcessingInstruction node);\n\n /**\n * <p>\n * Visits the given <code>Text</code>\n * </p>\n * \n * @param node\n * is the <code>Text</code> node to visit.\n */\n void visit(Text node);\n}", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "void accept(final CarElementVisitor visitor);", "@Override\n public void accept(final SqlNodeVisitor<E> visitor) throws SQLException {\n visitor.visit(this);\n }", "public interface Visitor {\n void accept(Element element);\n}", "public void accept(Visitor v) {\n/* 103 */ v.visitLoadClass(this);\n/* 104 */ v.visitAllocationInstruction(this);\n/* 105 */ v.visitExceptionThrower(this);\n/* 106 */ v.visitStackProducer(this);\n/* 107 */ v.visitTypedInstruction(this);\n/* 108 */ v.visitCPInstruction(this);\n/* 109 */ v.visitNEW(this);\n/* */ }", "public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}", "public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}", "public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}", "void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, this.typeArguments);\n acceptChild(visitor, getName());\n }\n visitor.endVisit(this);\n }", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "void accept0(ASTVisitor visitor) {\r\n\t\tboolean visitChildren = visitor.visit(this);\r\n\t\tif (visitChildren) {\r\n\t\t\t// visit children in normal left to right reading order\r\n\t\t\tacceptChild(visitor, getExpression());\r\n\t\t\tacceptChildren(visitor, newArguments);\r\n\t\t\tacceptChildren(visitor, constructorArguments);\r\n\t\t\tacceptChildren(visitor, baseClasses);\r\n\t\t\tacceptChildren(visitor, declarations);\r\n\t\t}\r\n\t\tvisitor.endVisit(this);\r\n\t}", "public interface Visitable {\n\n\tpublic double accept(Visitor visitor);\n}", "Object visitorResponse();", "public interface Visitor {\n //----------------------------------------------------------------------------------- \n\n /**\n * Visit method to handle <code>Assignment</code> elements.\n * \n * @param assignment Assignment object to be handled.\n */\n void visit(final Assignment assignment);\n\n /**\n * Visit method to handle <code>Delete</code> elements.\n * \n * @param delete Delete object to be handled.\n */\n void visit(final Delete delete);\n\n /**\n * Visit method to handle <code>Insert</code> elements.\n * \n * @param insert Insert object to be handled.\n */\n void visit(final Insert insert);\n\n /**\n * Visit method to handle <code>Join</code> elements.\n * \n * @param join Join object to be handled\n */\n void visit(final Join join);\n\n /**\n * Visit method to handle select elements.\n * \n * @param select Select object to be handled.\n */\n void visit(final Select select);\n\n /**\n * Visit method to handle <code>Table</code> elements.\n * \n * @param table Table object to be handled.\n */\n void visit(final Table table);\n\n /**\n * Visit method to handle <code>TableAlias</code> elements.\n * \n * @param tableAlias TableAlias object to be handled.\n */\n void visit(final TableAlias tableAlias);\n\n /**\n * Visit method to handle update elements.\n * \n * @param update Update object to be handled.\n */\n void visit(final Update update);\n\n /**\n * Visit method to handle <code>AndCondition</code> elements.\n * \n * @param andCondition AndCondition object to be handled.\n */\n void visit(final AndCondition andCondition);\n\n /**\n * Visit method to handle <code>Compare</code> elements.\n * \n * @param compare Compare object to be handled.\n */\n void visit(final Compare compare);\n\n /**\n * Visit method to handle <code>IsNullPredicate</code> elements.\n * \n * @param isNullPredicate IsNullPredicate object to be handled.\n */\n void visit(final IsNullPredicate isNullPredicate);\n\n /**\n * Visit method to handle <code>OrCondition</code> elements.\n * \n * @param orCondition OrCondition object to be handled.\n */\n void visit(final OrCondition orCondition);\n\n /**\n * Visit method to handle <code>Column</code> elements.\n * \n * @param column Column object to be handled.\n */\n void visit(final Column column);\n\n /**\n * Visit method to handle <code>NextVal</code> elements.\n * \n * @param nextVal NextVal object to be handled.\n */\n void visit(final NextVal nextVal);\n\n /**\n * Visit method to handle <code>Parameter</code> elements.\n * \n * @param parameter Parameter object to be handled.\n */\n void visit(final Parameter parameter);\n\n //-----------------------------------------------------------------------------------\n\n /**\n * Method returning constructed String.\n * \n * @return Constructed query string.\n */\n String toString();\n\n //----------------------------------------------------------------------------------- \n}", "public void acceptVisit(BCVisitor visit) {\n visit.enterBCMethod(this);\n visitAttributes(visit);\n visit.exitBCMethod(this);\n }", "public interface Visitor {\r\n \r\n /**\r\n * Visits an Operand and performs the action given when overriding\r\n * this method.\r\n * @param operand An Operand this Visitor has visited\r\n * @return \r\n * @see Operand\r\n */\r\n public void visit(Operand operand);\r\n \r\n /**\r\n * Visits an Operator and performs the action given when overriding\r\n * this method.\r\n * @param operator An Operator this Visitor has visited.\r\n * @see Operator\r\n */\r\n public void visit(Operator operator);\r\n \r\n}", "public interface Visitable {\n public boolean accept(Visitor v);\n}", "@Override\n\tpublic void accept(WhereNodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public void visit(Request r);", "void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChildren(visitor, initializers);\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, updaters);\n acceptChild(visitor, getBody()); }\n visitor.endVisit(this); }", "public abstract int visit(SpatialVisitor visitor);", "public void visit(Choke c);", "public interface Visitor {\n\tpublic void visit(WordTreeI wt);\n}", "@Override\r\n public void accept(IPropertyValueVisitor visitor) {\r\n // attributes\r\n _acceptSingleAttribute(java.lang.String.class, cleon.projectmethods.hermes.metamodel.spec.modules.projectmanagement.planning.scope.workpackage.backlog.BacklogPackage.Text_date, visitor);\r\n _acceptSingleAttribute(java.lang.String.class, cleon.projectmethods.hermes.metamodel.spec.modules.projectmanagement.planning.scope.workpackage.backlog.BacklogPackage.Text_text, visitor);\r\n // relations\r\n _acceptSingle(ch.actifsource.core.javamodel.IClass.class, ch.actifsource.core.CorePackage.Resource_typeOf, visitor);\r\n _acceptSingle(cleon.projectmethods.hermes.metamodel.spec.modules.projectmanagement.resource.persons.javamodel.IPerson.class, cleon.projectmethods.hermes.metamodel.spec.modules.projectmanagement.planning.scope.workpackage.backlog.BacklogPackage.Text_writer, visitor);\r\n }", "@Override\n\tpublic void visited(ComputerPartVisitor visitor) {\n\t\tvisitor.visit(this);\n\t\t\n\t}", "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "interface CarElement {\n // the element being visited accepts the visitor\n void accept(final CarElementVisitor visitor);\n}", "@Override\n public void accept(IPropertyValueVisitor visitor) {\n // attributes\n _acceptSingleAttribute(java.lang.String.class, ch.actifsource.core.CorePackage.NamedResource_name, visitor);\n // relations\n _acceptList(com.actifsource.simpleservice.generic.javamodel.IMyParameter.class, com.actifsource.simpleservice.generic.GenericPackage.myCall_parameter, visitor);\n _acceptSingle(com.actifsource.simpleservice.generic.javamodel.IMyType.class, com.actifsource.simpleservice.generic.GenericPackage.myCall_returnType, visitor);\n _acceptSingle(ch.actifsource.core.javamodel.IClass.class, ch.actifsource.core.CorePackage.Resource_typeOf, visitor);\n }", "@Override\n\tpublic void visit(Matches arg0) {\n\n\t}", "@Override\r\n\tpublic void accept(iRenderVisitor visitor) {\n\t\tvisitor.render(this);\r\n\t\t\r\n\t}", "@Override\n public void accept(VisitorMessageFromServer visitorMessageFromServer) {\n visitorMessageFromServer.visit(this);\n }", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "public void accept(uWDLVisitor v) {\n\t\tv.visit(this);\r\n\t}", "public interface Visitor extends DLABoxAxiom.Visitor, DLTBoxAxiom.Visitor {\n\n\t}", "void visit(Element node);", "public interface IGraphvizFormatterVisitable {\n\n String accept(AGraphvizFormatter visitor);\n\n}", "boolean accept(GenericVisitor<Boolean> visitor);", "interface MessageVisitor {\n\t/**\n\t * Methode de visite du Message\n\t * \n\t * @param message\n\t * : Message\n\t */\n\tpublic void visit(Message message);\n\n\t/**\n\t * Methode de visite du BitField\n\t * \n\t * @param bf\n\t * : BitField\n\t */\n\tpublic void visit(BitField bf);\n\n\t/**\n\t * Methode de visite du Choke\n\t * \n\t * @param c\n\t * ; Choke\n\t */\n\tpublic void visit(Choke c);\n\n\t/**\n\t * Methode de visite du Have\n\t * \n\t * @param h\n\t * : Have\n\t */\n\tpublic void visit(Have h);\n\n\t/**\n\t * Methode de visite du Interested\n\t * \n\t * @param i\n\t * : Interested\n\t */\n\tpublic void visit(Interested i);\n\n\t/**\n\t * Methode de visite du KeepAlive\n\t * \n\t * @param ka\n\t * : KeepAlive\n\t */\n\tpublic void visit(KeepAlive ka);\n\n\t/**\n\t * Methode de visite du NotInterested\n\t * \n\t * @param ni\n\t * : NotInterested\n\t */\n\tpublic void visit(NotInterested ni);\n\n\t/**\n\t * Methode de visite du Request\n\t * \n\t * @param r\n\t * : Request\n\t */\n\tpublic void visit(Request r);\n\n\t/**\n\t * Methode de visite du SendBlock\n\t * \n\t * @param sb\n\t * : SendBlock\n\t */\n\tpublic void visit(SendBlock sb);\n\n\t/**\n\t * Methode de visite du Unchoke\n\t * \n\t * @param uc\n\t * : Unchoke\n\t */\n\tpublic void visit(Unchoke uc);\n\t\n\tpublic void visit(SendRSAKey srsak);\n\t\n\tpublic void visit(SendSymmetricKey ssyk);\n}", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n for (Step step : steps) {\n step.accept(visitor);\n }\n }", "public Visitor() {}", "void visit(User user);", "public void visit()\n\t{\n\t\t// Visit data element.\n\t\tcargo.visit();\n\t}", "@Override\n\tpublic Object visit(SimpleNode node, Object data)\n\t{\n\t\t//Delegate to the appropriate class\n\t\treturn node.jjtAccept(this, data);\n\t}" ]
[ "0.8497198", "0.8368343", "0.824339", "0.8119222", "0.8010293", "0.79943144", "0.7914533", "0.79072976", "0.7879103", "0.7809967", "0.7809967", "0.7744914", "0.77223945", "0.7704816", "0.76914215", "0.76707125", "0.75965345", "0.7547948", "0.7523831", "0.7505709", "0.7481668", "0.74690384", "0.7409083", "0.7392455", "0.7367853", "0.73574924", "0.72913444", "0.72183037", "0.72143185", "0.7092227", "0.70812035", "0.703873", "0.7018511", "0.7008804", "0.6961419", "0.69501066", "0.6937312", "0.69280493", "0.68430513", "0.6811793", "0.6810532", "0.68083185", "0.68017256", "0.6791816", "0.67874503", "0.67614514", "0.67477286", "0.67446214", "0.67192334", "0.66881055", "0.6627233", "0.6602713", "0.6584689", "0.6581333", "0.6572615", "0.65469027", "0.65469027", "0.6540773", "0.65306425", "0.6528774", "0.6528279", "0.6513855", "0.6513855", "0.6513855", "0.6506667", "0.65047956", "0.6496504", "0.64905876", "0.64615005", "0.6460272", "0.6448376", "0.6442536", "0.6435367", "0.6429016", "0.6411633", "0.6389487", "0.638664", "0.6381583", "0.63815", "0.6371727", "0.63604456", "0.63515604", "0.6338091", "0.63267624", "0.63121134", "0.6295212", "0.6281499", "0.6264443", "0.6211994", "0.6207598", "0.62066007", "0.62038755", "0.6198145", "0.6189153", "0.6172036", "0.616649", "0.61630625", "0.61623204", "0.6161524", "0.61585826", "0.61399835" ]
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { String header = this.header.toString(); String preHeader = ""; if (this.preHeader != null) preHeader = this.preHeader.toString(); String backjump = this.backJump.toString(); String loopStmts = loopStatements.toString(); String loop = "[\n header = " + header + "\n preHeader = " + preHeader + "\n backjump = " + backjump + "\n loopStatements = " + loopStmts + " \n]"; // return super.toString(); return loop; }
{ "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
A loop has a preheader if there is only one edge to the header of the loop from outside of the loop. If this is the case, the block branching to the header of the loop is the preheader node.
public Stmt getPreHead() { return preHeader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "public abstract boolean isFirstLineHeader();", "public void forceNotInsideHeader() {\n insideHeader = false;\n }", "static Boolean detectloop(Node Header){\n Node slow_pointer = Header;\n Node fast_pointer = Header;\n while(slow_pointer!=null && fast_pointer!=null && fast_pointer.link!=null){\n slow_pointer=slow_pointer.link;\n fast_pointer=fast_pointer.link.link;\n if(slow_pointer==fast_pointer){\n return true;\n }\n }\n return false;\n }", "public void inorderTraversal() \n { \n inorderTraversal(header.rightChild); \n }", "private void rewindBlockIteratorToFirstInlineeBlock(\n ListIterator<BasicBlock> blockIterator, BasicBlock firstInlineeBlock) {\n while (blockIterator.hasPrevious() && blockIterator.previous() != firstInlineeBlock) {\n // Do nothing.\n }\n assert IteratorUtils.peekNext(blockIterator) == firstInlineeBlock;\n }", "public boolean skipHeader() {\n return skipHeader;\n }", "private void skipHeader() throws IOException {\n // The header contains two dashed lines; the data begins\n // immediately after the second dashed line...\n //\n readToDashedLine();\n readToDashedLine();\n }", "public LinkedList<BST> readHeader() {\n\t\tLinkedList<BST> leaves = new LinkedList<>();\n\t\n\t\tint codesProcessed;\t\t//Number of look-up items added to tree\n\n\t\t/*\n\t\t * Basic check: does header start with SOH byte?\n\t\t */\n\t\tgrabBits(8);\n\t\tif (!proc.equals(\"00000001\")) {\n\t\t\tSystem.out.println(\"File is corrupted or not compressed\");\n\t\t\treturn null;\n\t\t}\n\t\tSystem.out.println(proc);\n\t\tclear();\n\n\t\t/*\n\t\t * Determine number of codes to process.\n\t\t * Offset by +2 to allow for 257 unique codes.\n\t\t */\n\t\tgrabBits(8);\n\t\tint numCodes = Integer.parseInt(proc, 2) + 2;\n\t\tSystem.out.println(proc);\n\t\tclear();\n\n\t\t/*\n\t\t * Process look-up codes, reading NULL byte first\n\t\t */\n\t\tfor (int i = 0; i < numCodes; i++) {\n\t\t\t/* Get bitstring character code */\n\t\t\tif (i == 0) {\n\t\t\t\tgrabBits(4);\t//Null byte\n\t\t\t} else {\n\t\t\t\tgrabBits(8);\t//Regular byte\n\t\t\t}\n\t\t\tString bitstring = proc;\n\t\t\tSystem.out.print(bitstring + \"\\t\");\n\t\t\tclear();\n\n\t\t\t/* Get Huffman code length */\n\t\t\tgrabBits(8);\n\t\t\tint length = Integer.parseInt(proc, 2);\n\t\t\tSystem.out.print(length + \"\\t\");\n\t\t\tclear();\n\n\t\t\t/* Get Huffman code */\n\t\t\tgrabBits(length);\n\t\t\tString code = proc;\n\t\t\tSystem.out.println(code);\n\t\t\tclear();\n\n\t\t\t/* Build BST leaf for letter */\n\t\t\tBST leaf = new BST();\n\t\t\tBits symbol = new Bits(bitstring);\n\t\t\tsymbol.setCode(code);\n\t\t\tleaf.update(symbol);\n\t\t\tleaves.add(leaf);\n\t\t}\n\n\t\t/*\n\t\t * Does header end with STX byte?\n\t\t */\n\t\tgrabBits(8);\n\t\tif (!proc.equals(\"00000010\")) {\n\t\t\tSystem.out.println(\"Header corrupt: end of header without STX\");\n\t\t\treturn null;\n\t\t}\n\t\tclear();\n\n\t\treturn leaves;\n\t}", "default boolean visitHeader() {\n\t\treturn true;\n\t}", "@Override\n public RaftNode getHeader() {\n return allNodes.getHeader();\n }", "private void readHeader() throws IOException, PlayerException {\n boolean finished = false;\n int packet = 1;\n\n while (!finished) {\n count = audioIn.read(buffer, index, BUFFER_SIZE);\n joggSyncState.wrote(count);\n\n int result = joggSyncState.pageout(joggPage);\n if (result == -1) {\n throw new HoleInDataException();\n } else if (result == 0) {\n // Read more\n } else if (result == 1) {\n if (packet == 1) {\n joggStreamState.init(joggPage.serialno());\n joggStreamState.reset();\n\n jorbisInfo.init();\n jorbisComment.init();\n }\n\n if (joggStreamState.pagein(joggPage) == -1)\n throw new PlayerException();\n\n if (joggStreamState.packetout(joggPacket) == -1)\n throw new HoleInDataException();\n\n if (jorbisInfo.synthesis_headerin(jorbisComment, joggPacket) < 0)\n throw new NotVorbisException();\n\n if (packet == 3) finished = true;\n else packet++;\n }\n\n index = joggSyncState.buffer(BUFFER_SIZE);\n buffer = joggSyncState.data;\n\n if (count == 0 && !finished)\n throw new PlayerException();\n }\n }", "public void mapHeader(){\r\n\t\tString header = readNextLine();\r\n\t\tif (header == null) return;\r\n\t\t\r\n\t\tString split[] = header.split(Constants.SPLIT_MARK);\r\n\t\tfor (int i=0; i < Constants.HEADER.length; i++){\r\n\t\t\tmapHeader.put(Constants.HEADER[i], Constants.UNKNOWN);\r\n\t\t\tfor (int j = 0; j < split.length; j++){\r\n\t\t\t\tif (Constants.HEADER[i].equals(split[j])){\r\n\t\t\t\t\tmapHeader.put(Constants.HEADER[i], j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void preLayout(ZGroup node) {\n }", "public boolean isHeader() {\n\t \treturn this == HEADER;\n\t }", "@Override\r\n public boolean hasPrevious() {\n return returned.prev != header;\r\n }", "public void visit(Header n){\r\n\t\tif(tempNode.notifyNode().equals(\"Header\")){\r\n\t\t\ttempNode = nodeList.get(sequence);\r\n\t\t\tArrayList<Token> tokenList = tempNode.getTokenList();\r\n\t\t\tString tmp =\"\";\r\n\t\t\tfor(int i=0;i<tempNode.getTokenListSize();i++){\r\n\t\t\t\tvisit(tokenList.get(i));\r\n\t\t\t}\r\n\r\n\t\t\tif(tokenList.size()<1)\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+\"</h\"+tempNode.htype+\">\";\r\n\t\t\telse\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+line+\"</h\"+tempNode.htype+\">\";\r\n\t\t\tline = tmp;\r\n\t\t}\r\n\t }", "private void addIfEmpty(Element e) {\n Node<Element> new_node = new Node<>(header, e, trailer);\n\n header.setNextNode(new_node);\n trailer.setPrevNode(new_node);\n }", "public LinkedListItr first( )\n {\n return new LinkedListItr( header.next );\n }", "@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "public SingleLoopHead() {\n super(CFASingleLoopTransformation.ARTIFICIAL_PROGRAM_COUNTER_FUNCTION_NAME);\n }", "public void preorder(Node node){\n\t\tif(node == nil){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\" ID: \" + node.id + \" Colour: \" + node.colour + \" Count: \" + node.count);\n\t\tpreorder(node.left);\n\t\tpreorder(node.right);\n\t}", "protected void readHeader() {\n // Denote no lines have been read.\n this.lineCount = 0;\n // Read the header.\n if (! this.reader.hasNext()) {\n // Here the entire file is empty. Insure we get EOF on the first read.\n this.nextLine = null;\n } else {\n this.headerLine = this.reader.next();\n // Parse the header line into labels and normalize them to lower case.\n this.labels = this.splitLine(headerLine);\n // Set up to return the first data line.\n this.readAhead();\n }\n }", "Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }", "private void processStartObject() {\n\t\tif (currentFieldName != null) {\r\n\t\t\t// go down the tree following the field name\r\n\t\t\tFieldFilterTree tmpIncludes = curNode.getChild(currentFieldName);\r\n\t\t\tparentNode = curNode;\r\n\t\t\tcurNode = tmpIncludes;\r\n\t\t}\r\n\t}", "private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}", "private void findStartOfBlock () {\n int index = 0;\n blockEnded = false;\n blockStarted = false;\n while ((! blockStarted) && (! endOfText())) {\n String line = getNextLine();\n if (line.equals (getBlockStart())) {\n blockStarted = true;\n } // end if line contains block start string\n } // end while looking for start of block\n lineHasLabel = false;\n while ((! lineHasLabel) && (! endOfText())) {\n getNextLine();\n }\n }", "String getIfBegin();", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "@Override\n public IRecord procHeader(IRecord r) {\n return r;\n }", "@Override\n public IRecord procHeader(IRecord r)\n {\n return r;\n }", "public boolean getHeader() {\n return isHeader;\n }", "public void removeFirst() throws Exception {\r\n\tif (isEmpty()) throw new Exception(\"Thing is empty\");\r\n\theader = (DLLNode<T>) header.getLink();\r\n\theader.setBack(null);\r\n}", "boolean isHeader(int position);", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void test_headerSplitOnNofLines() throws StageException, IOException {\n\t\tprocessor.headerConfig = getHeaderConfig(null, NOF_HEADER_LINES);\n\n\t\t// prepare details config\n\t\tprocessor.detailsConfig.detailsColumnHeaderType = DetailsColumnHeaderType.USE_HEADER;\n\t\tprocessor.detailsConfig.separatorAsRegex = false;\n\t\tprocessor.parserConfig.splitDetails = true;\n\t\t\n\t\trunner = new ProcessorRunner.Builder(HeaderDetailParserDProcessor.class, processor)\n\t\t\t\t.setExecutionMode(ExecutionMode.STANDALONE)\n\t\t\t\t.setResourcesDir(\"/tmp\")\n\t\t\t\t.addOutputLane(\"header\").addOutputLane(\"headerDetails\")\n\t\t\t\t.build();\n\t\trunner.runInit();\n\n\t\t// run the test\n\t\tList<Record> op = null;\n\t\ttry {\n\t\t\tList<Record> input = prepareInput(TEST_FILE_WITH_HEADER_AND_DETAILS_HEADER);\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\n\t\t\tStageRunner.Output output = runner.runProcess(input);\n\t\t\t\n\t\t System.out.println(\"test_headerSplitOnNofLines - Total execution time: \" + (System.currentTimeMillis()-startTime) + \"ms\"); \n\n\t\t\top = output.getRecords().get(\"headerDetails\");\n\n\t\t} finally {\n\t\t\trunner.runDestroy();\n\t\t}\n\n\t\t// assert\n\t\tassertEquals(42324, op.size());\n//\t\tassertEquals(\"11:02:12.000\", StringUtils.substring(op.get(0).get(\"/detail\").getValueAsString(), 0, 12));\n\t}", "public boolean isHeader() {\n return isHeader;\n }", "@Override\n\tpublic Tag getPreTag() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "private NetFlowHeader prepareHeader() throws IOException {\n NetFlowHeader internalHeader;\n int numBytesRead = 0;\n int lenRead = 0;\n WrappedByteBuf buf;\n byte[] headerArray;\n\n // Read header depending on stream version (different from flow version)\n if (streamVersion == 1) {\n // Version 1 has static header\n // TODO: verify header size for stream version 1\n lenRead = NetFlowHeader.S1_HEADER_SIZE - METADATA_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder);\n } else {\n // Version 3 with dynamic header size\n headerArray = new byte[HEADER_OFFSET_LENGTH];\n numBytesRead = in.read(headerArray, 0, HEADER_OFFSET_LENGTH);\n if (numBytesRead != HEADER_OFFSET_LENGTH) {\n throw new UnsupportedOperationException(\"Short read while loading header offset\");\n }\n\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n int headerSize = (int)buf.getUnsignedInt(0);\n if (headerSize <= 0) {\n throw new UnsupportedOperationException(\"Failed to load header of size \" + headerSize);\n }\n\n // Actual header length, determine how many bytes to read\n lenRead = headerSize - METADATA_LENGTH - HEADER_OFFSET_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder, headerSize);\n }\n\n // allocate buffer for length to read\n headerArray = new byte[lenRead];\n numBytesRead = in.read(headerArray, 0, lenRead);\n if (numBytesRead != lenRead) {\n throw new UnsupportedOperationException(\"Short read while loading header data\");\n }\n // build buffer\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n\n // resolve stream version (either 1 or 3)\n if (streamVersion == 1) {\n internalHeader.setFlowVersion((short)buf.getUnsignedShort(0));\n internalHeader.setStartCapture(buf.getUnsignedInt(2));\n internalHeader.setEndCapture(buf.getUnsignedInt(6));\n internalHeader.setHeaderFlags(buf.getUnsignedInt(10));\n internalHeader.setRotation(buf.getUnsignedInt(14));\n internalHeader.setNumFlows(buf.getUnsignedInt(18));\n internalHeader.setNumDropped(buf.getUnsignedInt(22));\n internalHeader.setNumMisordered(buf.getUnsignedInt(26));\n // Read hostname fixed bytes\n byte[] hostnameBytes = new byte[NetFlowHeader.S1_HEADER_HN_LEN];\n buf.getBytes(30, hostnameBytes, 0, hostnameBytes.length);\n internalHeader.setHostname(new String(hostnameBytes));\n // Read comments fixed bytes\n byte[] commentsBytes = new byte[NetFlowHeader.S1_HEADER_CMNT_LEN];\n buf.getBytes(30 + hostnameBytes.length, commentsBytes, 0, commentsBytes.length);\n internalHeader.setComments(new String(commentsBytes));\n\n // Dereference arrays\n hostnameBytes = null;\n commentsBytes = null;\n } else {\n // Resolve TLV (type-length value)\n // Set decode pointer to first tlv\n int dp = 0;\n int left = lenRead;\n // Smallest TLV is 2+2+0 (null TLV)\n // tlv_t - TLV type, tlv_l - TLV length, tlv_v - TLV value\n int tlv_t = 0;\n int tlv_l = 0;\n int tlv_v = 0;\n\n // Byte array for holding Strings\n byte[] pr;\n\n while (left >= 4) {\n // Parse type, store in host byte order\n tlv_t = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse len, store in host byte order\n tlv_l = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse val\n tlv_v = dp;\n\n // Point decode buffer at next tlv\n dp += tlv_l;\n left -= tlv_l;\n\n // TLV length check\n if (left < 0) {\n break;\n }\n\n switch(tlv_t) {\n // FT_TLV_VENDOR\n case 0x1:\n internalHeader.setVendor(buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_EX_VER\n case 0x2:\n internalHeader.setFlowVersion((short) buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_AGG_VER\n case 0x3:\n internalHeader.setAggVersion(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_AGG_METHOD\n case 0x4:\n internalHeader.setAggMethod(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_EXPORTER_IP\n case 0x5:\n internalHeader.setExporterIP(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_START\n case 0x6:\n internalHeader.setStartCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_END\n case 0x7:\n internalHeader.setEndCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_HEADER_FLAGS\n case 0x8:\n internalHeader.setHeaderFlags(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_ROT_SCHEDULE\n case 0x9:\n internalHeader.setRotation(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_COUNT\n case 0xA:\n internalHeader.setNumFlows(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_LOST\n case 0xB:\n internalHeader.setNumDropped(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_MISORDERED\n case 0xC:\n internalHeader.setNumMisordered(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_PKT_CORRUPT\n case 0xD:\n internalHeader.setNumCorrupt(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_SEQ_RESET\n case 0xE:\n internalHeader.setSeqReset(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_HOSTNAME\n case 0xF:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setHostname(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_COMMENTS\n case 0x10:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setComments(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_NAME\n case 0x11:\n // uint32_t, uint16_t, string:\n // - IP address of device\n // - ifIndex of interface\n // - interface name\n long ip = buf.getUnsignedInt(tlv_v);\n int ifIndex = buf.getUnsignedShort(tlv_v + 4);\n pr = new byte[tlv_l - 4 - 2];\n buf.getBytes(tlv_v + 4 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setInterfaceName(ip, ifIndex, new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_ALIAS\n case 0x12:\n // uint32_t, uint16_t, uint16_t, string:\n // - IP address of device\n // - ifIndex count\n // - ifIndex of interface (count times)\n // - alias name\n long aliasIP = buf.getUnsignedInt(tlv_v);\n int aliasIfIndexCnt = buf.getUnsignedShort(tlv_v + 4);\n int aliasIfIndex = buf.getUnsignedShort(tlv_v + 4 + 2);\n pr = new byte[tlv_l - 4 - 2 - 2];\n buf.getBytes(tlv_v + 4 + 2 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setInterfaceAlias(aliasIP, aliasIfIndexCnt, aliasIfIndex,\n new String(pr, 0, pr.length - 1));\n break;\n // Case 0x0\n default:\n break;\n }\n }\n buf = null;\n pr = null;\n }\n return internalHeader;\n }", "void before(final Node currentNode);", "public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }", "private String pickHead(String block) {\n if (block.length() > 0) {\n Integer breakIndex = 1;\n for (Integer index = 0; index < block.length(); index++) {\n if (block.charAt(index) == '\\n' || block.charAt(index) == '\\r') {\n breakIndex = index;\n break;\n }\n }\n return block.substring(0, breakIndex);\n } else {\n return \"\";\n }\n }", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "@Test public void preceding() {\n execute(new Add(NAME, FILE));\n query(\"(//ul)[last()]/preceding::ul\", \"\");\n query(\"(//ul)[1]/preceding::ul\", \"\");\n query(\"//ul/preceding::ul\", \"\");\n query(\"//li/preceding::li\", LI1 + '\\n' + LI1);\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "public LinkedListIterator<AnyType> first() {\n return new LinkedListIterator<AnyType>(header.next);\n }", "public void makeEmpty( )\n {\n header.next = null;\n }", "private void fixOuterParent(BaleElement fbe,BaleElement lbe,BaleElement eol)\n{\n if (lbe == null && eol != null) {\n BaleElement relt = cur_parent;\n while (relt != null && relt.getBubbleType() == BaleFragmentType.NONE) {\n\t relt = relt.getBaleParent();\n }\n if (relt != null) {\n\t if (eol.getDocumentEndOffset() >= relt.getAstNode().getEnd()) {\n\t cur_parent = relt.getBaleParent();\n\t cur_ast = cur_parent.getAstNode();\n\t num_blank = 0;\n\t }\n }\n }\n\n if (lbe == null) {\t\t\t// nothing significant on the line\n if (cur_ast != null) {\t\t// ensure comments aren't included in prior block\n\t int epos = cur_ast.getEnd();\n\t int tpos = eol.getDocumentEndOffset();\n\t while (tpos > epos) {\n\t if (cur_parent == root_element) break;\n\t cur_parent = cur_parent.getBaleParent();\n\t cur_ast = cur_parent.getAstNode();\n\t num_blank = 0;\n\t if (cur_ast == null) break;\n\t epos = cur_ast.getEnd();\n\t }\n }\n return;\n }\n\n // then remove any parent that doesn't include this AST node\n BaleAstNode lsn = getAstChild(lbe);\n while (lsn == null) {\n if (cur_parent == root_element) break;\n cur_parent = cur_parent.getBaleParent();\n cur_ast = cur_parent.getAstNode();\n lsn = getAstChild(lbe);\n }\n\n // next start any external elements that span multiple lines\n BaleAstNode fsn = getAstChild(fbe);\n while (fsn != null &&\n\t (fsn != cur_ast || cur_parent.isDeclSet()) &&\n\t (fsn == lsn || fsn.getLineLength() > 1)) {\n BaleElement.Branch nbe = createOuterBranch(fsn);\n if (nbe == null) break;\n addElementNode(nbe,0);\n nbe.setAstNode(fsn);\n cur_parent = nbe;\n cur_ast = fsn;\n fsn = getAstChild(fbe);\n }\n}", "private int getHeaderViewPosition() {\n if (getEmptyViewCount() == 1) {\n if (mHeadAndEmptyEnable) {\n return 0;\n }\n } else {\n return 0;\n }\n return -1;\n }", "public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }", "public void createHeader() throws DocumentException\n {\n createHeader(100f, Element.ALIGN_LEFT);\n }", "private static final void recursiveColorUsingHeader(TreeDrawerNode node) {\n\t\tif (node.isLeaf()) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tint index = headerInfo.getHeaderIndex(node.getId());\n\t\t\tif (index < 0) {\n\t\t\t\t// CyLogger.getLogger(TreeColorer.class).warn(\"Problem finding node \" +node.getId());\n\t\t\t}\n\t\t\tString [] headers = headerInfo.getHeader(index);\n\t\t\t\n\t\t\tString color = headers[colorInd];\n\t\t\tnode.setColor(parseColor(color));\n\t\t\t\n\t\t\trecursiveColorUsingHeader(node.getLeft());\n\t\t\trecursiveColorUsingHeader(node.getRight());\n\t\t}\n\t}", "public static boolean isHeaderCompAtLHS(String fsCondition)\n {\n //Get only the left hand side component.\n int liFirstIndex= fsCondition.indexOf( DOT_CHAR);\n String lsLHSComp=fsCondition.substring( 0,liFirstIndex );\n if(lsLHSComp.indexOf(HDR_SUFFIX)>=0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }", "public LinkedListItr zeroth( )\n {\n return new LinkedListItr( header );\n }", "public LinkedListIterator<AnyType> zeroth() {\n return new LinkedListIterator<AnyType>(header);\n }", "public CommentHeader(BaseBlock bb, byte[] commentHeader) {\r\n super(bb);\r\n\r\n int pos = 0;\r\n// unpSize = Raw.readShortLittleEndian(commentHeader, pos);\r\n pos += 2;\r\n unpVersion |= commentHeader[pos] & 0xff;\r\n pos++;\r\n\r\n unpMethod |= commentHeader[pos] & 0xff;\r\n pos++;\r\n// commCRC = Raw.readShortLittleEndian(commentHeader, pos);\r\n\r\n }", "public void makeEmpty() {\n header.next = null;\n }", "public void traverseIncludeSelf(INext<T> next){\n if(next==null){\n return;\n }\n traverse(this,next,true);\n }", "private Node getFirstParentBlock(Node node) {\n Node parentNode = node.getParent();\n\n Node lastNode = node;\n while (parentNode != null && !BLOCK_PARENTS.contains(parentNode.getClass())) {\n lastNode = parentNode;\n parentNode = parentNode.getParent();\n }\n if (parentNode instanceof ASTIfStatement) {\n parentNode = lastNode;\n } else if (parentNode instanceof ASTSwitchStatement) {\n parentNode = getSwitchParent(parentNode, lastNode);\n }\n return parentNode;\n }", "public ElementHeader getControlFlowHeader()\n {\n return controlFlowHeader;\n }", "protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }", "public boolean hasHeader() {\n return hasHeader;\n }", "protected abstract int getFirstFrag();", "private boolean isParentHeader(List<String> row) {\n\t\tif(!row.get(4).isEmpty()&&row.get(5).isEmpty()&&row.get(6).isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "public void preFlush(Iterator iterator) {\r\n\t\t//System.out.println(\"preFlush\");\r\n\t}", "@Override\r\n\tpublic VertexInterface<T> getPredecessor() {\n\t\treturn null;\r\n\t}", "private void preOrder(HomogeneusNode root) {\n\n if (root != null) {\n System.out.printf(\"%d\", root.getData());\n preOrder(root.getLeft());\n preOrder(root.getRight());\n }\n }", "boolean hasHeader();", "@Override\n\tpublic Iterator<T> iteratorPreOrder() {\n\t\treturn null;\n\t}", "void linkBefore(E e, Node<E> succ) {\n\t // assert succ != null;\n\t final Node<E> pred = succ.prev;\n\t final Node<E> newNode = new Node<>(pred, e, succ);\n\t succ.prev = newNode;\n\t if (pred == null)\n\t first = newNode;\n\t else\n\t pred.next = newNode;\n\t size++;\n\t modCount++;\n\t }", "private void preOrder(Node root) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (preOrderCount < 20) {\r\n\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + preOrderCount);\r\n\t\t\tpreOrderCount++;\r\n\t\t\tpreOrder(root.getlChild());\r\n\t\t\tpreOrder(root.getrChild());\r\n\t\t}\r\n\r\n\t}", "public int getLoopStartRow() {\n\t\treturn loopStartRow;\n\t}", "protected void catchNextSection (int position) {\r\n \t\tfinal int delta = 1;\r\n\t\tfinal boolean isNextSection = mAdapter.isHeader(position + delta);\r\n \t\tif (isNextSection) {\r\n \t\t\tmNextSectionChild = delta;\r\n \t\t} else {\r\n \t\t\tmNextSectionChild = INVALID_POSITION;\r\n \t\t}\r\n \t}", "public BlockStmt\ngetInitiationPart();", "public AnyType getFront() {\n\t\tif (empty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn header.next.data;\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}", "Set<? extends IRBasicBlock> getPredecessors(IRBasicBlock block);", "private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}", "private void printHeader () {\n System.out.println(\"COMPLETED HEADER PARSING\");\n System.out.println(\"________________________\");\n for(String header : parseTableHeader.keySet()) {\n System.out.print(header);\n System.out.println(parseTableHeader.get(header));\n }\n }", "public void markContentBegin() {\n this.ris.markContentBegin();\n }", "@Override\r\n public boolean hasNext() {\n return returned.next != header;\r\n }", "private BBlock makeEdge(Stmt pstmt, BBlock pblock) {\n //##53 Stmt nextStmt;\n\n // Fukuda 2005.07.07\n Stmt nextStmt;\n // Fukuda 2005.07.07\n Stmt nextStmt1;\n LabeledStmt lastStmt;\n Label l;\n IfStmt stmtIF;\n LoopStmt stmtLOOP;\n SwitchStmt stmtSWITCH;\n Stmt loopInitPart; //##53\n BBlock loopInitBlock; //##53\n BBlock currBlock;\n BBlock thenBlock;\n BBlock elseBlock;\n BBlock LabelBlock;\n BBlock bodyBlock;\n BBlock stepBlock;\n BBlock loopbackBlock;\n BBlock CondInitBlock;\n BBlock endBlock;\n BBlock defaultBlock;\n BBlock switchBlock;\n LabelBlock = null;\n BBlock lLoopStepBlock; //##70\n\n int lop;\n nextStmt = pstmt;\n currBlock = pblock;\n lGlobalNextStmt = nextStmt; //##70\n\n flow.dbg(5, \"\\nmakeEdge\", \"to stmt= \" + pstmt + \" from B\" + pblock); //##53\n\n while (nextStmt != null) {\n lop = nextStmt.getOperator();\n flow.dbg(5, \"\\nMakeEdge\", \"nextStmt = \" + nextStmt +\n \" nextToNext \" + ioRoot.toStringObject(nextStmt.getNextStmt())\n + \" lGlobalNextStmt \" + lGlobalNextStmt); //##53 //##70\n\n switch (lop) {\n case HIR.OP_IF:\n stmtIF = (IfStmt) nextStmt;\n thenBlock = makeEdge(stmtIF.getThenPart(), currBlock);\n elseBlock = makeEdge(stmtIF.getElsePart(), currBlock);\n LabelBlock = (BBlock) fResults.getBBlockForLabel(stmtIF.getEndLabel());\n\n //\t\t\t\tLabelBlock =stmtIF.getEndLabel().getBBlock();\n addEdge(thenBlock, LabelBlock);\n addEdge(elseBlock, LabelBlock);\n //##53 currBlock = LabelBlock;\n //##53 nextStmt = nextStmt.getNextStmt();\n //##53 BEGIN\n LabeledStmt lIfEnd = (LabeledStmt)stmtIF.getChild(4);\n flow.dbg(6, \" \", \"if-end \" + lIfEnd.toStringShort());\n if (lIfEnd.getStmt() != null)\n currBlock = makeEdge(lIfEnd.getStmt(), LabelBlock);\n else\n currBlock = LabelBlock;\n nextStmt = getNextStmtSeeingAncestor(stmtIF);\n flow.dbg(6, \" next-of-if \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n //##53 END\n\n break;\n\n case HIR.OP_LABELED_STMT:\n LabelBlock = (BBlock) fResults.getBBlockForLabel(((LabeledStmt) nextStmt).getLabel());\n addEdge(currBlock, LabelBlock);\n currBlock = LabelBlock;\n nextStmt1 = ((LabeledStmt) nextStmt).getStmt();\n\n if (nextStmt1 == null) {\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-labeledSt \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n } else {\n nextStmt = nextStmt1;\n }\n lGlobalNextStmt = nextStmt; //##70\n\n break;\n\n case HIR.OP_SWITCH:\n\n int CaseCount;\n stmtSWITCH = (SwitchStmt) nextStmt;\n CaseCount = stmtSWITCH.getCaseCount();\n\n for (int i = 0; i < CaseCount; i++) {\n //\t\t\t\t\tLabelBlock=stmtSWITCH.getCaseLabel(i).getBBlock();\n LabelBlock = (BBlock) fResults.getBBlockForLabel(stmtSWITCH.getCaseLabel(\n i));\n addEdge(currBlock, LabelBlock);\n }\n\n //\t\t\t\tLabelBlock=stmtSWITCH.getDefaultLabel().getBBlock();\n defaultBlock = (BBlock) fResults.getBBlockForLabel(stmtSWITCH.getDefaultLabel());\n endBlock = (BBlock) fResults.getBBlockForLabel(stmtSWITCH.getEndLabel());\n if (defaultBlock == null)\n addEdge(currBlock, endBlock);\n else\n addEdge(currBlock, defaultBlock);\n bodyBlock = makeEdge(stmtSWITCH.getBodyStmt(), currBlock);\n\n //\t\t\t\tendBlock=stmtSWITCH.getEndLabel().getBBlock();\n addEdge(bodyBlock, endBlock);\n //##53 currBlock = endBlock;\n //##53 nextStmt = nextStmt.getNextStmt();\n //##53 BEGIN\n LabeledStmt lSwitchEnd = (LabeledStmt)stmtSWITCH.getChild(4);\n flow.dbg(6, \" \", \"switch-end \" + lSwitchEnd.toStringShort());\n if (lSwitchEnd.getStmt() != null)\n currBlock = makeEdge(lSwitchEnd.getStmt(), endBlock);\n else\n currBlock = endBlock;\n nextStmt = getNextStmtSeeingAncestor(stmtSWITCH);\n flow.dbg(6, \" next-of-switch \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n //##53 END\n\n break;\n\n case HIR.OP_WHILE:\n case HIR.OP_FOR:\n case HIR.OP_INDEXED_LOOP:\n case HIR.OP_UNTIL:\n stmtLOOP = (LoopStmt) nextStmt;\n l = stmtLOOP.getLoopBackLabel();\n\n //\t\t\t\tloopbackBlock = (BBlock)fResults.getBBlockForLabel( l);\n loopbackBlock = (BBlock) fResults.getBBlockForLabel(l);\n lLoopStepBlock = (BBlock) fResults.getBBlockForLabel(stmtLOOP.getLoopStepLabel()); //##70\n //\t\t\t\tendBlock = stmtLOOP.getLoopEndLabel().getBBlock();\n endBlock = (BBlock) fResults.getBBlockForLabel(stmtLOOP.getLoopEndLabel());\n flow.dbg(6, \"Loop\", \"backBlock \" + loopbackBlock + \" stepLabel \" +\n stmtLOOP.getLoopStepLabel() + \" stepBlock \" +\n lLoopStepBlock + \" endBlock \" + endBlock); //##70\n /* //##53\n CondInitBlock = makeEdge(stmtLOOP.getConditionalInitPart(),\n currBlock);\n\n if (CondInitBlock == currBlock) {\n addEdge(currBlock, loopbackBlock);\n bodyBlock = makeEdge(stmtLOOP.getLoopBodyPart(),\n loopbackBlock);\n\n //\t\t\t\t\t\tcurrBlock.getSuccEdge(loopbackBlock).flagBox().setFlag(Edge.LOOP_BACK_EDGE, true); //## Tan //##9\n } else {\n bodyBlock = makeEdge(stmtLOOP.getLoopBodyPart(),\n CondInitBlock);\n addEdge(CondInitBlock, endBlock);\n }\n */ //##53\n //##53 BEGIN\n loopInitPart = stmtLOOP.getLoopInitPart();\n // loopInitPart may contain jump-to-loopBodyPart to implement\n // conditional initiation.\n // Make edge from currBlock to LoopInitPart.\n flow.dbg(6, \" make-edge to loop-init part from \" + currBlock ); //##70\n loopInitBlock = makeEdge(loopInitPart, currBlock);\n // How about loopInitBlock to loopBackBlock ?\n // Add edge from currBlock to loopBackBlock ?\n flow.dbg(6, \" add-edge to loop-back block from \" + currBlock + \" initBlock \" + loopInitBlock); //##70\n addEdge(currBlock, loopbackBlock);\n // Make edge from loopbackBlock to loop-body part.\n flow.dbg(6, \" make-edge to loop-body part from loop-back block \" + loopbackBlock ); //##70\n bodyBlock = makeEdge(stmtLOOP.getLoopBodyPart(),\n loopbackBlock);\n //##53 END\n l = stmtLOOP.getLoopStepLabel();\n\n if (l != null) {\n stepBlock = (BBlock) fResults.getBBlockForLabel(l);\n\n //\t\t\t\t\t\taddEdge(bodyBlock,stepBlock);\n if (stepBlock != null) {\n // How about from bodyBlock to stepBlock ?\n // The label of step block is attached at the end of body block.\n if (bodyBlock != stepBlock) {\n flow.dbg(5, \" add edge\", \"from loop-body part \" + bodyBlock\n + \" to stepBlock \" + stepBlock); //##70\n addEdge(bodyBlock, stepBlock);\n }\n // Make edge from stepBlock to loopbackBlock.\n flow.dbg(5, \" add edge\", \"from loop-step block \" + stepBlock\n + \" to loop-back block \" + loopbackBlock); //##70\n addEdge(stepBlock, loopbackBlock);\n stepBlock.getSuccEdge(loopbackBlock).flagBox().setFlag(Edge.LOOP_BACK_EDGE,\n true); //## Tan //##9\n // Make edge from stepBlock to loop-step part.\n flow.dbg(5, \" make-edge to loop-step part from stepBlock \" + stepBlock); //##70\n BBlock lStepBlock2 = makeEdge(stmtLOOP.getLoopStepPart(),\n stepBlock); //##53\n } else {\n flow.dbg(4, \" stepBlock of \" + stmtLOOP + \" is null\"); //##70\n if (bodyBlock != null) { // no step part (or merged with the body)\n // Add edge from bodyBlock to loopbackBlock.\n flow.dbg(5, \" add edge from bodyBlock \" + bodyBlock + \" to loop-back block \" + loopbackBlock); //##70\n addEdge(bodyBlock, loopbackBlock);\n bodyBlock.getSuccEdge(loopbackBlock).flagBox().setFlag(Edge.\n LOOP_BACK_EDGE,\n true); //## Tan //##9\n }\n else {\n //System.out.println(\"Returned or Jumped\");//\n }\n }\n\n if (stmtLOOP.getLoopEndCondition() == (Exp) null) {\n // Add edge from loopbackBlock to endBlock.\n addEdge(loopbackBlock, endBlock);\n } else if (stepBlock != null) {\n // End condition is not null.\n // Add edge from stepBlock to endBlock.\n // How about stepBlock to end-condition part ?\n addEdge(stepBlock, endBlock);\n } else {\n // End condition is not null and\n // stepBlock is null.\n // Add edge from bodyBlock to endBlock.\n // How about bodyBlock to end-condition block ?\n addEdge(bodyBlock, endBlock);\n }\n } else {\n // No loop-step label.\n // Add edge from bodyBlock to loopbackBlock.\n addEdge(bodyBlock, loopbackBlock);\n // Add edge from loopbackBlock to endBlock.\n addEdge(loopbackBlock, endBlock);\n }\n\n //##53 currBlock = endBlock;\n //##53 nextStmt = nextStmt.getNextStmt();\n //##53 BEGIN\n LabeledStmt lLoopEnd = (LabeledStmt)stmtLOOP.getChild(7);\n flow.dbg(6, \" \", \"loop-end \" + lLoopEnd.toStringShort());\n if (lLoopEnd.getStmt() != null) {\n currBlock = makeEdge(lLoopEnd.getStmt(), endBlock);\n }else\n currBlock = endBlock;\n flow.dbg(5, \" get next statement\", \"of loop \" + stmtLOOP.toStringShort());\n nextStmt = getNextStmtSeeingAncestor(stmtLOOP);\n flow.dbg(6, \" next-of-loop \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n //##53 END\n\n break;\n\n case HIR.OP_RETURN:\n currBlock = null;\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-return \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n break;\n\n case HIR.OP_JUMP:\n l = ((JumpStmt) nextStmt).getLabel();\n LabelBlock = (BBlock) fResults.getBBlockForLabel(l);\n addEdge(currBlock, LabelBlock);\n currBlock = null;\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-jump \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n break;\n\n case HIR.OP_BLOCK:\n currBlock = makeEdge(((BlockStmt) nextStmt).getFirstStmt(),\n currBlock); //## Fukuda 020322\n //##53 nextStmt = ((BlockStmt) nextStmt).getNextStmt(); //## Fukuda 020322\n //global nextStmt ??\n //##70 nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n nextStmt = getNextStmtSeeingAncestor(lGlobalNextStmt); //##70\n flow.dbg(6, \" next-of-block \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n break;\n\n default:\n // Non-control statement.\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-default \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n }\n } // end of while\n flow.dbg(5, \" return \" + currBlock + \" for \" + pstmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n return currBlock;\n }", "@Override\n public Iterator<E> getPreorderIterator() {\n return new PreorderIterator();\n }", "@Override\n public StreamHeader getHeader() throws Exception {\n return header;\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "protected Convention.Key getBlankLinesBeforeKey()\n {\n return ConventionKeys.BLANK_LINES_BEFORE_HEADER;\n }", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void test_headerSplitOnNofLinesWithRegex() throws StageException, IOException {\n\t\tprocessor.headerConfig = getHeaderConfig(null, NOF_HEADER_LINES);\n\n\t\t// prepare details config\n\t\tprocessor.detailsConfig.detailsColumnHeaderType = DetailsColumnHeaderType.USE_HEADER;\n\t\tprocessor.detailsConfig.separatorAsRegex = true;\n\t\tprocessor.parserConfig.splitDetails = true;\n\t\t\n\t\trunner = new ProcessorRunner.Builder(HeaderDetailParserDProcessor.class, processor)\n\t\t\t\t.setExecutionMode(ExecutionMode.STANDALONE)\n\t\t\t\t.setResourcesDir(\"/tmp\")\n\t\t\t\t.addOutputLane(\"header\").addOutputLane(\"headerDetails\")\n\t\t\t\t.build();\n\t\trunner.runInit();\n\n\t\t// run the test\n\t\tList<Record> op = null;\n\t\ttry {\n\t\t\tList<Record> input = prepareInput(TEST_FILE_WITH_HEADER_AND_DETAILS_HEADER);\n\t\t \n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tStageRunner.Output output = runner.runProcess(input);\n\t\t\t\n\t\t System.out.println(\"test_headerSplitOnNofLinesWithRegex - Total execution time: \" + (System.currentTimeMillis()-startTime) + \"ms\"); \n\t\t\t\n\t\t op = output.getRecords().get(\"headerDetails\");\n\n\t\t} finally {\n\t\t\trunner.runDestroy();\n\t\t}\n\n\t\t// assert\n\t\tassertEquals(42324, op.size());\n//\t\tassertEquals(\"11:02:12.000\", StringUtils.substring(op.get(0).get(\"/detail\").getValueAsString(), 0, 12));\n\t}", "private static StartTag findPreviousOrNext(Source source, int pos, boolean previous) {\n\t\ttry {\r\n\t\t\tStartTag previousComment=source.findPreviousStartTag(pos,SpecialTag.COMMENT.getName());\r\n\t\t\tif (previousComment!=null) {\r\n\t\t\t\tif (previousComment.end>pos) {\r\n\t\t\t\t\t// the current position lies within the comment\r\n\t\t\t\t\tif (previous || pos==previousComment.begin) return previousComment; // return the comment if finding previous or comment starts at pos.\r\n\t\t\t\t\tpos=previousComment.end; // skip all tags within the comment\r\n\t\t\t\t}\r\n\t\t\t\tif (!previous) previousComment=null; // the previous comment is now no longer relevant if we are searching forward\r\n\t\t\t}\r\n\t\t\tString lsource=source.getParseTextLowerCase();\r\n\t\t\tint begin=pos;\r\n\t\t\tdo {\r\n\t\t\t\tbegin=previous?lsource.lastIndexOf('<',begin):lsource.indexOf('<',begin);\r\n\t\t\t\tif (begin==-1) return null;\r\n\t\t\t\tif (previousComment!=null && previousComment.encloses(begin)) return previousComment; // return the comment if finding previous and current position lies within the comment\r\n\t\t\t\tString tagAtCacheKey=SearchCache.getTagKey(begin);\r\n\t\t\t\tTag tag=(Tag)source.getSearchCache().getTag(tagAtCacheKey);\r\n\t\t\t\tif (tag instanceof StartTag) return (StartTag)tag;\r\n\t\t\t\tif (tag!=null || lsource.charAt(begin+1)=='/') continue; // end tag or CACHED_NULL\r\n\t\t\t\tint nameBegin=begin+1;\r\n\t\t\t\tint nameEnd;\r\n\t\t\t\tString name=null;\r\n\t\t\t\tStartTag startTag=null;\r\n\t\t\t\tSpecialTag specialTag=SpecialTag.get(source,nameBegin);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (specialTag!=null) {\r\n\t\t\t\t\t\tstartTag=newSpecialStartTag(source,begin,nameBegin,specialTag);\r\n\t\t\t\t\t\tif (startTag!=null) return startTag;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnameEnd=source.getIdentifierEnd(nameBegin,true);\r\n\t\t\t\t\tif (nameEnd==-1) {\r\n\t\t\t\t\t\tsource.log(\"StartTag\",null,begin,\"rejected because it has an invalid first character in its name\",-1);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tname=lsource.substring(nameBegin,nameEnd);\r\n\t\t\t\t\tstartTag=constructWithAttributes(source,begin,name,null);\r\n\t\t\t\t\tif (startTag!=null) return startTag;\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tsource.getSearchCache().setTag(tagAtCacheKey,startTag);\r\n\t\t\t\t}\r\n\t\t\t} while (inRange(source,begin+=(previous?-2:2)));\r\n\t\t} catch (IndexOutOfBoundsException ex) {}\r\n\t\treturn null;\r\n\t}", "public void preorder() {\n\t\tpreorder(root);\n\t}", "private void preorderLeftOnly(Node root) {\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n if (root.left != null)\r\n preorderLeftOnly(root.left);\r\n }", "default boolean hasHeader() {\n return true;\n }", "private void IdentifyHeaderAndFooter() {\n receipt_Header = receipt_lines.length > 0 ? receipt_lines[0] : null;\n receipt_Footer = receipt_lines.length > 1 ? receipt_lines[receipt_lines.length - 1].split(\" \")[0] : null;\n }", "public HeaderElement prefixUpToFirstMulti() {\n HeaderElement result = new HeaderElement(column);\n for (HeaderNamePart namePart : nameParts) {\n if (namePart.multi) {\n result.add(namePart);\n return result;\n }\n result.add(namePart);\n }\n return null;\n }", "protected void handlePageBreakBeforeOfGroup( )\n \t{\n \t\tboolean needPageBreak = false;\t\t\n \t\tGroupDesign groupDesign = (GroupDesign) design;\n \t\tif ( groupDesign != null )\n \t\t{\n \t\t\tString pageBreakBefore = groupDesign.getPageBreakBefore( );\n \t\t\tint groupLevel = groupDesign.getGroupLevel( );\n \t\t\tif ( DesignChoiceConstants.PAGE_BREAK_BEFORE_ALWAYS\n \t\t\t\t\t.equals( pageBreakBefore ) )\n \t\t\t{\n \t\t\t\tneedPageBreak = true;\n \t\t\t}\n \t\t\tif ( DesignChoiceConstants.PAGE_BREAK_BEFORE_ALWAYS_EXCLUDING_FIRST\n \t\t\t\t\t.equals( pageBreakBefore ) )\n \t\t\t{\n \t\t\t\tif ( rset.getStartingGroupLevel( ) > groupLevel )\n \t\t\t\t{\n \t\t\t\t\tneedPageBreak = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif ( DesignChoiceConstants.PAGE_BREAK_BEFORE_AUTO\n \t\t\t\t\t.equals( pageBreakBefore )\n \t\t\t\t\t&& groupLevel == 0 )\n \t\t\t{\n \t\t\t\tint startGroupLevel = rset.getStartingGroupLevel( ); \n \t\t\t\tif ( startGroupLevel > 0 )\n \t\t\t\t{\n \t\t\t\t\tneedPageBreak = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif ( needPageBreak )\n \t\t\t{\n \t\t\t\tcontent.getStyle( ).setProperty(\n \t\t\t\t\t\tIStyle.STYLE_PAGE_BREAK_BEFORE, IStyle.ALWAYS_VALUE );\n \t\t\t}\n \t\t}\n \t}", "public void checkForUnreadHeader(ExtCountingDataInput in) throws IOException {\n int actualHeaderSize = in.position() - this.startPosition;\n int exceedingSize = this.headerSize - actualHeaderSize;\n if (exceedingSize > 0) {\n byte[] buf = new byte[exceedingSize];\n in.readFully(buf);\n BigInteger exceedingBI = new BigInteger(1, buf);\n\n if (exceedingBI.equals(BigInteger.ZERO)) {\n LOGGER.fine(String.format(\"Chunk header size (%d), read (%d), but exceeding bytes are all zero.\",\n this.headerSize, actualHeaderSize\n ));\n } else {\n LOGGER.warning(String.format(\"Chunk header size (%d), read (%d). Exceeding bytes: 0x%X.\",\n this.headerSize, actualHeaderSize, exceedingBI\n ));\n }\n }\n }", "private static boolean blockBody_0_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"blockBody_0_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = blockBody_0_0_0(b, l + 1);\n if (!r) r = blockBody_0_0_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public Iterator<Node<E>> heads() {\n return heads.iterator();\n }" ]
[ "0.625578", "0.5977192", "0.5552086", "0.55303925", "0.5361787", "0.5309528", "0.52713794", "0.52122647", "0.5154217", "0.50999093", "0.5098157", "0.50861424", "0.5061568", "0.5029217", "0.502713", "0.5023365", "0.50124043", "0.5004666", "0.50016135", "0.49975538", "0.49544394", "0.49487084", "0.4943181", "0.49372628", "0.49238005", "0.4899149", "0.48955312", "0.48589337", "0.4855842", "0.48521978", "0.4845017", "0.48448068", "0.48293683", "0.4821441", "0.48166806", "0.48044658", "0.48034334", "0.47941652", "0.47781777", "0.4765568", "0.47634247", "0.47579488", "0.47578818", "0.4747077", "0.47151947", "0.47122547", "0.4693159", "0.46904227", "0.46825403", "0.46721894", "0.46609402", "0.4635537", "0.46311164", "0.46302772", "0.4630042", "0.46278012", "0.46223617", "0.4612098", "0.46115053", "0.46037412", "0.45979077", "0.45871988", "0.45799497", "0.457977", "0.45794296", "0.45711598", "0.45692796", "0.45540118", "0.45531362", "0.45477512", "0.45456815", "0.4543852", "0.45393422", "0.45335653", "0.45319024", "0.45251277", "0.45235816", "0.45171916", "0.45122162", "0.45120847", "0.45110533", "0.4508544", "0.45059124", "0.45045763", "0.449608", "0.44926396", "0.44890702", "0.44890702", "0.44861943", "0.4481849", "0.44814932", "0.44784257", "0.4478171", "0.44764185", "0.44649407", "0.4464506", "0.44587034", "0.44529593", "0.44528472", "0.44506502" ]
0.65629566
0
Returns the statement that jumps back to the head, thereby constituing the loop.
public Stmt getBackJumpStmt() { return backJump; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void jumpBack() {\n this.instructionList = this.stack.pop();\n }", "@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}", "public IClause back() {\n if (back==front)\n throw new BufferUnderflowException();\n\n return tab[back];\n }", "public IClause popBack() {\n if (back==front)\n throw new BufferUnderflowException();\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public void goToNext()\n {\n if (current != null)\n {\n previous = current;\n current = current.nLink;\n } // end if\n else if (head != null)\n {\n System.out.println(\"Iteration reached end of line.\");\n System.exit(0);\n } // else if\n else\n {\n System.out.println(\"You can't iterate an empty list.\");\n System.exit(0);\n }\n }", "private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}", "public ReturnKthToLast() {\n\t\thead = null;\n\t}", "public IClause popFront() {\n if (back==front)\n \tthrow new BufferUnderflowException();\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }", "public E previous(){\n\t\t\tE e = tail.element;\n\t\t\tcurrent = current.next;\n\t\t\treturn e;\n\t\t}", "private Token previous() {\n return tokens.get(current-1);\n }", "private static SingleLinkedNode reverseWithLoopBreaking(SingleLinkedNode head) {\n\t\tSingleLinkedNode loopstart = findLoopStart(head);\r\n\t\tif (loopstart != null) {\r\n\t\t\t// re-find the previous element.\r\n\t\t\tSingleLinkedNode prev = loopstart;\r\n\t\t\twhile (prev.getNext() != loopstart) {\r\n\t\t\t\tprev = prev.getNext();\r\n\t\t\t}\r\n\t\t\tprev.setNext(null);\r\n\t\t}\r\n\t\t\r\n\t\treturn (Reverse(head));\r\n\t}", "Object previous();", "public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}", "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 T previous()\n {\n // TODO: implement this method\n return null;\n }", "static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "String getPrevious();", "public final TokenStatement peek() {\r\n\t\tif (this.size == 0) {\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t}\r\n\t\treturn this.elementData[this.size - 1];\r\n\t}", "public void MovePrevious()\r\n {\r\n\r\n \t try{\r\n \t\t if(!rsTution.previous())rsTution.first();\r\n \t\t Display();\r\n\r\n\r\n \t }catch(SQLException sqle)\r\n \t {System.out.println(\"MovePrevious Error:\"+sqle);}\r\n }", "public String backwards()\n\t{\n\t\tString answer = \"\";\n\t\tDLLNode cursor = tail;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = \"<--\" + cursor.data + answer;\n\t\t\tcursor = cursor.prev;\n\t\t}\n\n\t\tanswer = \"(null)\" + answer;\n\t\treturn answer;\n\t}", "private WALPointer tailPointer(WALPointer from) throws IgniteCheckedException {\n WALIterator it = cctx.wal().replay(from);\n\n try {\n while (it.hasNextX()) {\n IgniteBiTuple<WALPointer, WALRecord> rec = it.nextX();\n\n if (rec == null)\n break;\n }\n }\n finally {\n it.close();\n }\n\n return it.lastRead().map(WALPointer::next).orElse(null);\n }", "public E getLast(){\n return tail.getPrevious().getElement();\n }", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public IClause uncheckedPopFront() {\n assert back!=front : \"Deque is empty\";\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }", "private ListNode popTail() {\n\t ListNode tailItem = tail.prev;\n\t removeFromList(tailItem);\n\n\t return tailItem;\n\t }", "public IClause uncheckedPopBack() {\n \t\tassert back!=front : \"Deque is empty\";\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}", "void moveBack()\n\t{\n\t\tif (length != 0) \n\t\t{\n\t\t\tcursor = back; \n\t\t\tindex = length - 1; //cursor will be at the back\n\t\t\t\n\t\t}\n\t}", "public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }", "public TokenStatement pop() {\r\n\t\tif (this.size == 0) {\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t}\r\n\t\tfinal TokenStatement obj = this.elementData[this.size - 1];\r\n\t\tthis.elementData[--this.size] = null;\r\n\t\treturn obj;\r\n\t}", "public IClause front() {\n if (back==front)\n throw new BufferUnderflowException();\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public String back()\n {\n\treturn tail.value;\n }", "public static GotoExpression continue_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public R visit(JumpStmt n) {\n R _ret=null;\n n.f0.accept(this);\n String s1 = (String)n.f1.accept(this);\n String s =(\"JUMP \"+s1);\n return (R)s;\n }", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}", "public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }", "ComponentAgent getPreviousSibling();", "public Node getPrevious() {\n return previous;\n }", "public Node getPrev() {\n return null;\n }", "public IClause uncheckedBack() {\n assert back!=front : \"Deque is empty\";\n\n return tab[back];\n }", "public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public static GotoExpression break_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "public E peek(){\n return this.stack.get(stack.size() -1);\n }", "public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = lastObject;\n }", "@Override\n public String visit(WhileStmt n, Object arg) {\n return null;\n }", "private Collection<Node> findTarget(final JumpType type, final String label) {\n Collection<Node> result = new Object() {\n private Collection<Node> find(final int i) {\n if (i < 0) return null;\n\n Node nd = ctxt.get(i);\n\n if (nd instanceof Finally) {\n BlockStatement finalizer = ((Finally) nd).body;\n followingCache.put(finalizer, union(followingCache.get(finalizer), find(i - 1)));\n return Collections.singleton(First.of(finalizer));\n }\n\n return nd.accept(\n new DefaultVisitor<Void, Collection<Node>>() {\n @Override\n public Collection<Node> visit(Loop loop, Void v) {\n Set<String> labels = loopLabels.computeIfAbsent(loop, k -> new LinkedHashSet<>());\n if (type == JumpType.CONTINUE && (label == null || labels.contains(label)))\n return Collections.singleton(First.of(loop.getContinueTarget()));\n else if (type == JumpType.BREAK && label == null) return followingCache.get(loop);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(SwitchStatement nd, Void v) {\n if (type == JumpType.BREAK && label == null) return followingCache.get(nd);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(LabeledStatement nd, Void v) {\n if (type == JumpType.BREAK && nd.getLabel().getName().equals(label))\n return followingCache.get(nd);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(TryStatement t, Void v) {\n if (type == JumpType.THROW && !t.getAllHandlers().isEmpty()) {\n return Collections.singleton(First.of(t.getAllHandlers().get(0)));\n }\n if (t.hasFinalizer()) {\n BlockStatement finalizer = t.getFinalizer();\n followingCache.put(\n finalizer, union(followingCache.get(finalizer), find(i - 1)));\n return Collections.singleton(First.of(finalizer));\n }\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(Program nd, Void v) {\n return visit(nd);\n }\n\n @Override\n public Collection<Node> visit(IFunction nd, Void v) {\n return visit(nd);\n }\n\n private Collection<Node> visit(IStatementContainer nd) {\n if (type == JumpType.RETURN) return Collections.singleton(getExitNode((IStatementContainer) nd));\n return null;\n }\n },\n null);\n }\n }.find(ctxt.size() - 1);\n\n if (result == null) {\n return Collections.emptyList();\n }\n return result;\n }", "@Override\r\n\t\tpublic Node getPreviousSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\n\t}", "public String getBackwardNode() {\r\n\t\ttry {\r\n\t\t\treturn path.getPreviousNode(procNode);\r\n\t\t} catch (Exception e) {return null; /* In case of an error!*/}\r\n\t}", "public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}", "K previous();", "private Element getElementBackwards(int index) {\n Element element = this._headAndTail;\n\n for (int i = this._size - index; i > 0; --i) {\n element = element.getPrevious();\n }\n\n return element;\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/include/clang/AST/DeclTemplate.h\", line = 2839,\n FQN=\"clang::VarTemplateDecl::getPreviousDecl\", NM=\"_ZN5clang15VarTemplateDecl15getPreviousDeclEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl15getPreviousDeclEv\")\n //</editor-fold>\n public VarTemplateDecl /*P*/ getPreviousDecl() {\n return cast_or_null_VarTemplateDecl(/*JCast:RedeclarableTemplateDecl * */super.getPreviousDecl$Redeclarable());\n }", "@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }", "@Override\n public int previousIndex()\n {\n return idx-1;\n }", "private void findPrev() {\n \tthis.find(false);\n }", "public T removeFromBack() {\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, \"\n + \"so there is nothing to get.\");\n }\n if (head == tail) {\n head.setNext(null);\n head.setPrevious(null);\n tail.setNext(null);\n tail.setPrevious(null);\n size -= 1;\n return tail.getData();\n } else {\n T temp = tail.getData();\n tail = tail.getPrevious();\n tail.setNext(null);\n size -= 1;\n return temp;\n\n }\n }", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "@Override\n\tpublic T peek() {\n\n\t\tT result = stack[top-1];\n\t\treturn result;\n\t}", "public Node<T> getLast() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.prev;\r\n }", "public void previous();", "private T getPredecessor (BSTNode<T> current) {\n\t\twhile(current.getRight() != null) {\n\t\t\tcurrent = current.getRight();\n\t\t}\n\t\treturn current.getData();\n\n\t}", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public AStarNode getPrevious() {\n return previous;\n }", "@Override\n public final char previous() {\n if (--index >= lower) {\n return text.charAt(index);\n }\n index = lower;\n return DONE;\n }", "public String findBackward() {\n\t\t\tString result=\"\";\n\t\t\treturn result ;\n\t\t}", "public void detectAndRemoveLoop() {\n if (head == null || head.next == null) \n return; \n \n ListNode slow = head, fast = head; \n \n // Move slow and fast 1 and 2 steps \n // ahead respectively. \n slow = slow.next; \n fast = fast.next.next; \n \n // Search for loop using slow and fast pointers \n while (fast != null && fast.next != null) { \n if (slow == fast) \n break; \n \n slow = slow.next; \n fast = fast.next.next; \n } \n \n /* If loop exists */\n if (slow == fast) { \n slow = head; \n while (slow.next != fast.next) { \n slow = slow.next; \n fast = fast.next; \n } \n \n /* since fast->next is the looping point */\n fast.next = null; /* remove loop */\n } \n\t}", "HNode getPreviousSibling();", "public static GotoExpression break_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }", "public final Rule getPredecessor() {\n //ELM: in again\n//\t\treturn null; // TODO by m.zopf: because of performance reasons return here just null\n return m_pred;\n }", "public TPDestination rewind() {\r\n if (stack.isEmpty()) { return null; }\r\n TPDestination tp = stack.remove(0);\r\n plugin.getServer().getPlayer(name).teleport(tp.getLocation());\r\n sendLocalizedString(\"teleport.tpback\", getName());\r\n return tp;\r\n }", "public Character peek()\r\n\t{\r\n\t\treturn stack[top-1];\r\n\t}", "public Node<T> previous() {\r\n return previous;\r\n }", "public Traceback next(Traceback tb) {\n TracebackAffine tb3 = (TracebackAffine)tb;\n if(tb3.i + tb3.j + B[tb3.k][tb3.i][tb3.j].i + B[tb3.k][tb3.i][tb3.j].j == 0)\n return null;\t//traceback has reached origin therefore stop.\n else\n return B[tb3.k][tb3.i][tb3.j];\n }", "public String findForward() {\n\t\t\tString result=\"\";\n\t\t\treturn result ;\n\t\t}", "public static String peek(){\n String take = list.get((list.size())-1);\n return take;\n }", "java.lang.String getNextStep();", "public E peekBack();", "private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}", "static void skipStatement() {\r\n // Add first identifier to the intermediate stack\r\n if(!token.equals(\"IF\")) {\r\n //stack.add(lexeme);\r\n //index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n //stack.add(lexeme);\r\n //index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n //stack.add(index, lexeme);\r\n //index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n //index++;\r\n }\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n //index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n //index++;\r\n break;\r\n }\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(skipIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }", "@Override\r\n\tpublic VertexInterface<T> getPredecessor() {\n\t\treturn null;\r\n\t}", "public R visit(JumpStmt n) {\n R _ret=null;\n n.f0.accept(this);\n notLabel = false;\n String label = (String)n.f1.accept(this);\n succForJump.put(statementNumber, new jumpOrCjump(label, \"j\"));\n notLabel = true;\n return _ret;\n }", "private T getPredecessor(BSTNode<T> current) {\n while (current.getRight() != null) {\n current = current.getRight();\n }\n return current.getData();\n }", "public Node<S> getPrev() { return prev; }", "public int previous()\n {\n if (m_source_.getIndex() <= 0 && m_isForwards_) {\n // if iterator is new or reset, we can immediate perform backwards\n // iteration even when the offset is not right.\n m_source_.setToLimit();\n updateInternalState();\n }\n m_isForwards_ = false;\n if (m_CEBufferSize_ > 0) {\n if (m_CEBufferOffset_ > 0) {\n return m_CEBuffer_[-- m_CEBufferOffset_];\n }\n m_CEBufferSize_ = 0;\n m_CEBufferOffset_ = 0;\n }\n\n int result = NULLORDER;\n char ch = 0;\n do {\n int ch_int = previousChar();\n if (ch_int == UCharacterIterator.DONE) {\n return NULLORDER;\n }\n ch = (char)ch_int;\n if (m_collator_.m_isHiragana4_) {\n m_isCodePointHiragana_ = (ch >= 0x3040 && ch <= 0x309f);\n }\n if (m_collator_.isContractionEnd(ch) && !isBackwardsStart()) {\n result = previousSpecial(m_collator_, CE_CONTRACTION_, ch);\n }\n else {\n if (ch <= 0xFF) {\n result = m_collator_.m_trie_.getLatin1LinearValue(ch);\n }\n else {\n result = m_collator_.m_trie_.getLeadValue(ch);\n }\n if (RuleBasedCollator.isSpecial(result)) {\n result = previousSpecial(m_collator_, result, ch);\n }\n if (result == CE_NOT_FOUND_) {\n if (!isBackwardsStart()\n && m_collator_.isContractionEnd(ch)) {\n result = CE_CONTRACTION_;\n }\n else {\n if(RuleBasedCollator.UCA_ != null) {\n result = RuleBasedCollator.UCA_.m_trie_.getLeadValue(ch);\n }\n }\n\n if (RuleBasedCollator.isSpecial(result)) {\n if(RuleBasedCollator.UCA_ != null) { \n result = previousSpecial(RuleBasedCollator.UCA_, result, ch);\n }\n }\n }\n }\n } while (result == IGNORABLE && ch >= 0xAC00 && ch <= 0xD7AF);\n if(result == CE_NOT_FOUND_) {\n result = previousImplicit(ch);\n }\n return result;\n }", "public void back() throws JSONException {\n if(usePrevious || this.index <= 0) {\n throw new JSONException(\"Stepping back two steps is not supported\");\n }\n this.index -= 1;\n this.character -= 1;\n this.usePrevious = true;\n this.eof = false;\n }", "public static GotoExpression break_(LabelTarget labelTarget, Expression expression, Class clazz) { throw Extensions.todo(); }", "public static GotoExpression return_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public int jump() {\n if (Ylocation > 475) {\n Ylocation -= Ydir;\n }\n\n return Ylocation;\n }", "public int peekBack() {\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n return tail.val;\n }", "public AccessibilityNodeInfo getTraversalAfter() {\n/* 430 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void traceBackRecur(int row, int col, int pointer, StringBuilder SB_Target,\r\n\t\t\tStringBuilder SB_Query) {\r\n\t\tif (this.M[row][col]==0 && this.local || (row==0 && col==0)){\r\n\t\t\tthis.targetOutput = SB_Target.reverse().toString();\r\n\t\t\tthis.queryOutput = SB_Query.reverse().toString();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tswitch (pointer) {\r\n\t\tcase end: //for local only\r\n\t\t\ttargetOutput = SB_Target.reverse().toString();\r\n\t\t\tqueryOutput = SB_Query.reverse().toString();\r\n\t\t\treturn;\r\n\t\t\t// Match / Replace\r\n\t\tcase diagM :\r\n\t\t\tSB_Target.append(this.target.charAt(col-1));\r\n\t\t\tSB_Query.append(this.query.charAt(row-1));\r\n\t\t\ttraceBack(row-1, col-1, this.pointers[row-1][col-1], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\tcase diagI :\r\n\t\t\tSB_Target.append(this.target.charAt(col-1));\r\n\t\t\tSB_Query.append(this.query.charAt(row-1));\r\n\t\t\ttraceBack(row-1, col-1, this.pointersIns[row-1][col-1], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\tcase diagD :\r\n\t\t\tSB_Target.append(this.target.charAt(col-1));\r\n\t\t\tSB_Query.append(this.query.charAt(row-1));\r\n\t\t\ttraceBack(row-1, col-1, this.pointersDel[row-1][col-1], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\t\t// Insertion\r\n\t\tcase insM :\r\n\t\t\tSB_Target.append(this.target.charAt(col-1));\r\n\t\t\tSB_Query.append(\"_\");\r\n\t\t\ttraceBack(row, col-1,this.pointers[row][col-1], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\tcase insI :\r\n\t\t\tSB_Target.append(this.target.charAt(col-1));\r\n\t\t\tSB_Query.append(\"_\");\r\n\t\t\ttraceBack(row, col-1,this.pointersIns[row][col-1], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\t\t// Deletion\r\n\t\tcase delM :\r\n\t\t\tSB_Target.append(\"_\");\r\n\t\t\tSB_Query.append(this.query.charAt(row-1));\r\n\t\t\ttraceBack(row-1, col, this.pointers[row-1][col], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\tcase delD :\r\n\t\t\tSB_Target.append(\"_\");\r\n\t\t\tSB_Query.append(this.query.charAt(row-1));\r\n\t\t\ttraceBack(row-1, col, this.pointersDel[row-1][col], SB_Target, SB_Query);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}" ]
[ "0.6669797", "0.5888254", "0.5878648", "0.5868084", "0.5832601", "0.5829164", "0.58139634", "0.57802784", "0.5734363", "0.57318753", "0.5717664", "0.5703153", "0.56959766", "0.5687707", "0.5645735", "0.56289923", "0.5628599", "0.559676", "0.5587306", "0.55676377", "0.5562304", "0.5547289", "0.5543461", "0.5524964", "0.55241674", "0.5509719", "0.55054134", "0.5485074", "0.5460415", "0.54549515", "0.5451954", "0.5447671", "0.5433974", "0.54259264", "0.54210496", "0.5418815", "0.5418019", "0.5409624", "0.54059637", "0.5397453", "0.53906", "0.53880024", "0.53872746", "0.53853756", "0.5384327", "0.5382177", "0.5379638", "0.5374964", "0.5373907", "0.53727806", "0.5371684", "0.5359243", "0.53579617", "0.53483015", "0.5348032", "0.5338336", "0.5337993", "0.5337816", "0.53307307", "0.53294384", "0.53287345", "0.5320336", "0.5309456", "0.53051454", "0.530332", "0.5303002", "0.52951", "0.5294712", "0.52934986", "0.5292077", "0.5287707", "0.5285885", "0.5283597", "0.52815914", "0.5279801", "0.5279364", "0.5277684", "0.5275824", "0.5274836", "0.5267854", "0.52611065", "0.52588123", "0.5254836", "0.5254054", "0.52441716", "0.52419144", "0.5234483", "0.5229906", "0.5228385", "0.5221709", "0.5219943", "0.52176434", "0.52146554", "0.52110374", "0.5204422", "0.520094", "0.5199402", "0.51988256", "0.51926786", "0.51925004" ]
0.7008729
0
Returns all loop exists. A loop exit is a statement which has a successor that is not contained in the loop.
public Collection<Stmt> getLoopExits() { if (loopExists == null) { loopExists = new HashSet<Stmt>(); for (Stmt s : loopStatements) { for (Unit succ : g.getSuccsOf(s)) { if (!loopStatements.contains(succ)) { loopExists.add(s); } } } } return loopExists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Stmt> targetsOfLoopExit(Stmt loopExit) {\r\n\t\tassert getLoopExits().contains(loopExit);\r\n\t\tList<Unit> succs = g.getSuccsOf(loopExit);\r\n\t\tCollection<Stmt> res = new HashSet<Stmt>();\r\n\t\tfor (Unit u : succs) {\r\n\t\t\tStmt s = (Stmt) u;\r\n\t\t\tres.add(s);\r\n\t\t}\r\n\t\tres.removeAll(loopStatements);\r\n\t\treturn res;\r\n\t}", "public boolean foundLoop();", "private boolean isLoop() {\n boolean isFor = line.startsWith(\"for(\") || line.startsWith(\"for (\");\n boolean isWhile = line.startsWith(\"while(\") || line.startsWith(\"while (\");\n boolean isDo = line.equals(\"do\");\n return isFor || isWhile || isDo;\n }", "public boolean getLoops() { return getEndAction().startsWith(\"Loop\"); }", "protected boolean isInLoop() {\n return _loopInfo != null;\n }", "public boolean isSetLoop()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(LOOP$16) != null;\n }\n }", "public boolean loopExists(SLList pum) {\n // Initialise SLList snail and set the value to the rest of pum\n SLList snail = pum;\n // Initialise SLList cheetah and set the value to the rest of snail\n SLList cheetah = snail.rest();\n // Conditional while loop\n while (cheetah != pum.NIL && cheetah.rest() != pum.NIL)\n {\n // Conditional if statement to check if cheetah is equal to snail\n if (cheetah == snail)\n {\n // Return true statement;\n return true;\n }\n // Set snail to the rest of snail\n snail = snail.rest();\n // Set cheetah to the rest, rest of cheetah\n cheetah = cheetah.rest().rest();\n }\n // Return false statement\n return false;\n }", "public boolean hasSelfLoops();", "public boolean loopsForever() {\r\n\t\treturn getLoopExits().isEmpty();\r\n\t}", "boolean endLoop();", "public static LoopExpression loop(Expression body, LabelTarget breakTarget) { throw Extensions.todo(); }", "public static LoopExpression loop(Expression body) { throw Extensions.todo(); }", "public boolean getLoop()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOOP$16);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(LOOP$16);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "LinkedList<Loop> getCommonEnclosingLoops();", "public boolean eliminateLoop(){ return false; }", "public static LoopExpression loop(Expression body, LabelTarget breakTarget, LabelTarget continueTarget) { throw Extensions.todo(); }", "private boolean isLoop() {\n return \"loop\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }", "private Loop whileStatement()\n\t{\n\t\tmatch(TokenType.While);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\treturn new Loop(e, s); // student exercise\n\t}", "private static Boolean detectLoop(Node head2) {\n\t\tHashSet<Node> s = new HashSet<Node>();\n\t\twhile (head2 != null) {\n\t\t\tif (s.contains(head2))\n\t\t\t\treturn true;\n\t\t\ts.add(head2);\n\t\t\thead2 = head2.next;\n\t\t}\n\t\treturn false;\n\t}", "@Converted(kind = Converted.Kind.AUTO_NO_BODY,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp\", line = 1454,\n FQN=\"llvm::LoopAccessInfo::canAnalyzeLoop\", NM=\"_ZN4llvm14LoopAccessInfo14canAnalyzeLoopEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp -nm=_ZN4llvm14LoopAccessInfo14canAnalyzeLoopEv\")\n //</editor-fold>\n private boolean canAnalyzeLoop() {\n throw new UnsupportedOperationException(\"EmptyBody\");\n }", "public void exitLoop(Statement loopStatement, LoopScope loopScope) {\n\n // Breaks are connected to the NEXT EOG node and therefore temporarily stored after the loop\n // context is destroyed\n this.currentEOG.addAll(loopScope.getBreakStatements());\n\n List<Node> continues = new ArrayList<>(loopScope.getContinueStatements());\n if (!continues.isEmpty()) {\n Node condition;\n if (loopStatement instanceof DoStatement) {\n condition = ((DoStatement) loopStatement).getCondition();\n } else if (loopStatement instanceof ForStatement) {\n condition = ((ForStatement) loopStatement).getCondition();\n } else if (loopStatement instanceof ForEachStatement) {\n condition = loopStatement;\n } else if (loopStatement instanceof AssertStatement) {\n condition = loopStatement;\n } else {\n condition = ((WhileStatement) loopStatement).getCondition();\n }\n List<Node> conditions = SubgraphWalker.getEOGPathEdges(condition).getEntries();\n conditions.forEach(node -> addMultipleIncomingEOGEdges(continues, node));\n }\n }", "void branchingStatements()\n{\t\nSystem.out.println(\"***************inside unlabeled break************* \");\n//Break :forceful exit from current loop\nfor(int i=0; i<100; i++) \n\t{\t\n\t\tif(i == 10) \n\t\tbreak; \n\n\t\t\t\t/*when i will become 10. it will exit\n\t\t\t\t from loop and go to next immediate\n\t\t\t\t line out of loops body to execute*/\n\tSystem.out.println(\"value of i is\" + i);\n\t}\n\n\nSystem.out.println(\"***************inside labeled loop************* \");\n\n outer:\t\n\t\tfor(int i=0; i<3; i++)\n\t\t{\n\t\tSystem.out.println(\"Outer loop value of i is \"+ i);\n\t\t\tinner:\n\t\t \tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t System.out.println(\"Inner loop value of i is \"+j);\n\t\t\t if(i== j+1)\n\t\t\t break outer;\t\t \n\t\t\t System.out.println(\"Bye\");\t\n\t\t\t}\n\t\t }\n\n\n//continue:skip the execution of current iteration and start the next one\nSystem.out.println(\"***************inside unlabeled continue.************* \");\nString str = \"she saw a ship in the sea\"; \n\t\tint size = str.length(); \n\t\tint count = 0; \n\t\tfor (int i = 0; i < size; i++) \n\t\t { \n\t\t\tif (str.charAt(i) != 's') \t\n\t\t\t continue;\n\t\t\tcount++; \n\t\t } \nSystem.out.println(\"Number of s in \"+ str + \" = \"+ count); \n\n\nSystem.out.println(\"***************inside labeled continue.************* \"); \nouter: for (int i=0; i<3; i++) \n\t{\n\t\tfor(int j=0; j<3; j++)\n\t\t {\n\t\t\tif(j > i) \n\t\t\t{\n\t\t\tSystem.out.println(\"Hi\");\n\t\t\tcontinue outer; \n\t\t\t}\n\t\t\tSystem.out.print(\" \" + (i * j));\n\t\t}\n\t}\n}", "public org.apache.xmlbeans.XmlBoolean xgetLoop()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(LOOP$16);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(LOOP$16);\n }\n return target;\n }\n }", "static boolean nonLabelledStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"nonLabelledStatement\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = patternAssignment(b, l + 1);\n if (!r) r = block(b, l + 1);\n if (!r) r = functionDeclarationWithBody(b, l + 1);\n if (!r) r = forStatement(b, l + 1);\n if (!r) r = whileStatement(b, l + 1);\n if (!r) r = doWhileStatement(b, l + 1);\n if (!r) r = switchStatementOrExpression(b, l + 1);\n if (!r) r = ifStatement(b, l + 1);\n if (!r) r = rethrowStatement(b, l + 1);\n if (!r) r = tryStatement(b, l + 1);\n if (!r) r = breakStatement(b, l + 1);\n if (!r) r = continueStatement(b, l + 1);\n if (!r) r = returnStatement(b, l + 1);\n if (!r) r = assertStatementWithSemicolon(b, l + 1);\n if (!r) r = nonLabelledStatement_14(b, l + 1);\n if (!r) r = statementFollowedBySemiColon(b, l + 1);\n if (!r) r = yieldEachStatement(b, l + 1);\n if (!r) r = yieldStatement(b, l + 1);\n if (!r) r = consumeToken(b, SEMICOLON);\n if (!r) r = consumeToken(b, EXPRESSION_BODY_DEF);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean isManySolution() {\n\n boolean all_zero_brs = false;\n\n for(int i = 0; i < this.NBrsEff; i++){\n if(this.isAllZeroBrs(i)) {\n all_zero_brs = true;\n }\n }\n\n return all_zero_brs;\n }", "private Loop parseWhile(Tokenizer in) {\n\t\tLoop loop = new Loop();\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\tloop.condition = parseParen(in);\n\t\tloop.body = parseStmt(in);\n\t\treturn loop;\n\t}", "public boolean detectLoop(String id) {\r\n\t\treturn (path.getNodePosition(id) != -1);\t\t\r\n\t}", "private boolean isForStatement() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.FOR)\n\t\t{\n\t\t\ttheCurrentSymbol = new Symbol(TokenType.IF, theCurrentToken.TokenLineNumber, null, null, null, null, null, false);\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.LEFT_PARENTHESIS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(isDestination())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.ASSIGN)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\tif(isExpression())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\tif(isExpression())\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_PARENTHESIS)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\twhile(isStatement())\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"LOOP STATEMENT\");\n\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t\t\t\t\t\t\t\t\t\twhile(theCurrentToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.END)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.FOR)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"For!\");\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\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\ttheCurrentSymbol = null;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "public boolean isLoopMode();", "public final AliaChecker.statement_return statement() throws RecognitionException {\n\t\tAliaChecker.statement_return retval = new AliaChecker.statement_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tCommonTree _first_0 = null;\n\t\tCommonTree _last = null;\n\n\n\t\tCommonTree WHILE2=null;\n\t\tCommonTree DO3=null;\n\t\tTreeRuleReturnScope stat =null;\n\t\tTreeRuleReturnScope t =null;\n\t\tTreeRuleReturnScope statements4 =null;\n\n\t\tCommonTree WHILE2_tree=null;\n\t\tCommonTree DO3_tree=null;\n\n\t\ttry {\n\t\t\t// src\\\\alia\\\\AliaChecker.g:48:5: ( ^( WHILE stat= statements ^( DO statements ) ) |t= expr )\n\t\t\tint alt3=2;\n\t\t\tint LA3_0 = input.LA(1);\n\t\t\tif ( (LA3_0==WHILE) ) {\n\t\t\t\talt3=1;\n\t\t\t}\n\t\t\telse if ( ((LA3_0 >= AND && LA3_0 <= BECOMES)||(LA3_0 >= CHAR_EXPR && LA3_0 <= COLON)||(LA3_0 >= COMPOUND && LA3_0 <= CONST)||LA3_0==DIV||LA3_0==EQ||LA3_0==FALSE||(LA3_0 >= GE && LA3_0 <= GT)||(LA3_0 >= IDENTIFIER && LA3_0 <= IF)||LA3_0==LE||(LA3_0 >= LT && LA3_0 <= MOD)||(LA3_0 >= NOT && LA3_0 <= PRINT)||LA3_0==READ||(LA3_0 >= TIMES && LA3_0 <= TRUE)) ) {\n\t\t\t\talt3=2;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 3, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt3) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:48:9: ^( WHILE stat= statements ^( DO statements ) )\n\t\t\t\t\t{\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tWHILE2=(CommonTree)match(input,WHILE,FOLLOW_WHILE_in_statement236); \n\t\t\t\t\tWHILE2_tree = (CommonTree)adaptor.dupNode(WHILE2);\n\n\n\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(WHILE2_tree, root_1);\n\n\t\t\t\t\tsymTab.openScope();\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\tpushFollow(FOLLOW_statements_in_statement242);\n\t\t\t\t\t\tstat=statements();\n\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\tadaptor.addChild(root_1, stat.getTree());\n\n\t\t\t\t\t\tsymTab.openScope();\n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree _save_last_2 = _last;\n\t\t\t\t\t\tCommonTree _first_2 = null;\n\t\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\tDO3=(CommonTree)match(input,DO,FOLLOW_DO_in_statement254); \n\t\t\t\t\t\tDO3_tree = (CommonTree)adaptor.dupNode(DO3);\n\n\n\t\t\t\t\t\troot_2 = (CommonTree)adaptor.becomeRoot(DO3_tree, root_2);\n\n\t\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_statements_in_statement256);\n\t\t\t\t\t\t\tstatements4=statements();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tadaptor.addChild(root_2, statements4.getTree());\n\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t}\n\t\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t\t_last = _save_last_2;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tsymTab.closeScope();symTab.closeScope();\n\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t}\n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t checkBoolType((stat!=null?((AliaChecker.statements_return)stat).type:null), (stat!=null?((CommonTree)stat.getTree()):null)); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:51:9: t= expr\n\t\t\t\t\t{\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_expr_in_statement280);\n\t\t\t\t\tt=expr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tadaptor.addChild(root_0, t.getTree());\n\n\t\t\t\t\t retval.type = (t!=null?((AliaChecker.expr_return)t).type:null); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\n\t\t}\n\t\t \n\t\t catch (RecognitionException e) { \n\t\t \tif(!e.getMessage().equals(\"\")) {\n\t\t\t\t\tSystem.err.println(\"Exception!:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t\tthrow (new AliaException(\"\"));\n\t\t } \n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "public boolean checkNotDone() {\n boolean notDone = false;\n blocksPut = 0;\n \n for(int y = 0; y < buildHeight+1; y++) {\n for(int z = 0; z < buildSize; z++) {\n for(int x = 0; x < buildSize; x++) {\n if(myIal.lookBlock(x, y, z).equals(\"air\")) {\n notDone = true;\n } else {\n blocksPut++;\n }\n }\n }\n }\n\n return notDone;\n }", "private boolean checkExclusiveStatements(Statement... statements) throws ASTVisitorException{\n for(Statement st : statements){\n HasReturnASTVisitor visitor = new HasReturnASTVisitor();\n st.accept(visitor);\n\n if(!visitor.containsReturn())\n return false;\n }\n return true;\n }", "public final EObject entryRuleLoop() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleLoop = null;\n\n\n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:1516:2: (iv_ruleLoop= ruleLoop EOF )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:1517:2: iv_ruleLoop= ruleLoop EOF\n {\n newCompositeNode(grammarAccess.getLoopRule()); \n pushFollow(FOLLOW_ruleLoop_in_entryRuleLoop2954);\n iv_ruleLoop=ruleLoop();\n\n state._fsp--;\n\n current =iv_ruleLoop; \n match(input,EOF,FOLLOW_EOF_in_entryRuleLoop2964); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public Loop getLoop(Node nd) {\n\t\t\n\n\t\tint addr = nd.getAddress();\n\t\treturn getLoop(addr);\n\t\t\n\t}", "public boolean exitChecker() {\n isExit = false;\n return isExit;\n }", "public Guard isFinishedExecution() {\n if (depth == PSymGlobal.getConfiguration().getMaxStepBound()) {\n return Guard.constTrue();\n } else {\n return allMachinesHalted;\n }\n }", "public static void main(String[] args) {\n loop_1:\n for(int i = 0; i < 10; i++) {\n loop_2:\n while(i < 5) {\n loop_3:\n do {\n break loop_2; // will stop loop_2, but loop_1 is running/executing/iterating without stop\n } while(i < 3);\n }\n }\n }", "WhileLoopRule createWhileLoopRule();", "public static void main(String args[])\n\t{\n\t\tfrom_here :for(int i=0;i<10;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.println(i+ \" \"+j) ;\n\t\t\t\tif(j==6)\n\t\t\t\t\tbreak ;//from_here ;\n\t\t\t}\n\t\t\tSystem.out.println(\"This is hidden from the continue \") ;\n\t\t}\n\t}", "private Stmt forStatement() {\n consume(LEFT_PAREN, \"Expect '(' after 'for'.\");\n\n Stmt initializer;\n if(match(SEMICOLON)) {\n initializer = null;\n } else if(match(VAR)) {\n initializer = varDeclaration();\n } else {\n initializer = expressionStatement(); // One of the few places where an expression OR a statement is allowed.\n }\n\n Expr condition = null;\n if(!check(SEMICOLON)) {\n condition = expression();\n }\n consumeSemi(\"Expect ';' after loop condition.\");\n\n Expr increment = null;\n if(!check(RIGHT_PAREN)) {\n increment = expression();\n }\n consume(RIGHT_PAREN, \"Expect ')' after for clauses.\");\n\n Stmt body = statement();\n\n if(increment != null) {\n body = new Stmt.Block(Arrays.asList(body, new Stmt.Expression(increment))); // Execute the body and increment as their own block of code.\n }\n\n if(condition == null) condition = new Expr.Literal(true); // No condition given, this is an infinite loop.\n body = new Stmt.While(condition, body);\n\n if(initializer != null) {\n body = new Stmt.Block(Arrays.asList(initializer, body)); // Execute the instantiation, then the loop block.\n }\n\n return body;\n }", "protected boolean isFinished() {\r\n \tif (i >= 1 || i <= 1){\r\n \treturn true;\r\n \t}\r\n\t\treturn false;\r\n }", "private Collection<Node> findTarget(final JumpType type, final String label) {\n Collection<Node> result = new Object() {\n private Collection<Node> find(final int i) {\n if (i < 0) return null;\n\n Node nd = ctxt.get(i);\n\n if (nd instanceof Finally) {\n BlockStatement finalizer = ((Finally) nd).body;\n followingCache.put(finalizer, union(followingCache.get(finalizer), find(i - 1)));\n return Collections.singleton(First.of(finalizer));\n }\n\n return nd.accept(\n new DefaultVisitor<Void, Collection<Node>>() {\n @Override\n public Collection<Node> visit(Loop loop, Void v) {\n Set<String> labels = loopLabels.computeIfAbsent(loop, k -> new LinkedHashSet<>());\n if (type == JumpType.CONTINUE && (label == null || labels.contains(label)))\n return Collections.singleton(First.of(loop.getContinueTarget()));\n else if (type == JumpType.BREAK && label == null) return followingCache.get(loop);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(SwitchStatement nd, Void v) {\n if (type == JumpType.BREAK && label == null) return followingCache.get(nd);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(LabeledStatement nd, Void v) {\n if (type == JumpType.BREAK && nd.getLabel().getName().equals(label))\n return followingCache.get(nd);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(TryStatement t, Void v) {\n if (type == JumpType.THROW && !t.getAllHandlers().isEmpty()) {\n return Collections.singleton(First.of(t.getAllHandlers().get(0)));\n }\n if (t.hasFinalizer()) {\n BlockStatement finalizer = t.getFinalizer();\n followingCache.put(\n finalizer, union(followingCache.get(finalizer), find(i - 1)));\n return Collections.singleton(First.of(finalizer));\n }\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(Program nd, Void v) {\n return visit(nd);\n }\n\n @Override\n public Collection<Node> visit(IFunction nd, Void v) {\n return visit(nd);\n }\n\n private Collection<Node> visit(IStatementContainer nd) {\n if (type == JumpType.RETURN) return Collections.singleton(getExitNode((IStatementContainer) nd));\n return null;\n }\n },\n null);\n }\n }.find(ctxt.size() - 1);\n\n if (result == null) {\n return Collections.emptyList();\n }\n return result;\n }", "private List<String> exclusiveLoops(int numberOfLoops) {\n\t\tList<Integer> currentValues = new ArrayList<Integer>();\n\t\tfor(int i = 0; i<numberOfLoops; i++) {\n\t\t\tcurrentValues.add(0);\n\t\t}\n\t\tList<String> outputValues = new ArrayList<String>();\n\t\texclusiveLoopsRecurse(0, currentValues, outputValues);\n\t\treturn outputValues;\n\t}", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (!stack.isEmpty() || localRoot!=null);\n\t\t}", "private Loop parseDo(Tokenizer in) {\n\t\tLoop loop = new Loop();\n\t\tloop.body = parseStmt(in);\n\t\tToken expectWhile = in.next();\n\t\tif (expectWhile.type != Token.TokenType.KEYWORD || ((KeywordToken) expectWhile).value != Keyword.WHILE)\n\t\t\tthrow new SyntaxError(\"Expected while got: '\"+expectWhile+\"'\"+expectWhile.generateLineChar());\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\t\n\t\tloop.condition = parseParen(in);\n\t\treturn loop;\n\t}", "public static boolean whileStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"whileStatement\")) return false;\n if (!nextTokenIs(b, WHILE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, WHILE_STATEMENT, null);\n r = consumeTokens(b, 1, WHILE, LPAREN);\n p = r; // pin = 1\n r = r && report_error_(b, expressionWithRecoverUntilParen(b, l + 1));\n r = p && report_error_(b, consumeToken(b, RPAREN)) && r;\n r = p && statement(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isSolutionExist() {\n // Mengecek apakah sebuah matriks SPL memiliki solusi\n boolean ada_solusi = true;\n\n int i = this.NBrsEff - 1;\n\n while(ada_solusi && i >= 0){\n int j = 0;\n boolean found = false;\n\n while(!found && j <= this.NKolEff) {\n if(this.M[i][j] != 0 && j != this.NKolEff - 1) {\n found = true;\n }\n j += 1;\n }\n\n if(!found) {\n boolean all_zero_brs = false;\n\n for(int k = 0; k < this.NBrsEff; k++){\n if(this.isAllZeroBrs(k)) {\n all_zero_brs = true;\n }\n }\n\n if(!all_zero_brs) {\n ada_solusi = false;\n }\n }\n\n i -= 1;\n }\n\n return ada_solusi;\n }", "public boolean isGoal() {\n boolean result = false; \n for (int i = 0; i < this.N; i++) {\n for (int j = 0; j < this.N; j++) {\n int idx = (i * this.N) + (j + 1);\n if (idx != N * N - 1 && tiles[i][j] != idx) {\n return false;\n } \n if (idx == N * N - 1) {\n if (tiles[N - 1][N - 1] == 0) return true;\n return false;\n }\n }\n }\n return result;\n }", "private boolean isTerminated(ArrayList<Instance> outputs){\n for (Instance j : outputInstances){\n boolean flag = false;\n for (Instance i : outputs){\n flag = false;\n Concept temp = i.getConcept();\n while (true){ \n if (temp == null) break;\n if (temp == j.getConcept()){\n flag = true;\n break;\n }\n temp = temp.getSuperConcept();\n }\n if (flag) break;\n }\n if (!flag) return false;\n }\n return true;\n }", "private void checkAddrLoop(DecacCompiler compiler, boolean b, Label E) {\n int n = compiler.getFirstRegisterNumber();\n //Getting back the right op's method table addr to compare it\n RegisterOffset rightOpAddr = ((AbstractIdentifier) getRightOperand()).getClassDefinition().getMethodTableAddr();\n compiler.addInstruction(new LEA(rightOpAddr, Register.R0));\n\n //we have the result of the right expr in Rn-1\n\n\n Label start = Label.getNewControlFlow();\n compiler.addLabel(start);\n //getting back its method table addr\n compiler.addInstruction(new LOAD(new RegisterOffset(0, Register.getR(n - 1)), Register.getR(n - 1)));\n compiler.addInstruction(new CMP(Register.R0, Register.getR(n - 1)));\n\n if (b) {\n compiler.addInstruction(new BEQ(E)); //condition validee : instanceof vrai\n compiler.addInstruction(new CMP(new NullOperand(), Register.getR(n - 1)));\n //if equal, We got all the way up to object method table : instanceof is false.\n compiler.addInstruction(new BNE(start)); //if we are not at object yet, start again\n } else {\n Label end = Label.getNewEndOfBoolExpr();\n\n compiler.addInstruction(new BEQ(end)); //instance of true, but b=false : we don't jump to E\n compiler.addInstruction(new CMP(new NullOperand(), Register.getR(n - 1)));\n //We got all the way up to object method table : instanceof is false : we jump\n compiler.addInstruction(new BEQ(E)); //if we are not at object yet, start again\n compiler.addInstruction(new BRA(start));\n\n compiler.addLabel(end);\n }\n compiler.addToFirstRegisterNumber(-1);\n compiler.addComment(\"End of an instanceof\");\n\n }", "IRBasicBlock getExit();", "boolean hasNext() {\n return !next.isSentinel();\n }", "public boolean isRunning() {\r\n\t\tboolean sentinel = true;\r\n\t\trunningBalls = 0;\r\n\t\ttraversal_inorder_runningcheck(root);\r\n\t\tif (runningBalls!=0) {\r\n\t\t\treturn sentinel;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsentinel = false;\r\n\t\t\treturn sentinel;\r\n\t\t}\r\n\t}", "@Converted(kind = Converted.Kind.AUTO_NO_BODY,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp\", line = 1508,\n FQN=\"llvm::LoopAccessInfo::analyzeLoop\", NM=\"_ZN4llvm14LoopAccessInfo11analyzeLoopEPNS_9AAResultsEPNS_8LoopInfoEPKNS_17TargetLibraryInfoEPNS_13DominatorTreeE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp -nm=_ZN4llvm14LoopAccessInfo11analyzeLoopEPNS_9AAResultsEPNS_8LoopInfoEPKNS_17TargetLibraryInfoEPNS_13DominatorTreeE\")\n //</editor-fold>\n private void analyzeLoop(AAResults /*P*/ AA, LoopInfo /*P*/ LI, \n /*const*/ TargetLibraryInfo /*P*/ TLI, \n DominatorTree /*P*/ DT) {\n throw new UnsupportedOperationException(\"EmptyBody\");\n }", "private static void checkPerticularElementExitInLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\t\tString result = \"\";\n\t\tfor(Integer i:list) {\n\t\t\tresult = (list.contains(60))?\"true\":\"false\";\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "boolean has(final Flag... flags) {\n if(dontEnter || expr == null) return false;\n dontEnter = true;\n final boolean has = expr.has(flags);\n dontEnter = false;\n return has;\n }", "private static boolean forLoopParts_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = varDeclarationList(b, l + 1);\n r = r && forLoopParts_1_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public static void main(String[] args) {\n\t\touter:\r\n\t\t //label for outer loop\r\n\t\t for (int i = 0; i < 10; i++) { \r\n\t\t for (int j = 0; j < 10; j++) {\r\n\t\t if (j == 1)\r\n\t\t break outer;\r\n\t\t System.out.println(\" value of j = \" + j);\r\n\t\t }\r\n\t\t } //end of outer loop\r\n\t\t \r\n\t\t System.out.println(\"clear\");\r\n\t\t System.out.println(Integer.MAX_VALUE);\r\n\t}", "private static boolean forLoopParts_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_2\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = patternVariableDeclaration(b, l + 1);\n r = r && forLoopParts_2_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public final boolean hasNext() {\n return branch < max_branching;\n }", "public boolean checkIfEnd(){\n boolean flag = false;\n int i = 0;\n while(i< arrayBoard.length){\n if(arrayBoard[i] == -1) {\n flag = true;\n break;\n }\n i++;\n }\n return flag;\n }", "private BDD buildEndGame(){\n\t\tBDD res = factory.makeOne();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\t\t\t\tres.andWith(board[i][j].not());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "@Override\n\tpublic Boolean isEnd() {\n\t\tfor (int i = 0;i < grid.length;i++){\n\t\t\tfor (int j = 0;j < grid.length;j++){\n\t\t\t\tif(grid[i][j] == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "abstract boolean isExit();", "public final PythonParser.while_stmt_return while_stmt() throws RecognitionException {\n PythonParser.while_stmt_return retval = new PythonParser.while_stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token WHILE147=null;\n Token COLON149=null;\n Token ORELSE150=null;\n Token COLON151=null;\n PythonParser.suite_return s1 = null;\n\n PythonParser.suite_return s2 = null;\n\n PythonParser.test_return test148 = null;\n\n\n PythonTree WHILE147_tree=null;\n PythonTree COLON149_tree=null;\n PythonTree ORELSE150_tree=null;\n PythonTree COLON151_tree=null;\n\n\n stmt stype = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:924:5: ( WHILE test[expr_contextType.Load] COLON s1= suite[false] ( ORELSE COLON s2= suite[false] )? )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:924:7: WHILE test[expr_contextType.Load] COLON s1= suite[false] ( ORELSE COLON s2= suite[false] )?\n {\n root_0 = (PythonTree)adaptor.nil();\n\n WHILE147=(Token)match(input,WHILE,FOLLOW_WHILE_in_while_stmt3705); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n WHILE147_tree = (PythonTree)adaptor.create(WHILE147);\n adaptor.addChild(root_0, WHILE147_tree);\n }\n pushFollow(FOLLOW_test_in_while_stmt3707);\n test148=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, test148.getTree());\n COLON149=(Token)match(input,COLON,FOLLOW_COLON_in_while_stmt3710); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON149_tree = (PythonTree)adaptor.create(COLON149);\n adaptor.addChild(root_0, COLON149_tree);\n }\n pushFollow(FOLLOW_suite_in_while_stmt3714);\n s1=suite(false);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, s1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:924:63: ( ORELSE COLON s2= suite[false] )?\n int alt67=2;\n int LA67_0 = input.LA(1);\n\n if ( (LA67_0==ORELSE) ) {\n alt67=1;\n }\n switch (alt67) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:924:64: ORELSE COLON s2= suite[false]\n {\n ORELSE150=(Token)match(input,ORELSE,FOLLOW_ORELSE_in_while_stmt3718); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n ORELSE150_tree = (PythonTree)adaptor.create(ORELSE150);\n adaptor.addChild(root_0, ORELSE150_tree);\n }\n COLON151=(Token)match(input,COLON,FOLLOW_COLON_in_while_stmt3720); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON151_tree = (PythonTree)adaptor.create(COLON151);\n adaptor.addChild(root_0, COLON151_tree);\n }\n pushFollow(FOLLOW_suite_in_while_stmt3724);\n s2=suite(false);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, s2.getTree());\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n\n stype = actions.makeWhile(WHILE147, actions.castExpr((test148!=null?((PythonTree)test148.tree):null)), (s1!=null?s1.stypes:null), (s2!=null?s2.stypes:null));\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = stype;\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "public Set<Loop> getChildren(Loop lp) {\n\t\tif (children.containsKey(lp)) {\n\t\t\treturn children.get(lp);\n\t\t} else {\n\t\t\treturn new LinkedHashSet<Loop>();\n\t\t}\n\t}", "private void gameFinished() {\n\n\t\tisFinished = true;\n\t\touter: for (int x = 0; x < worldWidth; x++) {\n\t\t\tfor (int y = 0; y < worldHeight; y++) {\n\t\t\t\tif (!(tileArr[x][y].isOpened() || (tileArr[x][y].hasBomb() && tileArr[x][y]\n\t\t\t\t\t\t.hasFlag()))) {\n\t\t\t\t\tisFinished = false;\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }", "@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }", "@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }", "@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }", "public boolean universeIsDead() {\n for (Boolean[] line : universe) {\n for (boolean cell : line) {\n if (cell) return false;\n }\n }\n return true;\n }", "private <LOC extends IcfgLocation> void computeClausesForExitPoints(final IIcfg<LOC> icfg,\n\t\t\tfinal Collection<HornClause> resultChcs) {\n\t\tfor (final Entry<String, LOC> en : icfg.getProcedureExitNodes().entrySet()) {\n\t\t\tfinal String correspondingProc = en.getKey();\n\t\t\tfinal LOC correspondingEntryNode = icfg.getProcedureEntryNodes().get(correspondingProc);\n\t\t\tif (!icfg.getInitialNodes().contains(correspondingEntryNode)) {\n\t\t\t\t// correspondingProc is not an entry point procedure\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfinal HcPredicateSymbol bodyPred = getOrConstructPredicateSymbolForIcfgLocation(en.getValue());\n\n\t\t\tfinal List<TermVariable> varsForProc = getTermVariableListForPredForProcedure(en.getKey());\n\n\t\t\tfinal Set<HcVar> bodyVars = new LinkedHashSet<>();\n\t\t\tfinal List<Term> firstPredArgs = new ArrayList<>();\n\t\t\tHcBodyVar assertionViolatedBodyVar = null;\n\t\t\tfor (int i = 0; i < varsForProc.size(); i++) {\n\t\t\t\tfinal TermVariable tv = varsForProc.get(i);\n\t\t\t\tfinal HcBodyVar bodyVar = getPrettyBodyVar(bodyPred, i, tv.getSort(), mTermVarToProgVar.get(tv));\n\t\t\t\tbodyVars.add(bodyVar);\n\t\t\t\tfirstPredArgs.add(bodyVar.getTerm());\n\t\t\t\tif (tv.equals(mAssertionViolatedVar)) {\n\t\t\t\t\tassertionViolatedBodyVar = bodyVar;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal TermVariable constraint = assertionViolatedBodyVar.getTermVariable();\n\n\t\t\tupdateLogicWrtConstraint(constraint);\n\n\t\t\tif (!assertNoFreeVars(Collections.emptyList(), bodyVars, constraint)) {\n\t\t\t\tthrow new UnsupportedOperationException(\"implement this\");\n\t\t\t}\n\n\t\t\tfinal HornClause chc =\n\t\t\t\t\tnew HornClause(mMgdScript, mHcSymbolTable, constraint,\n\t\t\t\t\t\t\tCollections.singletonList(bodyPred), Collections.singletonList(firstPredArgs), bodyVars);\n\n\t\t\tchc.setComment(\"Type: entryProcExit(..., V) /\\\\ V -> false\");\n\t\t\tresultChcs.add(chc);\n\n\t\t}\n\t}", "private Loop parseFor(Tokenizer in) {\n\t\tLoop loop = new Loop();\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\tloop.initialize = parseExpr(in,OperatorLevel.lowest);\n\t\tToken expectSemi = in.next();\n\t\tif (expectSemi.type != Token.TokenType.SEMICOLON)\n\t\t\tthrow new SyntaxError(\"Expected ; got: '\"+expectSemi+\"'\"+expectSemi.generateLineChar());\n\t\tloop.condition = parseExpr(in,OperatorLevel.lowest);\n\t\texpectSemi = in.next();\n\t\tif (expectSemi.type != Token.TokenType.SEMICOLON)\n\t\t\tthrow new SyntaxError(\"Expected ; got: '\"+expectSemi+\"'\"+expectSemi.generateLineChar());\n\t\tloop.increment = parseParen(in);\n\t\tloop.body = parseStmt(in);\n\t\treturn loop;\n\t}", "public static boolean forStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forStatement\")) return false;\n if (!nextTokenIs(b, \"<for statement>\", AWAIT, FOR)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, FOR_STATEMENT, \"<for statement>\");\n r = forStatement_0(b, l + 1);\n r = r && consumeToken(b, FOR);\n p = r; // pin = 2\n r = r && report_error_(b, forLoopPartsInBraces(b, l + 1));\n r = p && statement(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isExit() {\n return false;\n }", "public boolean hasExit(int dir) {\n \tfor (int exit : exits) {\n \t\tif (exit == (dir-orientation+4)%4)\n \t\t\treturn true;\n \t}\n \treturn false;\n }", "private boolean chkCurRulIsLast(){\n\tfor(int i=0; i<ConditionTree.length;i++){\n\t\tif(currentRule.equals(ConditionTree[i][0]) && ConditionTree[i][5].equals(\"Y\")){\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\t\n}", "public boolean hasNext() {\n return nodeIndex != iterN;\n }", "Boolean checkEndGame() {\n for (WarPlayer player : players) {\n if (player.getHand().size() == 0)\n return true;\n }\n return false;\n }", "boolean getMissingStatement();", "boolean getMissingStatement();", "boolean getMissingStatement();", "boolean getMissingStatement();", "boolean hasAll();", "boolean hasAll();", "public boolean hasNext() {\n\t\t\treturn globalIndex < hashTableSize;\n\t\t}", "public final EObject ruleLoop() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token lv_i_2_0=null;\n Token otherlv_3=null;\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:1136:2: ( (otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';' ) )\n // InternalMLRegression.g:1137:2: (otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';' )\n {\n // InternalMLRegression.g:1137:2: (otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';' )\n // InternalMLRegression.g:1138:3: otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';'\n {\n otherlv_0=(Token)match(input,33,FOLLOW_4); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getLoopAccess().getLoopKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,12,FOLLOW_15); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getLoopAccess().getColonKeyword_1());\n \t\t\n // InternalMLRegression.g:1146:3: ( (lv_i_2_0= RULE_INT ) )\n // InternalMLRegression.g:1147:4: (lv_i_2_0= RULE_INT )\n {\n // InternalMLRegression.g:1147:4: (lv_i_2_0= RULE_INT )\n // InternalMLRegression.g:1148:5: lv_i_2_0= RULE_INT\n {\n lv_i_2_0=(Token)match(input,RULE_INT,FOLLOW_6); \n\n \t\t\t\t\tnewLeafNode(lv_i_2_0, grammarAccess.getLoopAccess().getIINTTerminalRuleCall_2_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getLoopRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"i\",\n \t\t\t\t\t\tlv_i_2_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.INT\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,13,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getLoopAccess().getSemicolonKeyword_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "default boolean hasChildren() {\n return iterator().hasNext();\n }", "boolean isGameFinished() {\n if (tiles.takenTilesNumber() < 3)\n return false;\n Symbol winningSymbol = tiles.getTile(1);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) {\n return true;\n }\n }\n if(tiles.getTile(2).equals(winningSymbol)) {\n if(tiles.getTile(3).equals(winningSymbol)) return true;\n }\n if(tiles.getTile(4).equals(winningSymbol)) {\n if(tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n winningSymbol = tiles.getTile(2);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(8).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(3);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n if (tiles.getTile(6).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n\n\n winningSymbol = tiles.getTile(4);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(7);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(8).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n return false;\n }", "Loop createLoop();", "boolean checkWin() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n seq.next();\n in.next();\n if (!seq.hasNext() && !in.hasNext()) {\n return true;\n }\n }\n return false;\n }", "public static boolean doWhileStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"doWhileStatement\")) return false;\n if (!nextTokenIs(b, DO)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, DO_WHILE_STATEMENT, null);\n r = consumeToken(b, DO);\n p = r; // pin = 1\n r = r && report_error_(b, statement(b, l + 1));\n r = p && report_error_(b, consumeTokens(b, -1, WHILE, LPAREN)) && r;\n r = p && report_error_(b, expressionWithRecoverUntilParen(b, l + 1)) && r;\n r = p && report_error_(b, consumeTokens(b, -1, RPAREN, SEMICOLON)) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean hasExited() {\n return this.exited;\n }", "@Converted(kind = Converted.Kind.AUTO_NO_BODY,\n source = \"${LLVM_SRC}/llvm/include/llvm/Analysis/LoopAccessAnalysis.h\", line = 621,\n FQN=\"llvm::LoopAccessInfo::hasStoreToLoopInvariantAddress\", NM=\"_ZNK4llvm14LoopAccessInfo30hasStoreToLoopInvariantAddressEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp -nm=_ZNK4llvm14LoopAccessInfo30hasStoreToLoopInvariantAddressEv\")\n //</editor-fold>\n public boolean hasStoreToLoopInvariantAddress() /*const*/ {\n throw new UnsupportedOperationException(\"EmptyBody\");\n }", "public static boolean hasLoop(LinkedList linkedList) {\r\n\t\tif (linkedList == null || linkedList.getHead() == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tIntegerNode slow = linkedList.getHead();\r\n\t\tIntegerNode fast = linkedList.getHead();\r\n\r\n\t\twhile (true) {\r\n\t\t\tslow = slow.getNext();\r\n\r\n\t\t\tif (fast.getNext() != null) {\r\n\t\t\t\tfast = fast.getNext().getNext();\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (slow == null || fast == null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (slow == fast) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void VisitWhileNode(BunWhileNode Node) {\n\t\tthis.Source.OpenIndent(\"let exception Break;\");\n\n\t\t/* definition of loop */\n\t\tthis.Source.AppendNewLine(\"fun WhileLoop () = (if \");\n\t\tthis.GenerateExpression(Node.CondNode());\n\t\tthis.Source.Append(\" then \");\n\n\t\t/* whatever */\n\t\tif(Node.HasNextNode()) {\n\t\t\tNode.blockNode().appendNode(Node.NextNode());\n\t\t}\n\n\t\t/* loop body */\n\t\tif(Node.blockNode().GetListSize() == 0) {\n\t\t\tthis.Source.Append(\"WhileLoop ()) else ())\");\n\t\t}\n\t\telse {\n\t\t\tthis.Source.OpenIndent(\"(\");\n\t\t\tthis.GenerateStmtListNode(Node.blockNode());\n\t\t\tthis.Source.Append(\";\");\n\t\t\tthis.Source.AppendNewLine(\"WhileLoop ()\");\n\t\t\tthis.Source.CloseIndent(\") else ())\");\n\t\t}\n\n\t\t/* start loop */\n\t\tthis.Source.CloseIndent(\"in\");\n\t\tthis.Source.OpenIndent(\" (\");\n\t\tthis.Source.AppendNewLine(\"WhileLoop ()\");\n\t\tthis.Source.AppendNewLine(\"handle Break => ()\");\n\t\tthis.Source.CloseIndent(\") end\");\n\n\t}", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }", "boolean hasBreakLevel();", "@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 }" ]
[ "0.67214876", "0.64514077", "0.6031465", "0.59678584", "0.59129584", "0.5706948", "0.5684911", "0.5673955", "0.56156635", "0.54829556", "0.54511815", "0.5353918", "0.53394616", "0.53345764", "0.5304363", "0.52732587", "0.52657866", "0.5252882", "0.51744664", "0.5128678", "0.50837654", "0.5078609", "0.50482535", "0.4976832", "0.49590817", "0.4928251", "0.49217728", "0.49185467", "0.49055496", "0.486333", "0.4849122", "0.4820707", "0.4817106", "0.4799934", "0.47957817", "0.47942337", "0.47804573", "0.47685185", "0.47511744", "0.47468603", "0.47282875", "0.47270277", "0.4724066", "0.47210923", "0.47164494", "0.4705238", "0.46900582", "0.46886986", "0.46878293", "0.46813798", "0.46736455", "0.46732074", "0.46713653", "0.46694314", "0.46556705", "0.46437424", "0.464104", "0.46367854", "0.46335536", "0.46257508", "0.4625711", "0.46235678", "0.46185538", "0.4615453", "0.4609228", "0.4605549", "0.45980954", "0.4589569", "0.45864537", "0.45864537", "0.45864537", "0.4586303", "0.45799202", "0.45790908", "0.45753536", "0.4573517", "0.4564935", "0.45616725", "0.4554333", "0.4545939", "0.45350328", "0.45350328", "0.45350328", "0.45350328", "0.45200568", "0.45200568", "0.45191228", "0.45156366", "0.45153484", "0.45115468", "0.45096856", "0.45096242", "0.45011032", "0.4497519", "0.44949964", "0.44895977", "0.44887823", "0.44868836", "0.44777662", "0.44758552" ]
0.8353576
0
Computes all targets of the given loop exit, i.e. statements that the exit jumps to but which are not part of this loop.
public Collection<Stmt> targetsOfLoopExit(Stmt loopExit) { assert getLoopExits().contains(loopExit); List<Unit> succs = g.getSuccsOf(loopExit); Collection<Stmt> res = new HashSet<Stmt>(); for (Unit u : succs) { Stmt s = (Stmt) u; res.add(s); } res.removeAll(loopStatements); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Collection<Node> findTarget(final JumpType type, final String label) {\n Collection<Node> result = new Object() {\n private Collection<Node> find(final int i) {\n if (i < 0) return null;\n\n Node nd = ctxt.get(i);\n\n if (nd instanceof Finally) {\n BlockStatement finalizer = ((Finally) nd).body;\n followingCache.put(finalizer, union(followingCache.get(finalizer), find(i - 1)));\n return Collections.singleton(First.of(finalizer));\n }\n\n return nd.accept(\n new DefaultVisitor<Void, Collection<Node>>() {\n @Override\n public Collection<Node> visit(Loop loop, Void v) {\n Set<String> labels = loopLabels.computeIfAbsent(loop, k -> new LinkedHashSet<>());\n if (type == JumpType.CONTINUE && (label == null || labels.contains(label)))\n return Collections.singleton(First.of(loop.getContinueTarget()));\n else if (type == JumpType.BREAK && label == null) return followingCache.get(loop);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(SwitchStatement nd, Void v) {\n if (type == JumpType.BREAK && label == null) return followingCache.get(nd);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(LabeledStatement nd, Void v) {\n if (type == JumpType.BREAK && nd.getLabel().getName().equals(label))\n return followingCache.get(nd);\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(TryStatement t, Void v) {\n if (type == JumpType.THROW && !t.getAllHandlers().isEmpty()) {\n return Collections.singleton(First.of(t.getAllHandlers().get(0)));\n }\n if (t.hasFinalizer()) {\n BlockStatement finalizer = t.getFinalizer();\n followingCache.put(\n finalizer, union(followingCache.get(finalizer), find(i - 1)));\n return Collections.singleton(First.of(finalizer));\n }\n return find(i - 1);\n }\n\n @Override\n public Collection<Node> visit(Program nd, Void v) {\n return visit(nd);\n }\n\n @Override\n public Collection<Node> visit(IFunction nd, Void v) {\n return visit(nd);\n }\n\n private Collection<Node> visit(IStatementContainer nd) {\n if (type == JumpType.RETURN) return Collections.singleton(getExitNode((IStatementContainer) nd));\n return null;\n }\n },\n null);\n }\n }.find(ctxt.size() - 1);\n\n if (result == null) {\n return Collections.emptyList();\n }\n return result;\n }", "public static LoopExpression loop(Expression body, LabelTarget breakTarget) { throw Extensions.todo(); }", "public static LoopExpression loop(Expression body, LabelTarget breakTarget, LabelTarget continueTarget) { throw Extensions.todo(); }", "@Test\r\n\tpublic void testTargetsTwoSteps() {\r\n\t\tboard.calcTargets(10, 1, 2);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\t\r\n\t\tboard.calcTargets(17, 13, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(5, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 14)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 14)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 12)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(15, 13)));\r\n\t}", "@Test\n\t\t\tpublic void testTargetsTwoSteps() {\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(15, 15, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(15, 17)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}", "@Test\n\tpublic void testRoomExit()\n\t{\n\t\t// Take one step, essentially just the adj list\n\t\tboard.calcTargets(18, 21, 1);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\t// Ensure doesn't exit through the wall\n\t\tassertEquals(1, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(17, 21)));\n\t\t// Take two steps\n\t\tboard.calcTargets(18, 21, 2);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(3, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(17, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 20)));\n\t}", "@Test\n\tpublic void testTargetsTwoSteps() {\n\t\tboard.calcTargets(7, 6, 2);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(5, 6)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 5)));\n\t\tassertTrue(targets.contains(board.getCellAt(8, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(8, 5)));\n\t\tassertTrue(targets.contains(board.getCellAt(9, 6)));\n\t\tassertTrue(targets.contains(board.getCellAt(7, 4)));\n\t\tboard.calcTargets(14, 24, 2);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(3, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t}", "@Test\r\n\tpublic void testRoomExit()\r\n\t{\r\n\t\t// Take one step, essentially just the adj list\r\n\t\tboard.calcTargets(8, 2, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\t// Ensure doesn't exit through the wall\r\n\t\tassertEquals(1, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\t// Take two steps\r\n\t\tboard.calcTargets(8, 2, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(3, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 1)));\r\n\t}", "@Test\n\tpublic void testTargetsOneStep() {\n\t\tboard.calcTargets(7, 6, 1);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(4, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(7, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(7, 5)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(6, 6)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(8, 6)));\t\n\n\n\t\tboard.calcTargets(14, 24, 1);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(2, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(15, 24)));\n\t\tassertTrue(targets.contains(board.getCellAt(14, 23)));\t\t\t\n\t}", "public void collectAndVerifyTarget() {\n System.out.println(\"Enter the total no of targets that needs to be achieved\");\n Scanner sc = new Scanner(System.in);\n int tCount = sc.nextInt();\n for (int i = 0; i < tCount; i++) {\n System.out.println(\"Enter the value of target \");\n double d = sc.nextDouble();\n double aTarget = 0;\n for (int j = 0; j < tranCount; j++) {\n aTarget = aTarget + transactions[j];\n if (aTarget >= d) {\n System.out.println(\"Target achieved after \" + (j + 1) + \" transactions \\n\");\n break;\n }\n }\n if (aTarget < d) {\n System.out.println(\"Given target is not achieved\");\n }\n }\n }", "private int end_round() {\n if(gameClock.displayTime() <= 0) {\n return 2;\n }\n \n for(target t : targets) {\n if(!t.is_hit()) return 0;\n }\n \n return 1;\n }", "IRBasicBlock getExit();", "public Collection<Stmt> getLoopExits() {\r\n\t\tif (loopExists == null) {\r\n\t\t\tloopExists = new HashSet<Stmt>();\r\n\t\t\tfor (Stmt s : loopStatements) {\r\n\t\t\t\tfor (Unit succ : g.getSuccsOf(s)) {\r\n\t\t\t\t\tif (!loopStatements.contains(succ)) {\r\n\t\t\t\t\t\tloopExists.add(s);\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 loopExists;\r\n\t}", "private void setTargetCosts(){\n\t\t//Check which targets that are inside of this building\n\t\tfor(LinkedList<Node> list : targets){\n\t\t\tfor(Node node : list){\n\t\t\t\t//Make a walkable square at the position so that the target is reachable\n\t\t\t\tfor(int k = node.getXPos()-PedestriansSimulator.PEDESTRIAN_RADIUS; k < node.getXPos()+PedestriansSimulator.PEDESTRIAN_RADIUS; k++) {\n\t\t\t\t\tif(Math.round(scaleCollision * k) >= 0 && Math.round(scaleCollision * k) < COLLISION_ROWS){\n\t\t\t\t\t\tfor(int l = node.getYPos()-PedestriansSimulator.PEDESTRIAN_RADIUS; l < node.getYPos()+PedestriansSimulator.PEDESTRIAN_RADIUS; l++) {\n\t\t\t\t\t\t\tif(Math.round(scaleCollision * l) >= 0 && Math.round(scaleCollision * l) < COLLISION_ROWS){\n\t\t\t\t\t\t\t\tcollisionMatrix[Math.round(scaleCollision * k)][Math.round(scaleCollision * l)] = FOOTWAY_COST;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "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}", "@Test\r\n\tpublic void testTargetsOneStep() {\r\n\t\tboard.calcTargets(24, 17, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 18)));\t\r\n\t\t\r\n\t\tboard.calcTargets(10, 24, 1);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 24)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 23)));\t\t\t\r\n\t}", "private <LOC extends IcfgLocation> void computeClausesForExitPoints(final IIcfg<LOC> icfg,\n\t\t\tfinal Collection<HornClause> resultChcs) {\n\t\tfor (final Entry<String, LOC> en : icfg.getProcedureExitNodes().entrySet()) {\n\t\t\tfinal String correspondingProc = en.getKey();\n\t\t\tfinal LOC correspondingEntryNode = icfg.getProcedureEntryNodes().get(correspondingProc);\n\t\t\tif (!icfg.getInitialNodes().contains(correspondingEntryNode)) {\n\t\t\t\t// correspondingProc is not an entry point procedure\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfinal HcPredicateSymbol bodyPred = getOrConstructPredicateSymbolForIcfgLocation(en.getValue());\n\n\t\t\tfinal List<TermVariable> varsForProc = getTermVariableListForPredForProcedure(en.getKey());\n\n\t\t\tfinal Set<HcVar> bodyVars = new LinkedHashSet<>();\n\t\t\tfinal List<Term> firstPredArgs = new ArrayList<>();\n\t\t\tHcBodyVar assertionViolatedBodyVar = null;\n\t\t\tfor (int i = 0; i < varsForProc.size(); i++) {\n\t\t\t\tfinal TermVariable tv = varsForProc.get(i);\n\t\t\t\tfinal HcBodyVar bodyVar = getPrettyBodyVar(bodyPred, i, tv.getSort(), mTermVarToProgVar.get(tv));\n\t\t\t\tbodyVars.add(bodyVar);\n\t\t\t\tfirstPredArgs.add(bodyVar.getTerm());\n\t\t\t\tif (tv.equals(mAssertionViolatedVar)) {\n\t\t\t\t\tassertionViolatedBodyVar = bodyVar;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal TermVariable constraint = assertionViolatedBodyVar.getTermVariable();\n\n\t\t\tupdateLogicWrtConstraint(constraint);\n\n\t\t\tif (!assertNoFreeVars(Collections.emptyList(), bodyVars, constraint)) {\n\t\t\t\tthrow new UnsupportedOperationException(\"implement this\");\n\t\t\t}\n\n\t\t\tfinal HornClause chc =\n\t\t\t\t\tnew HornClause(mMgdScript, mHcSymbolTable, constraint,\n\t\t\t\t\t\t\tCollections.singletonList(bodyPred), Collections.singletonList(firstPredArgs), bodyVars);\n\n\t\t\tchc.setComment(\"Type: entryProcExit(..., V) /\\\\ V -> false\");\n\t\t\tresultChcs.add(chc);\n\n\t\t}\n\t}", "@Test\n\t\t\tpublic void testTargetsThreeSteps() {\n\t\t\t\t//Using walkway space that will go near a door with the wrong direction\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}", "public Collection<Stmt> targetBranches() {\n if(targetBranches_computed) {\n return targetBranches_value;\n }\n ASTNode$State state = state();\n int num = state.boundariesCrossed;\n boolean isFinal = this.is$Final();\n targetBranches_value = targetBranches_compute();\n if (isFinal && num == state().boundariesCrossed) {\n targetBranches_computed = true;\n } else {\n }\n\n return targetBranches_value;\n }", "private void checkTargetsReachable(){\n\t\tPathfinder pathfinder = new Pathfinder(collisionMatrix);\n\t\tLinkedList<Node> removeList = new LinkedList<Node>();\n\t\tboolean pathWasFound = false;\n\t\tLinkedList<Node> currentPath;\n\t\tLinkedList<Node> reversePath;\n\t\t\n\t\t//Go through all starting positions\n\t\tfor(LinkedList<Node> startList : targets){\n\t\t\tprogress += 8;\n\t\t\tsetProgress(progress);\n\t\t\tfor(Node startNode : startList){\n\t\t\t\t\n\t\t\t\tboolean outsideMap = (startNode.getCollisionXPos(scaleCollision) < 0 || startNode.getCollisionXPos(scaleCollision) >= (collisionMatrix.length-1) || startNode.getCollisionYPos(scaleCollision) < 0 || startNode.getCollisionYPos(scaleCollision) >= (collisionMatrix.length-1));\n\t\t\t\t\n\t\t\t\tpathWasFound = false;\n\t\t\t\t//Make sure that target is inside of map\n\t\t\t\tif(!outsideMap){\n\t\t\t\t\t//Check against all target positions\n\t\t\t\t\tfor(LinkedList<Node> targetList : targets){\n\t\t\t\t\t\tfor(Node targetNode : targetList){\n\t\t\t\t\t\t\t//Only check against targets that have not already been marked as unreachable\n\t\t\t\t\t\t\tboolean selfCheck = (targetNode.getXPos() != startNode.getXPos() || targetNode.getYPos() != startNode.getYPos());\n\t\t\t\t\t\t\tif(!removeList.contains(targetNode) && selfCheck){\n\t\t\t\t\t\t\t\t//Check if this path has already been checked\n\t\t\t\t\t\t\t\tif(!preCalculatedPaths.containsKey(startNode.toStringCollision(scaleCollision) + \"-\" + targetNode.toStringCollision(scaleCollision))){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcurrentPath = new LinkedList<Node>();\n\t\t\t\t\t\t\t\t\t//Check if a path can be found for this start and target node\n\t\t\t\t\t\t\t\t\tif(pathfinder.findPath(startNode.getCollisionXPos(scaleCollision), startNode.getCollisionYPos(scaleCollision), targetNode.getCollisionXPos(scaleCollision), targetNode.getCollisionYPos(scaleCollision), currentPath)){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(Frame.USE_PRECALCULATED_PATHS)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpreCalculatedPaths.put(startNode.toStringCollision(scaleCollision) + \"-\" + targetNode.toStringCollision(scaleCollision), currentPath);\n\t\t\t\t\t\t\t\t\t\t\treversePath = new LinkedList<Node>();\n\t\t\t\t\t\t\t\t\t\t\treversePath.addAll(currentPath);\n\t\t\t\t\t\t\t\t\t\t\tCollections.reverse(reversePath);\n\t\t\t\t\t\t\t\t\t\t\treversePath.removeFirst();\n\t\t\t\t\t\t\t\t\t\t\treversePath.add(startNode);\n\t\t\t\t\t\t\t\t\t\t\tpreCalculatedPaths.put(targetNode.toStringCollision(scaleCollision) + \"-\" + startNode.toStringCollision(scaleCollision) ,reversePath);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tpathWasFound = true;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tpathWasFound = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Remove nodes which we cannot find a path from\n\t\t\t\tif(!pathWasFound){\n\t\t\t\t\tremoveList.add(startNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Go through the remove list and remove unreachable nodes\n\t\tfor(Node node : removeList){\n\t\t\tfor(LinkedList<Node> startList : targets){\n\t\t\t\tstartList.remove(node);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\t\t\tpublic void testRoomExit()\n\t\t\t{\n\t\t\t\t// One step from room\n\t\t\t\tboard.calcTargets(13, 14, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 14)));\n\n\t\t\t\t// Take two steps\n\t\t\t\tboard.calcTargets(13, 14, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(11, 14)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 13)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 15)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Test\r\n\tpublic void testTargetsFourSteps() {\r\n\t\tboard.calcTargets(24, 0, 4);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 1)));\r\n\t\t\r\n\t\tboard.calcTargets(0, 20, 4);\r\n\t\ttargets = board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(1, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(2, 20)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(3, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\r\n\t\t\r\n\t\t// Includes a path that doesn't have enough length plus one door\r\n\t\tboard.calcTargets(9, 0, 4);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(8, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\t\r\n\t}", "public void markTargets() {\n defaultOp.setBranchTarget();\n for (int i=0; i<targetsOp.length; i++)\n targetsOp[i].setBranchTarget();\n }", "public static void main(String[] args)\n\t{\n \n\t\tSystem.out.println(\"Enter the size of transaction array\");\n int trSize = sc.nextInt();\n\n // creating an array of provided size\n int[] transactions = new int[trSize];\n \n // get the elements of the array (in a loop)\n System.out.println(\"Enter the values of array\");\n for (int i = 0; i < transactions.length; i++) {\n transactions[i] = sc.nextInt();\n }\n // get the number of targets\n System.out.println(\"Enter the total no of targets that needs to be achieved\");\n int numTargets = sc.nextInt();\n \n // get in target one-by-one (loop)\n for (int i = 0; i < numTargets; i++) {\n \n \t// Get TargetValue\n System.out.println(\"Enter the value of target\");\n int target = sc.nextInt();\n \n int sum =0;\n for ( int j=0; j < transactions.length; j++) {\n \tsum = sum + transactions[j];\n \t\n \tif ( sum >= target) {\n \tSystem.out.println(\"Target achieved after \" + (j+1) + \" transactions\" );\n \tbreak; // break out of the innermost for loop\n \t}\n \t\n \t//we come to the last transactions, yet target is not achieved\n \tif (j == transactions.length - 1) {\n \t\tSystem.out.println( \"Given target is not achieved\");\n \t}\n \t\n }\n \n \n\t}\n\n}", "@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n loop_1:\n for(int i = 0; i < 10; i++) {\n loop_2:\n while(i < 5) {\n loop_3:\n do {\n break loop_2; // will stop loop_2, but loop_1 is running/executing/iterating without stop\n } while(i < 3);\n }\n }\n }", "public void recurseTargets(BoardCell cell, int i) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSet<BoardCell> adjList = getAdjList(cell.getRow(), cell.getCol());\t\t\t\t\t// gets the adjacency set for the start cell\n\t\tvisited.add(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the start cell to the adjacency set\n\t\tif(cell.isRoomCenter()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// gets the cells that are room centers\n\t\t\ttargets.add(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the cell to the target set\n\t\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (once rooms are entered, they cannot be left)\n\t\t}\n\t\tif(cell.getOccupied()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// gets cells that are occupied\n\t\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (occupied cells cannot be visited)\n\t\t}\n\t\tif(i == 0) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// catches if this current iteration represents the last step in the move\n\t\t\ttargets.add(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the cell to the target set\n\t\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (the player can move no further, and therefore further iterations are not necessary)\n\t\t}\n\t\tfor(BoardCell temp : adjList) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t// iterates through each cell in the adjacency set\n\t\t\tif(!(visited.contains(temp))) {\t\t\t\t\t\t\t\t\t\t\t\t\t// gets the cells that have not yet been visited\n\t\t\t\trecurseTargets(temp,i-1);\t\t\t\t\t\t\t\t\t\t\t\t\t// recursively calls itself with each cell and one less move\n\t\t\t}\n\t\t}\n\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (there are no more cases to check)\n\t}", "public static GotoExpression continue_(LabelTarget labelTarget) { throw Extensions.todo(); }", "@Test\r\n\tpublic void testTargetsSixSteps() {\r\n\t\tboard.calcTargets(24, 17, 6);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(20, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(19, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(21, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\r\n\t\t\r\n\t}", "public static GotoExpression break_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public void calcTargets(BoardCell startCell, int i) {\n\t\ttargets = new HashSet<BoardCell> ();\t\t\t\t\t\t\t\t\t\t\t\t// Initializes the set of target cells\n\t\tvisited = new HashSet<BoardCell> ();\t\t\t\t\t\t\t\t\t\t\t\t// Initializes the set of visited cells\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSet<BoardCell> adjList = getAdjList(startCell.getRow(), startCell.getCol());\t\t// gets the adjacency list for the start cell\n\t\tvisited.add(startCell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the start cell to the adjacency set\n\t\tfor(BoardCell k : adjList) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t// iterates through each cell on the adjacency set\n\t\t\trecurseTargets(k, i-1);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// calls the method recurseTargets for each cell on the adjacency set, with one less move\n\t\t}\n\t}", "public static LoopExpression loop(Expression body) { throw Extensions.todo(); }", "@Test\n\t\t\tpublic void testTargetsFourSteps() {\n\t\t\t\t//Using random walkway space\n\t\t\t\tboard.calcTargets(5, 18, 3);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(10, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 21)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 19)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(3, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 18)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 18)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}", "public InsnTarget[] switchTargets() {\n return targetsOp;\n }", "public static void main(String[] args) {\n\t\touter:\r\n\t\t //label for outer loop\r\n\t\t for (int i = 0; i < 10; i++) { \r\n\t\t for (int j = 0; j < 10; j++) {\r\n\t\t if (j == 1)\r\n\t\t break outer;\r\n\t\t System.out.println(\" value of j = \" + j);\r\n\t\t }\r\n\t\t } //end of outer loop\r\n\t\t \r\n\t\t System.out.println(\"clear\");\r\n\t\t System.out.println(Integer.MAX_VALUE);\r\n\t}", "@Test\r\n\tpublic void testTargets11_2() {\r\n\t\tBoardCell cell = board.getCell(1, 1);\r\n\t\tboard.calcTargets(cell, 2);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(3, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(0, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(0, 0)));\r\n\r\n\t}", "@Test\r\n\tpublic void testTargets00_3() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tboard.calcTargets(cell, 3);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(0, 1)));\r\n\t}", "public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }", "void branchingStatements()\n{\t\nSystem.out.println(\"***************inside unlabeled break************* \");\n//Break :forceful exit from current loop\nfor(int i=0; i<100; i++) \n\t{\t\n\t\tif(i == 10) \n\t\tbreak; \n\n\t\t\t\t/*when i will become 10. it will exit\n\t\t\t\t from loop and go to next immediate\n\t\t\t\t line out of loops body to execute*/\n\tSystem.out.println(\"value of i is\" + i);\n\t}\n\n\nSystem.out.println(\"***************inside labeled loop************* \");\n\n outer:\t\n\t\tfor(int i=0; i<3; i++)\n\t\t{\n\t\tSystem.out.println(\"Outer loop value of i is \"+ i);\n\t\t\tinner:\n\t\t \tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t System.out.println(\"Inner loop value of i is \"+j);\n\t\t\t if(i== j+1)\n\t\t\t break outer;\t\t \n\t\t\t System.out.println(\"Bye\");\t\n\t\t\t}\n\t\t }\n\n\n//continue:skip the execution of current iteration and start the next one\nSystem.out.println(\"***************inside unlabeled continue.************* \");\nString str = \"she saw a ship in the sea\"; \n\t\tint size = str.length(); \n\t\tint count = 0; \n\t\tfor (int i = 0; i < size; i++) \n\t\t { \n\t\t\tif (str.charAt(i) != 's') \t\n\t\t\t continue;\n\t\t\tcount++; \n\t\t } \nSystem.out.println(\"Number of s in \"+ str + \" = \"+ count); \n\n\nSystem.out.println(\"***************inside labeled continue.************* \"); \nouter: for (int i=0; i<3; i++) \n\t{\n\t\tfor(int j=0; j<3; j++)\n\t\t {\n\t\t\tif(j > i) \n\t\t\t{\n\t\t\tSystem.out.println(\"Hi\");\n\t\t\tcontinue outer; \n\t\t\t}\n\t\t\tSystem.out.print(\" \" + (i * j));\n\t\t}\n\t}\n}", "protected abstract void trace_end_loop();", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "@Converted(kind = Converted.Kind.AUTO_NO_BODY,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp\", line = 1508,\n FQN=\"llvm::LoopAccessInfo::analyzeLoop\", NM=\"_ZN4llvm14LoopAccessInfo11analyzeLoopEPNS_9AAResultsEPNS_8LoopInfoEPKNS_17TargetLibraryInfoEPNS_13DominatorTreeE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/LoopAccessAnalysis.cpp -nm=_ZN4llvm14LoopAccessInfo11analyzeLoopEPNS_9AAResultsEPNS_8LoopInfoEPKNS_17TargetLibraryInfoEPNS_13DominatorTreeE\")\n //</editor-fold>\n private void analyzeLoop(AAResults /*P*/ AA, LoopInfo /*P*/ LI, \n /*const*/ TargetLibraryInfo /*P*/ TLI, \n DominatorTree /*P*/ DT) {\n throw new UnsupportedOperationException(\"EmptyBody\");\n }", "@Test\n\tpublic void testTargetsFourSteps() {\n\t\tboard.calcTargets(14, 24, 4);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 20)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 23)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t}", "private void buildForEachStatement(ForEachStatement tree) {\n Block afterLoop = currentBlock;\n Block statementBlock = createBlock();\n Block loopback = createBranch(tree, statementBlock, afterLoop);\n currentBlock = createBlock(loopback);\n addContinueTarget(loopback);\n breakTargets.addLast(afterLoop);\n build(tree.statement());\n breakTargets.removeLast();\n continueTargets.removeLast();\n statementBlock.addSuccessor(currentBlock);\n currentBlock = loopback;\n build(tree.variable());\n currentBlock = createBlock(currentBlock);\n build(tree.expression());\n currentBlock = createBlock(currentBlock);\n }", "public void executeLastRanTargets() {\n if ( _last_ran_targets != null ) {\n if ( _unnamed_target != null )\n _last_ran_targets.remove( _unnamed_target.getName() );\n Iterator it = _last_ran_targets.iterator();\n while ( it.hasNext() ) {\n executeTarget( ( String ) it.next() );\n }\n }\n }", "@Test\r\n\tpublic void testTargets00_2() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tboard.calcTargets(cell, 2);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(3, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 1)));\r\n\r\n\t}", "public static GotoExpression goto_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public static GotoExpression break_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\tTargetSum test = new TargetSum();\n\t\tint[] nums = {0,0,0,0,0,0,0,0,1};\n\t\tint S = 1;\n\t\tint r = test.findTargetSumWays(nums, S);\n\t\tSystem.out.println(r);\n\t}", "private void linkTargets(ISequenceComponent seq) throws Exception {\n\t\tif (seq == null) {\n\t\t\tlogger.create().block(\"linkTargets\").info().level(1).msg(\"Group sequence is null, no targets to link\")\n\t\t\t\t\t.send();\n\t\t\treturn;\n\t\t}\n\t\tif (seq instanceof XIteratorComponent) {\n\t\t\t// extract from each sub-element\n\n\t\t\tXIteratorComponent xit = (XIteratorComponent) seq;\n\t\t\tList list = xit.listChildComponents();\n\t\t\tIterator ic = list.iterator();\n\t\t\twhile (ic.hasNext()) {\n\t\t\t\tISequenceComponent cseq = (ISequenceComponent) ic.next();\n\t\t\t\tlinkTargets(cseq);\n\t\t\t}\n\t\t} else if (seq instanceof XBranchComponent) {\n\t\t\t// there should be no targets in here !\n\n\t\t} else {\n\t\t\t// this is an executive - only check slew and target-select\n\n\t\t\tXExecutiveComponent xec = (XExecutiveComponent) seq;\n\t\t\tIExecutiveAction action = xec.getExecutiveAction();\n\n\t\t\tif (action instanceof ITargetSelector) {\n\t\t\t\tITarget target = ((ITargetSelector) action).getTarget();\n\t\t\t\tif (target == null)\n\t\t\t\t\tthrow new Exception(\"TargetSelector:\" + seq.getComponentName() + \" had null target\");\n\t\t\t\t// link the target to one from table\n\t\t\t\tITarget ctarget = targets.get(target.getID());\n\t\t\t\tif (ctarget == null)\n\t\t\t\t\tthrow new Exception(\"Target: \" + target.getName() + \" is not known\");\n\t\t\t\t((XTargetSelector) action).setTarget(ctarget);\n\n\t\t\t} else if (action instanceof ISlew) {\n\t\t\t\tITarget target = ((ISlew) action).getTarget();\n\t\t\t\tif (target == null)\n\t\t\t\t\tthrow new Exception(\"TargetSelector:\" + seq.getComponentName() + \" had null target\");\n\t\t\t\t// link the target to one from table\n\t\t\t\tITarget ctarget = targets.get(target.getID());\n\t\t\t\tif (ctarget == null)\n\t\t\t\t\tthrow new Exception(\"Target: \" + target.getName() + \" is not known\");\n\t\t\t\t((XSlew) action).setTarget(ctarget);\n\t\t\t}\n\t\t}\n\t}", "public static GotoExpression return_(LabelTarget labelTarget) { throw Extensions.todo(); }", "@Test\r\n\tpublic void testTargets22_2() {\r\n\t\tBoardCell cell = board.getCell(2, 2);\r\n\t\tboard.calcTargets(cell, 2);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 3)));\r\n\r\n\t}", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\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 }", "@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 static GotoExpression goto_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }", "public boolean getLoops() { return getEndAction().startsWith(\"Loop\"); }", "@Test\r\n\tpublic void testTargets00_1() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tboard.calcTargets(cell, 1);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 0)));\r\n\r\n\t}", "public static void main(String args[]) throws IOException{\n\t\t\n\t\t\n\t\tfor (int fold = 0; fold<10; fold++) {\n\t\t\t//triples_result(\"holders_\"+fold, \"test_holders_\"+fold+\"_result\"); //file, result_file\n\t\t\t//sentence_triples_word(\"holders_\"+fold, \"holders_gold_\"+fold, 0, \"holders_\"+fold); //crf_output\n\t\t\t\n\t\t\ttriples_result(\"holders_full_t_\"+fold, \"test_holders_t_\"+fold+\"_result\"); //file, result_file\n\t\t\tsentence_triples_hard_word(\"holders_\"+fold, \"holders_gold_\"+fold, 0, \"holders_t_\"+fold); //crf_output\n\n\t\t\t\n\t\t\tholder_triples = new LinkedList<Triples>();\n\t\t\tholder_prob = new LinkedList<Double>();\n\t\t\tgold_holders = new HashMap<String, Entries>();\n\n\t\t}\n\t\t\n\n\t\t\n\t\tfor (int fold = 0; fold<10; fold++) {\n\t\t\ttriples_result(\"targets_full_t_\"+fold, \"test_targets_t_\"+fold+\"_result\"); //file, result_file\n\t\t\tsentence_triples_hard_word(\"targets_\"+fold, \"targets_gold_\"+fold, 0, \"targets_t_\"+fold); //crf_output\n\t\t\t\n\t\t\tholder_triples = new LinkedList<Triples>();\n\t\t\tholder_prob = new LinkedList<Double>();\n\t\t\tgold_holders = new HashMap<String, Entries>();\n\n\t\t}\n\n\t\t\n\n\t\t\n\t\t//triples_result(\"targets_0\", \"test_targets_0_result\"); //file, result_file\n\t\t//sentence_triples_word(\"targets_0\", \"targets_gold_0\", 0, \"targets_0\"); //crf_output\n\t\t\n\t\t//triples_result(\"targets_1\", \"test_targets_1_result\"); //file, result_file\n\t\t//sentence_triples_word(\"targets_1\", \"targets_gold_1\", 1, \"targets_1\"); //crf_output\n\t}", "public static GotoExpression return_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }", "public static void main(String[] args) throws IOException {\n File file = new File(\"input.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n String line;\n String [] tokens;\n int accumulator = 0;\n String operation;\n int argument;\n int index;\n int goestoIndex;\n Set<Integer> doneIndex = new HashSet<>(); \n Stack<Integer> loopIndex = new Stack<Integer>();\n ArrayList<Node> instructions = new ArrayList<>();\n\n\n // Read lines to an Array\n while( (line = br.readLine()) != null ){\n tokens = line.split(\" \");\n instructions.add(new Node(tokens[0], Integer.parseInt(tokens[1])));\n }\n\n int instructionsSize = instructions.size();\n\n\n // Find the index of operation to change\n for( index = instructionsSize-1; index>=0; index--){\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n if(operation.equals(\"jmp\") && argument<0){\n loopIndex.push(index);\n }\n if(operation.equals(\"jmp\") && argument>0){\n goestoIndex = index+argument;\n while ( !loopIndex.empty() ){\n System.out.println(loopIndex);\n System.out.println(loopIndex.peek());\n System.out.println(goestoIndex);\n if(loopIndex.peek() >= goestoIndex) break;\n loopIndex.pop();\n }\n }\n }\n\n System.out.println(loopIndex);\n\n\n if(loopIndex.size() == 1){\n instructions.set(loopIndex.peek(), new Node(\"nop\", instructions.get(loopIndex.peek()).argument));\n }\n else{\n int minIndex = loopIndex.empty() ? 0 : loopIndex.pop();\n int maxIndex = minIndex;\n while (!loopIndex.empty()){\n maxIndex = loopIndex.pop();\n }\n for( index = maxIndex; index >=0; index--){\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n if(operation.equals(\"nop\") && argument+index > maxIndex){\n instructions.set(index, new Node(\"jmp\", instructions.get(index).argument));\n break;\n }\n }\n }\n\n\n index = 0; \n\n while( !doneIndex.contains(index)){\n // System.out.println(index);\n if (index > instructionsSize-1 ) break;\n doneIndex.add(index);\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n\n if(operation.equals(\"acc\")){\n accumulator = accumulator + argument;\n index = index + 1;\n }\n else if(operation.equals(\"nop\")){\n index = index + 1;\n }\n else if(operation.equals(\"jmp\")){\n index = index + argument;\n }\n }\n System.out.println(index);\n System.out.println(accumulator);\n br.close();\n\n }", "@Test\r\n\tpublic void testTargets33_1() {\r\n\t\tBoardCell cell = board.getCell(3, 3);\r\n\t\tboard.calcTargets(cell, 1);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(2, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 2)));\r\n\r\n\t}", "public void exitLoop(Statement loopStatement, LoopScope loopScope) {\n\n // Breaks are connected to the NEXT EOG node and therefore temporarily stored after the loop\n // context is destroyed\n this.currentEOG.addAll(loopScope.getBreakStatements());\n\n List<Node> continues = new ArrayList<>(loopScope.getContinueStatements());\n if (!continues.isEmpty()) {\n Node condition;\n if (loopStatement instanceof DoStatement) {\n condition = ((DoStatement) loopStatement).getCondition();\n } else if (loopStatement instanceof ForStatement) {\n condition = ((ForStatement) loopStatement).getCondition();\n } else if (loopStatement instanceof ForEachStatement) {\n condition = loopStatement;\n } else if (loopStatement instanceof AssertStatement) {\n condition = loopStatement;\n } else {\n condition = ((WhileStatement) loopStatement).getCondition();\n }\n List<Node> conditions = SubgraphWalker.getEOGPathEdges(condition).getEntries();\n conditions.forEach(node -> addMultipleIncomingEOGEdges(continues, node));\n }\n }", "public int jump(int[] nums) {\n if(nums.length==0) return 0;\n int n=nums.length;\n int jumps=0;\n int maxEnding=0;\n int maxDist=0;\n for(int i=0;i<n-1;i++){\n maxDist=Math.max(maxDist,nums[i]+i);\n if(i==maxEnding){\n maxEnding=maxDist;\n jumps++;\n }\n }\n return jumps;\n }", "protected void generateEntries() {\n Iterator<Label> entryLabelsIterator = entryLabels.iterator();\n for (KtWhenEntry entry : expression.getEntries()) {\n v.visitLabel(entryLabelsIterator.next());\n\n FrameMap.Mark mark = codegen.myFrameMap.mark();\n codegen.gen(entry.getExpression(), resultType);\n mark.dropTo();\n\n if (!entry.isElse()) {\n v.goTo(endLabel);\n }\n }\n }", "public void printFinishedTarget() {\n try {\n for (; ;) {\n Target target = null;\n synchronized (finishedTargets) {\n while (finishedTargets.size() == 0) {\n finishedTargets.wait();\n }//while\n target= (Target) finishedTargets.removeFirst();\n target.show();\n }\n }//for\n } catch (InterruptedException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }", "public boolean eliminateLoop(){ return false; }", "public static void main(String[] args) {\n\n\t\tint[] nums= {2,7,11,15};\n\t\tint target = 9;\n\t\tint[] output = twoSum(nums,target);\n\t\tfor(int i:output) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private <T> void getPossibleTargets(TargetingScheme<T> t, TargetList<T> current, List<? extends T> searchSpace, int startInd,\n List<TargetList<T>> outputList) {\n if (t.isFullyTargeted(current)) {\n outputList.add(current);\n return;\n }\n if (startInd >= searchSpace.size()) {\n System.out.println(\"this shouldn't happen lmao\");\n }\n int numToSelect = Math.min(searchSpace.size(), t.getMaxTargets());\n for (int i = startInd; i < searchSpace.size() - (numToSelect - current.targeted.size() - 1); i++) {\n T c = searchSpace.get(i);\n if (!current.targeted.contains(c)) {\n TargetList<T> copy = current.clone();\n copy.targeted.add(c);\n this.getPossibleTargets(t, copy, searchSpace, i + 1, outputList);\n }\n }\n }", "private static void exit(int i) {\n\t\t\n\t}", "public List<Tile> findTargets() {\n List<Tile> targets = new ArrayList<>(); // our return value\n int fearDistance = 2; // Ideally we're 2 spots away from their head, increases when we can't do that.\n int foodDistance = 3; // We look at a distance 3 for food.\n\n // If fearDistance gets this big, then its just GG i guess\n while (targets.size() == 0 && fearDistance < 15) {\n // Get the tiles around the Enemy's head\n targets = this.gb.nearByTiles(this.enemy_head_x, this.enemy_head_y, fearDistance);\n fearDistance += 1;\n }\n\n // Get the food tiles near us\n for (int i=0; i < foodDistance; i++) {\n List<Tile> nearBy = this.gb.nearByTiles(this.us_head_x, this.us_head_y, i);\n for (Tile t : nearBy) {\n if (t.isFood() && !targets.contains(t)) targets.add(t);\n }\n }\n return targets;\n }", "private static List<TileDir> nextLayer(Collection<Tile> origins, boolean[][] targets, boolean[][] excludeTgts, boolean[][] blocks,\r\n int xt, int yt, boolean[][] searched, List<Tile> nextLayer, int count) {\r\n List<TileDir> results = new LinkedList<>();\r\n\r\n for (Tile origin : origins) {\r\n for (Direction d : Direction.getValuesRandom()) {\r\n Tile dt = d.getNeighbour(origin.x, origin.y, xt, yt);\r\n\r\n if (searched[dt.x][dt.y] || blocks[dt.x][dt.y] || excludeTgts[dt.x][dt.y]) {\r\n continue;\r\n }\r\n\r\n if (targets[dt.x][dt.y]) {\r\n results.add(TileDir.getTileDir(Tile.getTile(dt.x, dt.y), getOppoDir(d)));\r\n\r\n if (results .size() == count) {\r\n return results;\r\n }\r\n }\r\n\r\n searched[dt.x][dt.y] = true;\r\n\r\n nextLayer.add(Tile.getTile(dt.x, dt.y));\r\n }\r\n }\r\n\r\n return results;\r\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 }", "public static GotoExpression return_(LabelTarget labelTarget, Class type) { throw Extensions.todo(); }", "private void generateSteps() {\n for (GlobalState g : this.globalStates) {\n List<String> faults = g.getPendingFaults(); \n if(faults.isEmpty()) {\n // Identifying all available operation transitions (when there \n // are no faults), and adding them as steps\n List<String> gSatisfiableReqs = g.getSatisfiableReqs();\n \n for(Node n : nodes) {\n String nName = n.getName();\n String nState = g.getStateOf(nName);\n List<Transition> nTau = n.getProtocol().getTau().get(nState);\n for(Transition t : nTau) {\n boolean firable = true;\n for(String req : t.getRequirements()) {\n if(!(gSatisfiableReqs.contains(n.getName() + \"/\" + req)))\n firable = false;\n }\n if(firable) {\n // Creating a new mapping for the actual state of n\n Map<String,String> nextMapping = new HashMap();\n nextMapping.putAll(g.getMapping());\n nextMapping.put(nName, t.getTargetState());\n // Searching the ref to the corresponding global \n // state in the list globalStates\n GlobalState next = search(nextMapping);\n // Adding the step to list of steps in g\n g.addStep(new Step(nName,t.getOperation(),next));\n }\n }\n }\n } else {\n // Identifying all settling handlers for handling the faults\n // pending in this global state\n for(Node n: nodes) {\n // Computing the \"targetState\" of the settling handler for n\n String targetState = null;\n \n String nName = n.getName();\n String nState = g.getStateOf(nName);\n Map<String,List<String>> nRho = n.getProtocol().getRho();\n \n List<String> nFaults = new ArrayList();\n for(String req : nRho.get(nState)) {\n if(faults.contains(nName + \"/\" + req)) \n nFaults.add(req);\n }\n\n // TODO : Assuming handlers to be complete \n\n if(nFaults.size() > 0) {\n Map<String,List<String>> nPhi = n.getProtocol().getPhi();\n for(String handlingState : nPhi.get(nState)) {\n // Check if handling state is handling all faults\n boolean handles = true;\n for(String req : nRho.get(handlingState)) {\n if(nFaults.contains(req))\n handles = false;\n }\n\n // TODO : Assuming handlers to be race-free\n\n // Updating targetState (if the handlingState is \n // assuming a bigger set of requirements)\n if(handles) {\n if(targetState == null || nRho.get(handlingState).size() > nRho.get(targetState).size())\n targetState = handlingState;\n }\n }\n // Creating a new mapping for the actual state of n\n Map<String,String> nextMapping = new HashMap();\n nextMapping.putAll(g.getMapping());\n nextMapping.put(nName, targetState);\n // Searching the ref to the corresponding global \n // state in the list globalStates\n GlobalState next = search(nextMapping);\n // Adding the step to list of steps in g\n g.addStep(new Step(nName,next));\n }\n }\n }\n }\n }", "public static GotoExpression break_(LabelTarget labelTarget, Expression expression, Class clazz) { throw Extensions.todo(); }", "@Test\r\n public void testGetExit() {\r\n System.out.println(\"getExit\");\r\n Tile expResult;\r\n Tile result;\r\n \r\n initLevel(template1);\r\n expResult = getTile(2, 1);\r\n result = pathfinder.getExit(ghost.getTile());\r\n assertEquals(expResult, result);\r\n \r\n initLevel(template2);\r\n expResult = null;\r\n result = pathfinder.getExit(ghost.getTile());\r\n assertEquals(expResult, result);\r\n \r\n initLevel(template3);\r\n expResult = getTile(1, 2);\r\n result = pathfinder.getExit(ghost.getTile());\r\n assertEquals(expResult, result);\r\n }", "public static GotoExpression goto_(LabelTarget labelTarget, Class type) { throw Extensions.todo(); }", "public static void main(String args[])\n\t{\n\t\tfrom_here :for(int i=0;i<10;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.println(i+ \" \"+j) ;\n\t\t\t\tif(j==6)\n\t\t\t\t\tbreak ;//from_here ;\n\t\t\t}\n\t\t\tSystem.out.println(\"This is hidden from the continue \") ;\n\t\t}\n\t}", "public Code visitDoStatementNode(StatementNode.DoStatementNode node) {\n beginGen(\"Do\");\n /* Generate the code to evaluate the condition. */\n List<DoBranchNode> branches = node.getBranches();\n Code code = new Code();\n /* Calculate the length of the whole code */\n for(int i = 0; i < branches.size(); i++) {\n \tDoBranchNode branch = branches.get(i);\n \tCode condCode = branch.getCondition().genCode(this);\n \tcode.append(condCode);\n \tCode thenCode = branch.getStmt().genCode(this);\n \tcode.genJumpIfFalse(thenCode.size() + Code.SIZE_JUMP_ALWAYS); \n \tcode.append(thenCode);\n \tif(branch.getFlag() == 0) {\n \t\t// Break. The offset does not make sense.\n \t\tcode.genJumpAlways(1);\n \t}else if (branch.getFlag() == 1) {\n \t\t// Loop. The offset does not make sense. \t\t\n \t\tcode.genJumpAlways(1);\n \t}\n }\n code.genLoadConstant(3);\n code.generateOp(Operation.STOP);\n int length = code.size();\n code = new Code();\n /* Generate the code for the loop body */ \n for(int i = 0; i < branches.size(); i++) {\n \tDoBranchNode branch = branches.get(i);\n \tCode condCode = branch.getCondition().genCode(this);\n \tcode.append(condCode);\n \tCode thenCode = branch.getStmt().genCode(this);\n \tcode.genJumpIfFalse(thenCode.size() + Code.SIZE_JUMP_ALWAYS); \n \tcode.append(thenCode);\n \tif(branch.getFlag() == 0) {\n \t\t// Break.\n \t\tcode.genJumpAlways(length - (code.size() + Code.SIZE_JUMP_ALWAYS));\n \t}else if (branch.getFlag() == 1) {\n \t\t// Loop. \t\t\n \t\tcode.genJumpAlways(- (code.size() + Code.SIZE_JUMP_ALWAYS));\n \t}\n }\n code.genLoadConstant(3);\n code.generateOp(Operation.STOP);\n endGen(\"Do\");\n return code;\n }", "public static GotoExpression goto_(LabelTarget labelTarget, Expression expression, Class type) { throw Extensions.todo(); }", "public static void LabelUnlockAll() {\n\t\tfor (int i = 0; i < TargetCode.methods.size(); i++) {\n\t\t\tTargetCode nowTargetCode = TargetCode.methods.get(i);\n\t\t\tLabelUnlock(nowTargetCode);\n\t\t}\n\t}", "public static GotoExpression return_(LabelTarget labelTarget, Expression expression, Class type) { throw Extensions.todo(); }", "public void endCompute();", "public static void main(String[] args) throws Exception {\n int n = scn.nextInt();\n int m = scn.nextInt();;\n \n int[][] arr = new int[n][m];\n for(int i= 0; i < arr.length; i++){\n for(int j=0; j < arr[0].length;j++){\n arr[i][j] = scn.nextInt();\n }\n }\n exitPoint(arr,n,m);\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 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}", "public void emitLoop() {\n /*\n r14 = this;\n L_0x0000:\n monitor-enter(r14)\n long r0 = r14.missedRequested // Catch:{ all -> 0x0061 }\n long r2 = r14.missedProduced // Catch:{ all -> 0x0061 }\n rx.Producer r4 = r14.missedProducer // Catch:{ all -> 0x0061 }\n r5 = 0\n int r7 = (r0 > r5 ? 1 : (r0 == r5 ? 0 : -1))\n if (r7 != 0) goto L_0x0018\n int r8 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r8 != 0) goto L_0x0018\n if (r4 != 0) goto L_0x0018\n r0 = 0\n r14.emitting = r0 // Catch:{ all -> 0x0061 }\n monitor-exit(r14) // Catch:{ all -> 0x0061 }\n return\n L_0x0018:\n r14.missedRequested = r5 // Catch:{ all -> 0x0061 }\n r14.missedProduced = r5 // Catch:{ all -> 0x0061 }\n r8 = 0\n r14.missedProducer = r8 // Catch:{ all -> 0x0061 }\n monitor-exit(r14) // Catch:{ all -> 0x0061 }\n long r9 = r14.requested\n r11 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n int r13 = (r9 > r11 ? 1 : (r9 == r11 ? 0 : -1))\n if (r13 == 0) goto L_0x0048\n long r9 = r9 + r0\n int r13 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r13 < 0) goto L_0x0045\n int r13 = (r9 > r11 ? 1 : (r9 == r11 ? 0 : -1))\n if (r13 != 0) goto L_0x0035\n goto L_0x0045\n L_0x0035:\n long r9 = r9 - r2\n int r2 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r2 < 0) goto L_0x003d\n r14.requested = r9\n goto L_0x0048\n L_0x003d:\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r1 = \"more produced than requested\"\n r0.<init>(r1)\n throw r0\n L_0x0045:\n r14.requested = r11\n r9 = r11\n L_0x0048:\n if (r4 == 0) goto L_0x0057\n rx.Producer r0 = NULL_PRODUCER\n if (r4 != r0) goto L_0x0051\n r14.currentProducer = r8\n goto L_0x0000\n L_0x0051:\n r14.currentProducer = r4\n r4.request(r9)\n goto L_0x0000\n L_0x0057:\n rx.Producer r2 = r14.currentProducer\n if (r2 == 0) goto L_0x0000\n if (r7 == 0) goto L_0x0000\n r2.request(r0)\n goto L_0x0000\n L_0x0061:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0061 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p030rx.internal.producers.ProducerArbiter.emitLoop():void\");\n }", "public void logicCycles()throws Exception\r\n\t{\r\n\t\t\r\n\t\twhile(isSolved() == false)\r\n\t\t{\r\n\t\t\tint changesMade = 0;\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\tchangesMade = 0;\r\n\t\t\t\tchangesMade += logic1();\r\n\t\t\t\tchangesMade += logic2();\r\n\t\t\t\tchangesMade += logic3();\r\n\t\t\t\tchangesMade += logic4();\r\n\t\t\t\tif(errorFound())\r\n\t\t\t\t\tbreak;\r\n\t\t\t}while(changesMade != 0);\r\n\t\r\n\t\t}\t\t\t\r\n\t\t\r\n\t}", "public static boolean condenseConditionals(List<Op03SimpleStatement> statements) {\n boolean effect = false;\n for (int x = 0; x < statements.size(); ++x) {\n boolean retry;\n do {\n retry = false;\n Op03SimpleStatement op03SimpleStatement = statements.get(x);\n // If successful, this statement will be nopped out, and the next one will be\n // the combination of the two.\n Statement inner = op03SimpleStatement.getStatement();\n if (!(inner instanceof IfStatement)) continue;\n Op03SimpleStatement fallThrough = op03SimpleStatement.getTargets().get(0);\n Op03SimpleStatement taken = op03SimpleStatement.getTargets().get(1);\n Statement fallthroughInner = fallThrough.getStatement();\n Statement takenInner = taken.getStatement();\n // Is the taken path just jumping straight over the non taken?\n boolean takenJumpBy1 = (x < statements.size() - 2) && statements.get(x+2) == taken;\n\n if (fallthroughInner instanceof IfStatement) {\n Op03SimpleStatement sndIf = fallThrough;\n Op03SimpleStatement sndTaken = sndIf.getTargets().get(1);\n Op03SimpleStatement sndFallThrough = sndIf.getTargets().get(0);\n\n retry = condenseIfs(op03SimpleStatement, sndIf, taken, sndTaken, sndFallThrough, false);\n\n// if (if2.condenseWithPriorIfStatement(if1, false)) {\n// retry = true;\n// }\n } else if (fallthroughInner.getClass() == GotoStatement.class && takenJumpBy1 && takenInner instanceof IfStatement) {\n // If it's not an if statement, we might have to negate a jump - i.e.\n // if (c1) a1\n // goto a2\n // a1 : if (c2) goto a2\n // a3\n //\n // is (of course) equivalent to\n // if (!c1 || c2) goto a2\n\n Op03SimpleStatement negatedTaken = fallThrough.getTargets().get(0);\n Op03SimpleStatement sndIf = statements.get(x+2);\n Op03SimpleStatement sndTaken = sndIf.getTargets().get(1);\n Op03SimpleStatement sndFallThrough = sndIf.getTargets().get(0);\n\n retry = condenseIfs(op03SimpleStatement, sndIf, negatedTaken, sndTaken, sndFallThrough, true);\n\n// IfStatement if1 = (IfStatement)inner;\n// IfStatement if2 = (IfStatement)takenInner;\n// if (if2.condenseWithPriorIfStatement(if1, true)) {\n// retry = true;\n// }\n }\n\n if (retry) {\n effect = true;\n do {\n x--;\n } while (statements.get(x).isAgreedNop() && x > 0);\n }\n } while (retry);\n }\n return effect;\n }", "public static GotoExpression break_(LabelTarget labelTarget, Class clazz) { throw Extensions.todo(); }", "private static OpCodeResult run(String[] commands, boolean fixInfiniteLoop)\n {\n int accumulator = 0;\n Integer pointer = 0;\n HashSet<Integer> visitedCommands = new HashSet<>();\n int pointerLastCommand = commands.length - 1;\n boolean foundInfiniteLoop = false;\n\n // Re-usable variables for within the execution loop\n Matcher matcher;\n String opCode;\n int opAmt;\n\n // Execute op codes until an infinite loop is detected\n while (pointer <= pointerLastCommand)\n {\n // Terminate if we have found an infinite loop\n if (visitedCommands.contains(pointer)) {\n foundInfiniteLoop = true;\n break;\n }\n\n // Add the current pointer to the history so we can detect\n // an infinite loop if we visit the same pointer again\n visitedCommands.add(pointer);\n\n // Parse the op code\n matcher = PATTERN_OP_CODE.matcher(commands[pointer]);\n matcher.find();\n opCode = matcher.group(1);\n opAmt = Integer.parseInt(matcher.group(2));\n\n // Fix the infinite loop if requested\n // Checks to see if flipping a jmp/nop command would\n // allow the program to complete successfully\n if (fixInfiniteLoop == true && (opCode.equals(\"jmp\") || opCode.equals(\"nop\"))) {\n\n // Flip the jmp/nop command and execute the modified set of commands,\n // resetting the jmp/nop command back to its original value afterwards\n String newOpCode = opCode.equals(\"jmp\") ? \"nop\" : \"jmp\";\n commands[pointer] = commands[pointer].replace(opCode, newOpCode);\n OpCodeResult alternateResult = run(commands, false);\n commands[pointer] = commands[pointer].replace(newOpCode, opCode);\n \n // If we found a fix (did not encounter an infinite loop) return the alternate result\n if (alternateResult.encounteredInfiniteLoop() == false) {\n return alternateResult;\n }\n }\n\n // Execute the op code\n switch(opCode)\n {\n case \"acc\": // Adjust the accumulator\n accumulator += opAmt;\n pointer++;\n break;\n case \"jmp\": // Jump forward or back\n pointer += opAmt;\n break;\n case \"nop\": // No operation, continue on\n pointer++;\n break;\n default:\n break;\n }\n }\n\n return new OpCodeResult(accumulator, foundInfiniteLoop);\n }", "@Override\n public void exitEveryRule(final ParserRuleContext ctx) {\n }", "public void calcSteps(int stepCount) {\n\t\tif (stepCount <= 0) {\n\t\t\tfollowTargets = false;\n\t\t} else {\n\t\t\ttargets = new PVector[stepCount];\n\t\t\tPVector p1 = new PVector(p.random(-p.width, p.width), p.random(\n\t\t\t\t\t-p.height, p.height));\n\t\t\tPVector p2 = new PVector(p.random(-p.width, p.width), p.random(\n\t\t\t\t\t-p.height, p.height));\n\t\t\tPVector s = this.location;\n\t\t\tPVector f = p.level.warriors[0].location;\n\t\t\tp.curveTightness(p.random(-1, 2));\n\t\t\tfor (int i = 0; i < stepCount; ++i) {\n\t\t\t\tfloat t = i / (float) stepCount;\n\t\t\t\tfloat x = p.curvePoint(p1.x, s.x, f.x, p2.x, t);\n\t\t\t\tfloat y = p.curvePoint(p1.y, s.y, f.y, p2.y, t);\n\t\t\t\ttargets[i] = new PVector(x, y);\n\n\t\t\t\tif (p.debug) {\n\t\t\t\t\tp.curve(p1.x, p1.y, s.x, s.y, f.x, f.y, p2.x, p2.y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void removeHalted() {\n for (Machine machine : machines) {\n while (!machine.getEventBuffer().isEmpty()) {\n Guard targetHalted =\n machine.getEventBuffer().satisfiesPredUnderGuard(x -> x.targetHalted()).getGuardFor(true);\n if (!targetHalted.isFalse()) {\n rmBuffer(machine, targetHalted);\n continue;\n }\n break;\n }\n }\n }", "static int [] twoSums(int [] num, int targets) {\n // Equation with variables: nums[i] + nums[j] == target (return the indices)\n // Visualize an array indices {0,1,2,3,4} my i = nums.length\n // Visualize another array J = i+1 {1,2,3,4};\n // nums [2,7,11,15];\n // NOTE: Visualize J = i + 1; When i=0, j will start at 1\n // The if statement is used to check if the condition matches the target\n\n for(int i=0; i < num.length; i++) {\n for(int j= i+1; j<num.length; j++) {\n if (num[i] + num[j] == targets){\n // return new int array because the return type is Array.toString\n return new int [] {i,j};\n }\n }\n }\n return null;\n }", "@Test \n\tpublic void testTargetsIntoRoom()\n\t{\n\t\t// One room is exactly 2 away\n\t\tboard.calcTargets(5, 24, 2);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(4, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(3, 24)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(5, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(4, 23)));\n\t}", "@Override\n public void visit(LoopControlNode loopControlNode) {\n }", "public void runUntilExit() {\n boolean isExit = false;\n while (!isExit) {\n try {\n ui.showLine();\n String fullCommand = ui.readCommand();\n Command c = Parser.parseCommand(fullCommand);\n agent.handleCommand(c, ui, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n ui.showError(e.getMessage());\n } finally {\n ui.showLine();\n }\n }\n }", "public void executeTarget( String target ) {\n final String target_name = target;\n\n\n class Runner extends SwingWorker<Object, Object> {\n Color original_color;\n AbstractButton button;\n\n @Override\n public Object doInBackground() {\n // find the button again, the reload replaces the buttons\n // on the button panel, so the button that caused this action event\n // is not the same button that needs to change color\n Component[] components = _button_panel.getComponents();\n int i = 0;\n for ( ; i < components.length; i++ ) {\n if ( target_name.equals( ( ( AbstractButton ) components[ i ] ).getActionCommand() ) ) {\n button = ( AbstractButton ) components[ i ];\n break;\n }\n }\n\n // set button color\n original_color = null;\n if ( button != null ) {\n original_color = button.getForeground();\n button.setForeground( Color.RED );\n }\n\n // maybe save all files before running the target\n saveBeforeRun();\n\n try {\n if ( _settings.getShowPerformanceOutput() && _performance_listener != null ) {\n _performance_listener.reset();\n }\n\n ArrayList targets = new ArrayList();\n\n // run the unnamed target if Ant 1.6\n if ( AntUtils.getAntVersion() == 1.6 && _unnamed_target != null ) {\n //targets.add( _unnamed_target.getName() );\n targets.add( \"\" );\n }\n\n // run the targets\n if ( !target_name.equals( IMPLICIT_TARGET_NAME ) )\n targets.add( target_name );\n AntelopePanel.this.executeTargets( this, targets );\n }\n catch ( Exception e ) {\n _project.fireBuildFinished( e );\n }\n return null;\n }\n\n /* not supported in Java 1.6 SwingWorker\n @Override\n public boolean cancel( boolean mayInterruptIfRunning ) {\n Exception e = new Exception();\n e.printStackTrace();\n log( Level.SEVERE, \"=====> BUILD INTERRUPTED <=====\" );\n return super.cancel( mayInterruptIfRunning );\n }\n */\n\n @Override\n protected void done() {\n if ( _settings.getShowPerformanceOutput() && _performance_listener != null ) {\n log( _performance_listener.getPerformanceStatistics() );\n _performance_listener.reset();\n }\n _build_logger.close();\n if ( button != null && original_color != null ) {\n button.setForeground( original_color );\n button.setSelected( false );\n }\n }\n\n\n\n }\n _runner = new Runner();\n _runner.execute();\n }" ]
[ "0.60222983", "0.58839786", "0.5788627", "0.5410975", "0.5401089", "0.5384056", "0.53550327", "0.5344843", "0.5344444", "0.52529407", "0.520782", "0.51890105", "0.517491", "0.514603", "0.51334876", "0.5108512", "0.51054806", "0.5089299", "0.50832415", "0.50446427", "0.5044491", "0.5009328", "0.5000443", "0.49854204", "0.49643773", "0.49611416", "0.49305898", "0.49215245", "0.4908711", "0.49086812", "0.49062532", "0.49043316", "0.4877048", "0.4863312", "0.48398417", "0.48386022", "0.48359308", "0.47992587", "0.4796753", "0.47944894", "0.47916985", "0.47907346", "0.47861952", "0.4782979", "0.47743523", "0.47734708", "0.4757361", "0.474783", "0.47475797", "0.47297785", "0.47194973", "0.47150537", "0.46884492", "0.46755937", "0.46625468", "0.4601975", "0.45929873", "0.45717445", "0.45698467", "0.45670098", "0.45540065", "0.4550976", "0.454863", "0.45354274", "0.4533824", "0.45334578", "0.4531844", "0.45117477", "0.4511264", "0.449193", "0.44820383", "0.4480808", "0.44473517", "0.44404396", "0.44257233", "0.44223306", "0.44189772", "0.44182876", "0.4418007", "0.4417404", "0.44022024", "0.43906522", "0.43900442", "0.4385199", "0.4384465", "0.43825343", "0.43775254", "0.43746072", "0.43744114", "0.43670392", "0.43613866", "0.43379915", "0.4334419", "0.43262538", "0.43221414", "0.4320045", "0.43084526", "0.430732", "0.43026584", "0.43009326" ]
0.75591123
0
Returns true if this loop certainly loops forever, i.e. if
public boolean loopsForever() { return getLoopExits().isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasSelfLoops();", "protected boolean isInLoop() {\n return _loopInfo != null;\n }", "public boolean isLoopMode();", "public boolean foundLoop();", "boolean endLoop();", "public boolean isRestartNextLoop() {\n return restartNextLoop;\n }", "public boolean isSelfLoop() {\n\t\treturn _source == _sink;\n\t}", "protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }", "private boolean isLoop() {\n return \"loop\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }", "private boolean isLoop() {\n boolean isFor = line.startsWith(\"for(\") || line.startsWith(\"for (\");\n boolean isWhile = line.startsWith(\"while(\") || line.startsWith(\"while (\");\n boolean isDo = line.equals(\"do\");\n return isFor || isWhile || isDo;\n }", "protected boolean isFinished() {\n\t\tif (_timesRumbled == 40) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tprotected boolean isStoppingConditionReached() {\n\t\t\n\t\tboolean flag = iteration > maxIteration || \n\t\t\t\tlocalSearchTime > maxLocalSearchTime || \n\t\t\t\t!isUpdate;\n\t\tisUpdate = false ;\n\t\treturn flag ;\n\t}", "private Boolean checkCycle() {\n Node slow = this;\n Node fast = this;\n while (fast.nextNode != null && fast.nextNode.nextNode != null) {\n fast = fast.nextNode.nextNode;\n slow = slow.nextNode;\n if (fast == slow) {\n System.out.println(\"contains cycle\");\n return true;\n }\n }\n System.out.println(\"non-cycle\");\n return false;\n }", "public boolean detectCycles()\n {\n try {\n execute(null, null);\n } catch (CycleDetectedException ex) {\n return true;\n }\n\n return false;\n }", "@Override\n\tprotected boolean until() {\n\t\treturn true;\n\t}", "boolean hasStopped()\n {\n if (running && ! isAlive())\n {\n nextStartTime = System.currentTimeMillis() + minDurationInMillis;\n running = false;\n return true;\n }\n return false;\n }", "@Override\n public boolean isFinished() {\n return !(System.currentTimeMillis() - currentMs < timeMs) &&\n // Then check to see if the lift is in the correct position and for the minimum number of ticks\n Math.abs(Robot.lift.getPID().getSetpoint() - Robot.lift.getEncoderHeight()) < error\n && ++currentCycles >= minDoneCycles;\n }", "private boolean checkCycle() {\n for (int i = 0; i < 26; i++) {\n color[i] = 0;\n }\n for (int i = 0; i < 26; i++) {\n if (color[i] != -1 && BFS(i)) return true;\n }\n return false;\n }", "public boolean isRunning() {\r\n\t\tboolean sentinel = true;\r\n\t\trunningBalls = 0;\r\n\t\ttraversal_inorder_runningcheck(root);\r\n\t\tif (runningBalls!=0) {\r\n\t\t\treturn sentinel;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsentinel = false;\r\n\t\t\treturn sentinel;\r\n\t\t}\r\n\t}", "public boolean isAlwaysDeadEnd() {\n return fuses.size() == 1;\n }", "public boolean isRunning() {\n\t\treturn !loopTask.stop;\n\t}", "protected boolean isFinished() {\r\n \tif (i >= 1 || i <= 1){\r\n \treturn true;\r\n \t}\r\n\t\treturn false;\r\n }", "boolean cycle() {\n int j;\t\t\t\t\t\t// If cycle detected report as negative edge weight cycle.\n for (j = 0; j < e; ++j)\n if (d[edges.get(j).u] + edges.get(j).w < d[edges.get(j).v])\n return false;\n return true;\n }", "public Boolean IsInterrupt() {\n Random r = new Random();\n int k = r.nextInt(100);\n //10%\n if (k <= 10) {\n return true;\n }\n return false;\n }", "protected boolean isFinished() {\n return (System.currentTimeMillis() - startTime) >= time;\n \t//return false;\n }", "public boolean isSetLoop()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(LOOP$16) != null;\n }\n }", "static boolean detectLoop(Node head) {\r\n\r\n\t\t// Create a temporary node\r\n\t\tNode temp = new Node();\r\n\t\twhile (head != null) {\r\n\r\n\t\t\t// This condition is for the case\r\n\t\t\t// when there is no loop\r\n\t\t\tif (head.next == null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Check if next is already\r\n\t\t\t// pointing to temp\r\n\t\t\tif (head.next == temp) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\t// Store the pointer to the next node\r\n\t\t\t// in order to get to it in the next step\r\n\t\t\tNode nex = head.next;\r\n\r\n\t\t\t// Make next point to temp\r\n\t\t\thead.next = temp;\r\n\r\n\t\t\t// Get to the next node in the list\r\n\t\t\thead = nex;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public boolean shouldContinue() {\n return !shouldBreak;\n }", "private boolean isAnyThreadWorking()\n\t{\n\t\tboolean someoneIsWorking = false;\n\t\tfor (int i = 0; i < threads.size(); i++)\n\t\t{\n\t\t\tThread thread = threads.get(i);\n\t\t\tif (thread.isAlive() && thread.getState() == State.RUNNABLE)\n\t\t\t{\n\t\t\t\tsomeoneIsWorking = true;\n\t\t\t}\n\t\t}\n\t\treturn someoneIsWorking;\n\t}", "protected boolean isFinished() {\n \tif(timeSinceInitialized() >= 1.75){\n \t\treturn true;\n \t}\n return false;\n }", "private boolean canWork() throws InterruptedException{\n for(int i = 0; i <4; i++){\n if(!myPlayer().isAnimating() && !myPlayer().isMoving()){\n return true;\n }\n sleep(random(200, 350));\n }\n return false;\n }", "protected boolean isFinished() {\n \tif(timer.get()>.7)\n \t\treturn true;\n \tif(Robot.gearX==0)\n \t\treturn true;\n return (Math.abs(173 - Robot.gearX) <= 5);\n }", "public boolean hasStopped() {\n return hasStopped(10, 500, TimeUnit.MILLISECONDS);\n }", "@Override\n public boolean isDone() {\n // boolean result = true;\n // try {\n // result = !evaluateCondition();\n // } catch (Exception e) {\n // logger.error(e.getMessage(), e);\n // }\n // setDone(true);\n // return result;\n // setDone(false);\n return false;\n }", "protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "public boolean mo5973j() {\n return !isDestroyed() && !isFinishing();\n }", "public void loop(){\n\t\t\n\t}", "protected boolean cyclicUpdate_EM() {\n return mUpdate <= -1000;//set to false to disable cyclic update\n //default is once per 50s; mUpdate is decremented every tick\n }", "protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }", "private boolean hasInfiniteAge() {\n\t\treturn (maximum_age < 0);\n\t}", "private boolean isHealthy() {\n if (!fsOk) {\n // File system problem\n return false;\n }\n // Verify that all threads are alive\n if (!(leases.isAlive() && compactSplitThread.isAlive() &&\n cacheFlusher.isAlive() && logRoller.isAlive() &&\n workerThread.isAlive())) {\n // One or more threads are no longer alive - shut down\n stop();\n return false;\n }\n return true;\n }", "protected boolean isFinished() {\n if (waitForMovement) return (timeSinceInitialized() > Robot.intake.HOPPER_DELAY);\n return true;\n }", "public boolean isDone(){\r\n\t\tif(worker.getState()==Thread.State.TERMINATED) return true;\r\n\t\treturn false;\r\n\t}", "public boolean isRoundLoop() {\n\t\treturn sender.getPortNumber() == receiver.getPortNumber();\n\t}", "@Override\n\tpublic boolean isFinished() {\n\t\treturn (this.timeRemaining == 0);\n\t}", "public boolean floodCheck() {\r\n return true;\r\n }", "public void loop(){\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn (System.currentTimeMillis() > Endtime);\n\t}", "private static Boolean detectLoop(Node head2) {\n\t\tHashSet<Node> s = new HashSet<Node>();\n\t\twhile (head2 != null) {\n\t\t\tif (s.contains(head2))\n\t\t\t\treturn true;\n\t\t\ts.add(head2);\n\t\t\thead2 = head2.next;\n\t\t}\n\t\treturn false;\n\t}", "public boolean block() {\n while( !isDone() ) join();\n return true;\n }", "protected boolean hasNextStep() {\n\t\treturn iteration == 0;\n\t}", "public boolean continueExecuting()\n {\n double var1 = this.theEntity.getDistanceSq((double)this.entityPosX, (double)this.entityPosY, (double)this.entityPosZ);\n return this.breakingTime <= 240 && !this.field_151504_e.func_150015_f(this.theEntity.worldObj, this.entityPosX, this.entityPosY, this.entityPosZ) && var1 < 4.0D;\n }", "public boolean nextConditionMet() {\n return true;\n }", "public boolean isStopped(){\n return (currentSpeed == 0);\n }", "public boolean isCycleOver(){\n if(playersTurns.isEmpty()) {\n eventListener.addEventObject(new RoundEvent(EventNamesConstants.RoundEnded));\n return true;\n }\n return false;\n }", "private boolean hasCycle() {\n\t\tNode n = head;\n\t\tSet<Node> nodeSeen = new HashSet<>();\n\t\twhile (nodeSeen != null) {\n\t\t\tif (nodeSeen.contains(n)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tnodeSeen.add(n);\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean isFinished() {\n return System.currentTimeMillis() >= endtime;\n }", "public boolean isStopped()\r\n\t{\r\n\t\treturn speed()==0;\r\n\t}", "static Boolean detectloop(Node Header){\n Node slow_pointer = Header;\n Node fast_pointer = Header;\n while(slow_pointer!=null && fast_pointer!=null && fast_pointer.link!=null){\n slow_pointer=slow_pointer.link;\n fast_pointer=fast_pointer.link.link;\n if(slow_pointer==fast_pointer){\n return true;\n }\n }\n return false;\n }", "public boolean loopExists(SLList pum) {\n // Initialise SLList snail and set the value to the rest of pum\n SLList snail = pum;\n // Initialise SLList cheetah and set the value to the rest of snail\n SLList cheetah = snail.rest();\n // Conditional while loop\n while (cheetah != pum.NIL && cheetah.rest() != pum.NIL)\n {\n // Conditional if statement to check if cheetah is equal to snail\n if (cheetah == snail)\n {\n // Return true statement;\n return true;\n }\n // Set snail to the rest of snail\n snail = snail.rest();\n // Set cheetah to the rest, rest of cheetah\n cheetah = cheetah.rest().rest();\n }\n // Return false statement\n return false;\n }", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "protected boolean isFinished() {\n return count > maxCount;\n }", "public static boolean startIteration() {\n final Telemetry telemetry = getTelemetry();\n telemetry.runningPerf.setIterations(++telemetry.iterations);\n return true;\n }", "public boolean update() {\n\n if (clock == 1439) return false;\n ++clock;\n return true;\n }", "public boolean getLoops() { return getEndAction().startsWith(\"Loop\"); }", "@Override\n public boolean run() {\n return new Random().nextBoolean();\n }", "public boolean isFinished() {\n\t\tif (getRemaining() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean hasLoop(LinkedList linkedList) {\r\n\t\tif (linkedList == null || linkedList.getHead() == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tIntegerNode slow = linkedList.getHead();\r\n\t\tIntegerNode fast = linkedList.getHead();\r\n\r\n\t\twhile (true) {\r\n\t\t\tslow = slow.getNext();\r\n\r\n\t\t\tif (fast.getNext() != null) {\r\n\t\t\t\tfast = fast.getNext().getNext();\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (slow == null || fast == null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (slow == fast) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }", "public boolean continueExecuting()\n {\n if (!closestEntity.isEntityAlive())\n {\n return false;\n }\n\n if (field_46105_a.getDistanceSqToEntity(closestEntity) > (double)(field_46101_d * field_46101_d))\n {\n return false;\n }\n else\n {\n return field_46102_e > 0;\n }\n }", "protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getSuccessorEdges(this.getNext()).isEmpty();\n }", "boolean isRunningDuringTick(int tick);", "protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }", "protected abstract boolean computeHasNext();", "boolean terminateTailing();", "protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}", "@Test(expected = TimeOutException.class)\n\tpublic void testInfiniteLoop() {\n\t\tExecutionRequest request = new ExecutionRequest();\n\t\trequest.setLanguage(\"python\");\n\t\trequest.setCode(\"while:true;\");\n\t\trequest.setSessionId(\"mySessionId\");\n\n\t\tpyInterpreterService.execute(request);\n\t}", "protected boolean isFinished() {\n return System.currentTimeMillis() - timeStarted >= timeToGo;\n }", "public boolean hasFinished()\r\n {\r\n return (timer.hasTimePassed());\r\n }", "private boolean mustTryConnection(int iteration) {\n\t\t\n\t\t//the goal is to not to retry so often when several attempts have been made\n\t\t//the first 3 attemps, will not retry (give time for the system to startup)\n\t\tif (iteration < ITERATIONS_WITHOUT_RETRIES) {\n\t\t\t//here it will enter with iteration 0..2\n\t\t\treturn false;\n\t\t}\n\t\tif (iteration < ITERATIONS_WITH_NORMAL_RATE) {\n\t\t\t//Here it will enter with iteration 3..40\n //Retry every 2 attempts.\n\t\t\t//in iteration 6, 8, 10, 12, 14\n\t\t\treturn iteration % STEPS_AT_NORMAL_RATE == 0;\n\t\t}\n\t\t//between 15 and 40 attempts, only retry every 10 steps\n\t\tif (iteration < ITERATIONS_WITH_MEDIUM_RATE) {\n\t\t\t//here it will enter with iteration 10, 20, 30\n\t\t\treturn iteration % STEPS_AT_MEDIUM_RATE == 0;\n\t\t}\n\t\t\n\t\t//after 40 attempts, retry every 100 * MIN_INTERVAL\n\t\treturn iteration % STEPS_AT_SLOW_RATE == 0;\n\t}", "public boolean triggered(float delta) {\n if(finished || triggeringTicks.isEmpty()) return false;\n\n ticks += delta;\n //Ticks reached\n if(ticks >= triggeringTicks.get(triggeringTicksIndex) + ticksBeforeStartLooping) {\n if(++triggeringTicksIndex < triggeringTicks.size())\n return true;\n else\n triggeringTicksIndex = 0;\n\n if(loopsToMake == -1) {\n ticks -= triggeringTicks.get(triggeringTicks.size() - 1);\n return true;\n }\n if(loopsToMake > 0) {\n ticks -= triggeringTicks.get(triggeringTicks.size() - 1);\n if(++loopNumber >= loopsToMake) {\n finished = true;\n }\n return true;\n }\n }\n return false;\n }", "protected boolean isFinished() {\r\n\t\t \tboolean ans = false;\r\n\t\t \treturn ans;\r\n\t\t }", "protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }", "protected boolean isFinished() {\r\n return isTimedOut();\r\n }", "public boolean hasStarted() {\n return hasStarted(10, 500, TimeUnit.MILLISECONDS);\n }", "public static void main(String[] args) {\n\t\t\n\t\tint firstVariable = 1000;\n\t\t\n\t\twhile(firstVariable < 1000) {\n\t\t\t\n//\t\t\tfirstVariable++;\n\t\t\tfirstVariable = 1000;\n\t\t\t\n\t\t\tSystem.out.println(\"inside while!\");\n\t\t}\n\t\t\n\t\twhile(true) {\n\t\t\t//No way to contradict this boolean statement \n\t\t\t\n\t\t\tbreak; //exit out of the looping block , and any code after it (inside of the loop) will not complete!\n//\t\t\t\n//\t\t\twhile(true) {\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\t\n\t\t}\n\t\t\n\t\tboolean looping = true;\n\t\t\n\t\twhile(looping) {\n\t\t\t\n\t\t\t\n\t\t\tif(looping) {\n\t\t\t\tcontinue; //What does this word do? \n\t\t\t}\n\t\t\tlooping = false;\n\t\t\t\n\t\t\tSystem.out.println(\"Hello!\");\n\t\t\t\n\t\t}\n\t\t\n\t\tdo { //Will execute at least once, even if the condition has not been met!\n\t\t\tSystem.out.println(\"Inside do while!\");\n\t\t\tfirstVariable++;\n\t\t}while(firstVariable < 1000);\n\t\t\n\t\tSystem.out.println(firstVariable);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public boolean isFinished() {\n return Robot.auton && counter > 50;\n }", "protected boolean isFinished() {\n\t\treturn false;\n\t\t//return timeOnTarget >= finishTime;\n }", "protected boolean isFinished() {\n return isTimedOut();\n }", "private boolean isStartable()\n {\n if (! isAlive() && nextStartTime <= System.currentTimeMillis())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean isFirstCycle() {\n return cycle == 0;\n }", "protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }", "public boolean IsFalling(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);\r\n for (Block block : blocks)\r\n if (map[block.getI() + 1][block.getJ()] == '0')//if the index down the block is empty (equal to 0) so its falling\r\n return true;\r\n }\r\n return false;\r\n }", "protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }", "protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }", "public boolean isAlive(){\r\n\t\treturn Thread.currentThread() == workerThread;\r\n\t}", "private boolean cyclicUpdate() {\n if (cyclicUpdate_EM()) {\n mUpdate = 0;\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean tryAgainOnEOF()\n\t{\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n int whileloop_counter = 5;\r\n \r\n while(whileloop_counter > 0)\r\n {\r\n System.out.println(\"while Loop Counter Value: \" + whileloop_counter);\r\n whileloop_counter--;\r\n }\r\n \r\n // INFINITE WHILE LOOP\r\n // ===================\r\n // while(true) {}\r\n // OR\r\n // while (1==1) { }\r\n\r\n }" ]
[ "0.6949792", "0.69492626", "0.67856854", "0.67206746", "0.65139997", "0.6396498", "0.6328528", "0.62224233", "0.6209434", "0.616975", "0.61662614", "0.6157515", "0.61154664", "0.6110592", "0.60881823", "0.60872126", "0.6068813", "0.6053645", "0.6043785", "0.6023546", "0.60113865", "0.6005992", "0.6003078", "0.5994974", "0.5977223", "0.59762186", "0.59540325", "0.5943019", "0.59267795", "0.59207493", "0.591994", "0.59162784", "0.59081733", "0.5902618", "0.5875755", "0.58590835", "0.58344537", "0.58220625", "0.58218044", "0.58128196", "0.58121437", "0.57826406", "0.57806027", "0.5775778", "0.57588017", "0.5757303", "0.57530254", "0.5750193", "0.5747042", "0.5745448", "0.574387", "0.57410777", "0.57392526", "0.5729652", "0.57193345", "0.57148033", "0.57114404", "0.56989706", "0.56851083", "0.5684386", "0.56748855", "0.56745", "0.5672552", "0.5666432", "0.5664257", "0.5664059", "0.5660731", "0.5657503", "0.5652356", "0.56511617", "0.5647856", "0.56450766", "0.5636713", "0.5632163", "0.562858", "0.5625858", "0.56246865", "0.5613369", "0.5610486", "0.560044", "0.5596424", "0.5590903", "0.55878824", "0.5587323", "0.55824625", "0.55804825", "0.5572395", "0.55696064", "0.556716", "0.5560625", "0.55569506", "0.554645", "0.55433947", "0.5532502", "0.5526458", "0.5525006", "0.552443", "0.552028", "0.55046874", "0.5502544" ]
0.8214128
0
JimpleLocal local = (JimpleLocal) v;
private int getIncrement(Value v) { if (v instanceof IntConstant) { return ((IntConstant) v).value; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object instObj(final Value v) throws QueryException {\r\n return cls.isInstance(v) ? v : v.toJava();\r\n }", "public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }", "public interface One2OneParametrisedObject extends ParametrisedObject\n{\n\t/**\n\t * Calculate the point on the surface that corresponds to the two surface coordinates p.\n\t * Inverse parametrisation, in a sense.\n\t * @param u\tfirst surface coordinate\n\t * @param v\tsecond surface coordinate\n\t * @return the point on the surface\n\t * @author Johannes\n\t */\n\tpublic abstract Vector3D getPointForSurfaceCoordinates(double u, double v);\n}", "public Object getV1(){\n \treturn v1;\n }", "public double LocalToGlobal(int index, double Ulocal) {\n return OCCwrapJavaJNI.ShapeExtend_ComplexCurve_LocalToGlobal(swigCPtr, this, index, Ulocal);\n }", "String getV();", "public Y f(X v);", "public interface Vertex <E> extends DecorablePosition<E>{}", "public abstract JType unboxify();", "public Object getVertex(){\r\n return this.vertex;\r\n }", "LocalSimpleType getSimpleType();", "public interface ASTActualizarInventarioSTBLocal\n\textends\n\t\tco.com.telefonica.atiempo.actividades.IActividadEJB,\n\t\tjavax.ejb.EJBLocalObject {\n}", "public interface ISVMVector {\n\n\t/**\n\t * Liefert den SVM vector fuer die SVM light zurueck.\n\t *\n\t * @return den SVM vector fuer die SVM light\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tString toSVMString();\n\n\t/**\n\t * Trick: Vektor als CSV Exportieren\n\t * @return .\n\t */\n\tString toCSVString();\n\n\t/**\n\t * Liefer den Label des vectors.\n\t *\n\t * @return Den Label des vectors.\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tLabel getLabel();\n\n\t/**\n\t * Setzt den Label des vectors.\n\t *\n\t * @param label - der label\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tvoid setLabel(Label label);\n\n}", "public CVector getV1() {\n\treturn v1;\n }", "private Value immediate(Unit unit, Immediate v) {\n if (v instanceof soot.Local) {\n Local local = (Local) v;\n Type type = getLocalType(v.getType());\n VariableRef var = new VariableRef(local.getName(), new PointerType(type));\n Variable tmp = function.newVariable(type);\n function.add(new Load(tmp, var, !sootMethod.getActiveBody().getTraps().isEmpty()));\n return new VariableRef(tmp);\n } else if (v instanceof soot.jimple.IntConstant) {\n return new IntegerConstant(((soot.jimple.IntConstant) v).value);\n } else if (v instanceof soot.jimple.LongConstant) {\n return new IntegerConstant(((soot.jimple.LongConstant) v).value);\n } else if (v instanceof soot.jimple.FloatConstant) {\n return new FloatingPointConstant(((soot.jimple.FloatConstant) v).value);\n } else if (v instanceof soot.jimple.DoubleConstant) {\n return new FloatingPointConstant(((soot.jimple.DoubleConstant) v).value);\n } else if (v instanceof soot.jimple.NullConstant) {\n return new NullConstant(OBJECT_PTR);\n } else if (v instanceof soot.jimple.StringConstant) {\n String s = ((soot.jimple.StringConstant) v).value;\n Trampoline trampoline = new LdcString(className, s);\n trampolines.add(trampoline);\n return call(trampoline.getFunctionRef(), env);\n } else if (v instanceof soot.jimple.ClassConstant) {\n // ClassConstant is either the internal name of a class or the descriptor of an array\n String targetClassName = ((soot.jimple.ClassConstant) v).getValue();\n if (isArray(targetClassName) && isPrimitiveComponentType(targetClassName)) {\n String primitiveDesc = targetClassName.substring(1);\n Variable result = function.newVariable(OBJECT_PTR);\n function.add(new Load(result, new ConstantBitcast(\n new GlobalRef(\"array_\" + primitiveDesc, CLASS_PTR), new PointerType(OBJECT_PTR))));\n return result.ref();\n } else {\n FunctionRef fn = null;\n if (targetClassName.equals(this.className)) {\n fn = FunctionBuilder.ldcInternal(sootMethod.getDeclaringClass()).ref();\n } else {\n Trampoline trampoline = new LdcClass(className, ((soot.jimple.ClassConstant) v).getValue());\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n return call(fn, env);\n }\n }\n throw new IllegalArgumentException(\"Unknown Immediate type: \" + v.getClass());\n }", "Vertex getVertex();", "VectorType11 getVector();", "public void valor(V v) {\n value = v;\n }", "V getValue();", "V getValue();", "V getValue();", "int v(T item);", "public abstract V getValue();", "public T caseLocal(Local object) {\r\n\t\treturn null;\r\n\t}", "public LocalObject() {}", "@ReflectiveMethod(name = \"j\", types = {})\n public float j(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "public void a(vx paramvx) {}", "public V getValue();", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "protected Object readResolve() {\n return valueOf(v);\n }", "@Override\n\tpublic void visitXlocal(Xlocal p) {\n\n\t}", "public interface IRemoteVertex<V extends Writable, E extends Writable, I extends Writable, J extends Writable, K extends Writable> extends IVertex<V, E, I, J> {\n \n K getSubgraphID();\n \n void setLocalState(V value);\n \n V getLocalState();\n}", "slco.Object getObject2();", "public Object objectValue();", "void collectV();", "public double getV() {\r\n\t\treturn v;\t\r\n\t\t}", "public interface Optimizer extends scala.Serializable {\n /**\n * Solve the provided convex optimization problem.\n * @param data (undocumented)\n * @param initialWeights (undocumented)\n * @return (undocumented)\n */\n public org.apache.spark.mllib.linalg.Vector optimize (org.apache.spark.rdd.RDD<scala.Tuple2<java.lang.Object, org.apache.spark.mllib.linalg.Vector>> data, org.apache.spark.mllib.linalg.Vector initialWeights) ;\n}", "abstract Vertex apply(Vertex v);", "public Matrix getV() {\n return v.like().assign(v);\n }", "public interface SpLocalFeatureList <T extends SpLocalFeature<?, ?>> extends SpRandomisableList<T>, Writeable {\n\n /** The header used when writing LocalFeatureLists to streams and files */\n public static final byte[] BINARY_HEADER = \"KPT\".getBytes();\n\n /**\n * Get the feature-vector data of the list as a two-dimensional array of\n * data. The number of rows will equal the number of features in the list,\n * and the type &lt;Q&gt;must be compatible with the data type of the features\n * themselves.\n *\n * @param <Q>\n * the data type\n * @param a\n * the array to fill\n * @return the array, filled with the feature-vector data.\n */\n public <Q> Q[] asDataArray(Q[] a);\n\n /**\n * Get the length of the feature-vectors of each local feature if they are\n * constant.\n *\n * This value is used as instantiate new local features in the case that the\n * local feature has a constructor that takes a single integer.\n *\n * @return the feature-vector length\n */\n public int vecLength();\n\n @Override\n public SpLocalFeatureList<T> subList(int fromIndex, int toIndex);\n\n}", "@Override\n\tpublic void vInv() {\n\t\t\n\t}", "private Vector3d convertToModelAnswer()\r\n {\r\n GeographicPosition pos = (GeographicPosition)EasyMock.getCurrentArguments()[0];\r\n\r\n return pos.asVector3d();\r\n }", "public V getValue1() {\n return v;\n }", "@Override\n\tpublic Integer getV() {\n\t\treturn this.v;\n\t}", "public Entrepot(Vector v){\r\n\t\tthis.id =(Integer)v.get(0);\r\n\t\tthis.localisation=new Localisation(\r\n\t\t\t\t(Integer)v.get(1),\r\n\t\t\t\t(String)v.get(2),\r\n\t\t\t\t(String)v.get(3),\r\n\t\t\t\t(String)v.get(4));\r\n\t\tthis.telephone=(String)v.get(5);\r\n\t}", "public interface ASTControlReparacionSTBLocal\n\textends\n\t\tco.com.telefonica.atiempo.actividades.IActividadEJB,\n\t\tjavax.ejb.EJBLocalObject {\n}", "public static void main(String[] args) {\n packages.package1.Vector v = new packages.package1.Vector();\n //List l = new List();\n }", "public Vector2 getVectorOne(){\n return vecOne;\n }", "Vector<Vector<Object>> getDataVector();", "public interface Primitive extends Comparable<Primitive> {\n void updatePosition(double t);\n void removeEvents();\n void setInEvent(boolean inEvent);\n void setIdx(int idx);\n int getIdx();\n ArrayList<Event> getEvents();\n int compareTo(Primitive other);\n double[] getCoeffsX();\n double[] getCoeffsY();\n Point getPoint(double t);\n Point getPoint();\n double getDistance(Primitive other);\n //boolean inEvent();\n //Primitive getPrimitive(double t);\n}", "LocalReference createLocalReference();", "public Vertex<VV> getFrom()\r\n { return from; }", "public abstract V getEntity();", "public abstract ImmutableVector getImmutableVector();", "public interface Particle extends VisualValue, Point\n{\n}", "public Body jimplify(Body b, SootMethod m) {\n\n final Jimple jimple = Jimple.v();\n final UnknownType unknownType = UnknownType.v();\n final NullConstant nullConstant = NullConstant.v();\n final Options options = Options.v();\n\n /*\n * Timer t_whole_jimplification = new Timer(); Timer t_num = new Timer(); Timer t_null = new Timer();\n *\n * t_whole_jimplification.start();\n */\n\n JBOptions jbOptions = new JBOptions(PhaseOptions.v().getPhaseOptions(\"jb\"));\n jBody = (JimpleBody) b;\n deferredInstructions = new ArrayList<DeferableInstruction>();\n instructionsToRetype = new HashSet<RetypeableInstruction>();\n\n if (jbOptions.use_original_names()) {\n PhaseOptions.v().setPhaseOptionIfUnset(\"jb.lns\", \"only-stack-locals\");\n }\n if (jbOptions.stabilize_local_names()) {\n PhaseOptions.v().setPhaseOption(\"jb.lns\", \"sort-locals:true\");\n }\n\n if (IDalvikTyper.ENABLE_DVKTYPER) {\n DalvikTyper.v().clear();\n }\n\n // process method parameters and generate Jimple locals from Dalvik\n // registers\n List<Local> paramLocals = new LinkedList<Local>();\n if (!isStatic) {\n int thisRegister = numRegisters - numParameterRegisters - 1;\n\n Local thisLocal =\n jimple.newLocal(freshLocalName(\"this\"), unknownType); // generateLocal(UnknownType.v());\n jBody.getLocals().add(thisLocal);\n\n registerLocals[thisRegister] = thisLocal;\n JIdentityStmt idStmt =\n (JIdentityStmt) jimple.newIdentityStmt(thisLocal, jimple.newThisRef(declaringClassType));\n add(idStmt);\n paramLocals.add(thisLocal);\n if (IDalvikTyper.ENABLE_DVKTYPER) {\n DalvikTyper.v()\n .setType(idStmt.leftBox, jBody.getMethod().getDeclaringClass().getType(), false);\n }\n }\n {\n int i = 0; // index of parameter type\n int argIdx = 0;\n int parameterRegister = numRegisters - numParameterRegisters; // index of parameter register\n for (Type t : parameterTypes) {\n\n String localName = null;\n Type localType = null;\n if (jbOptions.use_original_names()) {\n // Attempt to read original parameter name.\n try {\n localName = parameterNames.get(argIdx);\n localType = parameterTypes.get(argIdx);\n } catch (Exception ex) {\n logger.error(\"Exception while reading original parameter names.\", ex);\n }\n }\n if (localName == null && localDebugs.containsKey(parameterRegister)) {\n localName = localDebugs.get(parameterRegister).get(0).name;\n } else {\n localName = \"$u\" + parameterRegister;\n }\n if (localType == null) {\n // may only use UnknownType here because the local may be\n // reused with a different type later (before splitting)\n localType = unknownType;\n }\n\n Local gen = jimple.newLocal(freshLocalName(localName), localType);\n jBody.getLocals().add(gen);\n registerLocals[parameterRegister] = gen;\n\n JIdentityStmt idStmt =\n (JIdentityStmt) jimple.newIdentityStmt(gen, jimple.newParameterRef(t, i++));\n add(idStmt);\n paramLocals.add(gen);\n if (IDalvikTyper.ENABLE_DVKTYPER) {\n DalvikTyper.v().setType(idStmt.leftBox, t, false);\n }\n\n // some parameters may be encoded on two registers.\n // in Jimple only the first Dalvik register name is used\n // as the corresponding Jimple Local name. However, we also add\n // the second register to the registerLocals array since it\n // could be used later in the Dalvik bytecode\n if (t instanceof LongType || t instanceof DoubleType) {\n parameterRegister++;\n // may only use UnknownType here because the local may be reused with a different\n // type later (before splitting)\n String name;\n if (localDebugs.containsKey(parameterRegister)) {\n name = localDebugs.get(parameterRegister).get(0).name;\n } else {\n name = \"$u\" + parameterRegister;\n }\n Local g = jimple.newLocal(freshLocalName(name), unknownType);\n jBody.getLocals().add(g);\n registerLocals[parameterRegister] = g;\n }\n\n parameterRegister++;\n argIdx++;\n }\n }\n\n for (int i = 0; i < (numRegisters - numParameterRegisters - (isStatic ? 0 : 1)); i++) {\n String name;\n if (localDebugs.containsKey(i)) {\n name = localDebugs.get(i).get(0).name;\n } else {\n name = \"$u\" + i;\n }\n registerLocals[i] = jimple.newLocal(freshLocalName(name), unknownType);\n jBody.getLocals().add(registerLocals[i]);\n }\n\n // add local to store intermediate results\n storeResultLocal = jimple.newLocal(freshLocalName(\"$u-1\"), unknownType);\n jBody.getLocals().add(storeResultLocal);\n\n // process bytecode instructions\n final DexFile dexFile = dexEntry.getDexFile();\n final boolean isOdex =\n dexFile instanceof DexBackedDexFile\n ? ((DexBackedDexFile) dexFile).supportsOptimizedOpcodes()\n : false;\n\n ClassPath cp = null;\n if (isOdex) {\n String[] sootClasspath = options.soot_classpath().split(File.pathSeparator);\n List<String> classpathList = new ArrayList<String>();\n for (String str : sootClasspath) {\n classpathList.add(str);\n }\n try {\n ClassPathResolver resolver =\n new ClassPathResolver(classpathList, classpathList, classpathList, dexEntry);\n cp = new ClassPath(resolver.getResolvedClassProviders().toArray(new ClassProvider[0]));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n int prevLineNumber = -1;\n for (DexlibAbstractInstruction instruction : instructions) {\n if (isOdex && instruction instanceof OdexInstruction) {\n ((OdexInstruction) instruction).deOdex(dexFile, method, cp);\n }\n if (dangling != null) {\n dangling.finalize(this, instruction);\n dangling = null;\n }\n instruction.jimplify(this);\n if (instruction.getLineNumber() > 0) {\n prevLineNumber = instruction.getLineNumber();\n } else {\n instruction.setLineNumber(prevLineNumber);\n }\n }\n if (dangling != null) {\n dangling.finalize(this, null);\n }\n for (DeferableInstruction instruction : deferredInstructions) {\n instruction.deferredJimplify(this);\n }\n\n if (tries != null) {\n addTraps();\n }\n\n if (options.keep_line_number()) {\n fixLineNumbers();\n }\n\n // At this point Jimple code is generated\n // Cleaning...\n\n instructions = null;\n // registerLocals = null;\n // storeResultLocal = null;\n instructionAtAddress.clear();\n // localGenerator = null;\n deferredInstructions = null;\n // instructionsToRetype = null;\n dangling = null;\n tries = null;\n parameterNames.clear();\n\n /*\n * We eliminate dead code. Dead code has been shown to occur under the following circumstances.\n *\n * 0006ec: 0d00 |00a2: move-exception v0 ... 0006f2: 0d00 |00a5: move-exception v0 ... 0x0041 - 0x008a\n * Ljava/lang/Throwable; -> 0x00a5 <any> -> 0x00a2\n *\n * Here there are two traps both over the same region. But the same always fires, hence rendering the code at a2\n * unreachable. Dead code yields problems during local splitting because locals within dead code will not be split. Hence\n * we remove all dead code here.\n */\n\n // Fix traps that do not catch exceptions\n DexTrapStackFixer.v().transform(jBody);\n\n // Sort out jump chains\n DexJumpChainShortener.v().transform(jBody);\n\n // Make sure that we don't have any overlapping uses due to returns\n DexReturnInliner.v().transform(jBody);\n\n // Shortcut: Reduce array initializations\n DexArrayInitReducer.v().transform(jBody);\n\n // split first to find undefined uses\n getLocalSplitter().transform(jBody);\n\n // Remove dead code and the corresponding locals before assigning types\n getUnreachableCodeEliminator().transform(jBody);\n DeadAssignmentEliminator.v().transform(jBody);\n UnusedLocalEliminator.v().transform(jBody);\n\n for (RetypeableInstruction i : instructionsToRetype) {\n i.retype(jBody);\n }\n\n // {\n // // remove instructions from instructions list\n // List<DexlibAbstractInstruction> iToRemove = new\n // ArrayList<DexlibAbstractInstruction>();\n // for (DexlibAbstractInstruction i: instructions)\n // if (!jBody.getUnits().contains(i.getUnit()))\n // iToRemove.add(i);\n // for (DexlibAbstractInstruction i: iToRemove) {\n // Debug.printDbg(\"removing dexinstruction containing unit '\",\n // i.getUnit() ,\"'\");\n // instructions.remove(i);\n // }\n // }\n\n if (IDalvikTyper.ENABLE_DVKTYPER) {\n\n DexReturnValuePropagator.v().transform(jBody);\n getCopyPopagator().transform(jBody);\n DexNullThrowTransformer.v().transform(jBody);\n DalvikTyper.v().typeUntypedConstrantInDiv(jBody);\n DeadAssignmentEliminator.v().transform(jBody);\n UnusedLocalEliminator.v().transform(jBody);\n\n DalvikTyper.v().assignType(jBody);\n // jBody.validate();\n jBody.validateUses();\n jBody.validateValueBoxes();\n // jBody.checkInit();\n // Validate.validateArrays(jBody);\n // jBody.checkTypes();\n // jBody.checkLocals();\n\n } else {\n // t_num.start();\n DexNumTransformer.v().transform(jBody);\n // t_num.end();\n\n DexReturnValuePropagator.v().transform(jBody);\n getCopyPopagator().transform(jBody);\n\n DexNullThrowTransformer.v().transform(jBody);\n\n // t_null.start();\n DexNullTransformer.v().transform(jBody);\n // t_null.end();\n\n DexIfTransformer.v().transform(jBody);\n\n DeadAssignmentEliminator.v().transform(jBody);\n UnusedLocalEliminator.v().transform(jBody);\n\n // DexRefsChecker.v().transform(jBody);\n DexNullArrayRefTransformer.v().transform(jBody);\n }\n\n if (IDalvikTyper.ENABLE_DVKTYPER) {\n for (Local l : jBody.getLocals()) {\n l.setType(unknownType);\n }\n }\n\n // Remove \"instanceof\" checks on the null constant\n DexNullInstanceofTransformer.v().transform(jBody);\n\n TypeAssigner.v().transform(jBody);\n\n final RefType objectType = RefType.v(\"java.lang.Object\");\n if (IDalvikTyper.ENABLE_DVKTYPER) {\n for (Unit u : jBody.getUnits()) {\n if (u instanceof IfStmt) {\n ConditionExpr expr = (ConditionExpr) ((IfStmt) u).getCondition();\n if (((expr instanceof EqExpr) || (expr instanceof NeExpr))) {\n Value op1 = expr.getOp1();\n Value op2 = expr.getOp2();\n if (op1 instanceof Constant && op2 instanceof Local) {\n Local l = (Local) op2;\n Type ltype = l.getType();\n if (ltype instanceof PrimType) {\n continue;\n }\n if (!(op1 instanceof IntConstant)) {\n // null is\n // IntConstant(0)\n // in Dalvik\n continue;\n }\n IntConstant icst = (IntConstant) op1;\n int val = icst.value;\n if (val != 0) {\n continue;\n }\n expr.setOp1(nullConstant);\n } else if (op1 instanceof Local && op2 instanceof Constant) {\n Local l = (Local) op1;\n Type ltype = l.getType();\n if (ltype instanceof PrimType) {\n continue;\n }\n if (!(op2 instanceof IntConstant)) {\n // null is\n // IntConstant(0)\n // in Dalvik\n continue;\n }\n IntConstant icst = (IntConstant) op2;\n int val = icst.value;\n if (val != 0) {\n continue;\n }\n expr.setOp2(nullConstant);\n } else if (op1 instanceof Local && op2 instanceof Local) {\n // nothing to do\n } else if (op1 instanceof Constant && op2 instanceof Constant) {\n\n if (op1 instanceof NullConstant && op2 instanceof NumericConstant) {\n IntConstant nc = (IntConstant) op2;\n if (nc.value != 0) {\n throw new RuntimeException(\"expected value 0 for int constant. Got \" + expr);\n }\n expr.setOp2(NullConstant.v());\n } else if (op2 instanceof NullConstant && op1 instanceof NumericConstant) {\n IntConstant nc = (IntConstant) op1;\n if (nc.value != 0) {\n throw new RuntimeException(\"expected value 0 for int constant. Got \" + expr);\n }\n expr.setOp1(nullConstant);\n }\n } else {\n throw new RuntimeException(\"error: do not handle if: \" + u);\n }\n }\n }\n }\n\n // For null_type locals: replace their use by NullConstant()\n List<ValueBox> uses = jBody.getUseBoxes();\n // List<ValueBox> defs = jBody.getDefBoxes();\n List<ValueBox> toNullConstantify = new ArrayList<ValueBox>();\n List<Local> toRemove = new ArrayList<Local>();\n for (Local l : jBody.getLocals()) {\n\n if (l.getType() instanceof NullType) {\n toRemove.add(l);\n for (ValueBox vb : uses) {\n Value v = vb.getValue();\n if (v == l) {\n toNullConstantify.add(vb);\n }\n }\n }\n }\n for (ValueBox vb : toNullConstantify) {\n System.out.println(\"replace valuebox '\" + vb + \" with null constant\");\n vb.setValue(nullConstant);\n }\n for (Local l : toRemove) {\n System.out.println(\"removing null_type local \" + l);\n l.setType(objectType);\n }\n }\n\n // We pack locals that are not used in overlapping regions. This may\n // again lead to unused locals which we have to remove.\n LocalPacker.v().transform(jBody);\n UnusedLocalEliminator.v().transform(jBody);\n PackManager.v().getTransform(\"jb.lns\").apply(jBody);\n\n // Some apps reference static fields as instance fields. We fix this\n // on the fly.\n if (Options.v().wrong_staticness() == Options.wrong_staticness_fix\n || Options.v().wrong_staticness() == Options.wrong_staticness_fixstrict) {\n FieldStaticnessCorrector.v().transform(jBody);\n MethodStaticnessCorrector.v().transform(jBody);\n }\n\n // Inline PackManager.v().getPack(\"jb\").apply(jBody);\n // Keep only transformations that have not been done\n // at this point.\n TrapTightener.v().transform(jBody);\n TrapMinimizer.v().transform(jBody);\n // LocalSplitter.v().transform(jBody);\n Aggregator.v().transform(jBody);\n // UnusedLocalEliminator.v().transform(jBody);\n // TypeAssigner.v().transform(jBody);\n // LocalPacker.v().transform(jBody);\n // LocalNameStandardizer.v().transform(jBody);\n\n // Remove if (null == null) goto x else <madness>. We can only do this\n // after we have run the constant propagation as we might not be able\n // to statically decide the conditions earlier.\n ConditionalBranchFolder.v().transform(jBody);\n\n // Remove unnecessary typecasts\n ConstantCastEliminator.v().transform(jBody);\n IdentityCastEliminator.v().transform(jBody);\n\n // Remove unnecessary logic operations\n IdentityOperationEliminator.v().transform(jBody);\n\n // We need to run this transformer since the conditional branch folder\n // might have rendered some code unreachable (well, it was unreachable\n // before as well, but we didn't know).\n UnreachableCodeEliminator.v().transform(jBody);\n\n // Not sure whether we need this even though we do it earlier on as\n // the earlier pass does not have type information\n // CopyPropagator.v().transform(jBody);\n\n // we might have gotten new dead assignments and unused locals through\n // copy propagation and unreachable code elimination, so we have to do\n // this again\n DeadAssignmentEliminator.v().transform(jBody);\n UnusedLocalEliminator.v().transform(jBody);\n NopEliminator.v().transform(jBody);\n\n // Remove unnecessary chains of return statements\n DexReturnPacker.v().transform(jBody);\n\n for (Unit u : jBody.getUnits()) {\n if (u instanceof AssignStmt) {\n AssignStmt ass = (AssignStmt) u;\n if (ass.getRightOp() instanceof CastExpr) {\n CastExpr c = (CastExpr) ass.getRightOp();\n if (c.getType() instanceof NullType) {\n ass.setRightOp(nullConstant);\n }\n }\n }\n if (u instanceof DefinitionStmt) {\n DefinitionStmt def = (DefinitionStmt) u;\n // If the body references a phantom class in a\n // CaughtExceptionRef,\n // we must manually fix the hierarchy\n if (def.getLeftOp() instanceof Local && def.getRightOp() instanceof CaughtExceptionRef) {\n Type t = def.getLeftOp().getType();\n if (t instanceof RefType) {\n RefType rt = (RefType) t;\n if (rt.getSootClass().isPhantom()\n && !rt.getSootClass().hasSuperclass()\n && !rt.getSootClass().getName().equals(\"java.lang.Throwable\")) {\n rt.getSootClass().setSuperclass(Scene.v().getSootClass(\"java.lang.Throwable\"));\n }\n }\n }\n }\n }\n\n // Replace local type null_type by java.lang.Object.\n //\n // The typing engine cannot find correct type for such code:\n //\n // null_type $n0;\n // $n0 = null;\n // $r4 = virtualinvoke $n0.<java.lang.ref.WeakReference:\n // java.lang.Object get()>();\n //\n for (Local l : jBody.getLocals()) {\n Type t = l.getType();\n if (t instanceof NullType) {\n l.setType(objectType);\n }\n }\n\n // Must be last to ensure local ordering does not change\n PackManager.v().getTransform(\"jb.lns\").apply(jBody);\n\n // t_whole_jimplification.end();\n\n return jBody;\n }", "Object value();", "public Collection<V> getVertices();", "public T caseVectorExpr(VectorExpr object)\n {\n return null;\n }", "@Local\r\npublic interface EvaluationStageManagerLocal\r\n extends EvaluationStageManager\r\n{\r\n\r\n\r\n}", "public abstract O value();", "public Vertice GetExtremoInicial(){\r\n return this.Vi;\r\n }", "public Vector2D getLocalVertex(int i){\n\t\treturn localVertices.get(i%localVertices.size());\n\t}", "public void setFrom(Vertex<VV> vertex)\r\n { this.from = vertex; }", "public abstract Object fromProtoValue(Object in);", "public static PVector toServos( PVector in ){\n\t\tfloat x = in.x * 180;\n\t\tfloat y = in.y * 180;\n\t\treturn new PVector( x, y );\n\t}", "@Override\n\tpublic BasicMarketData convert(MarketDataLevel1 from) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IVector mutiraj(IVector jedinka, Double p) {\n\t\treturn null;\n\t}", "public VisObject getVis();", "slco.Object getObject1();", "public java.util.List<V> getVertices();", "private ClassifierSplitModel localModel(){\n\n return (ClassifierSplitModel)m_localModel;\n }", "public Object accept(FEVisitor v)\n {\n return v.visitExprVar(this);\n }", "private Value findLocalVDef(SootMethod method, Value value) {\n\t\tValue localV = null;\n\t\t//find the def of given value\n\t\tExceptionalUnitGraph ug = new ExceptionalUnitGraph(method.getActiveBody());\n\t\tfor(Iterator it = ug.iterator(); it.hasNext();){\n\n\t\t\tUnit u = (Unit)it.next();\n\t\t\tList<ValueBox> list = u.getDefBoxes();\n\t\t\tfor(ValueBox box : list){\n\t\t\t\tif(!box.getValue().equals(value)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tList<ValueBox> useList = u.getUseBoxes();\n\t\t\t\tfor(ValueBox use: useList){\n\t\t\t\t\tValue val = use.getValue();\n\t\t\t\t\tif(val instanceof Local){\n\t\t\t\t\t\tDebug.printOb(\"local\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocalV = val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn localV;\n\t}", "List<V> getVertexList();", "private Vertice getVertex(String name) {\r\n Vertice v = (Vertice) vertices.get(name);\r\n if (v == null) {\r\n v = new Vertice(name);\r\n vertices.put(name, v);\r\n }\r\n return v;\r\n }", "public Vector2f multLocal (float v)\n {\n return mult(v, this);\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "void mo54413a(int i, C20254v vVar);", "public Collection<V> getOtherVertices(V v);", "public abstract void visit(V v) throws VisitorException;", "public interface MutableIVData extends DataManipulator<MutableIVData, ImmutableIVData> {\n\n Value<Integer> hpIVS();\n Value<Integer> attackIVS();\n Value<Integer> defenseIVS();\n Value<Integer> spAttackIVS();\n Value<Integer> spDefenseIVS();\n Value<Integer> speedIVS();\n\n}", "public interface j {\n void a(View view, float f2, float f3);\n}", "public List<String> getV();", "public interface simpleClassFacade\n extends org.andromda.metafacades.uml.ClassifierFacade\n{\n\n /**\n * Indicates the metafacade type (used for metafacade mappings).\n *\n * @return always <code>true</code>\n */\n public boolean issimpleClassFacadeMetaType();\n\n /**\n * \n */\n public java.util.Collection attrToPy();\n\n /**\n * \n */\n public java.util.Collection operToPy();\n\n}", "public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}", "public CMLVector3 projectOnto(CMLVector3 v) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 vv = null;\r\n try {\r\n vv = (veucl3 == null) ? null : veucl3.projectOnto(v\r\n .getEuclidVector3());\r\n } catch (EuclidRuntimeException je) {\r\n }\r\n return (vv == null) ? null : CMLVector3.createCMLVector3(vv);\r\n }", "public VersionVO get_return(){\n return local_return;\n }", "public void setTo(Vertex<VV> vertex)\r\n { this.to = vertex; }", "public interface EvolvingSIDiseaseModelLabelValue extends SILabelValue {\n}", "public ColladaFloatVector(Collada collada) {\n super(collada);\n }", "public Vertex<VV> getTo()\r\n { return to; }", "private static DataValue dv(Object o) {\n return new DataValue(new Variant(o), StatusCode.GOOD, null, DateTime.now());\n }", "Vertex(){}", "godot.wire.Wire.Vector3 getVector3Value();", "public Local() {\n }", "public interface VariableIF extends VariableSimpleIF {\r\n public java.lang.String getFullName();\r\n public java.lang.String getFullNameEscaped();\r\n public java.lang.String getShortName();\r\n public void getNameAndDimensions(java.util.Formatter result, boolean useFullName, boolean strict);\r\n\r\n public boolean isUnlimited();\r\n public boolean isUnsigned();\r\n public ucar.ma2.DataType getDataType();\r\n public int getRank();\r\n public boolean isScalar();\r\n public long getSize();\r\n public int getElementSize();\r\n public int[] getShape();\r\n\r\n public java.util.List<Dimension> getDimensions();\r\n public ucar.nc2.Dimension getDimension(int index);\r\n public int findDimensionIndex(java.lang.String dimName);\r\n\r\n public java.util.List<Attribute> getAttributes();\r\n public ucar.nc2.Attribute findAttribute(java.lang.String attName);\r\n public ucar.nc2.Attribute findAttributeIgnoreCase(java.lang.String attName);\r\n\r\n public ucar.nc2.Group getParentGroup();\r\n public ucar.nc2.Variable section(java.util.List<Range> ranges) throws ucar.ma2.InvalidRangeException;\r\n public Section getShapeAsSection();\r\n public java.util.List<Range> getRanges();\r\n\r\n public ucar.ma2.Array read(int[] origin, int[] shape) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read(java.lang.String rangeSpec) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read(ucar.ma2.Section section) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read() throws java.io.IOException;\r\n\r\n public boolean isCoordinateVariable();\r\n public boolean isMemberOfStructure();\r\n public boolean isVariableLength();\r\n public boolean isMetadata();\r\n public ucar.nc2.Structure getParentStructure();\r\n\r\n public String getDescription();\r\n public String getUnitsString();\r\n\r\n // use only if isMemberOfStructure\r\n public java.util.List<Dimension> getDimensionsAll();\r\n\r\n // use only if isScalar()\r\n public byte readScalarByte() throws java.io.IOException;\r\n public short readScalarShort() throws java.io.IOException;\r\n public int readScalarInt() throws java.io.IOException;\r\n public long readScalarLong() throws java.io.IOException;\r\n public float readScalarFloat() throws java.io.IOException;\r\n public double readScalarDouble() throws java.io.IOException;\r\n public java.lang.String readScalarString() throws java.io.IOException;\r\n\r\n // debug\r\n public java.lang.String toStringDebug();\r\n}", "public interface ModelJeu {\n \n /**\n * indique le contenu de la case de coordonnees (i,j)\n * @param i le numero de la ligne\n * @param j le numero de la colonne\n * @return le contenu de la case de coordonnees (i,j)\n */\n String get(int i, int j);\n \n /**\n * indique le nombre de colonnes du modele\n * @return le nombre de colonnes du modele\n */\n int nbColonnes();\n \n /**\n * indique le nombre de lignes du modele\n * @return le nombre de lignes du modele\n */\n int nbLignes();\n \n /**\n * renvoie une liste de tous les joueurs du modele\n * @return la liste de tous les joueurs du modele\n */\n ArrayList<Player> getAllPlayer();\n}", "public @NotNull Waypoint fromPrimitive(@NotNull PersistentDataContainer primitive, @NotNull PersistentDataAdapterContext context) {\n return new Waypoint(\n primitive.get(new NamespacedKey(SimpleHome.instance(), \"name\"), PersistentDataType.STRING),\n primitive.get(new NamespacedKey(SimpleHome.instance(), \"worldName\"), PersistentDataType.STRING),\n primitive.get(new NamespacedKey(SimpleHome.instance(), \"x\"), PersistentDataType.DOUBLE),\n primitive.get(new NamespacedKey(SimpleHome.instance(), \"y\"), PersistentDataType.DOUBLE),\n primitive.get(new NamespacedKey(SimpleHome.instance(), \"z\"), PersistentDataType.DOUBLE)\n );\n }", "public V addVertex(V v);", "double lat(long v) {\n return adj.get(v).get(0).Lat;\n }" ]
[ "0.56428415", "0.5486729", "0.5416595", "0.5395854", "0.5298548", "0.52976686", "0.52743447", "0.5268615", "0.5214528", "0.5164162", "0.5151124", "0.50995684", "0.5092289", "0.50883156", "0.5071223", "0.5059311", "0.5056408", "0.50508493", "0.50425977", "0.50425977", "0.50425977", "0.5039605", "0.50248647", "0.50054127", "0.5001523", "0.49884012", "0.49778223", "0.4968786", "0.49453706", "0.49386668", "0.49189037", "0.49134502", "0.49115777", "0.48894468", "0.48872328", "0.48761538", "0.48744237", "0.4871414", "0.48619795", "0.48451912", "0.4843739", "0.48337772", "0.48244885", "0.4820979", "0.4812778", "0.48110187", "0.48101893", "0.48089325", "0.47998962", "0.47865537", "0.47850332", "0.47653687", "0.47606128", "0.4756623", "0.47536924", "0.4751318", "0.47317466", "0.47289124", "0.4726903", "0.4723865", "0.47193617", "0.47174054", "0.47081465", "0.47068608", "0.47026536", "0.47012493", "0.4696724", "0.46917897", "0.46838582", "0.4681502", "0.46813455", "0.4674852", "0.46734938", "0.46723938", "0.46691766", "0.46687767", "0.46656188", "0.4662266", "0.4658226", "0.46551785", "0.46438822", "0.4639568", "0.46296656", "0.46288037", "0.4623922", "0.46198905", "0.4619574", "0.46154168", "0.46150327", "0.4612631", "0.4608468", "0.46066675", "0.46006623", "0.45987973", "0.4598102", "0.45973244", "0.4597109", "0.45946178", "0.45915622", "0.45908475", "0.45899808" ]
0.0
-1
getServerCharacter(); insert(); query(); dump();
public static void main(String[] args) throws SQLException, UnsupportedEncodingException { System.out.println(info.getHostname()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(TerminalInfo record);", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n MaplePet a2;\n if (!a2.a) {\n return;\n }\n try {\n druidPooledConnection2 = DBConPool.getInstance().getDataSource().getConnection();\n try {\n preparedStatement = druidPooledConnection2.prepareStatement(ConcurrentEnumMap.ALLATORIxDEMO(\";\\t*\\u0018:\\u001cN)\\u000b-\\u001dy=\\u001c:y\\u00008\\u0003<NdNfBy\\u0002<\\u0018<\\u0002ySyQuN:\\u00026\\u001d<\\u0000<\\u001d*NdNfBy\\b,\\u00025\\u0000<\\u001d*NdNfBy\\u001d<\\r6\\u0000=\\u001dySyQuN?\\u00028\\t*NdNfBy\\u000b!\\r5\\u001b=\\u000b=NdNfNuN*\\u001e<\\u000b=NdNfBy\\f,\\b?\\u001d2\\u00075\\u00020\\nySyQuN:\\u000f7>0\\r2;)NdNfBy\\u001d2\\u00075\\u00020\\nySyQy9\\u0011+\\u000b+y\\u001e<\\u001a0\\nySyQ\"));\n try {\n int n2;\n PreparedStatement preparedStatement2 = preparedStatement;\n PreparedStatement preparedStatement3 = preparedStatement;\n preparedStatement.setString(1, a2.h);\n preparedStatement3.setByte(2, a2.e);\n preparedStatement3.setShort(3, a2.B);\n preparedStatement2.setByte(4, a2.H);\n preparedStatement2.setInt(5, a2.J);\n preparedStatement.setShort(6, a2.k);\n stringBuilder = new StringBuilder();\n int n3 = n2 = 0;\n while (n3 < a2.d.length) {\n stringBuilder.append(a2.d[n2]);\n stringBuilder.append(KoreanDateUtil.ALLATORIxDEMO(\"V\"));\n n3 = ++n2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable2;\n if (preparedStatement != null) {\n try {\n preparedStatement.close();\n throwable2 = throwable;\n throw throwable2;\n }\n catch (Throwable throwable3) {\n throwable.addSuppressed(throwable3);\n }\n }\n throwable2 = throwable;\n throw throwable2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable4;\n if (druidPooledConnection2 != null) {\n try {\n druidPooledConnection2.close();\n throwable4 = throwable;\n throw throwable4;\n }\n catch (Throwable throwable5) {\n throwable.addSuppressed(throwable5);\n }\n }\n throwable4 = throwable;\n throw throwable4;\n }\n }\n catch (SQLException sQLException) {\n FilePrinter.printError(ConcurrentEnumMap.ALLATORIxDEMO(\"\\u0014\\u000f)\\u0002<><\\u001aw\\u001a!\\u001a\"), sQLException, KoreanDateUtil.ALLATORIxDEMO(\"e\\u001b`\\u001fB\\u0015R\\u0018\"));\n return;\n }\n {\n String string = stringBuilder.toString();\n PreparedStatement preparedStatement4 = preparedStatement;\n PreparedStatement preparedStatement5 = preparedStatement;\n PreparedStatement preparedStatement6 = preparedStatement;\n String string2 = string;\n preparedStatement6.setString(7, string2.substring(0, string2.length() - 1));\n preparedStatement6.setInt(8, a2.ALLATORIxDEMO);\n preparedStatement5.setInt(9, a2.I);\n preparedStatement5.setShort(10, a2.K);\n preparedStatement4.setInt(11, a2.M);\n preparedStatement4.setInt(12, a2.D);\n preparedStatement4.executeUpdate();\n a2.a = false;\n if (preparedStatement == null) break block17;\n druidPooledConnection = druidPooledConnection2;\n }\n preparedStatement.close();\n break block18;\n }\n druidPooledConnection = druidPooledConnection2;\n }\n if (druidPooledConnection == null) return;\n druidPooledConnection2.close();\n }", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "public void insert()\n\t{\n\t}", "int insert(Engine record);", "int insert(Admin record);", "int insert(Admin record);", "@Test\n public void testInsertSpecialChar() {\n // 1. insert init data\n SpecialChar soruce = insertSpecialChar();\n\n // 2. select a specialChar data\n SpecialChar specialChar =\n (SpecialChar) session.get(SpecialChar.class, new Integer(4491));\n\n // 3. assert result - timeDateType\n Assert.assertNotNull(specialChar);\n Assert.assertEquals(soruce.getSpecialCharA(), specialChar.getSpecialCharA());\n Assert.assertEquals(soruce.getSpecialCharB(), specialChar.getSpecialCharB());\n Assert.assertEquals(soruce.getSpecialCharC(), specialChar.getSpecialCharC());\n Assert.assertEquals(soruce.getSpecialCharD(), specialChar.getSpecialCharD());\n Assert.assertEquals(soruce.getSpecialCharE(), specialChar.getSpecialCharE());\n\n }", "public void AddNewCharacter();", "public abstract String insert(Object obj) ;", "void insert(CTelnetServers record);", "int insert(Computer record);", "public abstract String toDBString();", "int insert(Online record);", "void insert(Mi004 record);", "int insert(Commet record);", "public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ­ ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }", "String charWrite();", "int insert(PasswordCard record);", "int insert(WechatDemo record);", "int insert(ToolsOutIn record);", "int insert(Caiwu record);", "public static void main(String[] args){\n\r\n StringDB Database = new StringDB();\r\n Database.execute(\"INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;\");\r\n\r\n\r\n\r\n }", "int insert(SysCode record);", "int insert(Powers record);", "int insert(CraftAdvReq record);", "int insert(Dish record);", "int insert(countrylanguage record);", "int insert(Disease record);", "int insert(AdminTab record);", "int insert(Lbm83ChohyokanriPkey record);", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "public abstract String createDBString();", "int insert(Basicinfo record);", "int insert(Card record);", "public CustomSql getCustomSqlInsert();", "int insert(Country record);", "public String getDBString();", "void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}", "int insert(PrhFree record);", "void insert(Customer customer);", "int insert(Prueba record);", "int insert(BasicEquipment record);", "int insert(PmKeyDbObj record);", "int insert(Yqbd record);", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "int insert(TCpySpouse record);", "@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getPreparedInsertText() {\n\t\treturn SQL_Insert;\n\t}", "int insert(Assist_table record);", "int insert(Dormitory record);", "int insert(HotspotLog record);", "public <E extends Writeable> void write(String sql);", "int insert(HotelType record);", "int insert(SPerms record);", "int insert(Privilege record);", "int insert(Dress record);", "int insert(BaseCountract record);", "int insert(Kaiwa record);", "int insert(WordSchool record);", "int insert(SmsCleanBagLine record);", "public void insert(char i);", "int insert(SpecialCircumstance record);", "int insert(Cargo record);", "int insert(TLinkman record);", "int insert(WbUser record);", "int insert(CmstTransfdevice record);", "int insert(Enfermedad record);", "int insert(EtpBase record);", "int insert(Device record);", "int insert(Device record);", "int insert(CaseLinkman record);", "int insert(UserTips record);", "int insert(SwipersDO record);", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "int insert(TherapyAction record);", "int insert(Message record);", "int insert(AccuseInfo record);", "int insert(Massage record);", "int insert(Shipping record);", "int insert(TCar record);", "int insert(TbSerdeParams record);", "int insert(Usertype record);", "int insert(BaseReturn record);", "int insert(FunctionInfo record);", "int insertSelective(TerminalInfo record);", "int insert(Register record);", "public int insert(Address address) throws Exception;", "@org.junit.Test\r\n\tpublic void insert() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"/org/save\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"name\", \"112\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "private void setext() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\ts.executeQuery(\"insert into chatmachine (name,message,ip,time) values ('testuser2','\" + msgfield.getText()\n\t\t\t\t\t+ \"','9.9.9.9',CURRENT_TIMESTAMP);\");\n\n//\t\t\twhile (rs.next()) {\n//\t\t\t\toutput.setText(rs.getString(\"name\")+\": \"+rs.getString(\"message\"));\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n//\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\n\t}", "int insert(Notice record);", "int insert(Tourst record);", "int insert(RegsatUser record);", "int insert(UcOrderGuestInfo record);", "@Override\n\tprotected String sql() throws OperationException {\n\t\treturn sql.insert(tbObj, fieldValue);\n\t}", "int insert(TDwBzzxBzflb record);", "int insert(WayShopCateRoot record);", "int insert(PmPost record);", "int insert(Ad record);", "int insert(TestEntity record);" ]
[ "0.57816505", "0.57471603", "0.5607036", "0.5558689", "0.5550952", "0.55431944", "0.5489939", "0.5489939", "0.54829985", "0.54596925", "0.5432055", "0.54196656", "0.54128695", "0.541072", "0.5404037", "0.54017544", "0.5399198", "0.539479", "0.5389993", "0.5383671", "0.537684", "0.53612727", "0.5355521", "0.53511095", "0.53503567", "0.5330447", "0.5328247", "0.5327707", "0.53240424", "0.5317277", "0.5316782", "0.53009135", "0.529419", "0.5267981", "0.52534", "0.5249401", "0.524599", "0.5224185", "0.51982176", "0.51735586", "0.5160988", "0.5160337", "0.51598036", "0.51568663", "0.51461416", "0.5128581", "0.51263076", "0.51192725", "0.51189256", "0.5116726", "0.5116402", "0.5111739", "0.51102203", "0.5106872", "0.5083292", "0.5082344", "0.5076744", "0.50734526", "0.5069003", "0.5064899", "0.5054287", "0.5053031", "0.5047506", "0.50452954", "0.5042104", "0.50389516", "0.5035562", "0.50354785", "0.50352263", "0.5034206", "0.50341225", "0.50341225", "0.50318563", "0.50260496", "0.50242937", "0.50225264", "0.5019976", "0.5019364", "0.5014733", "0.5013766", "0.50126135", "0.50117254", "0.5010881", "0.50094765", "0.50059515", "0.49904817", "0.49899003", "0.49870336", "0.4984449", "0.49841627", "0.49759617", "0.49737477", "0.49590397", "0.495641", "0.49555722", "0.49544978", "0.49536702", "0.4952924", "0.4948527", "0.49480224", "0.49456778" ]
0.0
-1
Hamcrest matcher that matches a callback event with the given name
public static Matcher<CallbackEvent> isCallbackEvent(String callbackName) { return new FeatureMatcher<CallbackEvent, String>(equalTo(callbackName), "is the callback event", "callback name") { @Override protected String featureValueOf(final CallbackEvent actual) { return actual.getCallbackName(); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Matcher<CallbackEvent> isCallbackEvent()\n {\n return new FeatureMatcher<CallbackEvent, Void>(anything(\"\"), \"is any callback event\", \"\")\n {\n @Override\n protected Void featureValueOf(final CallbackEvent actual)\n {\n return null;\n }\n };\n }", "public boolean match(Event e);", "public boolean matchesEventData(String nameTest, HistoricalPeriod periodTest, String descriptionTest) {\r\n\t\tif(matchesName(nameTest) && matchesPeriod(periodTest) && matchesDescription(descriptionTest))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "@Test\n public void testNearFront()\n {\n String sName = \"near-front-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "@Test\n public void testNear()\n {\n String sName = \"near-client-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "public void testMetaDataVerificationForLSEventName(final String programeName,\n final String eventName) throws ParseException;", "private boolean isMessageNameMatching(TreeWalkerAuditEvent event) {\n return messageRegexp == null || messageRegexp.matcher(event.getMessage()).find();\n }", "@Test\n public void testDispatchEvent(){\n\n final SampleClass sample = new SampleClass();\n\n assertEquals(\"\", sample.getName());\n\n eventDispatcher.addSimulatorEventListener(new SimulatorEventListener(){\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n sample.setName(\"Modified\");\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n \n }\n });\n\n eventDispatcher.dispatchEvent(SimulatorEventType.NEW_MESSAGE, null, null);\n\n assertEquals(\"Modified\",sample.getName());\n }", "private boolean isMessageNameMatching(AuditEvent event) {\n return messageRegexp == null || messageRegexp.matcher(event.getMessage()).find();\n }", "@Test\n public void testNearBack()\n {\n String sName = \"near-back-listener\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "private void verifyEvents(boolean titleEvent, boolean nameEvent, boolean descriptionEvent) {\n if (titleEvent) {\n Assert.assertEquals(\"Missing title change event\", titleEvent, titleChangeEvent);\n }\n if (nameEvent) {\n Assert.assertEquals(\"Missing name change event\", nameEvent, nameChangeEvent);\n }\n if (descriptionEvent) {\n Assert.assertEquals(\"Missing content description event\", descriptionEvent, contentChangeEvent);\n }\n }", "public String listen(String key, Match keyMatchingRule, PropertyChangedCallback callback);", "public void testCustomEventListener() throws Exception\n {\n checkEventTypeRegistration(CUSTOM_EVENT_BUILDER, \"\");\n }", "public interface FuzzerListener extends EventListener {\n\n /**\n * Fuzz header added.\n * \n * @param evt\n * the evt\n */\n void fuzzHeaderAdded(FuzzerEvent evt);\n\n /**\n * Fuzz header changed.\n * \n * @param evt\n * the evt\n */\n void fuzzHeaderChanged(FuzzerEvent evt);\n\n /**\n * Fuzz header removed.\n * \n * @param evt\n * the evt\n */\n void fuzzHeaderRemoved(FuzzerEvent evt);\n\n /**\n * Fuzz parameter added.\n * \n * @param evt\n * the evt\n */\n void fuzzParameterAdded(FuzzerEvent evt);\n\n /**\n * Fuzz parameter changed.\n * \n * @param evt\n * the evt\n */\n void fuzzParameterChanged(FuzzerEvent evt);\n\n /**\n * Fuzz parameter removed.\n * \n * @param evt\n * the evt\n */\n void fuzzParameterRemoved(FuzzerEvent evt);\n\n}", "public interface EventCallback {\n void invoke(String receiver,Object result);\n}", "public void validateEvent(String expected, WebElement link) {\n assertTrue(\"The link contains the valid event name\", expected.equals(link.getText()));\n }", "@Test\n public void testRwbmBoth()\n {\n generateEvents(\"dist-rwbm-both\");\n checkEvents(true, true);\n }", "public boolean check(EventType event);", "protected void assertEvent(boolean fExpected)\n {\n Eventually.assertThat(invoking(this).wasInserted(), is(fExpected));\n }", "public void testHandlerWithNameAttributeForApplicationEvent() throws Exception {\n DefDescriptor<ComponentDef> componentDefDescriptor = DefDescriptorImpl.getInstance(\n \"handleEventTest:handlerWithNameForApplicationEvent\", ComponentDef.class);\n try {\n componentDefDescriptor.getDef();\n fail(\"Expected InvalidReferenceException\");\n } catch (InvalidReferenceException e) {\n assertEquals(\n \"Incorrect exception message\",\n \"A aura:handler that specifies a name=\\\"\\\" attribute must handle a component event. Either change the aura:event to have type=\\\"COMPONENT\\\" or alternately change the aura:handler to specify an event=\\\"\\\" attribute.\",\n e.getMessage());\n }\n }", "boolean onEvent(Event event);", "@Test\n\tpublic void shouldReceiveOneCorrectEvent() {\n\t\t// Arrange\n\t\tUdpReceiver theStub = Mockito.mock(UdpReceiver.class);\n\t\twhen(theStub.receive()).thenReturn(\"TESTID:FAULT:EVENT_DATA\");\n\t\tUdpEventReceiver target = new UdpEventReceiver();\n\t\ttarget.setUdpReceiver(theStub);\n\t\tEvent expected = new Event(\"TESTID:FAULT:EVENT_DATA\");\n\n\t\t// Act\n\t\tEvent actual = target.receive();\n\n\t\t// Assert\n\t\tassertThat(actual, equalTo(expected));\n\t}", "EventCallbackHandler getCallbackHandler();", "public void testEventStatusFilter(final String programName) throws ParseException;", "public interface CloseEventCallback {\n void onSuccees();\n void UserIsNotExist();\n void EventIsNotExist();\n void TechnicalError();\n}", "@Test\n public void testShouldNotDuplicateListeners() {\n manager.register(listener);\n manager.publishConnect(\"sessionId\");\n\n verify(listener, only()).onConnect(stringCaptor.capture());\n String id = stringCaptor.getValue();\n assertThat(id, is(equalTo(\"sessionId\")));\n }", "private\n static\n void\n assertEventDataEqual( MingleReactorEvent ev1,\n String ev1Name,\n MingleReactorEvent ev2,\n String ev2Name )\n {\n Object o1 = null;\n Object o2 = null;\n String desc = null;\n\n switch ( ev1.type() ) {\n case VALUE: o1 = ev1.value(); o2 = ev2.value(); desc = \"value\"; break;\n case FIELD_START:\n o1 = ev1.field(); o2 = ev2.field(); desc = \"field\"; break;\n case STRUCT_START:\n o1 = ev1.structType(); o2 = ev2.structType(); desc = \"structType\";\n break;\n default: return;\n }\n\n state.equalf( o1, o2, \"%s.%s != %s.%s (%s != %s)\",\n ev1Name, desc, ev2Name, desc, o1, o2 );\n }", "boolean handlesEventsOfType(RuleEventType type);", "@Test\n public void eventFilterTest() {\n // TODO: test eventFilter\n }", "public interface EventFilter {\n\n /**\n * Filter an event\n *\n * @param eventName\n * name of the event to filter\n * @param params\n * objects sent with the event\n * @param eventBus\n * event bus used to fire the event\n * @return false if event should be stopped, true otherwise\n */\n boolean filterEvent(String eventName, Object[] params, Object eventBus);\n}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(org.projectfloodlight.openflow.protocol.OFType type, String name) {\n\t\treturn false;\n\t}", "protected abstract void onMatch(String value, Label end);", "private void checkEventTypeRegistration(String builderName,\n String expectedRegistration) throws Exception\n {\n builderData.setBuilderName(builderName);\n context.setVariable(TREE_MODEL, new HierarchicalConfiguration());\n executeScript(SCRIPT);\n builderData.invokeCallBacks();\n checkFormEventRegistration(expectedRegistration);\n TreeHandlerImpl treeHandler = (TreeHandlerImpl) builderData\n .getComponentHandler(TREE_NAME);\n TreeExpansionListener[] expansionListeners = treeHandler\n .getExpansionListeners();\n assertEquals(\"Wrong number of expansion listeners\", 1,\n expansionListeners.length);\n }", "public Result testGetEventSetDescriptors() {\n EventSetDescriptor[] eventSetDescriptors = beanInfo\n .getEventSetDescriptors();\n assertEquals(beanInfo.getEventSetDescriptors()[0]\n .getAddListenerMethod().getName(), \"addFredListener\");\n assertEquals(eventSetDescriptors.length, 1);\n return passed();\n }", "@Test\n public void testAddEventListener() {\n List<SimulatorEventListener> eventListeners = eventDispatcher.getSimulatorEventListeners();\n assertTrue(eventListeners.size() == 0);\n SimulatorEventListener listener = new SimulatorEventListener() {\n\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n\n }\n };\n eventDispatcher.addSimulatorEventListener(listener);\n assertTrue(eventListeners.size() == 1);\n }", "public interface Callback {\n public void click();\n }", "public NameMdoCallbackTest(String testName) {\r\n super(testName);\r\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public boolean match(String name) {\n\t\t\treturn (this.equals(directions.get(name.toUpperCase())));\n\t\t}", "boolean hasEvent();", "@Test\n public void shouldReceivePaymentNotification() {\n stubFinder.trigger(\"paymentReceived\");\n\n // when\n Payment actualPayment = paymentsQueuelistener.lastPayment;\n\n // then\n Payment expectedPayment = new Payment(\"abc\", \"Paid\");\n assertThat(actualPayment).isEqualTo(expectedPayment);\n }", "@Test\n public void testRwbmInternalBoth()\n {\n generateEvents(\"dist-rwbm-internal-both\");\n checkEvents(true, true);\n }", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "private void checkFormEventRegistration(String expected)\n {\n PlatformEventManagerImpl eventMan = (PlatformEventManagerImpl) builderData\n .getEventManager().getPlatformEventManager();\n assertEquals(\"Wrong event listener registration\", expected, eventMan\n .getRegistrationData());\n }", "@Test\n public void testInvokingStringMethodAndEvaluate() {\n\n MethodInvokingEventCondition invokingEventCondition = new MethodInvokingEventCondition(DummyAdapterEvent.class,\n DummyAdapterEvent.METHOD_RETURNS_STRING, STRING_TO_MATCH);\n\n Assert.assertTrue(invokingEventCondition.evaluate(dummyAdapterEvent));\n }", "public String listen(String key, PropertyChangedCallback callback);", "public interface CustomEventNamesResolver {\n String resolveCustomEventName(String str);\n }", "Object run(Callback<String> callback, String input);", "@Test\r\n\tpublic void Event() {\n\t\tString message = \"\";\r\n\t\tList<Object[]> myList = new ArrayList<Object[]>();\r\n\r\n\t\tmyList.add(new Object[] { \"nn\", \"artist\", \"not null\" });\r\n\t\tmyList.add(new Object[] { \"s\", \"venue\", null });\r\n\t\tmyList.add(new Object[] { \"s\", \"date\", null });\r\n\t\tmyList.add(new Object[] { \"i\", \"attendees\", 0 });\r\n\t\tmyList.add(new Object[] { \"s\", \"description\", \"\" });\r\n\r\n\t\tfor (Object[] li : myList) {\r\n\t\t\tmessage = String.format(\"initial value for %s should be %s\\n\",\r\n\t\t\t\t\tli[1], li[2]);\r\n\t\t\ttry {\r\n\t\t\t\tswitch (li[0].toString()) {\r\n\t\t\t\tcase \"i\":\r\n\t\t\t\tcase \"s\":\r\n\t\t\t\t\tassertEquals(\r\n\t\t\t\t\t\t\tgetPrivateField(toTest, li[1].toString()).get(\r\n\t\t\t\t\t\t\t\t\ttoTest), li[2], message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"nn\":\r\n\t\t\t\t\tassertNotNull(getPrivateField(toTest, li[1].toString())\r\n\t\t\t\t\t\t\t.get(toTest), message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IllegalArgumentException 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 (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void testActionListener() throws Exception\n {\n checkFormEventListener(ACTION_BUILDER, \"ACTION\");\n }", "public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }", "@Test\n public void stateNameExtraction() {\n final String EVENT_NAME = \"TestEvent\";\n StateTransitionEvent event = new StateTransitionEventImpl( EVENT_NAME );\n\n assertThat( event.getEventName(), equalTo( EVENT_NAME ) );\n LOG.debug( \"Successfully created stateTransitionEvent=[\" + event + \"]\" );\n }", "public interface AsyncPredicateListener {\n\n void onTrue();\n\n void onFalse();\n\n}", "@Test\n public void testDependEvent() {\n\n boolean gotEvent[] = new boolean[1];\n\n dependencyManager.eventBus.register(new Object() {\n @Subscribe\n void handle(DependEvent event) {\n gotEvent[0] = true;\n }\n });\n\n dependencyManager.depend(\"foo\", ImmutableSet.of());\n assertTrue(gotEvent[0]);\n\n //###TODO for completeness.. unregister event bus subscriber\n\n }", "public void testEventManager_Accuracy() {\n assertNotNull(\"Test method for 'EventManager(ActionManager)' failed.\", eventManager);\n }", "public void testGetMessage() {\n assertEquals(\"Message should be got correctly.\", event.getMessage(), message);\n }", "public SignalArgumentExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n public void testGetEbXmlHandler() {\n System.out.println(\"getEbXmlHandler\");\n String sa = \"testhandler\";\n SpineEbXmlHandler expResult = (EbXmlMessage m) -> {\n };\n instance.addHandler(sa, expResult);\n SpineEbXmlHandler result = instance.getEbXmlHandler(sa);\n assertEquals(expResult, result);\n }", "void onMatched(String json);", "protected void generateTwoEvents(String sName)\n {\n clearEvents();\n NamedCache cache = getNamedCache(sName);\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n cache.put(MapListenerTests.KEY2, MapListenerTests.VALUE);\n assertEquals(cache.get(MapListenerTests.KEY), MapListenerTests.VALUE);\n assertEquals(cache.get(MapListenerTests.KEY2), MapListenerTests.VALUE);\n }", "public static boolean NameTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"NameTest\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, NAME_TEST, \"<name test>\");\n r = Wildcard(b, l + 1);\n if (!r) r = EQName(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public void functionDetected(String name, CommonTree block){\r\n\r\n if (name.equals(getParamS(\"stateSetter\"))){\r\n foundStateSetter=true;\r\n StringTemplate st = getTemplateLib().getInstanceOf(\"setStateFunc\");\r\n tokens.insertAfter(\r\n input.getTreeAdaptor().getTokenStartIndex(block),\r\n st.toString()\r\n );\r\n } else if (name.equals(getParamS(\"stateGetter\"))) {\r\n // getter is without modification\r\n } else {\r\n // verify this function\r\n if (!name.matches(getParamS(\"ignoredFunctions\"))){\r\n\r\n if (!knownFunctions.containsKey(name)) {\r\n knownFunctions.put(name, new Function(name));\r\n }\r\n Function f = knownFunctions.get(name);\r\n\r\n StringTemplate st = getTemplateLib().getInstanceOf(\"VerifyAllowedFunction\");\r\n st.setAttribute(\"function\", f);\r\n st.setAttribute(\"stateGetter\", getParamS(\"stateGetter\"));\r\n tokens.insertAfter(\r\n input.getTreeAdaptor().getTokenStartIndex(block),\r\n st.toString()\r\n );\r\n }\r\n }\r\n }", "@Test\n public void testDistOverflowBack()\n {\n String sName = \"dist-overflow-back\";\n generateTwoEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "public void assertMessageMatches(final String loggerName, final int messageIndex, final String pattern)\n\t{\n Assert.assertTrue(recorders.get(loggerName).getMessages().get(messageIndex - 1).matches(pattern));\n }", "@Then(\"the {string} event is broadcast\")\n public void the_event_is_broadcast(String string) throws Exception {\n ArgumentCaptor<Event> argumentCaptor = ArgumentCaptor.forClass(Event.class);\n verify(eventSender, atLeastOnce()).sendEvent(argumentCaptor.capture());\n assertEquals(EventType.valueOf(string), argumentCaptor.getValue().getType());\n }", "public void setEventName(String name);", "@Test\n public void EffectSelectedEventTest() {\n EffectSelectedEvent event = null;\n boolean result = true;\n try {\n event = new EffectSelectedEvent(0, \"tony\", null, null);\n turnController.handleEvent(event);\n } catch(Exception e) {\n result = false;\n }\n assertTrue(result);\n\n }", "@FunctionalInterface\r\npublic interface ListenerRecognizer {\r\n /**\r\n * Tests whether the given listener can be processed.\r\n * \r\n * @param state an instance of {@link WatchableState} which corresponds to \r\n * a {@code Path} object which is registered with a {@code WatchService}.\r\n * @param event An event for an object that is registered with a WatchService.\r\n * @param listener an object of type EventListener to be tested\r\n * \r\n * @return true if the given listener can be processed by this function\r\n */\r\n boolean test(WatchableState state, WatchEvent event, EventListener listener );\r\n}", "@Override\n protected boolean acceptEvent(BuilderEvent event)\n {\n if (getEventType() == null)\n {\n return false;\n }\n assert event != null : \"Event is null!\";\n\n Class<?> eventClass = event.getClass();\n try\n {\n Method method = eventClass.getMethod(METHOD_TYPE);\n Object eventType = method.invoke(event);\n if (eventType instanceof Enum<?>)\n {\n return getEventType().equals(((Enum<?>) eventType).name());\n }\n }\n catch (Exception ex)\n {\n // All exceptions cause the event to be not accepted\n }\n\n return false;\n }", "@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);", "private boolean isCallback(IMethodResult result)\n\t{\n\t\treturn (result != null && result.hasCallback());\n\t}", "public interface CallbackInterface {\n void execute(String name);\n}", "private boolean match(String message) {\n\t\tfinal Regex pattern = pattern();\n\t\tfinal Match match = pattern.match(message);\n\t\tif(match.empty()) return false;\n\n\t\tfinal GCEvent event = createGCEventFrom(match, message);\n\t\tthis.queue.add(event);\n\t\treturn true;\n\t}", "public void testAddActionEventListener1_Accuracy() {\n eventManager.addActionEventListener(actionEventListener1, Action.class);\n eventManager.addActionEventListener(actionEventListener2, Action.class);\n eventManager.addActionEventListener(actionEventListener3, UndoableAction.class);\n\n Map<Class, Set<ActionEventListener>> map = (Map<Class, Set<ActionEventListener>>)\n getPrivateField(EventManager.class, eventManager, \"actionEventListeners\");\n // Check all the validators have been added correctly\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener1));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener2));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, UndoableAction.class, actionEventListener3));\n }", "public interface FilterEventConsumer {\n void onMessage(EventeumMessage<ContractEventFilter> message);\n}", "public void testFocusListener() throws Exception\n {\n checkFormEventListener(FOCUS_BUILDER, \"FOCUS\");\n }", "@Override\n\tpublic boolean isCallbackOrderingPostreq(org.projectfloodlight.openflow.protocol.OFType type, String name) {\n\t\treturn false;\n\t}", "public interface InputCallbackQueryHandler {\n BotApiMethod<?> handle(CallbackQuery callbackQuery);\n BotState getHandlerName();\n}", "public void verifyPresenterNameMatchedOnCourseInfoPage(String name) {\n \t Assert.assertEquals(presenterLabel.getText(),name);\n }", "public interface CallbackListener {\n\n public abstract void callBack(String returnCode, Object result);\n\n}", "public abstract void handleMatching(EventBean[] triggerEvents, EventBean[] matchingEvents);", "@Test\n public void test2() {\n Consumer<String> consumer = System.out::println;\n consumer.accept(\"lambda V5!\");\n }", "TestClassExecutionResult assertTestsExecuted(String... testNames);", "public interface ActionMatcher {\n boolean match(Action action, ActionParameters actionUri);\n}", "public void testMetaDataVerificationForLSEventDescription(final String programeName,\n final String eventName, final String eventDescription) throws ParseException;", "public interface ChoosableEvent extends Event{\n\n void chooseAnswer(String answer, String username);\n}", "@Test\n public void testAddHandler() {\n System.out.println(\"addHandler\");\n String sa = \"testhandler\";\n SpineEbXmlHandler h = (EbXmlMessage m) -> {\n };\n instance.addHandler(sa, h);\n }", "public boolean match(final ShipEvent event) {\n // Check all event matchers. If any one event matcher matches the fired event\n // then the victory condition is met.\n boolean matched = matchers\n .stream()\n .anyMatch(matcher -> matcher.match(event));\n\n String location = gameMap.convertPortReferenceToName(event.getShip().getTaskForce().getReference());\n\n log.info(\"Ship '{}' '{}' at reference '{}' matched: '{}'\",\n new Object[] {event.getShip().getName(), event.getAction(), location, matched});\n\n return matched;\n }", "@Override\n public boolean isCallbackOrderingPrereq(OFType type, String name) {\n return false;\n }", "@Override\n public boolean isCallbackOrderingPrereq(OFType type, String name) {\n return false;\n }", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "public boolean isEvent(String eventName) {\r\n\t\tboolean result = false;\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.getName().equals(eventName)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private void\n\t invokeCallbacks( SoEvent e)\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t // Call all callback funcs interested in this event type\n\t for (int i = 0; i < cblist.getLength(); i++) {\n\t SoEventCallbackData data = (SoEventCallbackData ) cblist.operator_square_bracket(i);\n\t if (e.isOfType(data.eventType)) {\n\t data.func.run (data.userData, this);\n\t }\n\t }\n\t }", "private static <T> AsyncCallback<T> callback(final T name) {\n return new AsyncCallback<T>() {\n @Override\n public void onComplete(T value, Optional<Exception> ex) {\n if (ex.isPresent()) {\n log(name + \" failed: \" + ex.get().getMessage());\n } else {\n log(name + \": \" + value);\n }\n }\n };\n // return (value, ex) -> {\n // if (ex.isPresent()) {\n // log(name + \" failed: \" + ex.map(Exception::getMessage).orElse(\"\"));\n // } else {\n // log(name + \": \" + value);\n // }\n // };\n }", "@Test\n public void testDistOverflowFront()\n {\n String sName = \"dist-overflow-front\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "@Override\n public boolean isCorrespondingTo(String eventName) {\n return eventName.equals(name) || eventName.equals(name_lt) || eventName.equals(name_gt) ;\n }", "@Override\n\t\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\t\treturn false;\n\t\t}" ]
[ "0.7043329", "0.635968", "0.57293206", "0.5537791", "0.54234546", "0.53911966", "0.53680646", "0.5361304", "0.53365034", "0.52992266", "0.5296547", "0.5272698", "0.5272053", "0.5218018", "0.5118315", "0.51168984", "0.5103437", "0.502849", "0.5028274", "0.49937752", "0.49893317", "0.49851122", "0.4979761", "0.49702942", "0.49472892", "0.49161306", "0.48839128", "0.4875177", "0.48641136", "0.48503438", "0.48499265", "0.48415536", "0.4827296", "0.4819808", "0.4794214", "0.47840405", "0.4783467", "0.47823635", "0.4772874", "0.47571325", "0.475691", "0.4742341", "0.47419122", "0.47354537", "0.47196904", "0.47179353", "0.47151637", "0.47068197", "0.4702976", "0.46861634", "0.46839827", "0.46800473", "0.46768212", "0.4663142", "0.46528015", "0.46279952", "0.46193817", "0.46189952", "0.46179473", "0.46076852", "0.46062213", "0.45978776", "0.4594024", "0.45906815", "0.4589487", "0.4585109", "0.4583193", "0.45751947", "0.45712087", "0.45679122", "0.45665973", "0.4562488", "0.4548908", "0.4535347", "0.45350322", "0.45303878", "0.45283952", "0.45263886", "0.4514068", "0.45095986", "0.4508415", "0.4502309", "0.45001385", "0.44996557", "0.44850338", "0.4482619", "0.44780937", "0.44725788", "0.44714126", "0.44714126", "0.44703385", "0.44703385", "0.44703385", "0.44703385", "0.44694218", "0.44687295", "0.4463072", "0.44630048", "0.44604182", "0.44540846" ]
0.74578375
0
Hamcrest matcher that matches any callback event (any name)
public static Matcher<CallbackEvent> isCallbackEvent() { return new FeatureMatcher<CallbackEvent, Void>(anything(""), "is any callback event", "") { @Override protected Void featureValueOf(final CallbackEvent actual) { return null; } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Matcher<CallbackEvent> isCallbackEvent(String callbackName)\n {\n return new FeatureMatcher<CallbackEvent, String>(equalTo(callbackName), \"is the callback event\", \"callback name\")\n {\n @Override\n protected String featureValueOf(final CallbackEvent actual)\n {\n return actual.getCallbackName();\n }\n };\n }", "public boolean match(Event e);", "@Test\n public void testNearFront()\n {\n String sName = \"near-front-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "@Test\n public void testNear()\n {\n String sName = \"near-client-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "private void verifyEvents(boolean titleEvent, boolean nameEvent, boolean descriptionEvent) {\n if (titleEvent) {\n Assert.assertEquals(\"Missing title change event\", titleEvent, titleChangeEvent);\n }\n if (nameEvent) {\n Assert.assertEquals(\"Missing name change event\", nameEvent, nameChangeEvent);\n }\n if (descriptionEvent) {\n Assert.assertEquals(\"Missing content description event\", descriptionEvent, contentChangeEvent);\n }\n }", "public boolean matchesEventData(String nameTest, HistoricalPeriod periodTest, String descriptionTest) {\r\n\t\tif(matchesName(nameTest) && matchesPeriod(periodTest) && matchesDescription(descriptionTest))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "@Test\n public void testNearBack()\n {\n String sName = \"near-back-listener\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "public interface FuzzerListener extends EventListener {\n\n /**\n * Fuzz header added.\n * \n * @param evt\n * the evt\n */\n void fuzzHeaderAdded(FuzzerEvent evt);\n\n /**\n * Fuzz header changed.\n * \n * @param evt\n * the evt\n */\n void fuzzHeaderChanged(FuzzerEvent evt);\n\n /**\n * Fuzz header removed.\n * \n * @param evt\n * the evt\n */\n void fuzzHeaderRemoved(FuzzerEvent evt);\n\n /**\n * Fuzz parameter added.\n * \n * @param evt\n * the evt\n */\n void fuzzParameterAdded(FuzzerEvent evt);\n\n /**\n * Fuzz parameter changed.\n * \n * @param evt\n * the evt\n */\n void fuzzParameterChanged(FuzzerEvent evt);\n\n /**\n * Fuzz parameter removed.\n * \n * @param evt\n * the evt\n */\n void fuzzParameterRemoved(FuzzerEvent evt);\n\n}", "public void testCustomEventListener() throws Exception\n {\n checkEventTypeRegistration(CUSTOM_EVENT_BUILDER, \"\");\n }", "@Test\n public void testRwbmBoth()\n {\n generateEvents(\"dist-rwbm-both\");\n checkEvents(true, true);\n }", "private boolean isMessageNameMatching(TreeWalkerAuditEvent event) {\n return messageRegexp == null || messageRegexp.matcher(event.getMessage()).find();\n }", "private boolean isMessageNameMatching(AuditEvent event) {\n return messageRegexp == null || messageRegexp.matcher(event.getMessage()).find();\n }", "@Test\n public void eventFilterTest() {\n // TODO: test eventFilter\n }", "@Test\n public void testDispatchEvent(){\n\n final SampleClass sample = new SampleClass();\n\n assertEquals(\"\", sample.getName());\n\n eventDispatcher.addSimulatorEventListener(new SimulatorEventListener(){\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n sample.setName(\"Modified\");\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n \n }\n });\n\n eventDispatcher.dispatchEvent(SimulatorEventType.NEW_MESSAGE, null, null);\n\n assertEquals(\"Modified\",sample.getName());\n }", "public boolean check(EventType event);", "@Test\n\tpublic void shouldReceiveOneCorrectEvent() {\n\t\t// Arrange\n\t\tUdpReceiver theStub = Mockito.mock(UdpReceiver.class);\n\t\twhen(theStub.receive()).thenReturn(\"TESTID:FAULT:EVENT_DATA\");\n\t\tUdpEventReceiver target = new UdpEventReceiver();\n\t\ttarget.setUdpReceiver(theStub);\n\t\tEvent expected = new Event(\"TESTID:FAULT:EVENT_DATA\");\n\n\t\t// Act\n\t\tEvent actual = target.receive();\n\n\t\t// Assert\n\t\tassertThat(actual, equalTo(expected));\n\t}", "@Test\n public void testShouldNotDuplicateListeners() {\n manager.register(listener);\n manager.publishConnect(\"sessionId\");\n\n verify(listener, only()).onConnect(stringCaptor.capture());\n String id = stringCaptor.getValue();\n assertThat(id, is(equalTo(\"sessionId\")));\n }", "public interface EventCallback {\n void invoke(String receiver,Object result);\n}", "public void testEventStatusFilter(final String programName) throws ParseException;", "public void testMetaDataVerificationForLSEventName(final String programeName,\n final String eventName) throws ParseException;", "public interface EventFilter {\n\n /**\n * Filter an event\n *\n * @param eventName\n * name of the event to filter\n * @param params\n * objects sent with the event\n * @param eventBus\n * event bus used to fire the event\n * @return false if event should be stopped, true otherwise\n */\n boolean filterEvent(String eventName, Object[] params, Object eventBus);\n}", "@Test\n public void testAddEventListener() {\n List<SimulatorEventListener> eventListeners = eventDispatcher.getSimulatorEventListeners();\n assertTrue(eventListeners.size() == 0);\n SimulatorEventListener listener = new SimulatorEventListener() {\n\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n\n }\n };\n eventDispatcher.addSimulatorEventListener(listener);\n assertTrue(eventListeners.size() == 1);\n }", "public Result testGetEventSetDescriptors() {\n EventSetDescriptor[] eventSetDescriptors = beanInfo\n .getEventSetDescriptors();\n assertEquals(beanInfo.getEventSetDescriptors()[0]\n .getAddListenerMethod().getName(), \"addFredListener\");\n assertEquals(eventSetDescriptors.length, 1);\n return passed();\n }", "boolean handlesEventsOfType(RuleEventType type);", "protected void assertEvent(boolean fExpected)\n {\n Eventually.assertThat(invoking(this).wasInserted(), is(fExpected));\n }", "@Test\n public void testRwbmInternalBoth()\n {\n generateEvents(\"dist-rwbm-internal-both\");\n checkEvents(true, true);\n }", "public interface CloseEventCallback {\n void onSuccees();\n void UserIsNotExist();\n void EventIsNotExist();\n void TechnicalError();\n}", "public String listen(String key, Match keyMatchingRule, PropertyChangedCallback callback);", "@Test\r\n\tpublic void Event() {\n\t\tString message = \"\";\r\n\t\tList<Object[]> myList = new ArrayList<Object[]>();\r\n\r\n\t\tmyList.add(new Object[] { \"nn\", \"artist\", \"not null\" });\r\n\t\tmyList.add(new Object[] { \"s\", \"venue\", null });\r\n\t\tmyList.add(new Object[] { \"s\", \"date\", null });\r\n\t\tmyList.add(new Object[] { \"i\", \"attendees\", 0 });\r\n\t\tmyList.add(new Object[] { \"s\", \"description\", \"\" });\r\n\r\n\t\tfor (Object[] li : myList) {\r\n\t\t\tmessage = String.format(\"initial value for %s should be %s\\n\",\r\n\t\t\t\t\tli[1], li[2]);\r\n\t\t\ttry {\r\n\t\t\t\tswitch (li[0].toString()) {\r\n\t\t\t\tcase \"i\":\r\n\t\t\t\tcase \"s\":\r\n\t\t\t\t\tassertEquals(\r\n\t\t\t\t\t\t\tgetPrivateField(toTest, li[1].toString()).get(\r\n\t\t\t\t\t\t\t\t\ttoTest), li[2], message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"nn\":\r\n\t\t\t\t\tassertNotNull(getPrivateField(toTest, li[1].toString())\r\n\t\t\t\t\t\t\t.get(toTest), message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IllegalArgumentException 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 (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public interface AsyncPredicateListener {\n\n void onTrue();\n\n void onFalse();\n\n}", "TestClassExecutionResult assertTestsExecuted(String... testNames);", "private\n static\n void\n assertEventDataEqual( MingleReactorEvent ev1,\n String ev1Name,\n MingleReactorEvent ev2,\n String ev2Name )\n {\n Object o1 = null;\n Object o2 = null;\n String desc = null;\n\n switch ( ev1.type() ) {\n case VALUE: o1 = ev1.value(); o2 = ev2.value(); desc = \"value\"; break;\n case FIELD_START:\n o1 = ev1.field(); o2 = ev2.field(); desc = \"field\"; break;\n case STRUCT_START:\n o1 = ev1.structType(); o2 = ev2.structType(); desc = \"structType\";\n break;\n default: return;\n }\n\n state.equalf( o1, o2, \"%s.%s != %s.%s (%s != %s)\",\n ev1Name, desc, ev2Name, desc, o1, o2 );\n }", "@SmallTest\n @Test\n public void testReceiveMultipleSuccess() {\n testNegotiationSuccess();\n\n // Receive message with typical digit spacing\n mDtmfTransport.onDtmfReceived('A');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('B');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('D');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('C');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('D');\n mTestExecutorService.advanceTime(MSG_TIMEOUT_MILLIS);\n\n verify(mCallback, times(1)).onMessagesReceived(mMessagesCaptor.capture());\n assertEquals(1, mMessagesCaptor.getAllValues().get(0).size());\n assertTrue(mMessagesCaptor.getAllValues().get(0).contains(\n new Communicator.Message(Communicator.MESSAGE_CALL_AUDIO_CODEC,\n Communicator.AUDIO_CODEC_AMR_NB)));\n\n mDtmfTransport.onDtmfReceived('A');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('C');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('D');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('A');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('D');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n\n // Note: Reusing the captor here appends all call arguments on to mMessagesCaptor, so\n // we need to look at index 2 in getAllValues.\n verify(mCallback, times(2)).onMessagesReceived(mMessagesCaptor.capture());\n assertEquals(1, mMessagesCaptor.getAllValues().get(2).size());\n assertTrue(mMessagesCaptor.getAllValues().get(2).contains(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_BATTERY_STATE,\n Communicator.BATTERY_STATE_LOW)));\n }", "public void testAddActionEventListener1_Accuracy() {\n eventManager.addActionEventListener(actionEventListener1, Action.class);\n eventManager.addActionEventListener(actionEventListener2, Action.class);\n eventManager.addActionEventListener(actionEventListener3, UndoableAction.class);\n\n Map<Class, Set<ActionEventListener>> map = (Map<Class, Set<ActionEventListener>>)\n getPrivateField(EventManager.class, eventManager, \"actionEventListeners\");\n // Check all the validators have been added correctly\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener1));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener2));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, UndoableAction.class, actionEventListener3));\n }", "EventCallbackHandler getCallbackHandler();", "public void validateEvent(String expected, WebElement link) {\n assertTrue(\"The link contains the valid event name\", expected.equals(link.getText()));\n }", "public void testValidEventTypes() throws Exception {\n \n UnitTestData data = new UnitTestData();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(data.getContest());\n\n String elist = EventFeedJSON.CONTEST_KEY + \",\" + EventFeedJSON.TEAM_KEY;\n EventFeedFilter filter = new EventFeedFilter(null, elist);\n String json = eventFeedJSON.createJSON(data.getContest(), filter, null, null);\n assertNotNull(json);\n \n// System.out.println(\"debug valid event json \"+json);\n\n assertCountEvent(1, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertMatchCount(120, \"icpc_id\", json);\n }", "public interface ActionMatcher {\n boolean match(Action action, ActionParameters actionUri);\n}", "public void testEventManager_Accuracy() {\n assertNotNull(\"Test method for 'EventManager(ActionManager)' failed.\", eventManager);\n }", "protected abstract void onMatch(String value, Label end);", "boolean onEvent(Event event);", "public void testActionListener() throws Exception\n {\n checkFormEventListener(ACTION_BUILDER, \"ACTION\");\n }", "void onMatched(String json);", "boolean hasEvent();", "private void checkEventTypeRegistration(String builderName,\n String expectedRegistration) throws Exception\n {\n builderData.setBuilderName(builderName);\n context.setVariable(TREE_MODEL, new HierarchicalConfiguration());\n executeScript(SCRIPT);\n builderData.invokeCallBacks();\n checkFormEventRegistration(expectedRegistration);\n TreeHandlerImpl treeHandler = (TreeHandlerImpl) builderData\n .getComponentHandler(TREE_NAME);\n TreeExpansionListener[] expansionListeners = treeHandler\n .getExpansionListeners();\n assertEquals(\"Wrong number of expansion listeners\", 1,\n expansionListeners.length);\n }", "public abstract void handleMatching(EventBean[] triggerEvents, EventBean[] matchingEvents);", "@Test\n public void shouldEmitEvents() {\n Observable.just('A', 'B', 'C')\n .subscribeOn(scheduler)\n .subscribe(subscriber);\n\n scheduler.advanceTimeBy(100, TimeUnit.MILLISECONDS);\n subscriber.assertCompleted();\n subscriber.assertValueCount(3);\n subscriber.assertValues('A', 'B', 'C');\n\n TimeDelayer.sleepForOneSecond();\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public interface FilterEventConsumer {\n void onMessage(EventeumMessage<ContractEventFilter> message);\n}", "@Test\n public void testDependEvent() {\n\n boolean gotEvent[] = new boolean[1];\n\n dependencyManager.eventBus.register(new Object() {\n @Subscribe\n void handle(DependEvent event) {\n gotEvent[0] = true;\n }\n });\n\n dependencyManager.depend(\"foo\", ImmutableSet.of());\n assertTrue(gotEvent[0]);\n\n //###TODO for completeness.. unregister event bus subscriber\n\n }", "@FunctionalInterface\r\npublic interface ListenerRecognizer {\r\n /**\r\n * Tests whether the given listener can be processed.\r\n * \r\n * @param state an instance of {@link WatchableState} which corresponds to \r\n * a {@code Path} object which is registered with a {@code WatchService}.\r\n * @param event An event for an object that is registered with a WatchService.\r\n * @param listener an object of type EventListener to be tested\r\n * \r\n * @return true if the given listener can be processed by this function\r\n */\r\n boolean test(WatchableState state, WatchEvent event, EventListener listener );\r\n}", "@Test\n public void testGetEbXmlHandler() {\n System.out.println(\"getEbXmlHandler\");\n String sa = \"testhandler\";\n SpineEbXmlHandler expResult = (EbXmlMessage m) -> {\n };\n instance.addHandler(sa, expResult);\n SpineEbXmlHandler result = instance.getEbXmlHandler(sa);\n assertEquals(expResult, result);\n }", "public void testGetMessage() {\n assertEquals(\"Message should be got correctly.\", event.getMessage(), message);\n }", "@Override\n protected boolean acceptEvent(BuilderEvent event)\n {\n if (getEventType() == null)\n {\n return false;\n }\n assert event != null : \"Event is null!\";\n\n Class<?> eventClass = event.getClass();\n try\n {\n Method method = eventClass.getMethod(METHOD_TYPE);\n Object eventType = method.invoke(event);\n if (eventType instanceof Enum<?>)\n {\n return getEventType().equals(((Enum<?>) eventType).name());\n }\n }\n catch (Exception ex)\n {\n // All exceptions cause the event to be not accepted\n }\n\n return false;\n }", "public interface Callback {\n public void click();\n }", "@Test\n public void shouldReceivePaymentNotification() {\n stubFinder.trigger(\"paymentReceived\");\n\n // when\n Payment actualPayment = paymentsQueuelistener.lastPayment;\n\n // then\n Payment expectedPayment = new Payment(\"abc\", \"Paid\");\n assertThat(actualPayment).isEqualTo(expectedPayment);\n }", "public void testHandleActionEvent_UndoChangesEvent_Accuracy()\n throws Exception {\n setUpEventManager();\n\n UndoChangesEvent undoChangesEvent = new UndoChangesEvent(undoableAction2, new String());\n\n // Handle the event, actionEventListener1 and actionEventListener2 should be notified\n eventManager.handleActionEvent(undoChangesEvent);\n\n // 'undoableAction1' should be handled\n Pair<UndoChangesEvent, UndoableAction> performRecord\n = new Pair<UndoChangesEvent, UndoableAction>(undoChangesEvent, undoableAction1);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener2 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getUndoPerformedRecords().contains(performRecord));\n\n // 'undoableAction2' should also be handled\n performRecord = new Pair<UndoChangesEvent, UndoableAction>(undoChangesEvent, undoableAction2);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getUndoPerformedRecords().contains(performRecord));\n\n // 'undoableAction3' should not be handled\n performRecord = new Pair<UndoChangesEvent, UndoableAction>(undoChangesEvent, undoableAction3);\n // actionEventListener1 should be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getUndoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getUndoPerformedRecords().contains(performRecord));\n }", "public void testHandleActionEvent_RedoChangesEvent_Accuracy()\n throws Exception {\n setUpEventManager();\n actionManager.undoActions(undoableAction1);\n\n RedoChangesEvent redoChangesEvent = new RedoChangesEvent(undoableAction2, new String());\n //actionManager.undoActions(undoableAction3);\n // Handle the event, actionEventListener1 and actionEventListener2 should be notified\n eventManager.handleActionEvent(redoChangesEvent);\n\n // 'undoableAction1' should be handled\n Pair<RedoChangesEvent, UndoableAction> performRecord\n = new Pair<RedoChangesEvent, UndoableAction>(redoChangesEvent, undoableAction1);\n // actionEventListener1 should not be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getRedoPerformedRecords().contains(performRecord));\n\n // 'undoableAction2' should also be handled\n performRecord = new Pair<RedoChangesEvent, UndoableAction>(redoChangesEvent, undoableAction2);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getRedoPerformedRecords().contains(performRecord));\n\n // 'undoableAction3' should not be handled\n performRecord = new Pair<RedoChangesEvent, UndoableAction>(redoChangesEvent, undoableAction3);\n // actionEventListener1 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener2 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getRedoPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getRedoPerformedRecords().contains(performRecord));\n }", "@Test\n public void testInvokingStringMethodAndEvaluate() {\n\n MethodInvokingEventCondition invokingEventCondition = new MethodInvokingEventCondition(DummyAdapterEvent.class,\n DummyAdapterEvent.METHOD_RETURNS_STRING, STRING_TO_MATCH);\n\n Assert.assertTrue(invokingEventCondition.evaluate(dummyAdapterEvent));\n }", "@Test\n public void test2() {\n Consumer<String> consumer = System.out::println;\n consumer.accept(\"lambda V5!\");\n }", "@Test\n public void testDistOverflowBack()\n {\n String sName = \"dist-overflow-back\";\n generateTwoEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "private void assertStreamItemViewHasOnClickListener() {\n assertFalse(\"listener should have not been invoked yet\", mListener.clicked);\n mView.performClick();\n assertTrue(\"listener should have been invoked\", mListener.clicked);\n }", "public interface AnyRTCMeetEvents {\n /**Join meet OK\n * @param strAnyrtcId\n */\n public void OnRtcJoinMeetOK(String strAnyrtcId);\n\n /** Join meet Failed\n * @param strAnyrtcId\n * @param code\n * @param strReason\n */\n public void OnRtcJoinMeetFailed(String strAnyrtcId, AnyRTC.AnyRTCErrorCode code, String strReason);\n\n /** Leave meet\n * @param code\n */\n public void OnRtcLeaveMeet(int code);\n\n\n}", "@Test\n public void EffectSelectedEventTest() {\n EffectSelectedEvent event = null;\n boolean result = true;\n try {\n event = new EffectSelectedEvent(0, \"tony\", null, null);\n turnController.handleEvent(event);\n } catch(Exception e) {\n result = false;\n }\n assertTrue(result);\n\n }", "public void testAddActionEventListener2_Accuracy() {\n eventManager.addActionEventListener(actionEventListener1);\n eventManager.addActionEventListener(actionEventListener2);\n eventManager.addActionEventListener(actionEventListener3);\n\n Map<Class, Set<ActionEventListener>> map = (Map<Class, Set<ActionEventListener>>)\n getPrivateField(EventManager.class, eventManager, \"actionEventListeners\");\n // Check all the validators have been added correctly\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, null, actionEventListener1));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, null, actionEventListener2));\n assertTrue(\"Test method for 'EventManager.addActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, null, actionEventListener3));\n }", "private void checkFormEventRegistration(String expected)\n {\n PlatformEventManagerImpl eventMan = (PlatformEventManagerImpl) builderData\n .getEventManager().getPlatformEventManager();\n assertEquals(\"Wrong event listener registration\", expected, eventMan\n .getRegistrationData());\n }", "@Then(\"the {string} event is broadcast\")\n public void the_event_is_broadcast(String string) throws Exception {\n ArgumentCaptor<Event> argumentCaptor = ArgumentCaptor.forClass(Event.class);\n verify(eventSender, atLeastOnce()).sendEvent(argumentCaptor.capture());\n assertEquals(EventType.valueOf(string), argumentCaptor.getValue().getType());\n }", "@Test\n public void test() {\n GenderMatchPredicate predicate =\n new GenderMatchPredicate(new Gender(VALID_GENDER_AMY));\n assertTrue(predicate\n .test(new PersonBuilder().withGender(VALID_GENDER_AMY).build()));\n\n // different block -> returns false\n predicate = new GenderMatchPredicate(new Gender(VALID_GENDER_BOB));\n assertFalse(predicate\n .test(new PersonBuilder().withGender(VALID_GENDER_AMY).build()));\n }", "public void testHandlerWithNameAttributeForApplicationEvent() throws Exception {\n DefDescriptor<ComponentDef> componentDefDescriptor = DefDescriptorImpl.getInstance(\n \"handleEventTest:handlerWithNameForApplicationEvent\", ComponentDef.class);\n try {\n componentDefDescriptor.getDef();\n fail(\"Expected InvalidReferenceException\");\n } catch (InvalidReferenceException e) {\n assertEquals(\n \"Incorrect exception message\",\n \"A aura:handler that specifies a name=\\\"\\\" attribute must handle a component event. Either change the aura:event to have type=\\\"COMPONENT\\\" or alternately change the aura:handler to specify an event=\\\"\\\" attribute.\",\n e.getMessage());\n }\n }", "WireMessage hasMessage(String sender, String regexp) throws RemoteException;", "@Test\n public void testDistBm()\n {\n generateEvents(\"dist-bm-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "boolean isMatch();", "public void testAddEventValidator1_Accuracy() {\n eventManager.addEventValidator(successEventValidator, Action.class);\n eventManager.addEventValidator(modifiedEventValidator, Action.class);\n eventManager.addEventValidator(deniedEventValidator, UndoableAction.class);\n\n Map<Class, Set<ActionEventValidator>> map = (Map<Class, Set<ActionEventValidator>>)\n getPrivateField(EventManager.class, eventManager, \"eventValidators\");\n // Check all the validators have been added correctly\n assertTrue(\"Test method for 'EventManager.addEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, Action.class, successEventValidator));\n assertTrue(\"Test method for 'EventManager.addEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, Action.class, modifiedEventValidator));\n assertTrue(\"Test method for 'EventManager.addEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, UndoableAction.class, deniedEventValidator));\n }", "public interface Matcher {\n\n char WILDCARD = '*';\n\n void addFilter(String filter);\n\n boolean matches(String word);\n}", "@Test\n public void dispatchToMultipleSubscriberMethodsOnSameObject() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> handler1Received = new ArrayList<>();\n final List<String> handler2Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void eventHandler1(String event) {\n handler1Received.add(event);\n }\n\n @Subscriber\n public void eventHandler2(String event) {\n handler2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // both subscribers should receive all items\n assertThat(handler1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(handler2Received, is(asList(\"event 1\", \"event 2\")));\n }", "public void testEventAdditionalTypes() throws Exception\n {\n checkEventTypeRegistration(EVENT_TYPE_BUILDER,\n \"testTree -> MOUSE, testTree -> CHANGE\");\n }", "SimulationInspector expect(Consumer<GameState> expectation);", "public static boolean AnyFunctionTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnyFunctionTest\")) return false;\n if (!nextTokenIs(b, K_FUNCTION)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, ANY_FUNCTION_TEST, null);\n r = consumeTokens(b, 3, K_FUNCTION, L_PAR, STAR_SIGN, R_PAR);\n p = r; // pin = 3\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public void verifyText( VerifyEvent e )\n {\n if ( !filterCombo.getText().equals( e.text ) && e.character == 0 && e.start == e.end )\n {\n filterCPA.closeProposalPopup();\n }\n\n // or with ctrl+v / command+v\n if ( !filterCombo.getText().equals( e.text ) && e.stateMask == SWT.MOD1 && e.start == e.end )\n {\n filterCPA.closeProposalPopup();\n }\n }", "public void testHandleActionEvent_SimpleActionEvent_Accuracy()\n throws Exception {\n setUpEventManager();\n\n ActionEvent actionEvent = new ActionEvent(undoableAction1, new String());\n // Handle the event, actionEventListener1 and actionEventListener2 should be notified\n eventManager.handleActionEvent(actionEvent);\n\n // The validation result is EventValidation.EVENT_MODIFIED\n Pair<EventObject, EventValidation> performRecord = new Pair<EventObject, EventValidation>(actionEvent,\n EventValidation.EVENT_MODIFIED);\n // actionEventListener1 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener1).getPerformedRecords().contains(performRecord));\n // actionEventListener2 should be notified\n assertTrue(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener2).getPerformedRecords().contains(performRecord));\n // actionEventListener3 should not be notified\n assertFalse(\"Test method for 'EventManager.handleActionEvent(ActionEvent)' failed.\",\n ((MockActionEventListener) actionEventListener3).getPerformedRecords().contains(performRecord));\n }", "private boolean match(String message) {\n\t\tfinal Regex pattern = pattern();\n\t\tfinal Match match = pattern.match(message);\n\t\tif(match.empty()) return false;\n\n\t\tfinal GCEvent event = createGCEventFrom(match, message);\n\t\tthis.queue.add(event);\n\t\treturn true;\n\t}", "protected boolean checkForMatch(NewEvent event) {\n\t\tevent.export(exporter);\n\t\treturn exporter.checkForMatch(pattern);\n\t}", "@Test\n public void testGetEmailFromUser() throws InterruptedException {\n Callback tstCallBackSuccess = new Callback() {\n @Override\n public void onSuccess(Map<String, Object> data, String message) {\n Assert.assertEquals(data.get(\"userID\"), \"En8fRBqxPiZ13HvOabUx7uOXN2T2\");\n }\n\n @Override\n public void onFailure(String error, MyError.ErrorCode errorCode) {\n // bad\n Assert.assertEquals(1,0);\n }\n };\n Utils utils = Utils.getInstance();\n utils.getUserFromEmail(\"wurkez@gmail.com\", tstCallBackSuccess);\n\n\n // now test email that is not in\n Callback tstCallBackFailure = new Callback() {\n @Override\n public void onSuccess(Map<String, Object> data, String message) {\n // this shouldnt happen\n Assert.assertEquals(1,0);\n }\n\n @Override\n public void onFailure(String error, MyError.ErrorCode errorCode) {\n Assert.assertEquals(errorCode, MyError.ErrorCode.NOT_FOUND);\n Assert.assertEquals(error, \"No Matching Email\");\n }\n };\n\n utils.getUserFromEmail(\"badEmail@lol.com\", tstCallBackFailure);\n\n\n Thread.sleep(2000);\n }", "public void testFocusListener() throws Exception\n {\n checkFormEventListener(FOCUS_BUILDER, \"FOCUS\");\n }", "private void\n\t invokeCallbacks( SoEvent e)\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t // Call all callback funcs interested in this event type\n\t for (int i = 0; i < cblist.getLength(); i++) {\n\t SoEventCallbackData data = (SoEventCallbackData ) cblist.operator_square_bracket(i);\n\t if (e.isOfType(data.eventType)) {\n\t data.func.run (data.userData, this);\n\t }\n\t }\n\t }", "@Test\n public void dispatchToBaseTypes() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<Object> objectHandlerReceived = new ArrayList<>();\n Object objectHandler = new Object() {\n @Subscriber\n public void onEvent(Object event) {\n objectHandlerReceived.add(event);\n }\n };\n\n final List<Comparable<?>> comparableHandlerReceived = new ArrayList<>();\n Object comparableHandler = new Object() {\n @Subscriber\n public void onEvent(Comparable<?> event) {\n comparableHandlerReceived.add(event);\n }\n };\n\n final List<CharSequence> charSequenceHandlerReceived = new ArrayList<>();\n Object charSequenceHandler = new Object() {\n @Subscriber\n public void onEvent(CharSequence event) {\n charSequenceHandlerReceived.add(event);\n }\n };\n\n final List<CharSequence> stringHandlerReceived = new ArrayList<>();\n Object stringHandler = new Object() {\n @Subscriber\n public void onEvent(String event) {\n stringHandlerReceived.add(event);\n }\n };\n eventBus.register(objectHandler);\n eventBus.register(charSequenceHandler);\n eventBus.register(stringHandler);\n eventBus.register(comparableHandler);\n\n eventBus.post(\"event 1\");\n assertThat(objectHandlerReceived, is(asList(\"event 1\")));\n assertThat(comparableHandlerReceived, is(asList(\"event 1\")));\n assertThat(charSequenceHandlerReceived, is(asList(\"event 1\")));\n assertThat(stringHandlerReceived, is(asList(\"event 1\")));\n\n eventBus.post(Integer.MAX_VALUE);\n assertThat(objectHandlerReceived, is(asList(\"event 1\", Integer.MAX_VALUE)));\n assertThat(comparableHandlerReceived, is(asList(\"event 1\", Integer.MAX_VALUE)));\n assertThat(charSequenceHandlerReceived, is(asList(\"event 1\")));\n assertThat(stringHandlerReceived, is(asList(\"event 1\")));\n }", "@Test\n public void test02SendEvents() throws Exception{\n Event event1 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event1.getId());\n Event event2 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event2.getId());\n Event event3 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event3.getId());\n Event event4 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event4.getId());\n Event event5 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event5.getId());\n Event event6 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event6.getId());\n Event event7 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event7.getId());\n Event event8 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event8.getId());\n Event event9 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event9.getId());\n delay(10);\n\n //yesterday events\n List<CallbackData> list = restService.findCallbackInstancesBy(event1.getId(), null, null, null, 0, 0);\n// assertEquals(5, list.size());\n assertEquals(4, list.size());\n list = restService.findCallbackInstancesBy(event2.getId(), null, null, null, 0, 0);\n assertEquals(1, list.size());\n list = restService.findCallbackInstancesBy(event3.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n //today\n list = restService.findCallbackInstancesBy(event4.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n list = restService.findCallbackInstancesBy(event5.getId(), null, null, null, 0, 0);\n assertEquals(1, list.size());\n list = restService.findCallbackInstancesBy(event6.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n //premise\n list = restService.findCallbackInstancesBy(event7.getId(), null, null, null, 0, 0);\n assertEquals(5, list.size());\n list = restService.findCallbackInstancesBy(event8.getId(), null, null, null, 0, 0);\n assertEquals(2, list.size());\n list = restService.findCallbackInstancesBy(event9.getId(), null, null, null, 0, 0);\n assertEquals(5, list.size());\n\n //Event status check\n EventEntity evt = eventRepo.eventById(Long.parseLong(event1.getId()));\n assertEquals(evt.getStatus(), Constants.EVENT_INSTANCE_STATUS_PROCESSED);\n assertEquals(evt.getId(), Long.parseLong(event1.getId()));\n\n }", "@Test\n public void testDistOverflowFront()\n {\n String sName = \"dist-overflow-front\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "@Test\n public void dispatchToMultipleObjects() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> object1Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object1Received.add(event);\n }\n };\n\n final List<String> object2Received = new ArrayList<>();\n Object object2 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // both subscribers should receive all items\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(asList(\"event 1\", \"event 2\")));\n }", "@Test\n public void whenPriceEventIsReceived_ThenItCanBeReadBackByVendorId() throws JsonProcessingException {\n Price bloomberg_AAPL = sendMessage(\"Bloomberg\", \"AAPL\");\n Price bloomberg_MSFT = sendMessage(\"Bloomberg\", \"MSFT\");\n Price reuters_AAPL = sendMessage(\"Reuters\", \"AAPL\");\n\n // then when we ask for prices submitted by `Bloomberg`\n // we expect to receive prices for `AAPL` and `MSFT`\n await().untilAsserted(() -> getByVendorId(\"Bloomberg\").isEqualTo(new Price[]{ bloomberg_MSFT, bloomberg_AAPL }));\n\n // when we ask for prices submitted by `Reuters`\n // then we expect to receive prices for `AAPL` only.\n await().untilAsserted(() -> getByVendorId(\"Reuters\").isEqualTo(new Price[] { reuters_AAPL }));\n }", "@Test\n public void dispatchToSingleObjectAndSubscriberMethods() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> object1Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object1Received.add(event);\n }\n };\n\n final List<Integer> object2Received = new ArrayList<>();\n Object object2 = new Object() {\n @Subscriber\n public void onIntEvent(Integer event) {\n object2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // only object1 should receive all items\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(emptyList()));\n\n eventBus.post(1);\n\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(asList(1)));\n\n }", "Object run(Callback<String> callback, String input);", "@Test\n public void testAddHandler() {\n System.out.println(\"addHandler\");\n String sa = \"testhandler\";\n SpineEbXmlHandler h = (EbXmlMessage m) -> {\n };\n instance.addHandler(sa, h);\n }", "private boolean isFileNameAndModuleAndCheckNameMatching(TreeWalkerAuditEvent event) {\n return event.getFileName() != null\n && (fileRegexp == null || fileRegexp.matcher(event.getFileName()).find())\n && event.getLocalizedMessage() != null\n && (moduleId == null || moduleId.equals(event.getModuleId()))\n && (checkRegexp == null || checkRegexp.matcher(event.getSourceName()).find());\n }", "@SmallTest\n @Test\n public void testReceiveMessage() {\n ArraySet<RtpHeaderExtension> extension = new ArraySet<>();\n extension.add(mParams.extension);\n mRtpTransport.onRtpHeaderExtensionsReceived(extension);\n\n verify(mCallback).onMessagesReceived(mMessagesCaptor.capture());\n Set<Communicator.Message> messages = mMessagesCaptor.getValue();\n assertEquals(1, messages.size());\n assertTrue(messages.contains(mParams.commMessage));\n }", "@Test\n public void asyncResultFiresListeners() {\n\n final AtomicBoolean shouldBeSet = new AtomicBoolean(false);\n\n AsyncResult<String> result = new AsyncResult<>(\"hey!\");\n result.addCallback(new ListenableFutureCallback<String>() {\n @Override\n public void onFailure(Throwable throwable) {\n fail(\"This should never happen\");\n }\n\n @Override\n public void onSuccess(String s) {\n shouldBeSet.set(true);\n }\n });\n\n assertTrue(shouldBeSet.get());\n }", "@Test\n public void testEventSourcingFromAsynchronousSubscribable() throws Exception {\n FunctionalReactives<Void> fr =\n FunctionalReactives.createAsync( //assume source happens in a different thread\n aSubscribableWillAsyncFireIntegerOneToFive() //a subscribable implementation\n )\n .filter(new Predicate<Integer>() {\n @Override\n public boolean apply(Integer input) {\n return input % 2 == 0; //filter out odd integers\n }\n })\n .forEach(println()); //print out reaction results each in a line\n\n fr.start(); //will trigger Subscribable.doSubscribe()\n fr.shutdown(); //will trigger Subscribable.unsubscribe() which in above case will await for all the integers scheduled\n\n //Reaction walk through:\n // Original source: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Filter events: ---> 2 ------> 4 ------> |\n // Print out results: -> \"2\\n\" ---> \"4\\n\" ---> |\n\n }", "@Test\n public void testCreateEvent () throws InterruptedException\n {\n onView(withId(R.id.event_name_add_event)).perform(typeText(eventName), ViewActions.closeSoftKeyboard());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n\n // Test for add event location\n onView(withId(R.id.event_location_add_event)).perform(typeText(eventLocation), ViewActions.closeSoftKeyboard());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for STATIC event\n onView(withId(R.id.type_of_event_add_event)).perform(click());\n onView(withText(\"STATIC\")).perform(click());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for event color\n onView(withId(R.id.color_dropdown_add_event)).perform(click());\n onView(withText(\"ORANGE\")).perform(click());\n // Wait function\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n\n // Test for event start time\n onView(withId(R.id.start_time_add_event)).perform(click());\n onView(isAssignableFrom(TimePicker.class)).perform(setTime(11, 30));\n // Wait function\n onView(withText(\"OK\")).perform(click());\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for event end time\n onView(withId(R.id.end_time_add_event)).perform(click());\n onView(isAssignableFrom(TimePicker.class)).perform(setTime(15, 30));\n // Wait function\n onView(withText(\"OK\")).perform(click());\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n // Test for event end date\n onView(withId(R.id.end_date_add_event)).perform(click());\n onView(isAssignableFrom(DatePicker.class)).perform(setDate(2016,03, 20));\n // Wait function\n onView(withText(\"OK\")).perform(click());\n synchronized (this) {\n Thread.sleep((long) 1000);\n }\n\n\n // Test for add event description\n onView(withId(R.id.notes_add_event)).perform(typeText(eventNotes), ViewActions.closeSoftKeyboard());\n // Wait function\n synchronized (this)\n {\n Thread.sleep((long) 1000);\n }\n\n // Test for floating button - finished creating event\n onView(withId(R.id.fab_finished_event)).perform(click());\n synchronized (this) {\n Thread.sleep((long) 10000);\n }\n }", "@Test\n public void testLocalBm()\n {\n generateEvents(\"local-bm\");\n checkEvents(false, true);\n\n }", "public interface PacketMatcher {\n public boolean matches(ChatPacket packet);\n\n /**\n * Simple matcher for basing selection on PacketType\n * \n * @author Aaron Rosenfeld <ar374@drexel.edu>\n * \n */\n public static class TypeMatcher implements PacketMatcher {\n private PacketType[] types;\n\n public TypeMatcher(PacketType... types) {\n this.types = types;\n }\n\n @Override\n public boolean matches(ChatPacket packet) {\n for (PacketType t : types) {\n if (packet.getType() == t) {\n return true;\n }\n }\n return false;\n }\n }\n}" ]
[ "0.6881982", "0.63808966", "0.558532", "0.5458978", "0.5428081", "0.5392336", "0.5391927", "0.53883505", "0.5350767", "0.5336626", "0.5311333", "0.53014714", "0.5274754", "0.52038676", "0.5092475", "0.5087881", "0.50730735", "0.50560606", "0.5040477", "0.5030911", "0.5011525", "0.50110483", "0.5009804", "0.5001958", "0.4999449", "0.49923095", "0.49818918", "0.4979526", "0.4949774", "0.48976293", "0.4887044", "0.4879128", "0.487724", "0.48655394", "0.48382115", "0.4827895", "0.48119545", "0.4798375", "0.47940513", "0.47913253", "0.4780382", "0.47595108", "0.47556806", "0.4754286", "0.47519228", "0.47416255", "0.4741132", "0.47395742", "0.47388956", "0.47253302", "0.47150955", "0.4708052", "0.47066873", "0.46987343", "0.46983352", "0.46982872", "0.469146", "0.46852672", "0.46822667", "0.46583492", "0.46541557", "0.4650034", "0.46435452", "0.4641442", "0.46408108", "0.46377754", "0.46303976", "0.46250677", "0.46233878", "0.46224672", "0.46124628", "0.46037638", "0.46036983", "0.46020725", "0.46017173", "0.4594249", "0.45896503", "0.45856437", "0.45800063", "0.4578225", "0.45745003", "0.45694157", "0.45669892", "0.45580223", "0.45565864", "0.45542493", "0.4552992", "0.45522672", "0.45492816", "0.4543156", "0.45385486", "0.4535024", "0.45349324", "0.45266342", "0.45246652", "0.45231107", "0.45195857", "0.45169985", "0.45161408", "0.4513347" ]
0.73838127
0
Use this factory method to create a new instance of this fragment using the provided parameters.
public static SecondFragment newInstance(String tag,String url) { SecondFragment fragment = new SecondFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, tag); args.putString(ARG_PARAM2, url); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View myView = inflater.inflate(R.layout.fragment_second, container, false); TextView myTextView = (TextView) myView.findViewById(R.id.textView2); //set the value of the TextView to include the position myTextView.setText(tag); WebView webView = (WebView) myView.findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // TODO Auto-generated method stub view.loadUrl(url); return true; } }); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(url); return myView; }
{ "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_qiugouxiaoxi, container, false);\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 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\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\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 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(getLayoutId(), container, false);\n init(view);\n return view;\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 = 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 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_star_wars_list, 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 container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, 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,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, 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, 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, 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,\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, @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_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, 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,\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,\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 }", "@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 }", "@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 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 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_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,\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, 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 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,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\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 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 }", "@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 }", "@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 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.6742135", "0.6726157", "0.6724717", "0.67012674", "0.66944426", "0.66910595", "0.66888237", "0.668751", "0.66790944", "0.667782", "0.66679764", "0.66676605", "0.6667572", "0.6663008", "0.66553324", "0.66510403", "0.6644715", "0.6641966", "0.6639501", "0.66363883", "0.6627364", "0.6622192", "0.6618751", "0.6611223", "0.6600102", "0.6595181", "0.6587446", "0.65868443", "0.657639", "0.65741396", "0.65721875", "0.6571437", "0.65713495", "0.65695465", "0.6567595", "0.6556657", "0.65551215", "0.65456784", "0.65455115", "0.6543597", "0.6539696", "0.653948", "0.6539478", "0.6536462", "0.6535526", "0.6534769", "0.65328157", "0.6531191", "0.652906", "0.65276444", "0.6527151", "0.65269464", "0.652667", "0.6526375", "0.65200573", "0.6515599", "0.65155053", "0.6514812", "0.6514735", "0.65131944", "0.6512836", "0.65126944", "0.65114963", "0.65105927", "0.65095776", "0.6505888", "0.6504343", "0.65039414", "0.65034544", "0.65000975", "0.64967483", "0.64948696", "0.64927816", "0.64897287", "0.6489382", "0.64893246", "0.64892757", "0.64892215", "0.6488534", "0.64878047", "0.6486509", "0.6484873", "0.64840233", "0.6483615", "0.64833665", "0.6483356", "0.64798534", "0.6479144", "0.64774823", "0.64773023", "0.64770895", "0.64739656", "0.6472902", "0.64724356", "0.6471918", "0.64701986", "0.64690036", "0.64649165", "0.6464325", "0.6464025", "0.64638734" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; }
{ "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
scan the file for the xmlns entry
private String readSpaceNameFromFile(File file) throws IOException { String space = null; BufferedReader br = new BufferedReader(new FileReader(file)); String buffer; while ((buffer = br.readLine()) != null) { int startIndex = buffer.indexOf("xmlns="); if (startIndex > -1) { int endIndex = buffer.indexOf('"', startIndex + 7); if (endIndex != -1) { space = buffer.substring(startIndex + 7, endIndex); break; } else { System.err .println("ODF file format is corrupted: xmlns entry has no ending quote sign"); return null; } } } br.close(); return space; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleNamespaceDeclaration() throws IOException {\r\n if (this.tempMapping != null) {\r\n PrefixMapping pm = null;\r\n for (int i = 0; i < tempMapping.size(); i++) {\r\n pm = (PrefixMapping)tempMapping.get(i);\r\n this.writer.write(\" xmlns\");\r\n // specify a prefix if different from \"\"\r\n if (!\"\".equals(pm.prefix)) {\r\n this.writer.write(':');\r\n this.writer.write(pm.prefix);\r\n }\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(pm.uri);\r\n this.writer.write(\"\\\"\");\r\n }\r\n this.tempMapping = null;\r\n }\r\n }", "private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}", "private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}", "private String updateNamespaces(final net.simpleframework.lib.org.jsoup.nodes.Element el) {\n\t\t\t// scan the element for namespace declarations\n\t\t\t// like: xmlns=\"blah\" or xmlns:prefix=\"blah\"\n\t\t\tfinal Attributes attributes = el.attributes();\n\t\t\tfor (final Attribute attr : attributes) {\n\t\t\t\tfinal String key = attr.getKey();\n\t\t\t\tString prefix;\n\t\t\t\tif (key.equals(xmlnsKey)) {\n\t\t\t\t\tprefix = \"\";\n\t\t\t\t} else if (key.startsWith(xmlnsPrefix)) {\n\t\t\t\t\tprefix = key.substring(xmlnsPrefix.length());\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnamespacesStack.peek().put(prefix, attr.getValue());\n\t\t\t}\n\n\t\t\t// get the element prefix if any\n\t\t\tfinal int pos = el.tagName().indexOf(\":\");\n\t\t\treturn pos > 0 ? el.tagName().substring(0, pos) : \"\";\n\t\t}", "private static void staxReader(File file) throws XMLStreamException, FileNotFoundException, FactoryConfigurationError, IOException {\n\n FileInputStream fis = new FileInputStream(file);\n Page[] ns0pages = StaxPageParser.pagesFromFile(fis);\n\n// reporter(ns0pages);\n }", "public void start_ns(Object parser, String prefix, String uri) {\n Array.array_push(this.ns_decls, new Array<Object>(new ArrayEntry<Object>(prefix), new ArrayEntry<Object>(uri)));\r\n }", "org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();", "public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}", "public void setXmlns(String xmlns)\r\n\t{\r\n\t\tthis.xmlns = xmlns;\r\n\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public boolean isNamespaceAware () {\n return true;\n }", "private void emitNS(Namespace namespace) throws SAXException {\n if (namespace.getPrefix() == null || \n namespace.getNamespaceURI() == null) return;\n handler.startPrefixMapping(namespace.getPrefix(), namespace.getNamespaceURI());\n }", "private String getNamespace(String qname) {\n StringTokenizer tok = new StringTokenizer(qname, \":\");\n String prefix;\n\n if (tok.countTokens() == 1) {\n return \"\";\n }\n prefix = tok.nextToken();\n\n NamedNodeMap map = mDoc.getDocumentElement().getAttributes();\n for (int j = 0; j < map.getLength(); j++) {\n Node n = map.item(j);\n\n if (n.getLocalName().trim().equals(prefix.trim())) {\n return n.getNodeValue();\n }\n }\n\n return \"\";\n }", "@Override\r\n\tpublic List<String> getXMLNamespaces() {\n\t\treturn null;\r\n\t}", "private static void writePrefixes(XMLStreamWriter w) throws XMLStreamException {\n\t\tw.writeNamespace(\"adms\", \"http://www.w3.org/ns/adms#\");\n\t\tw.writeNamespace(DCAT.PREFIX, DCAT.NAMESPACE);\n\t\tw.writeNamespace(\"dct\", DCTERMS.NAMESPACE);\n\t\tw.writeNamespace(FOAF.PREFIX, FOAF.NAMESPACE);\n\t\tw.writeNamespace(\"geo\", GEO.NAMESPACE);\n\t\tw.writeNamespace(OWL.PREFIX, OWL.NAMESPACE);\n\t\tw.writeNamespace(RDF.PREFIX, RDF.NAMESPACE);\n\t\tw.writeNamespace(RDFS.PREFIX, RDFS.NAMESPACE);\n\t\tw.writeNamespace(SKOS.PREFIX, SKOS.NAMESPACE);\n\t\tw.writeNamespace(VCARD4.PREFIX, VCARD4.NAMESPACE);\n\t\tw.writeNamespace(XSD.PREFIX, XSD.NAMESPACE);\n\t}", "private boolean isNamespace(int start, int end) {\n int i;\n int nsLen = end - start;\n int offset = tokenStart - start;\n int tokenLen = tokenEnd - tokenStart;\n\n if (tokenLen < nsLen) {\n return false;\n }\n\n for (i = start; i < end; i++) {\n if (data.charAt(i) != data.charAt(i + offset)) {\n return false;\n }\n }\n\n if (nsLen == tokenLen) {\n return true;\n }\n return data.charAt(i + offset) == '.';\n }", "@Override\n\tpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n\t\ttry {\n\t\t\tif (!startTagIsClosed) {\n\t\t\t\twrite(\">\");\n\t\t\t}\n\t\t\telementLevel++;\n\t\t\t// nsSupport.pushContext();\n\n\t\t\twrite('<');\n\t\t\twrite(qName);\n\t\t\twriteAttributes(atts);\n\n\t\t\t// declare namespaces specified by the startPrefixMapping methods\n\t\t\tif (!locallyDeclaredPrefix.isEmpty()) {\n\t\t\t\tfor (Map.Entry<String, String> e : locallyDeclaredPrefix.entrySet()) {\n\t\t\t\t\tString p = e.getKey();\n\t\t\t\t\tString u = e.getValue();\n\t\t\t\t\tif (u == null) {\n\t\t\t\t\t\tu = \"\";\n\t\t\t\t\t}\n\t\t\t\t\twrite(' ');\n\t\t\t\t\tif (\"\".equals(p)) {\n\t\t\t\t\t\twrite(\"xmlns=\\\"\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\twrite(\"xmlns:\");\n\t\t\t\t\t\twrite(p);\n\t\t\t\t\t\twrite(\"=\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tchar ch[] = u.toCharArray();\n\t\t\t\t\twriteEsc(ch, 0, ch.length, true);\n\t\t\t\t\twrite('\\\"');\n\t\t\t\t}\n\t\t\t\tlocallyDeclaredPrefix.clear(); // clear the contents\n\t\t\t}\n\n\t\t\t// if (elementLevel == 1) {\n\t\t\t// forceNSDecls();\n\t\t\t// }\n\t\t\t// writeNSDecls();\n\t\t\tsuper.startElement(uri, localName, qName, atts);\n\t\t\tstartTagIsClosed = false;\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}", "public static GetFilesFromUserResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n GetFilesFromUserResponse object =\r\n new GetFilesFromUserResponse();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"getFilesFromUserResponse\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetFilesFromUserResponse)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n java.util.ArrayList list1 = new java.util.ArrayList();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry\",\"return\").equals(reader.getName())){\r\n \r\n \r\n \r\n // Process the array and step past its final element's end.\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n list1.add(null);\r\n \r\n reader.next();\r\n } else {\r\n list1.add(reader.getElementText());\r\n }\r\n //loop until we find a start element that is not part of this array\r\n boolean loopDone1 = false;\r\n while(!loopDone1){\r\n // Ensure we are at the EndElement\r\n while (!reader.isEndElement()){\r\n reader.next();\r\n }\r\n // Step out of this element\r\n reader.next();\r\n // Step to next element event.\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n if (reader.isEndElement()){\r\n //two continuous end elements means we are exiting the xml structure\r\n loopDone1 = true;\r\n } else {\r\n if (new javax.xml.namespace.QName(\"http://registry\",\"return\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n list1.add(null);\r\n \r\n reader.next();\r\n } else {\r\n list1.add(reader.getElementText());\r\n }\r\n }else{\r\n loopDone1 = true;\r\n }\r\n }\r\n }\r\n // call the converter utility to convert and set the array\r\n \r\n object.set_return((java.lang.String[])\r\n list1.toArray(new java.lang.String[list1.size()]));\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "@Override\n public String getNamespaceURI(String prefix) {\n return MARC21_PREFIX;\n }", "private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }", "public String getBaseNamespace() {\n/* 454 */ return \"http://www.w3.org/2000/09/xmldsig#\";\n/* */ }", "@Override\n\tpublic void startElement(String namespaceURI, String localName,\n\t\t\tString qName, Attributes atts) throws SAXException {\n\n\t\tif (localName.equals(\"Document\")) {\n\t\t\tthis.in_documenttag = true;\n\t\t} else if (localName.equals(\"Placemark\")) {\n\t\t\tthis.in_placemarktag = true;\n\t\t\tif ( atts.getLength() > 0 && null != atts.getValue(\"id\") ) {\n\t\t\t\tdpm.setId( atts.getValue(\"id\") );\n\t\t\t}\n\t\t} else if (localName.equals(\"Folder\")) {\n\t\t\tif (this.in_foldertag) {\n\t\t\t\t// put the previous folder on the stack - hopefully it has a frickin name already!\n\t\t\t\tfolderStack.add(folderStack.size(), folder);\n\t\t\t\tfolder = new Folder(); // takes place of outer/trail folder\n\t\t\t}\n\t\t\tthis.in_foldertag = true;\n\t\t} else if (localName.equals(\"description\")) {\n\t\t\tthis.in_descriptiontag = true;\n\t\t} else if (localName.equals(\"name\")) {\n\t\t\tif (in_placemarktag) {\n\t\t\t\tthis.in_placemarknametag = true;\n\t\t\t} else if (in_foldertag) {\n\t\t\t\tthis.in_foldernametag = true;\n\t\t\t} else if (in_documenttag) {\n\t\t\t\tthis.in_documentnametag = true;\n\t\t\t}\n\t\t} else if (localName.equals(\"coordinates\")) {\n\t\t\tthis.in_coordinatestag = true;\n\t\t} else if (localName.equals(\"Address\")) {\n\t\t\tthis.in_addresstag = true;\n\t\t} else {\n\n\t\t}\n\t}", "java.lang.String getNamespace();", "String getAttributeNamespaceUri(Object attr);", "public String getFeedNamespacePrefix(String namespace);", "private void parseWSCServiceFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n \tFile fXmlFile = new File(fileName);\n \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n \tDocument doc = dBuilder.parse(fXmlFile);\n\n \tNodeList nList = doc.getElementsByTagName(\"service\");\n\n \tfor (int i = 0; i < nList.getLength(); i++) {\n \t\torg.w3c.dom.Node nNode = nList.item(i);\n \t\tElement eElement = (Element) nNode;\n\n \t\tString name = eElement.getAttribute(\"name\");\n\t\t\t\tqos[TIME] = Double.valueOf(eElement.getAttribute(\"Res\"));\n\t\t\t\tqos[COST] = Double.valueOf(eElement.getAttribute(\"Pri\"));\n\t\t\t\tqos[AVAILABILITY] = Double.valueOf(eElement.getAttribute(\"Ava\"));\n\t\t\t\tqos[RELIABILITY] = Double.valueOf(eElement.getAttribute(\"Rel\"));\n\n\t\t\t\t// Get inputs\n\t\t\t\torg.w3c.dom.Node inputNode = eElement.getElementsByTagName(\"inputs\").item(0);\n\t\t\t\tNodeList inputNodes = ((Element)inputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < inputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node in = inputNodes.item(j);\n\t\t\t\t\tElement e = (Element) in;\n\t\t\t\t\tinputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n\t\t\t\t// Get outputs\n\t\t\t\torg.w3c.dom.Node outputNode = eElement.getElementsByTagName(\"outputs\").item(0);\n\t\t\t\tNodeList outputNodes = ((Element)outputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < outputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node out = outputNodes.item(j);\n\t\t\t\t\tElement e = (Element) out;\n\t\t\t\t\toutputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n \t}\n \t\tnumServices = serviceMap.size();\n }\n catch(IOException ioe) {\n System.out.println(\"Service file parsing failed...\");\n }\n catch (ParserConfigurationException e) {\n System.out.println(\"Service file parsing failed...\");\n\t\t}\n catch (SAXException e) {\n System.out.println(\"Service file parsing failed...\");\n\t\t}\n\t\tnumServices = serviceMap.size();\n }", "abstract XML addNamespace(Namespace ns);", "GetPrefix fileContent();", "@Override\r\n\t\tpublic String lookupNamespaceURI(String prefix)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }", "public void read_uwmetadata(String filePath, String panelname) throws Exception {\r\n try {\r\n File xmlFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n dbFactory.setNamespaceAware(true);\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(xmlFile);\r\n\r\n NamespaceContextImpl nsContext = new NamespaceContextImpl();\r\n nsContext.startPrefixMapping(\"phaidra0\", \"http://phaidra.univie.ac.at/XML/metadata/V1.0\");\r\n\r\n int count = 1;\r\n //Add namespaces in XML Root\r\n for (Map.Entry<String, String> field : metadata_namespaces.entrySet()) {\r\n nsContext.startPrefixMapping(\"phaidra\" + count, field.getValue().toString());\r\n count++;\r\n }\r\n \r\n this.read_uwmetadata_recursive(BookImporter.getInstance().getMetadata(), \"//phaidra0:uwmetadata\", nsContext, doc, panelname);\r\n } catch (Exception ex) {\r\n ResourceBundle ex_bundle = ResourceBundle.getBundle(Globals.RESOURCES, Globals.CURRENT_LOCALE, Globals.loader);\r\n throw new Exception(Utility.getBundleString(\"error22\",ex_bundle) + \": \" + ex.getMessage());\r\n }\r\n }", "public void startContent() throws XPathException {\r\n nextReceiver.startElement(elementNameCode, elementProperties);\r\n\r\n final int length = bufferedAttributes.getLength();\r\n for (int i=0; i<length; i++) {\r\n nextReceiver.attribute(bufferedAttributes.getNameCode(i),\r\n bufferedAttributes.getValue(i)\r\n );\r\n }\r\n for (NamespaceBinding nb : bufferedNamespaces) {\r\n nextReceiver.namespace(nb, 0);\r\n }\r\n\r\n nextReceiver.startContent();\r\n }", "public XmlPullParser getLocalXML(String filename) throws IOException {\r\n\t\ttry {\r\n\t\t\tin = mContext.getAssets().open(filename);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tXmlPullParser parser = Xml.newPullParser();\r\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\r\n\t\t\tparser.setInput(in, null);\r\n\t\t\tparser.nextTag();\r\n\t\t\treturn parser;\r\n\t\t} catch (XmlPullParserException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "@Test\r\n public void testGroupNamespaceAny() throws Exception {\r\n BeanReader in = factory.createReader(\"stream5\", new InputStreamReader(\r\n getClass().getResourceAsStream(\"ns1_in.xml\")));\r\n \r\n StringWriter s = new StringWriter();\r\n BeanWriter out = factory.createWriter(\"stream5\", s);\r\n try {\r\n Person person = (Person) in.read();\r\n assertEquals(\"John\", person.getFirstName());\r\n \r\n out.write(person);\r\n out.close();\r\n \r\n assertEquals(load(\"ns5_out.xml\"), s.toString());\r\n }\r\n finally {\r\n in.close();\r\n }\r\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private void parseWSCTaskFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\n\t\t\torg.w3c.dom.Node provided = doc.getElementsByTagName(\"provided\").item(0);\n\t\t\tNodeList providedList = ((Element) provided).getElementsByTagName(\"instance\");\n\t\t\ttaskInput = new HashSet<String>();\n\t\t\tfor (int i = 0; i < providedList.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node item = providedList.item(i);\n\t\t\t\tElement e = (Element) item;\n\t\t\t\ttaskInput.add(e.getAttribute(\"name\"));\n\t\t\t}\n\n\t\t\torg.w3c.dom.Node wanted = doc.getElementsByTagName(\"wanted\").item(0);\n\t\t\tNodeList wantedList = ((Element) wanted).getElementsByTagName(\"instance\");\n\t\t\ttaskOutput = new HashSet<String>();\n\t\t\tfor (int i = 0; i < wantedList.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node item = wantedList.item(i);\n\t\t\t\tElement e = (Element) item;\n\t\t\t\ttaskOutput.add(e.getAttribute(\"name\"));\n\t\t\t}\n\t\t}\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.out.println(\"Task file parsing failed...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.out.println(\"Task file parsing failed...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Task file parsing failed...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\t\tpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }", "public void parse(InputStream in) throws XmlPullParserException, IOException {\n try {\n XmlPullParser parser = Xml.newPullParser();\n\n parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n parser.setInput(in, null);\n readFeed(parser);\n\n } finally {\n in.close();\n }\n }", "public final boolean isNamespaceAware() {\n return true;\n }", "public static AddFilesToUser parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n AddFilesToUser object =\r\n new AddFilesToUser();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"addFilesToUser\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (AddFilesToUser)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n java.util.ArrayList list2 = new java.util.ArrayList();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry\",\"user\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setUser(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n \r\n } else {\r\n \r\n \r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry\",\"newFiles\").equals(reader.getName())){\r\n \r\n \r\n \r\n // Process the array and step past its final element's end.\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n list2.add(null);\r\n \r\n reader.next();\r\n } else {\r\n list2.add(reader.getElementText());\r\n }\r\n //loop until we find a start element that is not part of this array\r\n boolean loopDone2 = false;\r\n while(!loopDone2){\r\n // Ensure we are at the EndElement\r\n while (!reader.isEndElement()){\r\n reader.next();\r\n }\r\n // Step out of this element\r\n reader.next();\r\n // Step to next element event.\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n if (reader.isEndElement()){\r\n //two continuous end elements means we are exiting the xml structure\r\n loopDone2 = true;\r\n } else {\r\n if (new javax.xml.namespace.QName(\"http://registry\",\"newFiles\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n list2.add(null);\r\n \r\n reader.next();\r\n } else {\r\n list2.add(reader.getElementText());\r\n }\r\n }else{\r\n loopDone2 = true;\r\n }\r\n }\r\n }\r\n // call the converter utility to convert and set the array\r\n \r\n object.setNewFiles((java.lang.String[])\r\n list2.toArray(new java.lang.String[list2.size()]));\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "public static GetServerVersion parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetServerVersion object =\n new GetServerVersion();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getServerVersion\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetServerVersion)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"unused\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setUnused(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setUnused(VersionVO.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private void parseWSCTaskFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\n\t \torg.w3c.dom.Node provided = doc.getElementsByTagName(\"provided\").item(0);\n\t \tNodeList providedList = ((Element) provided).getElementsByTagName(\"instance\");\n\t \tINPUT = new String[providedList.getLength()];\n\t \tfor (int i = 0; i < providedList.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node item = providedList.item(i);\n\t\t\t\tElement e = (Element) item;\n\t\t\t\tINPUT[i] = e.getAttribute(\"name\");\n\t \t}\n\n\t \torg.w3c.dom.Node wanted = doc.getElementsByTagName(\"wanted\").item(0);\n\t \tNodeList wantedList = ((Element) wanted).getElementsByTagName(\"instance\");\n\t \tOUTPUT = new String[wantedList.getLength()];\n\t \tfor (int i = 0; i < wantedList.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node item = wantedList.item(i);\n\t\t\t\tElement e = (Element) item;\n\t\t\t\tOUTPUT[i] = e.getAttribute(\"name\");\n\t \t}\n\n\t\t\tavailableInputs = new HashSet<String>(Arrays.asList(INPUT));\n\t\t\trequiredOutputs = new HashSet<String>(Arrays.asList(OUTPUT));\n\t\t}\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Task file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Task file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Task file parsing failed...\");\n\t\t}\n\t}", "public static GetDirectSrvInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectSrvInfo object =\n new GetDirectSrvInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectSrvInfo\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectSrvInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetFilesFromUser parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n GetFilesFromUser object =\r\n new GetFilesFromUser();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"getFilesFromUser\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetFilesFromUser)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry\",\"user\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setUser(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n \r\n } else {\r\n \r\n \r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "@Override\n public String getNamespaceURI(String prefix)\n {\n if (prefix == null) {\n throw new IllegalArgumentException(\"Illegal to pass null prefix\");\n }\n for (int i = 0, len = _namespaces.size(); i < len; ++i) {\n Namespace ns = _namespaces.get(i);\n if (prefix.equals(ns.getPrefix())) {\n return ns.getNamespaceURI();\n }\n }\n // Not found; how about from parent?\n if (_parentCtxt != null) {\n String uri = _parentCtxt.getNamespaceURI(prefix);\n if (uri != null) {\n return uri;\n }\n }\n if (prefix.equals(XMLConstants.XML_NS_PREFIX)) {\n return XMLConstants.XML_NS_URI;\n }\n if (prefix.equals(XMLConstants.XMLNS_ATTRIBUTE)) {\n return XMLConstants.XMLNS_ATTRIBUTE_NS_URI;\n }\n return null;\n }", "private void parseNodes() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n NodeList nodeNodesList = root.getElementsByTagName(\"node\");\n NodeXML tmp;\n for(int i=0; i<nodeNodesList.getLength(); i++){\n tmp = getNode((Element) nodeNodesList.item(i));\n mapForAccess.put(tmp.hostname,tmp);\n if(tmp.isMaster) {\n master = tmp;\n }\n else {\n slaves.add(tmp);\n }\n }\n }", "protected abstract void defineNamespace(int index, String prefix)\n throws IOException;", "int getNamespaceUri();", "public static GetDirectSrvInfoResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectSrvInfoResponse object =\n new GetDirectSrvInfoResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectSrvInfoResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectSrvInfoResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDirectSrvInfoReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDirectSrvInfoReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDirectSrvInfoReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\r\n public void endPrefixMapping(String prefix) throws SAXException {\n }", "private String updateConcordionNamespacePrefix(Element html, String stylesheetContent) {\n for (int i=0; i<html.getNamespaceDeclarationCount(); i++) {\n String prefix = html.getNamespacePrefix(i);\n if (ConcordionBuilder.NAMESPACE_CONCORDION_2007.equals(html.getNamespaceURI(prefix))) {\n return stylesheetContent.replace(\"concordion\\\\:\", prefix + \"\\\\:\");\n }\n }\n return stylesheetContent;\n }", "private void parseWSCServiceFile(String fileName) {\n\t\tSet<String> inputs = new HashSet<String>();\n\t\tSet<String> outputs = new HashSet<String>();\n\t\tdouble[] qos = new double[4];\n\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\n\t\t\tNodeList nList = doc.getElementsByTagName(\"service\");\n\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node nNode = nList.item(i);\n\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\tString name = eElement.getAttribute(\"name\");\n\t\t\t\tif (!runningOwls) {\n\t\t\t\t\tqos[TIME] = Double.valueOf(eElement.getAttribute(\"Res\"));\n\t\t\t\t\tqos[COST] = Double.valueOf(eElement.getAttribute(\"Pri\"));\n\t\t\t\t\tqos[AVAILABILITY] = Double.valueOf(eElement.getAttribute(\"Ava\"));\n\t\t\t\t\tqos[RELIABILITY] = Double.valueOf(eElement.getAttribute(\"Rel\"));\n\t\t\t\t}\n\n\t\t\t\t// Get inputs\n\t\t\t\torg.w3c.dom.Node inputNode = eElement.getElementsByTagName(\"inputs\").item(0);\n\t\t\t\tNodeList inputNodes = ((Element)inputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < inputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node in = inputNodes.item(j);\n\t\t\t\t\tElement e = (Element) in;\n\t\t\t\t\tinputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n\t\t\t\t// Get outputs\n\t\t\t\torg.w3c.dom.Node outputNode = eElement.getElementsByTagName(\"outputs\").item(0);\n\t\t\t\tNodeList outputNodes = ((Element)outputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < outputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node out = outputNodes.item(j);\n\t\t\t\t\tElement e = (Element) out;\n\t\t\t\t\toutputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n\t\t\t\tNode ws = new Node(name, qos, inputs, outputs);\n\t\t\t\tserviceMap.put(name, ws);\n\t\t\t\tinputs = new HashSet<String>();\n\t\t\t\toutputs = new HashSet<String>();\n\t\t\t\tqos = new double[4];\n\t\t\t}\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\tSystem.out.println(\"Service file parsing failed...\");\n\t\t}\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.out.println(\"Service file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.out.println(\"Service file parsing failed...\");\n\t\t}\n\t}", "private void checkXMLDeclaration(URL url) throws URISyntaxException, XMLStreamException, IOException, CatalogExceptionNotRecoverable {\t\t\n\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance(); \n inputFactory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.TRUE); \n inputFactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE); \n inputFactory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.TRUE);\n inputFactory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, Boolean.TRUE);\n inputFactory.setXMLResolver(new StaxEntityResolver(CatalogEntityResolver.getInstance()));\n inputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.FALSE);\n \n // Collect encoding declarations\n \n InputStream is = null;\n XMLEventReader reader = null;\n try {\n\t is = url.openStream();\n\t reader = inputFactory.createXMLEventReader(is);\n\t String xmlDeclarationEncoding = null;\n\t \n\t while (reader.hasNext()) {\n\t \tXMLEvent event = reader.nextEvent();\n\t \t\n\t \tif (event.isStartDocument()) {\n\t \t\tStartDocument sd = (StartDocument)event;\n\t \t\t\n\t \t\t// XML version\n\t \t\tif (mXmlVersion != null) {\n\t \t\t\tif (!mXmlVersion.equals(sd.getVersion())) {\n\t \t\t\t\tthis.report(new ValidatorErrorMessage(url.toURI(), \"Incorrect XML version. Found '\" + sd.getVersion() + \"', expected '\" + mXmlVersion + \"'.\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t\t}\n\t \t\t}\n\t \t\t\n\t \t\t// XML encoding\n\t \t\tif (sd.encodingSet()) {\n\t \t\t\t\tif (!mXmlEncodingMayBeSpecified) {\n\t \t\t\t\tthis.report(new ValidatorWarningMessage(url.toURI(), \"Encoding may not be specified in the XML declaration.\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t\t}\n\t \t\t\txmlDeclarationEncoding = sd.getCharacterEncodingScheme(); \t\t\t\n\t \t\t} else {\n\t \t\t\tif (mXmlEncodingMustBeSpecified) {\n\t \t\t\t\tthis.report(new ValidatorWarningMessage(url.toURI(), \"Encoding must be specified in the XML declaration. Assuming utf-8.\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t\t}\n\t \t\t\txmlDeclarationEncoding = \"utf-8\"; \t\t\t \t\t\t\n\t \t\t}\n\t \t\tif (mXmlEncoding != null) { \t\t\t\n\t \t\t\tif (!mXmlEncoding.equalsIgnoreCase(xmlDeclarationEncoding)) {\n\t \t\t\tthis.report(new ValidatorErrorMessage(url.toURI(), xmlDeclarationEncoding + \" encoding found when \" + mXmlEncoding + \" was expected.\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t}\n\t \t\t}\n\t \t\t\n\t \t\t// XML standalone\n\t \t\tif (sd.standaloneSet()) {\n\t \t\t\t\tif (!mXmlStandaloneMayBeSpecified) {\n\t \t\t\t\t\tthis.report(new ValidatorWarningMessage(url.toURI(), \"The standalone property may not be specified in the XML declaration.\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t\t\t}\n\t \t\t\t} else {\n\t \t\t\t\tif (mXmlStandaloneMustBeSpecified) {\n\t \t\t\t\t\tthis.report(new ValidatorWarningMessage(url.toURI(), \"The standalone property is not specified in the XML declaration. Assuming 'no'.\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\tif (mXmlStandalone != null) { \t\t\t\n\t \t\t\tif (sd.isStandalone() != mXmlStandalone.booleanValue()) {\n\t \t\t\t\tthis.report(new ValidatorErrorMessage(url.toURI(), \"Incorrect value of standalone property in the XML declaration\", sd.getLocation().getLineNumber(), sd.getLocation().getColumnNumber()));\n\t \t\t\t}\n\t \t\t} \t\t\n\t \t\t\n\t \t\tbreak;\n\t \t} \n\t }\n } finally {\n \tif (reader != null) {\n \t\treader.close();\n \t}\n \tif (is != null) {\n \t\tis.close();\n \t}\n } \n\t}", "protected void startNode(String nodeName, Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n setNodeAttributes(entry);\r\n super.contentHandler.startElement(URI, nodeName, PREFIX + ':' + nodeName, attributes);\r\n }", "@Override\n\t\tpublic void endPrefixMapping(String prefix) throws SAXException {\n\t\t\t\n\t\t}", "String getNamespace();", "String getNamespace();", "String getNamespace();", "@Override\r\n\t\tpublic String lookupPrefix(String namespaceURI)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void printElementNamespace(Element element, Writer out,\r\n NamespaceStack namespaces)\r\n throws IOException {\n Namespace ns = element.getNamespace();\r\n if (ns == Namespace.XML_NAMESPACE) {\r\n return;\r\n }\r\n if ( !((ns == Namespace.NO_NAMESPACE) &&\r\n (namespaces.getURI(\"\") == null))) {\r\n printNamespace(ns, out, namespaces);\r\n }\r\n }", "@Override\r\n\tpublic String[] getNamespacePrefixes() throws RepositoryException {\n\t\treturn null;\r\n\t}", "public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }", "public void scannerOfNamespaces(String url) {\n searchNamespaces(ScannerUtils.getContent(ScannerUtils.getText(url)));\n }", "private String getPropertyDeclarationInNamespaces(XMPSchema schema,\n\t\t\tQName prop) throws XmpParsingException {\n\n\t\tIterator<Attribute> it = schema.getAllAttributes().iterator();\n\t\tAttribute tmp;\n\t\tArrayList<Attribute> list = new ArrayList<Attribute>();\n\t\twhile (it.hasNext()) {\n\t\t\ttmp = it.next();\n\t\t\tif (tmp.getPrefix() != null) {\n\t\t\t\tif (tmp.getPrefix().equals(\"xmlns\")) {\n\t\t\t\t\tlist.add(tmp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tit = list.iterator();\n\t\tString type;\n\t\tStringBuffer unknownNS = new StringBuffer();\n\t\twhile (it.hasNext()) {\n\t\t\tString namespace = it.next().getValue();\n\t\t\tif (!nsMap.isContainedNamespace(namespace)) {\n\t\t\t\tunknownNS.append(\" '\").append(namespace).append(\"' \");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttype = nsMap.getSpecifiedPropertyType(namespace, prop);\n\t\t\tif (type != null) {\n\t\t\t\treturn type;\n\t\t\t}\n\t\t}\n\t\tString uns = unknownNS.toString().trim();\n\t\tif ((uns == null) || \"\".equals(uns)) {\n\t\t\tthrow new XmpUnknownPropertyException(\n\t\t\t\t\t\"Cannot find a description for '\" + prop.getLocalPart()\n\t\t\t\t\t+ \"' property\");\n\t\t} else {\n\t\t\tthrow new XmpUnknownSchemaException(\n\t\t\t\t\t\"Cannot find a definition for the namespace \" + uns + \" \");\n\t\t}\n\n\t}", "public FindNamespaceVisitor(Document root) {\n this.root = root;\n }", "@Override\n public void startDocument() throws SAXException {\n System.out.println(\"Start parsing document...\");\n nameList = new ArrayList<String>();\n }", "String getReferenceNamespace();", "@Override\n\tpublic void endPrefixMapping(String prefix) throws SAXException {\n\t\t\n\t}", "@Override\n\tpublic void endPrefixMapping(String prefix) throws SAXException {\n\t\t\n\t}", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "@Test\r\n public void testAnyRootNamespace() throws Exception {\r\n BeanReader in = factory.createReader(\"stream1\", new InputStreamReader(\r\n getClass().getResourceAsStream(\"ns1_in.xml\")));\r\n \r\n StringWriter s = new StringWriter();\r\n BeanWriter out = factory.createWriter(\"stream1\", s);\r\n try {\r\n Person person = (Person) in.read();\r\n assertEquals(\"John\", person.getFirstName());\r\n \r\n out.write(person);\r\n out.close();\r\n \r\n assertEquals(load(\"ns1_out.xml\"), s.toString());\r\n }\r\n finally {\r\n in.close();\r\n }\r\n }", "public String getNamespace();", "public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}", "@Test\r\n public void testNamespacePrefixRecord() throws Exception {\r\n StringWriter s = new StringWriter();\r\n BeanWriter out = factory.createWriter(\"stream6\", s);\r\n \r\n Person person = new Person();\r\n person.setFirstName(\"John\");\r\n out.write(person);\r\n \r\n person.setFirstName(\"David\");\r\n out.write(person);\r\n out.close();\r\n \r\n assertEquals(load(\"ns6_out.xml\"), s.toString());\r\n }", "@Override\r\n\tpublic void scanFile(File f) {\n\t\tif(f.getName().endsWith(\".csv\")) {\r\n\t\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.METADATA));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(f.getName().endsWith(\".pld\")) {\r\n\t\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.EXE_TABLE));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif(docBuilder == null) docBuilder = new DocumentBuilderFactoryImpl().newDocumentBuilder();\r\n\t\t\tDocument doc = docBuilder.parse(f);\r\n\t\r\n\t\t\tNodeList nl = doc.getElementsByTagName(\"payload:DataType\");\r\n\t\t\tString type = nl.item(0).getTextContent();\r\n\t\r\n\t\t\t if(type.equals(\"IP Configuration\"))\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.IP_CONFIG));\r\n\t\t\telse if(type.equals(\"ARP Configuration\"))\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.ARP_CONFIG));\r\n\t\t\telse if(type.equals(\"Network Mapping\"))\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.NETMAP));\r\n\t\t\telse if(type.equals(\"Process List\"))\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.PROCESS_LIST));\r\n\t\t}\r\n\t\tcatch(Exception e) { e.printStackTrace(); }\r\n\t}", "public void end_ns(Object parser, String prefix) {\n }", "private static boolean verifyXML(String fileName) throws IOException {\n\t\tSchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA);\n\t\tStreamSource xsdFile = new StreamSource(ResourceUtils.getResourceStream(XSD_FILE_PATH));\n\t\tStreamSource xmlFile = new StreamSource(new File(fileName));\n\t\tboolean validXML = false;\n\t\ttry {\n\t\t\tSchema schema = sf.newSchema(xsdFile);\n\t\t\tValidator validator = schema.newValidator();\n\t\t\ttry {\n\t\t\t\tvalidator.validate(xmlFile);\n\t\t\t\tvalidXML = true;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (!validXML) {\n\t\t\t\tnew IOException(\"File isn't valid against the xsd\");\n\t\t\t}\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\txsdFile.getInputStream().close();\n\t\t\t// When using a file, this may be null\n\t\t\tif (xmlFile.getInputStream() != null)\n\t\t\t\txmlFile.getInputStream().close();\n\t\t}\n\t\treturn validXML;\n\t}", "protected boolean isMatchingNamespace(String rootElementNamespace)\n {\n if (namespacePattern != null)\n {\n return namespacePattern.matcher(rootElementNamespace == null ? \"\" : rootElementNamespace).matches();\n }\n else\n {\n return namespace == null ? rootElementNamespace == null : namespace.equals(rootElementNamespace);\n }\n }", "private boolean inputXSD(String xsdName, String xmlName, String outputFileName) {\n ArrayList<String> wholeFile = this.readReturnFileContents(xsdName);\n ArrayList<Integer> match = new ArrayList<Integer>();\n ArrayList<Map> fieldsAttribs = new ArrayList<>();\n match.add(1);\n for(String s:wholeFile){\n if(s.trim().length() != 0){\n match = this.parseXSD(s.trim(), match);\n if(match.get(match.size()-1)==8)\n return false;\n if(match.size()>2){\n if(match.get(match.size()-1) == 4){\n Map tMap = this.getTableFieldsAttribs(s);\n boolean flag = true;\n for (Map cMap: fieldsAttribs){\n if(cMap.get(\"name\").toString().equals(tMap.get(\"name\").toString())){\n flag = false;\n System.out.println(\"***Error- \"+ tMap + \" \\n this element is ignored due to duplicate name attribute in xsd file\");\n }\n }\n if(flag)\n fieldsAttribs.add(tMap);\n }\n }\n }\n\n }\n return this.inputXML(xmlName, fieldsAttribs, outputFileName);\n }", "@Override\n public void endPrefixMapping(String prefix) throws SAXException {\n // ...\n }", "@Test\r\n public void testNamespacePrefixGroup() throws Exception {\r\n StringWriter s = new StringWriter();\r\n BeanWriter out = factory.createWriter(\"stream9\", s);\r\n \r\n Person person = new Person();\r\n person.setFirstName(\"John\");\r\n out.write(person);\r\n out.close();\r\n \r\n assertEquals(load(\"ns9_out.xml\"), s.toString());\r\n }", "void retreiveNotificationManagerProperties() {\r\n\r\n\t\tfinal EventManager evtMgr = EventManager.getInstance();\r\n\r\n\t\t// setting the path of the xmlfile for reading the file.\r\n\t\tfinal String sFileNameWithPath = evtMgr.getConfigXMLFilePath() != null ? evtMgr.getConfigXMLFilePath()\r\n\t\t\t\t: EventConstants.DEF_XMLFILE_PATH;\r\n\t\tfinal StringBuffer sbFileNamePath = new StringBuffer();\r\n\r\n\t\tif (sFileNameWithPath.endsWith(File.separator)) {\r\n\t\t\tsbFileNamePath.append(sFileNameWithPath);\r\n\t\t\tsbFileNamePath.append(EventConstants.XMLFILENAME);\r\n\t\t} else {\r\n\t\t\tsbFileNamePath.append(sFileNameWithPath);\r\n\t\t\tsbFileNamePath.append(File.separator);\r\n\t\t\tsbFileNamePath.append(EventConstants.XMLFILENAME);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// parsing the xml fil\r\n\t\t\t// XMLReader parser =\r\n\t\t\t// XMLReaderFactory.createXMLReader(EventConstants.XMLPARSER);\r\n\t\t\t// parser.setContentHandler(this);\r\n\t\t\t// parser.parse(new InputSource(new InputStreamReader(new\r\n\t\t\t// BufferedInputStream(new\r\n\t\t\t// FileInputStream(sbFileNamePath.toString())), \"UTF-8\")));\r\n\t\t\tStaticUtilities.parseXML(this, new File(sbFileNamePath.toString()));\r\n\t\t} catch (final Exception ex) {\r\n\t\t\tfinal StringBuffer sbException = new StringBuffer(RM.getString(\"VALUE_ERROR_PARSING_MSG\")); //$NON-NLS-1$\r\n\t\t\tsbException.append(sbFileNamePath.toString());\r\n\t\t\tsbException.append(\" file:\\n\"); //$NON-NLS-1$\r\n\t\t\tsbException.append(ex.toString());\r\n\r\n\t\t\tthrow new RuntimeException(sbException.toString());\r\n\t\t}\r\n\t}", "public static Hello parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Hello object =\n new Hello();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"hello\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Hello)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetDictionaryPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDictionaryPage object =\n new GetDictionaryPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDictionaryPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDictionaryPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public interface NSURIResolver extends URIResolver {\n \n /**\n * Called by the processor when it encounters\n * an xsl:include, xsl:import, or document() function and the \n * object can not be resolved by the its relative path.\n * (javax.xml.transform.URIResolver.resolve(String href, String base) \n * has returned null)\n * \n * \n * @param tartgetNamespace of the imported schema.\n *\n * @return A Source object, or null if the namespace cannot be resolved.\n * \n * @throws TransformerException if an error occurs when trying to\n * resolve the URI.\n */\n public Source resolveByNS(String tartgetNamespace)\n throws TransformerException;\n\n}", "public void multiFileStartDocument() throws SAXException\r\n\t{\r\n\t\tsuper.startDocument();\r\n\t\ttagPath = new Stack<Path>();\r\n\t\ttagBeingIgnored = null;\r\n\t\tpassedARecord = false;\r\n\t}", "public Map getNamespaceMap() {\n/* 130 */ return this.nsMap;\n/* */ }", "public static GetDictionaryPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDictionaryPageResponse object =\n new GetDictionaryPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDictionaryPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDictionaryPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private static String namespace(File file) {\r\n File parent = file.getParentFile();\r\n\r\n return (parent == null) ? \"\" : (parent.getName() + \".\");\r\n }", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "public boolean namespace() {\n\t\ttry {\n\t\t\tArrayList<String[]> records = dh.getNamespaces();\n\t\t\tif (records != null) {\n\t\t\t\t// System.out.println(\"NAMESPACE RECORDS FOUND\");\n\t\t\t\tint l = records.size();\n\t\t\t\tbyte[] startPacket = (\"NAMESPACE\").getBytes();\n\t\t\t\toos.writeObject(startPacket);\n\t\t\t\t// System.out.println(\"Start packet sent!!!\");\n\t\t\t\tAckThread ack = new AckThread(dh, ois, records);\n\t\t\t\tack.start();\n\t\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\t\tString method = records.get(i)[0];\n\t\t\t\t\tString user = records.get(i)[1];\n\t\t\t\t\tString namespace = records.get(i)[2];\n\t\t\t\t\tString permission = records.get(i)[3];\n\t\t\t\t\tString data = method + \"\\n\" + user + \"\\n\" + namespace\n\t\t\t\t\t\t\t+ \"\\n\" + permission;\n\t\t\t\t\tBundle b = new Bundle();\n\t\t\t\t\tb.data = data.getBytes();\n\t\t\t\t\tb.userId = userId;\n\t\t\t\t\tb.transactionId = i;\n\t\t\t\t\tb.bundleType = b.DATA;\n\t\t\t\t\tb.noOfBundles = 1;\n\t\t\t\t\tb.bundleNumber = 0;\n\t\t\t\t\tb.bundleSize = b.data.length;\n\t\t\t\t\tbyte[] bundle = b.getBytes();\n\t\t\t\t\toos.writeObject(bundle);\n\t\t\t\t\toos.flush();\n\t\t\t\t\t// System.out.println(\"Sent bundle -> Transaction id : \" + i\n\t\t\t\t\t// + \" Bundle No. : \" + 0);\n\t\t\t\t}\n\t\t\t\tack.join();\n\t\t\t\tBundle b = new Bundle();\n\t\t\t\tb.userId = userId;\n\t\t\t\tb.transactionId = -1;\n\t\t\t\tb.bundleType = b.STOP;\n\t\t\t\tb.noOfBundles = 1;\n\t\t\t\tb.bundleNumber = -1;\n\t\t\t\tb.bundleSize = 0;\n\t\t\t\tb.data = null;\n\t\t\t\toos.writeObject(b.getBytes());\n\t\t\t\toos.flush();\n\t\t\t\t// System.out.println(\"Sent STOP bundle\");\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}" ]
[ "0.6392059", "0.53883857", "0.5348895", "0.526127", "0.5237556", "0.52362204", "0.5234314", "0.52262944", "0.5202048", "0.5165088", "0.5165088", "0.5165088", "0.5165088", "0.5165088", "0.5117389", "0.5080548", "0.501448", "0.501441", "0.500836", "0.49653366", "0.4937346", "0.49201187", "0.49068052", "0.48972663", "0.4895719", "0.48883736", "0.4885566", "0.48814973", "0.48719415", "0.48702666", "0.48498112", "0.48478618", "0.48447683", "0.48360342", "0.48320082", "0.4826451", "0.48199743", "0.48175535", "0.48114195", "0.48114195", "0.48114195", "0.48114195", "0.47795445", "0.47789875", "0.47770908", "0.47766724", "0.47693554", "0.47646", "0.47645453", "0.47559604", "0.47445455", "0.47374964", "0.47365984", "0.47325912", "0.47231552", "0.4723056", "0.4708559", "0.47067332", "0.4705539", "0.47031695", "0.46892318", "0.46851954", "0.468395", "0.46776524", "0.4677097", "0.4677097", "0.4677097", "0.46731636", "0.46616745", "0.46601897", "0.46599522", "0.46596023", "0.46587873", "0.4654167", "0.4654046", "0.4647962", "0.46360722", "0.46360722", "0.46343768", "0.46282628", "0.46258873", "0.462459", "0.46236098", "0.462274", "0.46178228", "0.46148887", "0.46072897", "0.45999682", "0.45978484", "0.45965973", "0.45963496", "0.4593686", "0.4592526", "0.4589673", "0.45870036", "0.45846406", "0.45757025", "0.45744544", "0.4563983", "0.4562427" ]
0.58695924
1
/ renamed from: a
public void write(JsonWriter jsonWriter, VerificationType verificationType) { kotlin.jvm.internal.i.f(jsonWriter, "out"); jsonWriter.jsonValue(verificationType != null ? verificationType.getServerValue() : 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: z
public VerificationType read(JsonReader jsonReader) { String nextString; kotlin.jvm.internal.i.f(jsonReader, "reader"); if (jsonReader.peek() != JsonToken.NULL) { nextString = jsonReader.nextString(); } else { jsonReader.skipValue(); nextString = null; } return VerificationType.Companion.fromServerValue(nextString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo28717a(zzc zzc);", "public abstract void zza(zzk zzk, zzk zzk2);", "protected abstract String getZ();", "private zza.zza()\n\t\t{\n\t\t}", "public final zzgol<zzgop<?>> zzn() {\n zzr();\n return this.zzae;\n }", "public final boolean zza() {\n boolean z = false;\n if (!this.zza.zza()) {\n return false;\n }\n this.zzx = this.zza.zzb();\n this.zzy = this.zza.zzb();\n this.zzz = this.zzy & 255;\n int i = this.zzx;\n if (i < this.zzq) {\n this.zzq = i;\n }\n int i2 = this.zzx;\n if (i2 > this.zzr) {\n this.zzr = i2;\n }\n if (this.zzz == zzgod.MAP.zza()) {\n this.zzs++;\n } else if (this.zzz >= zzgod.DOUBLE_LIST.zza() && this.zzz <= zzgod.GROUP_LIST.zza()) {\n this.zzt++;\n }\n this.zzw++;\n if (zzgqn.zza(this.zzq, this.zzx, this.zzw)) {\n this.zzv = this.zzx + 1;\n this.zzu = this.zzv - this.zzq;\n } else {\n this.zzu++;\n }\n if ((this.zzy & 1024) != 0) {\n int[] iArr = this.zzn;\n int i3 = this.zzp;\n this.zzp = i3 + 1;\n iArr[i3] = this.zzx;\n }\n if (zzd()) {\n this.zzaa = this.zza.zzb();\n if (this.zzz == zzgod.MESSAGE.zza() + 51 || this.zzz == zzgod.GROUP.zza() + 51) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() + 51 && zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else {\n this.zzac = zza(this.zzc, (String) zzp());\n if (zzh()) {\n this.zzab = this.zza.zzb();\n }\n if (this.zzz == zzgod.MESSAGE.zza() || this.zzz == zzgod.GROUP.zza()) {\n zza(this.zzx, this.zzac.getType());\n } else if (this.zzz == zzgod.MESSAGE_LIST.zza() || this.zzz == zzgod.GROUP_LIST.zza()) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() || this.zzz == zzgod.ENUM_LIST.zza() || this.zzz == zzgod.ENUM_LIST_PACKED.zza()) {\n if (zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else if (this.zzz == zzgod.MAP.zza()) {\n int i4 = this.zzx;\n Object zzp2 = zzp();\n if (this.zzaf == zzgol.zza()) {\n this.zzaf = new zzgol<>();\n }\n this.zzaf.zza(i4, zzp2);\n if ((this.zzy & 2048) != 0) {\n z = true;\n }\n if (z) {\n zza(this.zzx, (zzgop) zzp());\n }\n }\n }\n return true;\n }", "float getZ();", "float getZ();", "float getZ();", "public abstract void zza(T t, zzjl zzjl) throws IOException;", "int getZ();", "int getZ();", "int getZ();", "public final void zza(String str, List<zzbu.zza> list) {\n boolean z;\n boolean z2;\n String str2 = str;\n List<zzbu.zza> list2 = list;\n Preconditions.checkNotNull(list);\n for (int i = 0; i < list.size(); i++) {\n zzbu.zza.C4079zza zza = (zzbu.zza.C4079zza) list2.get(i).zzbl();\n if (zza.zzb() != 0) {\n for (int i2 = 0; i2 < zza.zzb(); i2++) {\n zzbu.zzb.zza zza2 = (zzbu.zzb.zza) zza.zzb(i2).zzbl();\n zzbu.zzb.zza zza3 = (zzbu.zzb.zza) ((zzib.zza) zza2.clone());\n String zzb2 = zzhb.zzb(zza2.zza());\n if (zzb2 != null) {\n zza3.zza(zzb2);\n z2 = true;\n } else {\n z2 = false;\n }\n for (int i3 = 0; i3 < zza2.zzb(); i3++) {\n zzbu.zzc zza4 = zza2.zza(i3);\n String zza5 = zzha.zza(zza4.zzh());\n if (zza5 != null) {\n zza3.zza(i3, (zzbu.zzc) ((zzib) ((zzbu.zzc.zza) zza4.zzbl()).zza(zza5).zzv()));\n z2 = true;\n }\n }\n if (z2) {\n zza = zza.zza(i2, zza3);\n list2.set(i, (zzbu.zza) ((zzib) zza.zzv()));\n }\n }\n }\n if (zza.zza() != 0) {\n for (int i4 = 0; i4 < zza.zza(); i4++) {\n zzbu.zze zza6 = zza.zza(i4);\n String zza7 = zzhd.zza(zza6.zzc());\n if (zza7 != null) {\n zza = zza.zza(i4, ((zzbu.zze.zza) zza6.zzbl()).zza(zza7));\n list2.set(i, (zzbu.zza) ((zzib) zza.zzv()));\n }\n }\n }\n }\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n Preconditions.checkNotNull(list);\n SQLiteDatabase c_ = mo40210c_();\n c_.beginTransaction();\n try {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n SQLiteDatabase c_2 = mo40210c_();\n c_2.delete(\"property_filters\", \"app_id=?\", new String[]{str2});\n c_2.delete(\"event_filters\", \"app_id=?\", new String[]{str2});\n for (zzbu.zza next : list) {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n Preconditions.checkNotNull(next);\n if (!next.zza()) {\n zzr().zzi().zza(\"Audience with no ID. appId\", zzez.zza(str));\n } else {\n int zzb3 = next.zzb();\n Iterator<zzbu.zzb> it = next.zze().iterator();\n while (true) {\n if (!it.hasNext()) {\n Iterator<zzbu.zze> it2 = next.zzc().iterator();\n while (true) {\n if (!it2.hasNext()) {\n Iterator<zzbu.zzb> it3 = next.zze().iterator();\n while (true) {\n if (!it3.hasNext()) {\n z = true;\n break;\n } else if (!zza(str2, zzb3, it3.next())) {\n z = false;\n break;\n }\n }\n if (z) {\n Iterator<zzbu.zze> it4 = next.zzc().iterator();\n while (true) {\n if (!it4.hasNext()) {\n break;\n } else if (!zza(str2, zzb3, it4.next())) {\n z = false;\n break;\n }\n }\n }\n if (!z) {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n SQLiteDatabase c_3 = mo40210c_();\n c_3.delete(\"property_filters\", \"app_id=? and audience_id=?\", new String[]{str2, String.valueOf(zzb3)});\n c_3.delete(\"event_filters\", \"app_id=? and audience_id=?\", new String[]{str2, String.valueOf(zzb3)});\n }\n } else if (!it2.next().zza()) {\n zzr().zzi().zza(\"Property filter with no ID. Audience definition ignored. appId, audienceId\", zzez.zza(str), Integer.valueOf(zzb3));\n break;\n }\n }\n } else if (!it.next().zza()) {\n zzr().zzi().zza(\"Event filter with no ID. Audience definition ignored. appId, audienceId\", zzez.zza(str), Integer.valueOf(zzb3));\n break;\n }\n }\n }\n }\n ArrayList arrayList = new ArrayList();\n for (zzbu.zza next2 : list) {\n arrayList.add(next2.zza() ? Integer.valueOf(next2.zzb()) : null);\n }\n zzb(str2, (List<Integer>) arrayList);\n c_.setTransactionSuccessful();\n } finally {\n c_.endTransaction();\n }\n }", "public final zzgol<Class<?>> zzm() {\n zzr();\n return this.zzad;\n }", "public void zRotate() {\n\t\t\n\t}", "double setz(double z) {\nreturn this.z;\n }", "public abstract void zzc(T t, zzjl zzjl) throws IOException;", "@Override\r\n\tpublic void zjedz(Kost k) {\n\t}", "void zmniejszBieg();", "public abstract boolean zza(zzdxo<?> zzdxo, zzd zzd, zzd zzd2);", "@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}", "public abstract boolean zza(zzdxo<?> zzdxo, zzk zzk, zzk zzk2);", "public abstract void zzf(Object obj);", "@Override\r\n\tpublic void zjedz(Seno s) {\n\t}", "public final /* synthetic */ void zzx() {\n zzbu zzw = zzw();\n if (zzw != null) {\n this.zzbb.add(zzw);\n }\n }", "public abstract int zzu(T t);", "public final zzgol<Object> zzo() {\n zzr();\n return this.zzaf;\n }", "@Override // com.google.android.gms.internal.vision.zzgp\n public final <E> void zza(Object obj, Object obj2, long j) {\n List zzc = zzc(obj2, j);\n List zza = zza(obj, j, zzc.size());\n int size = zza.size();\n int size2 = zzc.size();\n if (size > 0 && size2 > 0) {\n zza.addAll(zzc);\n }\n if (size > 0) {\n zzc = zza;\n }\n zziu.zza(obj, j, zzc);\n }", "double getZ() { return pos[2]; }", "public int getZ() {\r\n return z;\r\n }", "private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }", "@Override // com.google.android.gms.internal.vision.zzgp\n public final void zzb(Object obj, long j) {\n Object obj2;\n List list = (List) zziu.zzp(obj, j);\n if (list instanceof zzgo) {\n obj2 = ((zzgo) list).zzfu();\n } else if (!zzyp.isAssignableFrom(list.getClass())) {\n if (!(list instanceof zzhr) || !(list instanceof zzge)) {\n obj2 = Collections.unmodifiableList(list);\n } else {\n zzge zzge = (zzge) list;\n if (zzge.zzch()) {\n zzge.zzci();\n return;\n }\n return;\n }\n } else {\n return;\n }\n zziu.zza(obj, j, obj2);\n }", "abstract double getDirZ();", "public int zzz() {\n int i;\n int i2 = 0;\n int zzz = super.zzz();\n if (this.zzbuR != 0) {\n zzz += zzsn.zzd(1, this.zzbuR);\n }\n if (!this.tag.equals(\"\")) {\n zzz += zzsn.zzo(2, this.tag);\n }\n if (this.zzbuW != null && this.zzbuW.length > 0) {\n i = zzz;\n for (zzsu zzsu : this.zzbuW) {\n if (zzsu != null) {\n i += zzsn.zzc(3, zzsu);\n }\n }\n zzz = i;\n }\n if (!Arrays.equals(this.zzbuY, zzsx.zzbuD)) {\n zzz += zzsn.zzb(6, this.zzbuY);\n }\n if (this.zzbvb != null) {\n zzz += zzsn.zzc(7, this.zzbvb);\n }\n if (!Arrays.equals(this.zzbuZ, zzsx.zzbuD)) {\n zzz += zzsn.zzb(8, this.zzbuZ);\n }\n if (this.zzbuX != null) {\n zzz += zzsn.zzc(9, this.zzbuX);\n }\n if (this.zzbuV) {\n zzz += zzsn.zzf(10, this.zzbuV);\n }\n if (this.zzbuU != 0) {\n zzz += zzsn.zzC(11, this.zzbuU);\n }\n if (this.zzob != 0) {\n zzz += zzsn.zzC(12, this.zzob);\n }\n if (!Arrays.equals(this.zzbva, zzsx.zzbuD)) {\n zzz += zzsn.zzb(13, this.zzbva);\n }\n if (!this.zzbvc.equals(\"\")) {\n zzz += zzsn.zzo(14, this.zzbvc);\n }\n if (this.zzbvd != 180000) {\n zzz += zzsn.zze(15, this.zzbvd);\n }\n if (this.zzbve != null) {\n zzz += zzsn.zzc(16, this.zzbve);\n }\n if (this.zzbuS != 0) {\n zzz += zzsn.zzd(17, this.zzbuS);\n }\n if (!Arrays.equals(this.zzbvf, zzsx.zzbuD)) {\n zzz += zzsn.zzb(18, this.zzbvf);\n }\n if (this.zzbvg != 0) {\n zzz += zzsn.zzC(19, this.zzbvg);\n }\n if (this.zzbvh != null && this.zzbvh.length > 0) {\n i = 0;\n while (i2 < this.zzbvh.length) {\n i += zzsn.zzmx(this.zzbvh[i2]);\n i2++;\n }\n zzz = (zzz + i) + (this.zzbvh.length * 2);\n }\n if (this.zzbuT != 0) {\n zzz += zzsn.zzd(21, this.zzbuT);\n }\n return this.zzbvi != 0 ? zzz + zzsn.zzd(22, this.zzbvi) : zzz;\n }", "zzkf(zzkc zzkc, zzgz zzgz) {\n super(zzgz);\n this.zza = zzkc;\n }", "private final int zzr(Object var1_1) {\n var2_2 = zzja.zzb;\n var4_4 = 0;\n block71: for (var3_3 = 0; var3_3 < (var6_6 = ((int[])(var5_5 = this.zzc)).length); var3_3 += 3) {\n block76: {\n var6_6 = this.zzA(var3_3);\n var7_7 = zzja.zzC(var6_6);\n var8_8 = this.zzc;\n var9_9 = var8_8[var3_3];\n var10_10 = 1048575;\n var11_11 = var6_6 & var10_10;\n var5_5 = (Object)zzhk.zzJ;\n var6_6 = var5_5.zza();\n if (var7_7 >= var6_6 && var7_7 <= (var6_6 = (var5_5 = zzhk.zzW).zza())) {\n var5_5 = this.zzc;\n var13_12 = var3_3 + 2;\n var6_6 = var5_5[var13_12];\n }\n var6_6 = 63;\n switch (var7_7) {\n default: {\n continue block71;\n }\n case 68: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = (zzix)zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzv(var3_3);\n var6_6 = zzgz.zzE(var9_9, (zzix)var5_5, (zzji)var14_13);\n ** GOTO lbl322\n }\n case 67: {\n var7_7 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var7_7 == 0) continue block71;\n var11_11 = zzja.zzG(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var15_14 = var11_11 + var11_11;\n var17_15 = var11_11 >> var6_6 ^ var15_14;\n var6_6 = zzgz.zzx(var17_15);\n ** GOTO lbl427\n }\n case 66: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzja.zzF(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var9_9 = var6_6 + var6_6;\n var6_6 = zzgz.zzw(var6_6 >> 31 ^ var9_9);\n ** GOTO lbl427\n }\n case 65: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n break block76;\n }\n case 64: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n ** GOTO lbl449\n }\n case 63: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzja.zzF(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzv(var6_6);\n ** GOTO lbl427\n }\n case 62: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzja.zzF(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzw(var6_6);\n ** GOTO lbl427\n }\n case 61: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = (zzgs)zzkh.zzn(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = var5_5.zzc();\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl380\n }\n case 60: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzv(var3_3);\n var6_6 = zzjk.zzw(var9_9, var5_5, (zzji)var14_13);\n ** GOTO lbl322\n }\n case 59: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = zzkh.zzn(var1_1, var11_11);\n var7_7 = var5_5 instanceof zzgs;\n if (var7_7 == 0) ** GOTO lbl94\n var5_5 = (zzgs)var5_5;\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = var5_5.zzc();\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl380\nlbl94:\n // 1 sources\n\n var5_5 = (String)var5_5;\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzy((String)var5_5);\n ** GOTO lbl427\n }\n case 58: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n ** GOTO lbl409\n }\n case 57: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n ** GOTO lbl449\n }\n case 56: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n break block76;\n }\n case 55: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzja.zzF(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzv(var6_6);\n ** GOTO lbl427\n }\n case 54: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var19_16 = zzja.zzG(var1_1, var11_11);\n var9_9 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzx(var19_16);\n ** GOTO lbl443\n }\n case 53: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var19_16 = zzja.zzG(var1_1, var11_11);\n var9_9 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzx(var19_16);\n ** GOTO lbl443\n }\n case 52: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n ** GOTO lbl449\n }\n case 51: {\n var6_6 = (int)this.zzM(var1_1, var9_9, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n break block76;\n }\n case 50: {\n var5_5 = zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzw(var3_3);\n zzis.zza(var9_9, var5_5, var14_13);\n continue block71;\n }\n case 49: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzv(var3_3);\n var6_6 = zzjk.zzz(var9_9, (List)var5_5, (zzji)var14_13);\n ** GOTO lbl322\n }\n case 48: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzf((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 47: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzn((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 46: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzr((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 45: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzp((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 44: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzh((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 43: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzl((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 42: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzt((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 41: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzp((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 40: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzr((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 39: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzj((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 38: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzd((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 37: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzb((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 36: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzp((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\n ** GOTO lbl252\n }\n case 35: {\n var5_5 = (List)var2_2.getObject(var1_1, var11_11);\n var6_6 = zzjk.zzr((List)var5_5);\n if (var6_6 <= 0) continue block71;\n var7_7 = zzgz.zzu(var9_9);\n var9_9 = zzgz.zzw(var6_6);\nlbl252:\n // 14 sources\n\n var7_7 += var9_9;\n ** GOTO lbl427\n }\n case 34: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzg(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 33: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzo(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 32: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzs(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 31: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzq(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 30: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzi(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 29: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzm(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 28: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzy(var9_9, (List)var5_5);\n ** GOTO lbl322\n }\n case 27: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzv(var3_3);\n var6_6 = zzjk.zzx(var9_9, (List)var5_5, (zzji)var14_13);\n ** GOTO lbl322\n }\n case 26: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzv(var9_9, (List)var5_5);\n ** GOTO lbl322\n }\n case 25: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzu(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 24: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzq(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 23: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzs(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 22: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzk(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 21: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zze(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 20: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzc(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 19: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzq(var9_9, (List)var5_5, false);\n ** GOTO lbl322\n }\n case 18: {\n var5_5 = (List)zzkh.zzn(var1_1, var11_11);\n var6_6 = zzjk.zzs(var9_9, (List)var5_5, false);\nlbl322:\n // 25 sources\n\n while (true) {\n var4_4 += var6_6;\n continue block71;\n break;\n }\n }\n case 17: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = (zzix)zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzv(var3_3);\n var6_6 = zzgz.zzE(var9_9, (zzix)var5_5, (zzji)var14_13);\n ** GOTO lbl322\n }\n case 16: {\n var7_7 = (int)this.zzK(var1_1, var3_3);\n if (var7_7 == 0) continue block71;\n var11_11 = zzkh.zzf(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var15_14 = var11_11 + var11_11;\n var17_15 = var11_11 >> var6_6 ^ var15_14;\n var6_6 = zzgz.zzx(var17_15);\n ** GOTO lbl427\n }\n case 15: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzkh.zzd(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var9_9 = var6_6 + var6_6;\n var6_6 = zzgz.zzw(var6_6 >> 31 ^ var9_9);\n ** GOTO lbl427\n }\n case 14: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n break block76;\n }\n case 13: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n ** GOTO lbl449\n }\n case 12: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzkh.zzd(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzv(var6_6);\n ** GOTO lbl427\n }\n case 11: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzkh.zzd(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzw(var6_6);\n ** GOTO lbl427\n }\n case 10: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = (zzgs)zzkh.zzn(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = var5_5.zzc();\n var9_9 = zzgz.zzw(var6_6);\nlbl380:\n // 4 sources\n\n while (true) {\n var7_7 += (var9_9 += var6_6);\n ** GOTO lbl428\n break;\n }\n }\n case 9: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = zzkh.zzn(var1_1, var11_11);\n var14_13 = this.zzv(var3_3);\n var6_6 = zzjk.zzw(var9_9, var5_5, (zzji)var14_13);\n ** GOTO lbl322\n }\n case 8: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var5_5 = zzkh.zzn(var1_1, var11_11);\n var7_7 = var5_5 instanceof zzgs;\n if (var7_7 != 0) {\n var5_5 = (zzgs)var5_5;\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = var5_5.zzc();\n var9_9 = zzgz.zzw(var6_6);\n ** continue;\n }\n var5_5 = (String)var5_5;\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzy((String)var5_5);\n ** GOTO lbl427\n }\n case 7: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\nlbl409:\n // 2 sources\n\n ++var6_6;\n ** GOTO lbl322\n }\n case 6: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n ** GOTO lbl449\n }\n case 5: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\n break block76;\n }\n case 4: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzkh.zzd(var1_1, var11_11);\n var7_7 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzv(var6_6);\nlbl427:\n // 13 sources\n\n var7_7 += var6_6;\nlbl428:\n // 2 sources\n\n var4_4 += var7_7;\n continue block71;\n }\n case 3: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var19_16 = zzkh.zzf(var1_1, var11_11);\n var9_9 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzx(var19_16);\n ** GOTO lbl443\n }\n case 2: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var19_16 = zzkh.zzf(var1_1, var11_11);\n var9_9 = zzgz.zzw(var9_9 << 3);\n var6_6 = zzgz.zzx(var19_16);\nlbl443:\n // 4 sources\n\n var4_4 += (var9_9 += var6_6);\n continue block71;\n }\n case 1: {\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue block71;\n var6_6 = zzgz.zzw(var9_9 << 3);\nlbl449:\n // 6 sources\n\n var6_6 += 4;\n ** GOTO lbl322\n }\n case 0: \n }\n var6_6 = (int)this.zzK(var1_1, var3_3);\n if (var6_6 == 0) continue;\n var6_6 = zzgz.zzw(var9_9 << 3);\n }\n var6_6 += 8;\n ** continue;\n }\n var2_2 = this.zzn;\n var1_1 = var2_2.zzd(var1_1);\n var21_17 = var2_2.zzh(var1_1);\n return var4_4 + var21_17;\n }", "abstract double getOrgZ();", "public abstract boolean zza(zzhr zzhr);", "public abstract int zzh(int i, int i2, int i3);", "public int getZ() {\n return z;\n }", "void mo69875a(List<Aweme> list, boolean z);", "public final void mo91704a(boolean z, boolean z2, boolean z3) {\n }", "public int zzz() {\n int i;\n int i2;\n int i3;\n int i4 = 0;\n int zzz = super.zzz();\n if (this.zzbuI == null || this.zzbuI.length <= 0) {\n i = zzz;\n } else {\n i2 = 0;\n i3 = 0;\n for (String str : this.zzbuI) {\n if (str != null) {\n i3++;\n i2 += zzsn.zzgO(str);\n }\n }\n i = (zzz + i2) + (i3 * 1);\n }\n if (this.zzbuJ != null && this.zzbuJ.length > 0) {\n i3 = 0;\n zzz = 0;\n for (String str2 : this.zzbuJ) {\n if (str2 != null) {\n zzz++;\n i3 += zzsn.zzgO(str2);\n }\n }\n i = (i + i3) + (zzz * 1);\n }\n if (this.zzbuK != null && this.zzbuK.length > 0) {\n i3 = 0;\n for (int zzz2 : this.zzbuK) {\n i3 += zzsn.zzmx(zzz2);\n }\n i = (i + i3) + (this.zzbuK.length * 1);\n }\n if (this.zzbuL == null || this.zzbuL.length <= 0) {\n return i;\n }\n i2 = 0;\n while (i4 < this.zzbuL.length) {\n i2 += zzsn.zzas(this.zzbuL[i4]);\n i4++;\n }\n return (i + i2) + (this.zzbuL.length * 1);\n }", "public void addToZ(int z){\n\t\tcurrentSet().Z.add(z);\n\t\tcurrentSet().inZ[z] = true;\n\t}", "public final /* synthetic */ void zza(Api.zzb zzb) throws RemoteException {\n zzbdw<zzbaz<Status>> zzzX = zzzX();\n ((zzs) ((zzah) zzb).zzrf()).zza(new zzbe((IBinder) null, new zzcpq(zzzX), this.zzaVL));\n }", "public abstract void zza(B b, int i, zzeh zzeh);", "@Override\n\tpublic double getZ() {\n\t\treturn z;\n\t}", "public void zza(zzj zzj) {\n this.zzaTY = (zzj) zzu.zzu(zzj);\n }", "void mo28307a(zzgd zzgd);", "godot.wire.Wire.Vector3 getZ();", "@Override\n public final /* synthetic */ zzfjs zza(zzfjj zzfjj2) throws IOException {\n block19: do {\n int n;\n int n2;\n Object[] arrobject;\n int n3 = zzfjj2.zzcvt();\n switch (n3) {\n default: {\n if (super.zza(zzfjj2, n3)) continue block19;\n }\n case 0: {\n return this;\n }\n case 10: {\n this.zzlmn = zzfjj2.readBytes();\n continue block19;\n }\n case 18: {\n this.zzlmo = zzfjj2.readString();\n continue block19;\n }\n case 25: {\n this.zzlmp = Double.longBitsToDouble(zzfjj2.zzcwp());\n continue block19;\n }\n case 37: {\n this.zzlmq = Float.intBitsToFloat(zzfjj2.zzcwo());\n continue block19;\n }\n case 40: {\n this.zzlmr = zzfjj2.zzcwn();\n continue block19;\n }\n case 48: {\n this.zzlms = zzfjj2.zzcwi();\n continue block19;\n }\n case 56: {\n n3 = zzfjj2.zzcwi();\n this.zzlmt = -(n3 & 1) ^ n3 >>> 1;\n continue block19;\n }\n case 64: {\n this.zzlmu = zzfjj2.zzcvz();\n continue block19;\n }\n case 74: {\n n = zzfjv.zzb(zzfjj2, 74);\n n3 = this.zzlmv == null ? 0 : this.zzlmv.length;\n arrobject = new zzdmc[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmv, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length - 1) {\n arrobject[n] = new zzdmc();\n zzfjj2.zza((zzfjs)arrobject[n]);\n zzfjj2.zzcvt();\n ++n;\n }\n arrobject[n] = new zzdmc();\n zzfjj2.zza((zzfjs)arrobject[n]);\n this.zzlmv = arrobject;\n continue block19;\n }\n case 82: {\n n = zzfjv.zzb(zzfjj2, 82);\n n3 = this.zzlmw == null ? 0 : this.zzlmw.length;\n arrobject = new zzdmd[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmw, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length - 1) {\n arrobject[n] = new zzdmd();\n zzfjj2.zza((zzfjs)arrobject[n]);\n zzfjj2.zzcvt();\n ++n;\n }\n arrobject[n] = new zzdmd();\n zzfjj2.zza((zzfjs)arrobject[n]);\n this.zzlmw = arrobject;\n continue block19;\n }\n case 90: {\n n = zzfjv.zzb(zzfjj2, 90);\n n3 = this.zzlmx == null ? 0 : this.zzlmx.length;\n arrobject = new String[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmx, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length - 1) {\n arrobject[n] = zzfjj2.readString();\n zzfjj2.zzcvt();\n ++n;\n }\n arrobject[n] = zzfjj2.readString();\n this.zzlmx = arrobject;\n continue block19;\n }\n case 96: {\n n = zzfjv.zzb(zzfjj2, 96);\n n3 = this.zzlmy == null ? 0 : this.zzlmy.length;\n arrobject = new long[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmy, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length - 1) {\n arrobject[n] = zzfjj2.zzcwn();\n zzfjj2.zzcvt();\n ++n;\n }\n arrobject[n] = zzfjj2.zzcwn();\n this.zzlmy = arrobject;\n continue block19;\n }\n case 98: {\n n2 = zzfjj2.zzks(zzfjj2.zzcwi());\n n3 = zzfjj2.getPosition();\n n = 0;\n while (zzfjj2.zzcwk() > 0) {\n zzfjj2.zzcwn();\n ++n;\n }\n zzfjj2.zzmg(n3);\n n3 = this.zzlmy == null ? 0 : this.zzlmy.length;\n arrobject = new long[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmy, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length) {\n arrobject[n] = zzfjj2.zzcwn();\n ++n;\n }\n this.zzlmy = arrobject;\n zzfjj2.zzkt(n2);\n continue block19;\n }\n case 104: {\n this.zzlna = zzfjj2.zzcwn();\n continue block19;\n }\n case 117: {\n n = zzfjv.zzb(zzfjj2, 117);\n n3 = this.zzlmz == null ? 0 : this.zzlmz.length;\n arrobject = new float[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmz, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length - 1) {\n arrobject[n] = Float.intBitsToFloat(zzfjj2.zzcwo());\n zzfjj2.zzcvt();\n ++n;\n }\n arrobject[n] = Float.intBitsToFloat(zzfjj2.zzcwo());\n this.zzlmz = arrobject;\n continue block19;\n }\n case 114: \n }\n n3 = zzfjj2.zzcwi();\n n2 = zzfjj2.zzks(n3);\n n = n3 / 4;\n n3 = this.zzlmz == null ? 0 : this.zzlmz.length;\n arrobject = new float[n + n3];\n n = n3;\n if (n3 != 0) {\n System.arraycopy(this.zzlmz, 0, arrobject, 0, n3);\n n = n3;\n }\n while (n < arrobject.length) {\n arrobject[n] = Float.intBitsToFloat(zzfjj2.zzcwo());\n ++n;\n }\n this.zzlmz = arrobject;\n zzfjj2.zzkt(n2);\n } while (true);\n }", "public void setZ(int zPos){\t\t\n\t\tz = new Integer(zPos);\n\t}", "public int getZ() {\n\t\treturn z;\n\t}", "double getz() {\nreturn this.z;\n }", "private static <L> List<L> zza(Object obj, long j, int i) {\n zzgn zzgn;\n List<L> list;\n List<L> zzc = zzc(obj, j);\n if (zzc.isEmpty()) {\n if (zzc instanceof zzgo) {\n list = new zzgn(i);\n } else if (!(zzc instanceof zzhr) || !(zzc instanceof zzge)) {\n list = new ArrayList<>(i);\n } else {\n list = ((zzge) zzc).zzah(i);\n }\n zziu.zza(obj, j, list);\n return list;\n }\n if (zzyp.isAssignableFrom(zzc.getClass())) {\n ArrayList arrayList = new ArrayList(zzc.size() + i);\n arrayList.addAll(zzc);\n zziu.zza(obj, j, arrayList);\n zzgn = arrayList;\n } else if (zzc instanceof zzir) {\n zzgn zzgn2 = new zzgn(zzc.size() + i);\n zzgn2.addAll((zzir) zzc);\n zziu.zza(obj, j, zzgn2);\n zzgn = zzgn2;\n } else if (!(zzc instanceof zzhr) || !(zzc instanceof zzge)) {\n return zzc;\n } else {\n zzge zzge = (zzge) zzc;\n if (zzge.zzch()) {\n return zzc;\n }\n zzge zzah = zzge.zzah(zzc.size() + i);\n zziu.zza(obj, j, zzah);\n return zzah;\n }\n return zzgn;\n }", "public final void zzb(zzk zzk) {\n zzdxo.zzhwd.zza(this, zzk);\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public int zzz() {\n int i = 0;\n int zzz = super.zzz();\n if (!Arrays.equals(this.zzbuO, zzsx.zzbuD)) {\n zzz += zzsn.zzb(1, this.zzbuO);\n }\n if (this.zzbuP != null && this.zzbuP.length > 0) {\n int i2 = 0;\n int i3 = 0;\n while (i < this.zzbuP.length) {\n byte[] bArr = this.zzbuP[i];\n if (bArr != null) {\n i3++;\n i2 += zzsn.zzG(bArr);\n }\n i++;\n }\n zzz = (zzz + i2) + (i3 * 1);\n }\n return this.zzbuQ ? zzz + zzsn.zzf(3, this.zzbuQ) : zzz;\n }", "public final void zzc(int i, long j) throws zzlm {\n boolean z = false;\n switch (i) {\n case 131:\n this.zzbal.type = (int) j;\n return;\n case 136:\n zzog zzog = this.zzbal;\n if (j == 1) {\n z = true;\n }\n zzog.zzbce = z;\n return;\n case 155:\n this.zzbar = zzdw(j);\n return;\n case 159:\n this.zzbal.zzafu = (int) j;\n return;\n case 176:\n this.zzbal.width = (int) j;\n return;\n case 179:\n this.zzban.add(zzdw(j));\n return;\n case 186:\n this.zzbal.height = (int) j;\n return;\n case JfifUtil.MARKER_RST7:\n this.zzbal.number = (int) j;\n return;\n case 231:\n this.zzaof = zzdw(j);\n return;\n case 241:\n if (!this.zzaoi) {\n this.zzbao.add(j);\n this.zzaoi = true;\n return;\n }\n return;\n case 251:\n this.zzaop = true;\n return;\n case 16980:\n if (j != 3) {\n StringBuilder sb = new StringBuilder(50);\n sb.append(\"ContentCompAlgo \");\n sb.append(j);\n sb.append(\" not supported\");\n throw new zzlm(sb.toString());\n }\n return;\n case 17029:\n if (j < 1 || j > 2) {\n StringBuilder sb2 = new StringBuilder(53);\n sb2.append(\"DocTypeReadVersion \");\n sb2.append(j);\n sb2.append(\" not supported\");\n throw new zzlm(sb2.toString());\n }\n return;\n case 17143:\n if (j != 1) {\n StringBuilder sb3 = new StringBuilder(50);\n sb3.append(\"EBMLReadVersion \");\n sb3.append(j);\n sb3.append(\" not supported\");\n throw new zzlm(sb3.toString());\n }\n return;\n case 18401:\n if (j != 5) {\n StringBuilder sb4 = new StringBuilder(49);\n sb4.append(\"ContentEncAlgo \");\n sb4.append(j);\n sb4.append(\" not supported\");\n throw new zzlm(sb4.toString());\n }\n return;\n case 18408:\n if (j != 1) {\n StringBuilder sb5 = new StringBuilder(56);\n sb5.append(\"AESSettingsCipherMode \");\n sb5.append(j);\n sb5.append(\" not supported\");\n throw new zzlm(sb5.toString());\n }\n return;\n case 20529:\n if (j != 0) {\n StringBuilder sb6 = new StringBuilder(55);\n sb6.append(\"ContentEncodingOrder \");\n sb6.append(j);\n sb6.append(\" not supported\");\n throw new zzlm(sb6.toString());\n }\n return;\n case 20530:\n if (j != 1) {\n StringBuilder sb7 = new StringBuilder(55);\n sb7.append(\"ContentEncodingScope \");\n sb7.append(j);\n sb7.append(\" not supported\");\n throw new zzlm(sb7.toString());\n }\n return;\n case 21420:\n this.zzaoa = j + this.zzans;\n return;\n case 21432:\n int i2 = (int) j;\n if (i2 == 3) {\n this.zzbal.zzatu = 1;\n return;\n } else if (i2 != 15) {\n switch (i2) {\n case 0:\n this.zzbal.zzatu = 0;\n return;\n case 1:\n this.zzbal.zzatu = 2;\n return;\n default:\n return;\n }\n } else {\n this.zzbal.zzatu = 3;\n return;\n }\n case 21680:\n this.zzbal.zzbbk = (int) j;\n return;\n case 21682:\n this.zzbal.zzbbm = (int) j;\n return;\n case 21690:\n this.zzbal.zzbbl = (int) j;\n return;\n case 21930:\n zzog zzog2 = this.zzbal;\n if (j == 1) {\n z = true;\n }\n zzog2.zzbcf = z;\n return;\n case 21945:\n switch ((int) j) {\n case 1:\n this.zzbal.zzbbq = 2;\n return;\n case 2:\n this.zzbal.zzbbq = 1;\n return;\n default:\n return;\n }\n case 21946:\n int i3 = (int) j;\n if (i3 != 1) {\n if (i3 == 16) {\n this.zzbal.zzbbp = 6;\n return;\n } else if (i3 != 18) {\n switch (i3) {\n case 6:\n case 7:\n break;\n default:\n return;\n }\n } else {\n this.zzbal.zzbbp = 7;\n return;\n }\n }\n this.zzbal.zzbbp = 3;\n return;\n case 21947:\n this.zzbal.zzbbn = true;\n int i4 = (int) j;\n if (i4 == 1) {\n this.zzbal.zzbbo = 1;\n return;\n } else if (i4 != 9) {\n switch (i4) {\n case 4:\n case 5:\n case 6:\n case 7:\n this.zzbal.zzbbo = 2;\n return;\n default:\n return;\n }\n } else {\n this.zzbal.zzbbo = 6;\n return;\n }\n case 21948:\n this.zzbal.zzbbr = (int) j;\n return;\n case 21949:\n this.zzbal.zzbbs = (int) j;\n return;\n case 22186:\n this.zzbal.zzaow = j;\n return;\n case 22203:\n this.zzbal.zzaox = j;\n return;\n case 25188:\n this.zzbal.zzbcd = (int) j;\n return;\n case 2352003:\n this.zzbal.zzbbh = (int) j;\n return;\n case 2807729:\n this.zzanu = j;\n return;\n default:\n return;\n }\n }", "public final /* synthetic */ void zzy() {\n zzbu zzw = zzw();\n if (zzw != null) {\n this.zzbb.add(zzw);\n }\n }", "public void setLocalZ(float z){\n\t\tthis.z = z;\n\t}", "public final Object zza(int i, Object obj, Object obj2) {\n switch (zzczi.zzdi[i - 1]) {\n case 1:\n return new zzczh();\n case 2:\n return new zzb(null);\n case 3:\n return zza((zzdsg) zzgnt, \"\\u0001\\u0004\\u0000\\u0001\\u0001\\u0004\\u0004\\u0000\\u0001\\u0000\\u0001\\u001e\\u0002\\b\\u0000\\u0003\\b\\u0001\\u0004\\b\\u0002\", new Object[]{\"zzdj\", \"zzgno\", zza.zzac(), \"zzgnq\", \"zzgnr\", \"zzgns\"});\n case 4:\n return zzgnt;\n case 5:\n zzdsp<zzczh> zzdsp = zzdv;\n if (zzdsp == null) {\n synchronized (zzczh.class) {\n zzdsp = zzdv;\n if (zzdsp == null) {\n zzdsp = new zzc<>(zzgnt);\n zzdv = zzdsp;\n }\n }\n }\n return zzdsp;\n case 6:\n return Byte.valueOf(1);\n case 7:\n return null;\n default:\n throw new UnsupportedOperationException();\n }\n }", "@Override // com.google.android.gms.internal.vision.zzgp\n public final <L> List<L> zza(Object obj, long j) {\n return zza(obj, j, 10);\n }", "private String AccelZConversion() {\n short reading = (short) (((raw[18] & 0xF0) >> 4) + ((raw[19] & 0x3f) << 4));\n\n\n int z[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(z) + \"\";\n }", "double getZLength();", "public void setZ(int z) {\r\n this.z = (short) z;\r\n }", "public abstract void zza(B b, int i, long j);", "public final void zza(zza zza2) {\n if (zza2 != null) {\n if (!this.zzgno.zzaxi()) {\n this.zzgno = zzdqw.zza(this.zzgno);\n }\n this.zzgno.zzgp(zza2.zzab());\n return;\n }\n throw new NullPointerException();\n }", "private static void zza(String object, Object object2, StringBuffer stringBuffer, StringBuffer stringBuffer2) throws IllegalAccessException, InvocationTargetException {\n if (object2 == null) return;\n if (object2 instanceof zzfjs) {\n n2 = stringBuffer.length();\n if (object != null) {\n stringBuffer2.append(stringBuffer).append(zzfjt.zzty((String)object)).append(\" <\\n\");\n stringBuffer.append(\" \");\n }\n class_ = object2.getClass();\n object5 = class_.getFields();\n n4 = ((Field[])object5).length;\n } else {\n object = zzfjt.zzty((String)object);\n stringBuffer2.append(stringBuffer).append((String)object).append(\": \");\n if (object2 instanceof String) {\n object = object2 = (String)object2;\n if (!object2.startsWith(\"http\")) {\n object = object2;\n if (object2.length() > 200) {\n object = String.valueOf(object2.substring(0, 200)).concat(\"[...]\");\n }\n }\n object = zzfjt.zzgr((String)object);\n stringBuffer2.append(\"\\\"\").append((String)object).append(\"\\\"\");\n } else if (object2 instanceof byte[]) {\n zzfjt.zza((byte[])object2, stringBuffer2);\n } else {\n stringBuffer2.append(object2);\n }\n stringBuffer2.append(\"\\n\");\n return;\n }\n for (n = 0; n < n4; ++n) {\n object6 = object5[n];\n n3 = object6.getModifiers();\n object4 = object6.getName();\n if (\"cachedSize\".equals(object4) || (n3 & 1) != 1 || (n3 & 8) == 8 || object4.startsWith(\"_\") || object4.endsWith(\"_\")) continue;\n object3 = object6.getType();\n object6 = object6.get(object2);\n if (object3.isArray() && object3.getComponentType() != Byte.TYPE) {\n n3 = object6 == null ? 0 : Array.getLength(object6);\n for (i = 0; i < n3; ++i) {\n zzfjt.zza((String)object4, Array.get(object6, i), stringBuffer, stringBuffer2);\n }\n continue;\n }\n zzfjt.zza((String)object4, object6, stringBuffer, stringBuffer2);\n }\n object4 = class_.getMethods();\n n3 = ((Method[])object4).length;\n n = 0;\n do {\n block20: {\n if (n >= n3) {\n if (object == null) return;\n stringBuffer.setLength(n2);\n stringBuffer2.append(stringBuffer).append(\">\\n\");\n return;\n }\n object5 = object4[n].getName();\n if (!object5.startsWith(\"set\")) break block20;\n object3 = object5.substring(3);\n object5 = String.valueOf(object3);\n object5 = object5.length() != 0 ? \"has\".concat((String)object5) : new String(\"has\");\n if (!((Boolean)(object5 = class_.getMethod((String)object5, new Class[0])).invoke(object2, new Object[0])).booleanValue()) ** GOTO lbl81\n {\n catch (NoSuchMethodException noSuchMethodException) {}\n }\n try {\n block22: {\n block21: {\n object5 = String.valueOf(object3);\n if (object5.length() == 0) break block21;\n object5 = \"get\".concat((String)object5);\n break block22;\n break block20;\n }\n object5 = new String(\"get\");\n }\n object5 = class_.getMethod((String)object5, new Class[0]);\n }\n catch (NoSuchMethodException noSuchMethodException) {}\n zzfjt.zza((String)object3, object5.invoke(object2, new Object[0]), stringBuffer, stringBuffer2);\n }\n ++n;\n } while (true);\n }", "public void removeFromZ(int z){\n\t\tcurrentSet().Z.remove(new Integer(z));\n\t\tcurrentSet().inZ[z] = false;\n\t}", "public abstract int zzp(T t);", "@Override\n\tpublic List zhye(String name) {\n\t\treturn deal.zhye(name);\n\t}", "public double getZ(){\n\t\treturn z;\n\t}", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "public final int zza(com.google.android.gms.internal.ads.zzno r8, com.google.android.gms.internal.ads.zznt r9) throws java.io.IOException, java.lang.InterruptedException {\n /*\n r7 = this;\n r0 = 0\n r7.zzaoo = r0\n r1 = 1\n r2 = 1\n L_0x0005:\n if (r2 == 0) goto L_0x003c\n boolean r3 = r7.zzaoo\n if (r3 != 0) goto L_0x003c\n com.google.android.gms.internal.ads.zzob r2 = r7.zzazx\n boolean r2 = r2.zzb(r8)\n if (r2 == 0) goto L_0x0005\n long r3 = r8.getPosition()\n boolean r5 = r7.zzaob\n if (r5 == 0) goto L_0x0025\n r7.zzaod = r3\n long r3 = r7.zzaoc\n r9.zzahv = r3\n r7.zzaob = r0\n L_0x0023:\n r3 = 1\n goto L_0x0039\n L_0x0025:\n boolean r3 = r7.zzbam\n if (r3 == 0) goto L_0x0038\n long r3 = r7.zzaod\n r5 = -1\n int r3 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r3 == 0) goto L_0x0038\n long r3 = r7.zzaod\n r9.zzahv = r3\n r7.zzaod = r5\n goto L_0x0023\n L_0x0038:\n r3 = 0\n L_0x0039:\n if (r3 == 0) goto L_0x0005\n return r1\n L_0x003c:\n if (r2 == 0) goto L_0x003f\n return r0\n L_0x003f:\n r8 = -1\n return r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzod.zza(com.google.android.gms.internal.ads.zzno, com.google.android.gms.internal.ads.zznt):int\");\n }", "public int getZ() {\n return Z;\n }", "private void m128161c(boolean z) {\n if (z) {\n ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.f104234x, \"rotation\", new float[]{0.0f, 180.0f});\n ofFloat.setDuration(300);\n ofFloat.start();\n } else {\n ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.f104234x, \"rotation\", new float[]{180.0f, 0.0f});\n ofFloat2.setDuration(300);\n ofFloat2.start();\n }\n this.f104235y.mo99814a(z);\n }", "default void setZ(double z)\n {\n getAxis().setZ(z);\n }", "public final HashMap<Integer, Long> zzu() {\n HashMap<Integer, Long> hashMap = new HashMap<>();\n hashMap.put(0, this.zzsp);\n hashMap.put(1, this.zzsq);\n hashMap.put(2, this.zzsr);\n hashMap.put(3, this.zzfr);\n hashMap.put(4, this.zzfp);\n hashMap.put(5, this.zzss);\n hashMap.put(6, this.zzst);\n hashMap.put(7, this.zzsu);\n hashMap.put(8, this.zzfw);\n hashMap.put(9, this.zzfv);\n hashMap.put(10, this.zzsv);\n return hashMap;\n }", "public void setZ(Double z);", "public abstract void zza(B b, int i, T t);", "boolean hasZ();", "boolean hasZ();", "public <C extends zze> C a(zzc<?> zzc) {\n C c2 = (zze) this.c.get(zzc);\n zzac.zzb(c2, (Object) \"Appropriate Api was not requested.\");\n return c2;\n }", "public final int zzm(T r22) {\n /*\n r21 = this;\n r0 = r21;\n r1 = r22;\n r2 = r0.zzmq;\n r3 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r4 = 0;\n r7 = 1;\n r8 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r9 = 0;\n r11 = 0;\n if (r2 == 0) goto L_0x03b8;\n L_0x0012:\n r2 = zzmh;\n r12 = r11;\n r13 = r12;\n L_0x0016:\n r14 = r0.zzmi;\n r14 = r14.length;\n if (r12 >= r14) goto L_0x03b0;\n L_0x001b:\n r14 = r0.zzag(r12);\n r15 = r14 & r3;\n r15 = r15 >>> 20;\n r3 = r0.zzmi;\n r3 = r3[r12];\n r14 = r14 & r8;\n r5 = (long) r14;\n r14 = com.google.android.gms.internal.clearcut.zzcb.DOUBLE_LIST_PACKED;\n r14 = r14.id();\n if (r15 < r14) goto L_0x0041;\n L_0x0031:\n r14 = com.google.android.gms.internal.clearcut.zzcb.SINT64_LIST_PACKED;\n r14 = r14.id();\n if (r15 > r14) goto L_0x0041;\n L_0x0039:\n r14 = r0.zzmi;\n r17 = r12 + 2;\n r14 = r14[r17];\n r14 = r14 & r8;\n goto L_0x0042;\n L_0x0041:\n r14 = r11;\n L_0x0042:\n switch(r15) {\n case 0: goto L_0x039c;\n case 1: goto L_0x0390;\n case 2: goto L_0x0380;\n case 3: goto L_0x0370;\n case 4: goto L_0x0360;\n case 5: goto L_0x0354;\n case 6: goto L_0x0348;\n case 7: goto L_0x033c;\n case 8: goto L_0x0325;\n case 9: goto L_0x0311;\n case 10: goto L_0x0300;\n case 11: goto L_0x02f1;\n case 12: goto L_0x02e2;\n case 13: goto L_0x02d7;\n case 14: goto L_0x02cc;\n case 15: goto L_0x02bd;\n case 16: goto L_0x02ae;\n case 17: goto L_0x0299;\n case 18: goto L_0x028e;\n case 19: goto L_0x0285;\n case 20: goto L_0x027c;\n case 21: goto L_0x0273;\n case 22: goto L_0x026a;\n case 23: goto L_0x028e;\n case 24: goto L_0x0285;\n case 25: goto L_0x0261;\n case 26: goto L_0x0258;\n case 27: goto L_0x024b;\n case 28: goto L_0x0242;\n case 29: goto L_0x0239;\n case 30: goto L_0x0230;\n case 31: goto L_0x0285;\n case 32: goto L_0x028e;\n case 33: goto L_0x0227;\n case 34: goto L_0x021d;\n case 35: goto L_0x01fd;\n case 36: goto L_0x01ec;\n case 37: goto L_0x01db;\n case 38: goto L_0x01ca;\n case 39: goto L_0x01b9;\n case 40: goto L_0x01a8;\n case 41: goto L_0x0197;\n case 42: goto L_0x0185;\n case 43: goto L_0x0173;\n case 44: goto L_0x0161;\n case 45: goto L_0x014f;\n case 46: goto L_0x013d;\n case 47: goto L_0x012b;\n case 48: goto L_0x0119;\n case 49: goto L_0x010b;\n case 50: goto L_0x00fb;\n case 51: goto L_0x00f3;\n case 52: goto L_0x00eb;\n case 53: goto L_0x00df;\n case 54: goto L_0x00d3;\n case 55: goto L_0x00c7;\n case 56: goto L_0x00bf;\n case 57: goto L_0x00b7;\n case 58: goto L_0x00af;\n case 59: goto L_0x009f;\n case 60: goto L_0x0097;\n case 61: goto L_0x008f;\n case 62: goto L_0x0083;\n case 63: goto L_0x0077;\n case 64: goto L_0x006f;\n case 65: goto L_0x0067;\n case 66: goto L_0x005b;\n case 67: goto L_0x004f;\n case 68: goto L_0x0047;\n default: goto L_0x0045;\n };\n L_0x0045:\n goto L_0x03aa;\n L_0x0047:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x004d:\n goto L_0x029f;\n L_0x004f:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0055:\n r5 = zzh(r1, r5);\n goto L_0x02b8;\n L_0x005b:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0061:\n r5 = zzg(r1, r5);\n goto L_0x02c7;\n L_0x0067:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x006d:\n goto L_0x02d2;\n L_0x006f:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x0075:\n goto L_0x02dd;\n L_0x0077:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x007d:\n r5 = zzg(r1, r5);\n goto L_0x02ec;\n L_0x0083:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0089:\n r5 = zzg(r1, r5);\n goto L_0x02fb;\n L_0x008f:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0095:\n goto L_0x0306;\n L_0x0097:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x009d:\n goto L_0x0317;\n L_0x009f:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00a5:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r5 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r6 == 0) goto L_0x0334;\n L_0x00ad:\n goto L_0x0333;\n L_0x00af:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00b5:\n goto L_0x0342;\n L_0x00b7:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00bd:\n goto L_0x034e;\n L_0x00bf:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00c5:\n goto L_0x035a;\n L_0x00c7:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00cd:\n r5 = zzg(r1, r5);\n goto L_0x036a;\n L_0x00d3:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00d9:\n r5 = zzh(r1, r5);\n goto L_0x037a;\n L_0x00df:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00e5:\n r5 = zzh(r1, r5);\n goto L_0x038a;\n L_0x00eb:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00f1:\n goto L_0x0396;\n L_0x00f3:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00f9:\n goto L_0x03a2;\n L_0x00fb:\n r14 = r0.zzmz;\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r0.zzae(r12);\n r3 = r14.zzb(r3, r5, r6);\n goto L_0x0296;\n L_0x010b:\n r5 = zzd(r1, r5);\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzd(r3, r5, r6);\n goto L_0x0296;\n L_0x0119:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzc(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0125:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0129:\n goto L_0x020d;\n L_0x012b:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzg(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0137:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x013b:\n goto L_0x020d;\n L_0x013d:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzi(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0149:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x014d:\n goto L_0x020d;\n L_0x014f:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzh(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x015b:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x015f:\n goto L_0x020d;\n L_0x0161:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzd(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x016d:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0171:\n goto L_0x020d;\n L_0x0173:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzf(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x017f:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0183:\n goto L_0x020d;\n L_0x0185:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzj(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0191:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0195:\n goto L_0x020d;\n L_0x0197:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzh(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01a3:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01a7:\n goto L_0x020d;\n L_0x01a8:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzi(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01b4:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01b8:\n goto L_0x020d;\n L_0x01b9:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zze(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01c5:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01c9:\n goto L_0x020d;\n L_0x01ca:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzb(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01d6:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01da:\n goto L_0x020d;\n L_0x01db:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zza(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01e7:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01eb:\n goto L_0x020d;\n L_0x01ec:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzh(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01f8:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01fc:\n goto L_0x020d;\n L_0x01fd:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzi(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0209:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x020d:\n r14 = (long) r14;\n r2.putInt(r1, r14, r5);\n L_0x0211:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzr(r3);\n r6 = com.google.android.gms.internal.clearcut.zzbn.zzt(r5);\n r3 = r3 + r6;\n r3 = r3 + r5;\n goto L_0x0296;\n L_0x021d:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzq(r3, r5, r11);\n goto L_0x0296;\n L_0x0227:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzu(r3, r5, r11);\n goto L_0x0296;\n L_0x0230:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzr(r3, r5, r11);\n goto L_0x0296;\n L_0x0239:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzt(r3, r5, r11);\n goto L_0x0296;\n L_0x0242:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzd(r3, r5);\n goto L_0x0296;\n L_0x024b:\n r5 = zzd(r1, r5);\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzc(r3, r5, r6);\n goto L_0x0296;\n L_0x0258:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzc(r3, r5);\n goto L_0x0296;\n L_0x0261:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzx(r3, r5, r11);\n goto L_0x0296;\n L_0x026a:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzs(r3, r5, r11);\n goto L_0x0296;\n L_0x0273:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzp(r3, r5, r11);\n goto L_0x0296;\n L_0x027c:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzo(r3, r5, r11);\n goto L_0x0296;\n L_0x0285:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzv(r3, r5, r11);\n goto L_0x0296;\n L_0x028e:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzw(r3, r5, r11);\n L_0x0296:\n r13 = r13 + r3;\n goto L_0x03aa;\n L_0x0299:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x029f:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r5 = (com.google.android.gms.internal.clearcut.zzdo) r5;\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzc(r3, r5, r6);\n goto L_0x0296;\n L_0x02ae:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02b4:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzk(r1, r5);\n L_0x02b8:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzf(r3, r5);\n goto L_0x0296;\n L_0x02bd:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02c3:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x02c7:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzi(r3, r5);\n goto L_0x0296;\n L_0x02cc:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x02d2:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzh(r3, r9);\n goto L_0x0296;\n L_0x02d7:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x02dd:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzk(r3, r11);\n goto L_0x0296;\n L_0x02e2:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02e8:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x02ec:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzl(r3, r5);\n goto L_0x0296;\n L_0x02f1:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02f7:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x02fb:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzh(r3, r5);\n goto L_0x0296;\n L_0x0300:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0306:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n L_0x030a:\n r5 = (com.google.android.gms.internal.clearcut.zzbb) r5;\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzc(r3, r5);\n goto L_0x0296;\n L_0x0311:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0317:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzc(r3, r5, r6);\n goto L_0x0296;\n L_0x0325:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x032b:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r5 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r6 == 0) goto L_0x0334;\n L_0x0333:\n goto L_0x030a;\n L_0x0334:\n r5 = (java.lang.String) r5;\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzb(r3, r5);\n goto L_0x0296;\n L_0x033c:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x0342:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzc(r3, r7);\n goto L_0x0296;\n L_0x0348:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x034e:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzj(r3, r11);\n goto L_0x0296;\n L_0x0354:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x035a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzg(r3, r9);\n goto L_0x0296;\n L_0x0360:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0366:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x036a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzg(r3, r5);\n goto L_0x0296;\n L_0x0370:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0376:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzk(r1, r5);\n L_0x037a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zze(r3, r5);\n goto L_0x0296;\n L_0x0380:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0386:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzk(r1, r5);\n L_0x038a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzd(r3, r5);\n goto L_0x0296;\n L_0x0390:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x0396:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzb(r3, r4);\n goto L_0x0296;\n L_0x039c:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x03a2:\n r5 = 0;\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzb(r3, r5);\n goto L_0x0296;\n L_0x03aa:\n r12 = r12 + 4;\n r3 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n goto L_0x0016;\n L_0x03b0:\n r2 = r0.zzmx;\n r1 = zza(r2, r1);\n r13 = r13 + r1;\n return r13;\n L_0x03b8:\n r2 = zzmh;\n r3 = -1;\n r6 = r3;\n r3 = r11;\n r5 = r3;\n r12 = r5;\n L_0x03bf:\n r13 = r0.zzmi;\n r13 = r13.length;\n if (r3 >= r13) goto L_0x07d7;\n L_0x03c4:\n r13 = r0.zzag(r3);\n r14 = r0.zzmi;\n r14 = r14[r3];\n r15 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r16 = r13 & r15;\n r15 = r16 >>> 20;\n r4 = 17;\n if (r15 > r4) goto L_0x03eb;\n L_0x03d6:\n r4 = r0.zzmi;\n r16 = r3 + 2;\n r4 = r4[r16];\n r11 = r4 & r8;\n r16 = r4 >>> 20;\n r16 = r7 << r16;\n if (r11 == r6) goto L_0x040c;\n L_0x03e4:\n r9 = (long) r11;\n r12 = r2.getInt(r1, r9);\n r6 = r11;\n goto L_0x040c;\n L_0x03eb:\n r4 = r0.zzmr;\n if (r4 == 0) goto L_0x0409;\n L_0x03ef:\n r4 = com.google.android.gms.internal.clearcut.zzcb.DOUBLE_LIST_PACKED;\n r4 = r4.id();\n if (r15 < r4) goto L_0x0409;\n L_0x03f7:\n r4 = com.google.android.gms.internal.clearcut.zzcb.SINT64_LIST_PACKED;\n r4 = r4.id();\n if (r15 > r4) goto L_0x0409;\n L_0x03ff:\n r4 = r0.zzmi;\n r9 = r3 + 2;\n r4 = r4[r9];\n r11 = r4 & r8;\n r4 = r11;\n goto L_0x040a;\n L_0x0409:\n r4 = 0;\n L_0x040a:\n r16 = 0;\n L_0x040c:\n r9 = r13 & r8;\n r9 = (long) r9;\n switch(r15) {\n case 0: goto L_0x07c0;\n case 1: goto L_0x07b0;\n case 2: goto L_0x079e;\n case 3: goto L_0x078e;\n case 4: goto L_0x077e;\n case 5: goto L_0x076f;\n case 6: goto L_0x0763;\n case 7: goto L_0x0759;\n case 8: goto L_0x0744;\n case 9: goto L_0x0732;\n case 10: goto L_0x0723;\n case 11: goto L_0x0716;\n case 12: goto L_0x0709;\n case 13: goto L_0x06fe;\n case 14: goto L_0x06f3;\n case 15: goto L_0x06e6;\n case 16: goto L_0x06d9;\n case 17: goto L_0x06c6;\n case 18: goto L_0x06b2;\n case 19: goto L_0x06a4;\n case 20: goto L_0x0698;\n case 21: goto L_0x068c;\n case 22: goto L_0x0680;\n case 23: goto L_0x0674;\n case 24: goto L_0x06a4;\n case 25: goto L_0x0668;\n case 26: goto L_0x065d;\n case 27: goto L_0x064e;\n case 28: goto L_0x0642;\n case 29: goto L_0x0635;\n case 30: goto L_0x0628;\n case 31: goto L_0x06a4;\n case 32: goto L_0x0674;\n case 33: goto L_0x061b;\n case 34: goto L_0x060e;\n case 35: goto L_0x05ee;\n case 36: goto L_0x05dd;\n case 37: goto L_0x05cc;\n case 38: goto L_0x05bb;\n case 39: goto L_0x05aa;\n case 40: goto L_0x0599;\n case 41: goto L_0x0588;\n case 42: goto L_0x0576;\n case 43: goto L_0x0564;\n case 44: goto L_0x0552;\n case 45: goto L_0x0540;\n case 46: goto L_0x052e;\n case 47: goto L_0x051c;\n case 48: goto L_0x050a;\n case 49: goto L_0x04fa;\n case 50: goto L_0x04ea;\n case 51: goto L_0x04dc;\n case 52: goto L_0x04cf;\n case 53: goto L_0x04bf;\n case 54: goto L_0x04af;\n case 55: goto L_0x049f;\n case 56: goto L_0x0491;\n case 57: goto L_0x0484;\n case 58: goto L_0x047c;\n case 59: goto L_0x046c;\n case 60: goto L_0x0464;\n case 61: goto L_0x045c;\n case 62: goto L_0x0450;\n case 63: goto L_0x0444;\n case 64: goto L_0x043c;\n case 65: goto L_0x0434;\n case 66: goto L_0x0428;\n case 67: goto L_0x041c;\n case 68: goto L_0x0414;\n default: goto L_0x0412;\n };\n L_0x0412:\n goto L_0x06be;\n L_0x0414:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x041a:\n goto L_0x06ca;\n L_0x041c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0422:\n r9 = zzh(r1, r9);\n goto L_0x06e1;\n L_0x0428:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x042e:\n r4 = zzg(r1, r9);\n goto L_0x06ee;\n L_0x0434:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x043a:\n goto L_0x06f7;\n L_0x043c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0442:\n goto L_0x0702;\n L_0x0444:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x044a:\n r4 = zzg(r1, r9);\n goto L_0x0711;\n L_0x0450:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0456:\n r4 = zzg(r1, r9);\n goto L_0x071e;\n L_0x045c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0462:\n goto L_0x0727;\n L_0x0464:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x046a:\n goto L_0x0736;\n L_0x046c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0472:\n r4 = r2.getObject(r1, r9);\n r9 = r4 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r9 == 0) goto L_0x0751;\n L_0x047a:\n goto L_0x0750;\n L_0x047c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0482:\n goto L_0x075d;\n L_0x0484:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x048a:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzj(r14, r4);\n goto L_0x0707;\n L_0x0491:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0497:\n r9 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r9);\n goto L_0x06bd;\n L_0x049f:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04a5:\n r4 = zzg(r1, r9);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r4);\n goto L_0x06bd;\n L_0x04af:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04b5:\n r9 = zzh(r1, r9);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zze(r14, r9);\n goto L_0x06bd;\n L_0x04bf:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04c5:\n r9 = zzh(r1, r9);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzd(r14, r9);\n goto L_0x06bd;\n L_0x04cf:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04d5:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r4);\n goto L_0x0707;\n L_0x04dc:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04e2:\n r9 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r9);\n goto L_0x06bd;\n L_0x04ea:\n r4 = r0.zzmz;\n r9 = r2.getObject(r1, r9);\n r10 = r0.zzae(r3);\n r4 = r4.zzb(r14, r9, r10);\n goto L_0x06bd;\n L_0x04fa:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzd(r14, r4, r9);\n goto L_0x06bd;\n L_0x050a:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzc(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0516:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x051a:\n goto L_0x05fe;\n L_0x051c:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzg(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0528:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x052c:\n goto L_0x05fe;\n L_0x052e:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzi(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x053a:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x053e:\n goto L_0x05fe;\n L_0x0540:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzh(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x054c:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0550:\n goto L_0x05fe;\n L_0x0552:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzd(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x055e:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0562:\n goto L_0x05fe;\n L_0x0564:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzf(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0570:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0574:\n goto L_0x05fe;\n L_0x0576:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzj(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0582:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0586:\n goto L_0x05fe;\n L_0x0588:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzh(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0594:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0598:\n goto L_0x05fe;\n L_0x0599:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzi(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05a5:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05a9:\n goto L_0x05fe;\n L_0x05aa:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zze(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05b6:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05ba:\n goto L_0x05fe;\n L_0x05bb:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzb(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05c7:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05cb:\n goto L_0x05fe;\n L_0x05cc:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zza(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05d8:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05dc:\n goto L_0x05fe;\n L_0x05dd:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzh(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05e9:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05ed:\n goto L_0x05fe;\n L_0x05ee:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzi(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05fa:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05fe:\n r10 = (long) r4;\n r2.putInt(r1, r10, r9);\n L_0x0602:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzr(r14);\n r10 = com.google.android.gms.internal.clearcut.zzbn.zzt(r9);\n r4 = r4 + r10;\n r4 = r4 + r9;\n goto L_0x06bd;\n L_0x060e:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r11 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzq(r14, r4, r11);\n goto L_0x06af;\n L_0x061b:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzu(r14, r4, r11);\n goto L_0x06af;\n L_0x0628:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzr(r14, r4, r11);\n goto L_0x06af;\n L_0x0635:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzt(r14, r4, r11);\n goto L_0x06bd;\n L_0x0642:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzd(r14, r4);\n goto L_0x06bd;\n L_0x064e:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzc(r14, r4, r9);\n goto L_0x06bd;\n L_0x065d:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzc(r14, r4);\n goto L_0x06bd;\n L_0x0668:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r11 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzx(r14, r4, r11);\n goto L_0x06af;\n L_0x0674:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzw(r14, r4, r11);\n goto L_0x06af;\n L_0x0680:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzs(r14, r4, r11);\n goto L_0x06af;\n L_0x068c:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzp(r14, r4, r11);\n goto L_0x06af;\n L_0x0698:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzo(r14, r4, r11);\n goto L_0x06af;\n L_0x06a4:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzv(r14, r4, r11);\n L_0x06af:\n r5 = r5 + r4;\n r4 = r11;\n goto L_0x06bf;\n L_0x06b2:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzw(r14, r4, r11);\n L_0x06bd:\n r5 = r5 + r4;\n L_0x06be:\n r4 = 0;\n L_0x06bf:\n r9 = 0;\n r10 = 0;\n r18 = 0;\n goto L_0x07cf;\n L_0x06c6:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06ca:\n r4 = r2.getObject(r1, r9);\n r4 = (com.google.android.gms.internal.clearcut.zzdo) r4;\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzc(r14, r4, r9);\n goto L_0x06bd;\n L_0x06d9:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06dd:\n r9 = r2.getLong(r1, r9);\n L_0x06e1:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzf(r14, r9);\n goto L_0x06bd;\n L_0x06e6:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06ea:\n r4 = r2.getInt(r1, r9);\n L_0x06ee:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzi(r14, r4);\n goto L_0x06bd;\n L_0x06f3:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06f7:\n r9 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzh(r14, r9);\n goto L_0x06bd;\n L_0x06fe:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0702:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzk(r14, r4);\n L_0x0707:\n r5 = r5 + r9;\n goto L_0x06be;\n L_0x0709:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x070d:\n r4 = r2.getInt(r1, r9);\n L_0x0711:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzl(r14, r4);\n goto L_0x06bd;\n L_0x0716:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x071a:\n r4 = r2.getInt(r1, r9);\n L_0x071e:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzh(r14, r4);\n goto L_0x06bd;\n L_0x0723:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0727:\n r4 = r2.getObject(r1, r9);\n L_0x072b:\n r4 = (com.google.android.gms.internal.clearcut.zzbb) r4;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzc(r14, r4);\n goto L_0x06bd;\n L_0x0732:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0736:\n r4 = r2.getObject(r1, r9);\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzc(r14, r4, r9);\n goto L_0x06bd;\n L_0x0744:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0748:\n r4 = r2.getObject(r1, r9);\n r9 = r4 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r9 == 0) goto L_0x0751;\n L_0x0750:\n goto L_0x072b;\n L_0x0751:\n r4 = (java.lang.String) r4;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r4);\n goto L_0x06bd;\n L_0x0759:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x075d:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzc(r14, r7);\n goto L_0x06bd;\n L_0x0763:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0767:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzj(r14, r4);\n r5 = r5 + r9;\n goto L_0x06bf;\n L_0x076f:\n r4 = 0;\n r9 = r12 & r16;\n if (r9 == 0) goto L_0x06bf;\n L_0x0774:\n r9 = 0;\n r11 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r9);\n r5 = r5 + r11;\n r18 = r9;\n goto L_0x07ae;\n L_0x077e:\n r4 = 0;\n r18 = 0;\n r11 = r12 & r16;\n if (r11 == 0) goto L_0x07ae;\n L_0x0785:\n r9 = r2.getInt(r1, r9);\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r9);\n goto L_0x07ad;\n L_0x078e:\n r4 = 0;\n r18 = 0;\n r11 = r12 & r16;\n if (r11 == 0) goto L_0x07ae;\n L_0x0795:\n r9 = r2.getLong(r1, r9);\n r9 = com.google.android.gms.internal.clearcut.zzbn.zze(r14, r9);\n goto L_0x07ad;\n L_0x079e:\n r4 = 0;\n r18 = 0;\n r11 = r12 & r16;\n if (r11 == 0) goto L_0x07ae;\n L_0x07a5:\n r9 = r2.getLong(r1, r9);\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzd(r14, r9);\n L_0x07ad:\n r5 = r5 + r9;\n L_0x07ae:\n r9 = 0;\n goto L_0x07bd;\n L_0x07b0:\n r4 = 0;\n r18 = 0;\n r9 = r12 & r16;\n if (r9 == 0) goto L_0x07ae;\n L_0x07b7:\n r9 = 0;\n r10 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r9);\n r5 = r5 + r10;\n L_0x07bd:\n r10 = 0;\n goto L_0x07cf;\n L_0x07c0:\n r4 = 0;\n r9 = 0;\n r18 = 0;\n r10 = r12 & r16;\n if (r10 == 0) goto L_0x07bd;\n L_0x07c8:\n r10 = 0;\n r13 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r10);\n r5 = r5 + r13;\n L_0x07cf:\n r3 = r3 + 4;\n r11 = r4;\n r4 = r9;\n r9 = r18;\n goto L_0x03bf;\n L_0x07d7:\n r2 = r0.zzmx;\n r2 = zza(r2, r1);\n r5 = r5 + r2;\n r2 = r0.zzmo;\n if (r2 == 0) goto L_0x07ed;\n L_0x07e2:\n r2 = r0.zzmy;\n r1 = r2.zza(r1);\n r1 = r1.zzas();\n r5 = r5 + r1;\n L_0x07ed:\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zzm(java.lang.Object):int\");\n }", "private zzdov(zzdor zzdor, Object obj) {\n this.zzhgu = zzdor;\n this.zzhgq = obj;\n }", "public interface zzxu<T> {\n boolean equals(T t, T t2);\n\n int hashCode(T t);\n\n T newInstance();\n\n void zza(T t, zzxt zzxt, zzvk zzvk) throws IOException;\n\n void zza(T t, zzzh zzzh) throws IOException;\n\n int zzai(T t);\n\n boolean zzaj(T t);\n\n void zzd(T t, T t2);\n\n void zzy(T t);\n}", "public final void zza(zzk zzk, zzk zzk2) {\n zzhwj.putObject(zzk, zzhwo, zzk2);\n }", "private int z(int i, Complex prevZ) {\n\t\t\tif(i == 0) return z(1, Complex.ZERO);\n\t\t\tif(i >= maxIts) return maxIts;\n\t\t\telse {\n\t\t\t\tComplex res = c.add(prevZ.square());\n\t\t\t\tif (res.modulusSquared() < 4.0) {\n\t\t\t\t\treturn z(i+1, res);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tescapeZ = res;\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public double getZ() {\r\n return z;\r\n }", "public int getZ() {\n\t\treturn -150;\n\t}", "public final Object zza(int object, Object clazz, Object object2) {\n clazz = (Class<zzhv$zzd>)zzhx.zza;\n byte by2 = 1;\n object -= by2;\n object = clazz[object];\n clazz = null;\n switch (object) {\n default: {\n UnsupportedOperationException unsupportedOperationException = new UnsupportedOperationException();\n throw unsupportedOperationException;\n }\n case 7: {\n return null;\n }\n case 6: {\n return by2;\n }\n case 5: {\n Object object3 = zzl;\n if (object3 != null) return object3;\n clazz = zzhv$zzd.class;\n synchronized (clazz) {\n object3 = zzl;\n if (object3 != null) return object3;\n object2 = zzk;\n zzl = object3 = new zzej$zzc((zzej)object2);\n return object3;\n }\n }\n case 4: {\n return zzk;\n }\n case 3: {\n Object[] objectArray = new Object[8];\n objectArray[0] = \"zzc\";\n objectArray[by2] = \"zzd\";\n objectArray[2] = \"zze\";\n objectArray[3] = \"zzf\";\n objectArray[4] = \"zzg\";\n objectArray[5] = \"zzh\";\n objectArray[6] = \"zzi\";\n objectArray[7] = \"zzj\";\n return zzej.zza(zzk, \"\\u0001\\u0007\\u0000\\u0001\\u0001\\u0007\\u0007\\u0000\\u0000\\u0000\\u0001\\u1008\\u0000\\u0002\\u1008\\u0001\\u0003\\u1008\\u0002\\u0004\\u1004\\u0003\\u0005\\u1004\\u0004\\u0006\\u1008\\u0005\\u0007\\u1004\\u0006\", objectArray);\n }\n case 2: {\n return new zzhv$zzd$zza(null);\n }\n case 1: \n }\n return new zzhv$zzd();\n }", "public int zzz() {\n int zzz = super.zzz();\n if (this.zzbuM != 0) {\n zzz += zzsn.zzC(1, this.zzbuM);\n }\n if (!this.zzbuN.equals(\"\")) {\n zzz += zzsn.zzo(2, this.zzbuN);\n }\n return !this.version.equals(\"\") ? zzz + zzsn.zzo(3, this.version) : zzz;\n }", "public abstract T zzm(B b);", "public abstract void zzc(B b, int i, int i2);", "public int getZ() {\n return Z;\n }", "public final zzgs zzb() {\n Object object = this.zzc;\n if (object != null) {\n return this.zzc;\n }\n synchronized (this) {\n object = this.zzc;\n if (object != null) {\n return this.zzc;\n }\n object = this.zza;\n if (object == null) {\n this.zzc = object = zzgs.zzb;\n return this.zzc;\n } else {\n object = this.zza;\n this.zzc = object = object.zzbo();\n }\n return this.zzc;\n }\n }", "public abstract void zza(zzeim zzeim) throws IOException;", "private final synchronized void zza(com.google.android.gms.internal.cast.zzcp r10) {\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r10.zzwy;\t Catch:{ all -> 0x008b }\n r1 = 1;\n if (r0 != r1) goto L_0x0007;\n L_0x0006:\n goto L_0x0008;\n L_0x0007:\n r1 = 0;\n L_0x0008:\n r0 = r9.zzwa;\t Catch:{ all -> 0x008b }\n r9.zzwb = r0;\t Catch:{ all -> 0x008b }\n if (r1 == 0) goto L_0x0016;\n L_0x000e:\n r0 = r10.zzxk;\t Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0016;\n L_0x0012:\n r0 = r10.zzxk;\t Catch:{ all -> 0x008b }\n r9.zzvy = r0;\t Catch:{ all -> 0x008b }\n L_0x0016:\n r0 = r9.isInitialized();\t Catch:{ all -> 0x008b }\n if (r0 != 0) goto L_0x001e;\n L_0x001c:\n monitor-exit(r9);\n return;\n L_0x001e:\n r6 = new java.util.ArrayList;\t Catch:{ all -> 0x008b }\n r6.<init>();\t Catch:{ all -> 0x008b }\n r0 = r10.zzxe;\t Catch:{ all -> 0x008b }\n r0 = r0.iterator();\t Catch:{ all -> 0x008b }\n L_0x0029:\n r1 = r0.hasNext();\t Catch:{ all -> 0x008b }\n if (r1 == 0) goto L_0x0050;\n L_0x002f:\n r1 = r0.next();\t Catch:{ all -> 0x008b }\n r1 = (com.google.android.gms.internal.cast.zzcs) r1;\t Catch:{ all -> 0x008b }\n r2 = r1.getPlayerId();\t Catch:{ all -> 0x008b }\n r3 = new com.google.android.gms.internal.cast.zzcr;\t Catch:{ all -> 0x008b }\n r4 = r1.getPlayerState();\t Catch:{ all -> 0x008b }\n r1 = r1.getPlayerData();\t Catch:{ all -> 0x008b }\n r5 = r9.zzvv;\t Catch:{ all -> 0x008b }\n r5 = r5.containsKey(r2);\t Catch:{ all -> 0x008b }\n r3.<init>(r2, r4, r1, r5);\t Catch:{ all -> 0x008b }\n r6.add(r3);\t Catch:{ all -> 0x008b }\n goto L_0x0029;\n L_0x0050:\n r0 = new com.google.android.gms.internal.cast.zzcq;\t Catch:{ all -> 0x008b }\n r2 = r10.zzxd;\t Catch:{ all -> 0x008b }\n r3 = r10.zzxc;\t Catch:{ all -> 0x008b }\n r4 = r10.zzxg;\t Catch:{ all -> 0x008b }\n r5 = r10.zzxf;\t Catch:{ all -> 0x008b }\n r1 = r9.zzvy;\t Catch:{ all -> 0x008b }\n r7 = r1.zzeo();\t Catch:{ all -> 0x008b }\n r1 = r9.zzvy;\t Catch:{ all -> 0x008b }\n r8 = r1.getMaxPlayers();\t Catch:{ all -> 0x008b }\n r1 = r0;\n r1.<init>(r2, r3, r4, r5, r6, r7, r8);\t Catch:{ all -> 0x008b }\n r9.zzwa = r0;\t Catch:{ all -> 0x008b }\n r0 = r9.zzwa;\t Catch:{ all -> 0x008b }\n r1 = r10.zzxh;\t Catch:{ all -> 0x008b }\n r0 = r0.getPlayer(r1);\t Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0089;\n L_0x0076:\n r0 = r0.isControllable();\t Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0089;\n L_0x007c:\n r0 = r10.zzwy;\t Catch:{ all -> 0x008b }\n r1 = 2;\n if (r0 != r1) goto L_0x0089;\n L_0x0081:\n r0 = r10.zzxh;\t Catch:{ all -> 0x008b }\n r9.zzwc = r0;\t Catch:{ all -> 0x008b }\n r10 = r10.zzxb;\t Catch:{ all -> 0x008b }\n r9.zzwd = r10;\t Catch:{ all -> 0x008b }\n L_0x0089:\n monitor-exit(r9);\n return;\n L_0x008b:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.cast.zzcb.zza(com.google.android.gms.internal.cast.zzcp):void\");\n }", "public final Field zzi() {\n int i = (this.zzf << 1) + (this.zzab / 32);\n Object obj = this.zzb[i];\n if (obj instanceof Field) {\n return (Field) obj;\n }\n Field zza2 = zza(this.zzc, (String) obj);\n this.zzb[i] = zza2;\n return zza2;\n }" ]
[ "0.65399295", "0.65334034", "0.64992756", "0.6454422", "0.633271", "0.62128067", "0.6165423", "0.6165423", "0.6165423", "0.6124191", "0.6119251", "0.6119251", "0.6119251", "0.6111508", "0.6058931", "0.6057021", "0.60344595", "0.60329384", "0.6026692", "0.60265875", "0.60090643", "0.60015476", "0.59916204", "0.59868807", "0.5966742", "0.5962328", "0.5959908", "0.5950133", "0.5937225", "0.59305114", "0.5909523", "0.5896074", "0.58937067", "0.58822435", "0.5875918", "0.5869021", "0.5861839", "0.58500874", "0.584332", "0.583558", "0.5828215", "0.58276737", "0.58085203", "0.57982826", "0.5793625", "0.5793403", "0.57862216", "0.5781589", "0.577973", "0.5777325", "0.57716244", "0.57704353", "0.57660896", "0.5764553", "0.5763785", "0.5761825", "0.57547253", "0.5751477", "0.5750488", "0.5750072", "0.57319945", "0.5724433", "0.5723913", "0.57236886", "0.5723357", "0.57115096", "0.570868", "0.5696391", "0.5695148", "0.5693966", "0.56873304", "0.5683306", "0.56806487", "0.56798536", "0.56783986", "0.5667085", "0.5655639", "0.56553", "0.5653214", "0.56522834", "0.5646758", "0.5643013", "0.56303364", "0.56303364", "0.5630038", "0.56300056", "0.56173056", "0.561043", "0.56092876", "0.56087923", "0.5607316", "0.56033486", "0.55936134", "0.5592686", "0.5592032", "0.5589782", "0.55895454", "0.5589064", "0.5578793", "0.5572756", "0.55636305" ]
0.0
-1
Use a Scanner to input integer values
public static void main( String [] args ) { Scanner input = new Scanner( System.in ); int weightInput = 0; // Init weight input int heightInput = 0; // Init height input double weightKg = 0; // Init weight conversion double heightM = 0; // Init height conversion double actual = 0; float bmi = 0; // Init calculated bmi System.out.println("\n\n"); System.out.print( "Enter body weight(lbs):" ); // promt for weight weightInput = input.nextInt(); // Input weight value System.out.print( "Enter body height(in):" ); // promt for height heightInput = input.nextInt(); // Input height value weightKg = weightInput * .45349237 ; // convert weight heightM = heightInput * .0254 ; // convert height actual = weightKg / (heightM * heightM); // calculate BMI bmi = (float) actual; //simplify BMI // Output BMI and Chart System.out.println("\n"); System.out.println("-------------------------------"); System.out.println("Your Body Mass Index: " + bmi); System.out.println("-------------------------------"); System.out.println("\n"); System.out.println("-------------------------------"); System.out.println("Underweight: less than 18.5"); System.out.println("Normal: 18.5 – 24.9"); System.out.println("Overweight: 25 – 29.9"); System.out.println("Obese: 30 or greater"); System.out.println("-------------------------------"); System.out.println("\n\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Integer scanInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "public static int getInt(Scanner sc, String prompt) {\n\t\tint i = 0;\n\t\tboolean isValid = false;\n\t\twhile (isValid == false) {\n\t\t\tSystem.out.print(prompt);\n\t\t\tif (sc.hasNextInt()) {\n\t\t\t\ti = sc.nextInt();\n\t\t\t\tisValid = true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Error! Invalid integer value. Try again.\");\n\t\t\t}\n\t\t\tsc.nextLine(); // discard any other data entered on the line\n\t\t}\n\t\treturn i;\n\t}", "public static int inputInteger()\n\t{\n\t\treturn(sc.nextInt());\n\t}", "public static int getInt(Scanner scnr, String prompt) {\n\t\tSystem.out.print(prompt);\n\t\ttry {\n\t\t\tint num = scnr.nextInt();\n\t\t\tscnr.nextLine();\n\t\t\treturn num;\n\t\t} catch (ArrayIndexOutOfBoundsException | IllegalArgumentException | InputMismatchException ex) {\n\t\t\tSystem.out.print(\"Enter a whole number 1-8.\");\n\t\t\tscnr.nextLine();\n\t\t\treturn getInt(scnr, prompt);\n\t\t}\n\t}", "public static int inputInt(String p) {\n String tmp;\n int i = 0;\n\n do {\n System.out.print(p);\n try {\n tmp = in.nextLine();\n if (Integer.parseInt(tmp) == Integer.parseInt(tmp)) {\n i = Integer.parseInt(tmp);\n }\n break;\n } catch (Exception e) {\n System.err.print(\"You must be enter interger number, enter again.\\n\");\n }\n } while (true);\n return i;\n }", "public static Integer getInteger(String prompt)\n {\n Integer i = 0;\n while(true)\n {\n try\n {\n System.out.print(prompt + \" \");\n i = Integer.parseInt(in.nextLine());\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Integer\");\n }\n }\n return i; \n }", "public static void main(String[] args) {\n\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Testing Int Inputs\");\n System.out.print(\"Enter Number 1: \");\n int number1 = scanner.nextInt();\n System.out.println(number1);\n System.out.println(\"Enter Number 2: \");\n int number2 = scanner.nextInt();\n System.out.println(number2);\n }", "public static int getInt()\n {\n int num=0;\n while (true)\n {\n Scanner keyboard = new Scanner(System.in);\n try{\n num = keyboard.nextInt();\n return num;\n }\n catch (java.util.InputMismatchException textException)\n {\n System.out.printf(\"result:\");\n }\n }\n }", "public static int integerValidation() {\n\t\tboolean flag = true;\n\t\tint input = 0;\n\t\tString temp = \"\";\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\ttemp = in.nextLine().trim();\n\t\t\t\tinput = Integer.parseInt(temp);\n\t\t\t\tflag = false;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Please Enter a valid input\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "private static int validateInput() {\n Scanner genericInt = new Scanner(System.in);\n int number = 0;\n if (genericInt.hasNextInt()) {\n number = genericInt.nextInt();\n return number;\n }\n else {\n validateInput();\n }\n return number;\n }", "public Integer getData() {\r\n Scanner cs = new Scanner(System.in);\r\n int data = 0;\r\n while (true) {\r\n try {\r\n data = cs.nextInt();\r\n break;\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"You should insert an Integer\");\r\n cs.next();\r\n }\r\n }\r\n return data;\r\n }", "public static int getInt(Scanner console, String prompt) {\r\n System.out.print(prompt);\r\n while (!console.hasNextInt()) {\r\n console.next(); // to discard the input\r\n System.out.println(\"Not an integer; try again.\");\r\n System.out.print(prompt);}return console.nextInt();\r\n }", "public static Integer getInteger()\n {\n Integer i = 0;\n while(true)\n {\n try\n {\n System.out.print(\"Please enter an integer\");\n i = Integer.parseInt(in.nextLine());\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Integer\");\n }\n }\n return i; \n }", "private int nextPick(Scanner scanner) {\n String input = scanner.nextLine();\n try {\n int result = Integer.parseInt(input);\n return result;\n } catch (Exception e) {\n System.out.println(\"Enter a number from the menu.\");\n return -1;\n }\n\n }", "public static int ReadNum(InputStream input,PrintStream output) {\r\n\t\t//Scanner in = new Scanner(System.in);\r\n\t\tScanner in = new Scanner(new FilterInputStream(input){public void close(){}});\r\n\t\tin.reset();\r\n\t\toutput.println(\"Please provide with a positive intiger.\\nNegative intiger will terminate the loop\");\r\n\t\tint num;\r\n\t\ttry {\r\n\t\t\tnum = Integer.parseInt(in.next()); // To do: Verify user input\r\n\t\t} catch (InputMismatchException e) { // Catch input mismatch Exception\r\n\t\t\toutput.printf(\"Invalid input:\\\"%s\\\" :( . Please provide an integer.\\n\",in.next());\r\n\t\t\tnum = ReadNum(input, output);\r\n\t\t}finally{\r\n\t\t\t//do nothing\r\n\t\t\t//\r\n\t\t}\r\n\t\tin.close();\r\n\t\treturn num;\r\n\t}", "public int userInputInteger() {\n Scanner scanner = new Scanner(System.in);\n int userInputInteger;\n try {\n userInputInteger = Integer.parseInt(scanner.nextLine());\n } catch (NumberFormatException e) {\n System.out.print(\"Please input a valid Integer number: \");\n return userInputInteger();\n } finally {\n System.out.print(\"\");\n }\n return userInputInteger;\n }", "public int getUserIntInput(String question) {\r\n System.out.print(question);\r\n while (!scanner.hasNextInt()) {\r\n scanner.next();\r\n }\r\n int result = scanner.nextInt();\r\n return result;\r\n }", "private static Integer[] readInputFromUser(Scanner in) {\n\t\tInteger[] array = null;\n\t\t/**\n\t\t * Accept the quantity of the data along with actual data.\n\t\t */\n\t\tSystem.out.print(\"Please enter number of integers you want to input:\");\n\t\tint s = in.nextInt();\n\t\tarray = new Integer[s];\n\t\tSystem.out.print(\"Please enter Integers:\");\n\n\t\tfor (int i = 0; i < s; i++) {\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\t\tSystem.out.println(\"Input Array: \" + Arrays.toString(array));\n\t\treturn array;\n\t}", "public static void validateInput(Scanner in) {\n\t\twhile (!in.hasNextInt()) {\n\t\t\tSystem.out.println(\"That's not an integer!\");\n\t\t\tin.next();\n\t\t\tSystem.out.print(\"Please try again: \");\n\t\t}\n\t}", "public int parseInt() {\n\t\tboolean validInt = false;\n\t\tint num = -1;\n\t\twhile(!validInt) {\n\t\t\ttry {\n\t\t\t\tnum = scanner.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(ConsoleColors.RED +\"Invalid input. Please enter a number\" + ConsoleColors.RESET);\n\t\t\t\tscanner.next();\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}", "private static int getInt()\n\t{\n\t\tScanner kb;\n\t\tint Val;\n\t\tkb = new Scanner(System.in);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\n\t\twhile (!kb.hasNextInt())\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\tkb = new Scanner(System.in);\n\t\t}\n\t\t\n\t\tVal = kb.nextInt();\n\t\t\n\t\twhile (Val < 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Fail. Try harder!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\t\n\t\t\twhile (!kb.hasNextInt())\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\t\tkb = new Scanner(System.in);\n\t\t\t}\n\t\t\tVal = kb.nextInt();\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\treturn Val;\n\t\t\n\t}", "public static int promptInt(Scanner console) {\n int num = 0;\n try {\n num = console.nextInt();\n } catch (InputMismatchException e) {\n console.next();\n }\n return num;\n }", "public static int getIntInput(Scanner console, int min, int max)\n {\n if (console.hasNextInt())\n {\n int num = console.nextInt();\n console.nextLine();\n if (min <= num && num <= max)\n {\n return num;\n }\n }\n console.nextLine();\n System.out.print(\"Invalid input. Please enter an integer between \" + min + \" and \" + max +\": \");\n return getIntInput(console, min, max);\n }", "List<Integer> fromScannerInput() throws IOException {\n\t\tfinal List<Integer> array = new ArrayList<>();\n\t\twhile (scanner.hasNext()) {\n\t\t\tarray.add(\n\t\t\t\t\tInteger.parseInt(\n\t\t\t\t\t\t\tscanner.next()));\n\t\t}\n\t\treturn array;\n\t}", "public int user_integer() {\n Scanner input = new Scanner(System.in);\n boolean conditional = true;\n while (conditional) {\n boolean condition = input.hasNextInt();\n if (condition) {\n int user_input = input.nextInt();\n conditional = false; \n return user_input; \n }\n else {\n System.out.println(\"Invalid Input!\");\n conditional = true;\n input.next();\n }\n }\n return 0;\n }", "private static int getIntegerInput() {\n\t\tScanner integer_input = new Scanner(System.in);\n\t\tboolean valid_inputType = false;\n\t\tint menu_option = -1;\n\t\t\n\t\t/*Repeatedly asks user to enter input until user enters an integer value as input*/\n\t\twhile(!valid_inputType){\n\t\t\ttry{\n\t\t\t\tmenu_option = integer_input.nextInt(); //get menu option to execute\n\t\t\t\tvalid_inputType = true;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"ERROR! Invalid Input Type: Input must be a number\");\n\t\t\t\tSystem.out.println(\"Re-enter input: \");\n\t\t\t\tinteger_input = new Scanner(System.in); //clears value previously in integer_input so that user can enter a new value into menu_option.\n\t\t\t}\n\t\t}\n\t\treturn menu_option;\n\t}", "public static int getValidInteger() {\n\n // This keeps looping until integer input is received.\n while (!scnr.hasNextInt()) {\n scnr.nextLine(); // clear the buffer\n System.out.print(\"Please enter an integer! \");\n }\n\n int integerNum = scnr.nextInt();\n scnr.nextLine();\n\n return integerNum;\n }", "private static int buscarEntero(Scanner s) {\n\t\tint Temp = -1;\n\n\t\tif (!s.hasNextLine() || !s.hasNextInt()) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tString ValorLeido = s.nextLine();\n\t\tif (ValorLeido.length() != 0) {\n\t\t\tScanner Aux = new Scanner(ValorLeido);\n\t\t\twhile (Aux.hasNextInt()) {\n\t\t\t\tTemp = Aux.nextInt();\n\t\t\t}//fin while\n\t\t\tAux.close();\n\t\t}\n\t\treturn Temp;\n\t}", "public static int getInt(int min, int max, String prompt) throws Exception {\n if (scanner == null) {\n throw new Exception(\"Input Utility's scanner is not set\");\n }\n String localPrompt = prompt;\n boolean validInput = false;\n int num = 0;\n do {\n if (localPrompt != null) {\n System.out.print(localPrompt);\n }\n try {\n num = scanner.nextInt();\n scanner.nextLine();\n validInput = true;\n } catch (InputMismatchException ime) {\n System.out.println(\"That is not an integer.\");\n scanner.nextLine();\n if (localPrompt == null)\n localPrompt = String.format(\"Enter a integer between %d and %d: \", min, max);\n num = 0;\n }\n if (num < min || num > max) {\n System.out.printf(\"\\nThe number %d is out of range\\n\", num);\n if (localPrompt == null)\n localPrompt = String.format(\"Enter an integer between %d and %d: \", min, max);\n validInput = false;\n }\n } while (!validInput);\n return num;\n }", "public static int getInt() {\n while (!consoleScanner.hasNextInt()) {\n consoleScanner.next();\n }\n return consoleScanner.nextInt();\n }", "private int intKeyboardInput() {\n\t\tint input = 0;\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextInt();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "public static int checkInt(Scanner scan) {\n int a = 0;\n if (scan.hasNextInt()) {\n a = scan.nextInt();\n } //closes if\n else {\n System.out.println(\"You did not enter an int; try again\");\n Scanner in = new Scanner(System.in);\n a = checkInt( in ); //recalls scanner\n } //closes else\n return a;\n }", "public int inputIntValueWithScanner(Scanner sc, String enterConstant, int maxBarrier) {\r\n int res = 0;\r\n view.printMessage(enterConstant);\r\n\r\n while (true) {\r\n // check int - value\r\n while (!sc.hasNextInt()) {\r\n view.printMessage(View.WRONG_INPUT_INT_DATA\r\n + enterConstant);\r\n sc.next();\r\n }\r\n // check value in range\r\n if ((res = sc.nextInt()) < GlobalConstants.PRIMARY_MIN_BARRIER ||\r\n res > maxBarrier) {\r\n view.printMessage(View.WRONG_INPUT_INT_DATA\r\n + enterConstant);\r\n continue;\r\n }\r\n break;\r\n }\r\n return res;\r\n }", "static int promptForNumber() {\n String input;\n int value = -1;\n\n\n while (value == -1) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n try {\n value = Integer.parseInt(input);\n } catch (NumberFormatException e) {\n value = -1;\n }\n }\n }\n return value;\n }", "private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}", "public static int getInt(String prompt) throws Exception {\n if (scanner == null) {\n throw new Exception(\"Input Utility's scanner is not set\");\n }\n String localPrompt = prompt;\n boolean validInput = false;\n int num = 0;\n\n // enter the number\n do {\n if (localPrompt != null) {\n System.out.print(localPrompt);\n }\n try { // If (works)\n num = scanner.nextInt();\n scanner.nextLine();\n validInput = true;\n } catch (InputMismatchException ime) { // else (fails)\n System.out.println(\"That is not an integer.\");\n scanner.nextLine();\n if (localPrompt == null)\n localPrompt = \"Enter an integer: \";\n num = 0;\n }\n } while (!validInput);\n return num;\n }", "private int getNumber() {\n while (!scanner.hasNextInt()) {\n scanner.nextLine();\n System.out.print(\"Please, Enter a munber : \");\n }\n return scanner.nextInt();\n }", "public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n\n int count=0;\n\n for(int i=1;i<=10;i++)\n\n {\n System.out.println(\"Enter value: \\t\");\n\n int x=sc.nextInt(); //assign the next integer to x\n\n count=count+x;\n Scanner close;\n\n }\n\n System.out.println(\"The sum is: \"+count);\n\n }", "public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "public static int getInput() {\n Scanner in = new Scanner(System.in);\n\n return in.nextInt();\n }", "public static int readInt() {\n try {\n return scanner.nextInt();\n }\n catch (InputMismatchException e) {\n String token = scanner.next();\n throw new InputMismatchException(\"attempts to read an 'int' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attemps to read an 'int' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }", "public int userIntInput(String text, Scanner inputReader) {\n\t\tSystem.out.println(text);\n\t\treturn inputReader.nextInt();\n\t}", "public static int getNumber(Scanner input) {\r\n int number = 6;\r\n try {\r\n while (true) {\r\n System.out.print(\"Input a number: \");\r\n if (input.hasNextInt())\r\n number = input.nextInt();\r\n else {\r\n System.out.println(\"Incorrect input!\");\r\n input.next();\r\n continue;\r\n }\r\n break;\r\n }\r\n } catch (Exception ignored) { }\r\n return number;\r\n }", "public static void main(String[] args) {\n int min = 0;\n int max = 0;\n int count = 0;\n Scanner scanner = new Scanner(System.in);\n\n while (true) {\n System.out.println(\"Enter number:\");\n boolean isAnInt = scanner.hasNextInt();\n\n if (isAnInt) {\n int input = scanner.nextInt();\n if (count == 0) {\n min = input;\n max = input;\n } else if (input < min) {\n min = input;\n } else if (input > max) {\n max = input;\n }\n count++;\n } else {\n System.out.println(\"The smallest number you entered: \" + min);\n System.out.println(\"The largest number you entered: \" + max);\n break;\n }\n }\n\n scanner.close();\n }", "private static int getInt(String prompt) {\n \t\n Scanner input;\n \n int result = 10; // default if there's no input\n \n \n try {\n \n \tinput = new Scanner(System.in);\n \n System.out.println(prompt);\n \n result = input.nextInt(); //take input\n \n //in case user enters something else than int\n } catch (NumberFormatException e) {\n System.out.println(\"Could not convert to int\");\n System.out.println(e.getMessage());\n System.out.println(\"Value has been set to default (10)\");\n \n //other error exception\n } catch (Exception e) {\n System.out.println(\"There was an error with System.in\");\n System.out.println(e.getMessage()); \n System.out.println(\"Value has been set to default (10)\");\n }\n return result;\n }", "private Integer askInt(String label){\n try{\n System.out.println(label);\n String input = in.nextLine();\n if (input.isEmpty()){\n return null;\n }\n else {\n return Integer.parseInt(input);\n }\n }\n catch(NumberFormatException e){\n return askInt(label);\n }\n }", "public static int getInt(String prompt) {\n Scanner sc = new Scanner(System.in);\n int userInput;\n\n System.out.println(prompt);\n\n try {\n userInput = sc.nextInt();\n sc.close();\n return userInput;\n } catch (InputMismatchException e) {\n return getInt(prompt);\n }\n\n }", "public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }", "public int getInteger(String prompt) {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tString item = getToken(prompt);\r\n\t\t\t\tInteger number = Integer.valueOf(item);\r\n\t\t\t\treturn number.intValue();\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.println(\"Please input a number.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint[] a = new int[5];\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"5 number: \");\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"5 number: \");\n\t\tsc = new Scanner(System.in);\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = Integer.parseInt(sc.nextLine());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"5 number: \");\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = Integer.valueOf(bf.readLine()).intValue();\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\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\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"5 number: \");\n\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttry {\n\t\t\t\ta[i] = Integer.parseInt(bf.readLine());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\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\treturn;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tSystem.out.println(a[i]);\n\t\t}\n\n\t}", "public static int getInputTypeInt(Scanner sc, String msg) {\n\t\tint val = 0;\n\t\tdo {\n\t\t\tif (sc.hasNextInt()) {\n\t\t\t\tval = sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\treturn val;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(msg);\n\t\t\t\tsc.nextLine();\n\t\t\t}\n\t\t} while (true);\n\t}", "public static void main(String[] args) {\n Scanner num = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n int number = num.nextInt();\n System.out.println(number);\n }\n }", "public static int promptUserForInt(String prompt){\n Scanner scannerln = new Scanner(System.in);\n System.out.print(prompt);\n return scannerln.nextInt();\n }", "public void setValues() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor (int count = 0; count < data.size(); count++) {\n\t\t\tSystem.out.println(\"Enter an integer for grade #\" + (count+1) );\n\t\t\tdata.set(scan.nextInt(), count);\n\t\t}\n\t}", "private int getInput()\n {\n int input = 0;\n Scanner scanner = new Scanner(System.in);\n\n try {\n input = scanner.nextInt();\n }\n catch(Exception e) {\n System.out.println(\"Vælg et tal fra menuen.\");\n scanner.nextLine();\n }\n\n return input;\n }", "public static int inputInt(String prompt) {\n String errorMsg = \"Must be a positive integer >= 0\\n\";\n\n int input = -1;\n // keep prompting user until int >= 0 is input\n while (input < 0) {\n // print prompt\n System.out.print(prompt);\n\n // if the user input an int\n if (GolferScoresTree.scanner.hasNextInt()) {\n // scan the user input\n input = GolferScoresTree.scanner.nextInt();\n\n // if the input is < 0, it is invalid\n if (input < 0) {\n // print error message defining a valid value\n System.out.println(errorMsg);\n // loops and prompt user for another input\n }\n }\n // else if the user did not input an int, input is invalid\n else {\n System.out.println(errorMsg);\n }\n }\n\n return input;\n }", "private int readIntWithPrompt (String prompt) {\n System.out.print(prompt); System.out.flush();\n while (!in.hasNextInt()) {\n in.nextLine();\n System.out.print(prompt); System.out.flush();\n }\n int input = in.nextInt();\n in.nextLine();\n return input;\n }", "public static int checkInt() {\n\n\t{\n\t\tint userInput;\n\t\tboolean validInt = false;\n\t\tuserInput = 0;\n\t\tdo\n\t\t{\n\t\t\t\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\t//checks if the next entered value is an integer\n\t\t\tif (sc.hasNextInt())\n\t\t\t{\n\t\t\t // do-while loop breaks here\n\t\t\t\tuserInput = sc.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tUserInterface.displayError(\"Input is not an integer. Please enter again\");\n\t\t\t}\n\t\t}while(validInt == false);\n\t\treturn userInput;\n\t}\n\n}", "public static int getInt(Scanner scnr, String prompt, int min, int max) {\n\t\tboolean isValid = false;\n\t\tint number;\n\t\tdo {\n\t\t\tnumber = getInt(scnr, prompt);\n\t\t\t\n\t\t\tif (number < min) {\n\t\t\t\tisValid = false;\n\t\t\t\tSystem.out.println(\"The number must be at least \" + min);\n\t\t\t} else if (number > max) {\n\t\t\t\tisValid = false;\n\t\t\t\tSystem.out.println(\"The number must less than or equal to \" + max);\n\t\t\t} else {\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t\t\n\t\t} while (!isValid);\n\t\treturn number;\n\t}", "private static Integer getInteger(BufferedReader reader) throws IOException{\n Integer result=null;\n while(result==null) {\n try {\n result = Integer.parseInt(reader.readLine().trim());\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"You should feed integer for this input.\");\n }\n }\n return result;\n }", "private static int getInRangeInt(Scanner scan, int min, int max) {\n int value = -9999;\n while (value < min || value > max) {\n System.out.println(\"Must be a integer between \" + min + \" and \" + max + \" : \");\n while (!scan.hasNextInt()) {\n System.out.println(\"Must be a integer between \" + min + \" and \" + max + \" : \");\n scan.next();\n }\n value = scan.nextInt();\n }\n return value;\n }", "public static int f_number_user(){\n Scanner keyboard=new Scanner(System.in);\r\n int digits;\r\n System.out.println(\"input the entire number \");\r\n digits=keyboard.nextInt();\r\n return digits;\r\n }", "public int checkValidate() {\n while (true) {\n if (scanner.hasNextInt()) {\n // Get input from user\n int choice = scanner.nextInt();\n scanner.nextLine(); // Remove enter key\n return choice; // Return choice\n } else {\n // Show out error if not an interger number\n System.out.println(\"Your inputted not an integer number!\");\n System.out.print(\"Choice again: \"); // Retype\n scanner.next();\n }\n }\n }", "public static int queryMenuInput(){\n System.out.println(queryMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\",\"4\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }", "private static int getN ()\n\t{\n\t int inputInt = 1;\n\t BufferedReader in = new BufferedReader (new InputStreamReader (System.in));\n\t String inStr = new String();\n\n\t try\n\t {\n\t inStr = in.readLine ();\n\t inputInt = Integer.parseInt(inStr);\n\t }\n\t catch (IOException e)\n\t {\n\t System.out.println (\"Could not read input, choosing 1.\");\n\t }\n\t catch (NumberFormatException e)\n\t {\n\t System.out.println (\"Entry must be a number, choosing 1.\");\n\t }\n\n\t return (inputInt);\n\t}", "private static int IntInput(){\n\t\tScanner input = new Scanner(System.in); \n\t\t// set the interger Value to less then the threshold minimum (-1)\n\t\tint Value = -1 ;\n\t\twhile (Value < 0){\n\t\t\tValue = input.nextInt();\n\t\t\tif (Value < 0){\n\t\t\t\tSystem.out.printf(\"The number must be greater than or equal to to 0 \\nPlease enter a different value: \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn Value;\n\t}", "private static Long userInputInt(String message) {\n\t\tLong result = 0L;\n\t\tboolean answer = false;\n\t\twhile (!answer) {\n\t\t\tSystem.out.println(message);\n\t\t\ttry {\n\t\t\t\tresult = scanner.nextLong();\n\t\t\t\tif (result >= 0) {\n\t\t\t\t\tanswer = true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Please could you indicate a positive number.\");\n\t\t\t\t}\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.err.println(\"Your answer is not a correct number, please try again.\");\n\t\t\t} finally {\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public int readInt(String prompt);", "int getNumericalUserInput() {\n String input = userInput.next();\n int i = -1; //holds converted input\n boolean success = false;\n\n while (!success) {\n if (input.toLowerCase().equals(\"c\")) {\n i = -1;\n success = true;\n } else {\n try {\n i = Integer.parseInt(input);\n success = true;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid entry.\");\n break;\n }\n }\n }\n return i;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n //Reads ints from user\n int class1 = scanner.nextInt();\n int class2 = scanner.nextInt();\n int class3 = scanner.nextInt();\n\n //Your code goes here\n class1 = class1/2 + class1%2;\n class2 = class2/2 + class2%2;\n class3 = class3/2 + class3%2;\n int total = class1 + class2 + class3;\n System.out.print(total);\n\n // closing the scanner object\n scanner.close();\n }", "protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }", "private static int getNumberAnswer(){\r\n\t\tint answer=0;\r\n\t\tBoolean isNumber = false ;\r\n\t\tdo {\r\n\t\t\ttry{\r\n\t\t\t\tanswer = Integer.parseInt(input.nextLine());\r\n\t\t\t\tisNumber =true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e){\r\n\t\t\t\tSystem.out.println(\"Nope, that's not a number/integer.\");\r\n\t\t\t\tSystem.out.println(\"Provide an integer answer.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tisNumber = false;\r\n\t\t\t}\r\n\t\t} while (!isNumber);\r\n\t\treturn answer;\r\n\t}", "public static void main(String[] args) throws NumberFormatException, IOException {\n\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\twhile(input.hasNext()) {\n\t\t\tString[] s = input.nextLine().split(\" \");\n\t\t\tSystem.out.println(Integer.parseInt(s[0])+Integer.parseInt(s[1]));\n\t\t}\n\t\t\n\t}", "public static int readInteger(String prompt) throws IOException {\r\n\t\tint value = 0;\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.print(prompt + \" _>\");\r\n\t\t\t\tvalue = Integer.valueOf(reader.readLine()).intValue();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getLocalizedMessage());\r\n\t\t\t\tthrow ex;\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tSystem.err.println(\"Conversion Error: \" + ex.getLocalizedMessage());\r\n\t\t\t\treturn readInteger(\"Try again: \" + prompt);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}", "public Integer readIntegerFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your number:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString number = null;\r\n\t\tnumber = br.readLine();\r\n\t\treturn new Integer(number);\r\n\t}", "private int receiveNumberInput() {\n int number;\n while (true) {\n try {\n String temp = userInput.nextLine();\n number = Integer.parseInt(temp);\n break;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid Input. Please enter a valid number.\");\n continue;\n }\n\n }\n return number;\n }", "public static void main (String[] args) throws java.lang.Exception\r\n\t{\n\t\tScanner sc=new Scanner(System.in);int f=0;\r\n\t\twhile(sc.hasNext()){\r\n\t\tint t=sc.nextInt();\r\n\t\t\r\n\t\tif(t==42) f=1;\r\n\t\tif(f==0) System.out.println(t);\r\n\t\t}\r\n\t}", "private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }", "public static void main(String[] args) {\n\n Scanner value = new Scanner(System.in);\n\n int minnum = Integer.MAX_VALUE;\n int maxnum = Integer.MIN_VALUE;\n while (true){\n System.out.println(\" Enter Number\");\n boolean Isint = value.hasNextInt();\n if (Isint){\n int number = value.nextInt();\n minnum = Math.min(minnum, number);\n maxnum = Math.max(maxnum, number);\n\n } else {\n System.out.println(\" The Minimum Number entered is \" + minnum + \" & the max number entered is \" + maxnum);\n break;\n }value.nextLine();\n\n } value.close();\n }", "public static int input(int grade){\n Scanner myScanner=new Scanner(System.in);\n boolean flag=true;\n while(flag){ \n if(myScanner.hasNextInt()){\n while(flag){\n grade=myScanner.nextInt();\n if(grade>=0&&grade<=100){ \n flag=false;break;}\n else{\n System.out.println(\"ERROR: Please input an integer between 0-100.\");// if input is not in range 0-100, then reinput\n System.out.print(\"Please input again: \");\n flag=true; }}}\n else{\n System.out.println(\"ERROR: Please input an integer.\"); // if input is not an integer, then reinput\n System.out.print(\"Please input again: \");\n myScanner.next();flag=true;}}\n return grade; }", "private int scanInt() {\n String word = scan();\n if (word.length() == 0) {\n return Integer.MAX_VALUE;\n }\n\n try {\n return Integer.parseInt(word);\n } catch (NumberFormatException e) {\n return Integer.MAX_VALUE;\n }\n }", "public int readInt(){\n\t\tif(sc.hasNextInt()){\n\t\t\treturn sc.nextInt();\n\t\t}\n\t\tsc.nextLine();\n\t\treturn -1;\n\t}", "public static int askInt(String message) {\n return askObject(message, \"Please enter a Number!\", Scanner::nextInt);\n }", "public static Integer nextInteger(String prompt)\n { // Gets an integer value.\n int originalLength = prompt.length();\n boolean done = false;\n Integer i = null;\n String input;\n\n\n // Get the integer.\n while (!done)\n {\n input = JOptionPane.showInputDialog(prompt);\n if (input == null || input.isEmpty())\n {\n break;\n }\n\n // Try to get something meaningful out of this.\n try\n {\n i = Integer.parseInt(input);\n done = true;\n }\n catch (NumberFormatException ex)\n {\n // Change the prompt if we need to do so.\n if (prompt.length() == originalLength)\n {\n prompt = \"Please enter a numeric value.\\n\" + prompt;\n }\n }\n }\n\n // Return the integer that was entered.\n return i;\n }", "private void readValue(Scanner scanner, int i) throws BadDataException\n {\n\tString message = \"Data value expected, but find no integer.\" ;\n\t//-----------Start below here. To do: approximate lines of code = 2\n\t// 3. if there is no integer next in the file, throw a BadDataException with the message above; \n\t if (!scanner.hasNextInt())\n \t throw new BadDataException(message);\n //4. read the next integer into the array called data.\n\t\tdata[i] = scanner.nextInt();\n\t//-----------------End here. Please do not remove this comment. Reminder: no changes outside the todo regions.\n }", "public static int getInteger(int min, int max) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter a number between 1 and 10: \");\n String userInput = scanner.next();\n int userNum = Integer.parseInt(userInput);\n boolean valid = true;\n\n if (userNum < min || userNum > max) {\n do {\n System.out.print(\"Enter a number between 1 and 10: \");\n userInput = scanner.next();\n userNum = Integer.parseInt(userInput);\n if (userNum < min || userNum > max) {\n valid = false;\n } else {\n valid = true;\n }\n } while (!valid);\n }\n return userNum;\n }", "private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }", "private int nextInt() {\n if (console) {\n return con.nextInt();\n }\n return scan.nextInt();\n }", "public static int checkInt(int low, int high)\r\n {\r\n Scanner in = new Scanner(System.in);\r\n int validNum = 0;\r\n boolean valid = false;\r\n while(!valid)\r\n {\r\n if(in.hasNextInt())\r\n {\r\n validNum = in.nextInt();\r\n if(validNum >= low && validNum <= high)\r\n valid = true;\r\n else\r\n System.err.println(\"Invalid\");\r\n } else\r\n {\r\n in.next();\r\n System.err.println(\"Invalid\");\r\n }\r\n }\r\n return validNum;\r\n }", "public static int getInt (String ask)\r\n {\r\n boolean badInput = false;\r\n String input = new String(\"\");\r\n int value = 0;\r\n do {\r\n badInput = false;\r\n input = getString(ask);\r\n try {\r\n value = Integer.parseInt(input);\r\n }\r\n catch(NumberFormatException e){\r\n badInput = true;\r\n }\r\n }while(badInput);\r\n return value;\r\n }", "public int sjekkOmTall() {\r\n Scanner scan2 = new Scanner(System.in);\r\n int valg;\r\n while(true) {\r\n if(scan.hasNextInt()) {\r\n return valg = Integer.parseInt(scan.nextLine());\r\n }\r\n else {\r\n System.out.println(\"Du skrev ikke inn et tall\");\r\n scan.nextLine();\r\n }\r\n }\r\n }", "public static void main(String[] args) \n\t{\n\t\tScanner src = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter the number: \");\n\t\tint n = src.nextInt();\n\t\tint temp;\n\t\tsrc.close();\n\t}", "public static void addItem() {\n\t scanner scan; \n scan = new Scanner(System.in);\n while(true){\n System.out.print(\"Enter the Index you'd like to add:\");\n if (scan.hasNextInt()){\n int adds=scan.nextInt();\n ArrayList.add(adds);\n }\n }\n }", "private static void input(Scanner userScn)\n {\n // Prompt\n //System.out.print(\"Degree value of polynomial? (1-4): \");\n Prompt();\n\n // Sanitation logic... .next() should catch all\n if(!userScn.hasNextInt())\n {\n userScn.next();\n Prompt();\n }\n else if((d = userScn.nextInt()) > MaxDegree || d < MinDegree) // super efficient\n {\n Prompt();\n }\n else // exits with valid input\n {\n System.out.println(\"Your polynomial degree is: \" + d);\n }\n }", "public static void ingresar(int[] x) {\n int i;\n Scanner entrada = new Scanner(System.in);\n for (i = 0; i < N; i++) {\n System.out.println(\"Ingrese un numero para la celda \" + i);\n x[i] = entrada.nextInt();\n \n }\n \n }", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint min=Integer.MAX_VALUE;//2147483647;\n\t\t\tint max =Integer.MIN_VALUE;//-2147483648;\n\t\tint num=0;\n\t\tboolean first = true;\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Please enter numbers: \");\n\t\t\tif(scanner.hasNextInt())\n\t\t\t{\n\t\t\t\tnum= scanner.nextInt();\n\t\t\t\tif(first)\n\t\t\t\t{\n\t\t\t\t\tfirst = false;\n\t\t\t\t\tmin= num;\n\t\t\t\t\tmax= num;\n\t\t\t\t}\n\t\t\t\tif(min > num)\n\t\t\t\t{\n\t\t\t\t\tmin = num;\n\t\t\t\t}\n\t\t\t\tif(max < num)\n\t\t\t\t{\n\t\t\t\t\tmax = num;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Min is \" + min + \" Max is \" + max);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tscanner.nextLine();\n\t\t}\n\t\t\n\n\t}", "@Test\n\tpublic void one()\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"enter the value of a\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"value of a is: \" +a);\n\t}" ]
[ "0.7407607", "0.7184235", "0.6961381", "0.68804544", "0.68266886", "0.67345214", "0.67325336", "0.67024165", "0.66930616", "0.66787326", "0.66558415", "0.6652037", "0.6640183", "0.6560875", "0.65461385", "0.65448225", "0.65430564", "0.65299886", "0.6508046", "0.6497077", "0.6477677", "0.64690334", "0.64636314", "0.6453785", "0.6449311", "0.64388657", "0.64341545", "0.64015305", "0.63975054", "0.6380693", "0.6373676", "0.63528603", "0.63503665", "0.63162905", "0.62889665", "0.6277431", "0.6272097", "0.6268965", "0.6268965", "0.62607235", "0.6247332", "0.62432665", "0.62351286", "0.6233922", "0.6223707", "0.62095535", "0.62067586", "0.61868423", "0.61825246", "0.6181516", "0.6179477", "0.61787295", "0.61576223", "0.6155694", "0.6154287", "0.6145253", "0.61410296", "0.61315686", "0.6131162", "0.61263144", "0.6110421", "0.60902256", "0.60721123", "0.60718596", "0.607053", "0.6054715", "0.60487175", "0.6047652", "0.60442966", "0.6043101", "0.6032173", "0.6029761", "0.6012881", "0.5993568", "0.59921515", "0.59752357", "0.5969529", "0.59557515", "0.59554565", "0.59399015", "0.593893", "0.59366727", "0.5929297", "0.59099114", "0.59052503", "0.5904485", "0.5898361", "0.5890644", "0.58858156", "0.5885702", "0.5884893", "0.58827496", "0.58765787", "0.5875711", "0.5874651", "0.58668196", "0.5866552", "0.58560246", "0.58512884", "0.58511484", "0.5841132" ]
0.0
-1
~~~~~~~~~~~~~~~~~~~~~ INTERFACE METHODS ~~~~~~~~~~~~~~~~~~~~~
public void start() { vcr().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 public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void grabar() {\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 public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getData() {\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\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "@Override\n public void get() {}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n\n }", "@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 public void memoria() {\n \n }", "@Override\n public void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void execute() {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n protected void execute() {\n \n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void load() {\n }", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void getData() {\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}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\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}", "public contrustor(){\r\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}", "@Override\n public void initialize() { \n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private stendhal() {\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\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 }", "@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\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.6480341", "0.6441726", "0.64168435", "0.62268484", "0.62067235", "0.6134919", "0.6123034", "0.6123034", "0.610814", "0.610814", "0.6102763", "0.6086268", "0.60862", "0.60862", "0.60862", "0.60862", "0.60862", "0.60862", "0.6023383", "0.5985689", "0.59737015", "0.59517163", "0.59431213", "0.59410787", "0.59346026", "0.5925656", "0.59152687", "0.5914973", "0.59050745", "0.58994526", "0.5875752", "0.5834839", "0.5828699", "0.5818562", "0.58112603", "0.5808329", "0.58056927", "0.5794427", "0.57908684", "0.57903665", "0.5773401", "0.5758648", "0.57560045", "0.5753176", "0.5753176", "0.5753176", "0.5742957", "0.5728029", "0.5719106", "0.5718318", "0.5711766", "0.5711766", "0.5711766", "0.5705436", "0.5684283", "0.56796485", "0.5672438", "0.5670362", "0.56703407", "0.56604105", "0.56604105", "0.56589353", "0.5654954", "0.5654811", "0.565327", "0.5652463", "0.5650909", "0.5650909", "0.5640715", "0.56388986", "0.56388986", "0.5636881", "0.5631976", "0.5631976", "0.5631489", "0.5629502", "0.56249934", "0.56244123", "0.5620584", "0.5608605", "0.5603012", "0.55917746", "0.5589182", "0.55759054", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.55733323", "0.5562513", "0.5562513", "0.5562513", "0.55612975", "0.55612975", "0.5560933", "0.5560933" ]
0.0
-1
~~~~~~~~~~~~~~~~~~~~~ INTERNAL DISPLAY UI OPTIONS ~~~~~~~~~~~~~~~~~~~~~
private void display(Object a) { System.out.print(a.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDisplay() {\n\t\tDisplayOpt.add(\"-sd\");\n\t\tDisplayOpt.add(\"/sd\");\n\t\tDisplayOpt.add(\"showdetails\");\n\n\t}", "@Override\n\tpublic void setDisplayOptions(int options) {\n\t\t\n\t}", "@Override\n\tpublic void setDisplayOptions(int options, int mask) {\n\t\t\n\t}", "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "public void showSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n fullScreenMode = false;\r\n }\r\n });\r\n\r\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "private void showSystemUI() {\n photoView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n isShowingSystemUI = true;\n }", "private void showSystemUI() {\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n );\n }", "public void initDisplayImageOptions() {\n this.mDisplayImageOptionBuilder = new DisplayImageOptions.Builder().cacheThumbnail(true).loadFromMicroCache(true).cacheInMemory(true).considerExifParams(true).showStubImage(R.drawable.default_face_cover).resetViewBeforeLoading(true).imageScaleType(ImageScaleType.EXACTLY).bitmapConfig(Bitmap.Config.RGB_565).displayer(new CircleBitmapDisplayer()).usingRegionDecoderFace(true);\n this.mDefaultDisplayImageOptions = this.mDisplayImageOptionBuilder.build();\n }", "@Override\n\tpublic int getDisplayOptions() {\n\t\treturn 0;\n\t}", "public void showOptions() {\n frame.showOptions();\n }", "public void showSystemUI() {\r\n this.mTargetContainer.getDecorView().setSystemUiVisibility(0);\r\n }", "private void createDisplayEditOverlay() {\n\t}", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n getWindow().getDecorView().setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "public static void showGUI() {\n Display display = Display.getDefault();\n Shell shell = new Shell(display);\n EntropyUIconfig inst = new EntropyUIconfig(shell, SWT.NULL);\n Point size = inst.getSize();\n shell.setLayout(new FillLayout());\n shell.layout();\n if (size.x == 0 && size.y == 0) {\n inst.pack();\n shell.pack();\n } else {\n Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n shell.setSize(shellBounds.width, shellBounds.height);\n }\n shell.open();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n }", "private void showSystemUi()\n\t{\n\t\tif (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)\n\t\t\treturn;\n\n\t\tmUnityPlayer.setSystemUiVisibility(mUnityPlayer.getSystemUiVisibility() & ~getLowProfileFlag());\n\t}", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\tFineModulationDisplay(FineModulation);\n\t\tAutoGreaseDisplay(AutoGrease);\n\t\tQuickcouplerDisplay(Quickcoupler);\n\t\tRideControlDisplay(RideControl);\n\t\tBeaconLampDisplay(BeaconLamp);\n\t\tMirrorHeatDisplay(MirrorHeat);\n//\t\tFNKeyDisplay(ParentActivity.LockEntertainment);\n\t}", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "private void setupSystemUI() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(0).start();\r\n getWindow().getDecorView().setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n }", "private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }", "public MainUI() throws UnknownHostException {\n initComponents();\n //server();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\nwidth = screenSize.getWidth();\n height = screenSize.getHeight();\n setIcon();\n \n }", "protected void setupUI() {\n\n }", "private void sendScreenOptionsToBrowser() {\n ScreenCap.BrowserScreenMetrics metrics = screenCap.getScreenMetrics();\n mWebkeyVisitor.sendGson(new Message(\"1\", Message.Type.SCREEN_OPTIONS, new ScreenOptionsPayload(\n metrics.getWidth(),\n metrics.getHeight(),\n metrics.getRotation(),\n hasNavBar\n )));\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "public void display() \r\n {\r\n ((GrantsByPIForm) getControlledUI()).setVisible(true);\r\n }", "public void configureDisplayPolicy() {\n int longSize;\n int shortSize;\n if (this.mBaseDisplayDensity == 0) {\n Slog.e(TAG, \"density is 0\");\n return;\n }\n int width = this.mBaseDisplayWidth;\n int height = this.mBaseDisplayHeight;\n if (width > height) {\n shortSize = height;\n longSize = width;\n } else {\n shortSize = width;\n longSize = height;\n }\n int i = this.mBaseDisplayDensity;\n this.mDisplayPolicy.updateConfigurationAndScreenSizeDependentBehaviors();\n this.mDisplayRotation.configure(width, height, (shortSize * 160) / i, (longSize * 160) / i);\n DisplayFrames displayFrames = this.mDisplayFrames;\n DisplayInfo displayInfo = this.mDisplayInfo;\n displayFrames.onDisplayInfoUpdated(displayInfo, calculateDisplayCutoutForRotation(displayInfo.rotation));\n this.mIgnoreRotationForApps = isNonDecorDisplayCloseToSquare(0, width, height);\n }", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }", "public void showOptions() {\n\t\tCIVLTable tbl_optionTable = (CIVLTable) getComponentByName(\"tbl_optionTable\");\n\t\tDefaultTableModel optionModel = (DefaultTableModel) tbl_optionTable\n\t\t\t\t.getModel();\n\n\t\tif (optionModel.getRowCount() != 0) {\n\t\t\toptionModel.setRowCount(0);\n\t\t\ttbl_optionTable.clearSelection();\n\t\t\ttbl_optionTable.revalidate();\n\t\t}\n\n\t\tGMCSection section = currConfig.getGmcConfig().getSection(\n\t\t\t\tGMCConfiguration.ANONYMOUS_SECTION);\n\t\tObject[] opts = currConfig.getGmcConfig().getOptions().toArray();\n\t\tCollection<Option> options = currConfig.getGmcConfig().getOptions();\n\t\tIterator<Option> iter_opt = options.iterator();\n\t\tList<Object> vals = new ArrayList<Object>();\n\n\t\twhile (iter_opt.hasNext()) {\n\t\t\tOption curr = iter_opt.next();\n\t\t\tvals.add(section.getValueOrDefault(curr));\n\t\t}\n\n\t\t// Sets all of the default-ize buttons\n\t\tnew ButtonColumn(tbl_optionTable, defaultize, 2);\n\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tOption currOpt = (Option) opts[i];\n\t\t\t/*\n\t\t\t * if (currOpt.name().equals(\"sysIncludePath\")) {\n\t\t\t * optionModel.addRow(new Object[] { currOpt, \"sysIncludePath\",\n\t\t\t * \"Default\" }); }\n\t\t\t * \n\t\t\t * else if (currOpt.name().equals(\"userIncludePath\")) {\n\t\t\t * optionModel.addRow(new Object[] { currOpt, \"userIncludePath\",\n\t\t\t * \"Default\" }); }\n\t\t\t */\n\t\t\t// else {\n\t\t\toptionModel\n\t\t\t\t\t.addRow(new Object[] { currOpt, vals.get(i), \"Default\" });\n\t\t\t// }\n\t\t}\n\t}", "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "public UIMenu() {\n initComponents();\n setLocationRelativeTo(null);\n background.requestFocusInWindow();\n createButtonMode.setVisible(false);\n loginButtonMode.setVisible(false);\n repassword.setVisible(false);\n inputRePass.setVisible(false);\n }", "void showCustomizer();", "private DisplayDevice(){\t\t\r\n\t\t\r\n\t}", "@Override\n public void display() {\n\n }", "public void clientInfo() {\n uiService.underDevelopment();\n }", "public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }", "private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}", "private void showDisplay() {\n this.display.displayScreen();\n }", "@Override\n\t\t\tpublic void onSystemUiVisibilityChange(final int visibility)\n\t\t\t{\n\t\t\t\tshowSystemUi();\n\t\t\t}", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView. setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize *'hen the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "public void hideSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(-toolbar.getHeight()).setInterpolator(new AccelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE);\r\n fullScreenMode = true;\r\n }\r\n });\r\n }", "private void hideAdvanceFeatures() {\n sourceLabel.setVisible(false);\n sourceTextField.setVisible(false);\n threadsTextField.setEnabled(false);\n adminLabel.setVisible(false);\n adminTextField.setVisible(false);\n tracerPanel.setVisible(false);\n simulateCheckBox.setVisible(false);\n useScriptCheckBox.setVisible(false);\n editScriptButton.setVisible(false);\n batchImportCheckBox.setVisible(false);\n numResourceToCopyLabel.setVisible(false);\n numResourceToCopyTextField.setVisible(false);\n recordURIComboBox.setVisible(false);\n paramsLabel.setVisible(false);\n paramsTextField.setVisible(false);\n viewRecordButton.setVisible(false);\n testRecordButton.setVisible(false);\n basicUIButton.setVisible(false);\n\n isBasicUI = true;\n }", "@Override\r\n public void updateUI() {\r\n }", "public static void ShowAdminPreferences() {\n if (Controller.permission.GetUserPermission(\"EditUser\")) {\n ToggleVisibility(UsersPage.adminWindow);\n } else {\n DialogWindow.NoAccessTo(\"Admin options\");\n }\n }", "private void hideSystemUI() {\n // Set the IMMERSIVE flag.\n // Set the content to appear under the system bars so that the content\n // doesn't resize when the system bars hide and show.\n photoView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\n | View.SYSTEM_UI_FLAG_IMMERSIVE);\n isShowingSystemUI = false;\n }", "public void toggleSystemUI() {\r\n if (fullScreenMode)\r\n showSystemUI();\r\n else hideSystemUI();\r\n }", "private void updateUI() {\n if (mAccount != null) {\n signInButton.setEnabled(false);\n signOutButton.setEnabled(true);\n callGraphApiInteractiveButton.setEnabled(true);\n callGraphApiSilentButton.setEnabled(true);\n currentUserTextView.setText(mAccount.getUsername());\n } else {\n signInButton.setEnabled(true);\n signOutButton.setEnabled(false);\n callGraphApiInteractiveButton.setEnabled(false);\n callGraphApiSilentButton.setEnabled(false);\n currentUserTextView.setText(\"None\");\n }\n\n deviceModeTextView.setText(mSingleAccountApp.isSharedDevice() ? \"Shared\" : \"Non-shared\");\n }", "public interface UiController {\n void showOrHideProgressBar(boolean show);\n void refreshWidgetUi(LocalWallpaperInfo info);\n void refreshMainUi(LocalWallpaperInfo info);\n void setSystemWallpaper(Bitmap bitmap);\n}", "public abstract Display getDisplay();", "private void hideSystemUI() {\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); // enter immersive mode\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 configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "@Override\r\n\tpublic void display() {\n\r\n\t}", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public void setDisplay(String display);", "private void initialize() {\n this.setLayout(new CardLayout());\n this.setName(this.extension.getMessages().getString(\"spiderajax.options.title\"));\n \t if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {\n \t \tthis.setSize(391, 320);\n \t }\n this.add(getPanelProxy(), getPanelProxy().getName()); \n \t}", "@Override\n protected void options()\n {\n super.options();\n addOption(Opt.APPLICATION_ID);\n addOption(Opt.SERVER_ID);\n addOption(Opt.CATEGORY);\n addOption(Opt.NAME, \"The name of the label\");\n }", "OperationDisplay display();", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "private void initUI() {\n }", "void init() {\n setVisible(true);\n\n }", "protected void display() {\n\r\n\t}", "public void onDisplay() {\n\n\t}", "com.ctrip.ferriswheel.proto.v1.Display getDisplay();", "@Override\n public void initGui()\n {\n super.initGui();\n }", "public void testOptions() {\n OptionsOperator optionsOper = OptionsOperator.invoke();\n optionsOper.selectEditor();\n optionsOper.selectFontAndColors();\n optionsOper.selectKeymap();\n optionsOper.selectGeneral();\n // \"Manual Proxy Setting\"\n String hTTPProxyLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Use_HTTP_Proxy\");\n new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();\n // \"HTTP Proxy:\"\n String proxyHostLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Host\");\n JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);\n new JTextFieldOperator((JTextField) jloHost.getLabelFor()).setText(\"www-proxy.uk.oracle.com\"); // NOI18N\n // \"Port:\"\n String proxyPortLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Port\");\n JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);\n new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText(\"80\"); // NOI18N\n optionsOper.ok();\n }", "private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }", "@Override\n public void show() {\n \n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "public interface MySandBoxDisplay extends SandBoxDisplay {\n\n public ListGrid getPendingGrid();\n\n public ToolStripButton getRevertSelectionButton();\n\n public void setRevertSelectionButton(ToolStripButton revertSelectionButton);\n\n public ToolStrip getPendingToolBar();\n\n public void setPendingToolBar(ToolStrip pendingToolBar);\n\n public ToolStripButton getReclaimSelectionButton();\n\n public void setReclaimSelectionButton(ToolStripButton reclaimSelectionButton);\n\n public ToolStripButton getReclaimAllButton();\n\n public void setReclaimAllButton(ToolStripButton reclaimAllButton);\n\n public ToolStripButton getReleaseSelectionButton();\n\n public void setReleaseSelectionButton(ToolStripButton releaseSelectionButton);\n\n public ToolStripButton getReleaseAllButton();\n\n public void setReleaseAllButton(ToolStripButton releaseAllButton);\n\n public ToolStripButton getPendingRefreshButton();\n\n public void setPendingRefreshButton(ToolStripButton pendingRefreshButton);\n\n public ToolStripButton getPendingPreviewButton();\n\n public void setPendingPreviewButton(ToolStripButton pendingPreviewButton);\n \n}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "void showOverview() {\n\t\tif (!isShown) {\n\t\t\tisShown = true;\n\t\t\tConfigurationMenu.overviewBox.add(mainBox);\n\t\t} else {\n\t\t\tisShown = false;\n\t\t\tConfigurationMenu.overviewBox.remove(mainBox);\n\t\t}\n\t}", "public static void showCommandLineOptions() {\n showCommandLineOptions(new TextUICommandLine());\n }", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "@Override\r\npublic void setOnScreen(boolean os) {\n}", "@Override\n public void show() {\n\n }" ]
[ "0.7291141", "0.66969454", "0.6559331", "0.6499757", "0.6476105", "0.6406997", "0.6387788", "0.63428307", "0.6312972", "0.6259573", "0.62153333", "0.6207948", "0.6194798", "0.6189074", "0.6189074", "0.6189074", "0.6161293", "0.6121482", "0.6119945", "0.6052121", "0.6051019", "0.6050517", "0.60246325", "0.6019609", "0.6019609", "0.59763443", "0.5962125", "0.59525204", "0.5937875", "0.59281796", "0.5915614", "0.5895658", "0.58916795", "0.5886878", "0.5845948", "0.58430684", "0.58413684", "0.58256024", "0.5793228", "0.57912177", "0.5781777", "0.57749605", "0.576624", "0.5752203", "0.57513165", "0.5742184", "0.57388335", "0.5724759", "0.5723074", "0.5723074", "0.5723074", "0.5723074", "0.5723074", "0.5723074", "0.572288", "0.5718925", "0.5707824", "0.5694378", "0.56882507", "0.56798106", "0.56778187", "0.56755304", "0.5672916", "0.56718385", "0.5668866", "0.56649095", "0.5660892", "0.564538", "0.56411284", "0.5639994", "0.5630597", "0.56301785", "0.5623891", "0.5614803", "0.5614803", "0.56117135", "0.56117135", "0.56117135", "0.5602425", "0.5602425", "0.55966413", "0.557992", "0.5576251", "0.5571397", "0.55688787", "0.55648625", "0.55633926", "0.55633247", "0.55554944", "0.55525875", "0.5542054", "0.55368835", "0.55348927", "0.55348927", "0.55348927", "0.5529138", "0.55235356", "0.5514228", "0.5512822", "0.55119723", "0.5504067" ]
0.0
-1
Required interface for hosting activities
public interface Callbacks { void onCrimeSelected(Crime crime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MeetingAddActivityView {\n\n void startMeetingsActivity();\n void successInfo(String msg);\n void errorInfo(String msg);\n void startGetCustomers();\n}", "public interface MeetingsActivityView {\n void startMainActivity();\n\n void startMeetingDetailsActivity();\n\n void startMeetingAddActivity();\n\n void errorInfo(String msg);\n\n void errorMeetingCompletedInfo(String msg);\n void successMeetingCompletedInfo(String msg);\n\n\n void startGetMeetings();\n}", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public interface ActivityLauncher {\r\n\r\n\tpublic void launchActivity();\r\n\r\n\tpublic void finishCurrentActivity();\r\n\r\n}", "public interface IStartView {\n\n void showStartInfo(String url);\n void goMainActivity();\n}", "public interface ActivityInterface {\n public void initView();\n public void setUICallbacks();\n public int getLayout();\n public void updateUI();\n}", "public interface ISEActivityAttatcher {\n void onCreate(Bundle savedInstanceState);\n void onStart();\n void onRestart();\n void onResume();\n void onPause();\n void onStop();\n void onDestroy();\n void onActivityResult(int requestCode, int resultCode, Intent data);\n boolean isRecyled();\n}", "public interface IBaseView {\n\n void showToastMessage(String message);\n\n void setProgressBar(boolean show);\n\n void showNetworkFailureMessage(boolean show);\n\n Context getPermission();\n\n void startNewActivity();\n\n}", "public interface Presenter {\n void onCreate();\n\n void onStart();\n\n void onStop();\n\n void pause();\n\n void attachView(View view);\n\n\n void attatchIncomingIntent(Intent intent);\n}", "protected interface Activity {\r\n boolean isActive(File dir);\r\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}", "public interface VatomMetaPresenter {\n\n /**\n * Load vatom details on activity create and update VatomMetaScreen\n * @param intent\n */\n void onCreate(Intent intent);\n\n void onDestroy();\n\n void onOptionsItemSelected(MenuItem menuItem);\n\n}", "void doActivity();", "public interface OmnomActivity {\n\tpublic static final int REQUEST_CODE_ENABLE_BLUETOOTH = 100;\n\tpublic static final int REQUEST_CODE_SCAN_QR = 101;\n\n\tvoid start(Intent intent, int animIn, int animOut, boolean finish);\n\n\tvoid startForResult(Intent intent, int animIn, int animOut, int code);\n\n\tvoid start(Class<?> cls);\n\n\tvoid start(Class<?> cls, boolean finish);\n\n\tvoid start(Intent intent, boolean finish);\n\n\tActivity getActivity();\n\n\tint getLayoutResource();\n\n\tvoid initUi();\n\n\tPreferenceProvider getPreferences();\n\n\tSubscription subscribe(final Observable observable, final Action1<? extends Object> onNext, final Action1<Throwable> onError);\n\n\tvoid unsubscribe(final Subscription subscription);\n\n}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "private void openActivity() {\n }", "interface Presenter {\n\n /*get data through intent*/\n void getBundleData(Intent intent);\n\n void callHistoryDetail(Bundle extra);\n int getStoreType();\n }", "public interface InstrumentationInternal {\n\n\tInstrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token,\n\t\t\tActivity target, Intent intent, int requestCode, android.os.Bundle options);\n\n\tInstrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token,\n\t\t\tActivity target, Intent intent, int requestCode);\n}", "public interface MyBaseActivityImp {\n\n /**\n * 跳转Activity;\n *\n * @param paramClass Activity参数\n */\n void gotoActivity(Class<?> paramClass);\n\n /**\n * 跳转Activity,带有Bundle参数;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivity(Class<?> paramClass, Bundle bundle);\n\n /**\n * 跳转Activity,带有Bundle参数,并且该Activity不会压入栈中,返回后自动关闭;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivityNoHistory(Class<?> paramClass, Bundle bundle);\n\n /**\n * @param paramClass\n * @param bundle\n * @param paramInt\n */\n void gotoActivityForResult(Class<?> paramClass, Bundle bundle, int paramInt);\n\n /**\n * init View\n */\n void initView();\n\n /**\n *\n */\n void onEvent(Object o);\n}", "public interface Presenter {\n\n void onStart();\n\n void onStop();\n\n void onPause();\n\n void attachView(View v);\n\n void attachIncomingArg(Bundle intent);\n\n void onCreate();\n\n void onDestroy();\n}", "public interface MainActivityView {\n\n void showLoading();\n void hideLoading();\n void toMainActivity(String data);\n}", "@ActivityScope\npublic interface ISplashPresenter<V extends ISplashView> extends IBasePresenter<V> {\n\n void getWeatherNow();\n\n void getWeatherForecast();\n\n void getWeatherForecastDaily();\n\n\n}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "public interface IEditTripActivityPresenter {\n public void setData(Intent intent);\n public void editTrip();\n public void startSerivice();\n public void stopService();\n}", "private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }", "protected abstract ActivityComponent setupComponent();", "public interface IActivity {\n void bindData();\n\n void bindListener();\n}", "public interface MainView extends MvpView{\n void startAnekdotActivity(int type);\n}", "Activity activity();", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "public interface ComponetGraph {\n\n void inject(ManHuaApplication application);\n\n void inject(BaseActivity baseActivity);\n\n void inject(BaseFragment baseFragment);\n\n void inject(SettingActivity settingActivity);//设置\n\n void inject(BarrageSettingActivity barrageSettingActivity);//弹幕设置\n\n void inject(LookPhotoActivity lookPhotoActivity);//查看大图\n\n void inject(SplashActivity splashActivity);//启动页\n\n void inject(TestActivity testActivity);//启动页\n}", "public interface PluginInterface {\n\n public void attach(Activity proxyActivity);\n\n public void onCreate(Bundle saveInstanceState);\n\n public void onStart();\n\n public void onResume();\n\n public void onPause();\n\n public void onStop();\n\n public void onDestroy();\n\n public void onSaveInstanceState(Bundle outSate);\n\n public boolean onTouchEvent(MotionEvent event);\n\n public void onBackPressed();\n\n\n}", "public interface IActivityBase {\n\n void showToast(String msg);\n void showAlert(String msg);\n\n}", "public interface LoadActivityView {\n public void LoadSuccess(String registerBean);\n public void LoadFailed(int code);\n}", "public interface MainActivityContract {\n interface View extends BaseView{\n\n\n void getLocationNow(android.view.View view);\n void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults);\n void locationObtained(boolean isObtained);\n void locationEnabled(boolean isEnabled);\n void showerror(String s);\n\n\n }\n interface Presenter extends BasePresenter<View>{\n\n void attachView(MainActivityContract.View view);\n void checkLocationActive(Activity activity);\n void init(Activity activity);\n void getContext(Context context);\n void getLocation(String lattitude, String longitude);\n void getLocationByAddress(String a, String b, String c, String d, String e);\n void getLocationByGeo(String a, String b, String c, String d, String e);\n void DettachedView();\n }\n\n}", "protected ApiActivityBase() {\n super();\n }", "public interface IGaActivity {\n\n /**\n * Get the screen name of the activity\n * @return the name of the screen to be reported to GA for a screen view event\n * @throws UnsetScreenException if screen view is not set by overriding this method\n */\n String getScreenName() throws UnsetScreenException;\n\n /**\n * Get the TrackerManager. This should only be used if you need to send\n * explicitly defined custom GA events within your activity/fragment\n * @return TrackerManager - GA Manager object\n */\n TrackerManager getGaTracker();\n\n /**\n * Set a custom dimension for user events\n * @param customDimension1 first custom dimension\n */\n void setCustomDimension1(String customDimension1);\n\n /**\n * Set a custom dimension for user events\n * @param customDimension2 second custom dimension\n */\n void setCustomDimension2(String customDimension2);\n}", "public interface SecondActivityComponent {\n}", "public interface HomeView {\n\n void OnProgress();\n void OnFinish();\n void OnError(String error);\n void OnSuccess(EntityFeed entityFeed);\n\n}", "public abstract Activity getActivity(IBinder token);", "public interface IViewListActivity {\n\n Context getBaseContext();\n\n View findViewById(final int id);\n\n void onResultList(final List<Filme> filmes);\n\n void setSupportActionBar(Toolbar toolbar);\n\n void startSearch();\n\n void onErrorSearch(final String errorMsg);\n\n void onSuccess(final Filme filme);\n\n}", "public interface ActivityInterface {\n\n int getLayout();\n\n void initView();\n}", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "void inject(BaseActivity baseActivity);", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "public interface MainActivityView {\n\n}", "protected Activity getActivity() {\n\t\treturn (Activity) getHost().getModel();\n\t}", "public interface IViewMainProfile {\n void onPreExecute();\n\n void onExecuteSuccess(SinhVien sinhVien);\n\n void onExecuteFailure(String fail);\n\n void onCancelExecuteSuccess(String success);\n\n void onCancelExecuteFailure(String fail);\n}", "public interface IFirstActivityView {\n void setData(HotData hotData);\n void setFailMessage(String error);\n}", "public interface IModuleContextTabletActivity extends IModuleContext {\n}", "public interface NotificationSenderActivity {\n\n public void update();\n\n}", "public interface IMainRouter {\n\n\t/**\n\t * Method to run wallet tab.\n\t *\n\t * @param activity activity that hold fragment\n\t */\n\tvoid goToWalletTab(FragmentActivity activity);\n\n\t/**\n\t * Method to run transactions history tab.\n\t *\n\t * @param activity activity that hold fragment\n\t */\n\tvoid goToHistoryTab(FragmentActivity activity);\n\n\t/**\n\t * Method to run user contacts tab.\n\t *\n\t * @param activity activity that hold fragment\n\t */\n\tvoid goToContactsTab(FragmentActivity activity);\n\n\t/**\n\t * Method to open settings tab.\n\t *\n\t * @param activity activity that hold fragment\n\t */\n\tvoid goToSettingsTab(FragmentActivity activity);\n\n\t/**\n\t * Method to open import or create wallet screen.\n\t *\n\t * @param context context\n\t */\n\tvoid openImportOrCreate(Context context);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface IMainScreenPresenter {\n\n\n /**\n * Intercepts the onCreate callback in the Fragment/Activity lifecycle.\n */\n public void onCreate();\n\n /**\n * Intercepts the onResume callback in the Fragment/Activity lifecycle.\n */\n public void onResume();\n\n /**\n * Intercepts the onPause callback in the Fragment/Activity lifecycle.\n */\n public void onPause();\n\n /**\n * Intercepts the onStop callback in the Fragment/Activity lifecycle.\n */\n public void onStop();\n\n /**\n * Called when the button A is pressed.\n */\n public void onButtonAPressed();\n\n /**\n * Called when the button B is pressed.\n */\n public void onButtonBPressed();\n\n}", "protected void onFirstUse() {}", "public interface ActivityService {\n //分页展示首页的活动列表的接口\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat);\n\n //搜索活动列表\n //分页返回搜索结果\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat,\n String activityName);\n\n //根据活动类别返回对应活动列表\n //分页返回结果\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat,\n String category, Integer collation, String district);\n\n //根据活动id和经纬度返回包装有志愿者等信息的活动详情\n ActivityDetails getActivityById(\n Integer id, double coordLong, double coordLat);\n\n //创建活动\n boolean createActivity(Activity activity);\n\n //根据志愿者id返回该志愿者参与的活动列表\n PageInfo<ActivityDetails> getActivityPageInfoByVolunteerId(\n Integer page, Integer rows, Integer id);\n\n //根据志愿者id返回该志愿者的服务历史\n PageInfo<ActivityDetails> getHistoricalActivityPageInfo(\n Integer page, Integer rows, Integer id);\n\n //根据组织id返回该组织的所有活动\n PageInfo<ActivityDetails> getActivityPageInfoByOrganizationId(\n Integer page, Integer rows, Integer id);\n\n //根据活动id和状态id更新活动\n String updateActivityStatusById(\n Integer id, Integer activityStatusId);\n}", "public interface IMainView extends MvpView {\n void setMyLocation();\n void setRefresh();\n void scanLock();\n void getNearSeller();\n void feedback();\n void sellerDetail(Long uid);\n void buyBoxFun();\n}", "public interface MainActivityUI\n{\n\t//Respond to MainActivityLogicInterface.init().\n\tvoid initCompleted();\n\t//Will be called, if bluetooth or beacons are not supported. \\p errorcode contains a human-readable description of the problem.\n\tvoid notSupported(String errorcode);\n\t//Will be called, if bluetooth is deactivated, but should be activated to detect beacons.\n\tvoid bluetoothDeactivated();\n\t//Will be called, if permissions for COARSE_LOCATION is not given, but should be to detect beacons.\n\tvoid askForPermissions();\n\n\t//Will be called, when no beacon and no local map was found.\n\tvoid switchToMapSelectActivity();\n\n\t//Respond to MainActivityLogicInterface.getMap(). \\p map is the data contained in the active map.\n\tvoid updateMap(MapData map);\n\n\t//Will be called, if a new 'nearest' beacon was found. \\p beaconID is the id of the new beacon in MapData.\n\tvoid updateBeaconPosition(int beaconID);\n\n\t//Respond to NavigationDrawerLogic.findSpecialBeacon() or NavigationDrawerLogik.findAllSpecialBeacons() to mark the results. \\p beaconIDs is a list of the beacons which should be marked.\n\tvoid markBeacons(List<Integer> beaconIDs);\n}", "public interface IActivityCategoryView {\n void getMusicList(FileModel fileModel);\n void onStartLoadMusicList();\n void onCompletLoadMusicList();\n void onLoadMusicError(String er);\n}", "public interface IController {\n public void onActivityPause();\n\n public void onActivityResume(Activity activity);\n}", "public interface IBaseView {\n\n void toActivity(Class<?> clazz);\n\n void showProgressBar();\n\n void cancelProgressBar();\n\n void setTransBar();\n\n}", "public boolean Main(HomeActivity activity, UserSession session);", "public interface ListPersonaActivity {\n String TAG = \"listPersonaAct\";\n void showPersonas();\n}", "interface LoginChamaPresenter {\n\n /**when activity is resumed*/\n void onResume();\n\n /** performs actions on user click, passes the position to implementer*/\n void onChamaItemClicked(int position);\n\n void onDestroy();\n}", "public interface OnNewIntent {\n void onNewIntent(ZHIntent zHIntent);\n}", "private void link(MainActivity pActivity) {\n\n\t\t}", "public interface HttpComponent {\n void inject(MainActivity mainActivity);\n}", "public interface ActivityView extends AceView {\n void finish();\n}", "public interface AppAction\n{\n void login(String name, String password, Handler handler);\n\n void access(Handler handler, String ...s);\n\n void gdata(Handler handler, List<EHentaiMangaInfo> list);\n\n void getMangaInfo(Handler handler);\n\n void getNews(Handler handler);\n\n void getNews(Handler handler, String title, String page);\n\n void getImg( String url, ImageView imageView,AppActionImpl.Callback<Void> callback,int height,int width);\n}", "protected ScllActivity iGetActivity() {\n\t\treturn (ScllActivity) getActivity();\n\t}", "public interface WorkersMvpView extends MvpView {\n void updateDataList();\n\n void showDataError(boolean show);\n\n void showProgress(boolean show);\n\n void showToast(String text);\n\n void navigateToWorkerInfoActivity(Worker worker);\n}", "@PerActivity\n@Component(dependencies = CoreComponent.class, modules = {ActivityPresenterModule.class})\npublic interface ActivityPresenterComponent extends CoreComponent {\n void inject(DrawerActivity drawerActivity);\n\n @Nullable\n BaseActivityView getBaseActivityView();\n\n @Nullable\n AuthenticatorActivityView getAuthenticatorActivityView();\n}", "public interface MainView extends BaseView {\n\n void showProgress();\n void hideProgress();\n void setUserInfo(User user);\n void error(String error);\n}", "@Provides @PerActivity Activity activity() {\n return this.activity;\n }", "@PerActivity\n@Component(dependencies = AppComponent.class, modules = {ActivityModule.class})\ninterface ActivityComponent {\n\n Activity activity();\n}", "public interface Activity<T extends Pane> extends Component, Haltable, Hookable {\n\n\tT getParent();\n\tActivityState getState();\n\n}", "public interface RegisterActivityPresenter {\n /**\n * Request send sms code.\n *\n * @param context the context\n * @param phone the phone\n */\n void requestSendSMSCode(Context context,String phone);\n\n /**\n * Check sms code.\n *\n * @param context the context\n * @param phone the phone\n * @param check the check\n */\n void checkSMSCode(Context context,String phone,String check);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n */\n void register(Context context,String phone,String username,String pass);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n * @param age the age\n * @param sex the sex\n * @param xiaoqu the xiaoqu\n */\n void register(Context context,String phone,String username,String pass,Integer age,String sex,String xiaoqu,String alipay);\n}", "public interface IshowPersonalCommentActivityView extends IBaseActivityView{\n void showPersonalCommentSuccess(List<CommentEntity> commentList, boolean isHaveMore);\n void showPersonalCommentFail();\n}", "public interface MainActivityPresenter extends IPresenter {\n void init();\n\n void onDestory();\n\n void loginClick(String name, String pwd);\n\n}", "public interface IPresenter {\n\n void onCreate();\n void onResume();\n void onPause();\n void onDestroy();\n}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tRemoteUtil.getInstance().addActivity(this);\n\t}", "public interface IBaseActivityListEvent {\n\n /**\n * Creates a new fragment with the listentries of the given ShoppingList item.\n *\n * @param _ShoppingList of the list that the content should be shown.\n */\n void selectList(ShoppingList _ShoppingList);\n}", "public interface OnTaskClickedListener {\n\n void taskOpened(int taskId);\n}", "public interface PaymentActControl {\n void paymentCallback(int code, String message);\n Activity getActivity();\n}", "@Override\n public void needReloain(Activity activity) {\n }", "protected abstract Intent getIntent();", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "public abstract void onOpen();", "@Provides @PerActivity @SuppressWarnings(\"unused\")\n public BaseActivity provideBaseActivity() {\n return baseActivity.get();\n }", "public interface IWebServiceLauncher {\n public void launchWebService(Intent intent);\n}", "public interface ZachetManager extends ActivityManager<Zachet> {\n}", "interface IDiscussionPostView {\n\n void startDiscussionPostActivity();\n void displayErrorToast();\n void showProgressDialog();\n void hideProgressDialog();\n\n}", "protected ActivityPart getActivityPart() {\n\t\treturn (ActivityPart) getHost();\n\t}", "@PerActivity\npublic interface ChallengeMvpPresenter extends MvpPresenter<ChallengeView> {\n void fetchAuthoredChallenges(String username);\n void fetchCompletedChallenges(String username);\n}", "public interface StatisticView extends LoadingView{\n void initActionBar();\n void initWidget();\n}", "public void onActivation() { }", "public interface ILoginView {\n /**\n * goto Net Activity\n *\n * @param context\n */\n void gotoNetActivity(Context context);\n\n /**\n * goto Main activity\n *\n * @param context\n */\n void gotoMainActivity(Context context);\n\n /**\n * goto Regist activity\n *\n * @param context\n */\n void gotRegistActivity(Context context);\n\n /**\n * login failed,show msg\n */\n void showLoginError(Context context);\n\n /**\n * show progeress\n *\n * @param b\n */\n void showProgress(boolean b);\n\n\n}" ]
[ "0.678551", "0.677891", "0.67556226", "0.6751048", "0.6576519", "0.6547811", "0.65348285", "0.6508385", "0.6453314", "0.64335525", "0.6399343", "0.63523906", "0.63367563", "0.632219", "0.63099533", "0.62697166", "0.62562466", "0.6254899", "0.62426776", "0.6241071", "0.62397563", "0.6237369", "0.6236135", "0.62194383", "0.62158036", "0.6213796", "0.6211609", "0.6208205", "0.62078935", "0.62011635", "0.61942554", "0.61839616", "0.61827844", "0.6173272", "0.6158326", "0.61573315", "0.6143403", "0.6133597", "0.6103852", "0.6097634", "0.6090982", "0.6083241", "0.6078486", "0.6066005", "0.60621905", "0.6053244", "0.604681", "0.6036481", "0.601995", "0.6019923", "0.60157096", "0.6014173", "0.59991837", "0.599399", "0.5988753", "0.5988433", "0.59856576", "0.5979341", "0.59734434", "0.5967487", "0.59578013", "0.5956105", "0.59546995", "0.5949846", "0.5947099", "0.59470725", "0.5931144", "0.592434", "0.5923498", "0.5922077", "0.59216917", "0.59215015", "0.5919925", "0.5912811", "0.5912026", "0.59114724", "0.5908308", "0.59019053", "0.58988965", "0.5898025", "0.5897106", "0.5892352", "0.5892088", "0.5883911", "0.58714414", "0.58647335", "0.5860702", "0.58558255", "0.58504254", "0.58481", "0.5847687", "0.5844779", "0.58400863", "0.5836353", "0.5836079", "0.5835901", "0.5832138", "0.5831291", "0.5825772", "0.58242744", "0.5818211" ]
0.0
-1
Required interface for deleting
public interface OnDeleteCallback { void onCrimeIdSelected(UUID crimeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Delete {}", "@Override\n\tpublic void delete() {\n\n\t}", "private Delete() {}", "private Delete() {}", "@Override\n public void delete() {\n }", "@Override\n public void delete()\n {\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Exclude\n public abstract void delete();", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@Override\r\n\tpublic void delete() {\n\r\n\t}", "public abstract void delete();", "public abstract void delete();", "protected abstract void doDelete();", "@Override\n public void delete() {\n\n\n }", "public interface Delete {\n}", "@Override\n public void delete(int id) {\n }", "private void delete() {\n\n\t}", "public void delete() {\n\n }", "public void delete(){\r\n\r\n }", "@Override\n\tpublic void delete(int id) {\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Object o) {\n\t}", "public void delete() {\n\n\t}", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Integer arg0) {\n\t\t\n\t}", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Serializable id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(Integer arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "@Override\n\tpublic void delete(Serializable id) {\n\n\t}", "@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "@DELETE\n public void delete() {\n }", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(long id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(long id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\n\tpublic void delete(T obj) throws Exception {\n\t\t\n\t}", "public abstract void delete() throws ArchEException;", "public abstract boolean delete(Object obj) ;", "public void MarkForDeletion();", "@Override\r\n\tpublic void delete(Object object) {\n\t\t\r\n\t}", "void delete(I id);", "@Override\n public void delete(Long id) throws IllegalArgumentException {\n\n }", "@Override\n public void delete(Long id) throws IllegalArgumentException {\n\n }", "public abstract void delete(String ID);", "@Override\r\n\tpublic void delete() throws DeleteException {\n\t\t\r\n\t}", "@Override\npublic void deleteById(String id) {\n\t\n}", "@Override\n\tpublic void delete(Unidade obj) {\n\n\t}", "@Override\n\tpublic void delete(String id) {\n\n\t}", "@Override\n public boolean delete(Revue objet) {\n return false;\n }", "@Override\n\tpublic void delete(Long arg0) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Long arg0) {\n\n\t}", "@Override\n\tpublic void delete(Long arg0) {\n\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t}", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n\tpublic void deleteItem(Object toDelete) {}", "@Override\r\n\tpublic void delete(ObjectWithId objectToDelete) {\n\r\n\t}", "@Override\n\tpublic void delete(Medico i) throws Exception {\n\t\t\n\t}", "@Override\n public void delete(Long id) throws Exception {\n\n }", "@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}", "@Override\n public boolean delete()\n {\n return false;\n }", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public void delete(T e);", "@Override\n\tpublic void delete(String name) {\n\t}", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "@Override\r\n\tpublic void delete(Long arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "public boolean delete();", "@Override\n \tpublic boolean canDelete() {\n \t\treturn false;\n \t}", "@Override\n\tprotected void doDelete(Session session) {\n\n\t}", "@Override\n\tpublic void delete(Facture y) {\n\t\t\n\t}", "@Override\npublic void delete(Key key) {\n\t\n}", "void delete(int id) throws Exception;", "@Override\r\n\tpublic void Delete(long id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(Person p) \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t}", "@Override\n public boolean delete(Integer id) {\n return false;\n }", "@Override\n\tpublic Integer delete() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}" ]
[ "0.8605295", "0.8300967", "0.829209", "0.829209", "0.8275999", "0.8265494", "0.82525796", "0.8221235", "0.8177796", "0.8177796", "0.81338584", "0.8118925", "0.8118925", "0.80940515", "0.8081593", "0.8058647", "0.79359263", "0.7929376", "0.7925372", "0.7900431", "0.7870417", "0.78634113", "0.78634113", "0.78634113", "0.78634113", "0.7844983", "0.7819851", "0.7807446", "0.7779286", "0.7760112", "0.7759322", "0.7722775", "0.7722775", "0.7722775", "0.7722775", "0.7722775", "0.7722775", "0.7692686", "0.7681678", "0.76810604", "0.76782954", "0.7672196", "0.7672196", "0.7651486", "0.76304024", "0.76064765", "0.75976425", "0.75966036", "0.75925714", "0.75925714", "0.7591154", "0.7591154", "0.7579122", "0.7557306", "0.75415516", "0.75357103", "0.7531064", "0.7522116", "0.75175005", "0.75035", "0.75035", "0.74875027", "0.7487214", "0.7483457", "0.74819773", "0.7479453", "0.7478057", "0.7470648", "0.7464655", "0.7464655", "0.7463153", "0.7462557", "0.7448442", "0.7448423", "0.744264", "0.7435547", "0.7432381", "0.743193", "0.74302393", "0.74216396", "0.74049485", "0.7392554", "0.73922217", "0.738817", "0.7380933", "0.73778003", "0.7371743", "0.7371743", "0.7360501", "0.73543996", "0.73496723", "0.7345625", "0.73340136", "0.7333624", "0.7331804", "0.7329905", "0.7323768", "0.7320984", "0.7320537", "0.73036385", "0.729734" ]
0.0
-1
Diff Utils to handle list difference on crime deletion
public void setCrimes(List<Crime> crimes) { DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new CrimeDiffCallback(crimes, mCrimes)); diffResult.dispatchUpdatesTo(this); // Swap out list of crimes displayed for new list mCrimes = crimes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void compareDeletion();", "@Test\n\tpublic void testDifference5() {\n\n\t\t// parameters inpt here\n\n\t\tint[] arr = { 1, 2, 3, 5, 7, 8, 9 };\n\t\tint[] diff1 = { 1, 2, 3, 7, 8 }; // this list\n\n\t\t// test difference\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet listObj19 = new SLLSet(diff1);\n\t\tSLLSet listObj20 = listObj2.difference(listObj19);\n\n\t\tString expected = \"5, 9\";\n\t\tint expectedSize = 2;\n\n\t\tassertEquals(expectedSize, listObj20.getSize());\n\t\tassertEquals(expected, listObj20.toString());\n\n\t}", "public static <T> List<T> difference(List<T> a, List<T> b) {\n\t\tList<T> acc = new ArrayList<T>();\n\t\tfor (T t : a)\n\t\t\tif (!b.contains(t))\n\t\t\t\tacc.add(t);\n\t\treturn acc;\n\t}", "Diff() {\n\t}", "@Test\n public void testDiff() {\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n lastWriteWinSet1.add(time3, \"php\");\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time2, \"python\");\n lastWriteWinSet1.add(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"scala\");\n\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time3, \"python\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.delete(time2, \"php\");\n\n // run test\n final LastWriteWinSet<String> resultSet = lastWriteWinSet1.diff(lastWriteWinSet2);\n \n assertTrue(resultSet.getData().size() == 3);\n assertTrue(resultSet.getData().contains(\"php\"));\n assertTrue(resultSet.getData().contains(\"python\"));\n assertTrue(resultSet.getData().contains(\"java\"));\n \n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultAddSet = resultSet.getAddSet();\n final Set<LastWriteWinSet.ItemTD<String>> addedData = resultAddSet.getData();\n assertTrue(addedData.size() == 3);\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(3, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"java\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(2, \"python\")));\n\n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultDeleteSet = resultSet.getDeleteSet();\n final Set<LastWriteWinSet.ItemTD<String>> deletedData = resultDeleteSet.getData();\n assertTrue(deletedData.size() == 1);\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"scala\")));\n }", "public ArrayList<ArrayList> difference (ArrayList<ArrayList> data, ArrayList<ArrayList> data2)\n {\n ArrayList<Document> docs = data.get(0);\n ArrayList<Double> relevance = data.get(1);\n ArrayList<Integer> occurrence = data.get(2);\n ArrayList<Integer> popularity = data.get(3);\n \n ArrayList<Document> docs2 = data2.get(0);\n ArrayList<Double> relevance2 = data2.get(1);\n ArrayList<Integer> occurrence2 = data2.get(2);\n ArrayList<Integer> popularity2 = data2.get(3);\n \n ArrayList<Document> docs3 = new ArrayList<>();\n ArrayList<Double> relevance3 = new ArrayList<>();\n ArrayList<Integer> occurrence3 = new ArrayList<>();\n ArrayList<Integer> popularity3 = new ArrayList<>();\n \n for(Document d: docs)\n {\n if(!docs2.contains(d))\n {\n int docIndex = docs.indexOf(d);\n docs3.add(d);\n relevance3.add(relevance.get(docIndex));\n occurrence3.add(occurrence.get(docIndex));\n popularity3.add(d.popularity);\n }\n \n }\n data = new ArrayList<ArrayList> ();\n data.add(docs3);\n data.add(relevance3);\n data.add(occurrence3);\n data.add(popularity3);\n \n return data;\n }", "@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public static <T, Z> void subtract(List<T> list1, List<Z> list2) {\n int origSize = list1.size();\n outer:\n for (int i = 0; i < list1.size(); i++) {\n T item = list1.get(i);\n for (int j = 0; j < list2.size(); j++) {\n if (item.equals(list2.get(j))) {\n list1.remove(item);\n i--;\n continue outer;\n }\n }\n }\n }", "@Override\r\n \tpublic Editable computeDifferences(Editable newEditable) {\n \t\treturn null;\r\n \t}", "public RevisionVector difference(RevisionVector vector) {\n List<Revision> diff = newArrayListWithCapacity(revisions.length);\n PeekingIterator<Revision> it = peekingIterator(vector.iterator());\n for (Revision r : revisions) {\n Revision other = peekRevision(it, r.getClusterId());\n if (!r.equals(other)) {\n diff.add(r);\n }\n }\n return new RevisionVector(toArray(diff, Revision.class), false, false);\n }", "@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public static <D extends IChangeable<I> ,I> List<I> getItemsToDelete(List<D> changesList) {\n List<I> idsToRemove = new ArrayList<>();\n if(changesList != null) {\n List<D> itemsToRemove = new ArrayList<>();\n for (D item : changesList) {\n if(item.isToDelete()){//Delete the items of the list that must to be deleted\n idsToRemove.add(item.getId());\n itemsToRemove.add(item);\n }\n }\n //And remove the request list\n changesList.removeAll(itemsToRemove);\n }\n return idsToRemove;\n }", "public void sortCheckAndRemove(List oldlist, List newlist){\n \n List removenode = new ArrayList();\n List addnode = new ArrayList();\n \n for (int i=0;i < newlist.size() ; i++){\n if (!oldlist.contains((String) newlist.get(i))){\n addnode.add((String) newlist.get(i));\n }\n }\n \n for (int i=0;i < oldlist.size() ; i++){\n \n if (!newlist.contains((String)oldlist.get(i))){\n removenode.add((String)oldlist.get(i));\n }\n }\n for (int k=0; k < removenode.size() ; k++){\n //System.out.println(toremove[k]);\n System.out.println(\"Deleting \"+(String) removenode.get(k));\n removeMaster((String) removenode.get(k));\n }\n \n for (int k=0; k < addnode.size() ; k++){\n //System.out.println(toadd[k]);\n System.out.println(\"adding slave \"+(String)addnode.get(k));\n addMaster((String)addnode.get(k),getQueue());\n }\n \n try {\n FileUtils.copyFile(new File(\"/tmp/newmaster\"), new File(\"/tmp/oldmaster\"));\n } catch (IOException ex) {\n System.out.println(\"Could not copy file\");\n }\n }", "public List GetDifference(DRCoveStructure other) {\n ArrayList<Module> diff = new ArrayList<>();\n\n // TODO : Check whether the first and second modules can be interchanged\n for (Module modT : modules) { // Go through modules of first structure\n if (modT.getOriginalIndex() != -1) {\n continue;\n }\n if (modT.getName().contains(executable)) { // Check wheher module name or the program monitored\n Integer index = other.modules.indexOf(modT); // find a matching module name from second structure\n if (index != -1) { // if found a match\n Module mod = other.modules.get(index); // get its index and get the module from second structure\n Set<Long> set1 = mod.getAddresses(); // second structure addresses\n Set<Long> set2 = modT.getAddresses(); // first structure addresses\n ///TODO: Why not add new basic blocks from second run ? \\\n /// only adding\n /* KRV Suggesion\n modT.getAddresses().addAll(set1);// merges the addresses of both modules\n set2.removeAll(set1); // Overlap of addresses of both modules\n modT.getAddresses().removeAll(set2);\n\n KRV Suggestion */\n modT.getAddresses().removeAll(set1);// merges the addresses of both modules\n // removes the repeated BBs on second structure but does not add new BBs from second structure\n }\n\n diff.add(modT); // finally add the module to the diff module list\n logger.info(\"Added to diff {}\", modT);\n }\n }\n return diff;\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "@Override\n public List<SDVariable> doDiff(List<SDVariable> f1) {\n List<SDVariable> out = new ArrayList<>();\n for(SDVariable v : args()){\n out.add(sameDiff.zerosLike(v));\n }\n return out;\n }", "public static ArrayList<ArrayList<String>> differenceD(String table1Name, String table2Name){\n\t\tArrayList<ArrayList<String>> difference = new ArrayList<ArrayList<String>>();\r\n\t\t//these will hold the data from the input tables\r\n\t\tArrayList<ArrayList<String>> columns1 = new ArrayList<ArrayList<String>>();\r\n\t\tArrayList<ArrayList<String>> columns2 = new ArrayList<ArrayList<String>>();\r\n\t\t//find the input tables in the database list\r\n\t\tfor (int i = 0; i < tables.size(); i++) {\r\n\t\t\tif (tables.get(i).getName().equals(table1Name)) {\r\n\t\t\t\tcolumns1 = new ArrayList<ArrayList<String>>(tables.get(i).datas);\r\n\t\t\t}\r\n\t\t\tif (tables.get(i).getName().equals(table2Name)) {\r\n\t\t\t\tcolumns2 = new ArrayList<ArrayList<String>>(tables.get(i).datas);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check if the tables are difference compatable\r\n\t\tif (columns1.size() != columns2.size()) {\r\n\t\t\tSystem.out.println(\"Unable to perform difference - unnequal number of columns.\");\r\n\t\t}\r\n\t\telse {\t//only continue if they are difference compatable\r\n\t\t\t//true if all columns have the same type\r\n\t\t\tint sameTypes = 1;\r\n\t\t\tint type1 = 0;\r\n\t\t\tint type2 = 0;\r\n\t\t\t//a max char value of -1 indicates the type is integer\r\n\t\t\tfor (int j = 0; j < columns1.size(); j++) {\r\n\t\t\t\ttype1 = Integer.parseInt(new String(columns1.get(j).get(1)));\r\n\t\t\t\ttype2 = Integer.parseInt(new String(columns2.get(j).get(1)));\r\n\t\t\t\tif (type1 > 0) { type1 = 1; }\r\n\t\t\t\telse if (type1 < 0) { type1 = -1; }\r\n\t\t\t\tif (type2 > 0) { type2 = 1; }\r\n\t\t\t\telse if (type2 < 0) { type2 = -1; }\r\n\t\t\t\t//if the types were not equal, don't continue\r\n\t\t\t\tif (type1 != type2) {\r\n\t\t\t\t\tSystem.out.println(\"Unable to perform difference - incompatible types.\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\t//continue if the types are equal\r\n\t\t\t\t\tArrayList<String> newColumn = new ArrayList<String>();\r\n\t\t\t\t\tint largestChar = 0;\r\n\t\t\t\t\tif (type1 != -1) {\t//if they aren't integers\r\n\t\t\t\t\t\t//find the largest max char value\r\n\t\t\t\t\t\tif (Integer.parseInt(columns1.get(j).get(1)) >= Integer.parseInt(columns2.get(j).get(1))) {\r\n\t\t\t\t\t\t\tlargestChar = Integer.parseInt(new String(columns1.get(j).get(1)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse { \r\n\t\t\t\t\t\t\tlargestChar = Integer.parseInt(columns2.get(j).get(1)); \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//keep the type as integer\r\n\t\t\t\t\telse { \r\n\t\t\t\t\t\tlargestChar = -1; \r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t//use the name from the first table and largest char max\r\n\t\t\t\t\tnewColumn.add(new String(columns1.get(j).get(0)));\r\n\t\t\t\t\tnewColumn.add(String.valueOf(largestChar));\r\n\t\t\t\t\tdifference.add(newColumn);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\tfor(int t = 2; t<columns2.get(0).size(); t++){//column2 row\r\n\t\t\t\t\tboolean completeUniqe = true;\r\n\t\t\t\t\tfor(int p = 2; p < columns1.get(0).size(); p++){// rows of difference\r\n\t\t\t\t\t\tboolean uniqe = false;\r\n\t\t\t\t\t\tfor(int u = 0; u<columns1.size(); u++){//columns of difference\r\n\t\t\t\t\t\t\tif(!columns2.get(u).get(t).equals(columns1.get(u).get(p)) && !uniqe){\r\n\t\t\t\t\t\t\t\tuniqe = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!uniqe){\r\n\t\t\t\t\t\t\tcompleteUniqe = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(completeUniqe){\r\n\t\t\t\t\t\tfor(int u = 0; u<difference.size(); u++){//columns of difference\r\n\t\t\t\t\t\t\tdifference.get(u).add(new String(columns2.get(u).get(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\tfor(int t = 2; t<columns1.get(0).size(); t++){//column2 row\r\n\t\t\t\t\tboolean completeUniqe = true;\r\n\t\t\t\t\tfor(int p = 2; p < columns2.get(0).size(); p++){// rows of difference\r\n\t\t\t\t\t\tboolean uniqe = false;\r\n\t\t\t\t\t\tfor(int u = 0; u<columns2.size(); u++){//columns of difference\r\n\t\t\t\t\t\t\tif(!columns1.get(u).get(t).equals(columns2.get(u).get(p)) && !uniqe){\r\n\t\t\t\t\t\t\t\tuniqe = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!uniqe){\r\n\t\t\t\t\t\t\tcompleteUniqe = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(completeUniqe){\r\n\t\t\t\t\t\tfor(int u = 0; u<difference.size(); u++){//columns of difference\r\n\t\t\t\t\t\t\tdifference.get(u).add(new String(columns1.get(u).get(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}\r\n\t\treturn difference;\r\n\t}", "public V difference(V v1, V v2);", "private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) {\n List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array));\n for (List<T> clone : types) {\n // dedup the list\n CollectionUtils.sortAndDedup(clone, cmp);\n // verify unique elements\n for (int i = 0; i < clone.size() - 1; ++i) {\n assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0);\n }\n assertEquals(expectedLength, clone.size());\n }\n }", "private void removeDelRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n deltags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoDel\") >= 0)\n {\n removeTagAndContent(p_tags, tag);\n\n continue deltags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "@Test\n\tpublic void testGetDifferenceRemoved() {\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"-\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(1, diff);\n\n\t}", "public LinkedList<Diff> getDiff(){\t\n\t\tString modifiedString = \"\";\n\t\ttry {\n\t\t\tmodifiedString = openReadFile(modDoc);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Print to the console\n\t\t\t// \"Could not open the file: '\" + modDoc + \".\" \n\t\t\te.printStackTrace();\n\t\t}\n\t\tLinkedList<Diff> list = dmp.diff_main(baseString, modifiedString, true);\n\t\tbaseString = modifiedString;\n\t\t\n\t\treturn list;\n\t}", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "public void updateDeletions() {\r\n for (Lane l : lanes) {\r\n Vehicle[] vehArray = l.getVehicles().toArray(new Vehicle[0]);\r\n for (Vehicle v : vehArray) {\r\n if (v.getHeadSegment().equals(l.getLastSegment())) {\r\n l.getVehicles().remove(v);\r\n numberOfVehicles--;\r\n if (v instanceof Car) {\r\n SimulationStats.incrementCars();\r\n SimulationStats.addEvent(SimulationStats.createVehicleLeavingEvent(v));\r\n } else if (v instanceof Truck) {\r\n SimulationStats.incrementTrucks();\r\n SimulationStats.addEvent(SimulationStats.createVehicleLeavingEvent(v));\r\n }\r\n }\r\n }\r\n }\r\n }", "public void deleteFurniture(List<HomePieceOfFurniture> deletedFurniture) {\n final boolean basePlanLocked = this.home.isBasePlanLocked();\n final boolean allLevelsSelection = this.home.isAllLevelsSelection();\n final List<Selectable> oldSelection = this.home.getSelectedItems(); \n List<HomePieceOfFurniture> homeFurniture = this.home.getFurniture(); \n\n // Replace pieces by their group when they have to be all deleted\n deletedFurniture = new ArrayList<HomePieceOfFurniture>(deletedFurniture);\n List<HomeFurnitureGroup> homeGroups = new ArrayList<HomeFurnitureGroup>(); \n searchGroups(homeFurniture, homeGroups);\n boolean updated;\n do {\n updated = false;\n for (HomeFurnitureGroup group : homeGroups) {\n List<HomePieceOfFurniture> groupFurniture = group.getFurniture();\n if (deletedFurniture.containsAll(groupFurniture)) {\n deletedFurniture.removeAll(groupFurniture);\n deletedFurniture.add(group);\n updated = true;\n }\n }\n } while (updated);\n \n // Sort the deletable furniture in the ascending order of their index in home or their group\n Map<HomeFurnitureGroup, Map<Integer, HomePieceOfFurniture>> deletedFurnitureMap =\n new HashMap<HomeFurnitureGroup, Map<Integer, HomePieceOfFurniture>>();\n int deletedFurnitureCount = 0;\n for (HomePieceOfFurniture piece : deletedFurniture) {\n // Check piece is deletable and doesn't belong to a group\n if (isPieceOfFurnitureDeletable(piece)) {\n HomeFurnitureGroup group = getPieceOfFurnitureGroup(piece, null, homeFurniture);\n Map<Integer, HomePieceOfFurniture> sortedMap = deletedFurnitureMap.get(group);\n if (sortedMap == null) {\n sortedMap = new TreeMap<Integer, HomePieceOfFurniture>();\n deletedFurnitureMap.put(group, sortedMap);\n }\n if (group == null) {\n sortedMap.put(homeFurniture.indexOf(piece), piece);\n } else {\n sortedMap.put(group.getFurniture().indexOf(piece), piece);\n }\n deletedFurnitureCount++;\n }\n }\n final HomePieceOfFurniture [] furniture = new HomePieceOfFurniture [deletedFurnitureCount]; \n final int [] furnitureIndex = new int [furniture.length];\n final Level [] furnitureLevels = new Level [furniture.length];\n final HomeFurnitureGroup [] furnitureGroups = new HomeFurnitureGroup [furniture.length];\n int i = 0;\n for (Map.Entry<HomeFurnitureGroup, Map<Integer, HomePieceOfFurniture>> sortedMapEntry : deletedFurnitureMap.entrySet()) {\n for (Map.Entry<Integer, HomePieceOfFurniture> pieceEntry : sortedMapEntry.getValue().entrySet()) {\n furniture [i] = pieceEntry.getValue();\n furnitureIndex [i] = pieceEntry.getKey(); \n furnitureLevels [i] = furniture [i].getLevel();\n furnitureGroups [i++] = sortedMapEntry.getKey();\n }\n } \n doDeleteFurniture(furniture, basePlanLocked, false); \n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n doAddFurniture(furniture, furnitureGroups, furnitureIndex, null, furnitureLevels, basePlanLocked, allLevelsSelection); \n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n home.setSelectedItems(Arrays.asList(furniture));\n doDeleteFurniture(furniture, basePlanLocked, false); \n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoDeleteSelectionName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }", "@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new ArraySet();\n //Look through the calling set\n for(int i = 0; i < numItems; i++){\n //if the item is NOT also in the param set, add it to result\n if(!rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }", "private ArrayList<String> findchanged(Comm splitpoint, Comm comm) {\n ArrayList<String> changed = new ArrayList<String>();\n HashMap<String, Blob> original = splitpoint.getContents();\n HashMap<String, Blob> current = comm.getContents();\n\n for (String file :original.keySet()) {\n if (!(current.get(file) == null)) {\n if (!current.get(file).getContent()\n .equals(original.get(file).getContent())) {\n changed.add(file);\n }\n\n }\n\n }\n return changed;\n\n }", "public static void main(String[] args) {\n\t\tList<String> list = new LinkedList<>(); //ArrayList\r\n\t\tList<String> test = new ArrayList<>();\r\n\t\tList<String> test2 = Arrays.asList(\"Toy\",\"Car\",\"Robot\");\r\n\t\ttest2 = new ArrayList<>(list);\r\n\t\t// 한번에 초기화... immutable 인스턴스임 고정이라... ㄷㄷ->\r\n\t\t// 다시만듬.\r\n\t\tlist.add(\"Toy\");\r\n\t\tlist.add(\"Hello\");\r\n\t\tlist.add(\"Box\");\r\n\t\tlist.add(\"Robot\");\r\n\t\tfor(String s : list)\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\tString str;\r\n\t\tIterator<String> itr = list.iterator(); // 반복자\r\n\t\twhile(itr.hasNext()) \r\n\t\t{\t\r\n\t\t\tstr= itr.next();\r\n\t\t\tif(str.equals(\"Box\"))\r\n\t\t\t\titr.remove();\r\n\t\t//System.out.println(itr);\r\n\t\t\t// 컬렉션 프레임웤은 반복자를 통해 이렇게 참조가 가능하구나~ 더미노드가 존재한다 // \r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tfor(String s : list) // for each , iterator 기반.\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\t// 양방향 반복자 //\r\n\t\tList<String> dList = Arrays.asList(\"Toy\",\"Box\",\"Robot\",\"Box\");\r\n\t\tdList = new ArrayList<>(dList);\r\n\t\t\r\n\t\tListIterator<String> dIter = dList.listIterator();\r\n\t\twhile(dIter.hasNext()) {\r\n\t\t\tstr = dIter.next();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Toy\"))\r\n\t\t\t\tdIter.add(\"Toy2\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\twhile(dIter.hasPrevious()) {\r\n\t\t\tstr = dIter.previous();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Robot\"))\r\n\t\t\t\tdIter.add(\"Robot2\");\r\n\t\t}\r\n\t}", "@Test\n public void remove1() {\n RBTree<Integer> tree = new RBTree<>();\n List<Integer> add = new ArrayList<>(List.of(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10));\n List<Integer> rem = new ArrayList<>(List.of(4, 7, 9, 5));\n for (int i : add) {\n tree.add(i);\n }\n int err = 0;\n Set<Integer> remSet = new HashSet<>();\n for (int i : rem) {\n remSet.add(i);\n boolean removed = tree.remove(i);\n if (!removed && add.contains(i)) {\n System.err.println(\"Could not remove element \" + i + \"!\");\n err++;\n }\n if (removed && !add.contains(i)) {\n System.err.println(\"Removed the non-existing element \" + i + \"!\");\n err++;\n }\n for (int a : add) {\n if (!tree.contains(a) && !remSet.contains(a)) {\n System.err.println(\"Removed element \" + a + \" after removing \" + i + \"!\");\n err++;\n }\n }\n }\n for (int i : rem) {\n if (tree.remove(i)) {\n System.err.println(\"Removed a already remove element \" + i + \"!\");\n err++;\n }\n }\n for (int i : rem) {\n if (tree.contains(i)) {\n System.out.println(\"The element \" + i + \" was not removed!\");\n err++;\n }\n }\n \n assertEquals(\"There were \" + err + \" errors!\", 0, err);\n rem.retainAll(add);\n assertEquals(\"Incorrect tree size!\", add.size() - rem.size(), tree.size());\n }", "public Map<String,ChangeData> diffFiles(final List<String> fl){\n \t\t\n \t\tList<String> working = new LinkedList<String>();\n \t\tList<String> snap = new LinkedList<String>();\n \t\tMap<String,ChangeData> cm = new HashMap<String,ChangeData>();\n \t\tList<String> files= fl;\n \t\t\n \t\tif(fl == null || fl.isEmpty())\n \t\t\tfiles=this.getFileNames();\n \t\t\n \t\tfor (String str : files){\n \t\tFile file = new File(this.getRoot()+ File.separatorChar +str);\n \t\t\n \t\tif(this.getFileNames().contains(str) && file.exists()){\n \t\t\tFile f = new File(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\tif(!f.exists())\n \t\t\t\tthis.pCreateFile(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\n \t\tcm.put(str, new ChangeData(str));\t\n \t\t\t\n \t\tworking = this.readFile(this.getRoot()+ File.separatorChar +str);\n \t\tsnap = this.readFile(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\n \t\tcm.get(str).getDifflist().add(this.getSnapshot().getDiff(snap, working));\n \t\t\n \t\tif(!cm.get(str).getDifflist().get(0).getDeltas().isEmpty())//addOfEmptyFile\n \t\t\tthis.getFilelist().get(str).put(this.getAddress(), this.getFilelist().get(str).get(this.getAddress()) + 1);\n \t\t\n \t\tcm.get(str).getLclock().putAll(this.getFilelist().get(str));\n \t\t\t\n \t\t\n \t\tthis.pCopyFile(this.getRoot()+ File.separatorChar +str, this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\n \t\tworking.clear();\n \t\tsnap.clear();\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(String str : this.getFileNames()){\n \t\t\tif(!cm.containsKey(str)){\n \t\t\t\tcm.put(str, new ChangeData(str));\n \t\t\t\tcm.get(str).getLclock().putAll(this.getFilelist().get(str));\n \t\t\t}\n \t\t}\n \t\t\t\n \t\tfor(String str : this.dirRecursiveRel(this.getSnapshot().getRoot())){\n \t\t\t\n \t\t\tif(!this.getFileNames().contains(str)){\n //\t\t\t\tthis.pDeleteFile(this.getRoot()+ File.separatorChar +str);\n \t\t\t\tthis.pDeleteFile(this.getSnapshot().getRoot()+ File.separatorChar +str);\n \t\t\t}\n \t\t}\n \t\t\n \t\t\n \tthis.storeMetadata(this.getRoot());\t\n \t\t\n \treturn cm;\n \t\t\n \t}", "private void undoDelete() {\n if (!mReversDeleteItemPositionsList.isEmpty()) {\n\n mAllItems.add(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1),\n mReverseDeleteItemsList.get(mReverseDeleteItemsList.size() - 1));\n //subtract from pallet total\n mPickHandlerInterface.subtractFromTOtal(Integer.parseInt(mReverseDeleteItemsList.get(mReversDeleteItemPositionsList.size() - 1).getCaseQuantity()));\n notifyItemInserted(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1));\n mReverseDeleteItemsList.remove(mReverseDeleteItemsList.size() - 1);\n mReversDeleteItemPositionsList.remove(mReversDeleteItemPositionsList.size() - 1);\n showUndoSnackbar();\n SendInformationToActivity();\n\n }\n\n }", "public Set setDifference(Set diff){\n Set newSet = new Set();\n for(int element = 0; element < set.length; element++){\n if(!diff.elementOf(set[element]))\n newSet.add(set[element]);\n }\n return newSet;\n }", "public void diff(Value old, StringBuilder b) {\n Value v = new Value(this);\n v.flags &= ~old.flags; // TODO: see Value.remove above (anyway, diff is only used for debug output)\n if (v.object_labels != null) {\n v.object_labels = newSet(v.object_labels);\n if (old.object_labels != null)\n v.object_labels.removeAll(old.object_labels);\n }\n if (v.getters != null) {\n v.getters = newSet(v.getters);\n if (old.getters != null)\n v.getters.removeAll(old.getters);\n }\n if (v.setters != null) {\n v.setters = newSet(v.setters);\n if (old.setters != null)\n v.setters.removeAll(old.setters);\n }\n if (old.excluded_strings != null) {\n v.excluded_strings = newSet(old.excluded_strings);\n if (excluded_strings != null)\n v.excluded_strings.removeAll(excluded_strings);\n }\n if (v.included_strings != null) {\n v.included_strings = newSet(v.included_strings);\n if (old.included_strings != null)\n v.included_strings.removeAll(old.included_strings);\n }\n b.append(v);\n }", "public static void main(String[] args){\n \t\t\r\n \r\n \t\tArrayList<Phonebook> list = new ArrayList<Phonebook>();\r\n \t\t\r\n \t\tSystem.out.println(\"Original List\");\r\n \t\tlist.add(new Phonebook(1234567, \"person0@gmail.com\", 1987654, \"123 qwerty lane\"));\r\n \t\tlist.add(new Phonebook(1987654, \"person1@gmail.com\", 1994560, \"098 qwerty lane\"));\r\n \t\t\r\n \t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNew List\");\r\n\t\tlist.add(new Phonebook(2341234, \"person2@gmail.com\", 3241563, \"122 qwerty lane\"));\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNewer List \");\r\n\t\tlist.remove(1);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t}", "public ArrayList<Person> builtinSortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t// use java's built-in sort\n\tArrays.sort(arr);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated3 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n\tarr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated3.add(arr[k]);\n\t}\n\treturn unduplicated3;\n }", "@Test\n\tpublic void listTests(){\n\t\tSemanticActions actions = new SemanticActions();\n\t\tList<Integer> l1 = actions.makeList(30);\n\t\tList<Integer> l2 = actions.makeList(200);\n\t\tList<Integer> l3 = actions.merge(l1, l2);\n\t\tList<Integer> test1 = new ArrayList<Integer>();\n\t\ttest1.add(30);\n\t\ttest1.add(200);\n\t\tassertEquals(test1, l3);\n\t\tl2.add(40);\n\t\tl2.add(7);\n\t\tList<Integer> l4 = actions.merge(l1, l2);\n\t\ttest1.add(40);\n\t\ttest1.add(7);\n\t\tassertEquals(test1, l4);\n\t\tl4.add(90);\n\t\tassertFalse(test1.equals(l4));\n\t}", "@Test\n void twoEntryAreNotSame(){\n ToDo t1 = new ToDo(\"1\");\n t1.setInhalt(\"Inhalt\");\n ToDo t2 = new ToDo(\"2\");\n t2.setInhalt(\"Inhalt\");\n ToDoList list = new ToDoList();\n list.add(t1);\n list.add(t2);\n\n assertEquals(-1, list.get(0).compareTo(list.get(1)));\n }", "public static void subtract(List<FeeDetail> list, String[] feeTypes, boolean removeCompletely, FeeDetail subtract) {\r\n\t\t\r\n\t\tFeeDetail remainder = new FeeDetail();\r\n\t\tremainder.fee = subtract!=null ? subtract.fee : 0;\r\n\t\tremainder.feeVat = subtract!=null ? subtract.feeVat : 0;\r\n\t\t\r\n\t\tdouble sf = 0;\r\n\t\tdouble sv = 0;\r\n\t\t\r\n\t\tList<FeeDetail> removeThese = new ArrayList<FeeDetail>();\r\n\t\t\r\n\t\tfor (String feeType : feeTypes) {\r\n\t\t\r\n\t\t\tfor (FeeDetail f : list) {\r\n\t\r\n\t\t\t\tif (feeType!=null && feeType.trim().length()>0) {\r\n\t\t\t\t\tif (!feeType.equals(f.feeType))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse if (removeCompletely) {\r\n\t\t\t\t\t\tremoveThese.add(f);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (f.fee==null) f.fee = 0D;\r\n\t\t\t\tif (f.feeVat==null) f.feeVat = 0D;\r\n\t\t\t\t\r\n\t\t\t\tsf = Math.min(f.fee, remainder.fee);\r\n\t\t\t\tf.fee -= sf;\r\n\t\t\t\tremainder.fee -= sf;\r\n\t\t\t\t\r\n\t\t\t\tsv = Math.min(f.feeVat, remainder.feeVat);\r\n\t\t\t\tf.feeVat -= sv;\r\n\t\t\t\tremainder.fee -= sf;\r\n\t\t\t\t\r\n\t\t\t\tif (sf == 0 && sv == 0)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tfor (FeeDetail remove : removeThese) {\r\n\t\t\tlist.remove(remove);\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\r\n public void testRemovedLast() {\r\n ObservableList<String> items = createObservableList(true);\r\n ListChangeReport report = new ListChangeReport(items);\r\n int oldSize = items.size();\r\n int lastIndex = oldSize - 1;\r\n items.remove(lastIndex);\r\n assertEquals(oldSize - 1, items.size());\r\n Change c = report.getLastChange();\r\n c.next();\r\n assertEquals(lastIndex, c.getFrom());\r\n// report.prettyPrint();\r\n }", "public Integer substractNumbers(List<Integer> numbers) throws Exception;", "private void removeAllSupercededMemberContent( final ArtifactStore store,\n final Map<ArtifactStore, ArtifactStore> changeMap )\n {\n StoreKey key = store.getKey();\n // we're only interested in groups, since only adjustments to group memberships can invalidate indexed content.\n if ( group == key.getType() )\n {\n List<StoreKey> newMembers = ( (Group) store ).getConstituents();\n logger.debug( \"New members of: {} are: {}\", store, newMembers );\n\n Group group = (Group) changeMap.get( store );\n List<StoreKey> oldMembers = group.getConstituents();\n logger.debug( \"Old members of: {} are: {}\", group, oldMembers );\n\n int commonSize = Math.min( newMembers.size(), oldMembers.size() );\n int divergencePoint;\n\n // look in the members that overlap in new/old groups and see if there are changes that would\n // indicate member reordering. If so, it might lead previously suppressed results to be prioritized,\n // which would invalidate part of the content index for the group.\n boolean foundDivergence = false;\n for ( divergencePoint = 0; divergencePoint < commonSize; divergencePoint++ )\n {\n logger.debug( \"Checking for common member at index: {}\", divergencePoint );\n if ( !oldMembers.get( divergencePoint ).equals( newMembers.get( divergencePoint ) ) )\n {\n foundDivergence = true;\n break;\n }\n }\n\n // [NOS-128]\n // 1. If membership has shrunk, we can remove origin-indexed paths, which will remove merged group content\n // based on the removed member's content.\n // 2. If membership has grown, we should iterate new members' indexed content looking for mergable paths.\n // For each of these, we need to removeIndexedStorePaths using the group and the mergable path.\n // [addendum]\n // 3. If membership is the same size but has been reordered, we need to iterate from the divergence point\n // and invalidate the non-mergable files. This is because the reordering may change what artifacts\n // should obscure which other physical artifacts.\n //\n // NOTE: In any case, once we isolate the changes, we need to handle matches in two ways:\n // 1. deleteTransfers()\n // 2. add the indexedStorePath to the removed Set so we can propagage their removal through any groups\n // that include the one we're affecting directly here...using clearIndexedPathFrom() to do this.\n if ( !foundDivergence )\n {\n if ( newMembers.size() < oldMembers.size() )\n {\n divergencePoint = commonSize;\n }\n else\n {\n divergencePoint = newMembers.size();\n }\n }\n\n logger.debug( \"group membership divergence point: {}\", divergencePoint );\n\n Set<StoreKey> affectedMembers = new HashSet<>();\n boolean removeMergableOnly = divergencePoint >= oldMembers.size();\n\n // if we can iterate some old members that have been removed or reordered, invalidate the\n // group content index entries for those.\n if ( divergencePoint < oldMembers.size() )\n {\n for ( int i = divergencePoint; i < oldMembers.size(); i++ )\n {\n affectedMembers.add( oldMembers.get( i ) );\n }\n }\n else\n {\n // for new added members, need to clear the indexed path with this group store for repo metadata merging\n // See [NOS-128]\n for ( int i = divergencePoint - 1; i >= commonSize; i-- )\n {\n affectedMembers.add( newMembers.get( i ) );\n }\n }\n\n logger.debug( \"Got members affected by membership divergence: {}\", affectedMembers );\n if ( !affectedMembers.isEmpty() )\n {\n Set<Group> groups = new HashSet<>();\n groups.add( group );\n\n try\n {\n groups.addAll( storeDataManager.query()\n .packageType( group.getPackageType() )\n .getGroupsAffectedBy( group.getKey() ) );\n }\n catch ( IndyDataException e )\n {\n logger.error( String.format( \"Cannot retrieve groups affected by: %s. Reason: %s\", group.getKey(),\n e.getMessage() ), e );\n }\n\n logger.debug( \"Got affected groups: {}\", groups );\n\n DrainingExecutorCompletionService<Integer> clearService =\n new DrainingExecutorCompletionService<>( cleanupExecutor );\n\n final Predicate<? super String> mergableFilter = removeMergableOnly ? mergablePathStrings() : ( p ) -> true;\n\n // NOTE: We're NOT checking load for this executor, since this is an async process that is critical to\n // data integrity.\n affectedMembers.forEach( ( memberKey ) -> {\n logger.debug( \"Listing all {}paths in: {}\", ( removeMergableOnly ? \"mergeable \" : \"\" ), memberKey );\n listPathsAnd( memberKey, mergableFilter, p -> clearService.submit(\n clearPathProcessor( p, memberKey, groups ) ) );\n\n } );\n\n drainAndCount( clearService, \"store: \" + store.getKey() );\n }\n }\n }", "public static SinglyLinkedList<Poly> subtraction(SinglyLinkedList.Entry<Poly> list1,\n\t\t\tSinglyLinkedList.Entry<Poly> list2) {\n\t\tSinglyLinkedList<Poly> list3 = new SinglyLinkedList();\n\t\twhile (list2 != null) {\n\t\t\tPoly p = list2.element;\n\t\t\tp.num = p.num * -1;\n\t\t\tlist3.add(p);\n\t\t\tlist2 = list2.next;\n\t\t}\n\t\treturn addition(list1, list3.head.next);\n\t}", "@Test\n public void testDiff() throws Exception {\n String newVersionJarPath = \"data/sample/jar/change4.jar\";\n String oldVersionJarPath = \"data/sample/jar/change3.jar\";\n String changePath = \"data/sample/changes_change4_change3.txt\";\n\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionCodePath, oldVersionCodePath, changePath, false);\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionJarPath, oldVersionJarPath, changePath, false);\n// CallRelationGraph callGraphForChangedPart = new CallRelationGraph(relationInfoForChangedPart);\n//\n// double thresholdForInitialRegion = 0.35;\n// RelationInfo oldRelationInfo = new RelationInfo(newVersionJarPath,false);\n// oldRelationInfo.setPruning(thresholdForInitialRegion);\n// RelationInfo newRelationInfo = new RelationInfo(oldVersionJarPath,false);\n// newRelationInfo.setPruning(thresholdForInitialRegion);\n//\n// CallRelationGraph oldCallGraph = new CallRelationGraph(oldRelationInfo);\n// CallRelationGraph newCallGraph = new CallRelationGraph(newRelationInfo);\n//\n// ChangedArtifacts changedArtifacts = new ChangedArtifacts();\n// changedArtifacts.parse(changePath);\n//\n// InitialRegionFetcher fetcher = new InitialRegionFetcher(changedArtifacts, newCallGraph, oldCallGraph);\n//\n// ExportInitialRegion exporter = new ExportInitialRegion(fetcher.getChangeRegion());\n\n }", "@SuppressWarnings(\"unchecked\")\n \tprivate void getUnMatched(ArrayList<NameAndListener> oldIn, ArrayList<ContentName> newIn, \n \t\t\tArrayList<NameAndListener> oldOut, ArrayList<ContentName>newOut) {\n \t\tnewOut.addAll(newIn);\n \t\tfor (NameAndListener ial : oldIn) {\n \t\t\tboolean matched = false;\n \t\t\tfor (ContentName name : newIn) {\n \t\t\t\tif (ial.name.equals(name)) {\n \t\t\t\t\tnewOut.remove(name);\n \t\t\t\t\tmatched = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (!matched)\n \t\t\t\toldOut.add(ial);\n \t\t}\n \t\t\n \t\t// Make sure no name can be expressed a prefix of another name in the list\n \t\tArrayList<ContentName> tmpOut = (ArrayList<ContentName>)newOut.clone();\n \t\tfor (ContentName cn : tmpOut) {\n \t\t\tfor (ContentName tcn : tmpOut) {\n \t\t\t\tif (tcn.equals(cn))\n \t\t\t\t\tcontinue;\n \t\t\t\tif (tcn.isPrefixOf(cn))\n \t\t\t\t\tnewOut.remove(cn);\n \t\t\t\tif (cn.isPrefixOf(tcn))\n \t\t\t\t\tnewOut.remove(tcn);\n \t\t\t}\n \t\t}\n \t}", "@Test\r\n\tpublic void delFeedbackTest() {\n\t\tassertNotNull(\"Check if there is valid Feedback arraylist to add to\", feedbackList);\r\n\t\tfeedbackList.add(fb1);\r\n\t\tfeedbackList.add(fb2);\r\n\t\t// Given there are two feedbacks in the Feedback list when one feedback\r\n\t\t// is deleted than the feedback list size should decrease to one\r\n\t\tfeedbackList.remove(fb1);\r\n\t\tassertEquals(\"Check that Feedback arraylist size is 1\", 1, feedbackList.size());\r\n\t\t// Then check if the correct Feedback was deleted\r\n\t\tassertSame(\"Check that Feedback is added\", fb2, feedbackList.get(0));\r\n\t}", "@Test\r\n\tvoid testDeleteToDoItem() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\r\n\t\t// case 1: deleting one item from a one-item list\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.remove(\"Item 1\");\r\n\t\tif (list.getSize() != 0 || list.getHead() != null) {\r\n\t\t\tfail(\"Removed a single item from a size 1 list incorrectly\");\r\n\t\t}\r\n\r\n\t\t// case 2: deleting one item from a two-item list\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.remove(\"Item 2\");\r\n\t\tif (list.getSize() != 1) {\r\n\t\t\tfail(\"Incorrect size: should be 1\");\r\n\t\t}\r\n\t\tif (!list.getHead().getName().equals(\"Item 1\")) {\r\n\t\t\tfail(\"Head set incorrectly: should be \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\tif (list.getHead().getNext() != null) {\r\n\t\t\tfail(\"The next item for head was set incorrectly\");\r\n\t\t}\r\n\r\n\t\tlist.clear();\r\n\r\n\t\t// case 3: adding several items and removing multiple\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\t\tlist.insert(toDoItem5);\r\n\t\tlist.insert(toDoItem6);\r\n\t\tlist.remove(\"Item 1\");\r\n\t\tlist.remove(\"Item 6\");\r\n\t\tlist.remove(\"Item 4\");\r\n\r\n\t\tToDoItem tempHead = list.getHead();\r\n\t\tString currList = \"|\";\r\n\t\tString correctList = \"|Item 2|Item 3|Item 5|\";\r\n\r\n\t\twhile (tempHead != null) {\r\n\t\t\tcurrList += tempHead.getName() + \"|\";\r\n\t\t\ttempHead = tempHead.getNext();\r\n\t\t}\r\n\t\tif (!currList.equals(correctList)) {\r\n\t\t\tfail(\"The list was ordered incorrectly after inserting and deleting the case 3 items\");\r\n\t\t}\r\n\t}", "private void insertHistoryRelation(List<CustomersDTO> lstOldDataDelete, List<CustomersDTO> lstNewDataDelete,\n List<CustomersDTO> lstOldDataAdd, List<CustomersDTO> lstNewDataAdd) {\n // List customer delete and add relations\n lstOldDataDelete.forEach(oldData -> lstNewDataAdd.forEach(newData -> {\n if (oldData.getEmployeeId() != 0 && newData.getEmployeeId() != 0\n && oldData.getEmployeeId().equals(newData.getEmployeeId())) {\n insertCustomerHistoryRelation(oldData, newData);\n }\n }));\n\n // List customer delete relation\n lstOldDataDelete.forEach(oldData -> lstNewDataDelete.forEach(newData -> {\n if (oldData.getEmployeeId() != 0L && newData.getEmployeeId() != 0L\n && oldData.getEmployeeId().equals(newData.getEmployeeId())) {\n insertCustomerHistoryRelation(oldData, newData);\n }\n }));\n\n // List customer add relation\n lstOldDataAdd.forEach(oldData -> lstNewDataAdd.forEach(newData -> {\n if (oldData.getEmployeeId() != 0L && newData.getEmployeeId() != 0L\n && oldData.getEmployeeId().equals(newData.getEmployeeId())) {\n insertCustomerHistoryRelation(oldData, newData);\n }\n }));\n }", "public abstract ObjectId[] prenota(List<T> listToAdd, ObjectId idVolo) throws FlightNotFoundException, SeatsSoldOutException;", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n SetInterface<T> result = new LinkedSet();\n Node n = first;\n while(n != null){\n //make sure the item is not also in rhs\n if(!rhs.contains(n.value))\n result.addItem(n.value);\n n = n.next;\n }\n return result;\n }", "private static HashSet<Annotation> setDifference(HashSet<Annotation> setA,\r\n\t\t\tHashSet<Annotation> setB) {\r\n\r\n\t\tHashSet<Annotation> tmp = new HashSet<Annotation>(setA);\r\n\t\ttmp.removeAll(setB);\r\n\t\treturn tmp;\r\n\t}", "public ArrayList<Question> filterByDiff(ArrayList<Question> input, int diff) {\n\n /* The final filtered arraylist */\n ArrayList<Question> filtered = new ArrayList<Question>();\n\n /* Loops through the passed in array */\n for (int i=0; i < input.size(); i++) {\n\n /* if the question matches the criteria, add it to the arraylist */\n if (input.get(i).getDifficulty() == diff) {\n filtered.add(input.get(i));\n }\n }\n\n return filtered;\n }", "public static synchronized Vector diff(Vector left, Vector right)\n\t throws IcofException {\n\n\tString funcName = new String(\"diff(Vector, Vector)\");\n\n\t// If the \"right\" Vector is null or empty, just return the \"left\"\n\t// Vector.\n\t// There's no point in cycling through the entire \"left\" Vector, in this\n\t// case.\n\tif ((right == null) || (right.isEmpty())) {\n\t return left;\n\t}\n\n\tVector aDiff = new Vector();\n\n\ttry {\n\n\t for (int i = 0; i < left.size(); i++) {\n\t\tObject o = (Object) left.elementAt(i);\n\t\tif (!right.contains(o)) {\n\t\t aDiff.add(o);\n\t\t}\n\t }\n\n\t aDiff.trimToSize();\n\t} catch (Exception e) {\n\t IcofException ie = new IcofException(CLASS_NAME, funcName,\n\t\t IcofException.SEVERE,\n\t\t \"Error creating difference of Vectors \", \"\");\n\t throw (ie);\n\t}\n\n\treturn aDiff;\n }", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "private List<Long> getListOfItemsToDelete(ContentValues[]\n contentValuesArray,\n String itemIdColumnName,\n Uri itemContentUri) {\n\n\n /** Maybe a report or an expense line item */\n List<Long> serverItemIDList = new ArrayList<>();\n\n /** Maybe a report or an expense line item */\n List<Long> deviceSyncedItemIDList = new ArrayList<>();\n //list of items from server\n for(ContentValues contentValues : contentValuesArray) {\n serverItemIDList.add(contentValues.getAsLong(itemIdColumnName));\n }\n\n Cursor cursor = getContext().getContentResolver().query(\n itemContentUri,\n null,\n ReportEntry.COLUMN_SYNC_STATUS + \"=?\",\n new String[]{SyncStatus.SYNCED.toString()},\n null\n );\n\n if(cursor.getCount() > 0) {\n cursor.moveToFirst();\n do {\n\n deviceSyncedItemIDList.add(cursor.getLong(cursor\n .getColumnIndex(itemIdColumnName)));\n\n } while(cursor.moveToNext());\n }\n\n List<Long> diffList = new ArrayList<>();\n\n for(Long deviceReportId : deviceSyncedItemIDList) {\n if(!serverItemIDList.contains(deviceReportId)) {\n diffList.add(deviceReportId);\n }\n }\n\n return diffList;\n\n }", "@Test\n public void testRemove_After_Previous() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.previous();\n\n instance.remove();\n\n assertFalse(baseList.contains(2));\n }", "private Element getDiffTable(Element diffResultTable, SimpleImmutableEntry<String, List<File>> diffResult) {\n Element diffTable = diffResultTable.clone();\n Element diffFileNameContainer = diffTable.select(\".fileName\").first();\n Element diffMatchesContainer = diffTable.select(\".matches\").first();\n Element diffMatchContainer = diffResultTable.select(\".match\").first().clone();\n\n for (Element element : diffTable.select(\".match\"))\n element.remove();\n\n diffFileNameContainer.text(diffResult.getKey());\n\n for (File f : diffResult.getValue()) {\n Element container = diffMatchContainer.clone();\n\n if (deletedFiles.contains(f.getPath())) {\n container.addClass(\"deleted\");\n }\n\n container.text(f.getPath());\n diffMatchesContainer.appendChild(container);\n }\n return diffTable;\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "public void onSuccess(ImmutableList<Expiration> immutableList) {\n e.this.anZ.remove(aVar2);\n }", "@Test\n public void testHashCode() {\n assertEquals(uniqueParticipantList.hashCode(), uniqueParticipantList.hashCode());\n\n // different lists -> returns different hashcode\n secondUniqueParticipantList.add(BERNICE);\n assertNotEquals(uniqueParticipantList.hashCode(), secondUniqueParticipantList.hashCode());\n }", "public static void testDedupe(){\n LinkedList<String> list = new LinkedList<String>();\n \n for(int i = 0; i < 10; i++)\n list.add(\"Number \" + i);\n for(int j = 0; j < 5; j++)\n list.add(\"Number \" + j);\n \n //print test list\n for (String num : list)\n System.out.print(num + \" \");\n \n //Call deDupe and reprint list\n LinkedLists.deDupe(list);\n System.out.println(\"List after removing dupes: \" + '\\n');\n for (String num : list)\n System.out.print(num + \" \");\n }", "private List<String> getStringSet(List<DiffEntry> diffList){\n\t\tList<String> set = new ArrayList<>();\n\t\tfor(DiffEntry entry: diffList){\n\t\t\tset.add(entry.getNewPath());\n\t\t}\n\t\treturn set;\n\t}", "public static ArrayList < Student > dislikedMembersRemover(ArrayList < Student > teamCreator) {\n for (int i = 0; i < teamCreator.size(); i++) {\n Student[] dislikedMembers = teamCreator.get(i).getDislikedMembers();\n List < Student > dislikedMembersList = Arrays.asList(dislikedMembers);\n for (int j = 0; j < dislikedMembers.length; j++) {\n boolean partOfTeam = false;\n if (teamCreator.contains(dislikedMembers[j])) {\n partOfTeam = true;\n }\n if (partOfTeam && (dislikedMembers[j].getGender() == 'f' || dislikedMembers[j].getGender() == 'F')) {\n for (Student student: studentsNotInATeam) {\n if ((!dislikedMembersList.contains(student)) && (student.getGender() == 'f' || student.getGender() == 'F')) {\n teamCreator.remove(dislikedMembers[j]);\n teamCreator.add(student);\n studentsNotInATeam.remove(student);\n studentsNotInATeam.add(dislikedMembers[j]);\n break;\n }\n }\n }\n if (partOfTeam && (dislikedMembers[j].getGender() == 'm' || dislikedMembers[j].getGender() == 'M')) {\n for (Student student: studentsNotInATeam) {\n if ((!dislikedMembersList.contains(student)) && (student.getGender() == 'm' || student.getGender() == 'M')) {\n teamCreator.remove(dislikedMembers[j]);\n teamCreator.add(student);\n studentsNotInATeam.remove(student);\n studentsNotInATeam.add(dislikedMembers[j]);\n break;\n }\n }\n }\n }\n }\n return teamCreator;\n }", "public void testCopyList_copyValidList()\n\t{\n\t\t// Arrange\n\t\tlong listId = addListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.copyList(listId, \"testList2\");\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testList2\");\n\n\t\t// Assert\n\t\tassertNotNull(newList);\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertNotNull(newCategory1);\n\t\tassertNotNull(newCategory2);\n\t\tassertNotNull(newCategory1.getEntry(\"item1\"));\n\t\tassertNotNull(newCategory1.getEntry(\"item2\"));\n\t\tassertNotNull(newCategory1.getEntry(\"item3\"));\n\t\tassertNotNull(newCategory2.getEntry(\"item4\"));\n\t\tassertNotNull(newCategory2.getEntry(\"item5\"));\n\t\tassertNotNull(newCategory2.getEntry(\"item6\"));\n\t}", "public void deletelist(){\r\n\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:- current list should be deleted\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"lnkdeletelist\"));\r\n\t\t\tclick(locator_split(\"lnkdeletelist\"));\r\n\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitForElement(locator_split(\"btnconfirmdeletelist\"));\r\n\t\t\tclick(locator_split(\"btnconfirmdeletelist\"));\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- list is deleted\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- list is not deleted \"+elementProperties.getProperty(\"lnkdeletelist\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkdeletelist\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\t ArrayList list=new ArrayList();\r\n\t\t \r\n\t\t list.add(\"hii\");\r\n\t\t list.add(\"hello\");\r\n\t\t list.add(\"welcome\");\r\n\t\t list.add(\"to\");\r\n\t\t \r\n\t\t ArrayList list1=new ArrayList();\r\n\t\t Iterator it=list.iterator();\r\n\t\t System.out.print(\"Original List :\");\r\n\t\t while(it.hasNext())\r\n\t\t {\r\n\t\t System.out.println(it.next());\r\n\t\t \r\n\r\n\t\t}\r\n\t\t list.clear();\r\n\t\t Iterator itt=list.iterator();\r\n\t\t System.out.print(\"Removed List :\");\r\n\t\t while(itt.hasNext())\r\n\t\t {\r\n\t\t System.out.println(itt.next());\r\n\t\t \r\n\r\n\t\t}\r\n\t}", "private void deleteObjects(Context context, StringList strLstFLToDel) throws Exception\r\n\t{\r\n\r\n\t try {\r\n\r\n\t\t// Iterate the stringList containing the FeatureLists Objects to delete\r\n\t\tString [] strFLToDel = new String[strLstFLToDel.size()];\r\n\r\n\t for (int m = 0; m < strLstFLToDel.size(); m++) {\r\n\t \tstrFLToDel[m] = (String) strLstFLToDel.get(m);\r\n\t }\r\n\r\n\t // Call DomainObject's deleteObjects method to delete all the Objects in the String array in a single transaction\r\n DomainObject.deleteObjects(context, strFLToDel);\r\n\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new FrameworkException(\"Object Delete Failed :\"+e.getMessage());\r\n\t\t}\r\n\t}", "private static void removeExistingFromResults(List<Author> resultList, List<String> existingList) {\n\n // Check that existingList is not null\n if (existingList == null) return;\n\n // Remove items from resultList that are already in the user's friend/follow list\n for (String userId : existingList) {\n for (int i = resultList.size() - 1; i >= 0; i--) {\n Author user = resultList.get(i);\n\n if (user.firebaseId.equals(userId)) {\n resultList.remove(user);\n break;\n }\n }\n }\n }", "List patch(List inputObject, List inputSnapshot, Settings settings);", "public Collection<Plan> getMinusPlan(CompilerContext context, Collection<Plan> p1, Collection<Plan> p2) {\n return p1.stream().flatMap( pp1 ->\n p2.stream().flatMap(pp2 ->\n Stream.of(context.asPlan(new Difference(pp1, pp2)))\n )\n ).collect(Collectors.toList());\n }", "@Test\n public void testSubList_SubList_Item_Update_idempotent() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n List<Integer> expResult = Arrays.asList(1, 7, 7);\n SegmentedOasisList<Integer> result = (SegmentedOasisList<Integer>) instance.subList(1, 4);\n\n instance.set(3, 8);\n\n assertTrue(isEqual(expResult, result));\n\n }", "public void diffsChanged(IDiffChangeEvent event, IProgressMonitor monitor) {\n \t\tIPath[] removed = event.getRemovals();\n \t\tIDiff[] added = event.getAdditions();\n \t\tIDiff[] changed = event.getChanges();\n \t\t// Only adjust the set of the rest. The others will be handled by the collectors\n \t\ttry {\n \t\t\tgetTheRest().beginInput();\n \t\t\tfor (int i = 0; i < removed.length; i++) {\n \t\t\t\tIPath path = removed[i];\n \t\t\t\tgetTheRest().remove(path);\n \t\t\t}\n \t\t\tfor (int i = 0; i < added.length; i++) {\n \t\t\t\tIDiff diff = added[i];\n \t\t\t\t// Only add the diff if it is not already in another set\n \t\t\t\tif (!isContainedInSet(diff)) {\n \t\t\t\t\tgetTheRest().add(diff);\n \t\t\t\t}\n \t\t\t}\n \t\t\tfor (int i = 0; i < changed.length; i++) {\n \t\t\t\tIDiff diff = changed[i];\n \t\t\t\t// Only add the diff if it is already contained in the free set\n \t\t\t\tif (getTheRest().getDiff(diff.getPath()) != null) {\n \t\t\t\t\tgetTheRest().add(diff);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tgetTheRest().endInput(monitor);\n \t\t}\n \t\tif (checkedInCollector != null)\n \t\t\tcheckedInCollector.handleChange(event);\n \t}", "public static void main(String[] args) {\n\t\taListNode.next = bListNode;\n\t\tbListNode.next = cListNode;\n\t\tcListNode.next = dListNode;\n\t\tdListNode.next = aListNode;\n\t\tremoveElements(aListNode,1);\n\n\t}", "private ArrayList<String> stagedButDiffInCWD() {\n ArrayList<String> result = new ArrayList<>();\n List<String> addingStage = Utils.plainFilenamesIn(INDEX);\n for (String file: addingStage) {\n File fileCWD = new File(Main.CWD, file);\n File stagedFile = new File(INDEX, file);\n if (!fileCWD.exists()) {\n String message = file + \" (deleted)\";\n result.add(message);\n } else {\n String contentOne = Utils.readContentsAsString(fileCWD);\n String contentTwo = Utils.readContentsAsString(stagedFile);\n if (!contentOne.equals(contentTwo)) {\n String message = file + \" (modified)\";\n result.add(message);\n }\n }\n }\n return result;\n }", "public static void main(String[] args) {\n myLinkedList list = new myLinkedList();\n list.add(10);\n list.add(15);\n list.add(12);\n list.add(13);\n list.add(20);\n list.add(14);\n list.printList();\n listNode temp = list.findprev(14);\n temp.next.next = temp;\n list.printList();\n System.out.println(list.detectAndRemoveLoop());\n //list.reverList();\n list.printList();\n //list.swapNodes(list, 15, 13);\n //list.printList();\n\n }", "IFileDiff[] getDiffs();", "public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }", "@Override\n public void delete(ArrayList<League> leagues) {\n\n }", "@Test\n public void givenFirstElementWhenDeletedShouldPassLinkedListResult() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n myLinkedList.pop();\n myLinkedList.printMyNodes();\n boolean result = myLinkedList.head.equals(mySecondNode) &&\n myLinkedList.tail.equals(myThirdNode);\n Assertions.assertTrue(result);\n }", "private List<Obs> getFinalObsList(Patient patient, List<Obs> patientObsList, Integer pid){\n\t\tList<Concept> conceptListNotToBeExported = getSavedObs(pid);\n\t\tSet<Concept> removedDuplicateConceptList = new HashSet<Concept>(conceptListNotToBeExported);\n\t\tfor(int k=0; k<patientObsList.size();k++){\n\t\t\tConcept c = patientObsList.get(k).getConcept();\n\t\t\tif(removedDuplicateConceptList.contains(c)){\n\t\t\t\tpatientObsList.remove(k);\n\t\t\t}\n\t\t}\n\t\treturn patientObsList;\n\t}", "void removeInconsistency(Integer optionId1, Integer optionId2);", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public ModifyCitedPublicationList( ArrayList <CitedPublication> StartedList ){\n \n modifiedList = new ArrayList<Integer>(); \n IndexDeletedItem = new ArrayList<Integer>();\n deletedItem = new ArrayList <CitedPublication>();\n \n KeepItem = StartedList;\n \n }", "public ArrayList<Person> allPairsDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tfor (int i=0;i<this.lst.size();i++){\n\t int dup =0;\n\t //compare each element to elements after it in the list\n\t for(int j=i+1; j< this.lst.size();j++){\n\t\tif (lst.get(i).compareTo(lst.get(j)) == 0 ) dup++;\n\t }\n\t if (dup == 0) unduplicated.add(lst.get(i));\n\t}\n\treturn unduplicated;\n }", "@Test\n public void testCompactFast_Sgement_Removed_Item_Order() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n List c = Arrays.asList(1, 1, 2, 3, 4, 5);\n List expected = c.subList(2, c.size());\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(expected, instance.subList(0, instance.size()));\n\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public void testRemoveObj() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(\"A\"));\r\n assertEquals( \"B\", list.get(0));\r\n assertEquals( 1, list.size());\r\n list.add(\"C\");\r\n assertTrue(list.remove(\"C\"));\r\n assertEquals(\"B\", list.get(0));\r\n }", "@Test\n void testRemoveDeletesHeadAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n String oldHeadKey = l.getHeadKey();\n l.remove(oldHeadKey);\n\n assertEquals(false, l.contains(oldHeadKey));\n }", "public List removeDuplicate() throws ComputationException {\n log.debug(\"Removing duplicate using List......\");\n List<Integer> uniqueList = new ArrayList();\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n log.debug(Arrays.toString(intArray));\n for (int i = 0; i < intArray.length; i++) {\n if (!isAdded(uniqueList, intArray[i])) {\n uniqueList.add(intArray[i]);\n }\n\n }\n log.debug(\"refined size of int array: \" + uniqueList.size());\n log.debug(uniqueList.toString());\n return uniqueList;\n\n }", "@PostMapping(\n value = \"/compare/differenceTree\",\n consumes = MediaType.APPLICATION_JSON,\n produces = MediaType.APPLICATION_JSON\n )\n public ResponseEntity<CompactMealyMachineProxy> differenceTree(@PathVariable(\"projectId\") Long projectId,\n @RequestBody List<CompactMealyMachineProxy> mealyMachineProxies) {\n final User user = authContext.getUser();\n LOGGER.traceEntry(\"calculate the difference tree for models ({}) and user {}.\", mealyMachineProxies, user);\n\n if (mealyMachineProxies.size() != 2) {\n throw new IllegalArgumentException(\"You need to specify exactly two hypotheses!\");\n }\n\n final CompactMealy<String, String> diffTree =\n learnerService.differenceTree(mealyMachineProxies.get(0), mealyMachineProxies.get(1));\n\n LOGGER.traceExit(diffTree);\n return ResponseEntity.ok(CompactMealyMachineProxy.createFrom(diffTree, diffTree.getInputAlphabet()));\n }", "@Test\n public void testAdd_After_Remove() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n ;\n\n instance.remove();\n instance.add(9);\n int expResult = 1;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "@Test\n void testDeleteAllEntries() {\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n todoList.add(todo1);\n todo1.setStatus(Status.BEENDET);\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(todo3);\n\n //Entferne alle Elemente mittels Iterator\n Iterator it = todoList.iterator();\n while (it.hasNext()){\n it.next();\n it.remove();\n }\n\n assertEquals(0, todoList.size());\n }", "public static boolean testAlphabetListRemove() {\r\n AlphabetList list1 = new AlphabetList();\r\n AlphabetList list2 = new AlphabetList();\r\n AlphabetList list3 = new AlphabetList();\r\n AlphabetList list4 = new AlphabetList();\r\n AlphabetList list5 = new AlphabetList();\r\n \r\n // Try removing a cart (at position index 0) from a list which contains only one cart;\r\n list1.add(new Cart(\"D\"));\r\n if (list1.size() != 1)\r\n return false;\r\n list1.remove(0);\r\n if (!list1.readForward().equals(\"\"))\r\n return false;\r\n if (!list1.readBackward().equals(\"\"))\r\n return false;\r\n try {\r\n //Try to remove a cart (position index 0) from a list which contains at least 2 carts;\r\n list2.add(new Cart(\"A\"));\r\n if (list2.size() != 1)\r\n return false;\r\n list2.add(new Cart(\"Z\"));\r\n if (list2.size() != 2)\r\n return false;\r\n list2.remove(0);\r\n if (!list2.readForward().equals(\"Z\"))\r\n return false;\r\n if (!list2.readBackward().equals(\"Z\"))\r\n return false;\r\n // Try to remove a cart from the middle of a non-empty list containing at least 3 carts;\r\n list3.add(new Cart(\"C\"));\r\n if (list3.size() != 1)\r\n return false;\r\n list3.add(new Cart(\"F\"));\r\n if (list3.size() != 2)\r\n return false;\r\n list3.add(new Cart(\"G\"));\r\n if (list3.size() != 3)\r\n return false;\r\n list3.remove(1);\r\n if (!list3.readForward().equals(\"CG\"))\r\n return false;\r\n if (!list3.readBackward().equals(\"GC\"))\r\n return false;\r\n // Try to remove the cart at the end of a list containing at least two carts.\r\n list4.add(new Cart(\"C\"));\r\n if (list4.size() != 1)\r\n return false;\r\n list4.add(new Cart(\"F\"));\r\n if (list4.size() != 2)\r\n return false;\r\n list4.remove(list4.size() - 1);\r\n if (!list4.readForward().equals(\"C\"))\r\n return false;\r\n if (!list4.readBackward().equals(\"C\"))\r\n return false;\r\n // Try to remove a cart from a list containing only one cart.\r\n list5.add(new Cart(\"C\"));\r\n if (list5.size() != 1)\r\n return false;\r\n list5.remove(list5.size() - 1);\r\n if (!list5.readForward().equals(\"\"))\r\n return false;\r\n if (!list5.readBackward().equals(\"\"))\r\n return false;\r\n \r\n // Try removing a cart from an empty list or pass a negative index to AlphabetList.remove()\r\n // method;\r\n list1.remove(-1);\r\n } catch (IndexOutOfBoundsException e) {\r\n if (e.getMessage() == \"Invalid index.\")\r\n return true;\r\n } catch (NullPointerException e) {\r\n return true;\r\n }\r\n\r\n return true;\r\n }", "@Test\n\tpublic void createListWithArraysUtil() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\tList<String> copy = Arrays.asList(\"AAPL\", \"MSFT\");\n\n\t\tassertTrue(list.equals(copy));\n\t}", "@Override\n\tpublic List<String> getVersionDifferences() {\n\t\t\n\t\t\n\t\treturn versionDifferences;\n\t}", "@Override\n\tpublic void undo() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( newElements != null ) {\n\t\t\t\tfor ( AbstractDrawableComponent ade : newElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\t \t\n\t\t\t}\n\n\t\t\tif ( oldElements != null ) {\n\t\t\t\tparent.add( oldElements );\n\t\t\t}\n\t\t}\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < newElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = newElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( oldElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6584537", "0.6147717", "0.5938402", "0.592219", "0.59161747", "0.57708395", "0.57168955", "0.57122105", "0.56789047", "0.567062", "0.5670239", "0.5624797", "0.5618697", "0.55583084", "0.5545474", "0.551152", "0.55075854", "0.5496753", "0.54877317", "0.5459826", "0.54120404", "0.53869474", "0.5369343", "0.5357877", "0.53441346", "0.53424644", "0.53334665", "0.53301954", "0.5328486", "0.5320116", "0.53176504", "0.531543", "0.53134435", "0.52981204", "0.52979404", "0.5294113", "0.5264429", "0.5262337", "0.5259063", "0.52537465", "0.52396417", "0.5233815", "0.52298266", "0.5224675", "0.5217096", "0.52163756", "0.5211051", "0.5208527", "0.5186067", "0.51844525", "0.5179532", "0.51758415", "0.5165156", "0.51628464", "0.5161783", "0.5156967", "0.5153329", "0.5151575", "0.5134286", "0.5133532", "0.5122716", "0.51219875", "0.5108848", "0.5103468", "0.51012063", "0.5099482", "0.509695", "0.5096044", "0.50805634", "0.50774866", "0.5072518", "0.5067765", "0.50665665", "0.50655323", "0.50578946", "0.5052795", "0.5046787", "0.5044141", "0.5043272", "0.5042871", "0.5038004", "0.5037957", "0.5037737", "0.50308794", "0.50291246", "0.50281197", "0.5025978", "0.50254405", "0.5022492", "0.5020441", "0.50186884", "0.5017754", "0.5007961", "0.4999105", "0.49946308", "0.49936238", "0.49933043", "0.49912798", "0.49876633", "0.49866962", "0.4985942" ]
0.0
-1
Created by emerio on 5/25/17.
@CustomScope @Component(dependencies = NetComponent.class,modules = ListUserActivityModule.class) public interface ListUserActivityComponent { void inject(ListUserActivity listUserActivity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\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}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void init() {\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 protected void initialize() {\n }", "private void m50366E() {\n }", "@Override\n\tpublic void gravarBd() {\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}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "public void mo4359a() {\n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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 jugar() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@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\tpublic void one() {\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}", "@Override\r\n\tpublic void anularFact() {\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\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "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 int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "protected void mo6255a() {\n }", "@Override\n public int describeContents() { return 0; }", "public void mo6081a() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void init() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}" ]
[ "0.6247492", "0.61112154", "0.6016456", "0.59765136", "0.5971416", "0.59257096", "0.59257096", "0.5902323", "0.58706445", "0.5825382", "0.58094573", "0.57932377", "0.5784062", "0.57666767", "0.5764075", "0.57528514", "0.5735992", "0.5735992", "0.5735992", "0.5735992", "0.5735992", "0.57251734", "0.572502", "0.5711285", "0.56991714", "0.569862", "0.56980866", "0.56939507", "0.56939507", "0.56939507", "0.56939507", "0.56939507", "0.56939507", "0.5692778", "0.56904256", "0.56819534", "0.56819534", "0.5680414", "0.5653671", "0.56493694", "0.5648067", "0.5647646", "0.5644078", "0.5641373", "0.563927", "0.56235063", "0.56235063", "0.56182665", "0.5615646", "0.5613346", "0.56120515", "0.5590813", "0.55857277", "0.5583151", "0.5583151", "0.5582403", "0.5580342", "0.5578038", "0.5577725", "0.5577725", "0.5577725", "0.55687094", "0.55578214", "0.55578214", "0.55578214", "0.5552191", "0.5551887", "0.5551887", "0.5551887", "0.55479777", "0.55464524", "0.5546328", "0.55392796", "0.5534865", "0.5525913", "0.55227375", "0.5517918", "0.55152816", "0.5515158", "0.5499359", "0.5499359", "0.5499359", "0.5499359", "0.5499359", "0.5499359", "0.5499359", "0.549538", "0.5493852", "0.549225", "0.54910415", "0.54910415", "0.54896104", "0.5454618", "0.5451175", "0.54412764", "0.54388934", "0.54370874", "0.5435102", "0.5425934", "0.5420733", "0.5420733" ]
0.0
-1
The final call of system before the activity is destroyed, so the AlertDialog is closed //
@Override protected void onDestroy() { super.onDestroy(); gameAlertDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tcancelDialog();\n\t\tsuper.onDestroy();\n\t}", "private void DestroyAlertDialog() {\r\n Log.d(TAG, \"DestroyAlertDialog\");\r\n mContext = null;\r\n mInstance = null;\r\n mNotificationMgr.cancel(100);\r\n mNotificationMgr = null;\r\n\r\n stopTimer();\r\n releaseUnlock();\r\n\t//System.gc();\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tappManager.finishActivity(this);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tAppManager.getAppManager().finishActivity(this);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\thandler.post(new DissmissDialogTask(true));\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tdismissWindow();\n\t}", "@Override\n protected void onDestroy() {\n android.os.Process.killProcess(android.os.Process.myPid());\n super.onDestroy();\n // this.finish();\n }", "protected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (contador == 1)\n\t\t\tpDialog.dismiss();\n\t}", "@Override\n public void run() {\n pDialog.dismiss();\n RoomCreationActivity.this.finish();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMyApplication.getInstance().finishActivity(this);\n\t}", "public void onDestroy() {\n\t\tif (activity != null)\r\n\t\t\tactivity.finish();\r\n\t\tmUpdateTools.onDestroy();\r\n\t\tmDBTools.close();\r\n\t\tmNM.cancel(NOTIFICATION_ID);\r\n\t}", "public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }", "public void onDestroy() {\n\n super.onDestroy();\n prgDialog.dismiss();\n finish();\n }", "protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}", "@Override\n public void onDestroy() {\n dismissProgressDialog();\n super.onDestroy();\n }", "@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\thelper.close();\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n if (mAlertDialog != null && mAlertDialog.isShowing()) {\n mAlertDialog.dismiss();\n }\n }", "private void programShutdown(){\n\n am.finishAllActivity();\n activity .moveTaskToBack(true);\n activity .finish();\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(0);\n\n\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tSystem.exit(0);\n\t}", "@Override\n public void run() {\n pDialog.dismiss();\n finish();\n }", "@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tif(!isSave){\n\t\t\tMyDialog.saveTemp(this, Common.PATH);\n\t\t\tsuper.onDestroy();\n\t\t}else{\n\t\t\tsuper.onDestroy();\n\t\t}\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }", "private void onCancel() {\n System.exit(0);\r\n dispose();\r\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }", "@Override\n public void onClose() {\n Toast.makeText(this, \"onClose\", Toast.LENGTH_SHORT).show();\n }", "private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n finish();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\trunActivity = 0;\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\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{\n\t\t\t\t\t\t\tmActivity.finish();\n\t\t\t\t\t\t}", "public void onDismissDialog() {\n Log.i(this, \"Dialog dismissed\");\n if (mInCallState == InCallState.NO_CALLS) {\n attemptFinishActivity();\n attemptCleanup();\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\t\n\t\t\tout.close();\n\t\t\tdos.close();\n\t\t\ts.close();\n\t\t\tToast.makeText(getApplicationContext(), \"final closed\", Toast.LENGTH_LONG).show();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tToast.makeText(getApplicationContext(), \"error\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\tfinish();\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n // Dismiss the progress bar when application is closed\n if (prgDialog != null) {\n prgDialog.dismiss();\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t// mSearch.destroy();\n\t\tmPoiSearch.destroy();\n\n\t\tif (mCommonDialog != null)\n\t\t\tmCommonDialog.dismiss();\n\t\tif(mdealTask!=null){\n\t\t\tmdealTask.cancel(true);\n\t\t\tmdealTask=null;\n\t\t\t}\n\t}", "@Override\n public void onDestroyView() {\n Dialog dialog = getDialog();\n if (dialog != null && getRetainInstance()) {\n dialog.setDismissMessage(null);\n }\n super.onDestroyView();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tpopupWindowDismiss();\n\t\tif(receiver!=null)\n\t\t\tunregisterReceiver(receiver);\n\t}", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t//public void onTerminate() {\n\tpublic void onDestroy() {\n\t\tapplicationContext = cordova.getActivity().getApplicationContext();\n\t\tLocalBroadcastManager.getInstance(applicationContext).unregisterReceiver(receiver);\n\t\tAcceptSDK.finish();\n\t\t//super.onTerminate();\n\t\tsuper.onDestroy();\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n uiHelper.onDestroy();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (getIntent().getExtras() != null && getIntent().getExtras().getBoolean(\"EXIT\", false)) {\n setResult(0);\n finishAndRemoveTask();\n } else {\n finishAndRemoveTask();\n }\n }", "@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\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "@Override\r\n public void run() {\n dialog.dismiss();\r\n }", "@Override\r\n\t public void onDestroy() {\r\n\t super.onDestroy();\r\n\t getActivity().finish();\r\n\t }", "public static void finishIt(final Activity activity) {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity);\n\n alertDialogBuilder.setTitle(activity.getResources().getString(R.string.app_err_title));\n\n alertDialogBuilder\n .setMessage(activity.getResources().getString(R.string.gms_missing_msg))\n .setCancelable(false)\n .setNeutralButton(activity.getResources().getString(R.string.ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n activity.finish();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tAlertUtil.dismissDialog();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}", "private void tryToFinishActivity() {\n Log.i(TAG, \"[tryToFinishActivity]\");\n finish();\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\n\tpublic void onDestroy() {\n\t\tContext context = this.getApplicationContext();\n\t\t//Toast.makeText(context, \"Avslutter service\", Toast.LENGTH_LONG).show();\n\n\t\t//Fjerner notification:\n\t\tnotificationManager.cancel(0); //.cancelAll();\n\t\tsuper.onDestroy();\n\t}", "@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n clean();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }", "private void onOK ()\n {\n dispose();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.e(\"mainactivity\", \"destroyed\");\n\t}", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int i) {\n\t\t\t\tMainActivity.this.finish();\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\tAlertUtil.dismissDialog();\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\tAlertUtil.dismissDialog();\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\tAlertUtil.dismissDialog();\n\t\t\t\t\t\t\t\t\t}", "void dismissAlertDialog();", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t// 结束Activity从堆栈中移除\r\n//\t\tActivityManagerUtil.getActivityManager().finishActivity(this);\r\n\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttActivityDisplay.setText(\"On Destroy called\");\n\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}", "private void onOK() {\n dispose();\n }", "private void onOK() {\n dispose();\n }", "private void onOK() {\n dispose();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n // Clear the session data\n // This will clear all session data and\n // rdirect user to LoginActivity\n FragmentManager mFragmentManager = getActivity().getSupportFragmentManager();\n if (mFragmentManager.getBackStackEntryCount() > 0)\n mFragmentManager.popBackStackImmediate();\n\n\n// getActivity().finish();\n// Intent i = new Intent(getContext(), LoginWithMobile.class);\n// startActivity(i);\n session.logoutUser();\n// System.exit(0);\n\n\n// int pid = android.os.Process.myPid();\n// android.os.Process.killProcess(pid);\n// Toast.makeText(getApplicationContext(), \"User Is Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n MainActivity.this.finish();\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog) {\n\t\t\t\t\t\t\tGrzlActivity.this.finish();\r\n\t\t\t\t\t\t}", "@Override\r\n\t\t public void onClick(View arg0) {\n\t\t screenDialog.dismiss();\r\n\t\t }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\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\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance())\n getDialog().setDismissMessage(null);\n super.onDestroyView();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//\t\tLog.e(\"destroy\", \"CameraActivity �׾�Ф�\");\n\t\t//\t\tsendMessage(\"exit\");\n\t\t//\t\tmodeEasyActivity.finish();\n\t}", "@Override\n public void onBackPressed() {\n AlertDialog.Builder mBuilder = new AlertDialog.Builder(MainActivity.this);\n final View dialogView = getLayoutInflater().inflate(R.layout.dialog_logout, null);\n Button logoutButton = dialogView.findViewById(R.id.btn_dialogout_logout);\n Button cancelButton = dialogView.findViewById(R.id.btn_dialogout_cancel);\n\n mBuilder.setView(dialogView);\n final AlertDialog dialog = mBuilder.create();\n dialog.show();\n\n logoutButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mainPresenter.startLogOut(MainActivity.this);\n }\n });\n\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n }", "@Override\n protected void onDestroy() {\n\n super.onDestroy();\n\n // Shows a toast message (a pop-up message)\n Toast toast = Toast.makeText(getBaseContext(), \"FirstActivity.onDestroy()\", Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tMainActivity.this.finish();\n\t\t\t\t\t}", "@Override\n public void onPositive(MaterialDialog dialog) {\n getWindow().clearFlags(\n WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n finish();\n }", "@Override\n public void onDestroyView()\n {\n if (getDialog() != null && getRetainInstance())\n {\n getDialog().setDismissMessage(null);\n }\n\n super.onDestroyView();\n }", "@Override\n protected void onDestroy(){\n super.onDestroy();\n Log.d(TAG_INFO,\"application destroyed\");\n }", "@Override\n protected void onDestroy(){\n super.onDestroy();\n Log.d(TAG_INFO,\"application destroyed\");\n }", "@Override\n\tprotected void onDestroy() {\n\t\tSystem.out.println(\"----->main activity onDestory!\");\n\t\tsuper.onDestroy();\n\t}", "@Override\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\tdialog = null;\n \t\t\t\t\t}", "public void onDismiss(DialogInterface arg0) {\n\t\t\t\t\n\t\t\t\tTempActivity.this.finish();\n\t\t\t}", "public void onDestroy() {\n if (getIntent() != null && getIntent().getBooleanExtra(Constants.EXTRA_FROM_MAINACTIVITY, false)) {\n MainActivity.gotoMainActivity(this);\n }\n super.onDestroy();\n }" ]
[ "0.76862913", "0.7277543", "0.7234791", "0.7110183", "0.70220274", "0.68504876", "0.68237966", "0.6775601", "0.6754394", "0.6740884", "0.6732463", "0.67275774", "0.6722056", "0.67219394", "0.66966426", "0.66961026", "0.66552734", "0.66073006", "0.65921265", "0.65813476", "0.6572283", "0.656736", "0.6566274", "0.65499234", "0.6547822", "0.65302867", "0.65302867", "0.65165824", "0.6512087", "0.6511934", "0.64841706", "0.6478608", "0.6476777", "0.6463163", "0.6456789", "0.64537024", "0.6452982", "0.641473", "0.64139146", "0.6409709", "0.64064926", "0.64064926", "0.640219", "0.6397666", "0.63959306", "0.63869166", "0.63868654", "0.6385659", "0.6384181", "0.63835454", "0.6382675", "0.6380621", "0.63637877", "0.63633204", "0.6358502", "0.63574827", "0.63574827", "0.635527", "0.6352483", "0.63415456", "0.63404113", "0.63385004", "0.63365155", "0.63357294", "0.63351524", "0.63320136", "0.63320136", "0.63320136", "0.6331548", "0.6325685", "0.632518", "0.63018274", "0.6301139", "0.6301139", "0.6300026", "0.6299389", "0.6296583", "0.6295772", "0.6295772", "0.6295772", "0.62947947", "0.62898153", "0.6289778", "0.62862265", "0.6285515", "0.6282376", "0.62822163", "0.62820363", "0.62791365", "0.6275034", "0.627132", "0.62588996", "0.6253804", "0.62530875", "0.6248893", "0.6248893", "0.6247096", "0.6245887", "0.62412703", "0.62320834" ]
0.71199083
3
The system calls this before Activity is destroyed and saves the game state //
@Override protected void onSaveInstanceState(Bundle outState) { outState.putParcelable(GAME_TAG, game); outState.putBoolean(EXIT_ALERT_VISIBILITY, exitAlertVisible); // is EXIT AlertDialog shown? super.onSaveInstanceState(outState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tManager.onDestroy();\n\t\tSystem.out.println(\"DESTROYING APP\");\n//\t\tManager.analytics.sendUserTiming(\"Total Activity Time\", System.currentTimeMillis() - game.activityStartTime);\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\trunActivity = 0;\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.d(TAG, \"onDestroy() - ThreeActivity - Activity уничтожено\");\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t MainService.allActivity.remove(this);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tAppManager.getAppManager().finishActivity(this);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMyApplication.getInstance().finishActivity(this);\n\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onPause() {\n SharedPreferences sharedPreferences = getSharedPreferences(MainActivity.sharedPreferencesKey,MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n GlobalVariables globalVariables = GlobalVariables.getInstance();\n boolean gameStarted = globalVariables.getGameStarted();\n if (gameStarted) {\n try {\n String serializedGame = globalVariables.toString(\"\");\n edit.putString(\"game\", serializedGame);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n edit.commit();\n super.onPause();\n }", "@Override\n protected void onDestroy() {\n Initialization.exit(this);\n super.onDestroy();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n gameAlertDialog.dismiss();\n }", "@Override\n protected void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n gameView.saveInstanceState(bundle);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tappManager.finishActivity(this);\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t// 结束Activity从堆栈中移除\r\n//\t\tActivityManagerUtil.getActivityManager().finishActivity(this);\r\n\t}", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tActivityCollector.removeActivity(this);\n\t}", "@Override\n protected void onDestroy() {\n\n activitiesLaunched.getAndDecrement();\n\n super.onDestroy();\n\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n active = false;\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n active = false;\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.e(\"mainactivity\", \"destroyed\");\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "public void run() {\n ((GameActivity)context).finish();\n }", "@Override\r\n protected void onDestroy() {\n super.onDestroy();\r\n Log.i(TAG, \"onDestroy\");\r\n\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tsuper.onDestroy();\n\t\t\n\t\t// Log\n\t\tLog.d(\"TNActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", \"onDestroy()\");\n\t\t\n\t\t/*----------------------------\n\t\t * 2. move_mode => falsify\n\t\t\t----------------------------*/\n\t\tif (move_mode == true) {\n\t\t\t\n\t\t\tmove_mode = false;\n\t\t\t\n\t\t\t// Log\n\t\t\tLog.d(\"TNActv.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"move_mode => Now false\");\n\t\t\t\n\t\t}//if (move_mode == true)\n\n\t\tSharedPreferences prefs = \n\t\t\t\tthis.getSharedPreferences(MainActv.prefName_tnActv, MODE_PRIVATE);\n\t\t\n\t\tSharedPreferences.Editor editor = prefs.edit();\n\n\t\teditor.clear();\n\t\teditor.commit();\n\t\t\n\t\t// Log\n\t\tLog.d(\"MainActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", \"Prefs cleared: \" + MainActv.prefName_tnActv);\n\n\t\t/*********************************\n\t\t * 3. History mode => Off\n\t\t *********************************/\n\t\tint current_move_mode = Methods.get_pref(\n\t\t\t\t\t\t\tthis, \n\t\t\t\t\t\t\tMainActv.prefName_mainActv, \n\t\t\t\t\t\t\tMainActv.prefName_mainActv_history_mode,\n\t\t\t\t\t\t\t-1);\n\t\t\n\t\tif (current_move_mode == MainActv.HISTORY_MODE_ON) {\n\t\t\t\n\t\t\tboolean result = Methods.set_pref(\n\t\t\t\t\tthis, \n\t\t\t\t\tMainActv.prefName_mainActv, \n\t\t\t\t\tMainActv.prefName_mainActv_history_mode,\n\t\t\t\t\tMainActv.HISTORY_MODE_OFF);\n\n\t\t\tif (result == true) {\n\t\t\t\t// Log\n\t\t\t\tLog.d(\"TNActv.java\"\n\t\t\t\t\t\t+ \"[\"\n\t\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\n\t\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Pref set: \" + MainActv.HISTORY_MODE_OFF);\n\t\t\t} else {//if (result == true)\n\t\t\t\t// Log\n\t\t\t\tLog.d(\"TNActv.java\"\n\t\t\t\t\t\t+ \"[\"\n\t\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\n\t\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Set pref => Failed\");\n\t\t\t\t\n\t\t\t}//if (result == true)\n\t\t\t\n\t\t}//if (current_move_mode == 1)\n\t\t\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n destroyARX(); // Stop ARX and release resources.\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n protected void onDestroy() {\n super.onDestroy();\n isPaused = true;\n }", "@Override\r\n\tpublic void onPause() {\r\n\t\tsuper.onPause();\r\n\t\ttry {\r\n\t\t\tSaveGameHandler.saveGame(this, new SaveGame(controller, status),\r\n\t\t\t\t\t\"test.game\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void onDestroy() {\n if (getIntent() != null && getIntent().getBooleanExtra(Constants.EXTRA_FROM_MAINACTIVITY, false)) {\n MainActivity.gotoMainActivity(this);\n }\n super.onDestroy();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tflag=false;\n\t\tsuper.onDestroy();\n\t}", "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t\tLog.d(TAG, \"onDestroy\");\n \t}", "public void onActivityDestroy() {\n if (currentScreen != null) {\n currentScreen.onActivityDestroy();\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tKF5SDKActivityUIManager.resetActivityUIConfig();\n\t\tKF5SDKActivityParamsManager.resetActivityParamsConfig();\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n releasePlayer();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onDestroy\");\r\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n Log.d(TAG, \"onDestroy() called\");\n }", "@Override\n protected void onDestroy(){\n super.onDestroy();\n Log.d(TAG_INFO,\"application destroyed\");\n }", "@Override\n protected void onDestroy(){\n super.onDestroy();\n Log.d(TAG_INFO,\"application destroyed\");\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tLog.e(TAG, \"onDestroy\");\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//\t\tLog.e(\"destroy\", \"CameraActivity �׾�Ф�\");\n\t\t//\t\tsendMessage(\"exit\");\n\t\t//\t\tmodeEasyActivity.finish();\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tLog.e(TAG, \"ondestory\");\r\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tLog.e(TAG, \"ondestory\");\r\n\t}", "protected void onDestroy()\n {\n super.onDestroy();\n Log.d(TAG, \"onDestroy() called in InfoActivity\");\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n Log.i(\"Lifecycle\", \"onDestroy is called\");\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n Log.i(TAG, \"onDestroy\");\n\n }", "@Override \r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t\r\n\t\t\r\n\t}", "public void onDestroy() {\n super.onDestroy();\n onFinish();\n MediaController.getInstance().setFeedbackView(this.chatActivityEnterView, false);\n if (this.wakeLock.isHeld()) {\n this.wakeLock.release();\n }\n BackupImageView backupImageView = this.avatarImageView;\n if (backupImageView != null) {\n backupImageView.setImageDrawable((Drawable) null);\n }\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n Log.e(TAG, \"onDestroy\");\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n sp.edit().putBoolean(\"openApk\", false).commit();\n sp.edit().putBoolean(\"hasLogin\", false).commit();\n sp.edit().putString(\"user_project_id\", \"-1\").commit();\n if (mPositionService != null) {\n mPositionService.unRegisterListener();\n mPositionService.stop();\n }\n }", "@Override\n protected void onPause() {\n ReleaseCamera();\n super.onPause();\n }", "@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tif(!isSave){\n\t\t\tMyDialog.saveTemp(this, Common.PATH);\n\t\t\tsuper.onDestroy();\n\t\t}else{\n\t\t\tsuper.onDestroy();\n\t\t}\n\t\t\n\t}", "@Override\n protected void onDestroy() {\n Spotify.destroyPlayer(this);\n super.onDestroy();\n }", "protected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\n protected void onDestroy() {\n mActivityGraph = null;\n super.onDestroy();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttActivityDisplay.setText(\"On Destroy called\");\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tSystem.out.println(\"----->main activity onDestory!\");\n\t\tsuper.onDestroy();\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n Log.d(Constants.ERROR_TAG_ACTIVITY_ONE, Constants.ON_DESTROY);\n }", "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t}", "@Override\n public void onRestoreInstanceState(Bundle savedInstanceState){\n super.onRestoreInstanceState(savedInstanceState);\n\n tttGame = new TicTacToeGameState();\n tttGame.setBoard(savedInstanceState.getIntArray(\"board\"));\n tttGame.setTurn(savedInstanceState.getBoolean(\"turn\"));\n tttGame.setAIMode(savedInstanceState.getBoolean(\"mode\"));\n\n pOneCounter = savedInstanceState.getInt(\"p1Count\");\n pTwoCounter = savedInstanceState.getInt(\"p2Count\");\n pAICounter = savedInstanceState.getInt(\"pAICount\");\n tieCounter = savedInstanceState.getInt(\"tieCount\");\n\n restoreBoard(savedInstanceState.getIntArray(\"board\"), savedInstanceState.getBooleanArray(\"state\"));\n setDescriptionPlay();\n\n\n\n }", "@Override\r\n public void onDestroy() {\n super.onDestroy();\r\n }", "@Override\r\n public void onDestroy() {\n super.onDestroy();\r\n }", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.v(\"tag\",\"onDestroy\" );\n\t}", "public void onDestroy() {\n super.onDestroy();\n }", "public void onDestroy() {\n super.onDestroy();\n }", "public void onDestroy() {\n super.onDestroy();\n }", "@Override\n protected void onPause() {\n super.onPause();\n //admobView.pause();\n gameView.onPause();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n finish();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t\r\n\t\tImemberApplication.getInstance().getLogonSuccessManager().removeLogonSuccessListener(this);\r\n\t\tImemberApplication.getInstance().getLoginSuccessManager().removeLoginSuccessListener(this);\r\n\t\t\r\n\t\tSystem.out.println(\"MyCardListActivity---------kill\");\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n mApplication = Application.getInstance(getApplication());\n \n if (getIntent().hasExtra(Game.ID_TAG)) {\n // We are being created from the game list.\n mGame = mApplication.getGame(getIntent().getLongExtra(Game.ID_TAG, 0));\n } else if (savedInstanceState != null) {\n // We are being restored\n mGame = mApplication.getGame(savedInstanceState.getLong(Game.ID_TAG));\n } else {\n throw new IllegalArgumentException(\n \"No savedInstanceState or intent containing key\");\n }\n \n mGame.addOnUpdateGameStateListener(this);\n GameState originalGameState = mGame.getGameState();\n \n mStatusBar = (StatusBar) findViewById(R.id.status_bar);\n mGame.setOnTimerTickListener(mStatusBar);\n mGame.addOnUpdateCardsInPlayListener(mStatusBar);\n \n mCardsView = (CardsView) findViewById(R.id.cards_view);\n mCardsView.setOnValidTripleSelectedListener(mGame);\n mGame.addOnUpdateCardsInPlayListener(mCardsView);\n \n mViewSwitcher = (ViewSwitcher) findViewById(R.id.view_switcher);\n \n ActionBar actionBar = getSupportActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n \n mGame.begin();\n \n if (originalGameState == GameState.STARTING) {\n mCardsView.shouldSlideIn();\n }\n \n mHelper = new GameHelper(this);\n mHelper.setup(this, GameHelper.CLIENT_PLUS | GameHelper.CLIENT_GAMES);\n }", "@Override\n protected void onPause() {\n super.onPause();\n releaseCamera();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.e(TAG, \"onDestroy\");\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\t\r\n\t}", "@Override\n protected void onDestroy() {\n\tsuper.onDestroy();\n }", "public void onDestroy();", "public void onDestroy();", "protected void onDestroy ()\n\t{\n\t\tsuper.onDestroy ();\n\t}", "@Override\r\n public void onDestroy() {\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\t// Log\n\t\tString log_msg = \"Destroying...\";\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\tthis.finish();\n\t\t\n\t\tthis.overridePendingTransition(0, 0);\n\t\t\n\t\tlocationObtained = false;\n\t\t\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n Log.d(msg, \"The onDestroy() event\");\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n Log.d(msg, \"The onDestroy() event\");\n }", "@Override\n public void onDestroy() {\n Log.d(TAG, TAG + \" onDestroy\");\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//mTracker.set(Fields.SCREEN_NAME, \"Home Screen\");\n\t\tmTracker.send(MapBuilder.createAppView().build());\n\t\t//mTracker.send(null);\n\t}", "protected void onDestroy() {\n }", "@Override\r\n protected void onPause() {\n\tsuper.onPause();\r\n\tstrategy.deleteDataBase();\r\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t}", "public void onDestroy() {\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.e(\"DESTROYED\",\"I M DESTROYED\");\n\t\t\n\t\t\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tXSDK.getInstance().onDestroy();\r\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n protected void onDestroy() {\r\n Log.d(LOGTAG, \"onDestroy\");\r\n super.onDestroy();\r\n\r\n try {\r\n vuforiaAppSession.stopAR();\r\n } catch (ArException e) {\r\n Log.e(LOGTAG, e.getString());\r\n }\r\n\r\n // Unload texture:\r\n mTextures.clear();\r\n mTextures = null;\r\n\r\n System.gc();\r\n }", "@Override\n protected void onDestroy()\n {\n super.onDestroy();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tCleanup();\r\n\t}", "public void onDestroy() {\n LOG.mo8825d(\"[onDestroy]\");\n super.onDestroy();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n }" ]
[ "0.76030105", "0.7205809", "0.7028754", "0.69274384", "0.690338", "0.6887425", "0.6884441", "0.68595326", "0.6857087", "0.6853532", "0.6822584", "0.6802938", "0.6780852", "0.6736875", "0.6733805", "0.67307574", "0.67307574", "0.67057526", "0.6697604", "0.6697604", "0.6697604", "0.6697604", "0.6687214", "0.66866785", "0.66825193", "0.6665059", "0.66641843", "0.66550684", "0.6653995", "0.6651548", "0.6644375", "0.66267085", "0.6612516", "0.6604885", "0.65950227", "0.65842694", "0.6580448", "0.6580448", "0.6578967", "0.6577364", "0.65707797", "0.65707797", "0.6567117", "0.6567048", "0.6556012", "0.65507233", "0.6550387", "0.654958", "0.6544008", "0.653926", "0.6536652", "0.65335715", "0.6521841", "0.6519281", "0.65110725", "0.6506999", "0.6504692", "0.6504692", "0.6504692", "0.6504692", "0.65014166", "0.6495441", "0.64948964", "0.64878637", "0.64878637", "0.6482828", "0.6482828", "0.6482828", "0.6482828", "0.64711726", "0.6468573", "0.6468573", "0.6468573", "0.64682496", "0.64649487", "0.64567935", "0.6452294", "0.6450966", "0.6450118", "0.6434359", "0.6433041", "0.64213485", "0.64213485", "0.6418052", "0.64167356", "0.641493", "0.64144236", "0.64144236", "0.64133805", "0.64132345", "0.64131755", "0.641131", "0.6408162", "0.64071196", "0.63995194", "0.6397317", "0.6396252", "0.63945156", "0.6393338", "0.63918597", "0.63867724" ]
0.0
-1
The game state is restored and set views according that state //
@Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); game = savedInstanceState.getParcelable(GAME_TAG); exitAlertVisible = savedInstanceState.getBoolean(EXIT_ALERT_VISIBILITY); initViews(); updateState(); if (exitAlertVisible) gameAlertDialog.show("EXIT"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "@Override\n protected void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n gameView.saveInstanceState(bundle);\n }", "@Override\n public void onRestoreInstanceState(Bundle savedInstanceState){\n super.onRestoreInstanceState(savedInstanceState);\n\n tttGame = new TicTacToeGameState();\n tttGame.setBoard(savedInstanceState.getIntArray(\"board\"));\n tttGame.setTurn(savedInstanceState.getBoolean(\"turn\"));\n tttGame.setAIMode(savedInstanceState.getBoolean(\"mode\"));\n\n pOneCounter = savedInstanceState.getInt(\"p1Count\");\n pTwoCounter = savedInstanceState.getInt(\"p2Count\");\n pAICounter = savedInstanceState.getInt(\"pAICount\");\n tieCounter = savedInstanceState.getInt(\"tieCount\");\n\n restoreBoard(savedInstanceState.getIntArray(\"board\"), savedInstanceState.getBooleanArray(\"state\"));\n setDescriptionPlay();\n\n\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n mApplication = Application.getInstance(getApplication());\n \n if (getIntent().hasExtra(Game.ID_TAG)) {\n // We are being created from the game list.\n mGame = mApplication.getGame(getIntent().getLongExtra(Game.ID_TAG, 0));\n } else if (savedInstanceState != null) {\n // We are being restored\n mGame = mApplication.getGame(savedInstanceState.getLong(Game.ID_TAG));\n } else {\n throw new IllegalArgumentException(\n \"No savedInstanceState or intent containing key\");\n }\n \n mGame.addOnUpdateGameStateListener(this);\n GameState originalGameState = mGame.getGameState();\n \n mStatusBar = (StatusBar) findViewById(R.id.status_bar);\n mGame.setOnTimerTickListener(mStatusBar);\n mGame.addOnUpdateCardsInPlayListener(mStatusBar);\n \n mCardsView = (CardsView) findViewById(R.id.cards_view);\n mCardsView.setOnValidTripleSelectedListener(mGame);\n mGame.addOnUpdateCardsInPlayListener(mCardsView);\n \n mViewSwitcher = (ViewSwitcher) findViewById(R.id.view_switcher);\n \n ActionBar actionBar = getSupportActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n \n mGame.begin();\n \n if (originalGameState == GameState.STARTING) {\n mCardsView.shouldSlideIn();\n }\n \n mHelper = new GameHelper(this);\n mHelper.setup(this, GameHelper.CLIENT_PLUS | GameHelper.CLIENT_GAMES);\n }", "public void onPlayGame(View view)\n {\n boolean newMode = !tttGame.getAIMode();\n\n tttGame = new TicTacToeGameState(newMode);\n resetBoard();\n setDescriptionPlay();\n\n }", "private void restoreState() {\n if (savedState != null) {\n// For Example\n//tv1.setText(savedState.getString(\"text\"));\n onRestoreState(savedState);\n }\n }", "public void resetView() {\n pause();\n if (spriteView != null) spriteView.setViewport(new Rectangle2D(0, 0, rect.getWidth(), rect.getHeight()));\n }", "@Override\n protected void onRestoreInstanceState(Bundle savedState)\n {\n super.onRestoreInstanceState(savedState);\n\n arms.setVisibility(savedState.getInt(\"hat\"));\n mustache.setVisibility(savedState.getInt(\"mustache\"));\n nose.setVisibility(savedState.getInt(\"nose\"));\n shoes.setVisibility(savedState.getInt(\"shoes\"));\n glasses.setVisibility(savedState.getInt(\"glasses\"));\n eyes.setVisibility(savedState.getInt(\"eyes\"));\n hat.setVisibility(savedState.getInt(\"hat\"));\n ears.setVisibility(savedState.getInt(\"ears\"));\n mouth.setVisibility(savedState.getInt(\"mouth\"));\n eyebrows.setVisibility(savedState.getInt(\"eyebrows\"));\n }", "public void doNewGame(View view) {\n mainHelper.restart();\n }", "void resetView();", "private void setupBoardViews(){ //This resets the view for use by the UI. Forces out of Design mode\n Log.d(TAG, \"setupBoardViews: Started\");\n view_stage_map = VIEW_MAP_START;\n cycleMapView();\n }", "private void restorePreviousState() {\n\n\t\tif (StoreAnalysisStateApplication.question1Answered) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question2Answered) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question3Answered) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreDesignStateApplication.stageCleared) {\n\t\t\tsecondImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.voicereadingenabled);\n\t\t}\n\n\t\tif (StoreImplementationStateApplication.stageCleared) {\n\t\t\tthirdImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.microphonenabled);\n\t\t}\n\n\t}", "public void restoreState() {\n\t\tsuper.restoreState();\n\t}", "public void restoreState() \n\t{\n\t\tsuper.restoreState();\n\t}", "private void initialiseViews() {\n\n layoutGameOver = findViewById(R.id.layout_gameover);\n layoutGame = findViewById(R.id.layout_game);\n\n layoutGame.setVisibility(View.VISIBLE);\n layoutGameOver.setVisibility(View.GONE);\n\n tvHighScore = findViewById(R.id.tv_highscore);\n tvCurrentScore = findViewById(R.id.tv_current_score);\n tvGameoverScore = findViewById(R.id.tv_gameover_score);\n\n\n gvBoard = findViewById(R.id.gl_board);\n btNewGame =findViewById(R.id.bt_newgame);\n btRestart =findViewById(R.id.bt_restart);\n\n btNewGame.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startNewGame();\n }\n });\n btRestart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startNewGame();\n }\n });\n }", "private void softReset() {\n // variables\n lapMap.clear();\n // ui\n sessionTView.setText(\"\");\n positionTView.setText(\"-\");\n currentLapTView.setText(\"--:--:---\");\n lastLapTView.setText(\"--:--:---\");\n bestLapTView.setText(\"--:--:---\");\n currentLapNumberTView.setText(\"-\");\n gapTView.setText(\" -.---\");\n fastestDriver = Float.MAX_VALUE;\n fastestDriverName = null;\n fastestDriverTView.setText(\"--:--:---\");\n fastestDriverNameTView.setText(\"Fastest lap\");\n Log.d(TAG, \"SOFT Reset: between game states\");\n }", "@Override\r\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\r\n super.onRestoreInstanceState(savedInstanceState);\r\n\r\n String stateSavedHome = savedInstanceState.getString(\"save_state_home\");\r\n //Resotres homeScore\r\n homeScore = Integer.parseInt(stateSavedHome);\r\n String stateSavedVisitor = savedInstanceState.getString(\"save_state_visitor\");\r\n //Restores visitorScore\r\n visitorScore = Integer.parseInt(stateSavedVisitor);\r\n\r\n home.setText(stateSavedHome);\r\n visitor.setText(stateSavedVisitor);\r\n }", "@Override\n public void resetGame() {\n\n }", "@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n super.onRestoreInstanceState(savedInstanceState);\n scorePlayerA = savedInstanceState.getInt(\"scorePlayerA\");\n scorePlayerB = savedInstanceState.getInt(\"scorePlayerB\");\n triesPlayerA = savedInstanceState.getInt(\"triesPlayerA\");\n triesPlayerB = savedInstanceState.getInt(\"triesPlayerB\");\n displayForPlayerA(scorePlayerA);\n displayForPlayerB(scorePlayerB);\n displayTriesForPlayerA(triesPlayerA);\n displayTriesForPlayerB(triesPlayerB);\n }", "protected abstract void restoreGraphicsState();", "protected void onRestoreInstanceState(Bundle savedInstanceState) {\n super.onRestoreInstanceState(savedInstanceState);\n if (savedInstanceState.getInt(\"visualState\") == View.VISIBLE) {\n\n }\n }", "public void changeToBoardView(){\n\t\tif (titlePage != null){\n\t\t\tgetContentPane().remove(titlePage); \t// remove the title page from the GUI\n\t\t\ttitlePage = null;\t\n\t\t}\n\t\tif (gameOverPage != null){\n\t\t\t// remove the page if it exists\n\t\t\tgetContentPane().remove(gameOverPage);\n\t\t\tgameOverPage = null;\t// set the page to null\n\t\t}\n\t\tscoreboard = new Scoreboard(this);\t\t// create a new scoreboard to track the game's score\n\t\tboard = new Board(this);\n\t\tvalidate(); \t// validate and repaint to reflect the removal of old panels\n\t\trepaint();\t\t// repaint the board\n\t\tthis.add(board, BorderLayout.EAST);\t\t// add board to the frame\n\t\tthis.add(scoreboard, BorderLayout.EAST);\t// add scoreboard to the frame\n\t}", "private void resetAfterGame() {\n }", "@Override\n public void restore() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] iTmp1 = m_iCurrentMatrices;\n m_iCurrentMatrices = m_iStoredMatrices;\n m_iStoredMatrices = iTmp1;\n\n int[] iTmp2 = m_iCurrentPartials;\n m_iCurrentPartials = m_iStoredPartials;\n m_iStoredPartials = iTmp2;\n\n// int[] iTmp3 = m_iCurrentStates;\n// m_iCurrentStates= m_iStoredStates;\n// m_iStoredStates = iTmp3;\n }", "void notifyGameRestored();", "private void resetGame() {\r\n\t\t\r\n\t\tif(easy.isSelected()) {\r\n\t\t\tGRID_SIZE = 10;\r\n\t\t\tlbPits = 3;\r\n\t\t\tubPits = 5;\t\t\t\r\n\t\t} else if(medium.isSelected()) {\r\n\t\t\tGRID_SIZE = 15;\r\n\t\t\tlbPits = 8;\r\n\t\t\tubPits = 12;\r\n\t\t} else if(hard.isSelected()) {\r\n\t\t\tGRID_SIZE = 20;\r\n\t\t\tlbPits = 35;\r\n\t\t\tubPits = 45;\r\n\t\t} else {\r\n\t\t\tGRID_SIZE = 10;\r\n\t\t\tlbPits = 3;\r\n\t\t\tubPits = 5;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tvisited = new boolean[GRID_SIZE][GRID_SIZE];\r\n\t\tGameMapFactory mf = new GameMapFactory(new Obstacle[GRID_SIZE][GRID_SIZE], new Random(), GRID_SIZE, lbPits, ubPits);\r\n\t\tmf.setupMap();\r\n\t\tgame.resetGame(GRID_SIZE, mf.getGameMap(), visited, mf.getHunterPosition());\r\n\t\t\r\n\t}", "public void resetGame(){\n\t\tPlayer tempPlayer = new Player();\n\t\tui.setPlayer(tempPlayer);\n\t\tui.resetCards();\n\t}", "private void setNextGame() {\n Persistence db = Persistence.getInstance();\n game = db.getNextGame();\n\n // set the initial grid in the model\n grid = game.getInitial();\n\n // get rid of everything on the view grid\n view.clearGrid(true);\n\n // put givens for new game into view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n } // if given\n } // for j\n } // for i\n\n }", "public GameState(State.StateView state) {\n }", "private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}", "public void reset(View view) {\r\n scoreA = 0;\r\n scoreB = 0;\r\n foulsA = 0;\r\n foulsB = 0;\r\n displayScoreForTeamA(scoreA);\r\n displayFoulsForTeamA(foulsA);\r\n displayScoreForTeamB(scoreB);\r\n displayFoulsForTeamB(foulsB);\r\n }", "public void setupRevive(GameView gameView)\n {\n for(ReviveObserver ro : reviveObservers)\n {\n ro.update(gameView);\n }\n //gameView.getPlayerInstance().revive();\n //gameView.resume();\n\n gameView.resume();\n\n\n\n\n\n }", "public void resetGame() {\n\t\thandler.setDown(false);\n\t\thandler.setLeft(false);\n\t\thandler.setRight(false);\n\t\thandler.setUp(false);\n\n\t\tclearOnce = 0;\n\t\thp = 100;\n\t\tfromAnotherScreen = true;\n\t\tsetState(1);\n\t}", "private void resetGame() {\n game.resetGame();\n round_score = 0;\n\n // Reset values in views\n player_tot_view.setText(String.valueOf(game.getPlayer_total()));\n bank_tot_view.setText(String.valueOf(game.getBank_total()));\n round_score_view.setText(String.valueOf(round_score));\n String begin_label = \"Round \" + game.getRound() + \" - Player's Turn\";\n round_label.setText(begin_label);\n\n getTargetScore();\n }", "@Override\n\tpublic void restoreState() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] tmp1 = currentMatricesIndices;\n currentMatricesIndices = storedMatricesIndices;\n storedMatricesIndices = tmp1;\n\n int[] tmp2 = currentPartialsIndices;\n currentPartialsIndices = storedPartialsIndices;\n storedPartialsIndices = tmp2;\n\n\n }", "public void displayReset(View view) {\r\n\r\n scoreA = 0;\r\n scoreB = 0;\r\n displayForTeamA(scoreA);\r\n displayForTeamB(scoreB);\r\n }", "public void reset(){\n newGame();\n removeAll();\n repaint();\n ended = false;\n }", "@Override \n\t\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\t savedInstanceState.putInt(STATE_SCORE, mCurrentScore);\n\t\t savedInstanceState.putInt(STATE_LEVEL, mCurrentLevel);\n\t\t \n\t\t // Always call the superclass so it can save the view hierarchy state \n\t\t super.onSaveInstanceState(savedInstanceState);\n\t\t}", "public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }", "private void resetGame(){\n\n }", "public void resetForBothTeams(View view) {\n scoreForR_madrid = 0;\n scoreForL_pool = 0;\n\n foulCountRmadrid = 0;\n y_cardCountRmadrid = 0;\n r_cardCountRmadrid = 0;\n\n foulCountLpool = 0;\n y_cardCountLpool = 0;\n r_cardCountLpool = 0;\n\n displayForRmadrid(scoreForR_madrid);\n displayForLpool(scoreForL_pool);\n\n displayFoulForRmadrid(foulCountRmadrid);\n displayY_CardForRmadrid(y_cardCountRmadrid);\n displayR_CardForRmadrid(r_cardCountRmadrid);\n\n displayFoulForLpool(foulCountLpool);\n displayYcardForLpool(y_cardCountLpool);\n displayRcardForLpool(r_cardCountLpool);\n\n }", "public void resetScreen(){\n\t\tGame_Map_Manager.infoVisible= false;\n\t\tGame_PauseMenu.actorManager.open = false;\n\t\tPlayerGoals.open = false;\n\t\tGame_Shop.actorManager.open = false;\n\t\tTrainDepotUI.actorManager.open = false;\n\t\tGameScreenUI.resourcebarexpanded =false;\n\t\tGoalMenu.open= false;\n\t\t\n\t\t//CARDS\n\t\tGame_CardHand.actorManager.open=false;\n\t\tGame_CardHand.actorManager.cardactors.clear();;\n\t\t\n\t\t//Map\n\t\tGame_StartingSequence.reset();\n\t\tGame_Map_Manager.resetMap();\n\t}", "void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}", "public void resetClicked (View view){\n\n // retrieves and clears screen views\n TextView textView = findViewById(R.id.textView2);\n TextView textPlayer1 = findViewById(R.id.textView3);\n TextView textPlayer2 = findViewById(R.id.textView4);\n Button set = findViewById(R.id.button);\n EditText editText = findViewById(R.id.editText);\n\n set.setVisibility(View.VISIBLE);\n editText.setVisibility(View.VISIBLE);\n editText.setHint(\"Player\");\n editText.setText(\"\");\n textView.setText(\"\");\n textPlayer1.setText(\"\");\n textPlayer2.setText(\"\");\n\n // creates new game\n game = new Game();\n gameOver = false;\n playersCount = 0;\n\n // change board's tiles to blank\n for (int i = 0; i < 9; i++) {\n ImageButton button = findViewById(id[i]);\n button.setBackgroundResource(R.drawable.blank);\n }\n }", "@Override\n public void restoreState(Bundle savedInstanceState) {\n }", "public void switchToGameScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"game\");\n \troom.reset();\n }", "public void restore() {\r\n for (int i = 0; i < 24; i++) {\r\n int staticLevel = getStaticLevel(i);\r\n setLevel(i, staticLevel);\r\n }\r\n if (entity instanceof Player) {\r\n ((Player) entity).getActionSender().sendSound(new Audio(2674));\r\n }\r\n rechargePrayerPoints();\r\n }", "private GameStatePresets()\n {\n\n }", "public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }", "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r\n }", "public void resetGame() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = 0;\n\t\t\t\tgetChildren().remove(renders[i][j]);\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "private void reset() {\n\t\tlevel.getLogic().resetBoard();\n\t\tlevelView.refresh();\n\t\tlevelView.clearSelectedWords();\n\t}", "public void switchGame() {\n \tplayerController.clearKeysPressed();\n game.game1 = !game.game1;\n if (game.game1) {\n \tgame.gameSnapshot = game.game1Snapshot;\n \tgame.rooms = game.game1Rooms;\n \tgame.characters = game.game1Characters;\n \tgame.player = game.player1;\n } else {\n \tgame.gameSnapshot = game.game2Snapshot;\n \tgame.rooms = game.game2Rooms;\n \tgame.characters = game.game2Characters;\n \tgame.player = game.player2;\n }\n \n currentNPCs = game.gameSnapshot.map.getNPCs(game.player.getRoom());\n getTileRenderer().setMap(game.player.getRoom().getTiledMap());\n getTileRenderer().clearPeople();\n getTileRenderer().addPerson((List<AbstractPerson>) ((List<? extends AbstractPerson>) currentNPCs));\n getTileRenderer().addPerson(game.player);\n }", "public void UpdateView(){\n\t\tStageArray[CurrentStage].Update();\r\n\t\t//updateUI will activate the Draw function\r\n\t\tStageArray[CurrentStage].updateUI();\r\n\t\t//this completely refreshes totalGUI and removes and mouse listener it had\r\n\t\tif(CardMain.frame.getContentPane()!=StageArray[CurrentStage]){\r\n\t\t\tCardMain.frame.setContentPane(StageArray[CurrentStage]);\r\n\t\t}\r\n\t}", "public abstract void restore();", "@Override\n protected void onResume() {\n super.onResume();\n\n // Tell the gameView resume method to execute\n gameView.resume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n // Tell the gameView resume method to execute\n gameView.resume();\n }", "public void updateViews() {\n updateViews(null);\n }", "private void state2()\n {\n SparseArray passCount = team.getPassesFor(pView.getMappedPlayer(),\n statusBar.getMinRange(), statusBar.getMaxRange());\n teamArrowView.val =\n new ArrowView(activity, pView, playerViews, passCount, false);\n parentLayout.addView(teamArrowView.val);\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n //Execute the game view's resume method\n gameEngine.resume();\n }", "private void restart(){\n model.init();\n view.refreshPieces();\n start();\n }", "public void replaceView(){\n ((GameView) observers.get(0)).dispose();\n observers.remove(0);\n this.addObserver(new GameView(this));\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tview = new GameView(this);\n super.onCreate(savedInstanceState);\n setContentView(view);\n }", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "@Override\n public void restoreState(Map<String, Object> state) {\n\n }", "public void resetGame() {\r\n\r\n\t\tplayerScore = 0;\r\n\t\tframe.setVisible(false);\r\n\t\tgame = new Game();\r\n\r\n\t}", "public void loadGameView() {\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Spiel Laden\");\n\t\t\tBorderPane root = new BorderPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LoadGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tLoadGameViewController loadGameViewController = (LoadGameViewController) loader.getController();\n\t\t\tloadGameViewController.setOnitamaController(onitamaController);\n\t\t\tloadGameViewController.init();\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void refresh() {\r\n\t\t// hide win icon for both players\r\n\t\timgWinPlayer1.setVisibility(View.GONE);\r\n\t\timgWinPlayer2.setVisibility(View.GONE);\r\n\r\n\t\tswitch (game.getState()) {\r\n\t\tcase STATE_PREPARATION:\r\n\t\t\tgame.init(startingArmy);\r\n\t\t\ttxtTitle.setText(\"It's Time To Show Your Might!!\");\r\n\t\t\ttxtInfo.setText(\"Click START to show the armies\");\r\n\t\t\tbtnBattle.setText(\"START\");\r\n\t\t\ttxtPlayer1.setText(\"\");\r\n\t\t\ttxtPlayer2.setText(\"\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase STATE_BEFORE_BATTLE:\r\n\t\t\ttxtTitle.setText(\"Let's The Battle Begin!\");\r\n\t\t\ttxtInfo.setText(\"Click BATTLE! to commence the battle\");\r\n\t\t\tbtnBattle.setText(\"BATTLE\");\r\n\t\t\ttxtPlayer1.setText(game.getPlayer1Castle().getArmyList());\r\n\t\t\ttxtPlayer2.setText(game.getPlayer2Castle().getArmyList());\r\n\t\t\tbreak;\r\n\r\n\t\tcase STATE_AFTER_BATTLE:\r\n\r\n\t\t\t// do the battle here\r\n\t\t\tBattleResult battleResult = game.battle();\r\n\r\n\t\t\ttxtTitle.setText(\"After Battle Result\");\r\n\t\t\tbtnBattle.setText(\"CREATE NEW\");\r\n\t\t\ttxtPlayer1.setText(game.getPlayer1Castle().getAfterBattleReport());\r\n\t\t\ttxtPlayer2.setText(game.getPlayer2Castle().getAfterBattleReport());\r\n\t\t\tString result = \"Battle ends with Draw\";\r\n\t\t\tif (battleResult == BattleResult.PLAYER_1_WIN) {\r\n\t\t\t\tresult = \"Player 1 wins the battle\";\r\n\t\t\t\timgWinPlayer1.setVisibility(View.VISIBLE);\r\n\t\t\t} else if (battleResult == BattleResult.PLAYER_2_WIN) {\r\n\t\t\t\tresult = \"Player 2 wins the battle\";\r\n\t\t\t\timgWinPlayer2.setVisibility(View.VISIBLE);\r\n\t\t\t}\r\n\t\t\ttxtInfo.setText(result);\r\n\r\n\t\t\t// cycle next starting army\r\n\t\t\tif (startingArmy == StartingArmyType.CAVALRY_VS_ARCHER) {\r\n\t\t\t\tstartingArmy = StartingArmyType.MIX_ARMIES_VS_INFANTRY;\r\n\t\t\t} else {\r\n\t\t\t\tstartingArmy = StartingArmyType.CAVALRY_VS_ARCHER;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t// match the image of player with its castle skin\r\n\t\timgPlayer1.setImageResource(getCastleImage(game.getPlayer1Castle()));\r\n\t\timgPlayer2.setImageResource(getCastleImage(game.getPlayer2Castle()));\r\n\t\tbtnCastle1.setText(game.getPlayer1Castle().toString());\r\n\t\tbtnCastle2.setText(game.getPlayer2Castle().toString());\r\n\t}", "@Override\r\n\tpublic void resetBoard() {\r\n\t\tcontroller.resetGame(player);\r\n\t\tclearBoardView();\r\n\t\tif (ready)\r\n\t\t\tcontroller.playerIsNotReady();\r\n\t}", "public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }", "public void restart(){\n gameOver = false;\n difficulty = 1;\n gTime = 0;\n enemyFactory.enemies.clear();\n ((MainActivity)context).scoreString = \"You CHOMPED \" + score + \" mascots!\";\n score = 0;\n bottomFragment = (BottomFragment)((MainActivity)context).getSupportFragmentManager().findFragmentById(R.id.bottom_fragment);\n //Update the scores\n bottomFragment.updateScores();\n //Reset the buttons to pressed state for next game.\n bottomFragment.resetButtons();\n canAlberta = false;\n canGrowl = false;\n canTebow = false;\n canvasView.albert.isAlberta = false;\n canvasView.albert.albertaCounter = 0;\n hasStarted = false;\n ((MainActivity)context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n canvasView.invalidate();\n }\n });\n }", "@Override\n public void onSaveInstanceState(Bundle savedInstanceState)\n {\n savedInstanceState.putIntArray(\"board\", tttGame.getBoard());\n savedInstanceState.putBoolean(\"turn\", tttGame.getTurn());\n savedInstanceState.putBoolean(\"mode\", tttGame.getAIMode());\n\n savedInstanceState.putInt(\"p1Count\", pOneCounter);\n savedInstanceState.putInt(\"p2Count\", pTwoCounter);\n savedInstanceState.putInt(\"pAICount\",pAICounter);\n savedInstanceState.putInt(\"tieCount\", tieCounter);\n\n boolean[] enabled = getState();\n savedInstanceState.putBooleanArray(\"state\", enabled);\n }", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tswitch(MySurfaceView.vicCount)\n\t\t{\n\t\tcase 0:\n\t\t\tmBackgroundSound.playS();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tmBackgroundSound2.playS();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tmBackgroundSound3.playS();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tmBackgroundSound4.playS();\n\t\t\tbreak;\n\t\t}\n\t\tMySurfaceView.initDisplay = savedInstanceState.getBooleanArray(\"name\");\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\t}", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\t\ttitile_position = savedInstanceState.getInt(\"titile_position\");\n\t\ttoX = savedInstanceState.getFloat(\"fromXDelta\");\n\t\tif (titile_position != 0) {\n\t\t\tmAnimationSet = new AnimationSet(true);\n\t\t\tmTranslateAnimation = new TranslateAnimation(fromXDelta, toX, 0f,\n\t\t\t\t\t0f);\n\t\t\tinitAnimation(mAnimationSet, mTranslateAnimation);\n\t\t\tiv_titile.startAnimation(mAnimationSet);// titile蓝色横条图片的动画切换\n\t\t\tfromXDelta = toX;\n\t\t}\n\t\t// initTitle(titile_position);\n\t\t// if(ISTV){\n\t\tint wWidth = savedInstanceState.getInt(\"wWidth\");\n\t\tint wHeight = savedInstanceState.getInt(\"wHeight\");\n\t\tfloat wX = savedInstanceState.getFloat(\"wX\");\n\t\tfloat wY = savedInstanceState.getFloat(\"wY\");\n\t\tFrameLayout.LayoutParams layoutparams = new FrameLayout.LayoutParams(\n\t\t\t\twWidth, wHeight);\n\t\tlayoutparams.leftMargin = (int) wX;\n\t\tlayoutparams.topMargin = (int) wY;\n\t}", "@FXML\n void startGame(ActionEvent event) {\n logic.viewUpdated();\n }", "private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}", "public void resetViews() {\n\t\tmContentView.findViewById(R.id.btn_connect).setVisibility(View.VISIBLE);\n\t\tTextView view = (TextView) mContentView.findViewById(R.id.device_address);\n\t\tview.setText(R.string.empty);\n\t\tview = (TextView) mContentView.findViewById(R.id.device_info);\n\t\tview.setText(R.string.empty);\n\t\tview = (TextView) mContentView.findViewById(R.id.group_owner);\n\t\tview.setText(R.string.empty);\n\t\tview = (TextView) mContentView.findViewById(R.id.status_text);\n\t\tview.setText(R.string.empty);\n//\t\tmContentView.findViewById(R.id.btn_start_client).setVisibility(View.GONE);\n\t\tmContentView.findViewById(R.id.btn_send_data).setVisibility(View.GONE);\n\t\tthis.getView().setVisibility(View.GONE);\n\t\tserver_running = false;\n\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState.putParcelable(GAME_TAG, game);\n outState.putBoolean(EXIT_ALERT_VISIBILITY, exitAlertVisible); // is EXIT AlertDialog shown?\n super.onSaveInstanceState(outState);\n }", "public void restore(String state) {\n try {\n byte[] data = Base64.getDecoder().decode(state);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(data));\n widgets = new ArrayList<Widget>();\n int cnt = in.readInt(); // size of array list\n// System.out.println(\"widgets: \" + cnt);\n Widget w = null;\n String widgetType = null;\n for (int i=0; i<cnt; i++) {\n widgetType = (String)in.readObject();\n w = WidgetFactory.getInstance().createWidget(widgetType,0,0);\n w.readObject(in, widgetType);\n widgets.add(w);\n PropManager.getInstance().addPropEditor(w.getModel());\n// TreeView.getInstance().addWidget(getKey(), w.getKey());\n }\n in.close();\n selectedCnt = 0;\n selectedGroupCnt = 0;\n repaint();\n } catch (ClassNotFoundException e) {\n System.out.println(\"ClassNotFoundException occurred.\");\n e.printStackTrace();\n } catch (IOException e) {\n System.out.println(\"IOException occurred.\" + e.toString());\n System.out.flush();\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onRestoreInstanceState(Bundle savedInstanceState) {\n\t}", "void updateView () {\n updateScore();\n board.clearTemp();\n drawGhostToBoard();\n drawCurrentToTemp();\n view.setBlocks(board.getCombined());\n view.repaint();\n }", "void resetGame() {\r\n if (GameInfo.getInstance().isWin()) {\r\n GameInfo.getInstance().resetDots();\r\n MazeMap.getInstance().init();\r\n GameInfo.getInstance().resetFruitDisappearTime();\r\n MazeMap.getInstance().updateMaze(GameInfo.getInstance().getMode());\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.PACMAN)) {\r\n pcs.removePropertyChangeListener(Constants.PACMAN, pcl);\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.GHOSTS)) {\r\n pcs.removePropertyChangeListener(Constants.GHOSTS, pcl);\r\n }\r\n PacMan pacMan = initPacMan();\r\n initGhosts(pacMan);\r\n }", "public void resetPresentation();", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "protected void restoreState(State s) {\n /*\n * We must set the transformation matrix first since it affects things\n * like clipping regions and patterns.\n */\n setAffineMatrix(s.affineMatrix);\n currentState.relativeClip = s.relativeClip;\n sharedClipping = true;\n\n // If the GC is currently advanced, but it was not when pushed, revert\n if (gc.getAdvanced() && (s.graphicHints & ADVANCED_GRAPHICS_MASK) == 0) {\n // Set applied clip to null to force a re-setting of the clipping.\n appliedState.relativeClip = null;\n gc.setAdvanced(false);\n appliedState.graphicHints &= ~ADVANCED_HINTS_MASK;\n appliedState.graphicHints |= ADVANCED_HINTS_DEFAULTS;\n }\n\n setBackgroundColor(s.bgColor);\n setBackgroundPattern(s.bgPattern);\n\n setForegroundColor(s.fgColor);\n setForegroundPattern(s.fgPattern);\n\n setAlpha(s.alpha);\n setLineAttributes(s.lineAttributes);\n setFont(s.font);\n\n // This method must come last because above methods will incorrectly set\n // advanced state\n setGraphicHints(s.graphicHints);\n\n translateX = currentState.dx = s.dx;\n translateY = currentState.dy = s.dy;\n }", "private void state1()\n {\n SparseArray passCount = team\n .getPassesBy(pView.getMappedPlayer(),\n statusBar.getMinRange(), statusBar.getMaxRange());\n teamArrowView.val =\n new ArrowView(activity, pView, playerViews, passCount, true);\n parentLayout.addView(teamArrowView.val);\n }", "public void setScreenForGame(){\r\n screen.removeAll();\r\n screen.repaint();\r\n }", "public void restoreState() {\n\tMachine.processor().setPageTable(pageTable);\n }", "public void resetState();", "public void saveGameView(NextWindow nextWindow) {\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Spiel Speichern\");\n\t\t\tBorderPane root = new BorderPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LoadGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tLoadGameViewController loadGameViewController = (LoadGameViewController) loader.getController();\n\t\t\tloadGameViewController.setOnitamaController(onitamaController);\n\t\t\tloadGameViewController.initSave(nextWindow);\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setGameDraw() {\n this.gameStarted = false; \n this.winner = 0; \n this.isDraw = true; \n }", "@FXML private void transitionView(ActionEvent event) {\n\t\t// id button caller\n\t\tString btn = ((Button) event.getSource()).getId();\n\t\tNavigationController.PREVIOUS = NavigationController.STARTMENU;\n\t\t// send load request\n\t\tif (btn.equals(\"newgame\"))\n\t\t\tNavigationController.loadView(NavigationController.GAMECREATION);\n\t\tif (btn.equals(\"loadgame\"))\n\t\t\tNavigationController.loadView(NavigationController.SAVELOAD);\n\n\t\t// if this spot is reached: do nothing\n\t}", "public void reset(View v) {\n scoreTeamB = 0;\n displayForTeamB(scoreTeamB);\n scoreTeamA = 0;\n displayForTeamA(scoreTeamA);\n questionNumber = 0;\n displayQuestionNumber(questionNumber);\n }", "@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameStatus.restartTimer();\n View v1 = findViewById(R.id.game_layout);\n View v = findViewById(R.id.dlb_game_over_view);\n v.setVisibility(View.GONE);\n gameView.resetLife();\n gameView.setRunning(true);\n v1.setVisibility(View.VISIBLE);\n }\n });\n }", "@Override\n public void restoreFromSeedAnimation() {\n TranslateTransition leave = new TranslateTransition(Duration.millis(1200), controlsBox);\n leave.setByY(80.0);\n leave.play();\n }", "@Override\n public void restore() {\n graphicsEnvironmentImpl.restore(canvas);\n }", "@Override\n \tpublic void onBackKeyPressed() \n \t{\n \t\tSceneManager.getInstance().setScene(SceneManager.SceneType.SCENE_GAME);\n \t\t\n \t}", "private void resetCardStates() {\n // Clear newcomers\n for (CardView cardView : cardViews) {\n cardView.setNewcomer(false);\n }\n }", "public final void reset(){\n\t\tthis.undoStack = new GameStateStack();\n\t\tthis.redoStack = new GameStateStack();\n\t\t\n\t\tthis.currentBoard = currentRules.createBoard(currentSize);\n\t\tthis.currentRules.initBoard(currentBoard, currentInitCells, currentRandom);\n\t}" ]
[ "0.7389506", "0.71037143", "0.693971", "0.6722261", "0.66829664", "0.66501117", "0.6616675", "0.660723", "0.66017926", "0.66015464", "0.6480049", "0.64735883", "0.64449406", "0.6440015", "0.64344484", "0.64288986", "0.63990134", "0.6389338", "0.6368733", "0.6361312", "0.63492525", "0.6332727", "0.6330602", "0.6321516", "0.6320447", "0.63043314", "0.6303408", "0.62970185", "0.62877685", "0.6285891", "0.62850344", "0.6282763", "0.62788624", "0.62616414", "0.62615836", "0.62584805", "0.6250969", "0.62447494", "0.6224743", "0.62222546", "0.6220768", "0.62170935", "0.6212294", "0.6202704", "0.6199869", "0.6199427", "0.6174634", "0.61676174", "0.6163814", "0.61628115", "0.61610854", "0.6149327", "0.6123016", "0.6111527", "0.61102", "0.6101199", "0.6101199", "0.6100967", "0.60984975", "0.6094451", "0.6094419", "0.6090768", "0.60893935", "0.6085021", "0.60780144", "0.60720176", "0.60719806", "0.6061155", "0.6059003", "0.60533106", "0.6053287", "0.604496", "0.6037687", "0.6037355", "0.6037013", "0.6033321", "0.6029633", "0.6028903", "0.6023239", "0.6021194", "0.6016112", "0.600906", "0.6004777", "0.6004384", "0.6000503", "0.59958476", "0.59956914", "0.5992126", "0.5990141", "0.5989917", "0.5977839", "0.5975653", "0.5971524", "0.5967134", "0.5964775", "0.59630036", "0.5961526", "0.5953515", "0.5951327", "0.5947751" ]
0.7022666
2
Ask if exit or start a new game on AlertDialog //
@Override public void onBackPressed() { gameAlertDialog.show("EXIT"); exitAlertVisible = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tstartGame();\n\t\t\t\t\t\t\t\t}", "private void newGame() \n {\n int input = JOptionPane.showConfirmDialog(null, \"Would you like to play again?\\n\",\"Game has ended\",JOptionPane.YES_NO_OPTION);\n if (input == JOptionPane.NO_OPTION){\n JOptionPane.showMessageDialog(null, \"Thank you for playing! \\n\\nBye Bye!\",\"Game Over\", JOptionPane.PLAIN_MESSAGE);\n System.exit(0);\n }\n else if (input == JOptionPane.YES_OPTION){\n isFirst = false;\n init();\n gameLogic();\n }\n }", "private void gameOver(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(GameActivity.this);\n alertDialogBuilder\n .setMessage(\"Your score: \" + correctScore + \"%\").setCancelable(false).setPositiveButton(\"New Game\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "private void gameWonDialog() {\n // stack overflow\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle((game.isPlayer_turn()) ? R.string.player_win_title : R.string.bank_win_title);\n builder.setMessage((game.isPlayer_turn()) ? R.string.player_win_message : R.string.bank_win_message);\n\n // Set up the buttons\n builder.setPositiveButton(R.string.play_again, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n resetGame();\n }\n });\n builder.setNegativeButton(R.string.return_to_home, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n returnToMain();\n }\n });\n //builder.show();\n\n AlertDialog alert = builder.create();\n alert.show();\n Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);\n nbutton.setBackgroundColor(getResources().getColor(R.color.bank_red));\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setBackgroundColor(getResources().getColor(R.color.yale_blue));\n }", "private void onConfirmButtonPressed() {\r\n disposeDialogAndCreateNewGame();\r\n }", "public void winDialog() {\n\n\t\tif (JOptionPane.showOptionDialog(null,\n\t\t\t\t\"Player \" + playerTurn\n\t\t\t\t\t\t+ \" created a SAP and wins the game! Congratulations!\\nWould you like to play again?\",\n\t\t\t\t\"Game Over\", 0, JOptionPane.PLAIN_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION) {\n\t\t\trestartGame();\n\t\t} else {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "private void pop(){\n AlertDialog.Builder start = new AlertDialog.Builder(this);\n start.setTitle(\"THE ADVANCED HANGMAN - INSTRUCTIONS\");\n start.setMessage(\"The advanced hangman is an advanced version of the traditional hangman game. \\nThe objective of the game is to guess the correct word within six chances.\\nThis game is like a treasure hunt game. Two hints will be provided. \\n\\nHint 1: when the player makes two wrong guesses. This hint will be a one vague one. \\n\\nHint 2: when the player makes four wrong guesses. This hint will be a sort of giveaway. \\n\\n NOTE : The hints appear for a short period of time. Be attentive.\");\n start.setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n MainActivity.this.play(); //is pressed ok, play function is called.\n }\n });\n start.show();\n }", "public void exitGame(View view) {\n final Dialog alertDialog = new Dialog(MythFactGame.this,android.R.style.Theme_DeviceDefault_Dialog_NoActionBar);\n alertDialog.setContentView(R.layout.exit_game_dialog);\n alertDialog.setCancelable(false);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"Game Over!!\");\n Button ok=(Button)alertDialog.findViewById(R.id.exitGameDialogButtonOK);\n Button cancel=(Button)alertDialog.findViewById(R.id.exitGameDialogButtonCancel);\n ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addGameScoreToMainScore();\n MythFactGame.this.finish();\n }\n });\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n alertDialog.dismiss();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "private void gameOverDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.lost, R.string.game_over);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_OVER);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tGameActivity.requestRestart();\n \t\t\t\t}", "public void game_over() {\n JOptionPane.showMessageDialog(null,\"GAME OVER\",\"Titolo finestra mettici quello che vuoi\",1);\n\n System.exit(0);\n}", "public void gameOver() {\r\n // save score\r\n endScore = pointsScore;\r\n\r\n // game over dialog\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n LayoutInflater inflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n View dialogView = inflater.inflate(R.layout.game_over, null); // create view for custom dialog\r\n builder.setCancelable(false);\r\n builder.setView(dialogView); // set view to game over layout\r\n\r\n // final score and time remaining\r\n TextView finalScore = (TextView) dialogView.findViewById(R.id.final_score);\r\n finalScore.setText(\"Your final score is \"+pointsScore);\r\n\r\n\r\n // restart button within dialog\r\n Button gameoverRestart = (Button) dialogView.findViewById(R.id.gameover_restart);\r\n gameoverRestart.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n gameOverDialog.dismiss();\r\n doDataAddToDb();\r\n dataAddAppInstance();\r\n ((GameActivity) getActivity()).restartGame();\r\n }\r\n });\r\n\r\n // main menu button within dialog\r\n Button gameoverMain = (Button) dialogView.findViewById(R.id.gameover_main);\r\n gameoverMain.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n gameOverDialog.dismiss();\r\n dataAddAppInstance();\r\n doDataAddToDb();\r\n\r\n getActivity().finish();\r\n }\r\n });\r\n gameOverDialog = builder.show();\r\n }", "private void showReturnDialog(){\n final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme);\n verificationDialog.setContentView(R.layout.dialog_verification);\n TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text);\n Button cancelButton = (Button) verificationDialog.findViewById(R.id.cancel_button);\n Button acceptButton = (Button) verificationDialog.findViewById(R.id.accept_button);\n verificationDialog.show();\n\n verificationText.setText(R.string.verification_return);\n\n // Setting up a listener for the Cancel Button:\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }\n });\n\n // Setting up a listener for the Done Button:\n acceptButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Go back to main menu:\n\n // Creating an intent:\n Intent mainIntent = new Intent(OfflineGameActivity.this , MainActivity.class);\n // Starting the Main Activity:\n startActivity(mainIntent);\n\n }\n });\n\n }", "private void endGame(){\n if (winner){\n Toast.makeText(this, \"Fin del Juego: Tu ganas\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n Toast.makeText(this, \"Fin del Juego: Tu pierdes\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "private void endGame(){\n AlertDialog.Builder builder= new AlertDialog.Builder(this);\n String howGoodItWent;\n int howManyQuestions = questions.size();\n //with the percentage calculations, the app is able to display a different finishing message based on the percentage of the allquestions/correct answers\n float percentage = 0;\n //test if there are any questions. this will prevent dividing with 0\n if (howManyQuestions != 0){\n percentage = (100*score)/howManyQuestions;\n }\n //different title message on 0 correct answers, between 1-50, and 51-100\n if (score == 0) {\n howGoodItWent = \"Well, you tried\";\n } else if (percentage > 0 && percentage <= 50) {\n howGoodItWent = \"Thanks for participating\" ;\n }else if (percentage > 50 && percentage <= 99) {\n howGoodItWent = \"Congratulations\";\n }else if (percentage ==100) {\n howGoodItWent = \"Perfect Score!\";\n }else{\n howGoodItWent = \"Error\";\n }\n\n builder.setTitle(howGoodItWent);//displaying the message set earlier based on score\n final EditText input = new EditText(this);\n builder.setView(input);\n builder.setMessage(\"You scored \" + score + \" point(s) this round.\\nPlease enter your name:\");\n builder.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n playerName = input.getText().toString();\n //remove empty spaces\n playerName = playerName.trim();\n if (playerName.length() == 0){ //when the player doesn't enter anything for name, he will be called anonymous\n playerName = \"Anonymous\";\n }\n HighScoreObject highScore = new HighScoreObject(playerName, score, new Date().getTime());\n //get user prefs\n List<HighScoreObject> highScores = Paper.book().read(\"high scores\", new ArrayList<HighScoreObject>());\n\n //add item\n highScores.add(highScore);\n\n //save into paper\n Paper.book().write(\"high scores\", highScores);\n\n //return to the intro screen\n finish();\n }\n })\n .create();\n builder.show();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\tgameProgressService.newGame();\n\t\t\t\t}", "void askStartGame();", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "public void endGame(){\n\n WinnerDialog dialog = new WinnerDialog();\n dialog.show(getSupportFragmentManager(), \"winner\");\n\n\n\n\n }", "private String promptLoadOrNew(){\r\n Object[] options = {\"Start A New Game!\", \"Load A Previous Game.\"};\r\n String result = (String) JOptionPane.showInputDialog(\r\n null,\r\n \"What would you like to do?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n return result;\r\n \r\n }", "private void showLoserDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"You Have Been Defeated \" + player1.getName() + \",Computer Wins!!\", new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Try Again?\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/bronze.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Computer Wins\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }", "public void callOtherPlayer(){\n if (gameTotal > 99) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(Player2.this);\n alertDialog.setTitle(\"Congratulations!!!\");\n alertDialog.setMessage(\"Player 2, you won!!\");\n alertDialog.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n // reset all text box\n reset();\n Intent intent = new Intent(Player2.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n startActivity(intent);\n }\n }).create().show();\n\n } else {\n Intent intent = new Intent(Player2.this, MainActivity.class);\n intent.putExtra(\"Score2\", String.valueOf(gameTotal));\n intent.putExtra(\"Score1\", player1Score.getText().toString());\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n startActivity(intent);\n }\n }", "public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }", "private void showRestartDialog(){\n final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme);\n verificationDialog.setContentView(R.layout.dialog_verification);\n TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text);\n Button cancelButton = (Button) verificationDialog.findViewById(R.id.cancel_button);\n Button acceptButton = (Button) verificationDialog.findViewById(R.id.accept_button);\n verificationDialog.show();\n\n verificationText.setText(R.string.verification_restart);\n\n // Setting up a listener for the Cancel Button:\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }\n });\n\n // Setting up a listener for the Done Button:\n acceptButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Creating a new game and reinitializing UI components:\n mGame = new Game();\n setupGrid();\n mBlackCounter.setText(\"2\");\n mWhiteCounter.setText(\"2\");\n startGame();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Showing a promo ad by chance:\n showPromoAdByChance();\n\n }\n });\n\n }", "public void onClick(DialogInterface dialog, int arg1) {\n Intent intent = new Intent(Game_Activity.this, MainActivity.class);\n startActivity(intent);\n }", "public void triggerEndGame()\n\t{\n\t\tif(livesRemaining <= 0)\n\t\t{\n\t\t\tmP[0].stop();\n\t\t\tmP[1].stop();\n\t\t\tmP[2].stop();\n\t\t\tendGame = new Alert(AlertType.CONFIRMATION);\n\t\t\tendGame.setTitle(\"1942\");\n\t\t\tendGame.setHeaderText(null);\n\t\t\tendGame.getButtonTypes().clear();\n\t\t\tendGame.setContentText(\"You're dead! \\nYou finished with \" + p1Score + \" points. \\nWould you like to play again?\");\n\t\t\tendGame.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\t\tendGame.setGraphic(new ImageView(new Image(\"file:images/gameOver.png\")));\n\t\t\tspawnTimerTL.stop();\n\t\t\tmainTimer.stop();\n\t\t\tp1.getNode().setImage(null); //Removes player from screen\n\t\t\tOptional<ButtonType> result = endGame.showAndWait();\n\n\t\t\tif(result.get() == ButtonType.YES)\n\t\t\t{\n\t\t\t\tlivesRemaining = 3;\n\t\t\t\thealthRemaining = 10;\n\t\t\t\tivHealthBar.setImage(imgHealth[healthRemaining]);\n\t\t\t\tivLives.setImage(imgLives[livesRemaining]);\t\n\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\t\n\t\t\t\tlblHighScore.setText(Integer.toString(highScore));\n\t\t\t\tp1Score = 0;\n\t\t\t\tlblp1score.setText(Integer.toString(p1Score));\n\n\t\t\t\tp1.setDead(false);\n\t\t\t\tmainTimer.start();\n\t\t\t\tspawnTimerTL.play();\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < enemyPlanes.length; k++)\n\t\t\t\t{\n\t\t\t\t\tenemyPlanes[k].toggleIsDead(true);\n\t\t\t\t\tenemyPlanes[k].setY(2000);\n\t\t\t\t\tenemyPlanes[k].getNode().setLayoutY(enemyPlanes[k].getY());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\tthankYou = new Alert(AlertType.INFORMATION);\n\t\t\t\tthankYou.setTitle(\"1942\");\n\t\t\t\tthankYou.setHeaderText(null);\n\t\t\t\tthankYou.setGraphic(new ImageView(new Image(\"file:images/plane.png\")));\n\t\t\t\tthankYou.setContentText(\"Thank you for playing.\\nGoodbye!\");\n\t\t\t\tthankYou.show();\n\t\t\t\tPlatform.exit();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl());\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n leaveGameDialog.show();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl()+1);\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "public void onClickNewGame(View view) {\n\t\tfinish();\r\n\t}", "public void gameOver(String winOrLoss){\r\n\t\t\r\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(HardActivity.this);//Create end of game alert\r\n\t\t\r\n\t\t//get time info\r\n\t\tChronometer timer = (Chronometer)findViewById(R.id.chronometer1);\r\n\t\tString time = (String) timer.getText();\r\n\t\ttimer.stop();\r\n\t\t\r\n\t\t//Add game info to database\r\n\t\tdatabase.addScore(\"hard\", correctMinesGotten, time);\r\n\t\t\r\n\t\t//Loser!\r\n\t\tif(winOrLoss == \"lost\"){\r\n\t\t\t//set title\r\n\t\t\talert.setTitle(\"Game Over!\");\r\n\t\t\t//set dialog message\r\n\t\t\talert.setMessage(\"\\n\" + \"Top Score\\n-------\\n\" + getHighscores())\r\n\t\t\t\t .setCancelable(true)//disable canceling feature\r\n\t\t\t\t \r\n\t\t\t\t //Play again button\r\n\t\t\t\t .setPositiveButton(\"Play Again\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n//\t\t\t\t\t\tEasyActivity.this.finish();\r\n\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\tstartActivity(getIntent());\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//New level button\r\n\t\t\t\t.setNegativeButton(\"Choose New Level\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\tHardActivity.this.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\r\n\t\t//Winner!\r\n\t\t}else{\r\n\t\t\t//set title\r\n\t\t\talert.setTitle(\"Winner!\");\r\n\t\t\t//set dialog message\r\n\t\t\talert.setMessage(\"Nice job!\" + \r\n\t\t\t\t\t\t\t \"\\n\" + \"Top Scores\\n\" + getHighscores())\r\n\t\t\t\t .setCancelable(false)//disable cancel feature\r\n\t\t\t\t \r\n\t\t\t\t //Play again button\r\n\t\t\t\t .setPositiveButton(\"Play Again\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\tstartActivity(getIntent());\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//Choose level button\r\n\t\t\t\t.setNegativeButton(\"Choose New Level\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\tHardActivity.this.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\t\t\r\n\t\t//Display alert\r\n\t\tAlertDialog alertDialog = alert.create();\r\n\t\talertDialog.show();\r\n\t\t\r\n\t}", "public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(MainActivity.this, replayGame.class);\n intent.putExtra(\"gameName\",gameSelected);\n startActivity(intent);\n }", "public void doubleRevealWin() {\n AlertDialog.Builder builder = new AlertDialog.Builder(game_activity_fb.this);\n\n builder.setCancelable(false);\n builder.setTitle(\"You Won!\");\n builder.setMessage(\"You can now double reveal \" + UserName + \"!\" +\n \" \" +\n \"Do you want to double reveal?\");\n\n\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }\n });\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent challintent = new Intent(game_activity_fb.this, reveal_activity_test.class);\n startActivity(challintent);\n overridePendingTransition(0, 0);\n }\n });\n builder.show();\n\n }", "private void rejouer() {\n AlertDialog alertDialog = new AlertDialog.Builder(this).create();\n alertDialog.setTitle(getString(R.string.rejouer));\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getString(R.string.oui), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n initialisation();\n }\n });\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getString(R.string.non), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n alertDialog.show();\n\n }", "public void doubleRevealLose() {\n AlertDialog.Builder builder = new AlertDialog.Builder(game_activity_fb.this);\n\n builder.setCancelable(true);\n builder.setTitle(\"You Lost...\");\n builder.setMessage(UserName + \" can now double reveal you.. \");\n\n\n builder.setPositiveButton(\"Leave Game\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent challintent = new Intent(game_activity_fb.this, reveal_activity_test.class);\n startActivity(challintent);\n overridePendingTransition(0, 0);\n }\n });\n builder.show();\n\n }", "private void checkGame() {\n if (game.checkWin()) {\n rollButton.setDisable(true);\n undoButton.setDisable(true);\n this.dialogFlag = true;\n if (game.isDraw()) {\n showDrawDialog();\n return;\n }\n if (game.getWinner().getName().equals(\"Computer\")) {\n showLoserDialog();\n return;\n }\n showWinnerDialog(player1);\n }\n }", "public void onClick(DialogInterface dialog, int id) {\n promptName = (userInput.getText()).toString();\n if(promptName==null || promptName.equals(\"\"))\n {\n starterPrompt();\n }\n }", "private void startNewGame( ){\n\n mGame.clearBoard();\n mGameOver = false;\n\n // Reset all buttons\n for (int i = 0; i < mBoardButtons.length; i++) {\n mBoardButtons[i].setText(\"\");\n mBoardButtons[i].setEnabled(true);\n mBoardButtons[i].setOnClickListener(new ButtonClickListener(i));\n }\n // Human goes first\n mDiffTextView.setText(mGame.dificult);\n mInfoTextView.setText(\"You go first.\");\n\n }", "private void showGameOverDialog() {\n this.computerPaquetView.showOnceHiddenCards();\n int dialogResult = JOptionPane.showConfirmDialog (null, String.format(\"%s, you have lost!\\nPlay again?\", this.blackjackController.getHumanPlayer().getName()),\"\", JOptionPane.YES_NO_OPTION);\n if(dialogResult == JOptionPane.YES_OPTION){\n this.blackjackController.getHumanPlayer().resetBudget();\n this.startGame();\n } else {\n this.dispose();\n }\n }", "@Override\n\tpublic void startCreateNewGame() \n\t{\t\n\t\tgetNewGameView().setTitle(\"\");\n\t\tgetNewGameView().setRandomlyPlaceHexes(false);\n\t\tgetNewGameView().setRandomlyPlaceNumbers(false);\n\t\tgetNewGameView().setUseRandomPorts(false);\n\t\tif(!getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().showModal();\n\t\t}\n\t}", "private void showEndGameResults() {\n EndGameDialog endGameDialog = new EndGameDialog(this, stats, playerOne, playerTwo, (e) -> {\n dispose();\n\n this.start();\n });\n\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to play a game with \"+getArguments().getString(\"name\")+\"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n acceptGame(getContext());\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n declineGame(getContext());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private void endGame() {\n\t\tPlatform.runLater(() -> {\n\t\t\t// sets up gameOverDialog\n\t\t\tAlert gameOverDialog = new Alert(AlertType.CONFIRMATION);\n\t\t\tgameOverDialog.setTitle(\"Game Over\");\n\n\t\t\tgameOverDialog.setHeaderText(\"Score: \" + score + \"\\n\"\n\t\t\t\t\t+ \"Mastery : \" + (int)MASTER_SCORES[difficulty] + \" points\\n\"\n\t\t\t\t\t+ \"Try Again?\");\n\n\t\t\tOptional<ButtonType> result = gameOverDialog.showAndWait();\n\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\t\t// updates the file with current date, score, and difficulty\n\t\t\ttry {\n\t\t\t\tsc.getCurrentUser().updateFile(GAME_CODE, dateFormat.format(new Date()), score, difficulty);\n\t\t\t}\n\t\t\t// catches IOException and informs the user\n\t\t\tcatch (IOException ex) {\n\t\t\t\tAlert errorDialog = new Alert(AlertType.ERROR);\n\t\t\t\terrorDialog.setTitle(\"Error\");\n\t\t\t\terrorDialog.setHeaderText(\"Error\");\n\t\t\t\terrorDialog.setContentText(\"File could not be saved\");\n\t\t\t\terrorDialog.showAndWait();\n\t\t\t}\n\n\t\t\t// resets if OK button is selected\n\t\t\tif (result.get() == ButtonType.OK) {\n\t\t\t\treset();\n\t\t\t}\n\n\t\t\t// quits in CANCEL button is selected\n\t\t\tif(result.get() == ButtonType.CANCEL) {\n\t\t\t\tquitBtn.fire();\n\t\t\t}\n\t\t});\n\t}", "public void finish(){\n \t\tString congrats=\"Congratulations, you won in \" + model.getNumberOfSteps()+\" steps! \";\n \t\tJFrame frame = new JFrame();\n\t\tString[] options = new String[2];\n\t\toptions[0] = new String(\"Play again\");\n\t\toptions[1] = new String(\"Quit\");\n\t\tint result= JOptionPane.showOptionDialog(frame.getContentPane(),congrats,\"Won! \", 0,JOptionPane.INFORMATION_MESSAGE,null,options,null);\n\t\tif (result == JOptionPane.NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\tcontroller.reset(); }\n \t}", "private void addDialog(boolean gameWon) {\n String separator = Hauptfenster.getSeparator();\n String img_source = Hauptfenster.getDirectory() + \"image\" + separator + hauptfenster.getTheme();\n String[] choices = {\"Neues Spiel\", \"Abbrechen\"};\n ImageIcon lose = new ImageIcon(img_source + separator + \"gameover.gif\");\n ImageIcon win = new ImageIcon(img_source + separator + \"win.gif\");\n int result;\n if(gameWon) {\n result = JOptionPane.showOptionDialog(hauptfenster, \"Sie haben das Spiel gewonnen!\", \"Win\", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, win, choices, \"Neues Spiel\");\n }\n else {\n result = JOptionPane.showOptionDialog(hauptfenster, \"Sie haben das Spiel verloren!\", \"Game Over\", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, lose, choices, \"Neues Spiel\");\n }\n hauptfenster.getSounds().stopPlaying(); // beenden aller aktiven Soundwiedergaben\n if(result == 0) {\n hauptfenster.getSpielfeld().drawNew();\n hauptfenster.newGame();\n }\n }", "private void startNewGame()\n {\n \n \t//this.mIsSinglePlayer = isSingle;\n \n \tmGame.clearBoard();\n \n \tfor (int i = 0; i < mBoardButtons.length; i++)\n \t{\n \t\tmBoardButtons[i].setText(\"\");\n \t\tmBoardButtons[i].setEnabled(true);\n \t\tmBoardButtons[i].setOnClickListener(new ButtonClickListener(i));\n \t\t//mBoardButtons[i].setBackgroundDrawable(getResources().getDrawable(R.drawable.blank));\n \t}\n \n \t\tmPlayerOneText.setText(\"Player One:\"); \n \t\tmPlayerTwoText.setText(\"Player Two:\"); \n \n \t\tif (mPlayerOneFirst) \n \t{\n \t\t\tmInfoTextView.setText(R.string.turn_player_one); \n \t\tmPlayerOneFirst = false;\n \t}\n \telse\n \t{\n \t\tmInfoTextView.setText(R.string.turn_player_two); \n \t\tmPlayerOneFirst = true;\n \t}\n \t\n \n \tmGameOver = false;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n FindChallenge();\n\n }", "@Override\n public void onBackPressed() {\n //End Game\n // Instantiate a dialog box builder\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n // Parameterize the builder\n builder.setTitle(R.string.BackButtonEndGameTitle);\n builder.setMessage(R.string.BackButtonEndGameContent);\n builder.setPositiveButton(R.string.DialogOkButton, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onEndGame();\n }\n });\n builder.setNegativeButton(R.string.DialogCancelButton, null);\n\n // Create the dialog box and show it\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n if (askUserYesNo(\"Do you really want to quit?\")) {\n if(askUserYesNo(\"Do you want to save game?\")){\n game.saveGame();\n }\n System.exit(0);\n }\n }", "private void onEndGame() {\n Intent intent1 = new Intent(this, MainActivity.class);\n startActivity(intent1);\n finish();\n }", "public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n game.resetGame();\n\n //enable all the buttons\n enableButtons(true);\n\n //reset the buttons for a new game\n resetButton();\n\n gameStatus.setBackgroundColor(Color.MAGENTA);\n gameStatus.setText(game.result());\n }", "public void newGame_close(View view) {\n dialog_newGame.dismiss();\n }", "private void finishGame(boolean again){\r\n\t\tdispose();\r\n\t\tif(again) Util.showNewGameDialog(\"Choose player names:\", cantStop.getGameBoard().getPlayers());\r\n\t}", "private void createGameClicked() {\n RadioGroup gameMode = findViewById(R.id.gameMode);\n Intent intent = new Intent(this, GameActivity.class);\n EditText enterName = findViewById(R.id.enterName);\n String setName = enterName.getText().toString();\n TextView enterNameText = findViewById(R.id.enterNameText);\n\n TextView errorMessage = findViewById(R.id.errorMessage);\n errorMessage.setVisibility(View.GONE);\n\n\n if (setName.trim().isEmpty()) {\n enterNameText.setTextColor(Color.RED);\n } else {\n enterNameText.setTextColor(Color.BLACK);\n intent.putExtra(\"name\", setName);\n Log.i(TAG, \"My name is\" + setName);\n }\n\n if (gameMode.getCheckedRadioButtonId() == R.id.beginner && !(setName.trim().isEmpty())) {\n Log.i(TAG, \"beginner button pressed\");\n intent.putExtra(\"mode\", \"Beginner\");\n intent.putExtra(\"ability\", a.nextInt(30));\n intent.putExtra(\"mental\", m.nextInt(30) + 70);\n intent.putExtra(\"grades\", g.nextInt(20) + 40);\n intent.putExtra(\"social\", s.nextInt(20) + 40);\n\n startActivity(intent);\n finish();\n\n } else if (gameMode.getCheckedRadioButtonId() == R.id.advanced && !(setName.trim().isEmpty())) {\n Log.i(TAG, \"advanced button clicked\");\n intent.putExtra(\"mode\", \"Advanced\");\n intent.putExtra(\"ability\", a.nextInt(30) + 70);\n intent.putExtra(\"mental\", m.nextInt(20) + 10);\n intent.putExtra(\"grades\", g.nextInt(20) + 80);\n intent.putExtra(\"social\", s.nextInt(20));\n\n startActivity(intent);\n finish();\n\n } else if (gameMode.getCheckedRadioButtonId() != R.id.beginner && gameMode.getCheckedRadioButtonId() != R.id.advanced ){\n Log.i(TAG, \"no version selected\");\n errorMessage.setVisibility(View.VISIBLE);\n errorMessage.setText(\"Please select a difficulty level\");\n }\n\n }", "private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "private void onCancelButtonPressed() {\r\n disposeDialogAndCreateNewGame(); // Reset board,\r\n game.setCanPlaceMarks(false); // But don't start a new game.\r\n }", "private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\n\t\t\t\tfinish();\n\t\t\t\t\n\t\t\t}", "private void correctDialog() {\n // Update score.\n updateScore(scoreIncrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Correct! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }", "@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }", "@Override\n\t\t\tpublic void handle(MouseEvent e){\n\t\t\t\tAlert confirmation = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tconfirmation.setTitle(\"Start game?\");\n\t\t\t\tconfirmation.setHeaderText(\"Do you wish to start the game on \" + difficultyChoices.getValue() + \" difficulty?\");\n\n\t\t\t\t//The Alert window has two buttons, an OK button and a cancel button. This variable is\n\t\t\t\t//created to store which button was clicked on by the player.\n\t\t\t\tOptional<ButtonType> result = confirmation.showAndWait();\n\t\t\t\t\n\t\t\t\t//If the player clicked on the OK button, this if statement is used.\n\t\t\t\tif(result.get() == ButtonType.OK) {\n\n\t\t\t\t\t//A switch statement checks the choice selected from the drop down menu\n\t\t\t\t\tswitch(difficultyChoices.getValue()) {\n\t\t\t\t\t//Depending on which difficulty was chosen, the difficultyGuesses int variable is\n\t\t\t\t\t//set to the maximum amount of guesses that the player is allowed, and debug messages\n\t\t\t\t\t//are displayed on the console. If the player was somehow able to reach this point\n\t\t\t\t\t//without selecting one of the options, the program closes, to prevent any issues later.\n\t\t\t\t\tcase \"Easy\" : difficultyGuesses = 7;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Easy mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Medium\" : difficultyGuesses = 5;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Medium mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Hard\" : difficultyGuesses = 3;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Hard mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault \t : System.out.println(\"For some reason, we didn't get a difficulty setting.\");\n\t\t\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Using the PrintWriter, a message is sent to the server. StartUpGame acts like a \n\t\t\t\t\t//keyword so that the server can access the right area of the code to use the \n\t\t\t\t\t//second parameter correctly.\n\t\t\t\t\tout.println(\"StartUpGame \" + difficultyGuesses);\n\t\t\t\t\t\n\t\t\t\t\t//A boolean is created and set to false. It is used as a crude way of waiting for a\n\t\t\t\t\t//response from the server. The while loop afterwards continues for as long as the\n\t\t\t\t\t//boolean remains false. When the correct message is received from the server, it\n\t\t\t\t\t//will set the boolean to true, which will end the while loop and continue with the\n\t\t\t\t\t//code afterwards. \n\t\t\t\t\tboolean connectionCheck = false;\n\t\t\t\t\twhile(!connectionCheck) {\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnectionCheck = Boolean.parseBoolean(in.readLine());\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t//If nothing is received, do nothing. The loop will continue as the boolean\n\t\t\t\t\t\t\t//remains false. May need to be refined in some way to determine whether no\n\t\t\t\t\t\t\t//message was received because the server's message hasn't arrived yet, or\n\t\t\t\t\t\t\t//because the connection has been completely lost and act accordingly.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//The Alert window can now be closed\n\t\t\t\t\tconfirmation.close();\n\t\t\t\t\t\n\t\t\t\t\t//Call the game method, passing over the stage so that it can be redesigned\n\t\t\t\t\tgame(stage);\n\t\t\t\t}\n\t\t\t}", "public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }", "public void win()\r\n {\r\n Alert inputConfirmation = new Alert(Alert.AlertType.INFORMATION);\r\n inputConfirmation.setTitle(\"Congratulations!\");\r\n inputConfirmation.setHeaderText(\"Congratulations! You Win!\");\r\n inputConfirmation.setGraphic(null);\r\n\r\n String contentText = (\"You took \" + scoreBoard.timeText.getText() + \" seconds\");\r\n inputConfirmation.setContentText(contentText);\r\n scoreBoard.gameTimer.gameTime.cancel();\r\n\r\n inputConfirmation.showAndWait();\r\n }", "public void GameWin () {\n\t\t\n\t\twordDashes.setText(mysteryWord);\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Great Job!!\\nYou Guessed the Word!!\");\n\t\tplayAgain.setVisible(true); \n\t\t\n\t}", "private void i_win() {\n\t\tif (MainMusic.isPlaying())\n\t\t\tMainMusic.stop();\n\t\tMainMusic = MediaPlayer.create(Game.this, R.raw.win);\n\t\tMainMusic.start();\n\t\tgame_panel.Pause_game=true;\n\t\tWinDialog.setVisibility(View.VISIBLE);\n\t}", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\n }", "private void showDrawDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \" Game Has Ended in a Draw!! \\n\\n\\n Thanks For Playing \" + player1.getName(), new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Play Again\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/draw.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Draw!\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "public void doNewGame(View view) {\n mainHelper.restart();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tfinish();\n\t\t\t}", "public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }", "public void nextClick(View view) {\n i=i+1;\n if(i<questions.size()){\n tvQuestion.setText(questions.get(i));\n trash.setText(emptyString);\n chest.setText(emptyString);\n tvQuestion.setVisibility(View.VISIBLE);\n nxtButton.setClickable(false);\n nxtButton.setBackground(getResources().getDrawable(R.drawable.info_hub_button_grayed));\n chest.setBackground(getResources().getDrawable(R.drawable.chest));\n trash.setBackground(getResources().getDrawable(R.drawable.trash));\n }\n else{\n final Dialog alertDialog = new Dialog(MythFactGame.this,android.R.style.Theme_DeviceDefault_Dialog_NoActionBar);\n alertDialog.setContentView(R.layout.game_over_dialog);\n alertDialog.setCancelable(false);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"Game Over!!\");\n Button ok=(Button)alertDialog.findViewById(R.id.gameOverDialogButtonOK);\n ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n MythFactGame.this.finish();\n }\n });\n\n addGameScoreToMainScore();\n // Showing Alert Message\n alertDialog.show();\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "public void gameOverState(final Context context) {\n final Dialog gameoverDialog = new Dialog(context);\n gameoverDialog.setContentView(R.layout.layout_gameover);\n gameoverDialog.setCancelable(true);\n gameoverDialog.show();\n String scoreGet = \"Score: \" + String.valueOf(score);\n //This function is not used by GamePanelActivity, but rather when it is called from GamePanel itself\n //It defines a dialog box, which uses the game over layout\n\n Button menuButton = (Button) gameoverDialog.findViewById(R.id.button);\n final EditText nameBar = (EditText) gameoverDialog.findViewById(R.id.editTextTextPersonName);\n final String scoreFinal = String.valueOf(score);\n TextView scoreText = (TextView)gameoverDialog.findViewById(R.id.scoreView);\n scoreText.setText(scoreGet);\n //The game over layout includes a field for getting a name\n\n menuButton.setOnClickListener(new View.OnClickListener() {\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n @Override\n public void onClick(View view) {\n String name = nameBar.getText().toString();\n\n if (name.isEmpty())\n try {\n StringBuilder text = new StringBuilder();\n File path = new File(Environment.getExternalStorageDirectory()+\"/\"+Environment.DIRECTORY_DOCUMENTS+\"/\");\n File file = new File(path,\"asteroidsname.dat\");\n\n if(file.exists()) {\n try {\n BufferedReader bruh = new BufferedReader(new FileReader(file));\n String line;\n\n while ((line = bruh.readLine()) != null) {\n text.append(line);\n name = line;\n }\n bruh.close();\n } catch (IOException e) {\n Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n //This is a direct copy of the file reading code from the Leaderboards activity\n //If the name text is left blank, this reads from the default name file\n //If it doesn't exists, it just leaves it as \"Player 1\"\n else{\n name = \"Player 1\";\n }\n updateLeaderboards(name, scoreFinal);\n gameoverDialog.dismiss();\n } catch(Exception e) {\n e.printStackTrace();\n }\n else if (name.length() > 20)\n nameBar.setError(\"Please enter a shorter name!\");\n else {\n try {\n updateLeaderboards(name, scoreFinal);\n gameoverDialog.dismiss();\n //This is here in case the player manually enters a name\n } catch (Exception e) {\n Toast.makeText(context, \"Leaderboards update failed!\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n }\n });\n }", "static void choice() {\n //This starts the opening option list\n JFrame choice = new JFrame();\n Object[] startOptions = {\"Single Player\", \"Multiplayer\", \"Exit\"};\n int z = JOptionPane.showOptionDialog(choice, \"Do you want to play Single Player or Multiplayer?\", \"Choose the game type\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, startOptions, startOptions[2]);\n //The null represents the Cancel button\n if (z==2) {\n int exit = JOptionPane.showConfirmDialog(choice, \"Exit Pong?\");\n if (exit == 0) {\n System.exit(0); //Exits program\n } else {\n choice(); //Restarts program\n }\n }\n //Starts the multiplayer\n else if (z == 1) {\n Object[] options = {\"Network Multiplayer\", \"Local Multiplayer\", \"Exit\"};\n int n = JOptionPane.showOptionDialog(choice, \"Do you want to play online Multiplayer or local Multiplayer?\", \"Choose the Multiplayer type\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[2]);\n if (n == 0) {\n //What happens if they chose the online option?\n whichProgramToStart=1;\n } else if (n == 1) {\n //What happens if they chose local option?\n whichProgramToStart=2;\n } else if (n == 2) {\n int zz = JOptionPane.showConfirmDialog(choice, \"Are you sure you want to quit?\");\n if (zz == 0) {\n JOptionPane.showMessageDialog(choice, \"Thanks for playing\");\n System.exit(0); //Exits the program\n } else {\n choice(); //Restarts the program\n }\n }\n }\n //Starts the SinglePlayer with AI\n else if (z == 0) {\n whichProgramToStart=0;\n }\n //Gives the user 1 last option to not quit the game before doing so\n else {\n int exit = JOptionPane.showConfirmDialog(choice, \"Are you sure you want to quit?\");\n if (exit == 0) {\n JOptionPane.showMessageDialog(choice, \"Thanks for playing\");\n System.exit(0); //Ends the program upon initilization\n } else {\n choice(); //Restarts the program if they decide not to quit\n }\n }\n }", "public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "public void onStartbutton(View view){\n\n if(naughty != 0) {\n score = 0;\n\n // initializes Dictionary for good gameplay\n if(naughty == 1){\n dict().initializeDict();\n }\n Intent gameboard = new Intent(this, GameboardActivity.class);\n gameboard.putExtra(\"naughty\", naughty);\n gameboard.putExtra(\"score\",score);\n gameboard.putExtra(\"guessnum\",guessnum);\n gameboard.putExtra(\"wordlen\",wordlen);\n startActivity(gameboard);\n }\n else {\n Toast.makeText(MenuActivity.this, \"Please select Game mode\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public void pressNewGame() {\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tfinish();\n\t\t\t}", "private void SecondStateFiringChecks()\n {\n List<Player> AffectedPlayers = game.GetAffectedPlayers(geoTarget, game.GetConfig().GetBlastRadius(missileType));\n\n if(AffectedPlayers.size() == 1)\n {\n final Player affectedPlayer = AffectedPlayers.get(0);\n\n if(lLastWarnedID != affectedPlayer.GetID() && affectedPlayer.GetRespawnProtected())\n {\n final LaunchDialog launchDialog = new LaunchDialog();\n launchDialog.SetHeaderLaunch();\n launchDialog.SetMessage(context.getString(R.string.attacking_respawn_protected, affectedPlayer.GetName(), TextUtilities.GetTimeAmount(affectedPlayer.GetStateTimeRemaining())));\n launchDialog.SetOnClickYes(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n launchDialog.dismiss();\n lLastWarnedID = affectedPlayer.GetID();\n Launch();\n }\n });\n launchDialog.SetOnClickNo(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n launchDialog.dismiss();\n }\n });\n launchDialog.show(activity.getFragmentManager(), \"\");\n }\n else if(lLastWarnedID != affectedPlayer.GetID() && game.GetNetWorthMultiplier(game.GetOurPlayer(), affectedPlayer) < Defs.NOOB_WARNING)\n {\n final LaunchDialog launchDialog = new LaunchDialog();\n launchDialog.SetHeaderLaunch();\n launchDialog.SetMessage(context.getString(R.string.attacking_noob, affectedPlayer.GetName()));\n launchDialog.SetOnClickYes(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n launchDialog.dismiss();\n lLastWarnedID = affectedPlayer.GetID();\n Launch();\n }\n });\n launchDialog.SetOnClickNo(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n launchDialog.dismiss();\n }\n });\n launchDialog.show(activity.getFragmentManager(), \"\");\n }\n else if(lLastWarnedID != affectedPlayer.GetID() && game.GetNetWorthMultiplier(game.GetOurPlayer(), affectedPlayer) > Defs.ELITE_WARNING)\n {\n final LaunchDialog launchDialog = new LaunchDialog();\n launchDialog.SetHeaderLaunch();\n launchDialog.SetMessage(context.getString(R.string.attacking_elite, affectedPlayer.GetName()));\n launchDialog.SetOnClickYes(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n launchDialog.dismiss();\n lLastWarnedID = affectedPlayer.GetID();\n Launch();\n }\n });\n launchDialog.SetOnClickNo(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n launchDialog.dismiss();\n }\n });\n launchDialog.show(activity.getFragmentManager(), \"\");\n }\n else\n {\n Launch();\n }\n }\n else\n {\n Launch();\n }\n }", "private void gameOverDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_over), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }" ]
[ "0.7498104", "0.7496344", "0.74890995", "0.731687", "0.73111683", "0.7140732", "0.71378285", "0.7133079", "0.71286696", "0.7036474", "0.7000598", "0.6996611", "0.6923314", "0.68619895", "0.68578035", "0.6819008", "0.681824", "0.68035173", "0.6798959", "0.679548", "0.67937666", "0.6788708", "0.67751616", "0.6758522", "0.67297304", "0.67072314", "0.6698441", "0.6688053", "0.6680887", "0.66777766", "0.66768634", "0.667546", "0.6667921", "0.66665137", "0.66590637", "0.66516405", "0.66511047", "0.66456926", "0.6638916", "0.6634851", "0.663203", "0.65714216", "0.6563932", "0.65566534", "0.6541988", "0.6537141", "0.6535603", "0.64946795", "0.64849806", "0.6484101", "0.64732677", "0.6470753", "0.6454088", "0.64534503", "0.64467895", "0.6444026", "0.6441944", "0.64317256", "0.6429899", "0.6426182", "0.6400145", "0.63946617", "0.63839126", "0.63825715", "0.6382303", "0.6380975", "0.63786465", "0.63759327", "0.63457096", "0.63352656", "0.6334245", "0.63318574", "0.6329266", "0.6329266", "0.63289285", "0.6323294", "0.6320633", "0.6320552", "0.63191235", "0.6317793", "0.63157535", "0.6313351", "0.63051254", "0.6303031", "0.6303031", "0.6303031", "0.63000673", "0.63000673", "0.63000673", "0.63000673", "0.63000673", "0.63000673", "0.6299377", "0.62991744", "0.6298583", "0.6293419", "0.62892157", "0.6285949", "0.6285929", "0.6282789" ]
0.6908062
13
Activity views initialization //
private void initViews() { TextView textViewPlayer1 = (TextView) findViewById(R.id.textView_player1); TextView textViewScorePlayer1 = (TextView) findViewById(R.id.textView_player1_score); ProgressBar progressBarPlayer1 = (ProgressBar) findViewById(R.id.progressBar_player1); TextView textViewPlayer2 = (TextView) findViewById(R.id.textView_player2); TextView textViewScorePlayer2 = (TextView) findViewById(R.id.textView_player2_score); ProgressBar progressBarPlayer2 = (ProgressBar) findViewById(R.id.progressBar_player2); ImageView imageViewDie = (ImageView) findViewById(R.id.imageView_die); TextView textViewAccumulated = (TextView) findViewById(R.id.textView_accumulated); TextView textViewPlayerTurn = (TextView) findViewById(R.id.textView_player_turn); TextView textViewStartTurn = (TextView) findViewById(R.id.textView_start_turn); Button buttonCollect = (Button) findViewById(R.id.button_collect); Button buttonThrow = (Button) findViewById(R.id.button_throw); // The views are stored in objects which handle its behaviour // BarScore barScorePlayer1 = new BarScore(textViewPlayer1, textViewScorePlayer1, progressBarPlayer1); BarScore barScorePlayer2 = new BarScore(textViewPlayer2, textViewScorePlayer2, progressBarPlayer2); ScoreBoard scoreBoard = new ScoreBoard(barScorePlayer1, barScorePlayer2); DieView dieView = new DieView(imageViewDie); GameInfo gameInfo = new GameInfo(textViewAccumulated, textViewPlayerTurn, textViewStartTurn); ButtonsToPlay buttons = new ButtonsToPlay(buttonThrow, buttonCollect); // These objects with views are GameObjects, so they are stored in a global array // gameObjects = new GameObject[]{scoreBoard, dieView, gameInfo, buttons}; // The AlertDialog to show the winner message or exit message -> onBackPressed() // gameAlertDialog = new GameAlertDialog(this, game, gameObjects); // Listeners // buttonThrow.setOnClickListener(new ThrowListener(game, gameAlertDialog, gameObjects)); buttonCollect.setOnClickListener(new CollectListener(game, gameObjects)); textViewStartTurn.setOnClickListener(new StartTurnListener(game, gameObjects)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initViews() {\n\n }", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "private void initViews() {\n\n\t}", "public void initViews(){\n }", "private void initView() {\n\n }", "public void initView(){}", "protected abstract void initViews();", "public void initViews() {\n View accountExists = activity.findViewById(R.id.button_register);\n Button buttonSubmitAuth = activity.findViewById(R.id.button_login);\n\n viewUsername = activity.findViewById(R.id.login_username);\n viewPassword = activity.findViewById(R.id.login_password);\n\n accountExists.setOnClickListener(view ->\n activity.setViewPagerCurrentItem(OnboardingActivity.Companion.getFRAGMENT_REGISTRATION()));\n\n buttonSubmitAuth.setOnClickListener(view -> authenticateUser());\n }", "private void viewInit() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "public abstract void initViews();", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "private void initView() {\n\t\tself_info.setOnClickListener(this);\r\n\t\twhich_org.setOnClickListener(this);\r\n\t\tmember_information.setOnClickListener(this);\r\n\t}", "private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findViewById(R.id.btn_search);\r\n\t\tll_main = (LinearLayout) findViewById(R.id.ll_main);\r\n\t}", "private void initializeViews()\n {\n scrMainContainer = findViewById(R.id.scrMainContainer);\n btnBack = findViewById(R.id.btnBack);\n etEmail = findViewById(R.id.etEmail);\n tvEmailError = findViewById(R.id.tvEmailError);\n etUsername = findViewById(R.id.etUsername);\n tvUsernameError = findViewById(R.id.tvUsernameError);\n etPassword = findViewById(R.id.etPassword);\n tvPasswordError = findViewById(R.id.tvPasswordError);\n btnCreateAccount = findViewById(R.id.btnCreateAccount);\n relLoadingPanel = findViewById(R.id.relLoadingPanel);\n }", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "private void initViews() {\n /* Intent get data handler */\n fullScreenSnap = (ImageView) findViewById(R.id.fullScreenSnap);\n mToolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbar);\n getSupportActionBar().setTitle(AppConstants.imageName);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n mToolbar.setNavigationIcon(R.drawable.back_button);\n }", "@Override\n\tpublic void initViews() {\n\t\tmClick=(Button) findViewById(R.id.bt_click);\n\t}", "private void initInjectedView(Activity activity) {\n\t\tinitInjectedView(activity,activity.getWindow().getDecorView());\n\t}", "@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void initViews() {\n setActionBarTitle(R.string.my_energy_metabolism);\n mViewPager = (CustomViewPager) findViewById(R.id.viewPager);\n }", "protected abstract void initViews(View mView);", "private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "private void initializeViews() {\n avatarView = (AvatarView) findViewById(R.id.avatarImage);\n userNameText = (TextView) findViewById(R.id.user_profile_name);\n userJoinedText = (TextView) findViewById(R.id.user_date_joined);\n followingButton = (Button) findViewById(R.id.following_btn);\n backButton = (ImageButton) findViewById(R.id.back_button);\n settingButton = (ImageButton) findViewById(R.id.settings_button);\n cameraButton = (ImageButton) findViewById(R.id.camera_button);\n\n cameraButton.setVisibility(View.GONE);\n settingButton.setVisibility(View.GONE);\n\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n }", "private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}", "private void initViews() {\r\n etEmail = findViewById(R.id.et_mail);\r\n etVerifyCode = findViewById(R.id.et_l_verifyCode);\r\n etNewPsw = findViewById(R.id.et_new_psw);\r\n etConfirmPsw = findViewById(R.id.et_confirm_psw);\r\n }", "private void initViews(){\n mTitle = (EditText) findViewById(R.id.scheduled_event_title);\n mDescription = (EditText) findViewById(R.id.scheduled_event_description);\n mHour = (EditText) findViewById(R.id.scheduled_event_time_hour);\n mMinute = (EditText) findViewById(R.id.scheduled_event_time_minutes);\n mCategorySpinner = (Spinner) findViewById(R.id.scheduled_spinner_categories);\n mDueDate = (TextView) findViewById(R.id.tv_scheduled_event_due_date);\n mDueTime = (TextView) findViewById(R.id.tv_scheduled_event_due_time);\n }", "public void initViews() {\n rb_greenTablet = findViewById(R.id.green_tablet);\n rb_blackTablet = findViewById(R.id.black_tablet);\n rb_fireTablet = findViewById(R.id.fire_tablet);\n }", "private void initViews() {\n webView = (WebView)findViewById(R.id.crop_webview);\n confirm_location = (Button)findViewById(R.id.btn_confirm_location);\n toolbar = (Toolbar)findViewById(R.id.map_toolbar);\n }", "void initView();", "private void init() {\n\t\ttv_cd_title = (TextView) contentView.findViewById(R.id.tv_cd_title);\n\t\ttv_cd_content = (TextView) contentView.findViewById(R.id.tv_cd_content);\n\t\tbtn_cd_one = (Button) contentView.findViewById(R.id.btn_cd_one);\n\t\tbtn_cd_two = (Button) contentView.findViewById(R.id.btn_cd_two);\n\t}", "protected abstract void initView();", "protected abstract void initContentView(View view);", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }", "private void initView() {\n\t\tcb_show = (CheckBox) findViewById(R.id.cb_show);\r\n\t\tbtn_next = (Button) findViewById(R.id.btn_next);\r\n\t}", "private void initViews() {\n\n buttonSomethingWentWrong = findViewById(R.id.button_somethingWentWrong);\n buttonHighlightRequest = findViewById(R.id.button_highlight_request);\n buttonSuggestion = findViewById(R.id.button_suggestion);\n closeButton = findViewById(R.id.img_close);\n }", "private void initView() {\n\t\timg_back = (ImageView) findViewById(R.id.img_back_updatejob);\n\t\tedt_content = (EditText) findViewById(R.id.edt_content_updatejob);\n\t\tedt_course = (EditText) findViewById(R.id.edt_course_updatejob);\n\t\tbtn_delete = (Button) findViewById(R.id.btn_delete_updatejob);\n\t\tbtn_update = (Button) findViewById(R.id.btn_update_updatejob);\n\t}", "private void initializeViews() {\n titleTV = (TextView) findViewById(R.id.displayTitle);\n typeTV = (TextView) findViewById(R.id.displayType);\n categoryTV = (TextView) findViewById(R.id.displayCategory);\n amountTV = (TextView) findViewById(R.id.displayAmount);\n partyTV = (TextView) findViewById(R.id.displayParty);\n modeTV = (TextView) findViewById(R.id.displayMode);\n dateTV = (TextView) findViewById(R.id.displayDate);\n descriptionTV = (TextView) findViewById(R.id.displayDescription);\n currencyTV = (TextView)findViewById(R.id.displayCurrency);\n\n //find all buttons\n editButton = (FloatingActionButton) findViewById(R.id.editButton);\n deleteButton = (FloatingActionButton) findViewById(R.id.deleteButton);\n\n\n }", "private void initView() {\n\t\tbtnBack = (Button) findViewById(R.id.btn_regist_back);\n\t\tbtnRegist = (Button) findViewById(R.id.btn_regist_regist);\n\t\tuseret=(EditText)findViewById(R.id.userID);\n\t\tcellet=(EditText)findViewById(R.id.pNUM);\n\t\tpwet=(EditText)findViewById(R.id.et_regist_userPwd);\n\t\trpwet=(EditText)findViewById(R.id.rp_userPwd);\n\t\tmProgressView = findViewById(R.id.login_progress);\n\t\tbtnConf=(Button) findViewById(R.id.btn_msg);\n\t\tconfet=(EditText)findViewById(R.id.et_confirm);\n\n\t}", "private void initViews() {\n mDatabaseHandler = DatabaseHandler.getInstance(HomeActivity.this);\n Toolbar toolbar = (Toolbar) findViewById(R.id.activity_home_toolbar);\n setSupportActionBar(toolbar);\n mFab = (FloatingActionButton) findViewById(R.id.activity_home_fab);\n mMonthsList = new ArrayList<>();\n }", "void initializeViews() {\n\n //Initialize the button image views layouts.\n recordButton = (ImageView) findViewById(R.id.record);\n cameraButton = (ImageView) findViewById(R.id.camera);\n archive = (ImageView) findViewById(R.id.archive);\n back = (ImageView) findViewById(R.id.back);\n captureButton = (ImageButton) findViewById(R.id.button_capture);\n }", "private void initializeViews() {\n\n this.startFrameAnimation = (Button) findViewById(R.id.button_frame);\n this.startTweenAnimation = (Button) findViewById(R.id.button_tween);\n\n this.tweenAnimation = (ImageView) findViewById(R.id.tween);\n this.frameAnimation = (ImageView) findViewById(R.id.frame);\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "private void initializeActivity() {\n initializeActionbar();\n initializeActionDrawerToggle();\n setUpNavigationDrawer();\n setStartFragment();\n setFloatingButtonListener();\n setUpShareAppListener();\n hideWindowSoftKeyboard();\n }", "protected void initializeViews(){\n mLatLng = (TextView) findViewById(R.id.lat_lng);\n mAccuracyView = (TextView) findViewById(R.id.accuracy);\n mRouteText = (TextView) findViewById(R.id.route);\n mRegionText = (TextView) findViewById(R.id.region);\n mSampleText = (TextView) findViewById(R.id.sample);\n mBeaconText = (TextView) findViewById(R.id.beacon);\n }", "private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}", "protected abstract void initializeView();", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(getLayoutViewId());\n// presenter = getPresenter(typePresenter);\n init();\n }", "private void initViews() {\n mTvBalance = findViewById(R.id.tv_receive_client_balance);\n mListView = findViewById(R.id.lv_list_receive_client);\n mFab = findViewById(R.id.fab_receive_receip);\n mTvEmpty = findViewById(R.id.tv_empty_view);\n mIvEmpty = findViewById(R.id.iv_empty_view);\n mEmptyView = findViewById(R.id.empty_view);\n }", "private void initViews() {\n\t\t\r\n\t\tTypeface face = Typeface.createFromAsset(getAssets(), \"Teko_Light.ttf\");\r\n\r\n\t\tet_pin = (EditText) findViewById(R.id.et_pin);\r\n\t\tet_pin.setTypeface(face);\r\n\t\tbtn_admin_login = (Button) findViewById(R.id.btn_admin_login);\r\n\t\tbtn_admin_login.setTypeface(face);\r\n\r\n\t\td = new DialogView();\r\n\t}", "public abstract void initView();", "private void initView() {\n\t\tsetContentView(R.layout.activity_taskmanager);\n\n\t\tlv_datas = (ListView) findViewById(R.id.lv_taskmanager);\n\t\ttv_showInfo = (TextView) findViewById(R.id.tv_taskmanager_showInfo);\n\n\t\tmpb_mem = (MessProgress) findViewById(R.id.mpb_taskmanager_runningmem);\n\t\tmpb_num = (MessProgress) findViewById(R.id.mpb_taskmanager_runningnum);\n\t\t// progressbar\n\t\tll_process = (LinearLayout) findViewById(R.id.ll_progressbar_root);\n\n\t\tsd_drawer = (SlidingDrawer) findViewById(R.id.slidingDrawer1);\n\t\tiv_arrow1 = (ImageView) findViewById(R.id.iv_drawer_arrow1);\n\t\tiv_arrow2 = (ImageView) findViewById(R.id.iv_drawer_arrow2);\n\n\t\tsci_showsystem = (SettingCenterItem) findViewById(R.id.sci_taskmanager_showsystem);\n\t\tsci_screenoffclear = (SettingCenterItem) findViewById(R.id.sci_taskmanager_screenoffclear);\n\n\t\tmAdapter = new MyAdapter();\n\t\tlv_datas.setAdapter(mAdapter);\n\n\t\tmAM = (ActivityManager) getSystemService(ACTIVITY_SERVICE);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "private void initView() {\n btnLoginFacebook = (RelativeLayout) findViewById(R.id.btnLoginFacebook);\n btnLoginGoogle = (RelativeLayout) findViewById(R.id.btnLoginGoogle);\n txtRegister = (TextViewFontAwesome) findViewById(R.id.txtRegister);\n txtForgotPassword = (TextViewFontAwesome) findViewById(R.id.txtForgotPassword);\n txtLogin = (TextViewFontAwesome) findViewById(R.id.txtLogin);\n txtUsername = (EditText) findViewById(R.id.txtUsername);\n txtPassword = (EditText) findViewById(R.id.txtPassword);\n txtForgotPassword.setPaintFlags(txtForgotPassword.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n }", "private void initView() {\n\t\tlogin = (Button) pageViews.get(2).findViewById(R.id.sendbtn);\n\t\tlogin.setOnClickListener(this);\n\t}", "private void initView(){\n backBtn = (Button)findViewById(R.id.header_bar_btn_back);\n titleTv = (TextView)findViewById(R.id.header_bar_tv_title);\n confirmBtn = (Button)findViewById(R.id.header_bar_btn_add);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_my_act);\n ButterKnife.bind(this);\n init();\n initView();\n initData();\n }", "private void init() {\n initView();\n setListener();\n }", "private void initViews() {\n appCompatButtonLogout = (AppCompatButton) findViewById(R.id.appCompatLogoutButton);\n appCompatButtonDelete = (AppCompatButton) findViewById(R.id.appCompatDeleteButton);\n\n }", "private void initViews() {\n editTextEmail = (EditText) findViewById(R.id.email);\n editTextPassword = (EditText) findViewById(R.id.password);\n textInputLayoutEmail = (TextInputLayout) findViewById(R.id.textInputLayoutEmail);\n textInputLayoutPassword = (TextInputLayout) findViewById(R.id.textInputLayoutPassword);\n buttonLogin = (Button) findViewById(R.id.buttonLogin);\n\n }", "private void initViews() {\n vpSplashPager = findViewById(R.id.vp_splash);\n pageIndicatorView = findViewById(R.id.pageIndicatorView);\n tvSplashDesc = findViewById(R.id.tv_splash_desc);\n tvSplashSkip = findViewById(R.id.tv_splash_skip);\n tvSplashTitle = findViewById(R.id.tv_splash_title);\n }", "private void initViews() {\n\t\t// TODO Auto-generated method stub\n\t\t// venuePager = (ViewPager)findViewById(R.id.pager);\n\n\t\tmyGallery = (LinearLayout) findViewById(R.id.horizontalScrollItems);\n\n\t\tvenueImageLarge = (ImageView) findViewById(R.id.imageVenueLarge);\n\n\t\tinfoImageView = (ImageView) findViewById(R.id.imageInfo);\n\n\t\tcloseBtn = (ImageView) findViewById(R.id.imageclose);\n\n\t\tvenueCapacity = (TextView) findViewById(R.id.venueCapacity);\n\n\t\tvenueDes = (TextView) findViewById(R.id.venueDes);\n\n\t\tvenueName = (TextView) findViewById(R.id.venueName);\n\n\t\tvenueRelative = (RelativeLayout) findViewById(R.id.venue_relative);\n\n\t\tviewAnimator = (ViewAnimator) this.findViewById(R.id.viewFlipper_venue);\n\n\t\tvenueFullname = (TextView) findViewById(R.id.venueFullnameValue);\n\n\t\tvenueCity = (TextView) findViewById(R.id.venueCityValue);\n\n\t\tvenueOwner = (TextView) findViewById(R.id.venueOwnerValue);\n\n\t\tvenueOpened = (TextView) findViewById(R.id.venueOpenedValue);\n\n\t\tvenueSurface = (TextView) findViewById(R.id.venueSurfaceValue);\n\n\t\tvenueWebsite = (TextView) findViewById(R.id.venueWebsiteValue);\n\n\n\t}", "private void initView() {\n mRetrofit = new Retrofit.Builder()\n .baseUrl(Challenge1Activity.MY_BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n mTextViewDisplayTopRated = findViewById(R.id.text_view_display_toprated_movies);\n\n mTextViewPrev = findViewById(R.id.text_view_prev);\n mTextViewCurrentAndMaxPage = findViewById(R.id.text_view_current_and_max_page);\n mTextViewNext = findViewById(R.id.text_view_next);\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void initInstances(View rootView, Bundle savedInstanceState) {\n toolbar = (Toolbar)rootView.findViewById(R.id.toolbar);\n ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);\n // set up button\n setHasOptionsMenu(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setHomeButtonEnabled(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Chat\");\n\n btnCall = (ImageButton)rootView.findViewById(R.id.btnCall);\n btnCall.setOnClickListener(ImageButtonClick);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n initViews();\n \n }", "private void initViews() {\n textViewRole = findViewById(R.id.textViewAddress);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n appCompatButtonAddProperty = findViewById(R.id.appCompatButtonAddProperty);\n }", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@SuppressWarnings(\"UnusedParameters\")\r\n private void initInstances(View rootView, Bundle savedInstanceState) {\n }", "@Override\n public void initView() {\n }", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "private void prepareView(){\n mAvatar = (ImageButton)findViewById(R.id.btnAvatar);\n mAvatar.setOnClickListener(this);\n\n mName = (TextView)findViewById(R.id.tvName);\n mEmail = (TextView)findViewById(R.id.tvEmail);\n mWelcome = (TextView)findViewById(R.id.tvSelectionTitle);\n\n mDesigner = (ImageButton)findViewById(R.id.btnDesigner);\n mDesigner.setOnClickListener(this);\n\n mDeveloper = (ImageButton)findViewById(R.id.btnDeveloper);\n mDeveloper.setOnClickListener(this);\n }", "protected void initView(View rootView) {\n\n }", "private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}", "private void init() {\n\t\tback=(ImageView)this.findViewById(R.id.back);\n\t\taddUser=(ImageView)this.findViewById(R.id.adduser);\n\t\tgrid=(GridView)this.findViewById(R.id.gridview);\n\t}", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tprotected void initView(Bundle savedInstanceState) {\n\t\tsuper.initView(savedInstanceState);\n\t\taCache = ACache.get(ForgetActivity.this);\n\t\tedittext = (EditText) findViewById(R.id.edittext);\n\t\tproving = (Button) findViewById(R.id.proving);\n\t\tproving.setOnClickListener(this);\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n pushTxt = (TextView) findViewById(R.id.push_txt);\n pushActivity = (TextView)findViewById(R.id.push_activity);\n pushArticle = (TextView)findViewById(R.id.push_article);\n pushProduce = (TextView)findViewById(R.id.push_produce);\n\n\n pushTxt.setOnClickListener(this);\n pushActivity.setOnClickListener(this);\n pushArticle.setOnClickListener(this);\n pushProduce.setOnClickListener(this);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activities);\n\t\t\n\t\t// method initialized view\n\t\tinitView();\n\t\tbtCheck1.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}\t\n\t\t});\n\t\t\n\t}", "public void initViews(){\n layout_health = (RelativeLayout) findViewById(R.id.layout_health);\n layout_msg = (RelativeLayout) findViewById(R.id.layout_msg);\n layout_usercenter = (RelativeLayout) findViewById(R.id.layout_usercenter);\n\n// img_home = (ImageView) findViewById(R.id.img_home);\n img_health = (ImageView) findViewById(R.id.img_health);\n img_msg = (ImageView) findViewById(R.id.img_msg);\n img_usercenter = (ImageView) findViewById(R.id.img_usercenter);\n\n// tv_home = (TextView) findViewById(R.id.tv_home);\n tv_health = (TextView) findViewById(R.id.tv_health);\n tv_msg = (TextView) findViewById(R.id.tv_msg);\n tv_usercenter = (TextView) findViewById(R.id.tv_usercenter);\n\n }", "@Override\n public void initView() {\n\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tViewUtils.inject(this);\n\t\tsetView();\n\t}", "private void setupView()\n {\n btn = (Button) this.findViewById(R.id.btn);\n btn2 = (Button) this.findViewById(R.id.btn2);\n btn3 = (Button) this.findViewById(R.id.btn3);\n\n }", "private void initView() {\n\r\n Button bt1 = (Button)findViewById(R.id.button1);\r\n bt1.setOnClickListener(this);\r\n Button bt2 = (Button)findViewById(R.id.button2);\r\n bt2.setOnClickListener(this);\r\n Button bt3 = (Button)findViewById(R.id.button3);\r\n bt3.setOnClickListener(this);\r\n Button bt4 = (Button)findViewById(R.id.button4);\r\n bt4.setOnClickListener(this);\r\n }", "private void initViews() {\n View view = getView();\n if (view != null) {\n edtConfirmPassword = view.findViewById(R.id.edt_reg_confim_password);\n edtConfirmPassword.setTag(\"Confirm Password\");\n edtEmail = view.findViewById(R.id.edt_reg_email);\n edtEmail.setTag(\"Email\");\n edtPhone = view.findViewById(R.id.edt_reg_phone);\n edtPhone.setTag(\"Phone\");\n edtPassword = view.findViewById(R.id.edt_reg_password);\n edtPassword.setTag(\"Password\");\n tv_RegisterSignIn = view.findViewById(R.id.tv_register_sign_in);\n btn_reg_signup = view.findViewById(R.id.btn_reg_signup);\n edtUserName = view.findViewById(R.id.edt_reg_name);\n edtUserName.setTag(\"Name\");\n }\n }", "@Override\n protected void initView()\n {\n ed_name = findView(R.id.ed_name);\n ed_bank = findView(R.id.ed_bank);\n ed_bank_card = findView(R.id.ed_bank_card);\n ed_bank_name = findView(R.id.ed_bank_name);\n btn_submit = findView(R.id.btn_submit);\n findView(R.id.ib_back).setOnClickListener(this);\n Toolbar toolbar = findView(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n }", "@Override\n\tpublic void initView() {\n\t\tIntent intent=getIntent();\n\t\tString title=intent.getStringExtra(\"title\");\n\t\tcontext=intent.getStringExtra(\"context\");\n\t\tsetTitle(title);\n\t\tsetGone();\n\t\tsetBack();\n\t\tlist=new ArrayList<GameFighterBean>();\n\t\ttopNewsMoreLV = (LoadListViewnews) findViewById(R.id.lv_more_topnew);\n\t\txuanshou_quanbu_wu = (Button) findViewById(R.id.xuanshou_quanbu_wu);\n\t\txuanshou_quanbu_wu.setVisibility(View.VISIBLE);\n\t\tinitNetwork(context);\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 }", "private void initUi() {\n mToolbsr = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbsr);\n\n fab = (FloatingActionButton) findViewById(R.id.fab);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);\n mNavigationView = (NavigationView) findViewById(R.id.nav_view);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n }", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "@Override\n public void initViews() {\n adapter = new PaymentAdapter(context, MainActivity.os.getPayments());\n ((ListView)views.get(\"LIST_VIEW\")).setAdapter(adapter);\n (views.get(\"ADD_BUTTON\")).setOnClickListener(this);\n }", "@Override\r\n protected void initView() {\n mTitleTV = (TextView) findViewById(R.id.sub_header_bar_tv);\r\n mBackIBtn = (ImageButton) findViewById(R.id.sub_header_bar_left_ibtn);\r\n mChooseVehicleTypeLL = (LinearLayout) findViewById(R.id.choose_vehicle_type_ll);\r\n mVehicleTypeTV = (TextView) findViewById(R.id.vehicle_type_tv);\r\n mVehicleCodeTV = (TextView) findViewById(R.id.car_plate_districe_coding_tv);\r\n mVehiclePlateNumET = (EditText) findViewById(R.id.vehicle_plate_num_et);\r\n mChooseCityLL = (LinearLayout) findViewById(R.id.choose_city_ll);\r\n mQueryCityTV = (TextView) findViewById(R.id.choose_city_tv);\r\n mVehicleFrameNumET = (EditText) findViewById(R.id.vehicle_frame_num_et);\r\n mVehicleEngineNumET = (EditText) findViewById(R.id.vehicle_engine_num_et);\r\n mVehicleFrameHelpIV = (ImageView) findViewById(R.id.vehicle_frame_info_iv);\r\n mVehicleEngineHelpIV = (ImageView) findViewById(R.id.vehicle_engine_info_iv);\r\n mQueryBtn = (Button) findViewById(R.id.illegal_query_btn);\r\n mVehicleFrameNumLL = (LinearLayout) findViewById(R.id.vehicle_frame_num_ll);\r\n mVehicleEngineNumLL = (LinearLayout) findViewById(R.id.vhicle_engine_num_ll);\r\n }", "private void Init(){\n /*button_continue = (Button)findViewById(R.id.button_continue);\n textView_welcome = (TextView)findViewById(R.id.textView_welcome);*/\n viewPager_slide = (ViewPager)findViewById(R.id.viewPager_slide);\n dots_layout = (LinearLayout) findViewById(R.id.dots_layout);\n button_retour = (Button)findViewById(R.id.button_retour);\n button_suivant = (Button)findViewById(R.id.button_suivant);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitView();\n\t\tinitData();\n\t\tinitEvent();\n\t}" ]
[ "0.810082", "0.80266285", "0.8014161", "0.7964455", "0.7859383", "0.7838937", "0.7791669", "0.7784806", "0.77718705", "0.77649134", "0.7756578", "0.7738576", "0.7738576", "0.77202016", "0.77192557", "0.77178556", "0.7704845", "0.77021426", "0.770144", "0.76998377", "0.76862705", "0.76740175", "0.7656162", "0.7651552", "0.76283514", "0.761826", "0.76149464", "0.7609629", "0.75497985", "0.75491947", "0.75455", "0.75333154", "0.7533307", "0.7531921", "0.75215703", "0.7500375", "0.7497339", "0.7491864", "0.7490609", "0.7489775", "0.7487924", "0.747596", "0.74753255", "0.74617106", "0.74456286", "0.74373704", "0.7428904", "0.74285054", "0.74193364", "0.7413781", "0.74121034", "0.74103194", "0.7409713", "0.7402631", "0.7401984", "0.7401716", "0.73986036", "0.7395507", "0.73939985", "0.7381848", "0.73785156", "0.73576194", "0.7356292", "0.73532116", "0.7352821", "0.7341274", "0.7335671", "0.7325729", "0.7312175", "0.73049104", "0.73049104", "0.7304635", "0.7301734", "0.72955513", "0.72950727", "0.729295", "0.7277624", "0.7271976", "0.72718847", "0.7261127", "0.7244899", "0.7244899", "0.72412294", "0.72412294", "0.72394997", "0.7236201", "0.7233699", "0.7230663", "0.7227692", "0.7221607", "0.7218736", "0.7216284", "0.72086424", "0.72063357", "0.7205038", "0.72042644", "0.72025573", "0.720184", "0.7201152", "0.72009856", "0.7178069" ]
0.0
-1
Depending on the game state is executed a method //
private void updateState() { switch (game.getGameState()) { case GAME: gamePlay(); break; case ONE: lostTurnByOne(); break; case READY: readyToPlay(); break; case START: startGame(); break; case TURN: startTurn(); break; case FINISH: finishGame(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gameRunning()\n{\n}", "public abstract void RunOnGameOpen();", "void gameStarted();", "void gameStarted();", "protected abstract boolean isGameFinished();", "public abstract void onSolvedGame();", "protected void updateGameState() {\n }", "public void checkGame() {\n\n\t}", "void gameFinished();", "void gameSelected(boolean isAdmin, boolean isRunning);", "public void executeLeftGame() {\r\n //COME BACK TO THIS\r\n }", "GameState requestActionGamePiece();", "void onStartGameRequested();", "boolean isGameComplete();", "public void load_game() {\n testing();\n}", "public void act() \n {\n playerMovement();\n }", "public void gameEnded() {}", "void gameResumed();", "public void attackOrQuit(){\n gameState = GameState.ATTACKORQUIT;\n notifyObservers();\n }", "public void preGame() {\n\n\t}", "private void sendGameCommand(){\n\n }", "private void action() {\r\n moveSnake();\r\n if (hasEatenPowerUp() == false) checkForCollisionWithSelf();\r\n if (hasHitBoundry() == false) redraw();\r\n }", "GameState requestActionTile();", "@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"隐式调用接口\");\r\n\t\t\t}", "abstract void showGameState();", "public void startNewGame();", "@Override\n\tpublic void onEnter(Game game) {\n\t\t\n\t}", "@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}", "public void logic(){\r\n\r\n\t}", "public void startGame() {\n status = Status.COMPLETE;\n }", "public void startOppTurn(GameState state) {\n }", "public void doUpdateStatus() throws GameException\r\n {\n \r\n }", "public void act() \n {\n \n checkKey();\n platformAbove();\n \n animationCounter++;\n checkFall();\n }", "public void displayCurrentState(State game);", "public void performActions(){\n GameInformation gi = this.engine.getGameInformation();\n\n if(gi.getTeam() == 0)\n this.engine.performPlayerAction(\n new MoveAction(src, dst)\n );\n\n }", "public abstract void gameLogic(Cell currentCell);", "void onTurn();", "public void act() \n {\n checkCollision();\n KeyMovements(); \n attackWeapon();\n //stopGame();\n \n }", "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "void updateGameState(GameState gameState);", "public abstract void execute(GameEngine pGameEngine);", "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }", "public void pressNewGame() {\n }", "protected void execute() {\n \tif(Robot.robotState != Robot.RobotState.Climbing)\n \t\tRobot.shooter.speed(speed);\n }", "private void gameOver() {\n\t\t\n\t}", "@Override\n\tpublic void gameStopped() {\n\t}", "void askStartGame();", "public abstract void onLostGame();", "public abstract boolean gameIsOver();", "public interface IGameState {\n\n IGameState Run();\n}", "public void playTurn() {\r\n\r\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tGameGrafic game = null;\r\n\t\t\t\tGameState state = new GameState();\r\n\t\t\t\t// if (opt == 2) {\r\n\t\t\t\t// game = SaveGameOptions.load();\r\n\t\t\t\t// } else {\r\n\t\t\t\tgame = new GameGrafic(state);\r\n\t\t\t\t// }\r\n\r\n\t\t\t\tif (game != null) {\r\n\t\t\t\t\tgame.start();\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "void startGame();", "void startGame();", "void startGame();", "private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }", "public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }", "void onNewGame();", "@Override\n public void run() {\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != mPlayerGamePiece) {\n\n // Updating colors for profile areas:\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mOpponentUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mPlayerUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now A.I. opponent should make a move:\n makeAIMove();\n\n }\n\n // Otherwise, player gets another turn:\n else{\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n\n }\n\n else{ // Otherwise, game has ended.\n handleGameEnding();\n }\n\n }", "public Game startGame(Game game);", "@Override\n public void beginGame() {\n }", "public void gameOver() {\n\t}", "public void act() \n {\n // Add your action code here.\n MyWorld world = (MyWorld) getWorld();\n jefe = world.comprobarJefe();\n \n \n explotar();\n \n if(jefe)\n {\n girarHaciaEnemigo();\n movimientoPegadoAJefe();\n }\n }", "boolean isGameSpedUp();", "@Override\r\n\tpublic void runBehaviors() throws GameActionException {\r\n\t\tID = player.myIntel.getArchonID();\r\n\t\tarchonList = player.myIntel.getArchonList();\r\n\t\tmyLoc = player.myRC.getLocation();\r\n\t\tmyX = myLoc.getX();\r\n\t\tmyY = myLoc.getY();\r\n\t\tmyDir = player.myRC.getDirection();\r\n\t\tswitch(state) {\r\n\t\tcase 0:\r\n\t\t\tdir = spreadDirection();\r\n\t\t\tif (dir != Direction.NONE) state = 1;\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tif (myDir.equals(dir)) state = 2;\r\n\t\t\telse {\r\n\t\t\t\tplayer.myRC.setDirection(dir);\r\n\t\t\t\tstate = 2;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tif (player.myRC.getRoundsUntilMovementIdle()==0 && player.myRC.hasActionSet()==false) {\r\n\t\t\t\tif (player.myRC.canMove(myDir)) {\r\n\t\t\t\t\tplayer.myRC.moveForward();\r\n\t\t\t\t\tmoveCounter++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tplayer.myRC.setDirection(myDir.rotateRight());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (moveCounter >= AMOUNT_TO_SPREAD) state = 3;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\t\r\n\t\t\tif (player.myRC.getRoundsUntilMovementIdle()==0 && player.myRC.hasActionSet()==false) {\r\n\t\t\t\tif (player.myRC.senseTerrainTile(myLoc.add(myDir)).getType() != TerrainType.LAND) {\r\n\t\t\t\t\tlandFinder();\r\n\t\t\t\t\tif (landSquares == 0) {\r\n\t\t\t\t\t\tplayer.myRC.setDirection(player.myUtils.randDir());\r\n\t\t\t\t\t\tstate = 2;\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tplayer.myRC.setDirection(turnDir);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//STRATEGY TRANSITION\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tplayer.myRC.setIndicatorString(2, dir.toString());\r\n\t}", "public abstract void executeFightButton();", "@Override\n public void run() {\n if(mGame.getmGameStatus() == Game.GameStatus.ONGOING){\n\n // If turn was toggled:\n if(mGame.getmCurrentlyPlaying() != opponentPiece) {\n\n // Updating colors for profile areas:\n mPlayerProfileArea.setBackgroundResource(R.drawable.user_area_green);\n mPlayerUsername.setBackgroundResource(R.color.colorGreenDarkAlpha);\n mOpponentProfileArea.setBackgroundResource(R.drawable.user_area_gray);\n mOpponentUsername.setBackgroundResource(R.color.colorGrayDarkAlpha);\n\n // Now Player should make a move:\n showGuidelines();\n mIsAllowedToPlay = true;\n\n }\n\n // Otherwise, opponent gets another turn:\n else{\n makeAIMove();\n }\n\n }\n\n else{ // Otherwise (game has ended)\n handleGameEnding();\n }\n\n }", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "private void doGameTurn()\n\t{\n\t\tif (!lost && !won)\n\t\t{\n\t\t\trefreshMapAndFrame();\n\t\t\t\n\t\t\tcheckPlayerCondition();\n\t\t\tElementAccess.openExit();\n\t\t\tSystem.out.println(turn);\n\t\t}\n\t\telse if (lost)\n\t\t{\n\t\t\tSound.lost();\n\t\t\trefreshMapAndFrame();\n\n\t\t\tif (playerHasLost())\n\t\t\t{\n\t\t\t\tstop = true;\n\t\t\t}\n\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t\tlost = false;\n\t\t}\n\t\telse if (won)\n\t\t{\n\t\t\tSound.won();\n\t\t\trefreshMapAndFrame();\n\n\t\t\twon = false;\n\t\t\tif (playerNotInLevel())\n\t\t\t{\n\t\t\t\tstop = true;\n\t\t\t}\n\n\t\t\tnextLevel();\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t}", "void newGame(boolean isAccepted);", "public void act() \n {\n movement();\n }", "public void executeTurn(Game game){\n \tif (turn == 0) {\n \t\t\n \t\tSystem.out.println(game.getCurrentFloor().getFloorDesc());\n\t \tHELPER.insPressEnter();\n\t \tSystem.out.println(\"\\033[2J\");\n\t \tturn++;\n\t \n \t} \n\n // The room that the user is in.\n Room room = game.getCurrentRoom();\n Floor floor = game.getCurrentFloor();\n \n \n// Map.setVisibleRoom(game); //make the room that the is player in visible on the map\n \n if (!help && !map && !list) {\n \tSystem.out.println(Colors.GREEN + floor.getHint() + Colors.RESET);\n \tSystem.out.println(Colors.YELLOW + \"\\n ROOM #\" + room.getDescription()+\" FLOOR: #\" + floor.getFloorNum() + \"\\n\" + Colors.RESET);\n \tAsciiArt.makeArt(game);\n }\n else if (help) { //print what commands are available to the player\n \tSystem.out.println(\"\\n You are in room \" + room.getDescription());\n AsciiArt.getKeys();\n help = false; //set help back to false after executing once\n }\n else if (list) { //print what items the player has collected\n \tInventory.list();\n \tlist = false;\n }\n else if (map) { //print out the map of the rooms that the player has already been to\n \tMap.printMap();\n \tmap = false;\n }\n if (room.getItemInRoom() != null) { //if there is an item in the room\n \tif (room.getItemInRoom().getType().compareTo(\"Enemy\") != 0) { //if the item is NOT an enemy, say what it is\n \t\tSystem.out.println(Colors.CYAN + \"\\n << The \" + room.getItemInRoom().getType() + \" in this room is \" + room.getItemInRoom().getName() + \" >>\\n\" + Colors.RESET);\n \t}\n \telse { //if there IS an enemy in the room, attack the player\n \tif (((Enemy) room.getItemInRoom()).attack()) {\n \t\troom.setItemInRoom(null);\n \t}\n \telse {\n \t\tgame.setCurrentRoom(game.getCurrentFloor().getRooms()[4]);\n \t\troom = game.getCurrentRoom();\n \t\tSystem.out.println(Colors.RESET + \"Now you are back in room \" + room.getDescription() + \"\\n\" + Colors.CYAN);\n \t\tif (room.getItemInRoom() != null) {\n \t \t\tSystem.out.println(Colors.CYAN + \"\\n << The \" + room.getItemInRoom().getType() + \" in this room is \" + room.getItemInRoom().getName() + \" >>\\n\" + Colors.RESET);\n \t \t}\n \t}\n }\n }\n else System.out.println(Colors.YELLOW + \"\\n << There is nothing in this room >>\\n\" + Colors.RESET); //if there are no items in the room\n\n System.out.print(Colors.YELLOW + \" Enter command--> \" + Colors.RESET);\n\n String command = keyboard.nextLine().toLowerCase(); // user's command\n System.out.println(\"\\033[2J\");\n \n\n Room nextRoom = null; // the room we're moving to\n HashMap<String, Room> helper = room.getDirection();\n \n //Get access to list of all commands from CommandSetter class\n CommandSetter listOfCommands = new CommandSetter();\n HashMap<String,String> com = listOfCommands.getList();\n \n \n if (com.containsKey(command)){ \n \t\n \t\n\t \tswitch (com.get(command)) { //based on the command the player has typed, do that\n\t \t\t\n\t\t case \"north\": \n\t\t \t\tnextRoom = helper.get(\"north\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"south\": \n\t\t \t\tnextRoom = helper.get(\"south\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"west\": \n\t\t \tnextRoom = helper.get(\"west\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"east\": \n\t\t \t\tnextRoom = helper.get(\"east\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"quit\": \n\t\t \t\twinIndicator = false;\n\t\t \t\tnextRoom = room;\n\t\t \t\tgame.finishGame();\n\t\t \t\tbreak;\n\t\t \n\t\t case \"help\":\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \thelp = true;\n\t\t break;\n\t\t \n\t\t case \"collect\":\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \troom.pickUpItem();\n\t\t \tbreak;\n\t\t \t\n\t\t case \"list\":\n\t\t \tlist = true;\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \tbreak;\n\t\t \t\n\t\t case \"map\":\n\t\t \tmap = true;\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \tbreak;\n\t\t \t\n\t\t case \"open\":\n\t\t \troom.openChest();\n\t\t \n\t\t default:\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t \t}\n \n }else { //if the player types a command that is not available\n \tSystem.out.println(Colors.CYAN + \"\\n << I do not know how to do this command:\" + command + \" >>\\n\" + Colors.RESET);\n \tnextRoom = new Room(\"Dont Move\");\n }\n if (nextRoom == null) { //if there is no room in the direction they are trying to move\n System.out.println(Colors.CYAN + \"\\n << Oof! I ran into a wall. I cannot move in that direction. >>\\n\" + Colors.RESET);\n \t}\n else if (nextRoom.getDescription().compareTo(\"Dont Move\") != 0) {\n game.setCurrentRoom(nextRoom);\n }\n \n System.out.print(Colors.RESET);\n \n \n }", "@Override\n // Could call like runGame in here? Then show new game state?\n public void actionPerformed(ActionEvent e) {\n\n if (e.getSource() == move1.buttonObj) {\n move1.buttonObj.setText(\"The button has been clicked\");\n }\n\n }", "public void execute(A action) {\n\t\tS testState=action.applyTo(currentState);\n\t\tif (stop ||testState.equals(null)){\n\t\t\tString text=\"Impossible to make the action: \";\n\t\t\t\n\t\t\tif(stop){\n\t\t\t\ttext+=\"The game was stopped before \";\n\t\t\t}\n\t\t\telse if(testState.equals(null)){\n\t\t\t\ttext+=\"The game should start before realize an action\";\n\t\t\t}\n\t\t\t\n\t\t\tGameError error=new GameError(text);\n\t\t\tnotifyObservers(new GameEvent<S, A>(EventType.Error, null,currentState, error, error.getMessage()));\n\t\t\tthrow error;\n\t\t\t\n\t\t\t\t\t\n\t\t}else{\n\t\t\tthis.currentState=testState;\n\t\t\tnotifyObservers(new GameEvent<S, A>(EventType.Change, action, currentState, null,\"The game has change\"));\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\n \t}", "public void tick() {\n\t\t//If Statement to make sure this section of the code only runs once using the runOnce variable\n\t\tif(runOnce==1) {\n\t\t\t//Set the game state for street fighter to menu\n\t\t\tGame.gameState=STATE.MENU;\n\t\t\t//Instantiante Game class object\n\t\t\tgame = new Game();\n\t\t\trunOnce=2;\n\t\t} \n\t\t\n\t\t//If Statement to make sure this section of the code only runs once using the runOnce variable\n\t\tif(runOnce==2) {\n\t\t\t//Call the game class tick method\n\t\t\tgame.tick();\n\t\t}\n\t\t\n\t\t\n\t\t//Checks if the user quit the game\n\t\tif(KeyInput.quit==true) {\n\t\t\t//Call the resetVariables method to reset all the important variables \n\t\t\tgame.resetVariables();\n\t\t\trunOnce=1;\n\t\t\t\n\t\t\t//Set the game state to the arcade menu state\n\t\t\tState.setState(handler.getGame().startingState);\n\t\t}\n\t}", "void gameOver();", "void gameOver();", "@Override\n public void execute() {\n String nextPlayer = CModel.getInstance().getCurrGame().advancePlayerTurn();\n if(nextPlayer.equals(CModel.getInstance().getMyUser().getUserName())) {\n CModel.getInstance().setCurrGameState(new MyTurn());\n }\n else {\n //update the player stats\n CModel.getInstance().setCurrGameState(new NotMyTurn());\n }\n CModel.getInstance().updatePlayerStatsView();\n }", "public void run() {\n if(mPlayerGamePiece == mGame.getmCurrentlyPlaying()){\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n // Otherwise, opponent begins:\n else{\n mIsAllowedToPlay = false;\n makeAIMove();\n }\n\n }", "public abstract void gameObjectStartsSleeping();", "public void takeTurn(){\r\n //Handled by GameWindow buttons\r\n }", "public boolean gameWon(){\n return false;\n }", "public void act() \r\n {\r\n if ( Greenfoot.isKeyDown( \"left\" ) )\r\n {\r\n turn( -5 );\r\n }\r\n\r\n else if ( Greenfoot.isKeyDown( \"right\" ) )\r\n {\r\n turn( 5 );\r\n }\r\n if ( Greenfoot.isKeyDown(\"up\") )\r\n {\r\n move(10);\r\n }\r\n else if ( Greenfoot.isKeyDown( \"down\") )\r\n {\r\n move(-10);\r\n }\r\n if ( IsCollidingWithGoal() )\r\n {\r\n getWorld().showText( \"You win!\", 300, 200 );\r\n Greenfoot.stop();\r\n }\r\n }", "public void playerTurnStart() {\n\r\n\t}", "void pauseGame() {\n myGamePause = true;\n }", "public void itsYourTurn();", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tupdateGameState();\n\t}", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "private void inAvanti() {\n\t\tif (Game.getInstance().isOnGround) {\n\t\t\tjump=false;\n\t\t\tGame.getInstance().getPersonaggio().setStato(Protagonista.RUN);\n\t\t\tGraficaProtagonista.getInstance().cambiaAnimazioni(Protagonista.RUN);\n\t\t}\n\t}", "@Override\n public void buildAndSetGameLoop() {\n }", "public void act()\n {\n displayBoard();\n Greenfoot.delay(10);\n \n if( checkPlayerOneWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player One!\", \"playerOne Win\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkPlayerTwoWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player Two!\", \"plauerTwo Win\",JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkBoardFilled() == true )\n {\n JOptionPane.showMessageDialog( null, \"It is a draw!\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( messageShown == false )\n {\n showTurn();\n \n messageShown = true;\n }\n \n checkMouseClick();\n }", "GameMode mode();", "public void doAction(SpaceWars game) {\r\n\t\tGameGUI gui = game.getGUI();\r\n\t\thandleTeleport(gui);\r\n\t\thandleMovements(gui);\r\n\t\thandleShield(gui);\r\n\t\thandleShooting(game, gui);\r\n\t\tmanageRound();\r\n\t}", "public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }", "@Override\n public void doAction() {\n this.game.setComputerStartsFirst(false);\n }", "public GameState getGameState();", "public void playerMissedBall(){ active = false;}", "@Override\n public void showSinglePlayerGame() {\n calledMethods.add(\"showSinglePlayerGame\");\n }" ]
[ "0.7522514", "0.74140334", "0.7139217", "0.7139217", "0.7006436", "0.69189787", "0.6815441", "0.68066674", "0.6780273", "0.6752666", "0.6744098", "0.67431146", "0.6738026", "0.6711743", "0.6699791", "0.6684456", "0.66764927", "0.6657682", "0.66112846", "0.6610016", "0.65910786", "0.6575944", "0.65653384", "0.6550679", "0.6533626", "0.6525041", "0.6523158", "0.65154976", "0.6515437", "0.65081203", "0.64969003", "0.6496224", "0.6494188", "0.6489841", "0.6480587", "0.64726335", "0.64656526", "0.6465641", "0.64582175", "0.64504415", "0.6440494", "0.64375186", "0.6426208", "0.6424922", "0.6409349", "0.64033103", "0.6402771", "0.639948", "0.6397133", "0.6391778", "0.6388985", "0.63875985", "0.6360893", "0.63567847", "0.63567847", "0.63567847", "0.6351228", "0.634203", "0.63351", "0.6328328", "0.6327122", "0.6326845", "0.63263726", "0.63137895", "0.6313721", "0.62975544", "0.6293234", "0.6293191", "0.62779254", "0.62687314", "0.6265324", "0.62596786", "0.62562656", "0.62558717", "0.62556463", "0.62499017", "0.6245342", "0.6245342", "0.6241634", "0.6238304", "0.6236963", "0.6231554", "0.6231074", "0.62103814", "0.62035483", "0.6198687", "0.6198241", "0.61919254", "0.61916", "0.6181937", "0.61783695", "0.61769557", "0.6175522", "0.6173965", "0.61737597", "0.61690915", "0.61627734", "0.6162539", "0.6160948", "0.6160669" ]
0.6557273
23
These methods only loop the gameObjects array and execute the methods of the interface //
private void finishGame() { for (GameObject gameObject : gameObjects) gameObject.finishGame(game); gameAlertDialog.show("FINISH"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runAll() {\n GameObjectManager.instance.runAll();\n }", "public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}", "public abstract void gameObjectAwakens();", "public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t{\n\t\t\t\t/*If the object implements movable\n\t\t\t\t * call the move method in each object\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof Imovable)\n\t\t\t\t\t((MovableObject)gameObj[i].get(j)).move();\n\t\t\t\t/*call CheckBlink() method in SpaceStation\n\t\t\t\t * if the time % blinkRate == 0\n\t\t\t\t * the visibility with be switched\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof SpaceStation)\n\t\t\t\t\t((SpaceStation)gameObj[i].get(j)).checkBlink(gameTime);\n\t\t\t\t/*check if missiles are out of fuel\n\t\t\t\tand remove if fuel = 0\n\t\t\t\t*/\n\t\t\t\tif(gameObj[i].get(j) instanceof Missile)\n\t\t\t\t\tif(((Missile)gameObj[i].get(j)).getFuel() <= 0)\n\t\t\t\t\t\tgameObj[i].remove(j);\n\t\t\t}\n\t\t}\t\t\n\t\tSystem.out.println(\"World updated\");\n\t}", "@Override\r\n public void loop() {\r\n //CodeHere\r\n }", "public void loopExecute(){\n\n }", "public void objectIntialization(ArrayList<GameObject> gameobject)\r\n {\r\n\r\n }", "@Override\n public void loop()\n {\n }", "@Override public void loop () {\n }", "@Override public void loop() {\n }", "@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"隐式调用接口\");\r\n\t\t\t}", "public void updateObjects()\r\n {\r\n //update states\r\n for (Ball ball : balls) {\r\n \tif(ball!=null)\r\n \t{\r\n\t \tif(ball.GetVisible()) ball.MoveDown();\r\n\r\n \t}\r\n \telse ball=null;\r\n }\r\n \r\n }", "@Override\n public void loop() {\n\n }", "@Override\n public void loop() {\n\n }", "@Override\n public void update() {\n for (Integer i : arrAttack) {\n //System.out.println(scene.entityManager.getEntityByID(i).getName());\n\n //if the weapon has not a -1\n if (scene.entityManager.getEntityComponentInstance(i, Tool.class).currentActive != - 1) {\n\n ArrayList<AttackCollider> arrColliders = scene.entityManager.getEntityComponentInstance(i, attackComponent.getClass()).arrColliders;\n\n //Check if it collides with a collidable entity\n for (Integer j : arrCollidable) {\n //if they are not the same and i is not a weapon of j, and if j is alive\n if (!Objects.equals(i, j) && !isWeaponOf(i, j) && scene.entityManager.getEntityComponentInstance(j, Playable.class).isAlive) {\n\n //for each collider that collides with the entity\n for (AttackCollider k : checkAttack(i, j)) {\n //Do something to the collidable entity\n executeAttack(i, j);\n }\n }\n }\n }\n }\n initializeEntities();\n }", "public void loop(){\n \n \n }", "public void loop(){\n\t}", "public void run()\r\n {\r\n for (Source oSource : this)\r\n oSource.run();\r\n }", "public void RunGame(){\r\n \r\n for (int i=0;i<numberoplayers;i++){ \r\n if (Objects.equals(Players.get(i).numofdestroyedships,numberofships))\r\n {\r\n Leave(Players.get(i));\r\n }\r\n if (Players.size()==1){\r\n Stop(Players.get(0));\r\n return ;\r\n }\r\n Square attackmove=Players.get(i).AttackOpponent();\r\n if (attackmove==null){\r\n if (i==1)\r\n i=-1;\r\n continue;\r\n }\r\n //know the player name and the attack point and add it to the list\r\n moves.add(new ToturialClass(Players.get(i).name,attackmove.x,attackmove.y,new Date()));\r\n //to know the targeted player\r\n int temp=i+1;\r\n if (temp==2)\r\n temp=0;\r\n AttackResult result=Players.get(temp).AcceptAttack(attackmove); \r\n Players.get(i).AcceptAttackResult(result);\r\n playerboard.repaintafterupdate();\r\n \r\n if (i==1)\r\n i=-1;\r\n }\r\n }", "public void run() {\n for (final Object obj : objects) {\n final Object object = obj;\n if (object instanceof TraceData) {\n boolean rendererExists = false;\n final IRenderer newRenderer = new TraceDataRenderer();\n for (final IRenderer renderer : getRenderers()) {\n if (renderer.getClass().equals(newRenderer.getClass())) {\n if (renderer.getRenderedObjects()[0].equals(object)) {\n rendererExists = true;\n break;\n }\n }\n }\n if (!rendererExists) {\n if (Entity.class.isAssignableFrom(object.getClass())) {\n Entity entity = (Entity) object;\n try {\n entity.load();\n } catch (final Exception ex) {\n ServiceProvider.getLoggingService().getLogger(getClass()).error(ex.getMessage(), ex);\n }\n }\n setRendererData(newRenderer, shell, new Object[] { object }, autoUpdate);\n //newRenderer.setData(shell, AbstractDataViewer.this, new Object[] { object });\n }\n } else if (object instanceof PicksData) {\n boolean rendererExists = false;\n final IRenderer newRenderer = new PicksRenderer();\n for (final IRenderer renderer : getRenderers()) {\n if (renderer.getClass().equals(newRenderer.getClass())) {\n if (renderer.getRenderedObjects()[0].equals(object)) {\n rendererExists = true;\n break;\n }\n }\n }\n if (!rendererExists) {\n if (Entity.class.isAssignableFrom(object.getClass())) {\n Entity entity = (Entity) object;\n try {\n entity.load();\n } catch (final Exception ex) {\n ServiceProvider.getLoggingService().getLogger(getClass()).error(ex.getMessage(), ex);\n }\n }\n setRendererData(newRenderer, shell, new Object[] { object }, autoUpdate);\n //newRenderer.setData(shell, AbstractDataViewer.this, new Object[] { object });\n }\n }\n\n // Update the progress monitor.\n monitor.worked(1);\n if (monitor.isCanceled()) {\n break;\n }\n }\n }", "public void run() {\n\t\tfor(int Index=0;Index<pac.getPath().size();Index++) { //run on the path arraylist of every pacman\n\t\t\tfullGamePath(pac, pac.getPath().get(Index).getFruit(),Index); //call the function\n\t\t\tpac.getPath().get(Index).setTime();\n\t\t}\n\t\t\n\t}", "public void tick() {\n \t\t// Iterate over objects in the world.\n \t\tIterator<PhysicalObject> itr = myObjects.iterator();\n \t\n \t\tList<PhysicalObject> children = new LinkedList<PhysicalObject>();\n \t\t\n \t\twhile (itr.hasNext()) {\n \t\t\tCollidableObject obj = itr.next();\n \n \t\t\t// Apply forces\n \t\t\tfor (Force force : myForces) {\n \t\t\t\tforce.applyForceTo((PhysicalObject) obj);\n \t\t\t}\n \t\t\t\n \t\t\t// Update the object's state.\n \t\t\tobj.updateState(1f / UPDATE_RATE);\n \t\t\t\n \t\t\t// Spawn new objects?\n \t\t\tList<PhysicalObject> newChildren =\n \t\t\t\t((PhysicalObject) obj).spawnChildren(1f / UPDATE_RATE);\n \t\t\t\n \t\t\tif (newChildren != null) {\n \t\t\t\tchildren.addAll(newChildren);\n \t\t\t}\n \t\t}\n \t\t\n \t\t/*\n \t\t In the \"tick\" method of your application, rather than call the old form of \n \t\t resolveCollisions to completely handle a collision, you can now:\n \t\t \n \t\t \t1.Directly call CollisionDetector.calculateCollisions to receive an\n \t\t\t ArrayList<CollisionInfo> object.\n \t\t\t2.If the list is empty, then there is no collision between the pair\n \t\t\t of objects and nothing further need be done.\n \t\t\t3.If the list is not empty, then a collision has occurred and you can\n \t\t\t check whether the objects involved necessitate a transmission or a standard\n \t\t\t collision resolution (a.k.a. bounce).\n \t\t\t4.If a standard collision resolution is called for, use the new form of\n \t\t\t resolveCollisions to pass in the ArrayList<CollisionInfo> object.\n \t\t\t \n \t\t The goal of this change is to prevent the computationally expensive \n \t\t collision detection algorithm from being executed twice when objects collide.\n \t\t */\n \n \t\tfor (int i = 0; i < myObjects.size() - 1; i++) {\n \t\t\tfor (int j = i + 1; j < myObjects.size(); j++) {\n \t\t\t\tArrayList<CollisionInfo> collisions = \n \t\t\t\t\tCollisionDetector.calculateCollisions(myObjects.get(i), myObjects.get(j));\n \t\t\t\t\n \t\t\t\tif (collisions.size() > 0) {\n \t\t\t\t\tHalfSpace hs = null;\n \t\t\t\t\tPhysicalObject o = null;\n \t\t\t\t\t\n \t\t\t\t\tif (myObjects.get(i) instanceof HalfSpace) {\n \t\t\t\t\t\t// If i is a halfspace, j must be an object\n \t\t\t\t\t\ths = (HalfSpace) myObjects.get(i);\n \t\t\t\t\t\to = myObjects.get(j);\n \t\t\t\t\t\t\n \t\t\t\t\t\t\n \t\t\t\t\t} else if (myObjects.get(j) instanceof HalfSpace) {\n \t\t\t\t\t\t// If j is a halfspace, i must be an object\n \t\t\t\t\t\ths = (HalfSpace) myObjects.get(j);\n \t\t\t\t\t\to = myObjects.get(i);\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Was there a halfspace involved? If so, was it a side?\n\t\t\t\t\tif (hs != null && hs.normal.y != 1 && hs.normal.y != -1 && myPeer.getPeerSize() > 0) {\n \t\t\t\t\t\t// Side collision, is there a peer?\n \t\t\t\t\t\tPeerInformation peer = myPeer.getPeerInDirection(o.getVelocity().x, -o.getVelocity().z);\n \t\t\t\t\t\t\n \t\t\t\t\t\tif (peer != null) {\n \t\t\t\t\t\t\to.switchX();\n \t\t\t\t\t\t\to.switchZ();\n \t\t\t\t\t\t\tmyPeer.sendPayloadToPeer(peer, o);\n \t\t\t\t\t\t\to.detach();\n \t\t\t\t\t\t\tmyObjects.remove(o);\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Moving on\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Collision as usual...\n \t\t\t\t\tmyObjects.get(i).resolveCollisions(myObjects.get(j), collisions);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// Add new children to the world.\n \t\tfor (PhysicalObject obj : children) {\n \t\t\tmyScene.addChild(obj.getGroup());\n \t\t}\n \t\t\n \t\tmyObjects.addAll(children);\n \t}", "public void startAnimation(){\n if (MadBalls.isHost()) {\n for (GameObject obj: gameObjects.values()){\n if (obj instanceof Obstacle){\n for (Player player: MadBalls.getMultiplayerHandler().getPlayers()){\n if (player instanceof BotPlayer){\n player.getRelevantObjIDs().add(obj.getID());\n }\n }\n }\n }\n }\n MadBalls.getGameMode().organize();\n animation.start();\n// Navigation.getInstance().showInterupt(\"\", \"Game started\", \"Let's rock and roll!\", false);\n }", "public void loop(){\n\t\t\n\t}", "@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}", "public abstract void loop();", "public void run(){\n\t\twhile(game_running){\n\t\t\tif(singleplayer){\n\t\t\t\tcomputeDelta(); //Zeit für vorausgehenden Schleifendurchlauf wird errechnet\n\t\t\t\t//Erst Methoden abarbeiten, wenn Spiel gestartet ist\n\t\t\t\tif(isStarted()){\n\t\t\t\t\t\n\t\t\t\t\tcheckKeys(); //Tastaturabfrage\n\t\t\t\t\tdoLogic(); //Ausführung der Logik\n\t\t\t\t\tmoveObjects(); //Bewegen von Objekten\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\trepaint();\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tif(System.nanoTime()-last < 16666666){\n\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}catch (InterruptedException e){}\n\t\t\t} else{\n\t\t\t\tif(serverMode){\n\t\t\t\t\t //Zeit für vorausgehenden Schleifendurchlauf wird errechnet\n\t\t\t\t\t//Erst Methoden abarbeiten, wenn Spiel gestartet ist\n\t\t\t\t\tcomputeDelta();\n\t\t\t\t\tif(isStarted()){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckKeys(); //Tastaturabfrage\n\t\t\t\t\t\tdoLogic(); //Ausführung der Logik\n\t\t\t\t\t\tmoveObjects(); //Bewegen von Objekten\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\trepaint();\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(System.nanoTime() - last);\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(!isStarted()){\n\t\t\t\t\t\t\tThread.sleep(20);\n\t\t\t\t\t\t}else if(System.nanoTime()-last < 16666666){\n\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tif(System.nanoTime()-last < 16666666){\n//\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate\n//\t\t\t\t\t\t}\n\t\t\t\t\t}catch (InterruptedException e){}\n\t\t\t\t}else if(clientMode){\n\t\t\t\t\tcomputeDelta();\n\t\t\t\t\tif(isStarted()){\n\t\t\t\t\t\tcheckKeys();\n\t\t\t\t\t\tdoLogic();\n\t\t\t\t\t\tmoveObjects();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\trepaint();\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(System.nanoTime() - last);\n\t\t\t\t\ttry{\n\t\t\t\t\t\t//Thread.sleep(20);\n\t\t\t\t\t\tif(!isStarted()){\n\t\t\t\t\t\t\tThread.sleep(20);\n\t\t\t\t\t\t}else if(System.nanoTime()-last < 16666666){\n\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tif(System.nanoTime()-last < 16666666){\n//\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate\n//\t\t\t\t\t\t}\n\t\t\t\t\t}catch (InterruptedException e){}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\t\n\t}", "public void tick() {\n\n\t\t// Loops through the array and if the id is player's id, it will call the\n\t\t// tick method of camera.\n\t\tif (state == 1) {\n\n\t\t\tfor (int i = 0; i < handler.object.size(); i++) {\n\t\t\t\tif (handler.object.get(i).getId() == ID.Player) {\n\t\t\t\t\tcamera.tick(handler.object.get(i));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thandler.tick();\n\n\t\t}\n\t}", "public void map() {\n\t\tfor(GameObject object : gameObject)\n\t\t\tSystem.out.println(object);\n\t}", "@Override\r\n public void runSimulation(){\r\n initialize();\r\n initialRun();\r\n initialize(\"square\");\r\n initialRun();\r\n initialize(\"circle\");\r\n initialRun();\r\n initialize(\"crack\");\r\n initialRun(); \r\n initialize(\"cross\");\r\n initialRun();\r\n }", "public void play() {\n List<String> playersData = getGameInput().getPlayersData();\n for (int id = 0; id < playersData.size() / Constants.DATAENTITY; id++) {\n getHeroes().add(getHeroFactory().getHero(\n playersData.get(id * Constants.DATAENTITY),\n Integer.parseInt(\n playersData.get(\n id * Constants.DATAENTITY\n + Constants.INDEXPOSX)),\n Integer.parseInt(\n playersData.get(\n id * Constants.DATAENTITY\n + Constants.INDEXPOSY)),\n id));\n }\n // We create the angels and add them to angels list.\n List<Integer> numOfAngels = getGameInput().getNumOfAngels();\n List<String> angelsData = getGameInput().getAngelsData();\n for (int i = 0; i < angelsData.size() / Constants.DATAENTITY; i++) {\n getAngels().add(getAngelsFactory().getAngel(\n angelsData.get(i * Constants.DATAENTITY),\n Integer.parseInt(\n angelsData.get(\n i * Constants.DATAENTITY\n + Constants.INDEXPOSX)),\n Integer.parseInt(\n angelsData.get(\n i * Constants.DATAENTITY\n + Constants.INDEXPOSY))));\n }\n\n getUtl().prepareAdmins();\n\n int angelCounter = 0; // To iterate through all angels only once.\n // We start the actual game.\n for (int i = 0; i < getMovements().size(); i++) { // For every round.\n\n getUtl().printRound(i + 1); // We start printing from round 1...\n\n for (int j = 0; j < getHeroes().size(); j++) {\n /* Apply overtime ability if the case and then hero chooses\n * strategy and moves if he is not rooted. Lastly we decrease\n * the amount of rounds that a hero must be affected by. */\n if (!getHeroes().get(j).isDead()) {\n if (getHeroes().get(j).isAffectedByAoT()) {\n getUtl().applyAoT(getHeroes().get(j));\n }\n if (!getHeroes().get(j).isRooted()) {\n getHeroes().get(j).chooseStrategy();\n getHeroes().get(j).move(getMovements().get(i).get(j));\n }\n if (getHeroes().get(j).isAffectedByAoT()) {\n getHeroes().get(j).setAffectedByAoTRounds(\n getHeroes().get(j).getAffectedByAoTRounds()\n - 1);\n }\n }\n }\n\n // Check if there are any players on the same terrain.\n for (int j = 0; j < getHeroes().size(); j++) {\n for (int k = 0; k < getHeroes().size(); k++) {\n if (k == j) {\n continue; // So a hero doesn't fight himself.\n }\n if ((getHeroes().get(j).getPosX()\n == getHeroes().get(k).getPosX())\n && (getHeroes().get(j).getPosY()\n == getHeroes().get(k).getPosY())) {\n // If they are both alive, fight.\n if (!getHeroes().get(j).isDead()\n && !getHeroes().get(k).isDead()) {\n getUtl().fight(getHeroes().get(k),\n getHeroes().get(j), getMap());\n }\n }\n }\n }\n\n // Selecting the angels that appear on round i\n for (int j = 0; j < numOfAngels.get(i); j++) {\n getUtl().spawnAngel(getAngels().get(angelCounter));\n for (int k = 0; k < getHeroes().size(); k++) {\n /* Checking if the selected angel and player k are on the\n * same terrain. */\n if (getAngels().get(angelCounter).getPosX()\n == getHeroes().get(k).getPosX()\n && (getAngels().get(angelCounter).getPosY()\n == getHeroes().get(k).getPosY())) {\n getUtl().affectHeroByAngel(\n getAngels().get(angelCounter),\n getHeroes().get(k));\n }\n }\n angelCounter++;\n }\n\n // When round is complete, everyone can fight again\n for (AbstractHero hero : getHeroes()) {\n hero.setFought(false);\n }\n getUtl().getOutput().add(\"\\n\");\n }\n printResults();\n }", "@Override\n\tpublic void execute() {\n\t\tfor(int i=0;i<coms.length;i++)\n\t\t\tcoms[i].execute();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\twhile(!Thread.interrupted()){\n\t\t\t\t\t//thread safe\n\t\t\t\t\tList<Body> bodys = new ArrayList<Body>(bodyList);\n\t\t\t\t\tfor(Body body:bodys){\n\t\t\t\t\t\tif(body.isMovable()){\n\t\t\t\t\t\t\taddWorldFTo(body);\n\t\t\t\t\t\t\tbody.update();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdetection.test(getBorderShape(),bodys,new ArrayList<Area>(areaList),contact);\n\t\t\t\t\t//调用监视器 并用contact作为联系人\n\t\t\t\t\t\n\t\t\t\t\tList<Timer> timers = new ArrayList<Timer>(timerList);\n\t\t\t\t\tfor(Timer timer:timers){\n\t\t\t\t\t\tif(timer.sendMessage()){\n\t\t\t\t\t\t\t//send time over event\n\t\t\t\t\t\t\tPhysicsTimeoverEvent event = new PhysicsTimeoverEvent(timer);\n\t\t\t\t\t\t\tcontact.sendPhysicsEvent(event);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimer.run(roundDelayTime_MS);\n\t\t\t\t\t}\n\t\t\t\t\t//更新维护定时器\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(roundDelayTime_MS);\n\t\t\t\t}\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t//e.printStackTrace();\n\t\t\t\t//it's not a exception that exit when thread sleep\n\t\t\t}\n\t\t}", "@Override\n\tpublic void run() {\n\t\tLog.d(\"Engine\", \"Engine.run start\");\n\n\t\tListIterator<Sprite> iter = null, iterA = null, iterB = null;\n\n\t\tTimer frameTimer = new Timer();\n\t\tint frameCount = 0;\n\t\tint frameRate = 0;\n\t\tlong startTime = 0;\n\t\tlong timeDiff = 0;\n\n\t\twhile (p_running) {\n\t\t\t// Process frame only if not paused\n\t\t\tif (p_paused)\n\t\t\t\tcontinue;\n\n\t\t\t// Calculate frame rate\n\t\t\tframeCount++;\n\t\t\tstartTime = frameTimer.getElapsed();\n\t\t\tif (frameTimer.stopwatch(1000)) {\n\t\t\t\tframeRate = frameCount;\n\t\t\t\tframeCount = 0;\n\n\t\t\t\t// reset touch input count\n\t\t\t\tp_numPoints = 0;\n\t\t\t}\n\n\t\t\t// Call abstract update method in sub-class\n\t\t\tupdate();\n\n\t\t\t/**\n\t\t\t * Test for collisions in the sprite group. Note that this takes\n\t\t\t * place outside of rendering.\n\t\t\t */\n\t\t\titerA = p_group.listIterator();\n\t\t\twhile (iterA.hasNext()) {\n\t\t\t\tSprite sprA = (Sprite) iterA.next();\n\t\t\t\tif (!sprA.getAlive())\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!sprA.getCollidable())\n\t\t\t\t\tcontinue;\n\n\t\t\t\t/*\n\t\t\t\t * Improvement to prevent double collision testing\n\t\t\t\t */\n\t\t\t\tif (sprA.getCollided())\n\t\t\t\t\tcontinue; // skip to next iterator\n\n\t\t\t\t// iterate the list again\n\t\t\t\titerB = p_group.listIterator();\n\t\t\t\twhile (iterB.hasNext()) {\n\t\t\t\t\tSprite sprB = (Sprite) iterB.next();\n\t\t\t\t\tif (!sprB.getAlive())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (!sprB.getCollidable())\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Improvement to prevent double collision testing\n\t\t\t\t\t */\n\t\t\t\t\tif (sprB.getCollided())\n\t\t\t\t\t\tcontinue; // skip to next iterator\n\n\t\t\t\t\t// do not collide with itself\n\t\t\t\t\tif (sprA == sprB)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore sprites with the same ID? This is an important\n\t\t\t\t\t * consideration. Decide if your game requires it or not.\n\t\t\t\t\t */\n\t\t\t\t\tif (sprA.getIdentifier() == sprB.getIdentifier())\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (collisionCheck(sprA, sprB)) {\n\t\t\t\t\t\tsprA.setCollided(true);\n\t\t\t\t\t\tsprA.setOffender(sprB);\n\t\t\t\t\t\tsprB.setCollided(true);\n\t\t\t\t\t\tsprB.setOffender(sprA);\n\t\t\t\t\t\tbreak; // exit while\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// begin drawing\n\t\t\tif (beginDrawing()) {\n\n\t\t\t\t// Call abstract draw method in sub-class\n\t\t\t\tdraw();\n\n\t\t\t\t/**\n\t\t\t\t * Draw the group entities with transforms\n\t\t\t\t */\n\t\t\t\titer = p_group.listIterator();\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tSprite spr = (Sprite) iter.next();\n\t\t\t\t\tif (spr.getAlive()) {\n\t\t\t\t\t\tspr.animate();\n\t\t\t\t\t\tspr.draw();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Print some engine debug info.\n\t\t\t\t */\n\t\t\t\tint x = p_canvas.getWidth() - 150;\n\t\t\t\tp_canvas.drawText(\"ENGINE\", x, 20, p_paintFont);\n\t\t\t\tp_canvas.drawText(toString(frameRate) + \" FPS\", x, 40,\n\t\t\t\t\t\tp_paintFont);\n\t\t\t\tp_canvas.drawText(\"Pauses: \" + toString(p_pauseCount), x, 60,\n\t\t\t\t\t\tp_paintFont);\n\n\t\t\t\t// done drawing\n\t\t\t\tendDrawing();\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Do some cleanup: collision notification, removing 'dead' sprites\n\t\t\t * from the list.\n\t\t\t */\n\t\t\titer = p_group.listIterator();\n\t\t\tSprite spr = null;\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tspr = (Sprite) iter.next();\n\n\t\t\t\t// remove from list if flagged\n\t\t\t\tif (!spr.getAlive()) {\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// is collision enabled for this sprite?\n\t\t\t\tif (spr.getCollidable()) {\n\n\t\t\t\t\t// has this sprite collided with anything?\n\t\t\t\t\tif (spr.getCollided()) {\n\n\t\t\t\t\t\t// is the target a valid object?\n\t\t\t\t\t\tif (spr.getOffender() != null) {\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * External func call: notify game of collision\n\t\t\t\t\t\t\t * (with validated offender)\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcollision(spr);\n\n\t\t\t\t\t\t\t// reset offender\n\t\t\t\t\t\t\tspr.setOffender(null);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset collided state\n\t\t\t\t\t\tspr.setCollided(false);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Calculate frame update time and sleep if necessary\n\t\t\ttimeDiff = frameTimer.getElapsed() - startTime;\n\t\t\tlong updatePeriod = p_sleepTime - timeDiff;\n\t\t\tif (updatePeriod > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(updatePeriod);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t}// while\n\t\tLog.d(\"Engine\", \"Engine.run end\");\n\t\tSystem.exit(RESULT_OK);\n\t}", "public void tick()\n\t{\n\t\tgameTime++;\n\t\tif(gameTime == 1)\n\t\t\taddPlayerShip();\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif (current instanceof Imovable)\n\t\t\t\t((MovableObject)current).move(fps);\n\t\t\tif (current instanceof SpaceStation)\n\t\t\t\t((SpaceStation)current).checkBlink(gameTime);\n\t\t\tif(current instanceof Missile)\n\t\t\t\tif(((Missile) current).getFuel() <= 0)\n\t\t\t\t\titer.remove();\n\t\t}\n\t\t\n\t\t//Identify collision\n\t\titer = gameObj.getIterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tICollider curObj = (ICollider)iter.getNext();\n\t\t\t\n\t\t\tIIterator iter2 = gameObj.getIterator();\n\t\t\twhile(iter2.hasNext())\n\t\t\t{\n\t\t\t\tICollider otherObj = (ICollider)iter2.getNext();\n\t\t\t\tif(otherObj != curObj)\n\t\t\t\t\tif(curObj.collidesWith(otherObj))\n\t\t\t\t\t\tif (curObj instanceof PlayerShip)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcollisionVectorPS.add(curObj);\n\t\t\t\t\t\t\tcollisionVectorPS.add(otherObj);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(curObj instanceof NonPlayerShip)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcollisionVectorNPS.add(curObj);\n\t\t\t\t\t\t\tcollisionVectorNPS.add(otherObj);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(curObj instanceof Asteroid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(collisionVectorAsteroid.isEmpty())\n\t\t\t\t\t\t\t\tcollisionVectorAsteroid.add(curObj);\n\t\t\t\t\t\t\tcollisionVectorAsteroid.add(otherObj);\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Handle Collisions for playership\n\t\tif(!collisionVectorPS.isEmpty())\n\t\t{\n\t\t\t//return iterator for collion vector\n\t\t\tIterator<ICollider> psIterator = collisionVectorPS.iterator();\n\t\t\tICollider ship = collisionVectorPS.elementAt(0);\n\t\t\twhile(psIterator.hasNext())\n\t\t\t{\n\t\t\t\tICollider curObj = psIterator.next();\n\t\t\t\tif(curObj != ship)\n\t\t\t\t\tship.handleCollision(curObj);\n\t\t\t\t\n\t\t\t\t//if an asteroid is detected\n\t\t\t\tif(curObj instanceof Asteroid)\n\t\t\t\t\tcrashAsteroidPS(psIterator,curObj,ship);\n\t\t\t\t\n\t\t\t\t//if an enemy missile is detected\n\t\t\t\telse if(curObj instanceof Missile && ((Missile)curObj).isEnemy())\n\t\t\t\t\tPSShot(psIterator,curObj,ship);\n\t\t\t\t\n\t\t\t\t//if a non player ship is detected\n\t\t\t\telse if(curObj instanceof NonPlayerShip)\n\t\t\t\t\tthis.crashNPS(psIterator,curObj,ship);\n\t\t\t\t\n\t\t\t\telse if(curObj instanceof SpaceStation)\n\t\t\t\t\tthis.refillMissiles(psIterator,curObj,ship);\n\t\t\t}\n\t\t\t//clear the collision vector and spawn a new ship\n\t\t\tcollisionVectorPS.clear();\n\t\t\t\n\t\t}\n\t\tif(!collisionVectorNPS.isEmpty())\n\t\t{\n\t\t\t//return iterator for collion vector\n\t\t\tIterator<ICollider> npsIterator = collisionVectorNPS.iterator();\n\t\t\tICollider nps = collisionVectorNPS.elementAt(0);\n\t\t\twhile(npsIterator.hasNext())\n\t\t\t{\n\t\t\t\tICollider curObj = npsIterator.next();\n\t\t\t\tif(curObj != nps)\n\t\t\t\t\tnps.handleCollision(curObj);\n\t\t\t\tif(curObj instanceof Missile && !((Missile)curObj).isEnemy())\n\t\t\t\t\tthis.NPSShot(npsIterator,curObj,nps);\n\t\t\t\telse if(curObj instanceof Asteroid)\n\t\t\t\t\tthis.crashAsteroidNPS(npsIterator,curObj,nps);\n\t\t\t\telse if(curObj instanceof SpaceStation)\n\t\t\t\t\tthis.refillMissiles(npsIterator,curObj,nps);\n\t\t\t}\n\t\t\tcollisionVectorNPS.clear();\n\t\t}\n\t\tif(!collisionVectorAsteroid.isEmpty())\n\t\t{\n\t\t\tIterator<ICollider> astIterator = collisionVectorAsteroid.iterator();\n\t\t\tICollider ast = collisionVectorAsteroid.elementAt(0);\n\t\t\twhile(astIterator.hasNext())\n\t\t\t{\n\t\t\t\tICollider curObj = astIterator.next();\n\t\t\t\tif(curObj != ast)\n\t\t\t\t\tast.handleCollision(curObj);\n\t\t\t\tif(curObj instanceof Missile && !((Missile)curObj).isEnemy())\n\t\t\t\t\tthis.asteroidShot(astIterator,curObj,ast);\n\t\t\t\telse if(curObj instanceof Asteroid && curObj != ast)\n\t\t\t\t\tthis.asteroidCol(astIterator,curObj,ast);\n\t\t\t}\n\t\t\tcollisionVectorAsteroid.clear();\n\t\t}\n\t\t//delete collided objects\n\t\tIterator<ICollider> trashIterator = trash.iterator();\n\t\twhile (trashIterator.hasNext())\n\t\t{\n\t\t\tICollider curObj = trashIterator.next();\n\t\t\tremove(curObj);\n\t\t}\n\t\tnotifyObservers();\n\t}", "public interface GameObject {\n public void draw(Canvas canvas);\n public void update();\n}", "public abstract void execute(SimInfo object);", "public abstract void collide(InteractiveObject obj);", "public void run() { //these are the methods that are present in the parent interface class, they need to have a body in the child interface class\n\t\tSystem.out.println(\"Lizard is running\");\n\t}", "void eachVirtualShapeDo (FunctionalParameter doThis){\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext())\r\n doThis.execute(iter.next());\r\n\r\n // more here on\r\n }\r\n\r\n\r\n }", "public void tick() {\n\n\t\tIterator<GameObject> sceneIterator = scene.values().iterator();\n\n\t\twhile (sceneIterator.hasNext()) {\n\t\t\tGameObject gameObject = sceneIterator.next();\n\t\t\tif (gameObject instanceof Movable)\n\t\t\t\t((Movable) gameObject).step();\n\t\t\t// Removing the bullets that are out of the scene\n\t\t\tif (gameObject instanceof Bullet && ((Bullet) gameObject).isOutOfBounds(20))\n\t\t\t\tscene.remove(gameObject.GAME_OBJECT_ID);\n\t\t}\n\t\t// Player\n\t\tfor (Player player : playerMap.values()) {\n\t\t\t// The events are generated within the player class on step and collision\n\t\t\tplayer.step();\n\t\t\tplayer.isHit(scene.values());\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tgames arr[];\n\t\tint i;\n\t\tarr = new games[3];\n\t\tarr[0]=new football();\n\t\tarr[1]=new cricket();\n\t\tarr[2]= new tennis();\n\t\t\n\t\tfor (i=0;i<arr.length;i++) {\n\t\t\tif (arr[i] instanceof cricket) {\n\t\t\t\tarr[i].play();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private boolean processMovingObject()\n {\n MovingObject[] ap_objects = p_gsb.ap_MovingObjects;\n for (int li = 0;li < ap_objects.length;li++)\n {\n MovingObject p_obj = ap_objects[li];\n\n if (!p_obj.lg_Active) continue;\n\n if (p_obj.process())\n {\n if (p_obj.i_State == MovingObject.STATE_EXPLODE)\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n\n if (p_obj.i_State == MovingObject.STATE_EXPLODE) continue;\n\n switch (p_obj.i_Type)\n {\n case MovingObject.TYPE_ARROW:\n {\n p_obj.i_scry -= ARROWSPEED;\n if (p_obj.i_scry <= (0 - p_obj.i_height))\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n ;\n break;\n case MovingObject.TYPE_ASSAULTER:\n {\n if (getRandomInt(1000) <= p_gsb.i_shotfreq)\n {\n MovingObject p_arrow = p_gsb.getInactiveMovingObject();\n if (p_arrow != null)\n {\n p_arrow.activate(MovingObject.TYPE_ARROW,MovingObject.STATE_UP);\n p_arrow.i_scrx = p_obj.i_scrx;\n p_arrow.i_scry = p_obj.i_scry - p_arrow.i_height;\n }\n }\n\n if (p_obj.i_State != MovingObject.STATE_DOWN) generateLadderAndDamForAssaulter(p_obj);\n\n switch (p_obj.i_State)\n {\n case MovingObject.STATE_LEFT:\n {\n if (p_obj.i_scrx - ASSAULTER_HORZSPEED < 0)\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n else\n {\n p_obj.i_scrx -= ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_RIGHT:\n {\n if (p_obj.i_scrx + p_obj.i_width + ASSAULTER_HORZSPEED >= i_screenWidth)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.i_scrx += ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_UP:\n {\n p_obj.i_scry -= ASSAULTER_VERTSPEED;\n if ((p_obj.i_scry + (p_obj.i_height >> 1)) / VIRTUALCELL_HEIGHT == 0/*p_gsb.i_playeralt*/) return true;\n }\n ;\n break;\n case MovingObject.STATE_DOWN:\n {\n p_obj.i_scry += ASSAULTER_VERTSPEED;\n int i_cellx = p_obj.i_scrx / VIRTUALCELL_WIDTH;\n int i_celly = (p_obj.i_scry + p_obj.i_height - 1) / VIRTUALCELL_HEIGHT;\n boolean lg_stop = false;\n if (i_celly < FIELD_HEIGHT-p_gsb.i_playeralt)\n {\n if (Assault_GSB.getElement(i_cellx,i_celly) != Assault_GSB.CELL_NONE) lg_stop = true;\n }\n else\n {\n lg_stop = true;\n i_celly--;\n }\n\n if (lg_stop)\n {\n p_obj.i_scry = i_celly * VIRTUALCELL_HEIGHT;\n if (getRandomInt(40) >= 20)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n }\n }\n ;\n break;\n }\n }\n ;\n break;\n case MovingObject.TYPE_STONE:\n {\n if (p_obj.i_State == MovingObject.STATE_DOWN)\n {\n p_obj.i_scry += STONESPEED;\n if ((p_obj.i_scry + p_obj.i_height) >= FIELD_HEIGHT * VIRTUALCELL_HEIGHT)\n {\n p_obj.i_scry = (FIELD_HEIGHT * VIRTUALCELL_HEIGHT) - p_obj.i_height - 1;\n p_obj.setState(MovingObject.STATE_EXPLODE,false);\n }\n }\n }\n ;\n break;\n }\n }\n return false;\n }", "public void run() {\n setSpeed(MAX_SPEED, MAX_SPEED);\n while (step(TIME_STEP) != 16) {\n String name = \"\";\n if (behaviourList.get(2).takeControl()){\n name = \"inFrontOfWall\";\n behaviourList.get(2).action();\n } else if (behaviourList.get(1).takeControl()){\n name = \"isBallanceBall\";\n behaviourList.get(1).action();\n } else if (behaviourList.get(0).takeControl()){\n name = \"searchBall\";\n behaviourList.get(0).action();\n }\n printDistanceInfo(name);\n }\n }", "public void start() {\n while (true) {\n for (GameStep gameStep : gameStepList) {\n gameStep.performStep();\n }\n }\n }", "public abstract void execute(GameEngine pGameEngine);", "public void process() {\n\t\ttime--;\n\t\tif (time <= 0) {\n\t\t\tend(false);\n\t\t\treturn;\n\t\t}\n\t\tfor (Player p : getPlayers()) {\n\t\t\t// Check if p is not null and make sure they are active\n\t\t\tif (Objects.nonNull(p) && p.isActive()) {\n\t\t\t\t// Here we will send interfaces, update the score, notify\n\t\t\t\t// players of\n\t\t\t\t// what is going on in the game etc.\n\t\t\t\tp.send(new SendMessage(\"Active\"));\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }", "@Override\r\n\tpublic void runInstincts() throws GameActionException {\n\t\t\r\n\t}", "public void moveObjects() {\n // move ball and paddles\n ball.moveBall();\n playerOnePaddle.movePaddle();\n playerTwoPaddle.movePaddle();\n }", "@Override\n public void buildAndSetGameLoop() {\n }", "boolean update(long fps, ArrayList<GameObject> objects,GameState gs,SoundEngine se, ParticleSystem ps){\n //update all the GameObjects\n for (GameObject object:objects){\n if (object.checkActive()){\n object.update(fps,objects.get(Level.PLAYER_INDEX).getTransform());\n }\n }\n if (ps.mIsRunning){\n ps.update(fps);\n }\n return detectCollisions(gs,objects,se,ps);\n }", "private void executeExecutables() {\n \r\n if (stunTime > 0) { // still stunned, so lower stunTime and skip all actions\r\n if (stunTime < Game.deltaTime) {\r\n stunTime = 0;\r\n } else {\r\n stunTime -= Game.deltaTime;\r\n }\r\n //System.out.println(this + \" stunned\");\r\n tryStopping();\r\n return;\r\n }\r\n final Action action = state.action;\r\n if (action instanceof Attack) {\r\n if (moveTime < action.totalTime()) {\r\n moveTime += Game.deltaTime;\r\n return;\r\n } else {\r\n state.resetTime();\r\n stop();\r\n state.resetTime(); // FIXME why two calls to this\r\n }\r\n }\r\n \r\n // just finished hitstun\r\n stunTime = 0;\r\n moveTime = 0;\r\n actionTimer = 0;\r\n acceleration.x = 0;\r\n log(this + \" checking for called executables\");\r\n boolean noMovesCalled = true;\r\n for (int i = 0; i < executables.length; i++) {\r\n final Executable executable = executables[i];\r\n executable.update();\r\n if (executable.keyBinding.isPressed(controller)) {\r\n if (executable instanceof Move) {\r\n noMovesCalled = false;\r\n }\r\n //System.out.println(this + \" pressed \" + KeyBinding.get(i) + \", calling \" + executable);\r\n state = executable.execute(this);\r\n } else {\r\n executable.reset();\r\n }\r\n }\r\n if (noMovesCalled) {\r\n tryStopping();\r\n }\r\n if (wasOnPlatform) {\r\n numMidairJumps = 1;\r\n }\r\n }", "public void run()\n {\n this.currentArea = map[xPosition][yPosition];\n this.choices = currentArea.getAreaChoices();\n this.enemy = currentArea.getEnemy();\n this.combat = new Combat(this);\n \n Choice option = PlayerInputHelper.getOption(currentArea.getOpeningLine(), choices);\n choice = option;\n \n try\n {\n Method action = option.getAction();\n if(option.isMovement())\n {\n currentArea = (IArea)action.invoke(mover,option.getDirection());\n run();\n }\n \n else if (!option.isMovement())\n {\n try\n {\n if(option.getInvokeOn().equals(\"c\"))\n {\n action.invoke(combat);\n }\n else\n {\n action.invoke(this);\n }\n }\n catch(NullPointerException e)\n {\n action.invoke(this);\n }\n \n }\n \n else\n {\n System.out.println(option.toString());\n }\n }\n \n catch(Exception e)\n {\n e.printStackTrace();\n }\n \n \n }", "public void run() {\n\n if (players.isEmpty()) {\n timer.cancel();\n }\n HeightMapUpdate m;\n peons.step(seconds);\n houses.step(seconds);\n m = heightMap.GetUpdate();\n if (m != null) {\n sendAllPlayers(m);\n }\n \n RockUpdate ru;\n ru= heightMap.updateRocks(seconds);\n if(ru!=null)\n sendAllPlayers(ru);\n \n for (Effect e : effects.values()) {\n e.execute(this);\n }\n synchronized (effects) {\n effects.putAll(newEffects);\n effects.keySet().removeAll(deletedEffects);\n if (newEffects.size() + deletedEffects.size() > 0) {\n EffectUpdate eu = new EffectUpdate(newEffects, deletedEffects);\n sendAllPlayers(eu);\n newEffects.clear();\n deletedEffects.clear();\n }\n }\n if (frame % 8 == 0) {\n sendAllPlayers(new PlayerUpdate(players));\n }\n frame++;\n }", "private static void loop() throws GameActionException {\n RobotCount.reset();\n MinerEffectiveness.reset();\n\n //Update enemy HQ ranges in mob level\n if(Clock.getRoundNum()%10 == 0) {\n enemyTowers = rc.senseEnemyTowerLocations();\n numberOfTowers = enemyTowers.length;\n if(numberOfTowers < 5 && !Map.isEnemyHQSplashRegionTurnedOff()) {\n Map.turnOffEnemyHQSplashRegion();\n }\n if(numberOfTowers < 2 && !Map.isEnemyHQBuffedRangeTurnedOff()) {\n Map.turnOffEnemyHQBuffedRange();\n }\n }\n \n // Code that runs in every robot (including buildings, excepting missiles)\n sharedLoopCode();\n \n updateEnemyInRange(52);//52 includes splashable region\n checkForEnemies();\n \n int rn = Clock.getRoundNum();\n \n // Launcher strategy\n if(rn == 80) {\n BuildOrder.add(RobotType.HELIPAD); \n } else if(rn == 220) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n } else if (rn == 280) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n } else if (rn == 350) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n } else if (rn == 410) {\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n } else if (rn == 500) {\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n } \n if (rn > 500 && rn%200==0) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n }\n //rc.setIndicatorString(1, \"Distance squared between HQs is \" + distanceBetweenHQs);\n \n \n \n if(rn > 1000 && rn%100 == 0 && rc.getTeamOre() > 700) {\n int index = BuildOrder.size()-1;\n if(BuildOrder.isUnclaimedOrExpired(index)) {\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n }\n }\n \n \n \n /**\n //Building strategy ---------------------------------------------------\n if(Clock.getRoundNum() == 140) {\n BuildOrder.add(RobotType.TECHNOLOGYINSTITUTE);\n BuildOrder.add(RobotType.TRAININGFIELD);\n }\n if(Clock.getRoundNum() == 225) {\n BuildOrder.add(RobotType.BARRACKS);\n BuildOrder.add(RobotType.TANKFACTORY);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n }\n if(Clock.getRoundNum() == 550) {\n BuildOrder.add(RobotType.TANKFACTORY);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n }\n if(Clock.getRoundNum() == 800) {\n BuildOrder.add(RobotType.HELIPAD);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.TANKFACTORY);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n //BuildOrder.printBuildOrder();\n }\n //---------------------------------------------------------------------\n **/\n \n //Spawn beavers\n if (hasFewBeavers()) { \n trySpawn(HQLocation.directionTo(enemyHQLocation), RobotType.BEAVER);\n }\n \n //Dispense supply\n Supply.dispense(suppliabilityMultiplier);\n \n //Debug\n //if(Clock.getRoundNum() == 700) Map.printRadio();\n //if(Clock.getRoundNum() == 1500) BuildOrder.print();\n\n }", "@Override\n\tpublic void run() {\n\t\trun = true;\n\t\tComObject object;\n\t\twhile (run) {\n\t\t\ttry {\n\t\t\t\tobject = (ComObject) comIn.readObject();\n\t\t\t\tobject.process(this, server);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\trun = false;\n\t\t\t\tSystem.err.println(\"Classpath was not found!\");\n\t\t\t\tserver.disconnectPlayer(this);\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\trun = false;\n\t\t\t\tSystem.err.println(\"Couldn't find Input/Output!\");\n\t\t\t\tserver.disconnectPlayer(this);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public boolean play() {\n\t\tfor (IAItem item : objects) {\n\t\t\t// Need to create multiple thread here\n\t\t\tlogger.debug(\"play the sub item:\" + item);\n\t\t\titem.play();\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\r\n public void init_loop() {\r\n }", "@Override\r\n public void init_loop() {\r\n }", "@Override\r\n\tpublic void process() {\n\t\tSystem.out.println(\"this is CompositeBOx \" + this.toString());\r\n\t\tfinal Iterator it = mBoxList.iterator();\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tIBox box = (IBox)it.next();\r\n\t\t\tbox.process();\r\n\t\t}\r\n\t}", "public void think_blocking()\r\n/* 37: */ {\r\n/* 38: 33 */ Scanner in = new Scanner(System.in);\r\n/* 39: */ Object localObject;\r\n/* 40:143 */ for (;; ((Iterator)localObject).hasNext())\r\n/* 41: */ {\r\n/* 42: 38 */ System.out.print(\"Next action ([move|land|attk] id; list; exit): \");\r\n/* 43: */ \r\n/* 44: 40 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 45: */ \r\n/* 46: 42 */ System.out.print(\"Processing command... \");\r\n/* 47: 43 */ System.out.flush();\r\n/* 48: */ \r\n/* 49: 45 */ this.game.updateSimFrame();\r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: 52 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 57: 53 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 58: 54 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 59: */ \r\n/* 60: 56 */ List<Command> coms = new ArrayList();\r\n/* 61: */ try\r\n/* 62: */ {\r\n/* 63: 59 */ boolean recognized = true;\r\n/* 64: 60 */ switch ((localObject = cmd[0]).hashCode())\r\n/* 65: */ {\r\n/* 66: */ case 3004906: \r\n/* 67: 60 */ if (((String)localObject).equals(\"attk\")) {}\r\n/* 68: */ break;\r\n/* 69: */ case 3127582: \r\n/* 70: 60 */ if (((String)localObject).equals(\"exit\")) {\r\n/* 71: */ break label914;\r\n/* 72: */ }\r\n/* 73: */ break;\r\n/* 74: */ case 3314155: \r\n/* 75: 60 */ if (((String)localObject).equals(\"land\")) {\r\n/* 76: */ break;\r\n/* 77: */ }\r\n/* 78: */ break;\r\n/* 79: */ case 3322014: \r\n/* 80: 60 */ if (((String)localObject).equals(\"list\")) {}\r\n/* 81: */ case 3357649: \r\n/* 82: 60 */ if ((goto 793) && (((String)localObject).equals(\"move\")))\r\n/* 83: */ {\r\n/* 84: 64 */ if (cmd.length != 2) {\r\n/* 85: */ break label804;\r\n/* 86: */ }\r\n/* 87: 66 */ int id = Integer.parseInt(cmd[1]);\r\n/* 88: 67 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 89: 68 */ Coord.View c = null;\r\n/* 90: 70 */ if (b == null)\r\n/* 91: */ {\r\n/* 92: 71 */ if (this.game.getCountry().id() != id)\r\n/* 93: */ {\r\n/* 94: 73 */ System.err.println(\"This id isn't corresponding neither to a base nor your country\");\r\n/* 95: */ break label804;\r\n/* 96: */ }\r\n/* 97: 77 */ c = this.game.getCountry().position();\r\n/* 98: */ }\r\n/* 99: */ else\r\n/* 100: */ {\r\n/* 101: 79 */ c = b.position();\r\n/* 102: */ }\r\n/* 103: 81 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 104: 82 */ coms.add(new MoveCommand(p, c));\r\n/* 105: */ }\r\n/* 106: */ break label804;\r\n/* 107: 87 */ int id = Integer.parseInt(cmd[1]);\r\n/* 108: 88 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 109: 89 */ AbstractBase.View c = null;\r\n/* 110: 91 */ if (b == null)\r\n/* 111: */ {\r\n/* 112: 92 */ if (this.game.getCountry().id() != id)\r\n/* 113: */ {\r\n/* 114: 94 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 115: */ break label804;\r\n/* 116: */ }\r\n/* 117: 98 */ c = this.game.getCountry();\r\n/* 118: */ }\r\n/* 119: */ else\r\n/* 120: */ {\r\n/* 121:100 */ c = b;\r\n/* 122: */ }\r\n/* 123:102 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 124:103 */ coms.add(new LandCommand(p, c));\r\n/* 125: */ }\r\n/* 126: */ break label804;\r\n/* 127:108 */ Plane.BasicView ep = (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 128:109 */ if (ep == null)\r\n/* 129: */ {\r\n/* 130:111 */ System.err.println(\"Bad id, this plane does not exists\");\r\n/* 131: */ }\r\n/* 132: */ else\r\n/* 133: */ {\r\n/* 134:114 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 135:115 */ coms.add(new AttackCommand(p, ep));\r\n/* 136: */ }\r\n/* 137: */ break label804;\r\n/* 138:118 */ System.out.println();\r\n/* 139:119 */ System.out.println(\">> My planes:\");\r\n/* 140:120 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 141:121 */ System.out.println(p);\r\n/* 142: */ }\r\n/* 143:122 */ System.out.println(\">> Ennemy planes:\");\r\n/* 144:123 */ for (Plane.BasicView p : ennemy_planes.valuesView()) {\r\n/* 145:124 */ System.out.println(p);\r\n/* 146: */ }\r\n/* 147:125 */ System.out.println(\">> Visible bases :\");\r\n/* 148:126 */ for (Base.FullView b : this.game.getVisibleBase().valuesView()) {\r\n/* 149:127 */ System.out.println(b);\r\n/* 150: */ }\r\n/* 151:128 */ System.out.println(\">> Your Country\");\r\n/* 152:129 */ System.out.println(this.game.getCountry());\r\n/* 153: */ }\r\n/* 154: */ }\r\n/* 155:130 */ break;\r\n/* 156: */ }\r\n/* 157:132 */ recognized = false;\r\n/* 158:133 */ System.err.println(\"Unrecognized command!\");\r\n/* 159: */ label804:\r\n/* 160:135 */ if (recognized) {\r\n/* 161:136 */ System.out.println(\"Processed\");\r\n/* 162: */ }\r\n/* 163: */ }\r\n/* 164: */ catch (IllegalArgumentException e)\r\n/* 165: */ {\r\n/* 166:139 */ System.out.println(\"Command failed: \" + e);\r\n/* 167:140 */ System.err.println(\"Command failed: \" + e);\r\n/* 168: */ }\r\n/* 169:143 */ localObject = coms.iterator(); continue;Command c = (Command)((Iterator)localObject).next();\r\n/* 170:144 */ this.game.sendCommand(c);\r\n/* 171: */ }\r\n/* 172: */ label914:\r\n/* 173:148 */ in.close();\r\n/* 174:149 */ this.game.quit(0);\r\n/* 175: */ }", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "@Override\n\tpublic void operation() {\n\t\tfor(Object object:list) {\n\t\t\t((Component)object).operation();\n\t\t}\n\t}", "@Override\r\n\tpublic void execute() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].execute();\r\n\t\t}\r\n\t}", "public void playCvC() {\n isAI[0] = true;\n isAI[1] = true;\n players[0] = new AI();\n players[1] = new AI();\n playerShips[0] = players[0].getShipList();\n playerShips[1] = players[1].getShipList();\n grids[0] = new Grid();\n grids[1] = new Grid();\n currentPlayer = 0;\n playGame();\n }", "public void scrollEverything()\n { \n tempPlatforms = (ArrayList)getObjects(Platform.class);\n for (Object o : tempPlatforms)\n {\n Platform p = (Platform)o;\n p.scroll();\n }\n tempBreakingPlatforms = (ArrayList)getObjects(BreakingPlatforms.class);\n for (Object o : tempBreakingPlatforms)\n {\n BreakingPlatforms bp = (BreakingPlatforms)o;\n bp.scroll();\n }\n tempSprings = (ArrayList)getObjects(Spring.class);\n for (Object o : tempSprings)\n {\n Spring s = (Spring)o;\n s.scroll();\n }\n tempJetpack = (ArrayList)getObjects(Jetpack.class);\n for (Object o : tempJetpack)\n {\n Jetpack j = (Jetpack)o;\n j.scroll();\n }\n tempEnemy = (ArrayList)getObjects(Enemy.class);\n for (Object o : tempEnemy)\n {\n Enemy e = (Enemy)o;\n e.scroll();\n }\n player.scroll();\n }", "public void launchTurn() {\n \twhile (getCurrentPlayer() instanceof AbstractIA) {\n \t\tSystem.out.println(\"Some thing happen or nothing\");\n \t\tjouerIA();\n \t\tendTurn();\n \t\t//setCurrentPlayer(getJoueur1());\t\n \t}\n \t\n }", "@Override\n\tprotected void loop() {\n\t\tcolidiuParede(bola, paddle);\n\t\tcolidiuPaddle(bola, paddle);\n\t\tcolidiuBloco(linhaUm);\n\t\tcolidiuBloco(linhaDois);\n\t\tcolidiuBloco(linhaTres);\n\t\tcolidiuBloco(linhaQuatro);\n\t\tcolidiuBloco(linhaCinco);\n\t\tcolidiuBloco(linhaSeis);\n\t\ttrocaFase();\n\t\tcarImg();\n\t\t\n\t\tif (move) {\n\t\t\tbola.move();\n\t\t}\n\n\t\tif (recorde < score) {\n\t\t\trecorde = score;\n\t\t}\n\t\t\n\t\tif(score == ganhaVida){\n\t\t\tvida++;\n\t\t\tganhaVida += ganhaVida;\n\t\t}\n\n\t\tredraw();\n\t}", "public void run() {\n gameLogic = new GameLogic(drawManager.getGameFrame());\n long lastLoopTime = System.nanoTime();\n final int TARGET_FPS = 60;\n final long OPTIMAL_TIME = 1000000000 / TARGET_FPS;\n loop(lastLoopTime, OPTIMAL_TIME);\n }", "@Override\r\n\t\tpublic void run()\r\n\t\t{\r\n\r\n\t\t\t\r\n\t\t\twhile(clientsocket.isConnected())\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\t// get type for update. 1 for object update, 2 for new attack object\r\n\t\t\t\t\tint type = rdata.readInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(type == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString playerupdatestr = rdata.readUTF();\r\n\t\t\t\t\t\tJsonObject jsonObject = server.gson.fromJson(playerupdatestr, JsonObject.class);\r\n\t\t\t\t\t\tint index = findlistindex(jsonObject.get(\"ID\").getAsInt());\r\n\t\t\t\t\t\tArrayList<CollideObject> templist = server.cdc.collideObjectManager[mode].collideObjectList;\r\n\t\t\t\t\t\tCollideObject obj = server.gson.fromJson(jsonObject, templist.get(index).getClass());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttemplist.set(index,obj);\r\n\t\t\t\t\t\tif(obj.getFlag())\r\n\t\t\t\t\t\t\tserver.cdc.calculatecollide(mode);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tserver.broacast_update(mode , obj);\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\tString classname = rdata.readUTF();\r\n\t\t\t\t\t\tint id = rdata.readInt();\r\n\t\t\t\t\t\tint index = findlistindex(id);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tserver.cdc.collideObjectManager[mode].addAttackObject(collideObjecctClass.valueOf(classname), server.idcount[mode], server.randposition(),(Character) server.cdc.collideObjectManager[mode].collideObjectList.get(index));\r\n\t\t\t\t\t\t++server.idcount[mode];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "void printObjects(){\r\n\t\tIterator iterator = gc.getIterator();\r\n\t while(iterator.hasNext()){\r\n\t\t GameObject g = iterator.getNext();\r\n\t\t\t if (!(g instanceof Bar))System.out.println(g.toString());\r\n\t\t}\r\n\t}", "@Override\n\tpublic void execute() {\n\t\tlog.info(\"running...\");\n\n\n\t\t/* example for finding the server agent */\n\t\tIAgentDescription serverAgent = thisAgent.searchAgent(new AgentDescription(null, \"ServerAgent\", null, null, null, null));\n\t\tif (serverAgent != null) {\n\t\t\tthis.server = serverAgent.getMessageBoxAddress();\n\n\t\t\t// TODO\n\t\t\tif (!hasGameStarted) {\n\t\t\t\tStartGameMessage startGameMessage = new StartGameMessage();\n\t\t\t\tstartGameMessage.brokerId = thisAgent.getAgentId();\n\t\t\t\tstartGameMessage.gridFile = \"/grids/h_01.grid\";\n\t\t\t\t// Send StartGameMessage(BrokerID)\n\t\t\t\tsendMessage(server, startGameMessage);\n\t\t\t\treward = 0;\n\t\t\t\tthis.hasGameStarted = true;\n\t\t\t}\n\n\t\t} else {\n\t\t\tSystem.out.println(\"SERVER NOT FOUND!\");\n\t\t}\n\n\n\t\t/* example of handling incoming messages without listener */\n\t\tfor (JiacMessage message : memory.removeAll(new JiacMessage())) {\n\t\t\tObject payload = message.getPayload();\n\n\t\t\tif (payload instanceof StartGameResponse) {\n\t\t\t\t/* do something */\n\n\t\t\t\t// TODO\n\t\t\t\tStartGameResponse startGameResponse = (StartGameResponse) message.getPayload();\n\n\t\t\t\tthis.maxNum = startGameResponse.initialWorkers.size();\n\t\t\t\tthis.agentDescriptions = getMyWorkerAgents(this.maxNum);\n\t\t\t\tthis.gameId = startGameResponse.gameId;\n\n\t\t\t\t/**\n\t\t\t\t *\n\t\t\t\t * DEBUGGING\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"SERVER SENDING \" + startGameResponse.toString());\n\n\t\t\t\t// TODO handle movements and obstacles\n\t\t\t\tthis.gridworldGame = new GridworldGame();\n\t\t\t\tthis.gridworldGame.obstacles.addAll(startGameResponse.obstacles);\n\n\n\n\t\t\t\t// TODO nicht mehr worker verwenden als zur Verfügung stehen\n\n\t\t\t\t/**\n\t\t\t\t * Initialize the workerIdMap to get the agentDescription and especially the\n\t\t\t\t * MailBoxAdress of the workerAgent which we associated with a specific worker\n\t\t\t\t *\n\n\t\t\t\tfor (Worker worker: startGameResponse.initialWorkers) {\n\t\t\t\t\tworkerIdMap.put(worker.id, this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker)));\n\t\t\t\t\tworkerIdReverseAId.put(this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker)).getAid(), worker.id);\n\t\t\t\t} */\n\n\t\t\t\t/**\n\t\t\t\t * Send the Position messages to each Agent for a specific worker\n\t\t\t\t * PositionMessages are sent to inform the worker where it is located\n\t\t\t\t * additionally put the position of the worker in the positionMap\n\t\t\t\t */\n\t\t\t\tfor (Worker worker: startGameResponse.initialWorkers) {\n\t\t\t\t\tpositionMap.put(worker.id, worker.position);\n\n\t\t\t\t\tworkerIdMap.put(worker.id, this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker)));\n\t\t\t\t\tworkerIdReverseAID.put(this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker)).getAid(), worker.id);\n\n\t\t\t\t\tIAgentDescription agentDescription = workerIdMap.get(worker.id);\n\t\t\t\t\tICommunicationAddress workerAddress = agentDescription.getMessageBoxAddress();\n\n\t\t\t\t\t// Send each Agent their current position\n\t\t\t\t\tPositionMessage positionMessage = new PositionMessage();\n\t\t\t\t\tpositionMessage.workerId = agentDescription.getAid();\n\t\t\t\t\tpositionMessage.gameId = startGameResponse.gameId;\n\t\t\t\t\tpositionMessage.position = worker.position;\n\t\t\t\t\tpositionMessage.workerIdForServer = worker.id;\n\t\t\t\t\t//System.out.println(\"ADDRESS IS \" + workerAddress);\n\n\t\t\t\t\tsendMessage(workerAddress, positionMessage);\n\t\t\t\t\t//break;\n\t\t\t\t}\n\n\t\t\t\thasAgents = true;\n\n\t\t\t\tfor (Order order: savedOrders) {\n\t\t\t\t\t// 3 Runden anfangs zum Initialisieren\n\t\t\t\t\tICommunicationAddress workerAddress = decideOrderAssigment(order);\n\t\t\t\t\tPosition workerPosition = null;\n\t\t\t\t\tfor (IAgentDescription agentDescription: agentDescriptions) {\n\t\t\t\t\t\tif (agentDescription.getMessageBoxAddress().equals(workerAddress)) {\n\t\t\t\t\t\t\tString workerId = workerIdReverseAID.get(agentDescription.getAid());\n\t\t\t\t\t\t\tworkerPosition = positionMap.get(workerId);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tint steps = workerPosition.distance(order.position) + 2;\n\t\t\t\t\tint rewardMove = (steps > order.deadline)? 0 : order.value - steps * order.turnPenalty;\n\n\t\t\t\t\tSystem.out.println(\"REWARD: \" + rewardMove);\n\n\t\t\t\t\tif(rewardMove > 0) {\n\t\t\t\t\t\tTakeOrderMessage takeOrderMessage = new TakeOrderMessage();\n\t\t\t\t\t\ttakeOrderMessage.orderId = order.id;\n\t\t\t\t\t\ttakeOrderMessage.brokerId = thisAgent.getAgentId();\n\t\t\t\t\t\ttakeOrderMessage.gameId = gameId;\n\t\t\t\t\t\tsendMessage(server, takeOrderMessage);\n\n\t\t\t\t\t\t// Save order into orderMap\n\t\t\t\t\t\tthis.orderMap.put(order.id, order);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (payload instanceof PositionConfirm) {\n\t\t\t\tPositionConfirm positionConfirm = (PositionConfirm) message.getPayload();\n\t\t\t\tif(positionConfirm.state == Result.FAIL) {\n\t\t\t\t\tString workerId = workerIdReverseAID.get(positionConfirm.workerId);\n\t\t\t\t\tIAgentDescription agentDescription = workerIdMap.get(workerId);\n\t\t\t\t\tICommunicationAddress workerAddress = agentDescription.getMessageBoxAddress();\n\n\t\t\t\t\tPositionMessage positionMessage = new PositionMessage();\n\n\t\t\t\t\tpositionMessage.workerId = agentDescription.getAid();\n\t\t\t\t\tpositionMessage.gameId = positionConfirm.gameId;\n\t\t\t\t\tpositionMessage.position = positionMap.get(workerId);\n\t\t\t\t\tpositionMessage.workerIdForServer = workerId;\n\n\t\t\t\t\tsendMessage(workerAddress, positionMessage);\n\t\t\t\t} else {\n\t\t\t\t\tactiveWorkers.add(message.getSender());\n\t\t\t\t\tfor (String orderId: orderMessages) {\n\t\t\t\t\t\tICommunicationAddress workerAddress = decideOrderAssigment(this.orderMap.get(orderId));\n\t\t\t\t\t\tif(workerAddress.equals(message.getSender())){\n\t\t\t\t\t\t\tAssignOrderMessage assignOrderMessage = new AssignOrderMessage();\n\t\t\t\t\t\t\tassignOrderMessage.order = this.orderMap.get(orderId);\n\t\t\t\t\t\t\tassignOrderMessage.gameId = gameId;\n\t\t\t\t\t\t\tassignOrderMessage.server = this.server;\n\t\t\t\t\t\t\tif(activeWorkers.contains(workerAddress)){\n\t\t\t\t\t\t\t\tsendMessage(workerAddress, assignOrderMessage);\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\n\t\t\t}\n\n\n\t\t\tif (payload instanceof OrderMessage) {\n\n\t\t\t\t// TODO entscheide, ob wir die Order wirklich annehmen wollen / können\n\n\t\t\t\tOrderMessage orderMessage = (OrderMessage) message.getPayload();\n\n\t\t\t\tif (!hasAgents){\n\t\t\t\t\tsavedOrders.add(orderMessage.order);\n\t\t\t\t\tcontinue;\n\t\t\t\t}else {\n\t\t\t\t\tOrder thisOrder = orderMessage.order;\n\n\t\t\t\tICommunicationAddress workerAddress = decideOrderAssigment(thisOrder);\n\t\t\t\tPosition workerPosition = null;\n\t\t\t\tfor (IAgentDescription agentDescription: agentDescriptions) {\n\t\t\t\t\tif (agentDescription.getMessageBoxAddress().equals(workerAddress)) {\n\t\t\t\t\t\tString workerId = workerIdReverseAID.get(agentDescription.getAid());\n\t\t\t\t\t\tworkerPosition = positionMap.get(workerId);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// 3 Runden anfangs zum Initialisieren\n\t\t\t\t\tint steps = workerPosition.distance(thisOrder.position) + 1;\n\t\t\t\t\tint rewardMove = (steps > thisOrder.deadline)? 0 : thisOrder.value - steps * thisOrder.turnPenalty;\n\n\n\t\t\t\t\tSystem.out.println(\"REWARD: \" + rewardMove);\n\n\t\t\t\tif(rewardMove > 0) {\n\t\t\t\t\tTakeOrderMessage takeOrderMessage = new TakeOrderMessage();\n\t\t\t\t\ttakeOrderMessage.orderId = orderMessage.order.id;\n\t\t\t\t\ttakeOrderMessage.brokerId = thisAgent.getAgentId();\n\t\t\t\t\ttakeOrderMessage.gameId = orderMessage.gameId;\n\t\t\t\t\tsendMessage(server, takeOrderMessage);\n\n\t\t\t\t\t// Save order into orderMap\n\t\t\t\t\tOrder order = ((OrderMessage) message.getPayload()).order;\n\t\t\t\t\tthis.orderMap.put(order.id, order);\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t *\n\t\t\t\t * DEBUGGING\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"SERVER SENDING \" + orderMessage.toString());\n\n\t\t\t\t// Save order into orderMap\n\n\t\t\t}\n\n\t\t\tif (payload instanceof TakeOrderConfirm) {\n\n\t\t\t\t// TODO\n\t\t\t\t// Got Order ?!\n\t\t\t\tTakeOrderConfirm takeOrderConfirm = (TakeOrderConfirm) message.getPayload();\n\t\t\t\tResult result = takeOrderConfirm.state;\n\n\t\t\t\t/**\n\t\t\t\t *\n\t\t\t\t * DEBUGGING\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"SERVER SENDING \" + takeOrderConfirm.toString());\n\n\t\t\t\tif (result == Result.FAIL) {\n\t\t\t\t\t// Handle failed confirmation\n\n\t\t\t\t\t// Remove order from orderMap as it was rejected by the server\n\t\t\t\t\tthis.orderMap.remove(takeOrderConfirm.orderId);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\n\t\t\t\t// TODO send serverAddress\n\t\t\t\t// Assign order to Worker(Bean)\n\t\t\t\t// Send the order to the first agent\n\t\t\t\tAssignOrderMessage assignOrderMessage = new AssignOrderMessage();\n\t\t\t\tassignOrderMessage.order = this.orderMap.get(takeOrderConfirm.orderId);\n\t\t\t\tassignOrderMessage.gameId = takeOrderConfirm.gameId;\n\t\t\t\tassignOrderMessage.server = this.server;\n\t\t\t\tICommunicationAddress workerAddress = decideOrderAssigment(assignOrderMessage.order);\n\t\t\t\tif(activeWorkers.contains(workerAddress)){\n\t\t\t\t\tsendMessage(workerAddress, assignOrderMessage);\n\t\t\t\t} else {\n\t\t\t\t\torderMessages.add(takeOrderConfirm.orderId);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (payload instanceof AssignOrderConfirm) {\n\n\t\t\t\t// TODO\n\t\t\t\tAssignOrderConfirm assignOrderConfirm = (AssignOrderConfirm) message.getPayload();\n\t\t\t\tResult result = assignOrderConfirm.state;\n\n\t\t\t\tif (result == Result.FAIL) {\n\t\t\t\t\t// Handle failed confirmation\n\t\t\t\t\t// TODO\n\t\t\t\t\tICommunicationAddress alternativeWorkerAddress = getAlternativeWorkerAddress(((AssignOrderConfirm) message.getPayload()).workerId);\n\t\t\t\t\treassignOrder(alternativeWorkerAddress, assignOrderConfirm);\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\torderMessages.remove(assignOrderConfirm.orderId);\n\n\t\t\t\t// TODO Inform other workers that this task is taken - notwendig??\n\n\t\t\t}\n\n\t\t\tif (payload instanceof OrderCompleted) {\n\n\t\t\t\tOrderCompleted orderCompleted = (OrderCompleted) message.getPayload();\n\t\t\t\tResult result = orderCompleted.state;\n\n\t\t\t\tif (result == Result.FAIL) {\n\t\t\t\t\t// TODO Handle failed order completion -> minus points for non handled rewards\n\t\t\t\t\treward += orderCompleted.reward;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\treward += orderCompleted.reward;\n\t\t\t\t// TODO remove order from the worker specific order queues\n\n\t\t\t}\n\n\t\t\tif (payload instanceof PositionUpdate) {\n\n\t\t\t\tPositionUpdate positionUpdate = (PositionUpdate) message.getPayload();\n\t\t\t\tupdateWorkerPosition(positionUpdate.position, positionUpdate.workerId);\n\n\t\t\t}\n\n\t\t\tif (payload instanceof EndGameMessage) {\n\n\t\t\t\tEndGameMessage endGameMessage = (EndGameMessage) message.getPayload();\n\t\t\t\t// TODO lernen lernen lernen lol\n\t\t\t\tSystem.out.println(\"Reward: \" + endGameMessage.totalReward);\n\t\t\t}\n\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 interface IGameObject {\n\n public void create();\n public void load(RenderManager renderManager);\n public void draw(RenderManager renderManager);\n public void update(GameManager gameManager);\n public void destroy();\n}", "public void run() {\r\n\t\ttargets = new Hashtable();\r\n\t\ttarget = new Enemy();\r\n\t\ttarget.distance = 100000;\r\n\t\tsetBodyColor(Color.ORANGE);\r\n\t\t// the next two lines mean that the turns of the robot, gun and radar\r\n\t\t// are independant\r\n\t\tsetAdjustGunForRobotTurn(true);\r\n\t\tsetAdjustRadarForGunTurn(true);\r\n\t\tturnRadarRightRadians(2 * PI); // turns the radar right around to get a\r\n\t\t\t\t\t\t\t\t\t\t// view of the field\r\n\t\twhile (true) {\r\n\t\t\tmove();\r\n\t\t\tdoFirePower(); // select the fire power to use\r\n\t\t\tdoScanner(); // Oscillate the scanner over the bot\r\n\t\t\tdoGun();\r\n\t\t\tout.println(target.distance); // move the gun to predict where the\r\n\t\t\t\t\t\t\t\t\t\t\t// enemy will be\r\n\t\t\tfire(firePower);\r\n\t\t\texecute(); // execute all commands\r\n\t\t}\r\n\t}", "public void Run()\n {\n for(int i = 0; i < birds.size(); i++)\n {\n Animal thisBird = (Animal)birds.get(i);\n \n // if the bird is all alone, it should just wander around\n if(thisBird.Alone(birds) && wandering)\n {\n PVector wander = thisBird.Wander();\n wander.mult(wanderMult);\n thisBird.ApplyForce(wander);\n }\n // if not alone, apply appropiate behaviours\n else\n {\n if (separating)\n {\n PVector separate = thisBird.Separate(birds);\n separate.mult(separationMult);\n thisBird.ApplyForce(separate);\n }\n if (cohesing)\n {\n PVector cohese = thisBird.Cohesion(birds);\n cohese.mult(cohesionMult);\n thisBird.ApplyForce(cohese);\n }\n if (aligning)\n {\n PVector align = thisBird.Align(birds);\n align.mult(alignMult);\n thisBird.ApplyForce(align);\n }\n if (noiseEnabled)\n {\n PVector noise = thisBird.NoiseMove();\n noise.mult(noiseMult);\n thisBird.ApplyForce(noise);\n }\n } \n thisBird.Tick();\n thisBird.Display();\n birds.set(i, thisBird); \n }\n }", "@Override\n\t\t\tpublic void loopDone() {\n\t\t\t\t\n\t\t\t\tif (gamersArray.size()>0){\n\t\t\t\t\tattractAnim.stop();\n\t\t\t\t\t// need to call from main thread!\n\t\t\t\t\tmUIHandler.post(new Runnable(){\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tchangeState(State.WAIT_FOR_START);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void action(Object... objects) {\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tString desc = \"【游戏开始】\";\n\t\tmap.put(\"description\", desc);\n\t\tResult info = new Result(CommonIdentifier.Game_Start,map);\n\t\tsuper.notifyObservers(info);\n\t}", "@Override\n\tpublic void render () \n\t{\t\t\n\t\t\n\t\tfloat deltaTime = Gdx.graphics.getDeltaTime();\n\t\t\n\t\t\n\t\t// TODO make a world component and consider design implications\n \n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\t\tfor(Entity operableEntity : mamaDukes)\n\t\t{\n\t\t\toperableEntity.Update(deltaTime);\n\t\t}\n\t\t \n\t\tIntrigueGraphicSys.flush();\n\t\t\n\t\tstage.act(deltaTime);\n\t\ttext.setText(\"FPS: \" + Gdx.graphics.getFramesPerSecond());\n\t\tstage.draw();\n\t}", "@Override\n\tpublic void update_logic()\n\t{\n\t\tArrayList<Double> angleList = new ArrayList<Double>();\n\t\tfor(GameObject item : sightList)\n\t\t{\n\t\t\tangleList.add(ALL.point_direction(x, y, item.getX(), item.getY()));\n\t\t}\n\t\t\n\t\t// only if there is something to run from\n\t\tif (angleList.size() > 0)\n\t\t{\n\t\t\trunFromOthers(angleList);\n\t\t} else {\n\t\t\tmotion_set(direction, 0);\n\t\t}\n\t\t\n\t\t// show a debug message\n\t\tdebugString = Integer.toString(resources);\n\n\t}", "public interface GameObject {\n public void dispose();\n\n public void update();\n\n public void render(Batch batch);\n}", "public void tick()\n\t{\n\t\tfor(int i = 0; i < peopleList.size(); i++) {\n\t\t\tPerson tempObject = peopleList.get(i);\n\t\t\ttempObject.tick();\n\t\t}\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tswitch (ubiToolType)\n\t\t{\n\t\tcase PUNKT:\n\t\t\tdoPoint();\n\t\t\tbreak;\n\t\tcase KREIS:\n\t\t\tdoCircle();\n\t\t\tbreak;\n\t\tcase LINIE:\n\t\t\tdoLine();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }" ]
[ "0.70161635", "0.64741653", "0.6419679", "0.63058877", "0.6267603", "0.6222207", "0.61659014", "0.61374885", "0.6132982", "0.6117513", "0.61108196", "0.6065879", "0.6059367", "0.6059367", "0.60558397", "0.59955066", "0.5993179", "0.59873027", "0.59841996", "0.5978291", "0.5942506", "0.59421414", "0.59395957", "0.59394217", "0.5935335", "0.5915191", "0.5884064", "0.58767706", "0.58322996", "0.5828537", "0.582407", "0.58133703", "0.5807676", "0.5793783", "0.57896245", "0.5788785", "0.57712644", "0.57706046", "0.57686454", "0.5759041", "0.575564", "0.57469386", "0.573305", "0.57244724", "0.5720263", "0.57174397", "0.57150704", "0.57148737", "0.571358", "0.5712544", "0.56916255", "0.5691085", "0.5689423", "0.56888974", "0.5686939", "0.56850535", "0.5666019", "0.5665429", "0.56646544", "0.56646544", "0.56631815", "0.56628567", "0.5659791", "0.56538945", "0.5653116", "0.5642836", "0.56415945", "0.5639411", "0.5638402", "0.56325233", "0.56157255", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5609297", "0.5602623", "0.5599113", "0.559652", "0.5586584", "0.5579936", "0.55783516", "0.5576496", "0.5566315", "0.5565836", "0.5561913", "0.55593497", "0.55517715", "0.5535965", "0.5535891" ]
0.0
-1
Yes, you can have multiple methods that are named the same, as long as they take a different number/type of parameters
public void driveArcade(double drive, double turn) { //Takes a drive and turn value and converts it to motor values. leftMotor.setPower(Range.clip((drive + turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); rightMotor.setPower(Range.clip((drive - turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }", "public static void main(String[] args) {\n\n Method();\n Method(10);\n Method(\"Hello\");\n Method(10, 20);\n // Multiple methods can have the same name as long as the number and/or type of parameters are different.\n \n }", "public void andThisIsAMethodName(){}", "@OOPMultipleInterface\npublic interface I7D {\n @OOPMultipleMethod\n default String f(Object p1, Object p2, Object p3) throws OOPMultipleException {return \"\";}\n @OOPMultipleMethod\n default String f(Integer p1, Object p2, E p3) throws OOPMultipleException {return \"\";}\n}", "void method_114(int var1, int var2);", "class_1069 method_105(int var1, int var2);", "class_1069 method_104(int var1, int var2);", "public static void main(String[] args) {\n methodOverloading();\n }", "@FunctionalInterface // or we can call it SAM\r\n interface ShowMe{\r\n\t\r\n\t void showOk();\r\n\t \r\n\tpublic default void one()\r\n\t {\r\n\t System.out.println(\"method one \");\r\n };\r\n \r\n public static void one1()\r\n {\r\n System.out.println(\"method one 1 \");\r\n };\r\n \r\n public default void one2()\r\n \t {\r\n \t System.out.println(\"method one2 \");\r\n };\r\n \r\n }", "interface C23413e {\n /* renamed from: a */\n void mo60902a(AvatarImageWithVerify avatarImageWithVerify);\n\n /* renamed from: a */\n boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);\n\n /* renamed from: b */\n void mo60904b(AvatarImageWithVerify avatarImageWithVerify);\n }", "public interface IMostSpecificOverloadDecider\n{\n OverloadRankingDto inNormalMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads, List<ITypeSymbol> argumentTypes);\n\n //Warning! start code duplication, more or less the same as in inNormalMode\n List<OverloadRankingDto> inSoftTypingMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads);\n}", "interface C9349bs {\n /* renamed from: a */\n int mo28885a(int i);\n\n /* renamed from: a */\n void mo28886a(int i, double d) throws zzlm;\n\n /* renamed from: a */\n void mo28887a(int i, int i2, zzno zzno) throws IOException, InterruptedException;\n\n /* renamed from: a */\n void mo28888a(int i, long j, long j2) throws zzlm;\n\n /* renamed from: a */\n void mo28889a(int i, String str) throws zzlm;\n\n /* renamed from: b */\n void mo28890b(int i) throws zzlm;\n\n /* renamed from: b */\n void mo28891b(int i, long j) throws zzlm;\n\n /* renamed from: c */\n boolean mo28892c(int i);\n}", "public interface C2541a {\n /* renamed from: O */\n boolean mo6498O(C41531v c41531v);\n\n /* renamed from: P */\n boolean mo6499P(C41531v c41531v);\n\n /* renamed from: a */\n void mo6500a(int i, int i2, Object obj, boolean z);\n\n /* renamed from: a */\n void mo6501a(C41531v c41531v, View view, Object obj, int i);\n\n /* renamed from: a */\n boolean mo6502a(C41531v c41531v, Object obj);\n\n /* renamed from: b */\n View mo6503b(RecyclerView recyclerView, C41531v c41531v);\n\n /* renamed from: by */\n void mo6504by(Object obj);\n\n /* renamed from: cu */\n void mo6505cu(View view);\n}", "public interface AbstractC2930hp1 {\n void a(String str, boolean z);\n\n void b(String str, long j);\n\n void c(String str, int i, int i2, int i3, int i4);\n\n void d(String str, int i);\n\n void e(String str, int i, int i2, int i3, int i4);\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}", "@Override\n\tpublic void randomMethod(String name) {\n\t\t\n\t}", "public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}", "interface A9 {\r\n void test(int i, String s1); //test method is taking some argument\r\n}", "public interface Service {\n void method1();\n void method2();\n}", "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}", "interface dmf {\n void a(int i, double d);\n\n void a(int i, float f);\n\n void a(int i, int i2);\n\n void a(int i, long j);\n\n void a(int i, dik dik);\n\n void a(int i, Object obj);\n\n void a(int i, Object obj, dkw dkw);\n\n void a(int i, boolean z);\n\n void b(int i, int i2);\n\n void b(int i, long j);\n\n @Deprecated\n void b(int i, Object obj, dkw dkw);\n\n void c(int i, int i2);\n\n void c(int i, long j);\n\n void d(int i, int i2);\n\n void d(int i, long j);\n\n void e(int i, int i2);\n\n void e(int i, long j);\n\n void f(int i, int i2);\n}", "public interface C2950c {\n /* renamed from: a */\n int mo9690a(int i, int i2);\n\n /* renamed from: a */\n int mo9691a(String str, String str2, float f);\n\n /* renamed from: a */\n int mo9692a(String[] strArr, int i);\n\n /* renamed from: a */\n void mo9693a();\n\n /* renamed from: a */\n void mo9694a(float f, float f2);\n\n /* renamed from: a */\n void mo9695a(float f, float f2, float f3, float f4, float f5);\n\n /* renamed from: a */\n void mo9696a(float f, float f2, int i);\n\n /* renamed from: a */\n void mo9697a(String str);\n\n /* renamed from: a */\n void mo9698a(String str, float f);\n\n /* renamed from: a */\n void mo9699a(String str, String str2, boolean z);\n\n /* renamed from: a */\n void mo9700a(String str, boolean z);\n\n /* renamed from: a */\n void mo9701a(boolean z);\n\n /* renamed from: b */\n int mo9702b(String str, String str2, float f);\n\n /* renamed from: b */\n void mo9703b(float f, float f2);\n\n /* renamed from: b */\n void mo9704b(float f, float f2, int i);\n\n /* renamed from: c */\n void mo9705c(float f, float f2);\n}", "public static void main(String[] args) {\n\t\tMethodOverloading7.add(1, 2, 3);\n\t\tMethodOverloading7.add(1, 2l, 3l);\n\t\tMethodOverloading7.add(1, 2, 3l);\n\t}", "public interface GiveGift {\n\n void give1();\n void give2();\n void give3();\n}", "static void add() {\r\n\t\tSystem.out.println(\"Overloading Method\");\r\n\t}", "boolean method_103(int var1, int var2);", "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 }", "@FunctionalInterface\r\ninterface SingleMethod { // functional interface cant have more than one abstract method\r\n\tvoid method();\r\n\t\r\n}", "public interface C0159fv {\n /* renamed from: a */\n void mo4827a(Context context, C0152fo foVar);\n\n /* renamed from: a */\n void mo4828a(C0152fo foVar, boolean z);\n\n /* renamed from: a */\n void mo4829a(C0158fu fuVar);\n\n /* renamed from: a */\n boolean mo4830a();\n\n /* renamed from: a */\n boolean mo4831a(C0153fp fpVar);\n\n /* renamed from: a */\n boolean mo4832a(C0167gc gcVar);\n\n /* renamed from: b */\n void mo4833b();\n\n /* renamed from: b */\n boolean mo4834b(C0153fp fpVar);\n}", "class_1034 method_112(ahb var1, String var2, int var3, int var4, int var5);", "public interface C2604b {\n /* renamed from: a */\n void mo1886a(String str, String str2);\n\n /* renamed from: a */\n boolean mo1887a(String str);\n\n /* renamed from: b */\n String mo1888b(String str, String str2, String str3, String str4);\n }", "@Override\n\tpublic void name1() {\n\t\t\n\t}", "public interface C20779a {\n /* renamed from: a */\n C15430g mo56154a();\n\n /* renamed from: a */\n void mo56155a(float f);\n\n /* renamed from: a */\n void mo56156a(int i, int i2);\n\n /* renamed from: b */\n float mo56157b();\n\n /* renamed from: b */\n boolean mo56158b(int i, int i2);\n\n /* renamed from: c */\n int[] mo56159c();\n\n /* renamed from: d */\n int[] mo56160d();\n\n /* renamed from: e */\n void mo56161e();\n\n /* renamed from: f */\n ReactionWindowInfo mo56162f();\n\n /* renamed from: g */\n void mo56163g();\n}", "List method_111(class_922 var1, int var2, int var3, int var4);", "int foo(int a, int b);", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "public abstract void method1();", "public static void main(String[] args) {\r\n\t\t\r\n\t\tMethodOverloading m = new MethodOverloading();\r\n\t\tm.sum();\r\n\t\tm.sum(15, 15);\r\n\t\t\r\n\t}", "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 DemoService {\n\n public String print1(String arg1, String arg2);\n\n public String print2(String arg1, String arg2);\n\n}", "public interface U {\n void f1();\n void f2();\n void f3();\n}", "protected void a(int paramInt1, int paramInt2, boolean paramBoolean, yz paramyz) {}", "public void method1()\r\n\t{\r\n\t}", "interface C15937b {\n /* renamed from: a */\n void mo13368a();\n\n /* renamed from: a */\n void mo13369a(int i, int i2, int i3, boolean z);\n\n /* renamed from: a */\n void mo13370a(int i, int i2, List<C15929a> list) throws IOException;\n\n /* renamed from: a */\n void mo13371a(int i, long j);\n\n /* renamed from: a */\n void mo13372a(int i, ErrorCode errorCode);\n\n /* renamed from: a */\n void mo13373a(int i, ErrorCode errorCode, ByteString byteString);\n\n /* renamed from: a */\n void mo13374a(boolean z, int i, int i2);\n\n /* renamed from: a */\n void mo13375a(boolean z, int i, int i2, List<C15929a> list);\n\n /* renamed from: a */\n void mo13376a(boolean z, int i, BufferedSource bufferedSource, int i2) throws IOException;\n\n /* renamed from: a */\n void mo13377a(boolean z, C15943j c15943j);\n }", "public interface C4740t {\n /* renamed from: a */\n void mo25261a(Context context);\n\n /* renamed from: a */\n boolean mo25262a(int i);\n\n /* renamed from: a */\n boolean mo25263a(String str, String str2, boolean z, int i, int i2, int i3, boolean z2, C4619b bVar, boolean z3);\n\n /* renamed from: b */\n byte mo25264b(int i);\n\n /* renamed from: c */\n boolean mo25265c();\n\n /* renamed from: c */\n boolean mo25266c(int i);\n}", "public interface C2672h {\n /* renamed from: a */\n void mo1927a(NLPResponseData nLPResponseData);\n\n /* renamed from: a */\n void mo1931a(C2848p c2848p);\n\n /* renamed from: a */\n void mo1932a(String str);\n\n /* renamed from: b */\n void mo1933b(int i);\n\n /* renamed from: b */\n void mo1934b(String str);\n\n /* renamed from: c */\n void mo1935c(String str);\n\n /* renamed from: i */\n void mo1940i();\n\n /* renamed from: j */\n void mo1941j();\n\n /* renamed from: k */\n void mo1942k();\n\n /* renamed from: l */\n void mo1943l();\n}", "interface C4571et<T> {\n /* renamed from: a */\n int mo16684a(T t);\n\n /* renamed from: a */\n T mo16685a();\n\n /* renamed from: a */\n void mo16686a(T t, C4570es esVar, C4499ch chVar) throws IOException;\n\n /* renamed from: a */\n void mo16687a(T t, C4621gg ggVar) throws IOException;\n\n /* renamed from: a */\n boolean mo16688a(T t, T t2);\n\n /* renamed from: b */\n int mo16689b(T t);\n\n /* renamed from: b */\n void mo16690b(T t, T t2);\n\n /* renamed from: c */\n void mo16691c(T t);\n\n /* renamed from: d */\n boolean mo16692d(T t);\n}", "public interface se {\n void a(List<POI> list);\n\n boolean a();\n\n void b();\n\n boolean c();\n\n List<POI> d();\n\n POI e();\n\n POI f();\n}", "void method1();", "public interface class_25 {\r\n\r\n // $FF: renamed from: b (int, int) boolean\r\n boolean method_103(int var1, int var2);\r\n\r\n // $FF: renamed from: c (int, int) gI\r\n class_1069 method_104(int var1, int var2);\r\n\r\n // $FF: renamed from: d (int, int) gI\r\n class_1069 method_105(int var1, int var2);\r\n\r\n // $FF: renamed from: b (gG, int, int) void\r\n void method_106(class_25 var1, int var2, int var3);\r\n\r\n // $FF: renamed from: b (boolean, vu) boolean\r\n boolean method_107(boolean var1, class_81 var2);\r\n\r\n // $FF: renamed from: a () boolean\r\n boolean method_108();\r\n\r\n // $FF: renamed from: b () boolean\r\n boolean method_109();\r\n\r\n // $FF: renamed from: c () java.lang.String\r\n String method_110();\r\n\r\n // $FF: renamed from: b (as, int, int, int) java.util.List\r\n List method_111(class_922 var1, int var2, int var3, int var4);\r\n\r\n // $FF: renamed from: b (ahb, java.lang.String, int, int, int) dd\r\n class_1034 method_112(ahb var1, String var2, int var3, int var4, int var5);\r\n\r\n // $FF: renamed from: d () int\r\n int method_113();\r\n\r\n // $FF: renamed from: f (int, int) void\r\n void method_114(int var1, int var2);\r\n\r\n // $FF: renamed from: e () void\r\n void method_115();\r\n}", "public interface C0141g {\n /* renamed from: a */\n void mo84a();\n\n /* renamed from: a */\n void mo85a(int i);\n\n /* renamed from: a */\n void mo86a(C0163d c0163d);\n\n /* renamed from: a */\n void mo87a(String str);\n\n /* renamed from: a */\n void mo88a(byte[] bArr, int i, int i2);\n\n /* renamed from: b */\n C0139e mo89b();\n}", "public interface b {\n void a(int i, String str, String str2, String str3);\n\n void a(long j);\n }", "public interface C20288m {\n /* renamed from: a */\n int mo54403a(String str, String str2);\n\n /* renamed from: a */\n List<DownloadInfo> mo54404a(String str);\n\n /* renamed from: a */\n void mo54405a();\n\n /* renamed from: a */\n void mo54406a(int i);\n\n /* renamed from: a */\n void mo54407a(int i, int i2);\n\n /* renamed from: a */\n void mo54408a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo54409a(int i, int i2, int i3, long j);\n\n /* renamed from: a */\n void mo54410a(int i, int i2, long j);\n\n /* renamed from: a */\n void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: a */\n void mo54412a(int i, Notification notification);\n\n /* renamed from: a */\n void mo54413a(int i, C20254v vVar);\n\n /* renamed from: a */\n void mo54414a(int i, List<DownloadChunk> list);\n\n /* renamed from: a */\n void mo54415a(int i, boolean z);\n\n /* renamed from: a */\n void mo54416a(C20211ac acVar);\n\n /* renamed from: a */\n void mo54417a(DownloadChunk downloadChunk);\n\n /* renamed from: a */\n void mo54418a(DownloadTask downloadTask);\n\n /* renamed from: a */\n void mo54419a(List<String> list);\n\n /* renamed from: a */\n void mo54420a(boolean z, boolean z2);\n\n /* renamed from: a */\n boolean mo54421a(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n DownloadInfo mo54422b(String str, String str2);\n\n /* renamed from: b */\n List<DownloadInfo> mo54423b(String str);\n\n /* renamed from: b */\n void mo54424b(int i);\n\n /* renamed from: b */\n void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: b */\n void mo54426b(int i, List<DownloadChunk> list);\n\n /* renamed from: b */\n void mo54427b(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n void mo54428b(DownloadTask downloadTask);\n\n /* renamed from: b */\n boolean mo54429b();\n\n /* renamed from: c */\n List<DownloadInfo> mo54430c(String str);\n\n /* renamed from: c */\n boolean mo54431c();\n\n /* renamed from: c */\n boolean mo54432c(int i);\n\n /* renamed from: c */\n boolean mo54433c(DownloadInfo downloadInfo);\n\n /* renamed from: d */\n List<DownloadInfo> mo54434d(String str);\n\n /* renamed from: d */\n void mo54435d();\n\n /* renamed from: d */\n void mo54436d(int i);\n\n /* renamed from: e */\n void mo54437e(int i);\n\n /* renamed from: e */\n boolean mo54438e();\n\n /* renamed from: f */\n long mo54439f(int i);\n\n /* renamed from: f */\n void mo54440f();\n\n /* renamed from: g */\n int mo54441g(int i);\n\n /* renamed from: g */\n boolean mo54442g();\n\n /* renamed from: h */\n boolean mo54443h(int i);\n\n /* renamed from: i */\n DownloadInfo mo54444i(int i);\n\n /* renamed from: j */\n List<DownloadChunk> mo54445j(int i);\n\n /* renamed from: k */\n void mo54446k(int i);\n\n /* renamed from: l */\n void mo54447l(int i);\n\n /* renamed from: m */\n void mo54448m(int i);\n\n /* renamed from: n */\n boolean mo54449n(int i);\n\n /* renamed from: o */\n int mo54450o(int i);\n\n /* renamed from: p */\n boolean mo54451p(int i);\n\n /* renamed from: q */\n void mo54452q(int i);\n\n /* renamed from: r */\n boolean mo54453r(int i);\n\n /* renamed from: s */\n C20254v mo54454s(int i);\n\n /* renamed from: t */\n C20259y mo54455t(int i);\n\n /* renamed from: u */\n C20241o mo54456u(int i);\n}", "interface M1 {\n\t\t void s1();\n\t\t void s2();\n\t}", "public void methodA();", "private boolean methodEqueals(Method m1, Method m2) {\n\t\tif (m1.getName() == m2.getName()) {\n\t\t\tif (!m1.getReturnType().equals(m2.getReturnType()))\n\t\t\t\treturn false;\n\t\t\tClass<?>[] params1 = m1.getParameterTypes();\n\t\t\tClass<?>[] params2 = m2.getParameterTypes();\n\t\t\tif (params1.length == params2.length) {\n\t\t\t\tfor (int i = 0; i < params1.length; i++) {\n\t\t\t\t\tif (params1[i] != params2[i])\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "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 interface C0846s {\n CharSequence mo676a();\n\n void mo677a(int i);\n\n void mo678a(Drawable drawable);\n\n void mo679a(Callback callback);\n\n void mo680a(CharSequence charSequence);\n\n void mo681b(int i);\n}", "public interface C30793j {\n /* renamed from: a */\n void mo80452a();\n\n /* renamed from: a */\n void mo80453a(Message message);\n\n /* renamed from: a */\n void mo80454a(File file, long j);\n\n /* renamed from: b */\n void mo80455b();\n\n /* renamed from: b */\n void mo80456b(Message message);\n\n /* renamed from: c */\n void mo80457c();\n}", "public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}", "public void method1() {\n }", "public interface C28392h {\n /* renamed from: a */\n void mo72111a();\n\n /* renamed from: a */\n void mo72112a(float f);\n\n /* renamed from: b */\n void mo72113b();\n\n /* renamed from: c */\n void mo72114c();\n\n /* renamed from: d */\n boolean mo72115d();\n\n void dismiss();\n}", "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}", "public interface ICommonAction {\n\n void obtainData(Object data, String methodIndex, int status,Map<String, String> parameterMap);\n\n\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "public static void main(String[] args) {\n\t\tOverloadingType1 ot1 = new OverloadingType1();\n\t\tshort a=3, b=6;\n\t\tot1.add(2, 3);\n\t\tot1.add(a, b);\n\t\tot1.add(a);\n\t\t\n\t\t\n\t}", "public interface BusinessBar {\n String bar(String message);\n String bar2(String message);\n\n}", "public interface C1061nc extends IInterface {\n /* renamed from: a */\n String mo2800a();\n\n /* renamed from: a */\n String mo2801a(String str);\n\n /* renamed from: a */\n void mo2802a(String str, boolean z);\n\n /* renamed from: a */\n boolean mo2803a(boolean z);\n}", "public void method2();", "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 a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\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 void method(){}", "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 AmbiguousMethodException() {\n super();\n }", "public static void main(String[] args) {\n\t\tP92_Overloading_Sample obj=new P92_Overloading_Sample();\n\t\tSystem.out.println(obj.add());//30\n\t\tSystem.out.println(obj.add(500));//530\n\t\tSystem.out.println(obj.add(200, 300.9f));//500\n\t\tSystem.out.println(obj.add(55, 500));//555\n\t}", "void method25()\n {\n }", "public abstract String[] getMethodNames();", "public interface MethodsHttpUtils {\n HttpResponse doGet(String url, String mediaType) throws AppServerNotAvailableException, IOException;\n HttpResponse doPost(String url, String mediaType, String dataJson) throws UnsupportedEncodingException, ClientProtocolException, AppServerNotAvailableException;\n HttpResponse doDelete(String url, String mediaType) throws AppServerNotAvailableException;\n HttpResponse doPut(String url, String mediaType, String dataJson) throws AppServerNotAvailableException;\n}", "public void method_213(String var1) {}", "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 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}", "public void b(int paramInt1, int paramInt2) {}", "public void b(int paramInt1, int paramInt2) {}", "MethodName getMethod();", "abstract void method();", "interface C3069a {\n @C0193h0\n /* renamed from: a */\n Bitmap mo12204a(int i, int i2, Config config);\n\n /* renamed from: a */\n void mo12205a(Bitmap bitmap);\n\n /* renamed from: a */\n void mo12206a(byte[] bArr);\n\n /* renamed from: a */\n void mo12207a(int[] iArr);\n\n /* renamed from: a */\n int[] mo12208a(int i);\n\n /* renamed from: b */\n byte[] mo12209b(int i);\n }", "public static void main(String[] args) {\n\n MethodOverloading mo = new MethodOverloading();\n mo.sum();\n int s1 = mo.sum(4,9,7);\n System.out.println(\"With three params sum is : \"+s1);\n int s2 = mo.sum(6,8);\n System.out.println(\"With two params sum is : \"+s2);\n\n }", "static void method1()\r\n {\n }", "public interface aqi {\n void a(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void b(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void q();\n\n void r();\n}", "void method(String string);", "public interface HappyMethods {\n\n boolean isHappy(Ticket ticket);\n\n}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "interface Interface1 {\n\n\tdefault void add() {\n\t\tSystem.out.println(\"Interface1 add method\");\n\t}\n\n\tdefault void display() {\n\t\tSystem.out.println(\"Interface1 display\");\n\t}\n\n\t//static methods can be invoked only using InterfaceName.methodName\n\tstatic void print() {\n\t\tSystem.out.println(\"Interface1 print\");\n\t}\n\n\tstatic void printV2() {\n\t\tSystem.out.println(\"Interface1 printV2\");\n\t}\n}", "void method_52(Message var1);", "public interface APIClient {\n\n\t// regular expression to parse the action name\n\tPattern actionNamePattern = Pattern.compile(\"violet\\\\.([\\\\w]+)\\\\.([\\\\w]+)\");\n\n\t/**\n\t * The simplest type of call when only one parameter is needed Works only if\n\t * Action type is GET (no side effects)\n\t * \n\t * @param actionName\n\t * @param inMainParamValue\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(String actionName, String inMainParamValue) throws APIException;\n\n\t/**\n\t * A more sophisticated call when multiple structured parameters must be\n\t * passed\n\t * \n\t * @param actionName\n\t * @param inParam\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(ActionType actionType, String actionName, Map<String, Object> inParams) throws APIException;\n\n}", "@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}", "public interface C1481i {\n /* renamed from: a */\n Bitmap mo6659a(Context context, String str, C1492a aVar);\n\n /* renamed from: a */\n void mo6660a(Context context, String str, ImageView imageView, C1492a aVar);\n\n /* renamed from: a */\n void mo6661a(boolean z);\n}", "interface PureAbstract {\n void method1();\n long method2(long a, long b);\n}", "public interface MethodInteraction {\n\n void onMethodEdit(Method method, String newBody);\n\n void onMethodDrag(RecyclerView.ViewHolder holder);\n}", "private void handleActionFoo(String param1, String param2){\n\t// TODO: Handle action Foo\n\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n }" ]
[ "0.65231603", "0.6434375", "0.6355994", "0.6236812", "0.6220885", "0.6150433", "0.6147845", "0.60281384", "0.5992894", "0.5966725", "0.59309196", "0.5897549", "0.5891495", "0.5888608", "0.5886714", "0.5884485", "0.5849528", "0.5828783", "0.5821997", "0.5794314", "0.57698554", "0.5763562", "0.5763259", "0.575817", "0.57525855", "0.5734759", "0.57238495", "0.57183623", "0.5689643", "0.56749725", "0.5672639", "0.566685", "0.5666561", "0.56534696", "0.5640336", "0.56365454", "0.56272846", "0.56213117", "0.561716", "0.5608308", "0.56073743", "0.5592237", "0.55897784", "0.55730265", "0.55704314", "0.557034", "0.5568376", "0.55653", "0.55583435", "0.5552656", "0.55420554", "0.5533494", "0.55315286", "0.5526782", "0.5521452", "0.5517571", "0.5514188", "0.55015856", "0.54997563", "0.54994816", "0.5498988", "0.5473999", "0.54725057", "0.54680526", "0.5467712", "0.54606116", "0.5458682", "0.5457778", "0.54560864", "0.54559004", "0.5452835", "0.545243", "0.54499775", "0.5440649", "0.5438446", "0.5437606", "0.54314226", "0.5429672", "0.542901", "0.5415753", "0.540997", "0.54042053", "0.5402208", "0.5402208", "0.540132", "0.54002476", "0.54001117", "0.53940654", "0.5390507", "0.53817534", "0.53801316", "0.53714406", "0.5371228", "0.5370084", "0.5358447", "0.53539187", "0.53533447", "0.535082", "0.5349551", "0.5348291", "0.5347127" ]
0.0
-1
Takes a drive and turn value and converts it to motor values. This also excepts a scaling boolean
public void driveArcade(double drive, double turn, boolean slowState) { leftMotor.setPower(Range.clip((drive + turn) * (slowState ? DRIVE_SLOW_SPEED_SCALE : DRIVE_FULL_SPEED_SCALE), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); rightMotor.setPower(Range.clip((drive - turn) * (slowState ? DRIVE_SLOW_SPEED_SCALE : DRIVE_FULL_SPEED_SCALE), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void driveArcade(double drive, double turn) { //Takes a drive and turn value and converts it to motor values.\n leftMotor.setPower(Range.clip((drive + turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED));\n rightMotor.setPower(Range.clip((drive - turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED));\n }", "double scale_motor_power(double p_power) //Scales joystick value to output appropriate motor power\n {Scales joystick value to output appropriate motor power\n { //Use like \"scale_motor_power(gamepad1.left_stick_x)\"\n //\n // Assume no scaling.\n //\n double l_scale = 0.0;\n\n //\n // Ensure the values are legal.\n //\n double l_power = Range.clip(p_power, -1, 1);\n\n double[] l_array =\n {0.00, 0.05, 0.09, 0.10, 0.12\n , 0.15, 0.18, 0.24, 0.30, 0.36\n , 0.43, 0.50, 0.60, 0.72, 0.85\n , 1.00, 1.00\n };\n\n //\n // Get the corresponding index for the specified argument/parameter.\n //\n int l_index = (int) (l_power * 16.0);\n if (l_index < 0) {\n l_index = -l_index;\n } else if (l_index > 16) {\n l_index = 16;\n }\n\n if (l_power < 0) {\n l_scale = -l_array[l_index];\n } else {\n l_scale = l_array[l_index];\n }\n\n return l_scale;\n\n }", "public boolean encoderDrive(int encoderDelta, driveStyle drive, double motorPower, double timeout, DcMotor[] motors)\n {\n\n\n switch(drive)\n {\n case FORWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, -motorPower, 0)[0]);\n motors[1].setPower(setPower(0, -motorPower, 0)[1]);\n motors[2].setPower(setPower(0, -motorPower, 0)[2]);\n motors[3].setPower(setPower(0, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n\n\n }\n\n case BACKWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, motorPower, 0)[0]);\n motors[1].setPower(setPower(0, motorPower, 0)[1]);\n motors[2].setPower(setPower(0, motorPower, 0)[2]);\n motors[3].setPower(setPower(0, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (encoderReadingLB - encoderDelta))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_RIGHT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, -motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() >= (-encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_LEFT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() <= (encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, -motorPower)[0]);\n motors[1].setPower(setPower(0, 0, -motorPower)[1]);\n motors[2].setPower(setPower(0, 0, -motorPower)[2]);\n motors[3].setPower(setPower(0, 0, -motorPower)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, motorPower)[0]);\n motors[1].setPower(setPower(0, 0, motorPower)[1]);\n motors[2].setPower(setPower(0, 0, motorPower)[2]);\n motors[3].setPower(setPower(0, 0, motorPower)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n\n }\n\n return true;\n }", "public void mecanumDrive(double forward, double turn, double strafe, double multiplier) {\n double vd = Math.hypot(forward, strafe);\n double theta = Math.atan2(forward, strafe) - (Math.PI / 4);\n turnPower = turn;\n\n// if(forward == 0 && strafe == 0 && turn == 0) {\n// Time.reset();\n// }\n//\n// double accLim = (Time.time()/1.07)*((0.62*Math.pow(Time.time(), 2))+0.45);\n//\n// if(forward < 0 || turn < 0 || strafe < 0) {\n//\n// }\n//\n// if(turn == 0) {\n// targetAngle = getImuAngle();\n// turnPower = pid.run(0.001, 0, 0, 10, targetAngle);\n// } else {\n// targetAngle = getImuAngle();\n// }\n\n double[] v = {\n vd * Math.sin(theta) - turnPower,\n vd * Math.cos(theta) + turnPower,\n vd * Math.cos(theta) - turnPower,\n vd * Math.sin(theta) + turnPower\n };\n\n double[] motorOut = {\n multiplier * (v[0] / 1.07) * ((0.62 * Math.pow(v[0], 2)) + 0.45),\n multiplier * (v[1] / 1.07) * ((0.62 * Math.pow(v[1], 2)) + 0.45),\n multiplier * (v[2] / 1.07) * ((0.62 * Math.pow(v[2], 2)) + 0.45),\n multiplier * (v[3] / 1.07) * ((0.62 * Math.pow(v[3], 2)) + 0.45)\n };\n\n fr.setPower(motorOut[0]);\n fl.setPower(motorOut[1]);\n br.setPower(motorOut[2]);\n bl.setPower(motorOut[3]);\n }", "public void adjustShooterAngleManual() {\n\n // If the driver pushes the Square Button on the PS4 Controller,\n // set the worm drive motors to go backwards (lower it).\n if (PS4.getRawButton(PS4_X_BUTTON) == true) {\n\n wormDriveMotors.set(-0.2);\n\n // If the driver pushes the Triangle Button on the PS4 Controller,\n // set the worm drive motors to go forwards (raise it up).\n } else if (PS4.getRawButton(PS4_SQUARE_BUTTON) == true) {\n\n wormDriveMotors.set(0.4);\n }\n\n // If the driver is an idiot and is pressing BOTH the Square Button AND the\n // Triangle Button at the same time, OR (||) if the driver is pushing neither\n // button, set the motor speed to 0.\n else if (((PS4.getRawButton(PS4_X_BUTTON) == true) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == true))\n || ((PS4.getRawButton(PS4_X_BUTTON) == false) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == false))) {\n\n wormDriveMotors.set(0);\n }\n\n }", "public void operatorDrive() {\n\n changeMode();\n checkForGearShift();\n\n if (Robot.rightJoystick.getRawButton(1)) {\n currentMode = DriveMode.AUTO;\n\n } else if (Robot.rightJoystick.getRawButton(2)) {\n currentMode = DriveMode.CLIMB;\n } else {\n currentMode = DEFAULT_MODE;\n }\n\n isDeploying = false;\n\n if (currentMode == DriveMode.AUTO) {\n currentMode_s = \"Auto\";\n } else if (currentMode == DriveMode.ARCADE) {\n currentMode_s = \"Arcade\";\n } else {\n currentMode_s = \"Tank\";\n }\n\n double leftY = 0;\n double rightY = 0;\n\n switch (currentMode) {\n\n case AUTO:\n rotateCam(4, Robot.visionTargetInfo.visionPixelX);\n\n // driveFwd(4, .25);\n\n break;\n\n case CLIMB:\n\n climb();\n\n break;\n\n case ARCADE:\n resetAuto();\n double linear = 0;\n double turn = 0;\n\n if (Math.abs(Robot.rightJoystick.getY()) > deadband) {\n linear = -Robot.rightJoystick.getY();\n }\n if (Math.abs(Robot.leftJoystick.getX()) > deadband) {\n turn = Math.pow(Robot.leftJoystick.getX(), 3);\n }\n\n leftY = -linear - turn;\n rightY = linear - turn;\n if (!isShifting) {\n assignMotorPower(rightY, leftY);\n } else {\n\n assignMotorPower(0, 0);\n }\n\n break;\n\n case TANK:\n\n resetAuto();\n if (Math.abs(Robot.rightJoystick.getY()) > deadband) {\n rightY = -Math.pow(Robot.rightJoystick.getY(), 3 / 2);\n }\n if (Math.abs(Robot.leftJoystick.getY()) > deadband) {\n leftY = Math.pow(Robot.leftJoystick.getY(), 3 / 2);\n }\n if (!isShifting) {\n assignMotorPower(rightY, leftY);\n } else {\n\n assignMotorPower(0, 0);\n }\n break;\n\n default:\n break;\n }\n\n updateTelemetry();\n }", "public void updateDrive () {\n leftCurrSpeed = scale (leftCurrSpeed, leftTargetSpeed, Constants.Drivetrain.ACCELERATION_SCALING, Constants.Drivetrain.ACCELERATION_THRESHOLD);\n rightCurrSpeed = scale (rightCurrSpeed, rightTargetSpeed, Constants.Drivetrain.ACCELERATION_SCALING, Constants.Drivetrain.ACCELERATION_THRESHOLD);\n driveRaw (leftCurrSpeed, rightCurrSpeed);\n }", "public static void driveMode(){\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Intake Disabled:\", Intake.intakeDisabled);\n\t\tSmartDashboard.putNumber(\"motorSpeed\", Intake.intakeMotorSpeed);\n\t\tSmartDashboard.putNumber(\"conveyorMotorSpeed\", Score.conveyorMotorSpeed);\n\t\tSmartDashboard.putBoolean(\"Intake Motor Inverted?:\", Actuators.getFuelIntakeMotor().getInverted());\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\n\t\t\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putNumber(\"Total Current Draw:\", SensorsDio.PDPCurrent(Sensors.getPowerDistro()));\n\n\t\n\t//TODO: Add Gear Vibrations for both controllers\n\t//Vibration Feedback\n\t\t//Sets the Secondary to vibrate if climbing motor is going to stall\n\t\tVibrations.climbStallVibrate(Constants.MAX_RUMBLE);\t\n\t\t//If within the second of TIME_RUMBLE then both controllers are set to HALF_RUMBLE\n\t\tVibrations.timeLeftVibrate(Constants.HALF_RUMBLE, Constants.TIME_RUMBLE);\t\n\t\t\n\t}", "public void restoreValues() {\n drive_control.stopDriving();\n if (ACTUAL_DIFICULTY == EASY)\n drive_control.setSpeedScale(EASY_BASE_SPEED);\n if (ACTUAL_DIFICULTY == MEDIUM)\n drive_control.setSpeedScale(MEDIUM);\n if (ACTUAL_DIFICULTY == HARD)\n drive_control.setSpeedScale(HARD);\n drive_control.startDriving(getContext(), DriveControl.JOY_STICK);\n isUserControlAct = true;\n }", "public void armDrive(double pivValue, double fwdValue){\n if (pivValue!=0) {\n pivValue = pivValue / 6;\n left_drive.setPower(pivValue);\n right_drive.setPower(-pivValue);\n }else {\n fwdValue = fwdValue / 6;\n left_drive.setPower(fwdValue);\n right_drive.setPower(fwdValue);\n }\n\n }", "public void tankDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set(joystickRYAxis);\n\t\t\tmotorRF.set(joystickRYAxis);\n\t\t\tmotorLB.set(-joystickLYAxis);\n\t\t\tmotorLF.set(-joystickLYAxis);\n\n\t\t} else {\n\t\t\tmotorRB.set(joystickRYAxis/2);\n\t\t\tmotorRF.set(joystickRYAxis/2);\n\t\t\tmotorLB.set(-joystickLYAxis/2);\n\t\t\tmotorLF.set(-joystickLYAxis/2);\n\t\t\t//System.out.println(strongBad.motorMultiplier);\n\t\t\t//SmartDashboard.putNumber(\"MM2\", strongBad.motorMultiplier);\n\n\t\t}\n\t}", "public void moveBot(double drive, double rotate, double strafe, double scaleFactor)\n {\n double wheelSpeeds[] = new double[4];\n\n wheelSpeeds[0] = drive - rotate - strafe; // Right Read\n wheelSpeeds[1] = drive - rotate + strafe; // Right Front\n wheelSpeeds[2] = drive + rotate + strafe; // Left Rear\n wheelSpeeds[3] = drive + rotate - strafe; // Left Front\n // Find the magnitude of the first element in the array\n double maxMagnitude = Math.abs(wheelSpeeds[0]);\n // If any of the other wheel speeds are bigger, save that value in maxMagnitude\n for (int i = 1; i < wheelSpeeds.length; i++)\n {\n double magnitude = Math.abs(wheelSpeeds[i]);\n if (magnitude > maxMagnitude)\n {\n maxMagnitude = magnitude;\n }\n }\n // Normalize all of the magnitudes to below 1\n if (maxMagnitude > 1.0)\n {\n for (int i = 0; i < wheelSpeeds.length; i++)\n {\n wheelSpeeds[i] /= maxMagnitude;\n }\n }\n\n // Compare last wheel speeds to commanded wheel speeds and ramp as necessary\n for (int i = 0; i < lastwheelSpeeds.length; i++){\n // If the commanded speed value is more than SPEED_INCREMENT away from the last known wheel speed\n if (Math.abs(wheelSpeeds[i] - lastwheelSpeeds[i]) > SPEED_INCREMENT){\n // Set the current wheel speed to the last wheel speed plus speed increment in the signed directin of the difference\n wheelSpeeds[i] = lastwheelSpeeds[i] + Math.copySign(SPEED_INCREMENT,wheelSpeeds[i] - lastwheelSpeeds[i]);\n }\n }\n\n // Send the normalized values to the wheels, further scaled by the user\n rightRearDrive.setPower(wheelSpeeds[0] * scaleFactor);\n rightFrontDrive.setPower(wheelSpeeds[1] * scaleFactor);\n leftRearDrive.setPower(wheelSpeeds[2] * scaleFactor);\n leftFrontDrive.setPower(wheelSpeeds[3] * scaleFactor);\n\n // Save the last wheel speeds to assist in ramping\n for (int i = 0; i < lastwheelSpeeds.length; i++){\n lastwheelSpeeds[i] = wheelSpeeds[i];\n }\n }", "private void calculateMotorOutputs(int angle, int strength) {\n Point cart_point = polarToCart(angle,strength);\n\n final double max_motor_speed = 1024.0;\n final double min_motor_speed = 600.0;\n\n final double max_joy_val = 100;\n\n final double fPivYLimit = 24.0; // 32.0 was originally recommended\n\n // TEMP VARIABLES\n double nMotPremixL; // Motor (left) premixed output (-100..+99)\n double nMotPremixR; // Motor (right) premixed output (-100..+99)\n int nPivSpeed; // Pivot Speed (-100..+99)\n double fPivScale; // Balance scale b/w drive and pivot ( 0..1 )\n\n\n // Calculate Drive Turn output due to Joystick X input\n if (cart_point.y >= 0) {\n // Forward\n nMotPremixL = (cart_point.x>=0)? max_joy_val : (max_joy_val + cart_point.x);\n nMotPremixR = (cart_point.x>=0)? (max_joy_val - cart_point.x) : max_joy_val;\n } else {\n // Reverse\n nMotPremixL = (cart_point.x>=0)? (max_joy_val - cart_point.x) : max_joy_val;\n nMotPremixR = (cart_point.x>=0)? max_joy_val : (max_joy_val + cart_point.x);\n }\n\n // Scale Drive output due to Joystick Y input (throttle)\n nMotPremixL = nMotPremixL * cart_point.y/max_joy_val;\n nMotPremixR = nMotPremixR * cart_point.y/max_joy_val;\n\n // Now calculate pivot amount\n // - Strength of pivot (nPivSpeed) based on Joystick X input\n // - Blending of pivot vs drive (fPivScale) based on Joystick Y input\n nPivSpeed = cart_point.x;\n fPivScale = (Math.abs(cart_point.y)>fPivYLimit)? 0.0 : (1.0 - Math.abs(cart_point.y)/fPivYLimit);\n\n // Calculate final mix of Drive and Pivot, produces normalised values between -1 and 1\n double motor_a_prescale = ( (1.0-fPivScale)*nMotPremixL + fPivScale*( nPivSpeed) ) /100;\n double motor_b_prescale = ( (1.0-fPivScale)*nMotPremixR + fPivScale*(-nPivSpeed) ) /100;\n\n // convert normalised values to usable motor range\n motor_a = (int)( motor_a_prescale * (max_motor_speed - min_motor_speed) + (Math.signum(motor_a_prescale)*min_motor_speed) );\n motor_b = (int)( motor_b_prescale * (max_motor_speed - min_motor_speed) + (Math.signum(motor_b_prescale)*min_motor_speed) );\n\n }", "public void arcadeDrive(double moveValue, double rotateValue, boolean squaredInputs) {\n // local variables to hold the computed PWM values for the motors\n double leftMotorSpeed;\n double rightMotorSpeed;\n\n if (squaredInputs) {\n // square the inputs (while preserving the sign) to increase fine control while permitting full power\n if (moveValue >= 0.0) {\n moveValue = (moveValue * moveValue);\n } else {\n moveValue = -(moveValue * moveValue);\n }\n if (rotateValue >= 0.0) {\n rotateValue = (rotateValue * rotateValue);\n } else {\n rotateValue = -(rotateValue * rotateValue);\n }\n }\n\n if (moveValue > 0.0) {\n if (rotateValue > 0.0) {\n leftMotorSpeed = moveValue - rotateValue;\n rightMotorSpeed = Math.max(moveValue, rotateValue);\n } else {\n leftMotorSpeed = Math.max(moveValue, -rotateValue);\n rightMotorSpeed = moveValue + rotateValue;\n }\n } else {\n if (rotateValue > 0.0) {\n leftMotorSpeed = -Math.max(-moveValue, rotateValue);\n rightMotorSpeed = moveValue + rotateValue;\n } else {\n leftMotorSpeed = moveValue - rotateValue;\n rightMotorSpeed = -Math.max(-moveValue, -rotateValue);\n }\n }\n\n tankDrive(leftMotorSpeed, rightMotorSpeed);\n }", "@Override\n public void set(double value)\n {\n final String funcName = \"set\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", value);\n }\n\n if (!TrcUtil.inRange(value, -1.0, 1.0))\n {\n throw new IllegalArgumentException(\"Value must be in the range of -1.0 to 1.0.\");\n }\n\n if (softLowerLimitEnabled && value < 0.0 && getPosition() <= softLowerLimit\n || softUpperLimitEnabled && value > 0.0 && getPosition() >= softUpperLimit)\n {\n value = 0.0;\n }\n\n if (maxVelocity == 0.0)\n {\n currPower = value;\n }\n // else\n // {\n // controlMode = ControlMode.Velocity;\n // value *= maxVelocity;\n // value = TrcUtil.round(value); // Velocity mode is in sensor units/100ms, and sensor units are in integers.\n // }\n motor.set(value);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", value);\n }\n }", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "public void encoderDrive(double speed, double aInches, double bInches, double cInches, double dInches) {\n double ad = 720 * (aInches / 12.57);\n int aDistance = (int) ad;\n double bd = 720 * (bInches / 12.57);\n int bDistance = (int) bd;\n double cd = 720 * (cInches / 12.57);\n int cDistance = (int) cd;\n double dd = 720 * (dInches / 12.57);\n int dDistance = (int) dd;\n\n aDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n aDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n bDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n cDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n cDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n dDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n dDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n aDrive.setTargetPosition(aDistance);\n bDrive.setTargetPosition(bDistance);\n cDrive.setTargetPosition(cDistance);\n dDrive.setTargetPosition(dDistance);\n aDrive.setPower(speed);\n bDrive.setPower(speed);\n cDrive.setPower(speed);\n dDrive.setPower(speed);\n\n while (aDrive.isBusy() && bDrive.isBusy() && cDrive.isBusy() && dDrive.isBusy() && opModeIsActive()) {\n idle();\n }\n aDrive.setPower(0);\n bDrive.setPower(0);\n cDrive.setPower(0);\n dDrive.setPower(0);\n }", "public void arcadeDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t} else {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t}\n\t}", "private void visionDrive(double throttle) {\n if(limelight.isValidTarget()) {\n// DriverStation.reportWarning(\"\"+SmartDashboard.getNumber(\"Vision P\", Constants.visionDriveP),false);\n// visionDrive.setP(SmartDashboard.getNumber(\"Vision P\", Constants.visionDriveP));\n// visionDrive.setI(SmartDashboard.getNumber(\"Vision I\", Constants.visionDriveI));\n// visionDrive.setD(SmartDashboard.getNumber(\"Vision D\", Constants.visionDriveD));\n// visionDrive.setMaxIOutput(.225);\n double error = limelight.getCenter().x;\n double output = Constants.outsideP * -error;\n if(Math.abs(error) < 4) {\n// SmartDashboard.putString(\"In PID?\", \"PID\");\n output = visionDrive.getOutput(error);\n left.set(ControlMode.PercentOutput, throttle - output);\n right.set(ControlMode.PercentOutput, throttle + output);\n// SmartDashboard.putNumber(\"PID Output\", output);\n }\n else if(Math.abs(error) < 7 && Math.abs(error) > 2){\n double val = .2;\n if (error < 0){\n// SmartDashboard.putString(\"In PID?\", \"1\");\n left.set(ControlMode.PercentOutput, -val);\n right.set(ControlMode.PercentOutput, val);\n }\n else if (error > 0){\n// SmartDashboard.putString(\"In PID?\", \"2\");\n left.set(ControlMode.PercentOutput, val);\n right.set(ControlMode.PercentOutput, -val);\n }\n }\n else if (error < 0){\n// SmartDashboard.putString(\"In PID?\", \"3\");\n left.set(ControlMode.PercentOutput, -.25);\n right.set(ControlMode.PercentOutput, .25);\n }\n else if (error > 0){\n// SmartDashboard.putString(\"In PID?\", \"4\");\n left.set(ControlMode.PercentOutput, .25);\n right.set(ControlMode.PercentOutput, -.25);\n }\n\n SmartDashboard.putNumber(\"Error\", error);\n } else {\n visionDrive.reset();\n setOutput(0, 0);\n }\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\t//For some reason, right is inverted in auto instead of left\n\t\tString start = autonomousCommand; //from smartDashboard\n\t\t//String start = \"R\";//R for right, FR for far right, L for far left\n\t\t//Starting Far Right\n\t\tif (start == \"FR\") {\n\t\t\tif(autoStep==0) {\n\t\t\t\tif (timer.get() < 3) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t//Go forward for 5 seconds\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t//stop going\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (start == \"R\") {\n\t\t\t//Starting on the right, aligned with the switch\n\t\t\tif(autoStep==0) {\n\t\t\t\tif (timer.get() < 2) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t}\n\t\t\t\tif(gameData.charAt(0) == 'R') {\n\t\t\t\t\tif(timer.get()< 4) {\n\t\t\t\t\t\tmotorLift.set(.25);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorLift.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (timer.get() < 15 && timer.get() > 7) {\n\t\t\t\t\t\t\tmotorGL.set(1);\n\t\t\t\t\t\t\tmotorGR.set(-1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorGL.set(0);\n\t\t\t\t\t\tmotorGR.set(0);\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tautoStep++;\n\t\t\t}\n\t\t}\n\t\telse if (start == \"L\") {\n\t\t//This is for starting on the far left\n\t\t\tif(autoStep == 0) {\n\t\t\t\tif (timer.get() < 2.5) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t}\n\t\t\t\tif(gameData.charAt(0) == 'L') {/**Change this to R if we start on the right side, comment out if we're on the far right or left side**/\n\t\t\t\t\trotateTo(270);\n\t\t\t\t\tif (timer.get()>3 && timer.get()<4) {\n\t\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif(timer.get()< 4) {\n\t\t\t\t\t\tmotorLift.set(.25);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorLift.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (timer.get() < 7 && timer.get() > 4) {\n\t\t\t\t\t\tmotorGL.set(1);\n\t\t\t\t\t\tmotorGR.set(-1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorGL.set(0);\n\t\t\t\t\t\tmotorGR.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tautoStep++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Default Code\n\t\t\tif (true) {\n\t\t\t\tif(autoStep==0) {\n\t\t\t\t\tif (timer.get() < 3) {\n\t\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void drive(double direction, double speed) {\n if (mode != SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.setSetpoint(direction);\n }\n \t\tmodules.get(0).setSpeed(speed * -1);\n \t\tmodules.get(1).setSpeed(speed);\n \t\tmodules.get(2).setSpeed(speed * -1);\n \t\tmodules.get(3).setSpeed(speed);\n\n\n }\n\n}", "protected void execute() {\n \tif(degrees > 0)\n \t{\n \t\tRobot.driveBase.set(ControlMode.PercentOutput, -speed, speed);\n \t}\n \telse if(degrees < 0)\n \t{\n \t\tRobot.driveBase.set(ControlMode.PercentOutput, speed, -speed);\n \t}\n \t\n }", "public void turn(TurnerIF turner, boolean runUsingEncoders, boolean stopMotors) throws InterruptedException {\n turner.start();\n\n if (runUsingEncoders) {\n runUsingEncoders();\n } else {\n runWithoutEncoders();\n }\n\n boolean keepGoing = true;\n\n double lastScaleFactor = 0;\n double lastPower = 0;\n\n while (keepGoing) {\n int positionA = fL.getCurrentPosition();\n int positionB = fR.getCurrentPosition();\n int positionC = bL.getCurrentPosition();\n int positionD = bR.getCurrentPosition();\n\n double power = turner.getPower();\n double scaleFactor = turner.getScaleFactor();\n\n// RobotLog.d(\"Robot358Main::turn()::power: \" + power);\n// RobotLog.d(\"Robot358Main::turn()::scaleFactor: \" + scaleFactor);\n\n keepGoing = turner.keepGoing(0);\n\n if (keepGoing && (power != lastPower || scaleFactor != lastScaleFactor)) {\n if (Double.isNaN(scaleFactor)) {\n keepGoing = false;\n } else {\n// RobotLog.d(\"Robot358Main::turn()::power * scaleFactor: \" + power * scaleFactor);\n\n fL.setPower(-power * scaleFactor);\n bL.setPower(-power * scaleFactor);\n fR.setPower(power * scaleFactor);\n bR.setPower(power * scaleFactor);\n }\n\n lastPower = power;\n lastScaleFactor = scaleFactor;\n }\n\n Thread.sleep(1);\n\n }\n\n if (stopMotors) {\n stopMotors();\n }\n }", "public void arcadeDrive(double[] motorValues)\n {\n arcadeDrive(motorValues[0], motorValues[1]);\n }", "private void updateLinearDrive() {\n// double rotations = (getLeftRotations() + getRightRotations()) / 2;\n// linearDriveDistance = Conversion.rotationsToInches(rotations, Constants.driveWheelDiameter);\n// double angleController = turnControl.getOutput(linearDriveMultiplier * (navX.getAngle() - linearDriveTargetAngle));\n// double driveController = driveControl.getOutput(linearDriveTargetDistance - linearDriveDistance);\n// setOutput(driveController + angleController, driveController - angleController);\n }", "void drive(double power, double leftInches, double rightInches, double seconds) {\n\n //Make new integer to set left and right motor targets\n int leftTarget;\n int rightTarget;\n\n if (opModeIsActive()) {\n\n //Determine left and right target to move to\n leftTarget = robot.leftMotor.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);\n rightTarget = robot.rightMotor.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);\n\n //Set target and move to position\n robot.leftMotor.setTargetPosition(leftTarget);\n robot.rightMotor.setTargetPosition(rightTarget);\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //Reset runtime and start motion\n robot.leftMotor.setPower(Math.abs(power));\n robot.rightMotor.setPower(Math.abs(power));\n\n //Test if motors are busy, runtime is less than timeout and motors are busy and then run code\n while (opModeIsActive() && (runtime.seconds() < seconds) && (robot.leftMotor.isBusy() && robot.rightMotor.isBusy())) {\n\n //Tell path to driver\n telemetry.addData(\"Path1\", \"Running to: \", leftTarget, rightTarget);\n telemetry.addData(\"Path2\", \"Running at: \", robot.leftMotor.getCurrentPosition(), robot.rightMotor.getCurrentPosition());\n telemetry.update();\n }\n\n //Stop motors after moved to position\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n\n //Set motors back to using run using encoder\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public void driveRobot(double Drive, double Turn) {\n // Combine drive and turn for blended motion.\n double left = Drive + Turn;\n double right = Drive - Turn;\n\n // Scale the values so neither exceed +/- 1.0\n double max = Math.max(Math.abs(left), Math.abs(right));\n if (max > 1.0)\n {\n left /= max;\n right /= max;\n }\n\n // Use existing function to drive both wheels.\n setDrivePower(left, right);\n }", "public void rdrive(double speed){\n right1.set(ControlMode.PercentOutput, -speedRamp(speed));\n right2.set(ControlMode.PercentOutput, -speedRamp(speed));\n }", "public void drive(double speed, double scaler, double deadzone){\n front.set((speed*scaler));\n rear.set((speed*scaler));\n }", "@Override\n public void processUSData(int distance) {\n filter(distance);\n int distanceDiff = BAND_CENTER - this.distance; //the difference between the actual distance and bandcenter\n \n\n //when the distanceDiff is small , no need to adjust the speeds\n if (Math.abs(distanceDiff) <= BAND_WIDTH ) {\n LEFT_MOTOR.setSpeed(MOTOR_HIGH); \n RIGHT_MOTOR.setSpeed(MOTOR_HIGH);\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.forward();\n }\n // if it is too close, back away so that the robot does not \n // touch the wall(for quick turn at the corner)\n else if (this.distance < 35) {\n LEFT_MOTOR.setSpeed(MOTOR_HIGH); \n RIGHT_MOTOR.setSpeed(MOTOR_HIGH + 40);\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.backward();\n }\n //when the difference is within the accepted range\n else if (Math.abs(distanceDiff) <= MAX_DISTANCE_DIFF ){\n //when the actual distance is larger than the bandcenter\n //turn to the left slightly\n if(distanceDiff < 0) {\n LEFT_MOTOR.setSpeed(MOTOR_HIGH - 30); \n RIGHT_MOTOR.setSpeed(MOTOR_HIGH + 30);\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.forward();\n }\n //when the actual distance is smaller than the bandcenter\n //turn to the right slightly\n else if (distanceDiff > 0) {\n LEFT_MOTOR.setSpeed(MOTOR_HIGH + 30); \n RIGHT_MOTOR.setSpeed(MOTOR_HIGH - 30);\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.forward();\n }\n }\n //when the difference is not in the accepted range\n else if (Math.abs(distanceDiff) > MAX_DISTANCE_DIFF) {\n //when the actual distance is way smaller than the bandcenter\n //make a turn to the right so that the robot is not very far from the wall\n if (distanceDiff > 0) {\n LEFT_MOTOR.setSpeed(200); \n RIGHT_MOTOR.setSpeed(100);\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.forward();\n }\n //when the actual distance is way larger than the bandcenter\n //make a wide turn to the left\n else if (distanceDiff < 0) {\n LEFT_MOTOR.setSpeed(100); \n RIGHT_MOTOR.setSpeed(200);\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.forward();\n }\n }\n }", "public void smoothMovePower(String movement, double power, double duration)\n {\n double startTime = getRuntime();\n switch(movement)\n {\n case \"forward\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power);\n robot.FR_drive.setPower(power * -1);\n robot.BL_drive.setPower(power);\n robot.BR_drive.setPower(power * -1);\n }\n break;\n\n case \"backward\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power * -1);\n robot.FR_drive.setPower(power);\n robot.BL_drive.setPower(power * -1);\n robot.BR_drive.setPower(power);\n }\n break;\n\n case \"right\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power);\n robot.FR_drive.setPower(power);\n robot.BL_drive.setPower(power * -1);\n robot.BR_drive.setPower(power * -1);\n }\n break;\n\n case \"left\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power * -1);\n robot.FR_drive.setPower(power * -1);\n robot.BL_drive.setPower(power);\n robot.BR_drive.setPower(power);\n }\n break;\n\n case \"leftTurn\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power);\n robot.FR_drive.setPower(power);\n robot.BL_drive.setPower(power);\n robot.BR_drive.setPower(power);\n }\n break;\n\n case \"rightTurn\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power * -1);\n robot.FR_drive.setPower(power * -1);\n robot.BL_drive.setPower(power * -1);\n robot.BR_drive.setPower(power * -1);\n }\n break;\n }\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }", "@Override\r\n\tpublic ObjectList<CarControl> drive(State<CarRpmState, CarControl> state) {\n\t\tdouble steer = state.state.getAngleToTrackAxis()/SimpleDriver.steerLock;\r\n//\t\tdouble speed = state.state.getSpeed();\t\t\r\n\t\tObjectList<CarControl> ol = new ObjectArrayList<CarControl>();\t\t\r\n\r\n\t\t/*if (state.state.getSpeed()>=296.8 || state.state.gear==6){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,6,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=225 || state.state.gear==5){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,5,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=176 || state.state.gear==4){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,4,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=126 || state.state.gear==3){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,3,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=83){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,2,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else \t{\r\n\t\t\tCarControl cc = new CarControl(1.0d,0,1,steer,0);\r\n\t\t\tol.add(cc);\r\n\t\t}//*/\r\n//\t\tif (speed>225){\r\n//\t\t\tCarControl cc = new CarControl(0,1,4,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t} else if (speed>126){\r\n//\t\t\tCarControl cc = new CarControl(0,0.569,3,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t} else if (speed>83){\r\n//\t\t\tCarControl cc = new CarControl(0,0.363,2,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t} else {\r\n//\t\t\tCarControl cc = new CarControl(0,0.36,1,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t}\r\n//\t\tif (speed<226.541 && speed>200){\r\n//\t\t\tol.clear();\r\n//\t\t\tCarControl cc = new CarControl(0,0.6,4,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t}\r\n\t\t//}//*/ \r\n\t\t/*if (speed<3*3.6){\r\n\t\t\tCarControl cc = new CarControl(0,1.0d,0,steer,0);\r\n\t\t\tol.add(cc);\r\n\t\t\tbrake = 1;\r\n\t\t\treturn ol;\r\n\t\t}\r\n\t\tdouble[] wheelVel = state.state.getWheelSpinVel();\r\n\t\t// convert speed to m/s\r\n\t\t\t\t\r\n\t\t// when spedd lower than min speed for abs do nothing\t\t\r\n\r\n\t\t// compute the speed of wheels in m/s\r\n\t\tdouble slip = 0.0d;\t \r\n\t\tfor (int i = 0; i < 4; i++)\t{\r\n\t\t\tslip += wheelVel[i] * SimpleDriver.wheelRadius[i]/speed;\t\t\t\r\n\t\t}\r\n\t\tslip/=4;\t\t\t\r\n\t\tif (slip==0){\r\n\t\t\tbrake = 0.25;\r\n\t\t} if (slip < 0.1) \r\n\t\t\tbrake = 0.4+slip;\r\n\t\telse brake=1;\r\n\t\tif (brake<=0.09) brake=1;\r\n\t\tbrake = Math.min(1.0, brake);\r\n\t\tSystem.out.println(slip+\" \"+brake);\r\n\t\tCarControl cc = new CarControl(0,brake,0,steer,0);\r\n\t\tol.add(cc);//*/\r\n\t\tCarControl cc = new CarControl(0,1.0d,0,steer,0);\r\n\t\tol.add(cc);\r\n\t\treturn ol;\r\n\t}", "public void setMotorBehaviors(){\n motors = new ArrayList<>();\n motors.add(rf);\n motors.add(rb);\n motors.add(lf);\n motors.add(lb);\n\n //reset motor encoders\n rf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set motor behaviors\n rf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rf.setDirection(DcMotorSimple.Direction.REVERSE);\n rb.setDirection(DcMotorSimple.Direction.REVERSE);\n relic_extension.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n lift.setDirection(DcMotorSimple.Direction.REVERSE);\n\n //Set servo behaviors\n leftWheel2.setDirection(DcMotorSimple.Direction.REVERSE);\n rightWheel1.setDirection(DcMotorSimple.Direction.REVERSE);\n\n }", "public void runMotor(Motor motor, double power) {\n\n\n switch (motor) {\n\n case LEFT_LFB:\n motorLFB.set(ControlMode.PercentOutput, power);\n break;\n case LEFT_LFT:\n motorLFT.set(ControlMode.PercentOutput, power);\n break;\n case LEFT_LBT:\n motorLBT.set(ControlMode.PercentOutput, power);\n break;\n case LEFT_LBB:\n motorLBB.set(ControlMode.PercentOutput, power);\n break;\n case RIGHT_RFB:\n motorRFB.set(ControlMode.PercentOutput, power);\n break;\n case RIGHT_RFT:\n motorRFT.set(ControlMode.PercentOutput, power);\n break;\n case RIGHT_RBT:\n motorRBT.set(ControlMode.PercentOutput, power);\n break;\n case RIGHT_RBB:\n motorRBB.set(ControlMode.PercentOutput, power);\n break;\n }\n }", "private byte drive(Vehicle v){\n\n return v.drive();\n }", "public void encoderDrive(double speed,\r\n double leftInches, \r\n double rightInches,\r\n String name) \r\n {\n int newLeftTarget = robot.leftDrive.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\r\n int newRightTarget = robot.rightDrive.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\r\n robot.leftDrive.setTargetPosition(newLeftTarget);\r\n robot.rightDrive.setTargetPosition(newRightTarget);\r\n\r\n // Turn On RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n\r\n // reset the timeout time and start motion.\r\n ElapsedTime localTimer = new ElapsedTime();\r\n localTimer.reset();\r\n robot.leftDrive.setPower(Math.abs(speed));\r\n robot.rightDrive.setPower(Math.abs(speed));\r\n\r\n // keep looping while we are still active, and there is time left, and both motors are running.\r\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\r\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\r\n // always end the motion as soon as possible.\r\n // However, if you require that BOTH motors have finished their moves before the robot continues\r\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\r\n while (localTimer.seconds() < EncoderDrive_Timeout_Second \r\n && (robot.leftDrive.isBusy() || robot.rightDrive.isBusy())) {\r\n\r\n // Display it for the driver.\r\n telemetry.addData(\"\", \"%s @ %s\", name, localTimer.toString());\r\n telemetry.addData(\"To\", \"%7d :%7d\", newLeftTarget, newRightTarget);\r\n telemetry.addData(\"At\", \"%7d :%7d\",\r\n robot.leftDrive.getCurrentPosition(),\r\n robot.rightDrive.getCurrentPosition());\r\n telemetry.update();\r\n idle();\r\n }\r\n\r\n // Stop all motion;\r\n robot.leftDrive.setPower(0);\r\n robot.rightDrive.setPower(0);\r\n\r\n // Turn off RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "private void updateMotors() {\n\t\t//Pass filtered values to ChopperStatus.\n\t\tmStatus.setMotorFields(mMotorSpeed);\n\t\tString logline = Long.toString(System.currentTimeMillis()) + \" \" + mMotorSpeed[0] + \" \" + mMotorSpeed[1] + \" \" + mMotorSpeed[2] + \" \" + mMotorSpeed[3] + \"\\n\";\n\t\ttry {\n\t\t\tif (logfile != null) {\n\t\t\t\tlogfile.write(logline);\n\t\t\t\tlogfile.flush();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t//Log.e(TAG, \"Cannot write to logfile\");\n\t\t}\n\t\t//Pass motor values to motor controller!\n\t\tMessage msg = Message.obtain();\n\t\tmsg.what = SEND_MOTOR_SPEEDS;\n\t\tmsg.obj = mMotorSpeed;\n\t\tmBt.sendMessageToHandler(msg);\n\t\t//Log.i(TAG, \"Guidance sending message.\");\n\t\t\n\t}", "public void movePower(String movement, double power, double duration)\n {\n double startTime = getRuntime();\n switch(movement)\n {\n case \"forward\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power);\n robot.FR_drive.setPower(power * -1);\n robot.BL_drive.setPower(power);\n robot.BR_drive.setPower(power * -1);\n }\n break;\n\n case \"backward\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power * -1);\n robot.FR_drive.setPower(power);\n robot.BL_drive.setPower(power * -1);\n robot.BR_drive.setPower(power);\n }\n break;\n\n case \"right\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power);\n robot.FR_drive.setPower(power);\n robot.BL_drive.setPower(power * -1);\n robot.BR_drive.setPower(power * -1);\n }\n break;\n\n case \"left\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power * -1);\n robot.FR_drive.setPower(power * -1);\n robot.BL_drive.setPower(power);\n robot.BR_drive.setPower(power);\n }\n break;\n\n case \"leftTurn\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power);\n robot.FR_drive.setPower(power);\n robot.BL_drive.setPower(power);\n robot.BR_drive.setPower(power);\n }\n break;\n\n case \"rightTurn\":\n runtime.reset();\n while (runtime.seconds() < duration)\n {\n robot.FL_drive.setPower(power * -1);\n robot.FR_drive.setPower(power * -1);\n robot.BL_drive.setPower(power * -1);\n robot.BR_drive.setPower(power * -1);\n }\n break;\n }\n stop();\n }", "public void drive(double speed){\n \t\tsetRight(speed);\n \t\tsetLeft(speed);\n \t}", "public void setMotors(final double speed, double spinnerSafetySpeedMod) {\n\n spinnerMotorCan.set(ControlMode.PercentOutput, speed);\n\n /// DEBUG CODE ///\n\n if (RobotMap.driveDebug) {\n System.out.println(\"Spinner Speed : \" + speed);\n }\n }", "void setSpeed(RobotSpeedValue newSpeed);", "private void turnToDesiredDirection() {\n\n\t\tdouble dir = sens.getDirection();\n\n\t\tif (dir < desiredDirection) {\n\t\t\tif (Math.abs(dir - desiredDirection) < 180) {\n\t\t\t\tdir += TURNSPEED;\n\t\t\t} else {\n\t\t\t\tdir -= TURNSPEED;\n\t\t\t}\n\t\t} else {\n\t\t\tif (Math.abs(dir - desiredDirection) < 180) {\n\t\t\t\tdir -= TURNSPEED;\n\t\t\t} else {\n\t\t\t\tdir += TURNSPEED;\n\t\t\t}\n\t\t}\n\t\t\n\t\tsens.setDirection(dir);\n\t\t\n\t}", "public void drive(double speed, double scaler) {\n front.set((speed*scaler));\n rear.set((speed*scaler));\n }", "private int mappingTOArduinoRange(double value) {\n int x = (int) (value * 10); // 0~10 will be 0~100\n double a = 0;\n double b = 100;\n\n double c = 0;\n double d = 200; // actually, is 80. But I want a more smooth throttle\n int mapped = (int) ((x-a)/(b-a) * (d-c) + c);\n\n if(mapped > ARDUINO_PWM_LIMIT){\n // TODO: trigger tilt alert\n mapped = ARDUINO_PWM_LIMIT;\n }\n\n return mapped;\n }", "@Override\r\n public void setServoValue(int servo, float value){\r\n checkServoCommandThread();\r\n // the message consists of\r\n // msg header: the command code (1 byte)\r\n // servo to control, 1 byte\r\n // servo PWM PCA capture-compare register value, 2 bytes, this encodes the LOW time of the PWM output\r\n // \t\t\t\tthis is send MSB, then LSB (big endian)\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[4];\r\n cmd.bytes[0]=CMD_SET_SERVO;\r\n cmd.bytes[1]=(byte)getServo(servo);\r\n byte[] b=pwmValue(value);\r\n cmd.bytes[2]=b[0];\r\n cmd.bytes[3]=b[1];\r\n submitCommand(cmd);\r\n lastServoValues[getServo(servo)]=value;\r\n }", "@Override\n public void execute() {\n swerve.drive(0, 0, \n turnPID.calculate(swerve.getHeadingDouble(), angleSetpoint) * Constants.Swerve.kMaxAngularSpeed\n , false);\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "public DriveSubsystem() {\n leftFrontMotor = new TalonSRX(RobotMap.leftFrontMotor);\n rightFrontMotor = new TalonSRX(RobotMap.rightFrontMotor);\n leftBackMotor = new TalonSRX(RobotMap.leftBackMotor);\n rightBackMotor = new TalonSRX(RobotMap.rightBackMotor);\n // rightMotor.setInverted(true); \n direction = 0.75;\n SmartDashboard.putString(\"Direction\", \"Shooter side\");\n }", "public void setDriveSpeeds(double strafe, double forward, double rotate, double angle)\n {\n \tRobotMap.robotDrive.mecanumDrive_Cartesian(strafe, forward, rotate, angle);\n \tRobotMap.robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\n \tRobotMap.robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\n\t\n }", "@Override\n protected void execute() {\n\n //directly map the speed from the joystick to the robot motor controllers. \n double leftSpeed = Robot.m_oi.leftJoystickY(Robot.m_oi.driverController);\n double rightSpeed = Robot.m_oi.rightJoystickY(Robot.m_oi.driverController);\n\n //provide a tolernce from the joystick input. \n //Some times if your not touching it it may read a very small value. We dont want the robot to think we are trying to drive it.\n double tolerance = 0.05;\n if(leftSpeed < tolerance && leftSpeed > -tolerance ){\n leftSpeed = 0.0;\n }\n if(rightSpeed < tolerance && rightSpeed > -tolerance){\n rightSpeed = 0.0;\n }\n\n //speed reduction\n if (Robot.m_oi.RB.get()) {\n releaseR = false;\n } else{\n if(releaseR == false) {\n toggleR = !toggleR;\n if (gear < MAXGEAR) {\n gear++;\n }\n releaseR = true;\n }\n }\n if (Robot.m_oi.LB.get()) {\n releaseL = false;\n } else{\n if(releaseL == false) {\n toggleL = !toggleL;\n if (gear > MINGEAR) {\n gear--;\n }\n releaseL = true;\n }\n }\n if (gear == 1){\n leftSpeed*=0.75;\n rightSpeed*=0.75;\n }\n if(gear == 2){\n leftSpeed*=0.5;\n rightSpeed*=0.5;\n }\n if(gear == 3){\n leftSpeed*=0.25;\n rightSpeed*=0.25;\n }\n Robot.WriteOut(\"Gear #: \" + gear);\n SmartDashboard.putNumber(\"gear\", gear );\n\n\n //pass the desired speed to the drive substem and make robot go!\n Robot.drive_subsystem.drive(-leftSpeed, -rightSpeed);\n }", "@Override\n public void execute() {\n //double sliderValue = -1.0 * m_xbox.getRawAxis(3);\n //sliderValue = (sliderValue /2) + 0.5;\n double joyForward = m_xbox.getRawAxis(Constants.OI.yAxis);\n double joyTurn = m_xbox.getRawAxis(Constants.OI.xAxis);\n // System.out.println(\"Y axis: \" + joyForward);\n // System.out.println(\"X axis: \" + joyTurn);\n if(Math.abs(joyForward) < 0.1 ) {\n joyForward = 0.0;\n }\n if(Math.abs(joyTurn) < 0.1) {\n joyTurn = 0.0;\n }\n m_drivetrain.setArcadeDrive(0.7*joyForward, 0.6 * joyTurn);\n // if(Math.abs(joyForward) < 0.1) {\n // m_drivetrain.setArcadeDrive(sliderValue * joyForward, joyTurn, true);\n // } else {\n // m_drivetrain.setArcadeDrive(sliderValue * joyForward, 0.8 * joyTurn, false);\n // }\n \n // 14 feet, 7 inches\n }", "@Override\n public void periodic() {\n\t\t// myDrive.\n\n\t\t// System.out.println(Robot.m_oi.getSpeed());\n\t\t// SmartDashboard.putNumber(\"Dial Output: \", Robot.m_oi.getSpeed());\n\n\t\t// //Wheel Speed Limits\n\n\t\t// SmartDashboard.putNumber(\"Front Left Percent\", myDrive.getFLSpeed());\n\t\t// SmartDashboard.putNumber(\"Front Right Percent\", myDrive.getFRSpeed());\n\t\t// SmartDashboard.putNumber(\"Rear Left Percent\", myDrive.getRLSpeed());\n\t\t// SmartDashboard.putNumber(\"Rear Right Percent\", myDrive.getRRSpeed());\n\n\t\t//Test Code for Selecting Calibration Motor \n\t\t//***COMMENT OUT BEFORE REAL GAME USE***\n\t\t// if (Robot.m_oi.getArmDown()) {\n\t\t// \t// System.out.println(\"Front Left Wheel Selected\");\n\t\t// \tWheel = 1;\n\t\t// \tSmartDashboard.putNumber(\"Wheel Selected: \", Wheel);\n\t\t\t\n\t\t// } else if (Robot.m_oi.getArmUp()) {\n\t\t// \t// System.out.println(\"Back Left Wheel Selected\");\n\t\t// \tWheel = 2;\n\t\t// \tSmartDashboard.putNumber(\"Wheel Selected: \", Wheel);\n\t\t\t\n\t\t// } else if (Robot.m_oi.getBallIn()) {\n\t\t// \t// System.out.println(\"Front Right Wheel Selected\");\n\t\t// \tWheel = 3;\n\t\t// \tSmartDashboard.putNumber(\"Wheel Selected: \", Wheel);\n\t\t\t\n\t\t// } else if (Robot.m_oi.getBallOut()) {\n\t\t// \t// System.out.println(\"Back Right Wheel Selected\");\n\t\t// \tWheel = 4;\n\t\t// \tSmartDashboard.putNumber(\"Wheel Selected: \", Wheel);\n\t\t\t\n\t\t// } else if (Robot.m_oi.getBlueButton()) {\n\t\t// \t// System.out.println(\"Back Right Wheel Selected\");\n\t\t// \tWheel = 0;\n\t\t// \tSmartDashboard.putNumber(\"Wheel Selected: \", Wheel);\n\t\t// } \n\n\t\t// if (Wheel == 1) {\n\n\t\t// \tmyDrive.setFLSpeed(Robot.m_oi.getSpeed());\n\n\t\t// } else if (Wheel == 2) {\n\n\t\t// \tmyDrive.setRLSpeed(Robot.m_oi.getSpeed());\n\n\t\t// } else if (Wheel == 3) {\n\n\t\t// \tmyDrive.setFRSpeed(Robot.m_oi.getSpeed());\n\n\t\t// } else if (Wheel == 4) {\n\n\t\t// \tmyDrive.setRRSpeed(Robot.m_oi.getSpeed());\n\n\t\t// }\n\n\t\t// if (Robot.m_oi.getSafety()) {\n\n\t\t// \tspeedLimit = 1.0;\n\t\t// \tstrafeLimit = 1.0;\n\n\t\t// } else {\n\n\t\t// \tspeedLimit = 0.5; \n\t\t// \tstrafeLimit = 0.8;\n\t\t\t\t\n\t\t// }\n\n\n\n\t\t//System.out.print (\"strafeLimit: \" + strafeLimit);\n\t\t//System.out.println(Robot.m_oi.getX() * strafeLimit);\n\n\t\t// myDrive.driveCartesian(\n\t\t// \t(Robot.m_oi.getY() * speedLimit), // set Y speed\n\t\t// \t(Robot.m_oi.getX() * strafeLimit), // set X speed\n\t\t// \t(Robot.m_oi.getRotate() * rotateLimit), // set rotation rate\n\t\t// \t0); // gyro angle \n\t\t\n\t\t//TODO: Rotate robot with vision tracking, set up curve to slow down as target approaches center.\n\t\t// if (Robot.m_oi.getStartButton()) {\n\t\t// \tmyDrive.driveCartesian(\n\t\t// \t\t (0.4), // set Rotation\n\t\t// \t\t (0.0), // set Strafe\n\t\t// \t\t (0.0), // set Forward/Back\n\t\t// \t\t 0);\n\t\t// } else {\n\t\tmyDrive.driveCartesian(\n\t\t\t(Robot.m_oi.getY() * rotateLimit), // set Y speed\n\t\t\t(Robot.m_oi.getX() * strafeLimit), // set X speed\n\t\t\t(Robot.m_oi.getRotate() * speedLimit), // set rotation rate\n\t\t\t0);\n\t\t// }\n\t\t// myDrive.driveCartesian(\n\t\t// \t(Robot.m_oi.getY()), // set Y speed\n\t\t// \t(Robot.m_oi.getX()), // set X speed\n\t\t// \t(Robot.m_oi.getRotate()), // set rotation rate\n\t\t// \t0); \n\n }", "@Override\n public void execute() {\n // Use squared inputs\n // Might want to change that for competition\n m_driveTrain.arcadeDrive(m_throttle.getAsDouble(), m_turn.getAsDouble(), true);\n }", "public void manualControl(double power){\n leftMotor.set(power);\n rightMotor.set(power);\n }", "protected void execute() {\n \t// Scales the speed based on a proportion of ideal voltage over actual voltage\n \tRobot.shooter.talon.set(0.59 * (12.5 / Robot.pdp.getVoltage()));\n// \tRobot.shooter.talon.enable();\n// \tRobot.shooter.talon.set(Shooter.IDEAL_SPEED * (12.5 / Robot.pdp.getVoltage()));\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftMotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightMotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftMotor.setTargetPosition(newLeftTarget);\n rightMotor.setTargetPosition(newRightTarget);\n\n leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n leftMotor.setPower(speed);\n rightMotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (leftMotor.isBusy() && rightMotor.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if any one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftMotor.setPower(leftSpeed);\n rightMotor.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", leftMotor.getCurrentPosition(),\n rightMotor.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n\n rightMotor.setPower(0);\n leftMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "public void commonPeriodic()\n {\n double d1LeftJoystick = driver1.getAxis(driver1.LAxisUD);\n double d1RightJoystick = driver1.getAxis(driver1.RAxisUD);\n\n double d2LeftJoystick = driver2.getAxis(driver2.LAxisUD);\n double d2RightJoystick = driver2.getAxis(driver2.RAxisUD);\n\n // -------------------- DRIVER 1\n\n driveTrain.drive(d1LeftJoystick * speedModifier, d1RightJoystick * speedModifier);\n\n // driver1 controls ramp\n // press start and select together to deploy\n if(driver1.down(driver1.Start) && driver1.down(driver1.Select))\n {\n ramp.deploy();\n hatchArm.fingerGrab();\n }\n else\n {\n ramp.undeploy();\n }\n\n // driver 1 can double speed by holding L2\n //driveTrain.fastSpeed = driver1.down(driver1.L2);\n if(driver1.pressed(driver1.A))\n {\n driveTrain.slowSpeed = !driveTrain.slowSpeed;\n System.out.println(\"Fast speed toggled to: \" + driveTrain.slowSpeed);\n }\n\n //drive straight\n if(driver1.down(driver1.L1))\n {\n driveTrain.set_right_motors(speedModifier);\n }\n if(driver1.down(driver1.R1))\n {\n driveTrain.set_left_motors(speedModifier);\n }\n\n // flip drive orientation\n if(driver1.pressed(driver1.Select))\n {\n driveTrain.flip_orientation();\n \n if(driveTrain.isFacingForward())\n {\n camServForward.setSource(camFront);\n //camServReverse.setSource(camBack);\n // camBack.free();\n // camFront.close();\n // camFront = CameraServer.getInstance().startAutomaticCapture(0);\n // camBack = CameraServer.getInstance().startAutomaticCapture(1);\n }\n else\n {\n camServForward.setSource(camBack);\n //camServReverse.setSource(camFront);\n // camBack.close();\n // camFront.close();\n // camFront = CameraServer.getInstance().startAutomaticCapture(1);\n // camBack = CameraServer.getInstance().startAutomaticCapture(0);\n }\n }\n\n\n // -------------------- DRIVER 2\n\n\n // up is out\n // down is in\n // (when it's negated)\n cargoArm.spinBallMotor(-1 * d2LeftJoystick * 0.9);\n\n // control hatch placement pistons\n if(driver2.pressed(driver2.A))\n {\n hatchArm.pushPistons();\n }\n else if (driver2.released(driver2.A))\n {\n hatchArm.retractPistons();\n }\n\n // open/close hatch grabber arms\n if(driver2.pressed(driver2.B))\n {\n hatchArm.toggleGrabber();\n }\n\n if(driver2.pressed(driver2.Select))\n {\n //cargoArm.toggleArmLock();\n hatchArm.toggleFinger();\n }\n\n // extend/de-extend cargo hand\n if(driver2.pressed(driver2.Start))\n {\n cargoArm.toggleHand();\n }\n\n // button 7: L2\n // button 8: R2\n // L2 will reverse the finger\n // R2 will rotate it forward\n if(driver2.down(driver2.L1))\n {\n hatchArm.rotateFinger(1);\n }\n else\n {\n if(driver2.down(driver2.L2))\n {\n hatchArm.rotateFinger(-1);\n }\n else\n {\n hatchArm.rotateFinger(0);\n }\n }\n\n \n // button 5: L1\n // button 6: R1\n // L1 will move the hatch arm one way\n // R1 will move it the other way\n if(driver2.down(driver2.R1))\n {\n hatchArm.rotateArm(-1 * speedModifier);// * 0.75);\n }\n else\n {\n if(driver2.down(driver2.R2))\n {\n hatchArm.rotateArm(1 * speedModifier);// * 0.75);\n }\n else\n {\n hatchArm.rotateArm(0);\n }\n }\n\n \n // button 1: x\n // button 4: y\n // button 1 will move the ball arm one way\n // button 4 will move it the other way\n if(driver2.down(driver2.X))\n {\n //cargoArm.requestMove(-1 * speedModifier);\n cargoArm.rotateArm(-1);\n //cargoArm.solArmBrake.set(false);\n }\n else\n {\n if(driver2.down(driver2.Y))\n {\n //cargoArm.requestMove(2 * speedModifier);\n cargoArm.rotateArm(1);\n //cargoArm.solArmBrake.set(false);\n }\n else\n {\n //cargoArm.rotateArm(cargoArm.getArmCalculation());\n //cargoArm.solArmBrake.set(true);\n cargoArm.rotateArm(0);\n }\n }\n if(driver2.released(driver2.X) || driver2.released(driver2.Y))\n {\n //cargoArm.setArmTarget(cargoArm.currentPosition());\n //cargoArm.solArmBrake.set(true);\n cargoArm.rotateArm(0);\n }\n\n if(driver2.dpad(driver2.Up))\n {\n cargoArm.setArmUp();\n }\n if(driver2.dpad(driver2.Down))\n {\n cargoArm.setArmDown();\n }\n if(driver2.dpad(driver2.Left))\n {\n cargoArm.setArmMid();\n }\n if(driver2.dpad(driver2.Right))\n {\n cargoArm.setArmLow();\n }\n\n if(driver2.pressed(driver2.LThumb))\n {\n cargoArm.armLockEnabled = !cargoArm.armLockEnabled;\n \n }\n if(driver2.pressed(driver2.RThumb))\n {\n cargoArm.toggleBrake();\n }\n\n\n // allow move-to calculations to occur\n hatchArm.periodic();\n cargoArm.periodic();\n }", "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public void ldrive(double speed){\n left1.set(ControlMode.PercentOutput, speedRamp(speed));\n left2.set(ControlMode.PercentOutput, speedRamp(speed));\n }", "@Override\n\tpublic void testPeriodic() {\n\t\tif (testJoystick.getRawButton(3)) {\n\t\t\tsparkMotor1.set(1.0);\n\t\t\tsparkMotor0.set(1.0);\n\t\t\ttestTalon.set(1.0);\n\t\t\t\n\t\t\ttalonMotor10.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor11.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor12.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor13.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor14.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor15.set(ControlMode.PercentOutput, 1.0);\n\t\t}\n\t\telse if (testJoystick.getRawButton(2)) {\n\t\t\tsparkMotor0.set(-1.0);\n\t\t\tsparkMotor1.set(-1.0);\n\t\t\ttestTalon.set(-1.0);\n\t\t\t\n\t\t\ttalonMotor10.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor11.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor12.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor13.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor14.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor15.set(ControlMode.PercentOutput, -1.0);\n\t\t}\n\t\telse {\n//\t\t\tsparkMotor0.set(0);\n\t\t\tsparkMotor1.set(0);\n\t\t\ttestTalon.set(0);\n\t\t\t\n\t\t\ttalonMotor10.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor11.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor12.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor13.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor14.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor15.set(ControlMode.PercentOutput, 0);\n\t\t\t\n\t\t\ttestSel.set(Value.kForward);\n\t\t}\n\t\t\n\t\tif (testJoystick.getRawButton(7)) {\n\t\t\ttestSel.set(Value.kForward);\n\t\t\tSystem.out.println(compressor.getCompressorCurrent());\n\t\t}\n\t}", "@Override\n public void driveToRun(DriveToParams param) {\n switch ((SENSOR_TYPE) param.reference) {\n case GYRO:\n // Turn faster if we're outside the threshold\n float speed = SPEED_TURN;\n if (Math.abs(param.error1) > SPEED_TURN_THRESHOLD) {\n speed = SPEED_TURN_FAST;\n }\n\n // Turning clockwise increases heading\n if (param.comparator.equals(DriveToComp.GREATER)) {\n tank.setSpeed(-speed, MotorSide.LEFT);\n tank.setSpeed(speed, MotorSide.RIGHT);\n } else {\n tank.setSpeed(speed, MotorSide.LEFT);\n tank.setSpeed(-speed, MotorSide.RIGHT);\n }\n break;\n case ENCODER:\n // Always drive forward\n tank.setSpeed(-SPEED_DRIVE);\n break;\n }\n }", "public void setDriveSpeed(double speed) {\n\t\tdriveMotor.set(speed);\n\t}", "public DriveTrain() {\n for(int i = 0; i < 2; i++) {\n leftMotors[i] = new CANSparkMax(Constants.LEFT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i] = new CANSparkMax(Constants.RIGHT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i].setInverted(true);\n }\n }", "public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}", "@Override\n public void execute() {\n\n DifferentialDriveWheelPowers powers = mBasicDrive.drive(mThrottle.getAsDouble(), mTurn.getAsDouble(), mTrim.getAsDouble());\n\n DifferentialDriveWheelSpeeds speeds = new DifferentialDriveWheelSpeeds(\n powers.getLeft() * Constants.Drive.kFeedforward.maxAchievableVelocity(Constants.Robot.kMinBatteryVoltage, 0.0),\n powers.getRight() * Constants.Drive.kFeedforward.maxAchievableVelocity(Constants.Robot.kMinBatteryVoltage, 0.0));\n\n mDriveSubsystem.setVelocity(speeds, mDeadband);\n }", "public void setTurning(java.lang.Boolean value);", "protected void execute() {\r\n\t//double leftSpeed = oi.leftUpAndDown();\r\n\tdouble leftSpeed = motorScalerLeft.scale(oi.leftUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\leftSpeed\", leftSpeed);\r\n\t\r\n\t//double rightSpeed = oi.rightUpAndDown();\r\n\tdouble rightSpeed = motorScalerRight.scale(oi.rightUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\rightSpeed\", rightSpeed);\r\n\t\r\n\ttheDrive.goVariable(-leftSpeed,-rightSpeed);\r\n }", "@Override\n public double speed() {\n \tif(Robot.drive.getDistance() > 120) {\n \t\treturn 0.2;\n \t}\n \treturn speed;\n }", "@Override\n public void execute() {\n drivetrain.set(ControlMode.MotionMagic, targetDistance, targetDistance);\n }", "private void speedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_speedStateChanged\n\n int speedvalue = speed.getValue();//gets the value of the speed slider from the control panel\n roboLogic.speed(speedvalue); // calls the speed method of the RobotLogic class\n\n\n }", "public void ApplyMovement() {\n long currTime = SystemClock.uptimeMillis();\n if(currTime - lastUpdateTime < 16){\n return;\n }\n lastUpdateTime = currTime;\n\n\n double tl_power_raw = movement_y-movement_turn+movement_x*1.5;\n double bl_power_raw = movement_y-movement_turn- movement_x*1.5;\n double br_power_raw = -movement_y-movement_turn-movement_x*1.5;\n double tr_power_raw = -movement_y-movement_turn+movement_x*1.5;\n\n\n\n\n //find the maximum of the powers\n double maxRawPower = Math.abs(tl_power_raw);\n if(Math.abs(bl_power_raw) > maxRawPower){ maxRawPower = Math.abs(bl_power_raw);}\n if(Math.abs(br_power_raw) > maxRawPower){ maxRawPower = Math.abs(br_power_raw);}\n if(Math.abs(tr_power_raw) > maxRawPower){ maxRawPower = Math.abs(tr_power_raw);}\n\n //if the maximum is greater than 1, scale all the powers down to preserve the shape\n double scaleDownAmount = 1.0;\n if(maxRawPower > 1.0){\n //when max power is multiplied by this ratio, it will be 1.0, and others less\n scaleDownAmount = 1.0/maxRawPower;\n }\n tl_power_raw *= scaleDownAmount;\n bl_power_raw *= scaleDownAmount;\n br_power_raw *= scaleDownAmount;\n tr_power_raw *= scaleDownAmount;\n\n\n //now we can set the powers ONLY IF THEY HAVE CHANGED TO AVOID SPAMMING USB COMMUNICATIONS\n topLeft.setPower(tl_power_raw);\n bottomLeft.setPower(bl_power_raw);\n bottomRight.setPower(br_power_raw);\n topRight.setPower(tr_power_raw);\n }", "public void configVelocityControl() {\n leftDrive.configTeleopVelocity();\n rightDrive.configTeleopVelocity();\n }", "@Override\n\tpublic int getMotorSpeed() {\n\t\tupdateIR();\n\t\treturn direction*360;\n\t}", "private void PIDDrive(double output){\n if(!manual){\n \tif (top_limitSwitch.get() == false && (output<0)){\n \t\televMotor.pidWrite(0);\n \t\tcurrentStep = 4;\n \t}\n \telse if (bottom_hallEffect.get() == false && (output>0)){\n \t\televMotor.set(0);\n \t\tencReset();\n \t}\n \telse {\n \t\televMotor.pidWrite(output);\n \t}\n }\n }", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void operatorControl() {\n \tdouble ctrlThresh = .2; \n \tdouble minPower = .05; \n \tdouble maxPower = .75; \n \tdouble recip = (1 - ctrlThresh); \n \tdouble mult = (maxPower - minPower); \n \tdouble right; \n \tdouble strafe; \n \tdouble rotate; \n \tdouble rightAxis; \n \tdouble strafeAxis; \n \tdouble rotateAxis; \n \t// \tboolean leftLeft; \n \t// \tboolean leftRight; \n \tdouble rightDir; \n \tdouble strafeDir; \n \tdouble rotateDir; \n \tdouble rightPower; \n \tdouble rotatePower; \n \tdouble strafePower; \n \t\n \tint winchCount;\n \tboolean winchDirection;\n \n \t// \tdouble frontLeftPower; \n \t// \tdouble frontRightPower; \n \t// \tdouble backLeftPower; \n \t// \tdouble backRightPower; \n \n \t//myRobot.setSafetyEnabled(true); \n \t\n \tAccelerometer test = new BuiltInAccelerometer();\n \t\n \twhile (isOperatorControl() && isEnabled()) { \n \t\t// ACCEL TEST CODE\n// \t\tSystem.out.println(test.getX() + \", \" + test.getY() + \", \" + test.getZ());\n \t\t// END ACCEL TEST CODE\n \n \t\t// ********** BEGIN DRIVING CODE ********** \n \t\t// Code for driving using omniwheels and two wheels for strafing \n \t\t// Diagram for the wheels of the robot below. \n \n \t\t// L S R \n \t\t// /--------------------------\\ \n \t\t//\t ||------------------------|| \n \t\t// || [][] || \n \t\t// || [] [] || \n \t\t// || [] [] || \n \t\t// || || \n \t\t// || || \n \t\t// || || \n \t\t// || || \n \t\t// || || \n \t\t// || [] [] || \n \t\t// || [] [] || \n \t\t// || [][] || \n \t\t// ||------------------------|| \n \t\t// \\--------------------------/ \n \t\t// \n \t\t// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n \n \t\tctrlThresh = .2; // the point at which we want to sense joystick action \n \t\trecip = 1-ctrlThresh; \t\t // = 0.8 \n \n \t\trightAxis = rightStick.getRawAxis(1);\t\t\t\t// right joystick, y (up/down) axis\n \t\t\n \t\t//System.out.println(\"\"+rightAxis);\n \t\tstrafeAxis = rightStick.getRawAxis(0);\t\t\t\t// right joystick, x (left/right) axis; this is \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/// arbitrary and could have been the left stick\n \t\trotateAxis = rightStick.getRawAxis(4);\t\t\t\t\t// left joystick, y axis\n \n \t\trightDir = rightAxis/Math.abs(rightAxis);\t\t\t// forward or backward (+1 or -1)\n \t\tstrafeDir = strafeAxis/Math.abs(strafeAxis); \t// \t\t\t'' \n \t\trotateDir = rotateAxis/Math.abs(rotateAxis); // \t\t\t'' \n \n \t\tright = 0; // right input formatted for range of detected values [0.2,1] \n \t\trotate = 0; // left input formatted \n \t\tstrafe = 0; // strafe input formatted \n \n \t\tif(Math.abs(rightAxis) > ctrlThresh) \t// user moved stick beyond threshold \n \t\t{right = (rightAxis-ctrlThresh*rightDir)/recip;} // format right: scale back, set direction, proportion it \n \t\tif(Math.abs(strafeAxis) > ctrlThresh) \n \t\t{strafe = (strafeAxis-ctrlThresh*strafeDir)/recip;} // format left... \n \t\tif(Math.abs(rotateAxis) > ctrlThresh) \n \t\t{rotate = (rotateAxis-ctrlThresh*rotateDir)/recip;}\t\t// format strafe... \n \n \n \t\trightDir = right/Math.abs(right); \n \t\trightPower = (Math.abs(right*mult) + minPower) * rightDir; \t\t// re-proportion for power's range, strip direction,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/// and then add back threshold and direction. \n \t\trotateDir = rotate/Math.abs(rotate); \n \t\trotatePower = (Math.abs(rotate*mult) + minPower) * rotateDir;\t\t\t// \t\t'' \n \n \t\tstrafeDir = strafe/Math.abs(strafe); \n \t\tstrafePower = (Math.abs(strafe*mult) + minPower) * strafeDir;\t// \t\t'' \n \n \t\tif(Math.abs(rightPower)>0.2){\n \t\t\tfrontRight.set(rightPower);\t\t\t\t\t\t// set all the motors with the powers we \n \t\t\tbackRight.set(rightPower);\t\t\t\t\t\t/// calculated above : drive! \n \t\t\tfrontLeft.set(-1*rightPower); \n \t\t\tbackLeft.set(-1*rightPower);\n \t\t}\n \t\telse{\n \t\t\tfrontRight.set(rotatePower);\n \t\t\tbackRight.set(rotatePower);\n \t\t\tfrontLeft.set(rotatePower);\n \t\t\tbackLeft.set(rotatePower);\n \t\t}\n \t\t\n// \t\tfrontStrafe.set(strafePower); \n// \t\tbackStrafe.set(-1*strafePower); \n \n// \t\tmyRobot.tankDrive(leftStick, rightStick); \n \t\t \n \t\t// ********** END OF DRIVING CODE ********** \n \t\t//======================================================================= \n \t\t// ************ BEGIN WINCH CODE *********** \n \t\t// We need to code the winch to help raise and lower the elevator \n \t\t// This is just one option between the winch and the lead screw. \n \t\t \n \t\t\n \t\t//second winch test\n \t\t/*\n \t\twinchCount = winchEncoder.get();\t\t\t\t// get the pulse count from the encoder\n \t \tSystem.out.println(\"Count: \"+ winchCount);\t\t// print the pulse count \n \t \tif(winchCount<240){\n \t \t\t\n \t \t\twinchCim1.set(.1);\n \t \t\twinchCim2.set(.1);\n \t \t}\n \t \telse{\n \t \t\twinchCim1.set(0);\n \t \t\twinchCim2.set(0);\n \t \t\t\n \t \t}\n \t if(rightStick.getRawButton(5)) \n { \n\t\t\t winchEncoder.reset();// reset the pulse count\n\t\t\t winchCount = 0;\n\t\t\t winchCim1.set(0);\n\t\t\t winchCim2.set(0);\n\t\t\t \n } */ //end of second winch test \n \t \t\n \t\t\n \t\t if(rightStick.getRawButton(5)) \n { \n \t\t\t //winchEncoder.reset();// reset the pulse count\n \tSystem.out.println(\"A\");\n \t winchCim1.set(.5); \t// set winchCim1 to 0.5 power (upwards) \n \t winchCim2.set(.5); \t\t\t\t\t\t\t// set winchCim2 to 0.5 power\n \t\t\t \n } \n \t\telse if(rightStick.getRawButton(4))\n \t\t{\n \t\t\tSystem.out.println(\"B\");\n \t\t\t//winchEncoder.reset();\t\t\t\t\t\t\t// reset the pulse count\n \t \twinchCim1.set(-.3); // set winchCim1 to -0.5 power (downwards) \n \t \twinchCim2.set(-.3);\t \t\t\t\t\t\t\t// set winchCim2 to -0.5 power\n \t\t}\n \n \t \telse// if(rightStick.getRawButton(2)) \n { \n \t winchCim1.set(0); \t\t\t\t\t\t\t// set winchCim1 to 0 power (off/stop) \n \t winchCim2.set(0);\t\t\t\t\t\t\t\t// set winchCim2 to 0 pwoer (off/stop)\n// \t winchCount = winchEncoder.get();\t\t\t\t// get the pulse count from the encoder\n// \t System.out.println(\"Count: \"+ winchCount);\t\t// print the pulse count \n } \n \n \t\t// ********** END OF WINCH CODE ********** \n \t\t//======================================================================= \n \t\t \n \t\t \n \t\tTimer.delay(0.005);\t\t// wait for a motor update time \n } \n }", "@Override\r\n public void runOpMode() {\n\r\n mtrFL = hardwareMap.dcMotor.get(\"fl_drive\");\r\n mtrFR = hardwareMap.dcMotor.get(\"fr_drive\");\r\n mtrBL = hardwareMap.dcMotor.get(\"bl_drive\");\r\n mtrBR = hardwareMap.dcMotor.get(\"br_drive\");\r\n\r\n\r\n // Set directions for motors.\r\n mtrFL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrFR.setDirection(DcMotor.Direction.FORWARD);\r\n mtrBL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrBR.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n\r\n //zero power behavior\r\n mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n\r\n // Set power for all motors.\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n\r\n\r\n // Set all motors to run with given mode\r\n mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n g1ch2 = -gamepad1.left_stick_y;\r\n g1ch3 = gamepad1.right_stick_x;\r\n g2ch2 = -gamepad2.left_stick_x;\r\n g2ch4 = -gamepad2.right_stick_x;\r\n g2left = gamepad2.left_trigger;\r\n g2right = gamepad2.right_trigger;\r\n\r\n\r\n powFL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powFR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n powBL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powBR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n\r\n\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n sleep(50);\r\n }\r\n }", "public void set(ControlMode controlMode, double value)\n {\n switch (controlMode)\n {\n case Throttle:\n super.set(value);\n// System.out.printf(\"Port: %d value %f\\n\", port, value);\n break;\n case Position:\n super.getPIDController().setReference(value, ControlType.kPosition);\n break;\n case Velocity:\n super.getPIDController().setReference(value, ControlType.kVelocity);\n break;\n }\n }", "public void turnTo(double angle, boolean stop) {\n \t\t\n \t\tdouble error = angle - this.myOdometer.getAng();\n \n \t\twhile (Math.abs(error) > DEG_ERR) {\n \n \t\t\terror = angle - this.myOdometer.getAng();\n \n \t\t\tif (error < -180.0) {\n \t\t\t\tthis.setSpeeds(-SLOW, SLOW);\n \t\t\t} else if (error < 0.0) {\n \t\t\t\tthis.setSpeeds(SLOW, -SLOW);\n \t\t\t} else if (error > 180.0) {\n \t\t\t\tthis.setSpeeds(SLOW, -SLOW);\n \t\t\t} else {\n \t\t\t\tthis.setSpeeds(-SLOW, SLOW);\n \t\t\t}\n \t\t}\n \n \t\tif (stop) {\n \t\t\tthis.setSpeeds(0, 0);\n \t\t}\n \t}", "protected void execute() {\n \t\n \tdouble rightJoystickXAxis, leftJoystickYAxis, leftMotorOutput, rightMotorOutput;\n \t\n \trightJoystickXAxis = JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.RIGHT_JOYSTICK_X),\n \t\t\t0.0, 0.0, 1.0, 1.0);\n \tif(Robot.driveTrain.isRightSideOutputInverted()) {\n \t\tleftJoystickYAxis = -JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.LEFT_JOYSTICK_Y),\n \t\t\t0.0, 0.0, 1.0, -1.0);\n \t}\n \telse\n \t{\n \t\tleftJoystickYAxis = JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.LEFT_JOYSTICK_Y),\n \t\t\t0.0, 0.0, 1.0, -1.0);\n \t}\n \t\n \t\n \tif ( rightJoystickXAxis == 0.0 && leftJoystickYAxis != 0.0 )\t//straight forward or reverse with the x axis in deadband\n \t{\n \t\tleftMotorOutput = leftJoystickYAxis;\n \t\trightMotorOutput = leftJoystickYAxis;\n \t}\n \t\n \telse if ( rightJoystickXAxis > 0.0 && leftJoystickYAxis != 0.0 )\t//quadrant I or IV\n \t{\n \t\tleftMotorOutput = leftJoystickYAxis;\n \t\trightMotorOutput = leftJoystickYAxis - rightJoystickXAxis;\n \t}\n \t\n \telse if ( rightJoystickXAxis < 0.0 && leftJoystickYAxis != 0.0 )\t//quadrant II or III\n \t{\n \t\trightMotorOutput = leftJoystickYAxis;\n \t\tleftMotorOutput = leftJoystickYAxis + rightJoystickXAxis;\n \t}\n \t\n \telse if ( leftJoystickYAxis == 0.0 && rightJoystickXAxis != 0.0 )\t//rotate left or right with the y axis in deadband\n \t{\n \t\tleftMotorOutput = rightJoystickXAxis;\n \t\trightMotorOutput = -rightJoystickXAxis;\n \t}\n \t\n \telse\t//x axis in deadband and y axis in deadband\n \t{\n \t\tleftMotorOutput = 0.0;\n \t\trightMotorOutput = 0.0;\n \t}\n \t\n \tbrakeFactor = JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.LEFT_TRIGGER),\n \t\t\t0.0, 0.0, 1.0, 0.8);\n \t\n \tRobot.driveTrain.updateDriveSpeeds(leftMotorOutput * (1-brakeFactor), rightMotorOutput * (1-brakeFactor));\n \t\n }", "public abstract void drive(double leftSpeed, double rightSpeed);", "public RightPrioritizeSwitch() {\n\t\t// Use requires() here to declare subsystem dependencies\n\t\t// eg. requires(chassis);\t\t\n\t\ttimer = new Timer();\n\t\tdelay = new Timer();\n\t\tcrossLine = new CrossAutoLine();\n\t\tturnTowardsSwitchOrScale = new RotateDrivetrainWithGyroPID(90, false);\n\t\tdriveToScale = new DriveStraightToPositionPID(323.6);\n\t\tdriveToSwitch = new DriveStraightToPositionPID(168);\n\t\tapproachScale = new DriveStraightToPositionPID(44);\n\t\tapproachSwitch = new DriveStraightToPositionPID(-42);\n\t\tlaunchCubeSwitch = new AutomaticShoot(false);\n\t\tlaunchCubeScale = new AutomaticShoot(true);\n\t}", "public void tankDrive(double[] motorValues)\n {\n tankDrive(motorValues[0], motorValues[1]);\n }", "public void driveRaw (double speed) {\n leftBackMotor.set(speed);\n leftMiddleMotor.set(speed);\n leftFrontMotor.set(speed);\n rightBackMotor.set(speed);\n rightMiddleMotor.set(speed);\n rightFrontMotor.set(speed);\n }", "public void drive(double distance)\n {\n fuelInTank -= distance / fuelEfficiency; \n }", "public static void setMotorSpeed(double speed){\n setLeftMotorSpeed(speed);\n setRightMotorSpeed(speed);\n }", "public boolean getVDD(){return this.vientDeDouble;}", "public void run() {\r\n if (stateRegistry.getDriveDirection() == REVERSE) {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\r\n robotDrive.tankDrive(rightDriveJoystick, leftDriveJoystick);\r\n }\r\n else {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, false);\r\n robotDrive.tankDrive(leftDriveJoystick, rightDriveJoystick);\r\n }\r\n }", "double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }", "@Override\n public void execute() {\n //How does one pass the joystick value here? There has to be a better way.\n driveTrainSubsystem.drive(1.0);\n\n\n //control pneumatics\n DoubleSolenoid doubleSolenoid = new DoubleSolenoid(1, 2);\n\n for(int i =0; i < 30000; i++) {\n doubleSolenoid.set(Value.kForward);\n System.out.println(\"Solenoid forward\");\n }\n\n for(int i =0; i < 30000; i++) {\n doubleSolenoid.set(Value.kReverse);\n System.out.println(\"Solenoid backward\");\n }\n\n\n System.out.println(\"Solenoid off\");\n doubleSolenoid.set(Value.kReverse);\n\n }", "protected void execute() {\n\t\t// Get output from PID and dvide by 4\n\t\tdouble output = Robot.minipidSubsystem.getOutput(Robot.gyroSubsystem.GyroPosition(), 90) * 0.25;\n\n\t\t// limit output to 25% in either direction\n\t\tif (output > 25)\n\t\t\toutput = 25;\n\t\telse if (output < -25)\n\t\t\toutput = -25;\n\n\t\t// convert output to a value the drive subsystem can use (-1 to 1)\n\t\toutput /= 100;\n\n\t\t// drive the robot, only providing the turn speed\n\t\tRobot.driveSubsystem.robotDrive.arcadeDrive(0, output);\n\t\t// Robot.driveSubsystem.tankDrive(-output, output);\n\t}", "@Override\n public double convert(final double value) {\n return c2.convert(c1.convert(value));\n }", "public void arcadeDrive(double moveValue, double rotateValue) {\r\n\t\tdouble leftMotorSpeed;\r\n\t\tdouble rightMotorSpeed;\r\n\r\n\t\tmoveValue = limit(moveValue);\r\n\t\trotateValue = limit(rotateValue);\r\n\r\n\t\t// square the inputs (while preserving the sign) to increase fine control\r\n\t\t// while permitting full power\r\n\t\tif (moveValue >= 0.0) {\r\n\t\t\tmoveValue = moveValue * moveValue;\r\n\t\t} else {\r\n\t\t\tmoveValue = -(moveValue * moveValue);\r\n\t\t}\r\n\t\tif (rotateValue >= 0.0) {\r\n\t\t\trotateValue = rotateValue * rotateValue;\r\n\t\t} else {\r\n\t\t\trotateValue = -(rotateValue * rotateValue);\r\n\t\t}\r\n\r\n\t\tif (moveValue > 0.0) {\r\n\t\t\tif (rotateValue > 0.0) {\r\n\t\t\t\tleftMotorSpeed = moveValue - rotateValue;\r\n\t\t\t\trightMotorSpeed = Math.max(moveValue, rotateValue);\r\n\t\t\t} else {\r\n\t\t\t\tleftMotorSpeed = Math.max(moveValue, -rotateValue);\r\n\t\t\t\trightMotorSpeed = moveValue + rotateValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (rotateValue > 0.0) {\r\n\t\t\t\tleftMotorSpeed = -Math.max(-moveValue, rotateValue);\r\n\t\t\t\trightMotorSpeed = moveValue + rotateValue;\r\n\t\t\t} else {\r\n\t\t\t\tleftMotorSpeed = moveValue - rotateValue;\r\n\t\t\t\trightMotorSpeed = -Math.max(-moveValue, -rotateValue);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsetLeftRightMotorOutputs(leftMotorSpeed, rightMotorSpeed);\r\n\t}", "@Override\n\tpublic Metro Convertir() {\n\n\t\treturn new Metro(getValor() * 0.01);\n\t}", "private void commandMotor(int channel, int maskValue){\n\t\tbyte workingByte = (byte)((CMDBIT_GO | maskValue) & 0xff);\n\n\t\tif (motorParams[MOTPARAM_REGULATE][channel] == MOTPARAM_OP_TRUE) workingByte |= CMDBIT_SPEED_MODE;\n\t\tif (motorParams[MOTPARAM_RAMPING][channel] == MOTPARAM_OP_TRUE) workingByte |= CMDBIT_RAMP;\n\t\t// send the message.\n\t\tsendData(REGISTER_MAP[REG_IDX_COMMAND][channel], workingByte);\n\t}", "private void rotateDrive(double throttle, double error) {\n double output = visionDrive.getOutput(error);\n left.set(ControlMode.PercentOutput, throttle - output);\n right.set(ControlMode.PercentOutput, throttle + output);\n }", "public void PIDDriveForward(double speed, double angle, int distance) { // Added: 1/18/19\n\n // This is an attempt to use PID only, no encoders\n\n\n /* Things to pass the Method\n *\n * 1. speed\n * 2. Angle\n * 3. distance\n *\n * Example: PIDDriveForward(.50,90, 24); // Drive robot forward in a straight line for 4\" @ 50% Power\n */\n\n // Setup Straight Line Driving\n\n\n pidDrive.setSetpoint(0);\n pidDrive.setOutputRange(0, speed);\n pidDrive.setInputRange(-angle, angle);\n pidDrive.enable();\n\n\n // Use PID with imu input to drive in a straight line.\n double correction = pidDrive.performPID(getAngle2());\n\n\n //Initialize Mecanum Wheel DC Motor Behavior\n setZeroPowerBrakes(); // Set DC Motor Brake Behavior\n\n\n // Reset Encoders: Alternate way: DriveRightFrontEncoder.reset();\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n\n\n /* Setup Default Robot Position... setTargetPosition= null\n * This section was added after our initial attempts to re-use these\n * PID controls failed. Error message on the DS phone indicated\n * we needed to setTargetPostion before running to position\n *\n * I am adding this is a test, to see if we initialize the defauly\n * position to 0 (robot against the wall), knowing that we will re-calculate the positon\n * later in this method.\n *\n * For competition, we will need to be more accurate, most likely.\n */\n\n robot2.DriveRightFront.setTargetPosition(0);\n robot2.DriveRightRear.setTargetPosition(0);\n robot2.DriveLeftFront.setTargetPosition(0);\n robot2.DriveLeftRear.setTargetPosition(0);\n\n telemetry.addLine(\"Just setTarget Position\");\n telemetry.update();\n\n\n\n // Set RUN_TO_POSITION\n robot2.DriveRightFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n telemetry.addLine(\"Set RUN_TO_POS\");\n telemetry.update();\n sleep(500);\n\n // Stop Motors and set Motor Power to 0\n robot2.DriveRightFront.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n\n double InchesMoving = (distance * COUNTS_PER_INCH);\n\n\n // Set Target\n robot2.DriveRightFront.setTargetPosition((int) InchesMoving);\n robot2.DriveLeftFront.setTargetPosition((int) InchesMoving);\n robot2.DriveRightRear.setTargetPosition((int) InchesMoving);\n robot2.DriveLeftRear.setTargetPosition((int) InchesMoving);\n\n\n while (robot2.DriveRightFront.isBusy() && robot2.DriveRightRear.isBusy()\n && robot2.DriveLeftFront.isBusy() && robot2.DriveLeftRear.isBusy()) {\n\n\n //Set Motor Power - This engages the Motors and starts the robot movements\n robot2.DriveRightFront.setPower(speed + correction);\n robot2.DriveLeftFront.setPower(speed + correction );\n robot2.DriveRightRear.setPower(speed + correction);\n robot2.DriveLeftRear.setPower(speed + correction );\n } // This brace closes out the while loop\n\n //Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //PIDstopALL()\n robot2.DriveRightFront.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n\n }", "@Override\n\tprotected void execute() {\n\t\tdouble speed = Robot.oi.getSpeed();\n\t\tdouble turn = Robot.oi.getTurn();\n\t\tdouble leftSpeed;\n\t\tdouble rightSpeed;\n\n\t\tif (Robot.oi.getGyroReset()) {\n\t\t\tRobot.chassisSubsystem.resetGyroHeading();\n\t\t}\n\n\t\tif (Robot.oi.getGyroCalibrate()) {\n\t\t\tRobot.chassisSubsystem.calibrateGyro();\n\t\t}\n\n\t\t/**\n\t\t * If the chassisSubsystem says that we should be in high gear, switch\n\t\t * to high gear, otherwise, switch to low gear.\n\t\t */\n\t\tif (Robot.oi.getGearShiftButton() >= 0.5) {\n\t\t\tRobot.chassisSubsystem.setGear(Gear.HIGH);\n\t\t} else {\n\t\t\tRobot.chassisSubsystem.setGear(Gear.LOW);\n\t\t}\n\n\t\t\n\n\t\t/**\n\t\t * If the user is not turning, then follow the gyro using the GoStraight\n\t\t * command.\n\t\t */\n\t\t/*\n\t\t * if (Math.abs(turn) < 0.03) { Scheduler.getInstance().add(new\n\t\t * GoStraightCommand(Robot.chassisSubsystem.getCurrentAngle())); return;\n\t\t * }\n\t\t */\n\n\t\t/*\n\t\t * double defaultValue = 0; Robot.chassisSubsystem.resetGyroHeading();\n\t\t * double angle = Robot.oi.table.getNumber(\"angle\", defaultValue);\n\t\t * System.out.println(angle);\n\t\t * \n\t\t * if(Robot.oi.getAlignShotButton()) { Scheduler.getInstance().add(new\n\t\t * PivotToAngleCommand(angle)); return; }\n\t\t */\n\n\n\t\tdouble targetCenterX = 0;\n\t\tif (Robot.oi.getAutoAlignShotButton() && targetCenterX != RobotMap.NO_VISION_TARGET) {\n\t\t\tScheduler.getInstance().add(new AlignAndShootHighShotCommand(MatchPeriod.TELEOP));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Robot.oi.getManualAlignShotButton()) {\n\t\t\tScheduler.getInstance().add(new AlignAndShootHighShotCommand(MatchPeriod.TELEOP));\n\t\t\treturn;\n\t\t}\n\n\t\t// Use the driver input to set the speed and direction.\n\t\tif (Math.abs(speed) < 0.03) {\n\t\t\tleftSpeed = turn / 2.0;\n\t\t\trightSpeed = -turn / 2.0;\n\t\t} else {\n\t\t\tleftSpeed = (turn < 0.0) ? speed * (1.0 + turn) : speed;\n\t\t\trightSpeed = (turn < 0.0) ? speed : speed * (1.0 - turn);\n\t\t}\n\n\t\tRobot.chassisSubsystem.setSpeed(leftSpeed, rightSpeed);\n\t}" ]
[ "0.615981", "0.5869432", "0.57899594", "0.57582587", "0.5748531", "0.56993115", "0.5660349", "0.5635552", "0.56308055", "0.55994546", "0.5498941", "0.54924405", "0.5470792", "0.5458113", "0.54276913", "0.54117715", "0.5410027", "0.5389441", "0.53571165", "0.5355914", "0.5349066", "0.53381723", "0.5317207", "0.53135926", "0.5310431", "0.53058773", "0.52878016", "0.5285143", "0.5256006", "0.52522516", "0.52408123", "0.523099", "0.5211774", "0.5205272", "0.5200555", "0.5200183", "0.51877314", "0.5182176", "0.516883", "0.5167395", "0.5159219", "0.5141424", "0.51403517", "0.51284546", "0.51250374", "0.51206106", "0.5113106", "0.5110641", "0.5101256", "0.50887394", "0.50872904", "0.5080401", "0.5079509", "0.50788945", "0.5075567", "0.50611216", "0.5060994", "0.5059717", "0.5056415", "0.5052383", "0.50487554", "0.5046209", "0.50434405", "0.5036865", "0.5034029", "0.50327754", "0.5032285", "0.5030691", "0.5024645", "0.5022322", "0.5017454", "0.5008509", "0.50049114", "0.5002979", "0.49987334", "0.49934715", "0.49890196", "0.4988024", "0.49863577", "0.49772564", "0.49759567", "0.49745795", "0.49738738", "0.4955101", "0.49473608", "0.49473575", "0.49431515", "0.4942157", "0.49417284", "0.49368238", "0.49351704", "0.4931733", "0.49291635", "0.49271196", "0.49213272", "0.49151856", "0.49095806", "0.48991308", "0.4897043", "0.48949736" ]
0.55454427
10
Takes an enumeration as a input and chooses the case based off of that
public void grip(GRIPPER_STATES state) { switch (state) { case GRIPPER_FULL_OPEN: pink.setPosition(PINK_RELEASE_POSITION); blue.setPosition(BLUE_RELEASE_POSITION); orange.setPosition(ORANGE_RELEASE_POSITION); green.setPosition(GREEN_RELEASE_POSITION); break; case GRIPPER_FULL_GRIP: pink.setPosition(PINK_GRIP_POSITION); blue.setPosition(BLUE_GRIP_POSITION); orange.setPosition(ORANGE_GRIP_POSITION); green.setPosition(GREEN_GRIP_POSITION); break; case GRIPPER_LEFT_ONLY: pink.setPosition(PINK_GRIP_POSITION); blue.setPosition(BLUE_RELEASE_POSITION); orange.setPosition(ORANGE_GRIP_POSITION); green.setPosition(GREEN_RELEASE_POSITION); break; case GRIPPER_RIGHT_ONLY: pink.setPosition(PINK_RELEASE_POSITION); blue.setPosition(BLUE_GRIP_POSITION); orange.setPosition(ORANGE_RELEASE_POSITION); green.setPosition(GREEN_GRIP_POSITION); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String enumPatternItemCase()\n {\n read_if_needed_();\n \n return _enum_pattern_item_case;\n }", "private PatternType matchPatternEnum(String s){\n s = s.toLowerCase();\n switch(s){\n case \"factory method\":\n return PatternType.FACTORY_METHOD;\n case \"prototype\":\n return PatternType.PROTOTYPE;\n case \"singleton\":\n return PatternType.SINGLETON;\n case \"(object)adapter\":\n return PatternType.OBJECT_ADAPTER;\n case \"command\":\n return PatternType.COMMAND;\n case \"composite\":\n return PatternType.COMPOSITE;\n case \"decorator\":\n return PatternType.DECORATOR;\n case \"observer\":\n return PatternType.OBSERVER;\n case \"state\":\n return PatternType.STATE;\n case \"strategy\":\n return PatternType.STRATEGY;\n case \"bridge\":\n return PatternType.BRIDGE;\n case \"template method\":\n return PatternType.TEMPLATE_METHOD;\n case \"visitor\":\n return PatternType.VISITOR;\n case \"proxy\":\n return PatternType.PROXY;\n case \"proxy2\":\n return PatternType.PROXY2;\n case \"chain of responsibility\":\n return PatternType.CHAIN_OF_RESPONSIBILITY;\n default:\n System.out.println(\"Was not able to match pattern with an enum. Exiting because this should not happen\");\n System.exit(0);\n\n }\n //should never get here because we exit on the default case\n return null;\n }", "public T caseIntEnum(IntEnum object)\n {\n return null;\n }", "public static void switchTest(Enum obj) {\n String className = obj.getClass().getSimpleName();\n //int key = obj.ordinal();\n String res=\"undefined\";\n switch (className) {\n case \"E1\":\n try {\n res=\"it's \"+className+\".\"+((E1)obj).name();\n } catch (Exception e) {\n }\n break;\n case \"E2\":\n try {\n res=\"it's \"+className+\".\"+((E2)obj).name();\n } catch (Exception e) {\n\n }\n break;\n default:\n// try {\n// res=\"It's \"+className+\".\"+((E3)obj).name();\n// } catch (Exception e) {\n//\n// }\n res=\"undefined\";\n } // sw\n System.out.println(res);\n }", "public T caseCharEnum(CharEnum object)\n {\n return null;\n }", "private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }", "public T caseEnumValue(EnumValue object)\n {\n return null;\n }", "public ICase retourneLaCase() ;", "public static void set_EnumPatternItemCase(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaEnumPatternItemCaseCmd, v);\n UmlCom.check();\n \n _enum_pattern_item_case = v;\n \n }", "public T caseEnumStatement(EnumStatement object) {\n\t\treturn null;\n\t}", "private static DirType getEnum(String name) {\n\t\t\t//Find provided string in directions map.\n\t\t\tDirType direction = directions.get(name.toUpperCase());\n\t\t\tif (direction == null) {\n\t\t\t\tdirection = DirType.NONE;\n\t\t\t}\n\t\t\treturn direction;\n\t\t}", "public void testGetEnumValue_differentCase() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"Value1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }", "public final void synpred181_Java_fragment() throws RecognitionException {\n // Java.g:667:9: ( 'case' enumConstantName ':' )\n dbg.enterAlt(1);\n\n // Java.g:667:9: 'case' enumConstantName ':'\n {\n dbg.location(667,9);\n match(input,89,FOLLOW_89_in_synpred181_Java3812); if (state.failed) return ;\n dbg.location(667,16);\n pushFollow(FOLLOW_enumConstantName_in_synpred181_Java3814);\n enumConstantName();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(667,33);\n match(input,75,FOLLOW_75_in_synpred181_Java3816); if (state.failed) return ;\n\n }\n }", "public static ActionNameEnum getByLowerValue(String lowerValue) {\n for(ActionNameEnum value : values()) {\n if (value.lowerValue.equals(lowerValue)) {\n return value;\n }\n }\n return UNKNOWN;\n }", "@Override\n public T convert(String source, Class<T> enumType, T defaultTarget) {\n // If source is null or empty, defaultTarget is returned\n if (source == null || source.isEmpty()) {\n return defaultTarget;\n }\n try {\n // Try to get the enum constant with the specified name\n return (T) Enum.valueOf(enumType, source.trim().toUpperCase());\n } catch (IllegalArgumentException iae) {\n // If no matching enum constant is found, an exception is\n // thrown and defaultTarget is returned\n return defaultTarget;\n }\n }", "public boolean visit(SwitchCase node) {\n if (ScopeAnalyzer.hasFlag(ScopeAnalyzer.VARIABLES, flags) && !node.isDefault() && isInside(node.getExpression())) {\n SwitchStatement switchStatement= (SwitchStatement) node.getParent();\n ITypeBinding binding= switchStatement.getExpression().resolveTypeBinding();\n if (binding != null && binding.isEnum()) {\n IVariableBinding[] declaredFields= binding.getDeclaredFields();\n for (IVariableBinding variableBinding : declaredFields) {\n if (variableBinding.isEnumConstant()) {\n breakStatement = requestor.acceptBinding(variableBinding);\n if (breakStatement)\n return false;\n }\n }\n }\n }\n\n return false;\n }", "com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue();", "public int getCase() {\n\t\treturn (case_type);\n\t}", "public static SwitchExpression switch_(Class type, Expression switchValue, Expression defaultBody, Method method, Iterable<SwitchCase> cases) { throw Extensions.todo(); }", "public static void main(String[] args) {\n Animal animal = Animal.DOG;\n\n switch (animal) {\n // Enhanced switch that do not require break to break.\n case DOG -> System.out.println(\"Dog\");\n case CAT -> System.out.println(\"Cat\");\n case MOUSE -> System.out.println(\"Mouse\");\n }\n\n System.out.println(Animal.CAT.getClass());\n\n System.out.println(Animal.DOG instanceof Animal);\n\n System.out.println(Animal.DOG instanceof Enum); // Enum is ultimate parent\n\n System.out.println(Animal.CAT.getName()); // Tom\n // method to get enum name as a string (like \"DOG\")\n System.out.println(Animal.MOUSE.name()); // MOUSE\n // reverse of the above (get string as enum name)\n System.out.println(Animal.valueOf(\"DOG\")); //\n }", "@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}", "private static ContextType stringToContextType(String s) \n {\n for (ContextType enumVal : ContextType.values())\n {\n if (enumVal.toString().equals(s))\n return enumVal;\n }\n \n // in case of failure:\n return ContextType.UNKNOWN;\n }", "public abstract Enum<?> getType();", "public static String valueOfOrDefault(String myValue) {\n\t\t String value=myValue.toUpperCase().replaceAll(\"\\\\s\", \"_\");\r\n\t\t for(RegioneItaliana type : RegioneItaliana.class.getEnumConstants()) {\r\n\t\t if(type.name().equalsIgnoreCase(value)) {\r\n\t\t return type.toString();\r\n\t\t }\r\n\t\t }\r\n\t\t return myValue;\r\n\t\t }", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\t\t\n\t}", "Enum getType();", "Case createCase();", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\n\t}", "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "public T caseSwitch(Engine.Switch object) {\n\t\treturn null;\n\t}", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "public Constant resolveCase(BlockScope scope, TypeBinding testType, SwitchStatement switchStatement) {\n resolve(scope);\n return null;\n }", "void visitEnumValue(EnumValue value);", "public Enum<?> findEnum(final String key) {\n Enum<?> en = _enumsById.get(key);\n if (en == null) {\n if (_isIgnoreCase) {\n return _findEnumCaseInsensitive(key);\n }\n }\n return en;\n }", "@org.junit.jupiter.api.Test\n public void testEnums() {\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumDefault\", \"MIXED\")).or(GameOptions.ControlType.KEYBOARD));\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumDefault\", \"MIXED\")).or(GameOptions.ControlType.MIXED));\n assertEquals(GameOptions.ControlType.KEYBOARD, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumEmpty\", \"KEYBOARD\")).or(GameOptions.ControlType.MIXED));\n\n // When the value in the file isn't a valid enum, use the default value in getIfPresent\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumInvalid\", \"KEYBOARD\")).or(GameOptions.ControlType.MIXED));\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumInvalid\", \"MIXED\")).or(GameOptions.ControlType.MIXED));\n\n // When the value is in the file, use that value regardless of the default values.\n assertEquals(GameOptions.ControlType.KEYBOARD, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumValid\", \"MIXED\")).or(GameOptions.ControlType.MIXED));\n }", "private ScalarEnum getInputType(final String inputType) {\n String temp = inputType.replaceAll(\"-\", \"_\");\n INPUT_TYPE answer = Arrays.stream(\n INPUT_TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(INPUT_TYPE.unknown);\n return answer.getScalar();\n }", "@Override\r\n public void setCase(Case theCase) {\n }", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "public static Enum forString(java.lang.String s)\r\n { return (Enum)table.forString(s); }", "public static SwitchCase switchCase(Expression expression, Iterable<Expression> body) { throw Extensions.todo(); }", "@Override\n public boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException {\n if (node.jjtGetChild(0) == null) {\n //rsvc.error(\"#switch() error : null argument\");\n return false;\n }\n\n /*\n * does it have a value? If you have a null reference, then no.\n */\n Object value = node.jjtGetChild(0).value(context);\n\n if (value == null) {\n value = \"[DEFAULT]\";\n }\n\n /*\n * get the arg\n */\n String arg = value.toString();\n\n Node n = node.jjtGetChild(1);\n Node child;\n Node renderNode;\n int numChildren = n.jjtGetNumChildren();\n for (int i = 0; i < numChildren; i++) {\n child = n.jjtGetChild(i);\n if (child instanceof ASTDirective) {\n ASTDirective directive = ((ASTDirective) child);\n String dirName = ((ASTDirective) child).getDirectiveName();\n\n if (dirName.equalsIgnoreCase(\"case\")) {\n String casetoken = directive.jjtGetChild(0).literal();\n\n if (casetoken.equalsIgnoreCase(arg)) {\n // render all the children until we hit either\n // a case directive, default directive, or the end of this switch\n for (int j = i + 1; j < numChildren; j++) {\n renderNode = n.jjtGetChild(j);\n if (renderNode instanceof ASTDirective) {\n String directiveName = ((ASTDirective) renderNode).getDirectiveName();\n if (directiveName.equalsIgnoreCase(\"case\") || directiveName.equalsIgnoreCase(\"default\")) {\n break;\n }\n }\n\n renderNode.render(context, writer);\n }\n\n break;\n }\n } else if (dirName.equalsIgnoreCase(\"default\")) {\n for (int j = i + 1; j < numChildren; j++) {\n renderNode = n.jjtGetChild(j);\n renderNode.render(context, writer);\n }\n\n break;\n }\n }\n }\n\n return true;\n }", "public static DataStructure getEnum(String s) {\n for (DataStructure e : DataStructure.values())\n if (e.getString().equals(s))\n return e;\n return NONE;\n }", "public static CommandEnum stringToEnum(String commandEnum) {\n if (lookup.containsKey(commandEnum)) {\n return lookup.get(commandEnum);\n } else {\n return CommandEnum.INVALID;\n }\n }", "public static void countryName (){\n System.out.println(\"Enter a country domain\");\n Scanner input = new Scanner(System.in);\n String userInput = input.nextLine();\n userInput = userInput.toLowerCase();\n\n switch (userInput) {\n case \"us\":\n System.out.println(\"United States\");\n break;\n case \"de\":\n System.out.println(\"Germany\");\n break;\n case \"hu\":\n System.out.println(\"Hungary:\");\n break;\n default:\n System.out.println(\"Unknown\");\n }\n\n }", "EnumTypeRule createEnumTypeRule();", "List<TestEnum> selectByExample(TestEnumExample example);", "protected T doSwitch(int classifierID, EObject theEObject) {\n\t\tswitch (classifierID) {\n\t\t\tcase Wcs111Package.AVAILABLE_KEYS_TYPE: {\n\t\t\t\tAvailableKeysType availableKeysType = (AvailableKeysType)theEObject;\n\t\t\t\tT result = caseAvailableKeysType(availableKeysType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.AXIS_SUBSET_TYPE: {\n\t\t\t\tAxisSubsetType axisSubsetType = (AxisSubsetType)theEObject;\n\t\t\t\tT result = caseAxisSubsetType(axisSubsetType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.AXIS_TYPE: {\n\t\t\t\tAxisType axisType = (AxisType)theEObject;\n\t\t\t\tT result = caseAxisType(axisType);\n\t\t\t\tif (result == null) result = caseDescriptionType(axisType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.CAPABILITIES_TYPE: {\n\t\t\t\tCapabilitiesType capabilitiesType = (CapabilitiesType)theEObject;\n\t\t\t\tT result = caseCapabilitiesType(capabilitiesType);\n\t\t\t\tif (result == null) result = caseCapabilitiesBaseType(capabilitiesType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.CONTENTS_TYPE: {\n\t\t\t\tContentsType contentsType = (ContentsType)theEObject;\n\t\t\t\tT result = caseContentsType(contentsType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.COVERAGE_DESCRIPTIONS_TYPE: {\n\t\t\t\tCoverageDescriptionsType coverageDescriptionsType = (CoverageDescriptionsType)theEObject;\n\t\t\t\tT result = caseCoverageDescriptionsType(coverageDescriptionsType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.COVERAGE_DESCRIPTION_TYPE: {\n\t\t\t\tCoverageDescriptionType coverageDescriptionType = (CoverageDescriptionType)theEObject;\n\t\t\t\tT result = caseCoverageDescriptionType(coverageDescriptionType);\n\t\t\t\tif (result == null) result = caseDescriptionType(coverageDescriptionType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.COVERAGE_DOMAIN_TYPE: {\n\t\t\t\tCoverageDomainType coverageDomainType = (CoverageDomainType)theEObject;\n\t\t\t\tT result = caseCoverageDomainType(coverageDomainType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.COVERAGES_TYPE: {\n\t\t\t\tCoveragesType coveragesType = (CoveragesType)theEObject;\n\t\t\t\tT result = caseCoveragesType(coveragesType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.COVERAGE_SUMMARY_TYPE: {\n\t\t\t\tCoverageSummaryType coverageSummaryType = (CoverageSummaryType)theEObject;\n\t\t\t\tT result = caseCoverageSummaryType(coverageSummaryType);\n\t\t\t\tif (result == null) result = caseDescriptionType(coverageSummaryType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.DESCRIBE_COVERAGE_TYPE: {\n\t\t\t\tDescribeCoverageType describeCoverageType = (DescribeCoverageType)theEObject;\n\t\t\t\tT result = caseDescribeCoverageType(describeCoverageType);\n\t\t\t\tif (result == null) result = caseRequestBaseType(describeCoverageType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.DOCUMENT_ROOT: {\n\t\t\t\tDocumentRoot documentRoot = (DocumentRoot)theEObject;\n\t\t\t\tT result = caseDocumentRoot(documentRoot);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.DOMAIN_SUBSET_TYPE: {\n\t\t\t\tDomainSubsetType domainSubsetType = (DomainSubsetType)theEObject;\n\t\t\t\tT result = caseDomainSubsetType(domainSubsetType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.FIELD_SUBSET_TYPE: {\n\t\t\t\tFieldSubsetType fieldSubsetType = (FieldSubsetType)theEObject;\n\t\t\t\tT result = caseFieldSubsetType(fieldSubsetType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.FIELD_TYPE: {\n\t\t\t\tFieldType fieldType = (FieldType)theEObject;\n\t\t\t\tT result = caseFieldType(fieldType);\n\t\t\t\tif (result == null) result = caseDescriptionType(fieldType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.GET_CAPABILITIES_TYPE: {\n\t\t\t\tGetCapabilitiesType getCapabilitiesType = (GetCapabilitiesType)theEObject;\n\t\t\t\tT result = caseGetCapabilitiesType(getCapabilitiesType);\n\t\t\t\tif (result == null) result = caseOws110_GetCapabilitiesType(getCapabilitiesType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.GET_COVERAGE_TYPE: {\n\t\t\t\tGetCoverageType getCoverageType = (GetCoverageType)theEObject;\n\t\t\t\tT result = caseGetCoverageType(getCoverageType);\n\t\t\t\tif (result == null) result = caseRequestBaseType(getCoverageType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.GRID_CRS_TYPE: {\n\t\t\t\tGridCrsType gridCrsType = (GridCrsType)theEObject;\n\t\t\t\tT result = caseGridCrsType(gridCrsType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.IMAGE_CRS_REF_TYPE: {\n\t\t\t\tImageCRSRefType imageCRSRefType = (ImageCRSRefType)theEObject;\n\t\t\t\tT result = caseImageCRSRefType(imageCRSRefType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.INTERPOLATION_METHOD_BASE_TYPE: {\n\t\t\t\tInterpolationMethodBaseType interpolationMethodBaseType = (InterpolationMethodBaseType)theEObject;\n\t\t\t\tT result = caseInterpolationMethodBaseType(interpolationMethodBaseType);\n\t\t\t\tif (result == null) result = caseCodeType(interpolationMethodBaseType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.INTERPOLATION_METHODS_TYPE: {\n\t\t\t\tInterpolationMethodsType interpolationMethodsType = (InterpolationMethodsType)theEObject;\n\t\t\t\tT result = caseInterpolationMethodsType(interpolationMethodsType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.INTERPOLATION_METHOD_TYPE: {\n\t\t\t\tInterpolationMethodType interpolationMethodType = (InterpolationMethodType)theEObject;\n\t\t\t\tT result = caseInterpolationMethodType(interpolationMethodType);\n\t\t\t\tif (result == null) result = caseInterpolationMethodBaseType(interpolationMethodType);\n\t\t\t\tif (result == null) result = caseCodeType(interpolationMethodType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.OUTPUT_TYPE: {\n\t\t\t\tOutputType outputType = (OutputType)theEObject;\n\t\t\t\tT result = caseOutputType(outputType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.RANGE_SUBSET_TYPE: {\n\t\t\t\tRangeSubsetType rangeSubsetType = (RangeSubsetType)theEObject;\n\t\t\t\tT result = caseRangeSubsetType(rangeSubsetType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.RANGE_TYPE: {\n\t\t\t\tRangeType rangeType = (RangeType)theEObject;\n\t\t\t\tT result = caseRangeType(rangeType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.REQUEST_BASE_TYPE: {\n\t\t\t\tRequestBaseType requestBaseType = (RequestBaseType)theEObject;\n\t\t\t\tT result = caseRequestBaseType(requestBaseType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.SPATIAL_DOMAIN_TYPE: {\n\t\t\t\tSpatialDomainType spatialDomainType = (SpatialDomainType)theEObject;\n\t\t\t\tT result = caseSpatialDomainType(spatialDomainType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.TIME_PERIOD_TYPE: {\n\t\t\t\tTimePeriodType timePeriodType = (TimePeriodType)theEObject;\n\t\t\t\tT result = caseTimePeriodType(timePeriodType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase Wcs111Package.TIME_SEQUENCE_TYPE: {\n\t\t\t\tTimeSequenceType timeSequenceType = (TimeSequenceType)theEObject;\n\t\t\t\tT result = caseTimeSequenceType(timeSequenceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return defaultCase(theEObject);\n\t\t}\n\t}", "char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}", "public static SwitchExpression switch_(Expression switchValue, Expression defaultBody, Method method, Iterable<SwitchCase> cases) { throw Extensions.todo(); }", "public T caseEnumLiteralOrStaticPropertyExpCS(EnumLiteralOrStaticPropertyExpCS object) {\r\n return null;\r\n }", "Enumeration createEnumeration();", "public static Enum getRole(String s){\n for(Roles roles : Roles.values()) {\n if(roles.toString().equalsIgnoreCase(s)){\n return roles;\n }\n }\n return GUEST;\n }", "public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }", "public static Type valueOfIgnoreCase(String name) throws IllegalArgumentException {\n for(Type type: Type.values()) {\n if(type.getName().equalsIgnoreCase(name)) return type;\n }\n\n throw new IllegalArgumentException(String.format(\"Type object with the name '%s' could not be found.\", name));\n }", "public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }", "CaseStatement createCaseStatement();", "public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }", "public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }", "public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }", "public void setCase(int case_type) {\n\t\tthis.case_type = case_type;\n\t}", "protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case MDDPackage.DATA_DEFINITION:\n {\n DataDefinition dataDefinition = (DataDefinition)theEObject;\n T result = caseDataDefinition(dataDefinition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.DECLARATION:\n {\n Declaration declaration = (Declaration)theEObject;\n T result = caseDeclaration(declaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_DECLARATION:\n {\n FieldDeclaration fieldDeclaration = (FieldDeclaration)theEObject;\n T result = caseFieldDeclaration(fieldDeclaration);\n if (result == null) result = caseDeclaration(fieldDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.MODIFIERS:\n {\n Modifiers modifiers = (Modifiers)theEObject;\n T result = caseModifiers(modifiers);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_TYPE:\n {\n FieldType fieldType = (FieldType)theEObject;\n T result = caseFieldType(fieldType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.INT_ENUM:\n {\n IntEnum intEnum = (IntEnum)theEObject;\n T result = caseIntEnum(intEnum);\n if (result == null) result = caseFieldType(intEnum);\n if (result == null) result = caseFunctionArgumentBody(intEnum);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CHAR_ENUM:\n {\n CharEnum charEnum = (CharEnum)theEObject;\n T result = caseCharEnum(charEnum);\n if (result == null) result = caseFieldType(charEnum);\n if (result == null) result = caseFunctionArgumentBody(charEnum);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ENUM_VALUE:\n {\n EnumValue enumValue = (EnumValue)theEObject;\n T result = caseEnumValue(enumValue);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CHAR_TYPE:\n {\n CharType charType = (CharType)theEObject;\n T result = caseCharType(charType);\n if (result == null) result = caseFieldType(charType);\n if (result == null) result = caseFunctionArgumentBody(charType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.POINTER_TYPE:\n {\n PointerType pointerType = (PointerType)theEObject;\n T result = casePointerType(pointerType);\n if (result == null) result = caseFieldType(pointerType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SET_TYPE:\n {\n SetType setType = (SetType)theEObject;\n T result = caseSetType(setType);\n if (result == null) result = caseFieldType(setType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SUB_FIELD_DECLARATION:\n {\n SubFieldDeclaration subFieldDeclaration = (SubFieldDeclaration)theEObject;\n T result = caseSubFieldDeclaration(subFieldDeclaration);\n if (result == null) result = caseDeclaration(subFieldDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.TITLE_DECLARATION:\n {\n TitleDeclaration titleDeclaration = (TitleDeclaration)theEObject;\n T result = caseTitleDeclaration(titleDeclaration);\n if (result == null) result = caseDeclaration(titleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.INCLUDE_DECLARATION:\n {\n IncludeDeclaration includeDeclaration = (IncludeDeclaration)theEObject;\n T result = caseIncludeDeclaration(includeDeclaration);\n if (result == null) result = caseDeclaration(includeDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.TYPE_DECLARATION:\n {\n TypeDeclaration typeDeclaration = (TypeDeclaration)theEObject;\n T result = caseTypeDeclaration(typeDeclaration);\n if (result == null) result = caseDeclaration(typeDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.VALIDATION_RULE_DECLARATION:\n {\n ValidationRuleDeclaration validationRuleDeclaration = (ValidationRuleDeclaration)theEObject;\n T result = caseValidationRuleDeclaration(validationRuleDeclaration);\n if (result == null) result = caseDeclaration(validationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPARISON_VALIDATION_RULE_DECLARATION:\n {\n ComparisonValidationRuleDeclaration comparisonValidationRuleDeclaration = (ComparisonValidationRuleDeclaration)theEObject;\n T result = caseComparisonValidationRuleDeclaration(comparisonValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(comparisonValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(comparisonValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPARISON_EXPRESSION:\n {\n ComparisonExpression comparisonExpression = (ComparisonExpression)theEObject;\n T result = caseComparisonExpression(comparisonExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPARISON_PART:\n {\n ComparisonPart comparisonPart = (ComparisonPart)theEObject;\n T result = caseComparisonPart(comparisonPart);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UPPER_FUNCTION:\n {\n UpperFunction upperFunction = (UpperFunction)theEObject;\n T result = caseUpperFunction(upperFunction);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LOWER_FUNCTION:\n {\n LowerFunction lowerFunction = (LowerFunction)theEObject;\n T result = caseLowerFunction(lowerFunction);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.RANGE_VALIDATION_RULE_DECLARATION:\n {\n RangeValidationRuleDeclaration rangeValidationRuleDeclaration = (RangeValidationRuleDeclaration)theEObject;\n T result = caseRangeValidationRuleDeclaration(rangeValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(rangeValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(rangeValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.REGEX_VALIDATION_RULE_DECLARATION:\n {\n RegexValidationRuleDeclaration regexValidationRuleDeclaration = (RegexValidationRuleDeclaration)theEObject;\n T result = caseRegexValidationRuleDeclaration(regexValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(regexValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(regexValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.RANGE:\n {\n Range range = (Range)theEObject;\n T result = caseRange(range);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UNIQUENESS_VALIDATION_RULE_DECLARATION:\n {\n UniquenessValidationRuleDeclaration uniquenessValidationRuleDeclaration = (UniquenessValidationRuleDeclaration)theEObject;\n T result = caseUniquenessValidationRuleDeclaration(uniquenessValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(uniquenessValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(uniquenessValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ERROR_MESSAGE:\n {\n ErrorMessage errorMessage = (ErrorMessage)theEObject;\n T result = caseErrorMessage(errorMessage);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.NATIVE_VALIDATION_RULE_DECLARATION:\n {\n NativeValidationRuleDeclaration nativeValidationRuleDeclaration = (NativeValidationRuleDeclaration)theEObject;\n T result = caseNativeValidationRuleDeclaration(nativeValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(nativeValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_DECLARATION:\n {\n FunctionDeclaration functionDeclaration = (FunctionDeclaration)theEObject;\n T result = caseFunctionDeclaration(functionDeclaration);\n if (result == null) result = caseDeclaration(functionDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_ARGUMENT_DECLARATION:\n {\n FunctionArgumentDeclaration functionArgumentDeclaration = (FunctionArgumentDeclaration)theEObject;\n T result = caseFunctionArgumentDeclaration(functionArgumentDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_ARGUMENT_BODY:\n {\n FunctionArgumentBody functionArgumentBody = (FunctionArgumentBody)theEObject;\n T result = caseFunctionArgumentBody(functionArgumentBody);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_CALL:\n {\n FunctionCall functionCall = (FunctionCall)theEObject;\n T result = caseFunctionCall(functionCall);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_PATH:\n {\n FieldPath fieldPath = (FieldPath)theEObject;\n T result = caseFieldPath(fieldPath);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_REFERENCE:\n {\n FieldReference fieldReference = (FieldReference)theEObject;\n T result = caseFieldReference(fieldReference);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_ARGUMENTS:\n {\n FunctionArguments functionArguments = (FunctionArguments)theEObject;\n T result = caseFunctionArguments(functionArguments);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_BODY:\n {\n FunctionBody functionBody = (FunctionBody)theEObject;\n T result = caseFunctionBody(functionBody);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.STATEMENT:\n {\n Statement statement = (Statement)theEObject;\n T result = caseStatement(statement);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UNION_RULE:\n {\n UnionRule unionRule = (UnionRule)theEObject;\n T result = caseUnionRule(unionRule);\n if (result == null) result = casePrimaryExpression(unionRule);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.QUERY_RULE:\n {\n QueryRule queryRule = (QueryRule)theEObject;\n T result = caseQueryRule(queryRule);\n if (result == null) result = caseStatement(queryRule);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SELECT_FROM:\n {\n SelectFrom selectFrom = (SelectFrom)theEObject;\n T result = caseSelectFrom(selectFrom);\n if (result == null) result = caseQueryRule(selectFrom);\n if (result == null) result = caseStatement(selectFrom);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SELECT_CLAUSE:\n {\n SelectClause selectClause = (SelectClause)theEObject;\n T result = caseSelectClause(selectClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.NEW_EXPRESSION:\n {\n NewExpression newExpression = (NewExpression)theEObject;\n T result = caseNewExpression(newExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_CLAUSE:\n {\n FromClause fromClause = (FromClause)theEObject;\n T result = caseFromClause(fromClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_JOIN:\n {\n FromJoin fromJoin = (FromJoin)theEObject;\n T result = caseFromJoin(fromJoin);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.WITH_CLAUSE:\n {\n WithClause withClause = (WithClause)theEObject;\n T result = caseWithClause(withClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_RANGE:\n {\n FromRange fromRange = (FromRange)theEObject;\n T result = caseFromRange(fromRange);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_CLASS_OR_OUTER_QUERY_PATH:\n {\n FromClassOrOuterQueryPath fromClassOrOuterQueryPath = (FromClassOrOuterQueryPath)theEObject;\n T result = caseFromClassOrOuterQueryPath(fromClassOrOuterQueryPath);\n if (result == null) result = caseFromJoin(fromClassOrOuterQueryPath);\n if (result == null) result = caseFromRange(fromClassOrOuterQueryPath);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.IN_COLLECTION_ELEMENTS_DECLARATION:\n {\n InCollectionElementsDeclaration inCollectionElementsDeclaration = (InCollectionElementsDeclaration)theEObject;\n T result = caseInCollectionElementsDeclaration(inCollectionElementsDeclaration);\n if (result == null) result = caseFromRange(inCollectionElementsDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.GROUP_BY_CLAUSE:\n {\n GroupByClause groupByClause = (GroupByClause)theEObject;\n T result = caseGroupByClause(groupByClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ORDER_BY_CLAUSE:\n {\n OrderByClause orderByClause = (OrderByClause)theEObject;\n T result = caseOrderByClause(orderByClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ORDER_ELEMENT:\n {\n OrderElement orderElement = (OrderElement)theEObject;\n T result = caseOrderElement(orderElement);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.HAVING_CLAUSE:\n {\n HavingClause havingClause = (HavingClause)theEObject;\n T result = caseHavingClause(havingClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.WHERE_CLAUSE:\n {\n WhereClause whereClause = (WhereClause)theEObject;\n T result = caseWhereClause(whereClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SELECTED_PROPERTIES_LIST:\n {\n SelectedPropertiesList selectedPropertiesList = (SelectedPropertiesList)theEObject;\n T result = caseSelectedPropertiesList(selectedPropertiesList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ALIASED_EXPRESSION:\n {\n AliasedExpression aliasedExpression = (AliasedExpression)theEObject;\n T result = caseAliasedExpression(aliasedExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EXPRESSION:\n {\n Expression expression = (Expression)theEObject;\n T result = caseExpression(expression);\n if (result == null) result = caseOrderElement(expression);\n if (result == null) result = caseAliasedExpression(expression);\n if (result == null) result = caseExpressionOrVector(expression);\n if (result == null) result = casePrimaryExpression(expression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LOGICAL_OR_EXPRESSION:\n {\n LogicalOrExpression logicalOrExpression = (LogicalOrExpression)theEObject;\n T result = caseLogicalOrExpression(logicalOrExpression);\n if (result == null) result = caseExpression(logicalOrExpression);\n if (result == null) result = caseOrderElement(logicalOrExpression);\n if (result == null) result = caseAliasedExpression(logicalOrExpression);\n if (result == null) result = caseExpressionOrVector(logicalOrExpression);\n if (result == null) result = casePrimaryExpression(logicalOrExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LOGICAL_AND_EXPRESSION:\n {\n LogicalAndExpression logicalAndExpression = (LogicalAndExpression)theEObject;\n T result = caseLogicalAndExpression(logicalAndExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.NEGATED_EXPRESSION:\n {\n NegatedExpression negatedExpression = (NegatedExpression)theEObject;\n T result = caseNegatedExpression(negatedExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EQUALITY_EXPRESSION:\n {\n EqualityExpression equalityExpression = (EqualityExpression)theEObject;\n T result = caseEqualityExpression(equalityExpression);\n if (result == null) result = caseNegatedExpression(equalityExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.RELATIONAL_EXPRESSION:\n {\n RelationalExpression relationalExpression = (RelationalExpression)theEObject;\n T result = caseRelationalExpression(relationalExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LIKE_ESCAPE:\n {\n LikeEscape likeEscape = (LikeEscape)theEObject;\n T result = caseLikeEscape(likeEscape);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.BETWEEN_LIST:\n {\n BetweenList betweenList = (BetweenList)theEObject;\n T result = caseBetweenList(betweenList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CONCATENATION:\n {\n Concatenation concatenation = (Concatenation)theEObject;\n T result = caseConcatenation(concatenation);\n if (result == null) result = caseRelationalExpression(concatenation);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ADDITIVE_EXPRESSION:\n {\n AdditiveExpression additiveExpression = (AdditiveExpression)theEObject;\n T result = caseAdditiveExpression(additiveExpression);\n if (result == null) result = caseConcatenation(additiveExpression);\n if (result == null) result = caseRelationalExpression(additiveExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.MULTIPLY_EXPRESSION:\n {\n MultiplyExpression multiplyExpression = (MultiplyExpression)theEObject;\n T result = caseMultiplyExpression(multiplyExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UNARY_EXPRESSION:\n {\n UnaryExpression unaryExpression = (UnaryExpression)theEObject;\n T result = caseUnaryExpression(unaryExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CASE_EXPRESSION:\n {\n CaseExpression caseExpression = (CaseExpression)theEObject;\n T result = caseCaseExpression(caseExpression);\n if (result == null) result = caseUnaryExpression(caseExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.WHEN_CLAUSE:\n {\n WhenClause whenClause = (WhenClause)theEObject;\n T result = caseWhenClause(whenClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ALT_WHEN_CLAUSE:\n {\n AltWhenClause altWhenClause = (AltWhenClause)theEObject;\n T result = caseAltWhenClause(altWhenClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ELSE_CLAUSE:\n {\n ElseClause elseClause = (ElseClause)theEObject;\n T result = caseElseClause(elseClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.QUANTIFIED_EXPRESSION:\n {\n QuantifiedExpression quantifiedExpression = (QuantifiedExpression)theEObject;\n T result = caseQuantifiedExpression(quantifiedExpression);\n if (result == null) result = caseUnaryExpression(quantifiedExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ATOM:\n {\n Atom atom = (Atom)theEObject;\n T result = caseAtom(atom);\n if (result == null) result = caseUnaryExpression(atom);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.PRIMARY_EXPRESSION:\n {\n PrimaryExpression primaryExpression = (PrimaryExpression)theEObject;\n T result = casePrimaryExpression(primaryExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EXPRESSION_OR_VECTOR:\n {\n ExpressionOrVector expressionOrVector = (ExpressionOrVector)theEObject;\n T result = caseExpressionOrVector(expressionOrVector);\n if (result == null) result = casePrimaryExpression(expressionOrVector);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.VECTOR_EXPR:\n {\n VectorExpr vectorExpr = (VectorExpr)theEObject;\n T result = caseVectorExpr(vectorExpr);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.IDENT_PRIMARY:\n {\n IdentPrimary identPrimary = (IdentPrimary)theEObject;\n T result = caseIdentPrimary(identPrimary);\n if (result == null) result = casePrimaryExpression(identPrimary);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.AGGREGATE:\n {\n Aggregate aggregate = (Aggregate)theEObject;\n T result = caseAggregate(aggregate);\n if (result == null) result = caseIdentPrimary(aggregate);\n if (result == null) result = casePrimaryExpression(aggregate);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPOUND_EXPR:\n {\n CompoundExpr compoundExpr = (CompoundExpr)theEObject;\n T result = caseCompoundExpr(compoundExpr);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EXPR_LIST:\n {\n ExprList exprList = (ExprList)theEObject;\n T result = caseExprList(exprList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "public final EObject ruleSwitchCase() throws RecognitionException {\n EObject current = null;\n\n EObject lv_caseExpression_1_0 = null;\n\n EObject lv_resultExpression_3_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3041:6: ( ( 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3042:1: ( 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3042:1: ( 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3042:3: 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) )\n {\n match(input,47,FOLLOW_47_in_ruleSwitchCase5245); \n\n createLeafNode(grammarAccess.getSwitchCaseAccess().getCaseKeyword_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3046:1: ( (lv_caseExpression_1_0= ruleImpliesExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3047:1: (lv_caseExpression_1_0= ruleImpliesExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3047:1: (lv_caseExpression_1_0= ruleImpliesExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3048:3: lv_caseExpression_1_0= ruleImpliesExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getSwitchCaseAccess().getCaseExpressionImpliesExpressionParserRuleCall_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleImpliesExpression_in_ruleSwitchCase5266);\n lv_caseExpression_1_0=ruleImpliesExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getSwitchCaseRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"caseExpression\",\n \t \t\tlv_caseExpression_1_0, \n \t \t\t\"ImpliesExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n match(input,20,FOLLOW_20_in_ruleSwitchCase5276); \n\n createLeafNode(grammarAccess.getSwitchCaseAccess().getColonKeyword_2(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3074:1: ( (lv_resultExpression_3_0= ruleExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3075:1: (lv_resultExpression_3_0= ruleExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3075:1: (lv_resultExpression_3_0= ruleExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3076:3: lv_resultExpression_3_0= ruleExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getSwitchCaseAccess().getResultExpressionExpressionParserRuleCall_3_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleExpression_in_ruleSwitchCase5297);\n lv_resultExpression_3_0=ruleExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getSwitchCaseRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"resultExpression\",\n \t \t\tlv_resultExpression_3_0, \n \t \t\t\"Expression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public String convertEnum()\n {\n \tswitch (pattern.ordinal())\n \t{\n \tcase 0:\n \t\treturn \"Red Cards\";\n \tcase 1:\n \t\treturn \"Black Cards\";\n \tcase 2:\n \t\treturn \"Hearts\";\n \tcase 3:\n \t\treturn \"Diamonds\";\n \tcase 4:\n \t\treturn \"Clubs\";\n \tcase 5:\n \t\treturn \"Spades\";\n \tcase 6:\n \t\treturn \"Twos\";\n \tcase 7:\n \t\treturn \"Threes\";\n \tcase 8:\n \t\treturn \"Fours\";\n \tcase 9:\n \t\treturn \"Fives\";\n \tcase 10:\n \t\treturn \"Sixes\";\n \tcase 11:\n \t\treturn \"Sevens\";\n \tcase 12:\n \t\treturn \"Eights\";\n \tcase 13:\n \t\treturn \"Nines\";\n \tcase 14:\n \t\treturn \"Tens\";\n \tcase 15:\n \t\treturn \"Jacks\";\n \tcase 16:\n \t\treturn \"Queens\";\n \tcase 17:\n \t\treturn \"Kings\";\n \tcase 18:\n \t\treturn \"Aces\";\n \tcase 19:\n \t\treturn \"Single Digit Primes\";\n \tcase 20:\n \t\treturn \"Pairs\";\n \tcase 21:\n \t\treturn \"Sum of Pairs\";\n \tcase 22:\n \t\treturn \"Incrementing Cards\";\n \tcase 23:\n \t\treturn \"Decrementing Cards\";\n \tdefault:\n \t\treturn \"\";\n \t}\n }", "private static ContextLabel stringToContextLabel(String s)\n {\n \tfor (ContextLabel enumVal : ContextLabel.values())\n \t{\n \t\tif (enumVal.toString().equals(s))\n \t\t\treturn enumVal;\n \t}\n \t\n \t// in case of failure\n \treturn ContextLabel.UNKNOWN;\n }", "public AppEnum getEnumAppParameter(HttpServletRequest request,\r\n\t\t\t\t\t\t\t\t\tString parameterName, \r\n\t\t\t\t\t\t\t\t\tClass<? extends AppEnum> enumType, \r\n\t\t\t\t\t\t\t\t\tAppEnum defaultValue) throws ServletException {\r\n\r\n\t\tString value = getStringParameter(request, parameterName, null);\r\n\t\tif (value == null) {\r\n\t\t\treturn defaultValue;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tAppEnum ret=AppEnum.value(enumType, value);\r\n\t\t\t\t\r\n\t\t\t\tif (ret==null){\r\n\t\t\t\t\treturn defaultValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tif (log.isDebugEnabled()){\r\n\t\t\t\t\tlog.debug(\"The parameter:'\" + parameterName\r\n\t\t\t\t\t\t\t + \"' with value :'\" + value\r\n\t\t\t\t\t\t\t + \"' can not be transformed into one enumerado \", e);\r\n\t\t\t\t}\r\n\t\t\t\treturn defaultValue;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final void rule__TypeSwitchCase__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11114:1: ( ( 'case' ) )\r\n // InternalGo.g:11115:1: ( 'case' )\r\n {\r\n // InternalGo.g:11115:1: ( 'case' )\r\n // InternalGo.g:11116:2: 'case'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n match(input,81,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private String recognizeType(String code) {\n String subCode = StringUtils.substring(code, 0, 2);\n String type;\n switch (subCode) {\n case \"00\":\n type = \"sz\"; // A\n break;\n case \"20\":\n type = \"sz\"; // B\n break;\n case \"30\":\n type = \"sz\"; // Entrepreneurship 创业板\n break;\n case \"60\":\n type = \"sh\"; // A\n break;\n case \"90\":\n type = \"sh\"; // B\n break;\n default:\n type = \"sz\";\n }\n return type;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean.Enum getCapitalInKind();", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case EventcalculusPackage.MODEL:\n {\n Model model = (Model)theEObject;\n T result = caseModel(model);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.IMPORT:\n {\n Import import_ = (Import)theEObject;\n T result = caseImport(import_);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.ANNOTATION:\n {\n Annotation annotation = (Annotation)theEObject;\n T result = caseAnnotation(annotation);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DECLARATION:\n {\n Declaration declaration = (Declaration)theEObject;\n T result = caseDeclaration(declaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEFINES:\n {\n Defines defines = (Defines)theEObject;\n T result = caseDefines(defines);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_SORT:\n {\n DefSort defSort = (DefSort)theEObject;\n T result = caseDefSort(defSort);\n if (result == null) result = caseDeclaration(defSort);\n if (result == null) result = caseDefines(defSort);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_RANGE:\n {\n DefRange defRange = (DefRange)theEObject;\n T result = caseDefRange(defRange);\n if (result == null) result = caseDeclaration(defRange);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_OPTION:\n {\n DefOption defOption = (DefOption)theEObject;\n T result = caseDefOption(defOption);\n if (result == null) result = caseDeclaration(defOption);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_COMPLETION:\n {\n DefCompletion defCompletion = (DefCompletion)theEObject;\n T result = caseDefCompletion(defCompletion);\n if (result == null) result = caseDeclaration(defCompletion);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_NON_INERTIA:\n {\n DefNonInertia defNonInertia = (DefNonInertia)theEObject;\n T result = caseDefNonInertia(defNonInertia);\n if (result == null) result = caseDeclaration(defNonInertia);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_XOR:\n {\n DefXor defXor = (DefXor)theEObject;\n T result = caseDefXor(defXor);\n if (result == null) result = caseDeclaration(defXor);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_MUTEX:\n {\n DefMutex defMutex = (DefMutex)theEObject;\n T result = caseDefMutex(defMutex);\n if (result == null) result = caseDeclaration(defMutex);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.STATEMENT:\n {\n Statement statement = (Statement)theEObject;\n T result = caseStatement(statement);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.LABELED_EXPRESSION:\n {\n LabeledExpression labeledExpression = (LabeledExpression)theEObject;\n T result = caseLabeledExpression(labeledExpression);\n if (result == null) result = caseStatement(labeledExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.SORT_DEFINITION:\n {\n SortDefinition sortDefinition = (SortDefinition)theEObject;\n T result = caseSortDefinition(sortDefinition);\n if (result == null) result = caseStatement(sortDefinition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEFINITION:\n {\n Definition definition = (Definition)theEObject;\n T result = caseDefinition(definition);\n if (result == null) result = caseDefines(definition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.EXPRESSION:\n {\n Expression expression = (Expression)theEObject;\n T result = caseExpression(expression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.QUALIFIER:\n {\n Qualifier qualifier = (Qualifier)theEObject;\n T result = caseQualifier(qualifier);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.PARAMETERS:\n {\n Parameters parameters = (Parameters)theEObject;\n T result = caseParameters(parameters);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.TERMINAL_EXPRESSION:\n {\n TerminalExpression terminalExpression = (TerminalExpression)theEObject;\n T result = caseTerminalExpression(terminalExpression);\n if (result == null) result = caseExpression(terminalExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.ASSIGN_PLUS:\n {\n AssignPlus assignPlus = (AssignPlus)theEObject;\n T result = caseAssignPlus(assignPlus);\n if (result == null) result = caseExpression(assignPlus);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.ASSIGN_MIN:\n {\n AssignMin assignMin = (AssignMin)theEObject;\n T result = caseAssignMin(assignMin);\n if (result == null) result = caseExpression(assignMin);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.OR:\n {\n Or or = (Or)theEObject;\n T result = caseOr(or);\n if (result == null) result = caseExpression(or);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.AND:\n {\n And and = (And)theEObject;\n T result = caseAnd(and);\n if (result == null) result = caseExpression(and);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_NOT_EQ:\n {\n RelNotEq relNotEq = (RelNotEq)theEObject;\n T result = caseRelNotEq(relNotEq);\n if (result == null) result = caseExpression(relNotEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_EQ_EQ:\n {\n RelEqEq relEqEq = (RelEqEq)theEObject;\n T result = caseRelEqEq(relEqEq);\n if (result == null) result = caseExpression(relEqEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_LT_EQ:\n {\n RelLtEq relLtEq = (RelLtEq)theEObject;\n T result = caseRelLtEq(relLtEq);\n if (result == null) result = caseExpression(relLtEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_GT_EQ:\n {\n RelGtEq relGtEq = (RelGtEq)theEObject;\n T result = caseRelGtEq(relGtEq);\n if (result == null) result = caseExpression(relGtEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_EQ:\n {\n RelEq relEq = (RelEq)theEObject;\n T result = caseRelEq(relEq);\n if (result == null) result = caseExpression(relEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_LT:\n {\n RelLt relLt = (RelLt)theEObject;\n T result = caseRelLt(relLt);\n if (result == null) result = caseExpression(relLt);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_GT:\n {\n RelGt relGt = (RelGt)theEObject;\n T result = caseRelGt(relGt);\n if (result == null) result = caseExpression(relGt);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.PLUS:\n {\n Plus plus = (Plus)theEObject;\n T result = casePlus(plus);\n if (result == null) result = caseExpression(plus);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.MINUS:\n {\n Minus minus = (Minus)theEObject;\n T result = caseMinus(minus);\n if (result == null) result = caseExpression(minus);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.MULTI:\n {\n Multi multi = (Multi)theEObject;\n T result = caseMulti(multi);\n if (result == null) result = caseExpression(multi);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DIV:\n {\n Div div = (Div)theEObject;\n T result = caseDiv(div);\n if (result == null) result = caseExpression(div);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.POW:\n {\n Pow pow = (Pow)theEObject;\n T result = casePow(pow);\n if (result == null) result = caseExpression(pow);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.FUNCTION_REF:\n {\n FunctionRef functionRef = (FunctionRef)theEObject;\n T result = caseFunctionRef(functionRef);\n if (result == null) result = caseExpression(functionRef);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.INT_LITERAL:\n {\n IntLiteral intLiteral = (IntLiteral)theEObject;\n T result = caseIntLiteral(intLiteral);\n if (result == null) result = caseTerminalExpression(intLiteral);\n if (result == null) result = caseExpression(intLiteral);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.STRING_LITERAL:\n {\n StringLiteral stringLiteral = (StringLiteral)theEObject;\n T result = caseStringLiteral(stringLiteral);\n if (result == null) result = caseTerminalExpression(stringLiteral);\n if (result == null) result = caseExpression(stringLiteral);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.BOOLEAN_LITERAL:\n {\n BooleanLiteral booleanLiteral = (BooleanLiteral)theEObject;\n T result = caseBooleanLiteral(booleanLiteral);\n if (result == null) result = caseTerminalExpression(booleanLiteral);\n if (result == null) result = caseExpression(booleanLiteral);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "protected T doSwitch(int classifierID, EObject theEObject) {\n\t\tswitch (classifierID) {\n\t\t\tcase PalettePackage.PALETTE: {\n\t\t\t\tPalette palette = (Palette)theEObject;\n\t\t\t\tT result = casePalette(palette);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase PalettePackage.ENTRY: {\n\t\t\t\tEntry entry = (Entry)theEObject;\n\t\t\t\tT result = caseEntry(entry);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase PalettePackage.INITIALIZER: {\n\t\t\t\tInitializer initializer = (Initializer)theEObject;\n\t\t\t\tT result = caseInitializer(initializer);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase PalettePackage.COMPOUND_INITIALIZER: {\n\t\t\t\tCompoundInitializer compoundInitializer = (CompoundInitializer)theEObject;\n\t\t\t\tT result = caseCompoundInitializer(compoundInitializer);\n\t\t\t\tif (result == null) result = caseInitializer(compoundInitializer);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return defaultCase(theEObject);\n\t\t}\n\t}", "public static BendType toEnum(int val) {\r\n\t\t\ttry {\r\n\t\t\t\treturn values()[val - 1];\r\n\t\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}", "public static Obj enumType(String type) {\n\t\tif ((type != null) && !type.isEmpty() && (StrObj.containsKey(type)))\n\t\t\treturn StrObj.get(type);\n\t\telse\n\t\t\treturn Obj.UNKOBJ;\n\t}", "private void registerCaseOp(final SqlOperator op)\n {\n registerOp(\n op,\n new RexSqlConvertlet() {\n public SqlNode convertCall(\n RexToSqlNodeConverter converter,\n RexCall call)\n {\n assert (op instanceof SqlCaseOperator);\n SqlNode [] operands =\n convertExpressionList(converter, call.operands);\n if (operands == null) {\n return null;\n }\n SqlNodeList whenList = new SqlNodeList(SqlParserPos.ZERO);\n SqlNodeList thenList = new SqlNodeList(SqlParserPos.ZERO);\n int i = 0;\n while (i < operands.length - 1) {\n whenList.add(operands[i]);\n ++i;\n thenList.add(operands[i]);\n ++i;\n }\n SqlNode elseExpr = operands[i];\n SqlNode [] newOperands = new SqlNode[3];\n newOperands[0] = whenList;\n newOperands[1] = thenList;\n newOperands[2] = elseExpr;\n return op.createCall(null, SqlParserPos.ZERO, newOperands);\n }\n });\n }", "public static boolean switchExpressionCase(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"switchExpressionCase\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, SWITCH_EXPRESSION_CASE, \"<switch expression case>\");\n r = guardedPattern(b, l + 1);\n r = r && consumeToken(b, EXPRESSION_BODY_DEF);\n r = r && expression(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public final void switchLabel() throws RecognitionException {\n int switchLabel_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"switchLabel\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(665, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 96) ) { return ; }\n // Java.g:666:5: ( 'case' constantExpression ':' | 'case' enumConstantName ':' | 'default' ':' )\n int alt119=3;\n try { dbg.enterDecision(119);\n\n int LA119_0 = input.LA(1);\n\n if ( (LA119_0==89) ) {\n int LA119_1 = input.LA(2);\n\n if ( (LA119_1==Identifier) ) {\n int LA119_3 = input.LA(3);\n\n if ( (LA119_3==75) ) {\n int LA119_5 = input.LA(4);\n\n if ( (synpred180_Java()) ) {\n alt119=1;\n }\n else if ( (synpred181_Java()) ) {\n alt119=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 5, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else if ( ((LA119_3>=29 && LA119_3<=30)||LA119_3==40||(LA119_3>=42 && LA119_3<=43)||LA119_3==48||LA119_3==51||LA119_3==64||LA119_3==66||(LA119_3>=90 && LA119_3<=110)) ) {\n alt119=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 3, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else if ( ((LA119_1>=FloatingPointLiteral && LA119_1<=DecimalLiteral)||LA119_1==47||(LA119_1>=56 && LA119_1<=63)||(LA119_1>=65 && LA119_1<=66)||(LA119_1>=69 && LA119_1<=72)||(LA119_1>=105 && LA119_1<=106)||(LA119_1>=109 && LA119_1<=113)) ) {\n alt119=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 1, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else if ( (LA119_0==74) ) {\n alt119=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(119);}\n\n switch (alt119) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:666:9: 'case' constantExpression ':'\n {\n dbg.location(666,9);\n match(input,89,FOLLOW_89_in_switchLabel3798); if (state.failed) return ;\n dbg.location(666,16);\n pushFollow(FOLLOW_constantExpression_in_switchLabel3800);\n constantExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(666,35);\n match(input,75,FOLLOW_75_in_switchLabel3802); if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:667:9: 'case' enumConstantName ':'\n {\n dbg.location(667,9);\n match(input,89,FOLLOW_89_in_switchLabel3812); if (state.failed) return ;\n dbg.location(667,16);\n pushFollow(FOLLOW_enumConstantName_in_switchLabel3814);\n enumConstantName();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(667,33);\n match(input,75,FOLLOW_75_in_switchLabel3816); if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:668:9: 'default' ':'\n {\n dbg.location(668,9);\n match(input,74,FOLLOW_74_in_switchLabel3826); if (state.failed) return ;\n dbg.location(668,19);\n match(input,75,FOLLOW_75_in_switchLabel3828); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 96, switchLabel_StartIndex); }\n }\n dbg.location(669, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"switchLabel\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public final void rule__ExprSwitchCase__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10466:1: ( ( 'case' ) )\r\n // InternalGo.g:10467:1: ( 'case' )\r\n {\r\n // InternalGo.g:10467:1: ( 'case' )\r\n // InternalGo.g:10468:2: 'case'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n match(input,81,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();", "public static void main(String[] args) {\n \n String MaritalStatus=\"D\";\n \n Scanner in = new Scanner(System.in);\n \n System.out.print(\"Please enter your Marital status:\");\n String userInput = in.nextLine();\n \n switch (MaritalStatus) \n { \n case \"D\":\n System.out.print(\"status: divorced\");\n break;\n case \"S\":\n System.out.print(\"status: single\");\n break;\n case \"M\":\n System.out.print(\"status: married\");\n break;\n case \"W\":\n System.out.print(\"status: widowed\");\n break; \n default:\n System.out.print(\"Invalid Date\");\n }\n \n \n }", "EEnum createEEnum();", "public interface CodeEnum {\n Integer getCode();\n\n String getMeaning();\n}", "public T caseSwitch(Switch object) {\n\t\treturn null;\n\t}", "private FunctionEnum(String value) {\n\t\tthis.value = value;\n\t}", "EnumTypeDefinition createEnumTypeDefinition();", "private ParkingType getVehicleType() {\n LOGGER.info(\"Please select vehicle type from menu\");\n LOGGER.info(\"1 CAR\");\n LOGGER.info(\"2 BIKE\");\n int input = inputReaderUtil.readSelection();\n switch (input) {\n case 1:\n return ParkingType.CAR;\n case 2:\n return ParkingType.BIKE;\n default:\n LOGGER.error(\"Incorrect input provided\");\n throw new IllegalArgumentException(\"Entered input is invalid\");\n }\n }", "@Override\n\tprotected T doSwitch(int classifierID, EObject theEObject) {\n\t\tswitch (classifierID) {\n\t\t\tcase EpkDSLPackage.NAMED_ELEMENT: {\n\t\t\t\tNamedElement namedElement = (NamedElement)theEObject;\n\t\t\t\tT result = caseNamedElement(namedElement);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.EPK: {\n\t\t\t\tEpk epk = (Epk)theEObject;\n\t\t\t\tT result = caseEpk(epk);\n\t\t\t\tif (result == null) result = caseNamedElement(epk);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.EDGE: {\n\t\t\t\tEdge edge = (Edge)theEObject;\n\t\t\t\tT result = caseEdge(edge);\n\t\t\t\tif (result == null) result = caseEpk(edge);\n\t\t\t\tif (result == null) result = caseNamedElement(edge);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.NODE: {\n\t\t\t\tNode node = (Node)theEObject;\n\t\t\t\tT result = caseNode(node);\n\t\t\t\tif (result == null) result = caseEpk(node);\n\t\t\t\tif (result == null) result = caseNamedElement(node);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.EVENT: {\n\t\t\t\tEvent event = (Event)theEObject;\n\t\t\t\tT result = caseEvent(event);\n\t\t\t\tif (result == null) result = caseNode(event);\n\t\t\t\tif (result == null) result = caseEpk(event);\n\t\t\t\tif (result == null) result = caseNamedElement(event);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FUNCTION: {\n\t\t\t\tFunction function = (Function)theEObject;\n\t\t\t\tT result = caseFunction(function);\n\t\t\t\tif (result == null) result = caseNode(function);\n\t\t\t\tif (result == null) result = caseEpk(function);\n\t\t\t\tif (result == null) result = caseNamedElement(function);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.IN_OUTPUT: {\n\t\t\t\tInOutput inOutput = (InOutput)theEObject;\n\t\t\t\tT result = caseInOutput(inOutput);\n\t\t\t\tif (result == null) result = caseNode(inOutput);\n\t\t\t\tif (result == null) result = caseEpk(inOutput);\n\t\t\t\tif (result == null) result = caseNamedElement(inOutput);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.ORG_UNIT: {\n\t\t\t\tOrgUnit orgUnit = (OrgUnit)theEObject;\n\t\t\t\tT result = caseOrgUnit(orgUnit);\n\t\t\t\tif (result == null) result = caseNode(orgUnit);\n\t\t\t\tif (result == null) result = caseEpk(orgUnit);\n\t\t\t\tif (result == null) result = caseNamedElement(orgUnit);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.PROC_PATH: {\n\t\t\t\tProcPath procPath = (ProcPath)theEObject;\n\t\t\t\tT result = caseProcPath(procPath);\n\t\t\t\tif (result == null) result = caseNode(procPath);\n\t\t\t\tif (result == null) result = caseEpk(procPath);\n\t\t\t\tif (result == null) result = caseNamedElement(procPath);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.CONNECTOR: {\n\t\t\t\tConnector connector = (Connector)theEObject;\n\t\t\t\tT result = caseConnector(connector);\n\t\t\t\tif (result == null) result = caseNode(connector);\n\t\t\t\tif (result == null) result = caseEpk(connector);\n\t\t\t\tif (result == null) result = caseNamedElement(connector);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.ECONNECTOR: {\n\t\t\t\tEConnector eConnector = (EConnector)theEObject;\n\t\t\t\tT result = caseEConnector(eConnector);\n\t\t\t\tif (result == null) result = caseConnector(eConnector);\n\t\t\t\tif (result == null) result = caseNode(eConnector);\n\t\t\t\tif (result == null) result = caseEpk(eConnector);\n\t\t\t\tif (result == null) result = caseNamedElement(eConnector);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FCONNECTOR: {\n\t\t\t\tFConnector fConnector = (FConnector)theEObject;\n\t\t\t\tT result = caseFConnector(fConnector);\n\t\t\t\tif (result == null) result = caseConnector(fConnector);\n\t\t\t\tif (result == null) result = caseNode(fConnector);\n\t\t\t\tif (result == null) result = caseEpk(fConnector);\n\t\t\t\tif (result == null) result = caseNamedElement(fConnector);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.DEFAULT_CONNECTION: {\n\t\t\t\tDefaultConnection defaultConnection = (DefaultConnection)theEObject;\n\t\t\t\tT result = caseDefaultConnection(defaultConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.EV_TO_FU_CONNECTION: {\n\t\t\t\tEvToFuConnection evToFuConnection = (EvToFuConnection)theEObject;\n\t\t\t\tT result = caseEvToFuConnection(evToFuConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(evToFuConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FU_TO_EV_CONNECTION: {\n\t\t\t\tFuToEvConnection fuToEvConnection = (FuToEvConnection)theEObject;\n\t\t\t\tT result = caseFuToEvConnection(fuToEvConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(fuToEvConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.EV_TO_ECON_CONNECTION: {\n\t\t\t\tEvToEConConnection evToEConConnection = (EvToEConConnection)theEObject;\n\t\t\t\tT result = caseEvToEConConnection(evToEConConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(evToEConConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.ECON_TO_FU_CONNECTION: {\n\t\t\t\tEConToFuConnection eConToFuConnection = (EConToFuConnection)theEObject;\n\t\t\t\tT result = caseEConToFuConnection(eConToFuConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(eConToFuConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FU_TO_FCON_CONNECTION: {\n\t\t\t\tFuToFConConnection fuToFConConnection = (FuToFConConnection)theEObject;\n\t\t\t\tT result = caseFuToFConConnection(fuToFConConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(fuToFConConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FCON_TO_EV_CONNECTION: {\n\t\t\t\tFConToEvConnection fConToEvConnection = (FConToEvConnection)theEObject;\n\t\t\t\tT result = caseFConToEvConnection(fConToEvConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(fConToEvConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.OU_TO_FU_CONNECTION: {\n\t\t\t\tOuToFuConnection ouToFuConnection = (OuToFuConnection)theEObject;\n\t\t\t\tT result = caseOuToFuConnection(ouToFuConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(ouToFuConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.IO_TO_FU_CONNECTION: {\n\t\t\t\tIoToFuConnection ioToFuConnection = (IoToFuConnection)theEObject;\n\t\t\t\tT result = caseIoToFuConnection(ioToFuConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(ioToFuConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.NODE_TO_PP_CONNECTION: {\n\t\t\t\tNodeToPpConnection nodeToPpConnection = (NodeToPpConnection)theEObject;\n\t\t\t\tT result = caseNodeToPpConnection(nodeToPpConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(nodeToPpConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.PP_TO_NODE_CONNECTION: {\n\t\t\t\tPpToNodeConnection ppToNodeConnection = (PpToNodeConnection)theEObject;\n\t\t\t\tT result = casePpToNodeConnection(ppToNodeConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(ppToNodeConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.START_EVENT: {\n\t\t\t\tStartEvent startEvent = (StartEvent)theEObject;\n\t\t\t\tT result = caseStartEvent(startEvent);\n\t\t\t\tif (result == null) result = caseNode(startEvent);\n\t\t\t\tif (result == null) result = caseEpk(startEvent);\n\t\t\t\tif (result == null) result = caseNamedElement(startEvent);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.END_EVENT: {\n\t\t\t\tEndEvent endEvent = (EndEvent)theEObject;\n\t\t\t\tT result = caseEndEvent(endEvent);\n\t\t\t\tif (result == null) result = caseNode(endEvent);\n\t\t\t\tif (result == null) result = caseEpk(endEvent);\n\t\t\t\tif (result == null) result = caseNamedElement(endEvent);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.START_EV_TO_FU_CONNECTION: {\n\t\t\t\tStartEvToFuConnection startEvToFuConnection = (StartEvToFuConnection)theEObject;\n\t\t\t\tT result = caseStartEvToFuConnection(startEvToFuConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(startEvToFuConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.START_EV_TO_ECON_CONNECTION: {\n\t\t\t\tStartEvToEConConnection startEvToEConConnection = (StartEvToEConConnection)theEObject;\n\t\t\t\tT result = caseStartEvToEConConnection(startEvToEConConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(startEvToEConConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FU_TO_END_EV_CONNECTION: {\n\t\t\t\tFuToEndEvConnection fuToEndEvConnection = (FuToEndEvConnection)theEObject;\n\t\t\t\tT result = caseFuToEndEvConnection(fuToEndEvConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(fuToEndEvConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase EpkDSLPackage.FCON_TO_END_EV_CONNECTION: {\n\t\t\t\tFConToEndEvConnection fConToEndEvConnection = (FConToEndEvConnection)theEObject;\n\t\t\t\tT result = caseFConToEndEvConnection(fConToEndEvConnection);\n\t\t\t\tif (result == null) result = caseDefaultConnection(fConToEndEvConnection);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return defaultCase(theEObject);\n\t\t}\n\t}", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case LosMelosPackage.PROGRAM:\n {\n Program program = (Program)theEObject;\n T result = caseProgram(program);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.DEFINICIONES:\n {\n Definiciones definiciones = (Definiciones)theEObject;\n T result = caseDefiniciones(definiciones);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.FUNCIONES:\n {\n Funciones funciones = (Funciones)theEObject;\n T result = caseFunciones(funciones);\n if (result == null) result = caseDefiniciones(funciones);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.VARIABLES:\n {\n Variables variables = (Variables)theEObject;\n T result = caseVariables(variables);\n if (result == null) result = caseDefiniciones(variables);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPRESION:\n {\n Expresion expresion = (Expresion)theEObject;\n T result = caseExpresion(expresion);\n if (result == null) result = caseExprThen(expresion);\n if (result == null) result = caseExprElse(expresion);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.LLAMADA_PARAMETRO:\n {\n LlamadaParametro llamadaParametro = (LlamadaParametro)theEObject;\n T result = caseLlamadaParametro(llamadaParametro);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPRESION_VAR:\n {\n ExpresionVar expresionVar = (ExpresionVar)theEObject;\n T result = caseExpresionVar(expresionVar);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.BASICA:\n {\n Basica basica = (Basica)theEObject;\n T result = caseBasica(basica);\n if (result == null) result = caseExpresion(basica);\n if (result == null) result = caseExprThen(basica);\n if (result == null) result = caseExprElse(basica);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_STRING:\n {\n ExprString exprString = (ExprString)theEObject;\n T result = caseExprString(exprString);\n if (result == null) result = caseExpresionVar(exprString);\n if (result == null) result = caseBasica(exprString);\n if (result == null) result = caseElementList(exprString);\n if (result == null) result = caseExpresion(exprString);\n if (result == null) result = caseExprThen(exprString);\n if (result == null) result = caseExprElse(exprString);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_NUMBER:\n {\n ExprNumber exprNumber = (ExprNumber)theEObject;\n T result = caseExprNumber(exprNumber);\n if (result == null) result = caseBasica(exprNumber);\n if (result == null) result = caseExpresion(exprNumber);\n if (result == null) result = caseExprThen(exprNumber);\n if (result == null) result = caseExprElse(exprNumber);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_INT:\n {\n ExprInt exprInt = (ExprInt)theEObject;\n T result = caseExprInt(exprInt);\n if (result == null) result = caseExpresionVar(exprInt);\n if (result == null) result = caseExprNumber(exprInt);\n if (result == null) result = caseElementList(exprInt);\n if (result == null) result = caseBasica(exprInt);\n if (result == null) result = caseExpresion(exprInt);\n if (result == null) result = caseExprThen(exprInt);\n if (result == null) result = caseExprElse(exprInt);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_ARITHMETIC:\n {\n ExprArithmetic exprArithmetic = (ExprArithmetic)theEObject;\n T result = caseExprArithmetic(exprArithmetic);\n if (result == null) result = caseExprNumber(exprArithmetic);\n if (result == null) result = caseEjecuciones(exprArithmetic);\n if (result == null) result = caseBasica(exprArithmetic);\n if (result == null) result = caseExpresion(exprArithmetic);\n if (result == null) result = caseExprThen(exprArithmetic);\n if (result == null) result = caseExprElse(exprArithmetic);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_PARAM:\n {\n ExprParam exprParam = (ExprParam)theEObject;\n T result = caseExprParam(exprParam);\n if (result == null) result = caseBasica(exprParam);\n if (result == null) result = caseExpresion(exprParam);\n if (result == null) result = caseExprThen(exprParam);\n if (result == null) result = caseExprElse(exprParam);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.LLAMADA_FUNCION:\n {\n LlamadaFuncion llamadaFuncion = (LlamadaFuncion)theEObject;\n T result = caseLlamadaFuncion(llamadaFuncion);\n if (result == null) result = caseExpresion(llamadaFuncion);\n if (result == null) result = caseEjecuciones(llamadaFuncion);\n if (result == null) result = caseExprThen(llamadaFuncion);\n if (result == null) result = caseExprElse(llamadaFuncion);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_BOOL:\n {\n ExprBool exprBool = (ExprBool)theEObject;\n T result = caseExprBool(exprBool);\n if (result == null) result = caseExpresion(exprBool);\n if (result == null) result = caseExpresionVar(exprBool);\n if (result == null) result = caseElementList(exprBool);\n if (result == null) result = caseEjecuciones(exprBool);\n if (result == null) result = caseExprThen(exprBool);\n if (result == null) result = caseExprElse(exprBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.VAL_BOOL:\n {\n ValBool valBool = (ValBool)theEObject;\n T result = caseValBool(valBool);\n if (result == null) result = caseExprBool(valBool);\n if (result == null) result = caseExpresion(valBool);\n if (result == null) result = caseExpresionVar(valBool);\n if (result == null) result = caseElementList(valBool);\n if (result == null) result = caseEjecuciones(valBool);\n if (result == null) result = caseExprThen(valBool);\n if (result == null) result = caseExprElse(valBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.COMP_BOOL:\n {\n CompBool compBool = (CompBool)theEObject;\n T result = caseCompBool(compBool);\n if (result == null) result = caseExprBool(compBool);\n if (result == null) result = caseExpresion(compBool);\n if (result == null) result = caseExpresionVar(compBool);\n if (result == null) result = caseElementList(compBool);\n if (result == null) result = caseEjecuciones(compBool);\n if (result == null) result = caseExprThen(compBool);\n if (result == null) result = caseExprElse(compBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.OP_BOOL:\n {\n OpBool opBool = (OpBool)theEObject;\n T result = caseOpBool(opBool);\n if (result == null) result = caseExprBool(opBool);\n if (result == null) result = caseExpresion(opBool);\n if (result == null) result = caseExpresionVar(opBool);\n if (result == null) result = caseElementList(opBool);\n if (result == null) result = caseEjecuciones(opBool);\n if (result == null) result = caseExprThen(opBool);\n if (result == null) result = caseExprElse(opBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_IF:\n {\n ExprIf exprIf = (ExprIf)theEObject;\n T result = caseExprIf(exprIf);\n if (result == null) result = caseExpresion(exprIf);\n if (result == null) result = caseEjecuciones(exprIf);\n if (result == null) result = caseExprThen(exprIf);\n if (result == null) result = caseExprElse(exprIf);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_THEN:\n {\n ExprThen exprThen = (ExprThen)theEObject;\n T result = caseExprThen(exprThen);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_ELSE:\n {\n ExprElse exprElse = (ExprElse)theEObject;\n T result = caseExprElse(exprElse);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_LIST:\n {\n ExprList exprList = (ExprList)theEObject;\n T result = caseExprList(exprList);\n if (result == null) result = caseExpresionVar(exprList);\n if (result == null) result = caseEjecuciones(exprList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_LIST2:\n {\n ExprList2 exprList2 = (ExprList2)theEObject;\n T result = caseExprList2(exprList2);\n if (result == null) result = caseExpresion(exprList2);\n if (result == null) result = caseExprThen(exprList2);\n if (result == null) result = caseExprElse(exprList2);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.ELEMENT_LIST:\n {\n ElementList elementList = (ElementList)theEObject;\n T result = caseElementList(elementList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.FUNC_LIST:\n {\n FuncList funcList = (FuncList)theEObject;\n T result = caseFuncList(funcList);\n if (result == null) result = caseExpresion(funcList);\n if (result == null) result = caseEjecuciones(funcList);\n if (result == null) result = caseExprThen(funcList);\n if (result == null) result = caseExprElse(funcList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_CAR:\n {\n ExprCar exprCar = (ExprCar)theEObject;\n T result = caseExprCar(exprCar);\n if (result == null) result = caseFuncList(exprCar);\n if (result == null) result = caseExpresion(exprCar);\n if (result == null) result = caseEjecuciones(exprCar);\n if (result == null) result = caseExprThen(exprCar);\n if (result == null) result = caseExprElse(exprCar);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_CDR:\n {\n ExprCdr exprCdr = (ExprCdr)theEObject;\n T result = caseExprCdr(exprCdr);\n if (result == null) result = caseFuncList(exprCdr);\n if (result == null) result = caseExpresion(exprCdr);\n if (result == null) result = caseEjecuciones(exprCdr);\n if (result == null) result = caseExprThen(exprCdr);\n if (result == null) result = caseExprElse(exprCdr);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_CONS:\n {\n ExprCons exprCons = (ExprCons)theEObject;\n T result = caseExprCons(exprCons);\n if (result == null) result = caseFuncList(exprCons);\n if (result == null) result = caseExpresion(exprCons);\n if (result == null) result = caseEjecuciones(exprCons);\n if (result == null) result = caseExprThen(exprCons);\n if (result == null) result = caseExprElse(exprCons);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_IS_EMPTY:\n {\n ExprIsEmpty exprIsEmpty = (ExprIsEmpty)theEObject;\n T result = caseExprIsEmpty(exprIsEmpty);\n if (result == null) result = caseFuncList(exprIsEmpty);\n if (result == null) result = caseExpresion(exprIsEmpty);\n if (result == null) result = caseEjecuciones(exprIsEmpty);\n if (result == null) result = caseExprThen(exprIsEmpty);\n if (result == null) result = caseExprElse(exprIsEmpty);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_LENGTH:\n {\n ExprLength exprLength = (ExprLength)theEObject;\n T result = caseExprLength(exprLength);\n if (result == null) result = caseFuncList(exprLength);\n if (result == null) result = caseExpresion(exprLength);\n if (result == null) result = caseEjecuciones(exprLength);\n if (result == null) result = caseExprThen(exprLength);\n if (result == null) result = caseExprElse(exprLength);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_PRINT:\n {\n ExprPrint exprPrint = (ExprPrint)theEObject;\n T result = caseExprPrint(exprPrint);\n if (result == null) result = caseBasica(exprPrint);\n if (result == null) result = caseExpresion(exprPrint);\n if (result == null) result = caseExprThen(exprPrint);\n if (result == null) result = caseExprElse(exprPrint);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EJECUCIONES:\n {\n Ejecuciones ejecuciones = (Ejecuciones)theEObject;\n T result = caseEjecuciones(ejecuciones);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "public static String convertChoice(int choice) {\n String output = \"default\";\n switch (choice) {\n case 1:\n output = \"Rock\";\n break;\n case 2:\n output = \"Paper\";\n break;\n case 3:\n output = \"Scissors\";\n break;\n }\n return output;\n }", "public String createEnum(String type) {\n String strEnum = \"\";\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n strEnum = EnumFactory.enumStrings[i];\n break;\n }\n }\n if (type == PAGE && countKeys[i] == 1)\n return EnumFactory.PAGE_MAIN;\n return String.format(\"%s%d\", strEnum,countKeys[i]);\n }", "@Test\n public void operator_enum() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(BasicTypeKind.VOID), typeOf(Enum.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!VOID\"));\n }", "protected T doSwitch(int classifierID, EObject theEObject) {\n\t\tswitch (classifierID) {\n\t\t\tcase FMPackage.REGISTRY: {\n\t\t\t\tRegistry registry = (Registry)theEObject;\n\t\t\t\tT result = caseRegistry(registry);\n\t\t\t\tif (result == null) result = caseFacadeElement(registry);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase FMPackage.ASSISTANT: {\n\t\t\t\tAssistant assistant = (Assistant)theEObject;\n\t\t\t\tT result = caseAssistant(assistant);\n\t\t\t\tif (result == null) result = caseFacadeElement(assistant);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase FMPackage.OPTION: {\n\t\t\t\tOption option = (Option)theEObject;\n\t\t\t\tT result = caseOption(option);\n\t\t\t\tif (result == null) result = caseFacadeElement(option);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase FMPackage.ARGUMENT: {\n\t\t\t\tArgument argument = (Argument)theEObject;\n\t\t\t\tT result = caseArgument(argument);\n\t\t\t\tif (result == null) result = caseFacadeElement(argument);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase FMPackage.FUNCTION: {\n\t\t\t\tFunction function = (Function)theEObject;\n\t\t\t\tT result = caseFunction(function);\n\t\t\t\tif (result == null) result = caseFacadeElement(function);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase FMPackage.FACADE_ELEMENT: {\n\t\t\t\tFacadeElement facadeElement = (FacadeElement)theEObject;\n\t\t\t\tT result = caseFacadeElement(facadeElement);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return defaultCase(theEObject);\n\t\t}\n\t}", "@Override\n public String visit(EnumDeclaration n, Object arg) {\n return null;\n }", "public static boolean switchCase(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"switchCase\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, SWITCH_CASE, \"<switch case>\");\n r = switchCase_0(b, l + 1);\n r = r && switchCase_1(b, l + 1);\n r = r && statements(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "protected String alterCase(String value) {\n\t\tswitch (getCase()) {\n\t\tcase UPPERCASE:\n\t\t\treturn value.toUpperCase();\n\t\tcase LOWERCASE:\n\t\t\treturn value.toLowerCase();\n\t\tdefault:\n\t\t\treturn value;\n\t\t}\n\t}", "@Override\n\tprotected T doSwitch(int classifierID, EObject theEObject) {\n\t\tswitch (classifierID) {\n\t\t\tcase BuildingPackage.ABSTRACT_BOUNDARY_SURFACE_TYPE: {\n\t\t\t\tAbstractBoundarySurfaceType abstractBoundarySurfaceType = (AbstractBoundarySurfaceType)theEObject;\n\t\t\t\tT result = caseAbstractBoundarySurfaceType(abstractBoundarySurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(abstractBoundarySurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(abstractBoundarySurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(abstractBoundarySurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.ABSTRACT_BUILDING_TYPE: {\n\t\t\t\tAbstractBuildingType abstractBuildingType = (AbstractBuildingType)theEObject;\n\t\t\t\tT result = caseAbstractBuildingType(abstractBuildingType);\n\t\t\t\tif (result == null) result = caseAbstractSiteType(abstractBuildingType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(abstractBuildingType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(abstractBuildingType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(abstractBuildingType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.ABSTRACT_OPENING_TYPE: {\n\t\t\t\tAbstractOpeningType abstractOpeningType = (AbstractOpeningType)theEObject;\n\t\t\t\tT result = caseAbstractOpeningType(abstractOpeningType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(abstractOpeningType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(abstractOpeningType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(abstractOpeningType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BOUNDARY_SURFACE_PROPERTY_TYPE: {\n\t\t\t\tBoundarySurfacePropertyType boundarySurfacePropertyType = (BoundarySurfacePropertyType)theEObject;\n\t\t\t\tT result = caseBoundarySurfacePropertyType(boundarySurfacePropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(boundarySurfacePropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BUILDING_FURNITURE_TYPE: {\n\t\t\t\tBuildingFurnitureType buildingFurnitureType = (BuildingFurnitureType)theEObject;\n\t\t\t\tT result = caseBuildingFurnitureType(buildingFurnitureType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(buildingFurnitureType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(buildingFurnitureType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(buildingFurnitureType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BUILDING_INSTALLATION_PROPERTY_TYPE: {\n\t\t\t\tBuildingInstallationPropertyType buildingInstallationPropertyType = (BuildingInstallationPropertyType)theEObject;\n\t\t\t\tT result = caseBuildingInstallationPropertyType(buildingInstallationPropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(buildingInstallationPropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BUILDING_INSTALLATION_TYPE: {\n\t\t\t\tBuildingInstallationType buildingInstallationType = (BuildingInstallationType)theEObject;\n\t\t\t\tT result = caseBuildingInstallationType(buildingInstallationType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(buildingInstallationType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(buildingInstallationType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(buildingInstallationType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BUILDING_PART_PROPERTY_TYPE: {\n\t\t\t\tBuildingPartPropertyType buildingPartPropertyType = (BuildingPartPropertyType)theEObject;\n\t\t\t\tT result = caseBuildingPartPropertyType(buildingPartPropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(buildingPartPropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BUILDING_PART_TYPE: {\n\t\t\t\tBuildingPartType buildingPartType = (BuildingPartType)theEObject;\n\t\t\t\tT result = caseBuildingPartType(buildingPartType);\n\t\t\t\tif (result == null) result = caseAbstractBuildingType(buildingPartType);\n\t\t\t\tif (result == null) result = caseAbstractSiteType(buildingPartType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(buildingPartType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(buildingPartType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(buildingPartType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.BUILDING_TYPE: {\n\t\t\t\tBuildingType buildingType = (BuildingType)theEObject;\n\t\t\t\tT result = caseBuildingType(buildingType);\n\t\t\t\tif (result == null) result = caseAbstractBuildingType(buildingType);\n\t\t\t\tif (result == null) result = caseAbstractSiteType(buildingType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(buildingType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(buildingType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(buildingType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.CEILING_SURFACE_TYPE: {\n\t\t\t\tCeilingSurfaceType ceilingSurfaceType = (CeilingSurfaceType)theEObject;\n\t\t\t\tT result = caseCeilingSurfaceType(ceilingSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(ceilingSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(ceilingSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(ceilingSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(ceilingSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.CLOSURE_SURFACE_TYPE: {\n\t\t\t\tClosureSurfaceType closureSurfaceType = (ClosureSurfaceType)theEObject;\n\t\t\t\tT result = caseClosureSurfaceType(closureSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(closureSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(closureSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(closureSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(closureSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.DOCUMENT_ROOT: {\n\t\t\t\tDocumentRoot documentRoot = (DocumentRoot)theEObject;\n\t\t\t\tT result = caseDocumentRoot(documentRoot);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.DOOR_TYPE: {\n\t\t\t\tDoorType doorType = (DoorType)theEObject;\n\t\t\t\tT result = caseDoorType(doorType);\n\t\t\t\tif (result == null) result = caseAbstractOpeningType(doorType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(doorType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(doorType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(doorType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.FLOOR_SURFACE_TYPE: {\n\t\t\t\tFloorSurfaceType floorSurfaceType = (FloorSurfaceType)theEObject;\n\t\t\t\tT result = caseFloorSurfaceType(floorSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(floorSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(floorSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(floorSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(floorSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.GROUND_SURFACE_TYPE: {\n\t\t\t\tGroundSurfaceType groundSurfaceType = (GroundSurfaceType)theEObject;\n\t\t\t\tT result = caseGroundSurfaceType(groundSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(groundSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(groundSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(groundSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(groundSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.INT_BUILDING_INSTALLATION_PROPERTY_TYPE: {\n\t\t\t\tIntBuildingInstallationPropertyType intBuildingInstallationPropertyType = (IntBuildingInstallationPropertyType)theEObject;\n\t\t\t\tT result = caseIntBuildingInstallationPropertyType(intBuildingInstallationPropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(intBuildingInstallationPropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.INT_BUILDING_INSTALLATION_TYPE: {\n\t\t\t\tIntBuildingInstallationType intBuildingInstallationType = (IntBuildingInstallationType)theEObject;\n\t\t\t\tT result = caseIntBuildingInstallationType(intBuildingInstallationType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(intBuildingInstallationType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(intBuildingInstallationType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(intBuildingInstallationType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.INTERIOR_FURNITURE_PROPERTY_TYPE: {\n\t\t\t\tInteriorFurniturePropertyType interiorFurniturePropertyType = (InteriorFurniturePropertyType)theEObject;\n\t\t\t\tT result = caseInteriorFurniturePropertyType(interiorFurniturePropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(interiorFurniturePropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.INTERIOR_ROOM_PROPERTY_TYPE: {\n\t\t\t\tInteriorRoomPropertyType interiorRoomPropertyType = (InteriorRoomPropertyType)theEObject;\n\t\t\t\tT result = caseInteriorRoomPropertyType(interiorRoomPropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(interiorRoomPropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.INTERIOR_WALL_SURFACE_TYPE: {\n\t\t\t\tInteriorWallSurfaceType interiorWallSurfaceType = (InteriorWallSurfaceType)theEObject;\n\t\t\t\tT result = caseInteriorWallSurfaceType(interiorWallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(interiorWallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(interiorWallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(interiorWallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(interiorWallSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.OPENING_PROPERTY_TYPE: {\n\t\t\t\tOpeningPropertyType openingPropertyType = (OpeningPropertyType)theEObject;\n\t\t\t\tT result = caseOpeningPropertyType(openingPropertyType);\n\t\t\t\tif (result == null) result = caseAssociationType(openingPropertyType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.ROOF_SURFACE_TYPE: {\n\t\t\t\tRoofSurfaceType roofSurfaceType = (RoofSurfaceType)theEObject;\n\t\t\t\tT result = caseRoofSurfaceType(roofSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(roofSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(roofSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(roofSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(roofSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.ROOM_TYPE: {\n\t\t\t\tRoomType roomType = (RoomType)theEObject;\n\t\t\t\tT result = caseRoomType(roomType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(roomType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(roomType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(roomType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.WALL_SURFACE_TYPE: {\n\t\t\t\tWallSurfaceType wallSurfaceType = (WallSurfaceType)theEObject;\n\t\t\t\tT result = caseWallSurfaceType(wallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractBoundarySurfaceType(wallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(wallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(wallSurfaceType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(wallSurfaceType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase BuildingPackage.WINDOW_TYPE: {\n\t\t\t\tWindowType windowType = (WindowType)theEObject;\n\t\t\t\tT result = caseWindowType(windowType);\n\t\t\t\tif (result == null) result = caseAbstractOpeningType(windowType);\n\t\t\t\tif (result == null) result = caseAbstractCityObjectType(windowType);\n\t\t\t\tif (result == null) result = caseAbstractFeatureType(windowType);\n\t\t\t\tif (result == null) result = caseAbstractGMLType(windowType);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return defaultCase(theEObject);\n\t\t}\n\t}" ]
[ "0.6555226", "0.65526474", "0.63769823", "0.630515", "0.6279718", "0.62451416", "0.61990047", "0.6130721", "0.6088853", "0.60772824", "0.58524483", "0.5784886", "0.575386", "0.57119936", "0.5570894", "0.5552012", "0.5513577", "0.5502843", "0.546173", "0.54466397", "0.54334056", "0.5429209", "0.5379069", "0.53753287", "0.5370855", "0.53692573", "0.53470117", "0.5345292", "0.5333205", "0.5323108", "0.5292839", "0.5290616", "0.52887577", "0.52887577", "0.52887577", "0.5284338", "0.52746373", "0.5270838", "0.5265954", "0.5257313", "0.52514744", "0.5242724", "0.5242724", "0.5242724", "0.52200514", "0.52191615", "0.5216757", "0.5208014", "0.5206985", "0.51984215", "0.5196541", "0.51877844", "0.5167179", "0.51599574", "0.51591164", "0.51346433", "0.5129533", "0.51189834", "0.5113737", "0.51073587", "0.5105562", "0.510192", "0.50963867", "0.50963867", "0.50963867", "0.5089595", "0.50879717", "0.5087501", "0.50751686", "0.507364", "0.5048105", "0.5047295", "0.50465363", "0.50448865", "0.50137377", "0.5006844", "0.49964124", "0.49931464", "0.49850455", "0.49827307", "0.49816716", "0.49778754", "0.49767622", "0.49682263", "0.4967487", "0.49602813", "0.49526715", "0.49486008", "0.49434125", "0.49430996", "0.49360526", "0.49348342", "0.49341327", "0.49339426", "0.49287915", "0.49266472", "0.49229342", "0.49176326", "0.49175823", "0.49166322", "0.49121553" ]
0.0
-1
Some methods for pushing data out of this 'black box'
public int getLiftPosition() { //Do some math on getting the encoder positions return liftStageOne.getCurrentPosition() + liftStageTwo.getCurrentPosition(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(T data);", "public void push(T data);", "public void push(E data);", "public Object push(Object arg)\n {\n dataList.add(arg);\n return arg;\n }", "public void push(T dato );", "void addData();", "public void push(T data)\n {\n ll.insert(ll.getSize(), data);\n }", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "public Object push(Object o) {\n\t\tadd(o);\n\t\treturn o;\n\t}", "@Override\n public void push(T data) {\n if (data != null) {\n if (size == backing.length) {\n T[] newBacking = (T[]) new Object[backing.length * 2];\n for (int i = 0; i < size; i++) {\n newBacking[i] = backing[i];\n }\n newBacking[size++] = data;\n backing = newBacking;\n } else {\n backing[size] = data;\n size++;\n }\n } else {\n throw new IllegalArgumentException(\"Can't push null onto stack\");\n }\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public AddData() {\n\t\tsuper();\n\t\tfilled = false;\n\t}", "@Override\r\n\tpublic void push(E e) {\n\t\t\r\n\t}", "void push(E Obj);", "public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}", "void push(T item) {\n contents.addAtHead(item);\n }", "void push(Object elem);", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "void push(Object item);", "public void push(E e) throws Exception;", "public void enqueue(Object data){\r\n super.insert(data, 0);//inserts it to the first index everytime (for tostring)\r\n }", "public void push(Object anElement);", "public static void push(Object data) {\n list.add(data);\n }", "public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }", "public void push(T newEntry);", "private void add() {\n\n\t}", "public void push(T entry)\n { \n first = push(entry, first);\n }", "public void push(T newItem);", "void populateData();", "public void push(T newData) throws StackOverflowException{\r\n\t\t\r\n\t\t// check if stack is full\r\n\t\tif(top>MAX_SIZE)\r\n\t\t\tthrow new StackOverflowException();\r\n\t\t\r\n\t\tstackData.add(newData); //add new data to the stack\r\n\t\ttop++;\r\n\t\r\n\t}", "@Override\n\tpublic void push(E item) {\n\t\t\n\t}", "public void push(T item);", "public void push(T e) {\n\t\tif(size == data.length){\n\t\t\tresize(size * 2);\n\t\t}\n\t\tthis.data[size++] = e;\n\t}", "protected abstract Object[] getData();", "public void push(E elem) {\n if (elem != null) {\r\n contents[++top] = elem;\r\n }\r\n\r\n // Usually better to resize after an addition rather than before for\r\n // multi-threading reasons. Although, that is not important for this class.\r\n if (top == contents.length-1) resize();\r\n }", "public void push(T x);", "void push(T t);", "void push(T item);", "void push(T item);", "public void push(T aValue);", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public void push(E obj) {\n super.add(obj);\n }", "public void push(T data) {\n numberList.addAtStart(data);\n }", "private void parseData() {\n\t\t\r\n\t}", "public E push(E item) {\n try {\n stackImpl.push(item);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Array is full. Switching to unbound implementation\");\n StackImplementationIF<E> stackImplTemp = new ListStack<E>();\n for (Enumeration en = new ImplIterator<E>(this); en.hasMoreElements();) {\n E c = (E) en.nextElement();\n stackImplTemp.push(c);\n }\n stackImpl = stackImplTemp;\n stackImpl.push(item);\n }\n return item;\n }", "public Object getData() \n {\n return data;\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "public void push(T elem);", "Object getCurrentData();", "@Override\n\tpublic void fillData() {\n\t}", "public interface BookDataReceiver {\n void pushData(List<Book> books);\n}", "Object getRawData();", "public void push(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }", "public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}", "@Override\n\tpublic Object peek() {\n\t\treturn top.data;\n\t}", "private void fillData()\n {\n\n }", "protected final void push(final byte data) {\r\n this.memory[(this.sp-- & 0xff) | 0x100] = data;\r\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n public DataField[] registerAndGetStructure() throws RuntimeException{ \r\n \tDataField[] s = getActiveAddressBean().getOutputStructure();\r\n \tif (s == null){throw new RuntimeException(\"Direct Push wrapper has an undefined output structure.\");}\r\n \treturn s;\r\n }", "public void push(Object value) {\n\t\tthis.add(value);\n\t}", "private static void push(Stack<Integer> top_ref, int new_data) {\n //Push the data onto the stack\n top_ref.push(new_data);\n }", "Object getData();", "Object getData();", "private void add(Pair<MarketDataRequestAtom,Event> inData)\n {\n getQueue().add(inData);\n }", "public abstract boolean push(Object E);", "public T getData()\n\t{ \treturn this.data; }", "private void addSampleData() {\r\n }", "public abstract Object getData();", "@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}", "public interface BAPushDataEventHandler {\n\tpublic void publishedData(BAEvent event);\n}", "public void push(E item);", "public void addToBack(T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"You can't insert null\"\n + \" data in the structure.\");\n }\n if (size == 0) {\n head = new DoublyLinkedListNode<>(data);\n tail = head;\n size += 1;\n } else {\n DoublyLinkedListNode<T> newnode =\n new DoublyLinkedListNode<>(data);\n tail.setNext(newnode);\n newnode.setPrevious(tail);\n tail = newnode;\n size += 1;\n\n }\n }", "@Override\n public E push(E item) {\n // do not allow nulls\n if (item == null) {\n return null;\n }\n\n // do not allow same item twice in a row\n if (size() > 0 && item.equals(peek())) {\n return null;\n }\n\n // okay to add item to stack\n super.push(item);\n\n // remove oldest item if stack is now larger than max size\n if (size() > maxSize) {\n remove(0);\n }\n contentsChanged();\n return item;\n }", "void addingGlobalData() {\n\n }", "public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public E push(E e) {\n Node node = new Node();\n node.data = e;\n node.next = isEmpty() ? null : top;\n top = node;\n return e;\n }", "T getData() {\n\t\treturn data;\n\t}", "static void push(Stack<Integer> top_ref, int new_data) {\r\n // Push the data onto the stack\r\n top_ref.push(new_data);\r\n }", "public void push(E value);", "public void push(int x, int y) throws FieldIsPushedException, FieldIsMineException;", "public void push(T element);", "public void push(T element);", "public Object getData();", "protected void storeCurrentValues() {\n }", "public void push(TYPE element);", "public ObjectStack() {collection = new ArrayIndexedCollection();}", "@Override\n\tpublic void add() {\n\t\t\n\t}", "void putData(CheckPoint checkPoint);", "Serializable retrieveAllData();", "void push(T x);", "@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }", "@Override\n protected Object[] getData() {\n return new Object[] { creator };\n }" ]
[ "0.6307935", "0.6307935", "0.62205935", "0.62021273", "0.6157707", "0.5908351", "0.5908339", "0.5826235", "0.5820556", "0.5815159", "0.57938313", "0.57303506", "0.57151425", "0.5662427", "0.5641033", "0.5601779", "0.55989933", "0.55687565", "0.5556501", "0.55326784", "0.5531252", "0.5524789", "0.5516717", "0.55113816", "0.55066705", "0.54938805", "0.54929733", "0.5491924", "0.54850113", "0.54766524", "0.5470585", "0.5459084", "0.5456058", "0.54438007", "0.5443539", "0.5442564", "0.5442035", "0.54395366", "0.54261726", "0.5413369", "0.5412543", "0.54113495", "0.5410314", "0.5403453", "0.5403453", "0.53886944", "0.53856885", "0.5371412", "0.53672886", "0.53519803", "0.5346821", "0.5345813", "0.53420997", "0.5335059", "0.5334571", "0.5331569", "0.5327238", "0.5313463", "0.5311783", "0.53071296", "0.53032357", "0.529346", "0.52876437", "0.5276727", "0.5276005", "0.5276005", "0.52651584", "0.5253392", "0.5248466", "0.52423024", "0.52423024", "0.5241904", "0.5241421", "0.5239698", "0.5234697", "0.5217678", "0.5215025", "0.52128357", "0.5212487", "0.52122104", "0.52101624", "0.5208817", "0.5208368", "0.5205279", "0.5204379", "0.5197076", "0.5196638", "0.51954854", "0.51927173", "0.5188677", "0.5188677", "0.5187296", "0.5186089", "0.5183337", "0.51805633", "0.5178234", "0.5174292", "0.5164204", "0.516266", "0.5160315", "0.51563275" ]
0.0
-1
BUILDERS Only use if loopsToMake > 1
public TimedTrigger ticksBeforeStartLooping(int ticksBeforeStartLooping) { this.ticksBeforeStartLooping = ticksBeforeStartLooping; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BDD buildEndGame(){\n\t\tBDD res = factory.makeOne();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\t\t\t\tres.andWith(board[i][j].not());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "private static void loop() throws GameActionException {\n RobotCount.reset();\n MinerEffectiveness.reset();\n\n //Update enemy HQ ranges in mob level\n if(Clock.getRoundNum()%10 == 0) {\n enemyTowers = rc.senseEnemyTowerLocations();\n numberOfTowers = enemyTowers.length;\n if(numberOfTowers < 5 && !Map.isEnemyHQSplashRegionTurnedOff()) {\n Map.turnOffEnemyHQSplashRegion();\n }\n if(numberOfTowers < 2 && !Map.isEnemyHQBuffedRangeTurnedOff()) {\n Map.turnOffEnemyHQBuffedRange();\n }\n }\n \n // Code that runs in every robot (including buildings, excepting missiles)\n sharedLoopCode();\n \n updateEnemyInRange(52);//52 includes splashable region\n checkForEnemies();\n \n int rn = Clock.getRoundNum();\n \n // Launcher strategy\n if(rn == 80) {\n BuildOrder.add(RobotType.HELIPAD); \n } else if(rn == 220) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n } else if (rn == 280) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n } else if (rn == 350) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n } else if (rn == 410) {\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n } else if (rn == 500) {\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n } \n if (rn > 500 && rn%200==0) {\n BuildOrder.add(RobotType.AEROSPACELAB);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n }\n //rc.setIndicatorString(1, \"Distance squared between HQs is \" + distanceBetweenHQs);\n \n \n \n if(rn > 1000 && rn%100 == 0 && rc.getTeamOre() > 700) {\n int index = BuildOrder.size()-1;\n if(BuildOrder.isUnclaimedOrExpired(index)) {\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n }\n }\n \n \n \n /**\n //Building strategy ---------------------------------------------------\n if(Clock.getRoundNum() == 140) {\n BuildOrder.add(RobotType.TECHNOLOGYINSTITUTE);\n BuildOrder.add(RobotType.TRAININGFIELD);\n }\n if(Clock.getRoundNum() == 225) {\n BuildOrder.add(RobotType.BARRACKS);\n BuildOrder.add(RobotType.TANKFACTORY);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n }\n if(Clock.getRoundNum() == 550) {\n BuildOrder.add(RobotType.TANKFACTORY);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n }\n if(Clock.getRoundNum() == 800) {\n BuildOrder.add(RobotType.HELIPAD);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n BuildOrder.add(RobotType.TANKFACTORY);\n BuildOrder.add(RobotType.SUPPLYDEPOT);\n\n //BuildOrder.printBuildOrder();\n }\n //---------------------------------------------------------------------\n **/\n \n //Spawn beavers\n if (hasFewBeavers()) { \n trySpawn(HQLocation.directionTo(enemyHQLocation), RobotType.BEAVER);\n }\n \n //Dispense supply\n Supply.dispense(suppliabilityMultiplier);\n \n //Debug\n //if(Clock.getRoundNum() == 700) Map.printRadio();\n //if(Clock.getRoundNum() == 1500) BuildOrder.print();\n\n }", "public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean eliminateLoop(){ return false; }", "@Override\n public void buildAndSetGameLoop() {\n }", "private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}", "Loop createLoop();", "private static boolean forLoopParts_1_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_1_1\")) return false;\n forLoopParts_1_1_0(b, l + 1);\n return true;\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}", "private static boolean forLoopParts_2_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_2_1\")) return false;\n forLoopParts_2_1_0(b, l + 1);\n return true;\n }", "void makeDragon() {\n new BukkitRunnable() {\n int i = 555;\n\n @Override\n public void run() {\n Set<BlockData> set = create.get(i);\n for (BlockData blockData : set) {\n blockData.setBlock();\n }\n\n i++;\n if (i > 734) {\n cancel();\n }\n }\n }.runTaskTimer(Main.plugin, 0, 2);\n // Location end = new Location(Bukkit.getWorld(\"world\"), 3, 254, 733);\n }", "public void generateBuildings(MainApplication app){\n\t\tfor (int i = 0; i < TOTAL_BUILDINGS; i++) {\n\t\t\tthis.buildings[i] = new Building(app, 290 + i*125, BUILDING_Y_LOCATION, BUILDING_SPRITE, BUILDING_SPRITE_DESTROYED);\n\t\t}\n\t}", "private static boolean forLoopParts_3_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_3_1\")) return false;\n forLoopParts_3_1_0(b, l + 1);\n return true;\n }", "public void buildWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (world[i][j].equals(Tileset.NOTHING)\n && isAdjacentFloor(i, j)) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "private static boolean forLoopParts_1_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_1_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, SEMICOLON);\n r = r && forLoopParts_1_1_0_1(b, l + 1);\n r = r && forLoopParts_1_1_0_2(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean generate(World paramaqu, Random paramRandom, BlockPosition paramdt)\r\n/* 13: */ {\r\n/* 14:22 */ while ((paramaqu.isEmpty(paramdt)) && (paramdt.getY() > 2)) {\r\n/* 15:23 */ paramdt = paramdt.down();\r\n/* 16: */ }\r\n/* 17:26 */ if (!a.apply(paramaqu.getBlock(paramdt))) {\r\n/* 18:27 */ return false;\r\n/* 19: */ }\r\n/* 20: */ int k;\r\n/* 21:31 */ for (int i = -2; i <= 2; i++) {\r\n/* 22:32 */ for (k = -2; k <= 2; k++) {\r\n/* 23:33 */ if ((paramaqu.isEmpty(paramdt.offset(i, -1, k))) && (paramaqu.isEmpty(paramdt.offset(i, -2, k)))) {\r\n/* 24:34 */ return false;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ }\r\n/* 28:40 */ for (int i = -1; i <= 0; i++) {\r\n/* 29:41 */ for (k = -2; k <= 2; k++) {\r\n/* 30:42 */ for (int n = -2; n <= 2; n++) {\r\n/* 31:43 */ paramaqu.setBlock(paramdt.offset(k, i, n), this.c, 2);\r\n/* 32: */ }\r\n/* 33: */ }\r\n/* 34: */ }\r\n/* 35:49 */ paramaqu.setBlock(paramdt, this.d, 2);\r\n/* 36:50 */ for (EnumDirection localej : EnumHorizontalVertical.HORIZONTAL) {\r\n/* 37:51 */ paramaqu.setBlock(paramdt.offset(localej), this.d, 2);\r\n/* 38: */ }\r\n/* 39: */ int m;\r\n/* 40:55 */ for (int j = -2; j <= 2; j++) {\r\n/* 41:56 */ for (m = -2; m <= 2; m++) {\r\n/* 42:57 */ if ((j == -2) || (j == 2) || (m == -2) || (m == 2)) {\r\n/* 43:58 */ paramaqu.setBlock(paramdt.offset(j, 1, m), this.c, 2);\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: */ }\r\n/* 47:63 */ paramaqu.setBlock(paramdt.offset(2, 1, 0), this.b, 2);\r\n/* 48:64 */ paramaqu.setBlock(paramdt.offset(-2, 1, 0), this.b, 2);\r\n/* 49:65 */ paramaqu.setBlock(paramdt.offset(0, 1, 2), this.b, 2);\r\n/* 50:66 */ paramaqu.setBlock(paramdt.offset(0, 1, -2), this.b, 2);\r\n/* 51:69 */ for (int j = -1; j <= 1; j++) {\r\n/* 52:70 */ for (m = -1; m <= 1; m++) {\r\n/* 53:71 */ if ((j == 0) && (m == 0)) {\r\n/* 54:72 */ paramaqu.setBlock(paramdt.offset(j, 4, m), this.c, 2);\r\n/* 55: */ } else {\r\n/* 56:74 */ paramaqu.setBlock(paramdt.offset(j, 4, m), this.b, 2);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }\r\n/* 60:80 */ for (int j = 1; j <= 3; j++)\r\n/* 61: */ {\r\n/* 62:81 */ paramaqu.setBlock(paramdt.offset(-1, j, -1), this.c, 2);\r\n/* 63:82 */ paramaqu.setBlock(paramdt.offset(-1, j, 1), this.c, 2);\r\n/* 64:83 */ paramaqu.setBlock(paramdt.offset(1, j, -1), this.c, 2);\r\n/* 65:84 */ paramaqu.setBlock(paramdt.offset(1, j, 1), this.c, 2);\r\n/* 66: */ }\r\n/* 67:87 */ return true;\r\n/* 68: */ }", "private static boolean forLoopParts_2_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_2_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, SEMICOLON);\n r = r && forLoopParts_2_1_0_1(b, l + 1);\n r = r && forLoopParts_2_1_0_2(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "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}", "void makeNborLists(){\n\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\tint ct = 0;\n\t\t\t\tint boundsCt = 0;\n\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\tint nborSite = nborList[i][j];\n\t\t\t\t\tif(nborSite>=1){\n\t\t\t\t\t\tif (aliveLattice[nborSite]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tboundsCt += 1;\n\t\t\t\t\t}\n\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\tif(deadDissipation==true) noNborsForSite[i] = noNbors; \n\t\t\t\t\telse if (deadDissipation==false){\n\t\t\t\t\t\tif(boundaryConditions==\"Open\")\n\t\t\t\t\t\t\tnoNborsForSite[i]=ct+boundsCt;\n\t\t\t\t\t\telse if(boundaryConditions == \"Periodic\")\n\t\t\t\t\t\t\tnoNborsForSite[i]=ct;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deadDissipation==true){\n\t\t\t\tfor (int i = 0; i < N; i++)\tnoNborsForSite[i] = noNbors; \n\t\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\t\tint ct = 0;\n\t\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\t\tif (aliveLattice[nborList[i][j]]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if (deadDissipation==false){\n\t\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\t\tint ct = 0;\n\t\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\t\tif (aliveLattice[nborList[i][j]]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\t\tnoNborsForSite[i]=ct;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }", "private static boolean forLoopParts_3_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_3_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, SEMICOLON);\n r = r && forLoopParts_3_1_0_1(b, l + 1);\n r = r && forLoopParts_3_1_0_2(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public void generate() {\n\t\tint randNum;\n\n\t\t// Generates variables.\n\t\tfor (int i = 0; i < variables.length; i++) {\n\t\t\trandNum = rand.nextInt(9) + 1;\n\t\t\twhile (!checkDuplicate(variables, i, randNum)) {\n\t\t\t\trandNum = rand.nextInt(9) + 1;\n\t\t\t}\n\t\t\tvariables[i] = randNum;\n\t\t}\n\n\t\t// Example sudoku.\n\t\trandNum = rand.nextInt(3) + 1;\n\t\tswitch (randNum) {\n\t\tcase 1:\n\t\t\tint[][] array1 = { { 4, 7, 1, 3, 2, 8, 5, 9, 6 },\n\t\t\t\t\t{ 6, 3, 9, 5, 1, 4, 7, 8, 2 },\n\t\t\t\t\t{ 5, 2, 8, 6, 7, 9, 1, 3, 4 },\n\t\t\t\t\t{ 1, 4, 2, 9, 6, 7, 3, 5, 8 },\n\t\t\t\t\t{ 8, 9, 7, 2, 5, 3, 4, 6, 1 },\n\t\t\t\t\t{ 3, 6, 5, 4, 8, 1, 2, 7, 9 },\n\t\t\t\t\t{ 9, 5, 6, 1, 3, 2, 8, 4, 7 },\n\t\t\t\t\t{ 2, 8, 4, 7, 9, 5, 6, 1, 3 },\n\t\t\t\t\t{ 7, 1, 3, 8, 4, 6, 9, 2, 5 } };\n\t\t\tcopy(array1, answer); // Copies example to answer.\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tint[][] array2 = { { 8, 3, 5, 4, 1, 6, 9, 2, 7 },\n\t\t\t\t\t{ 2, 9, 6, 8, 5, 7, 4, 3, 1 },\n\t\t\t\t\t{ 4, 1, 7, 2, 9, 3, 6, 5, 8 },\n\t\t\t\t\t{ 5, 6, 9, 1, 3, 4, 7, 8, 2 },\n\t\t\t\t\t{ 1, 2, 3, 6, 7, 8, 5, 4, 9 },\n\t\t\t\t\t{ 7, 4, 8, 5, 2, 9, 1, 6, 3 },\n\t\t\t\t\t{ 6, 5, 2, 7, 8, 1, 3, 9, 4 },\n\t\t\t\t\t{ 9, 8, 1, 3, 4, 5, 2, 7, 6 },\n\t\t\t\t\t{ 3, 7, 4, 9, 6, 2, 8, 1, 5 } };\n\t\t\tcopy(array2, answer);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tint[][] array3 = { { 5, 3, 4, 6, 7, 8, 9, 1, 2 },\n\t\t\t\t\t{ 6, 7, 2, 1, 9, 5, 3, 4, 8 },\n\t\t\t\t\t{ 1, 9, 8, 3, 4, 2, 5, 6, 7 },\n\t\t\t\t\t{ 8, 5, 9, 7, 6, 1, 4, 2, 3 },\n\t\t\t\t\t{ 4, 2, 6, 8, 5, 3, 7, 9, 1 },\n\t\t\t\t\t{ 7, 1, 3, 9, 2, 4, 8, 5, 6 },\n\t\t\t\t\t{ 9, 6, 1, 5, 3, 7, 2, 8, 4 },\n\t\t\t\t\t{ 2, 8, 7, 4, 1, 9, 6, 3, 5 },\n\t\t\t\t\t{ 3, 4, 5, 2, 8, 6, 1, 7, 9 } };\n\t\t\tcopy(array3, answer);\n\t\t\tbreak;\n\t\t}\n\n\t\treplace(answer); // Randomize once more.\n\t\tcopy(answer, problem); // Copies answer to problem.\n\t\tgenProb(); // Generates problem.\n\n\t\tshuffle();\n\t\tcopy(problem, player); // Copies problem to player.\n\n\t\t// Checking for shuffled problem\n\t\tcopy(problem, comp);\n\n\t\tif (!solve(0, 0, 0, comp)) {\n\t\t\tgenerate();\n\t\t}\n\t\tif (!unique()) {\n\t\t\tgenerate();\n\t\t}\n\t}", "public static LoopExpression loop(Expression body, LabelTarget breakTarget) { throw Extensions.todo(); }", "private void randomBuildings(int numB)\n\t{\n\t\t/* Create buildings of a reasonable size for this map */\n\t\tint bldgMaxSize = width/6;\n\t\tint bldgMinSize = width/50;\n\n\t\t/* Produce a bunch of random rectangles and fill in the walls array */\n\t\tfor(int i=0; i < numB; i++)\n\t\t{\n\t\t\tint tx, ty, tw, th;\n\t\t\ttx = Helper.nextInt(width);\n\t\t\tty = Helper.nextInt(height);\n\t\t\ttw = Helper.nextInt(bldgMaxSize) + bldgMinSize;\n\t\t\tth = Helper.nextInt(bldgMaxSize) + bldgMinSize;\n\n\t\t\tfor(int r = ty; r < ty + th; r++)\n\t\t\t{\n\t\t\t\tif(r >= height)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor(int c = tx; c < tx + tw; c++)\n\t\t\t\t{\n\t\t\t\t\tif(c >= width)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\twalls[c][r] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (i == 0 || i == worldWidth - 1\n || j == 0 || j == worldHeight - 1) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "@SuppressWarnings(\"WeakerAccess\")\n void removeEasyLoops(HashMap<Integer, ArrayList<Curve>> working_loops,\n LoopSet ret,\n Collection<Box> other_bounds,\n HashMap<ArrayList<Curve>, Box> bound_map)\n {\n ArrayList<Integer> keys = new ArrayList<>(working_loops.keySet());\n for (Integer i : keys)\n {\n ArrayList<Curve> alc1 = working_loops.get(i);\n\n Box bound = bound_map.get(alc1);\n\n boolean hits = false;\n\n for (Box b : other_bounds)\n {\n if (!bound.disjoint(b))\n {\n hits = true;\n break;\n }\n }\n\n if (!hits)\n {\n ret.add(new Loop(alc1));\n working_loops.remove(i);\n // won't need the bounds of this again, either\n bound_map.remove(alc1);\n }\n }\n }", "private static boolean forLoopParts_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_2\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = patternVariableDeclaration(b, l + 1);\n r = r && forLoopParts_2_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public void preSetup(){\n // Any of your pre setup before the loop starts should go here\n \n // border\n blocks[0] = new Rectangle(0, 0, 25, 600);\n blocks[1] = new Rectangle(775, 0, 25, 600);\n blocks[2] = new Rectangle(0, 0, 800, 25);\n blocks[3] = new Rectangle(0, 575, 800, 25);\n \n // starting room\n // right wall\n blocks[5] = new Rectangle(WIDTH / 2 + 75, 400, 25, 150);\n // left wall\n blocks[10] = new Rectangle(WIDTH / 2 - 100, 400, 25, 150);\n // centre\n blocks[7] = new Rectangle(WIDTH / 2 - 10, 450, 20, 150);\n // top wall\n blocks[11] = new Rectangle(WIDTH / 2 - 50, 400, 100, 25);\n \n \n // remember to copy to the other side\n // cover (west)\n blocks[4] = new Rectangle(200, 200, 25, 75);\n blocks[6] = new Rectangle(200 , 400, 25, 75);\n blocks[8] = new Rectangle(200, 310, 25, 50);\n blocks[9] = new Rectangle(200, 0, 25, 170);\n blocks[17] = new Rectangle(200 - 50, 145, 70, 25);\n blocks[23] = new Rectangle(0, 60, 100, 24);\n blocks[24] = new Rectangle(70, 500, 24, 100);\n blocks[25] = new Rectangle(70, 500, 80, 24);\n blocks[26] = new Rectangle();\n \n \n // cover (east)\n blocks[15] = new Rectangle(WIDTH - 225, 200, 25, 75);\n blocks[14] = new Rectangle(WIDTH - 225 , 400, 25, 75);\n blocks[13] = new Rectangle(WIDTH - 225, 310, 25, 50);\n blocks[12] = new Rectangle(WIDTH - 225, 0, 25, 170);\n blocks[16] = new Rectangle(WIDTH - 225, 145, 70, 25);\n blocks[27] = new Rectangle(WIDTH - 100, 60, 100, 24);\n blocks[28] = new Rectangle(WIDTH - 94, 500, 24, 100);\n blocks[29] = new Rectangle(WIDTH - 94 - (80-24), 500, 80, 24);\n blocks[30] = new Rectangle();\n \n // cover (middle)\n // vertical\n blocks[18] = new Rectangle(WIDTH/ 2 - 10, 150, 20, 125);\n blocks[22] = new Rectangle(WIDTH/ 2 - 10, 300, 20, 50);\n // horizontal\n blocks[19] = new Rectangle(WIDTH/ 2 - 100, 175, 200, 20);\n blocks[20] = new Rectangle(WIDTH/ 2 - 100, 225, 200, 20);\n blocks[21] = new Rectangle(WIDTH/ 2 - 100, 350, 200, 20);\n \n \n // extras\n blocks[31] = new Rectangle();\n blocks[32] = new Rectangle();\n \n // flag on the level\n flag[0] = new Rectangle((int)(Math.random()*((WIDTH - 40) - 40 + 1)) + 40, (int)(Math.random()*((HEIGHT - 40) - 40 + 1)) + 40, 35, 26);\n flagPole[0] = new Rectangle(flag[0].x, flag[0].y, 4, 45);\n flagLogo[0] = new Rectangle(flag[0].x + 15, flag[0].y + (13/2), 20, 15);\n \n }", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "public boolean generate(World paramaqu, Random paramRandom, BlockPosition paramdt)\r\n/* 12: */ {\r\n/* 13: 19 */ int i = paramRandom.nextInt(4) + 5;\r\n/* 14: 20 */ while (paramaqu.getBlock(paramdt.down()).getType().getMaterial() == Material.water) {\r\n/* 15: 21 */ paramdt = paramdt.down();\r\n/* 16: */ }\r\n/* 17: 24 */ int j = 1;\r\n/* 18: 25 */ if ((paramdt.getY() < 1) || (paramdt.getY() + i + 1 > 256)) {\r\n/* 19: 26 */ return false;\r\n/* 20: */ }\r\n/* 21: */ int n;\r\n/* 22: */ int i2;\r\n/* 23: 29 */ for (int k = paramdt.getY(); k <= paramdt.getY() + 1 + i; k++)\r\n/* 24: */ {\r\n/* 25: 30 */ int m = 1;\r\n/* 26: 31 */ if (k == paramdt.getY()) {\r\n/* 27: 32 */ m = 0;\r\n/* 28: */ }\r\n/* 29: 34 */ if (k >= paramdt.getY() + 1 + i - 2) {\r\n/* 30: 35 */ m = 3;\r\n/* 31: */ }\r\n/* 32: 37 */ for (n = paramdt.getX() - m; (n <= paramdt.getX() + m) && (j != 0); n++) {\r\n/* 33: 38 */ for (i2 = paramdt.getZ() - m; (i2 <= paramdt.getZ() + m) && (j != 0); i2++) {\r\n/* 34: 39 */ if ((k >= 0) && (k < 256))\r\n/* 35: */ {\r\n/* 36: 40 */ BlockType localatr3 = paramaqu.getBlock(new BlockPosition(n, k, i2)).getType();\r\n/* 37: 41 */ if ((localatr3.getMaterial() != Material.air) && (localatr3.getMaterial() != Material.leaves)) {\r\n/* 38: 42 */ if ((localatr3 == BlockList.water) || (localatr3 == BlockList.flowingWater))\r\n/* 39: */ {\r\n/* 40: 43 */ if (k > paramdt.getY()) {\r\n/* 41: 44 */ j = 0;\r\n/* 42: */ }\r\n/* 43: */ }\r\n/* 44: */ else {\r\n/* 45: 47 */ j = 0;\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: */ else\r\n/* 50: */ {\r\n/* 51: 51 */ j = 0;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 57 */ if (j == 0) {\r\n/* 57: 58 */ return false;\r\n/* 58: */ }\r\n/* 59: 61 */ BlockType localatr1 = paramaqu.getBlock(paramdt.down()).getType();\r\n/* 60: 62 */ if (((localatr1 != BlockList.grass) && (localatr1 != BlockList.dirt)) || (paramdt.getY() >= 256 - i - 1)) {\r\n/* 61: 63 */ return false;\r\n/* 62: */ }\r\n/* 63: 66 */ makeDirt(paramaqu, paramdt.down());\r\n/* 64: */ int i3;\r\n/* 65: */ int i4;\r\n/* 66: */ BlockPosition localdt3;\r\n/* 67: 68 */ for (int m = paramdt.getY() - 3 + i; m <= paramdt.getY() + i; m++)\r\n/* 68: */ {\r\n/* 69: 69 */ n = m - (paramdt.getY() + i);\r\n/* 70: 70 */ i2 = 2 - n / 2;\r\n/* 71: 71 */ for (i3 = paramdt.getX() - i2; i3 <= paramdt.getX() + i2; i3++)\r\n/* 72: */ {\r\n/* 73: 72 */ i4 = i3 - paramdt.getX();\r\n/* 74: 73 */ for (int i5 = paramdt.getZ() - i2; i5 <= paramdt.getZ() + i2; i5++)\r\n/* 75: */ {\r\n/* 76: 74 */ int i6 = i5 - paramdt.getZ();\r\n/* 77: 75 */ if ((Math.abs(i4) != i2) || (Math.abs(i6) != i2) || ((paramRandom.nextInt(2) != 0) && (n != 0)))\r\n/* 78: */ {\r\n/* 79: 78 */ localdt3 = new BlockPosition(i3, m, i5);\r\n/* 80: 79 */ if (!paramaqu.getBlock(localdt3).getType().m()) {\r\n/* 81: 80 */ setBlock(paramaqu, localdt3, BlockList.leaves);\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: 86 */ for (int m = 0; m < i; m++)\r\n/* 88: */ {\r\n/* 89: 87 */ BlockType localatr2 = paramaqu.getBlock(paramdt.up(m)).getType();\r\n/* 90: 88 */ if ((localatr2.getMaterial() == Material.air) || (localatr2.getMaterial() == Material.leaves) || (localatr2 == BlockList.flowingWater) || (localatr2 == BlockList.water)) {\r\n/* 91: 89 */ setBlock(paramaqu, paramdt.up(m), BlockList.log);\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 93 */ for (int m = paramdt.getY() - 3 + i; m <= paramdt.getY() + i; m++)\r\n/* 95: */ {\r\n/* 96: 94 */ int i1 = m - (paramdt.getY() + i);\r\n/* 97: 95 */ i2 = 2 - i1 / 2;\r\n/* 98: 96 */ for (i3 = paramdt.getX() - i2; i3 <= paramdt.getX() + i2; i3++) {\r\n/* 99: 97 */ for (i4 = paramdt.getZ() - i2; i4 <= paramdt.getZ() + i2; i4++)\r\n/* 100: */ {\r\n/* 101: 98 */ BlockPosition localdt1 = new BlockPosition(i3, m, i4);\r\n/* 102:100 */ if (paramaqu.getBlock(localdt1).getType().getMaterial() == Material.leaves)\r\n/* 103: */ {\r\n/* 104:101 */ BlockPosition localdt2 = localdt1.west();\r\n/* 105:102 */ localdt3 = localdt1.east();\r\n/* 106:103 */ BlockPosition localdt4 = localdt1.north();\r\n/* 107:104 */ BlockPosition localdt5 = localdt1.south();\r\n/* 108:106 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt2).getType().getMaterial() == Material.air)) {\r\n/* 109:107 */ a(paramaqu, localdt2, bbv.S);\r\n/* 110: */ }\r\n/* 111:109 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt3).getType().getMaterial() == Material.air)) {\r\n/* 112:110 */ a(paramaqu, localdt3, bbv.T);\r\n/* 113: */ }\r\n/* 114:112 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt4).getType().getMaterial() == Material.air)) {\r\n/* 115:113 */ a(paramaqu, localdt4, bbv.Q);\r\n/* 116: */ }\r\n/* 117:115 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt5).getType().getMaterial() == Material.air)) {\r\n/* 118:116 */ a(paramaqu, localdt5, bbv.R);\r\n/* 119: */ }\r\n/* 120: */ }\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:122 */ return true;\r\n/* 125: */ }", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void generate() {\n\t\t// all cardinal direction for up,down,left and right\n\t\tthis.allDirections = Arrays.asList(new Point(-1, 0), new Point(1, 0), new Point(0, 1),\n\t\t\t\tnew Point(0, -1));\n\n\t\twallList = new ArrayList<>();\n\t\tgenerateAddWalls(width / 2, height / 2);\n\t\t// generateAddWalls( 3, 3);\n\n\t\tRandom rand = new Random();\n\n\t\twhile (wallList.size() > 0) {\n\t\t\tPoint wall = wallList.get(rand.nextInt(wallList.size()));\n\n\t\t\tint emptyWallX = wall.x;\n\t\t\tint emptyWallY = wall.y;\n\n\t\t\tfor (Point point : allDirections) {\n\t\t\t\tif (maze[wall.x + point.x][wall.y + point.y] == Block.EMPTY) {\n\t\t\t\t\temptyWallX = wall.x + point.x;\n\t\t\t\t\temptyWallY = wall.y + point.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// find if oposite direction is empty by inverting the delta\n\t\t\tint deltaX = wall.x - emptyWallX;\n\t\t\tint deltaY = wall.y - emptyWallY;\n\n\t\t\tif (maze[wall.x + deltaX][wall.y + deltaY] == Block.WALL) {\n\t\t\t\tmaze[wall.x][wall.y] = Block.EMPTY;\n\t\t\t\tgenerateAddWalls(wall.x + deltaX, wall.y + deltaY);\n\t\t\t}\n\n\t\t\twallList.remove(wall);\n\t\t}\n\t}", "private static boolean forLoopParts_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = varDeclarationList(b, l + 1);\n r = r && forLoopParts_1_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public void setPossibleBuild(Worker worker) {\n super.setPossibleBuild(worker);\n for (int indexBoxNextTo = 0; indexBoxNextTo < 8; indexBoxNextTo++) {\n Box boxNextTo = worker.getActualBox().getBoxesNextTo().get(indexBoxNextTo);\n if (boxNextTo != null && boxNextTo.getCounter() != 4 && boxNextTo.notWorker()) {\n boxNextTo.setReachable(true);\n if (boxNextTo.getPossibleBlock().size() < 3) {\n Block block = new Dome();\n boxNextTo.getPossibleBlock().add(block);\n }\n }\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 void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }", "private String buildIC() {\r\n List<Integer> emptyCellsPos = new ArrayList<Integer>();\r\n for(int i = 0; i < gameHeight; i++) {\r\n if (!myLaneInfo.get(i).get(3).isEmpty()) {\r\n emptyCellsPos.add(i);\r\n }\r\n }\r\n if (emptyCellsPos.isEmpty()) {\r\n return doNothingCommand();\r\n }\r\n int y = getRandomElementOfList(emptyCellsPos);\r\n return IRONCURTAIN.buildCommand(getRandomElementOfList(myLaneInfo.get(y).get(3)),y);\r\n }", "private void bakeItemModels() {\n/* 754 */ Iterator<ResourceLocation> var1 = this.itemLocations.values().iterator();\n/* */ \n/* 756 */ while (var1.hasNext()) {\n/* */ \n/* 758 */ ResourceLocation var2 = var1.next();\n/* 759 */ ModelBlock var3 = (ModelBlock)this.models.get(var2);\n/* */ \n/* 761 */ if (func_177581_b(var3)) {\n/* */ \n/* 763 */ ModelBlock var4 = func_177582_d(var3);\n/* */ \n/* 765 */ if (var4 != null)\n/* */ {\n/* 767 */ var4.field_178317_b = var2.toString();\n/* */ }\n/* */ \n/* 770 */ this.models.put(var2, var4); continue;\n/* */ } \n/* 772 */ if (isCustomRenderer(var3))\n/* */ {\n/* 774 */ this.models.put(var2, var3);\n/* */ }\n/* */ } \n/* */ \n/* 778 */ var1 = this.field_177599_g.values().iterator();\n/* */ \n/* 780 */ while (var1.hasNext()) {\n/* */ \n/* 782 */ TextureAtlasSprite var5 = (TextureAtlasSprite)var1.next();\n/* */ \n/* 784 */ if (!var5.hasAnimationMetadata())\n/* */ {\n/* 786 */ var5.clearFramesTextureData();\n/* */ }\n/* */ } \n/* */ }", "private BDD build_X() {\n\t\tBDD res = factory.makeOne();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\t\t\t\tres.andWith(board[i][j].copy());\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public Ialialbuilding(Ial myIal, Ial my2Ial, int buildSize, int buildHeight) {\n this.myIal = myIal;\n this.my2Ial = my2Ial;\n this.buildSize = buildSize;\n this.buildHeight = buildHeight;\n\n if(buildSize == 2) {\n rmov0_0 = new float[]{-10, 10, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov1_0 = new float[]{1, -10, -1, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov0_1 = new float[]{1, 1, -1, -10, 10, -1, -1, -1, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov1_1 = new float[]{1, 1, -1, 1, -10, -1, -1, -1, -1, 10, 5, -1, -1, -1, -1, -1, -1, -1};\n }\n if(buildSize == 3) {\n rmov0_0 = new float[]{-10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov1_0 = new float[]{1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov2_0 = new float[]{1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov0_1 = new float[]{1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov1_1 = new float[]{1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov2_1 = new float[]{1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov0_2 = new float[]{1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov1_2 = new float[]{1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1};\n rmov2_2 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1, -1};\n }\n if(buildHeight == 1 && buildSize == 2) {\n rmovu0_0 = new float[]{1, 1, -1, 1, 1, -1, -1, -1, -1, -10, 10, -1, 5, -1, -1, -1, -1, -1};\n rmovu1_0 = new float[]{1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -10, -1, 10, 5, -1, -1, -1, -1};\n rmovu0_1 = new float[]{5, 1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, -10, 10, -1, -1, -1, -1};\n rmovu1_1 = new float[]{10, 5, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, 1, -10, -1, -1, -1, -1};\n } \n if(buildHeight == 1 && buildSize == 3) {\n rmovu0_0 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1, -1};\n rmovu1_0 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1, -1};\n rmovu2_0 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1, -1};\n rmovu0_1 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1, -1};\n rmovu1_1 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1, -1};\n rmovu2_1 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5, -1};\n rmovu0_2 = new float[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10, 5};\n rmovu1_2 = new float[]{5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10, 10};\n rmovu2_2 = new float[]{10, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -10};\n }\n }", "public boolean isLoopMode();", "public void enemySpawn(String typeofEnemy) {\n if (spawnTimer == 0) {\n if (typeofEnemy.equals(\"bee\")) {\n outerloop:\n//label to later break when enemy is spawned\n for (int row = 3; row < 5; row++) {\n for (int column = 0; column < 8; column++) {\n if (canSpawn[row][column] == false) {\n handler.getGalagaState().entityManager.entities.add(new EnemyBee(x, y, 32, 32, handler, row, column));\n canSpawn[row][column] = true;\n spawnTimer = random.nextInt(60 * 7);\n break outerloop;\n } else continue;\n }\n }\n } else {//ENEMYOTHER\n outerloop:\n for (int row = 1; row < 3; row++) {\n for (int column = 0; column < 8; column++) {\n if (canSpawn[row][column] == false) {\n handler.getGalagaState().entityManager.entities.add(new EnemyOther(x, y, 32, 32, handler, row, column));\n canSpawn[row][column] = true;\n spawnTimer = random.nextInt(60 * 7);\n break outerloop;\n } else continue;\n }\n }\n\n }\n }\n else {\n spawnTimer--;\n }\n\n// int enemyType = random.nextInt(2);\n// spawnTimer--;\n// if (spawnTimer == 0) {\n// if (typeofEnemy.equals(\"bee\")) {\n// int row = random.nextInt(2) + 3, column = random.nextInt(8);\n// if (canSpawn[row][column] == false) {\n// handler.getGalagaState().entityManager.entities.add(new EnemyBee(x, y, 32, 32, handler, row, column));\n// canSpawn[row][column] = true;\n// } else {\n// return;\n// }\n// } else {\n// int row = random.nextInt(2) + 1, column = random.nextInt(8);\n// if (canSpawn[row][column] == false) {\n// handler.getGalagaState().entityManager.entities.add(new EnemyOther(x, y, 32, 32, handler, row, column));\n// canSpawn[row][column] = true;\n// }\n// }\n// }\n// else{\n// spawnTimer--;\n// }\n\n\n\n\n }", "Lighter build();", "public static LoopExpression loop(Expression body, LabelTarget breakTarget, LabelTarget continueTarget) { throw Extensions.todo(); }", "public boolean getLoops() { return getEndAction().startsWith(\"Loop\"); }", "@Override\n\tprotected void buildCircuit() {\n\t\tthis.circuit.add(new Point2f(97, -98));\n\t\tthis.circuit.add(new Point2f(-3, -98));\n\t\tthis.circuit.add(new Point2f(-3, -2));\n\t\t\n\t\t// U-turn (step 2)\n\t\tthis.circuit.add(new Point2f(-111, -2));\n\t\tthis.circuit.add(new Point2f(-111, 2));\n\t\t\n\t\t// Semi-Loop, bottom-left block (step 3)\n\t\tthis.circuit.add(new Point2f(-3, 2));\n\t\tthis.circuit.add(new Point2f(-3, 106));\n\t\tthis.circuit.add(new Point2f(97, 106));\n\t}", "@Test\n public void youCanCreateALoopFromPlatesFromACount() {\n // inputs\n VertexLabel runningTotalLabel = new VertexLabel(\"runningTotal\");\n VertexLabel stillLoopingLabel = new VertexLabel(\"stillLooping\");\n VertexLabel valueInLabel = new VertexLabel(\"valueIn\");\n\n // intermediate\n VertexLabel oneLabel = new VertexLabel(\"one\");\n VertexLabel conditionLabel = new VertexLabel(\"condition\");\n\n // outputs\n VertexLabel plusLabel = new VertexLabel(\"plus\");\n VertexLabel loopLabel = new VertexLabel(\"loop\");\n VertexLabel valueOutLabel = new VertexLabel(\"valueOut\");\n\n // base case\n DoubleVertex initialSum = ConstantVertex.of(0.);\n BooleanVertex tru = ConstantVertex.of(true);\n DoubleVertex initialValue = ConstantVertex.of(0.);\n\n int maximumLoopLength = 100;\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(SimpleVertexDictionary.backedBy(ImmutableMap.of(\n plusLabel, initialSum,\n loopLabel, tru,\n valueOutLabel, initialValue)))\n .withTransitionMapping(ImmutableMap.of(\n runningTotalLabel, plusLabel,\n stillLoopingLabel, loopLabel,\n valueInLabel, valueOutLabel\n ))\n .count(maximumLoopLength)\n .withFactory((plate) -> {\n // inputs\n DoubleVertex runningTotal = new DoubleProxyVertex(runningTotalLabel);\n BooleanVertex stillLooping = new BooleanProxyVertex(stillLoopingLabel);\n DoubleVertex valueIn = new DoubleProxyVertex(valueInLabel);\n plate.addAll(ImmutableSet.of(runningTotal, stillLooping, valueIn));\n\n // intermediate\n DoubleVertex one = ConstantVertex.of(1.);\n BooleanVertex condition = new BernoulliVertex(0.5);\n plate.add(oneLabel, one);\n plate.add(conditionLabel, condition);\n\n // outputs\n DoubleVertex plus = runningTotal.plus(one);\n BooleanVertex loopAgain = stillLooping.and(condition);\n DoubleVertex result = If.isTrue(loopAgain).then(plus).orElse(valueIn);\n plate.add(plusLabel, plus);\n plate.add(loopLabel, loopAgain);\n plate.add(valueOutLabel, result);\n })\n .build();\n\n\n DoubleVertex previousPlus = initialSum;\n BooleanVertex previousLoop = tru;\n DoubleVertex previousValueOut = initialValue;\n\n for (Plate plate : plates) {\n DoubleVertex runningTotal = plate.get(runningTotalLabel);\n BooleanVertex stillLooping = plate.get(stillLoopingLabel);\n DoubleVertex valueIn = plate.get(valueInLabel);\n\n DoubleVertex one = plate.get(oneLabel);\n BooleanVertex condition = plate.get(conditionLabel);\n\n DoubleVertex plus = plate.get(plusLabel);\n BooleanVertex loop = plate.get(loopLabel);\n DoubleVertex valueOut = plate.get(valueOutLabel);\n\n assertThat(runningTotal.getParents(), contains(previousPlus));\n assertThat(stillLooping.getParents(), contains(previousLoop));\n assertThat(valueIn.getParents(), contains(previousValueOut));\n\n assertThat(one.getParents(), is(empty()));\n assertThat(condition, hasParents(contains(allOf(\n hasNoLabel(),\n instanceOf(ConstantDoubleVertex.class)\n ))));\n\n assertThat(plus.getParents(), containsInAnyOrder(runningTotal, one));\n assertThat(loop.getParents(), containsInAnyOrder(condition, stillLooping));\n assertThat(valueOut.getParents(), containsInAnyOrder(loop, valueIn, plus));\n\n previousPlus = plus;\n previousLoop = loop;\n previousValueOut = valueOut;\n }\n\n\n DoubleVertex output = plates.asList().get(maximumLoopLength - 1).get(valueOutLabel);\n\n for (int firstFailure : new int[]{0, 1, 2, 10, 99}) {\n for (Plate plate : plates) {\n BooleanVertex condition = plate.get(conditionLabel);\n condition.setAndCascade(true);\n }\n BooleanVertex condition = plates.asList().get(firstFailure).get(conditionLabel);\n condition.setAndCascade(false);\n Double expectedOutput = new Double(firstFailure);\n assertThat(output, VertexMatchers.hasValue(expectedOutput));\n }\n }", "private void buildForEachStatement(ForEachStatement tree) {\n Block afterLoop = currentBlock;\n Block statementBlock = createBlock();\n Block loopback = createBranch(tree, statementBlock, afterLoop);\n currentBlock = createBlock(loopback);\n addContinueTarget(loopback);\n breakTargets.addLast(afterLoop);\n build(tree.statement());\n breakTargets.removeLast();\n continueTargets.removeLast();\n statementBlock.addSuccessor(currentBlock);\n currentBlock = loopback;\n build(tree.variable());\n currentBlock = createBlock(currentBlock);\n build(tree.expression());\n currentBlock = createBlock(currentBlock);\n }", "private static boolean forLoopParts_3(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"forLoopParts_3\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = forLoopParts_3_0(b, l + 1);\n r = r && forLoopParts_3_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "private void generateWorld() {\n\t\t// Loop through all block locations where a block needs to be generated\n\t\tfor(int x=0; x<WORLD_SIZE; x++) {\n\t\t\tfor(int z=0; z<WORLD_SIZE; z++) {\n\t\t\t\tfor(int y=0; y<WORLD_HEIGHT/2; y++) {\n\t\t\t\t\tsetBlockAt(x, y, z, BlockType.STONE);\n\t\t\t\t\tif(y > (WORLD_HEIGHT/2) - 5)\n\t\t\t\t\t\tsetBlockAt(x, y, z, BlockType.DIRT);\n\t\t\t\t\tif(y == (WORLD_HEIGHT/2) -1)\n\t\t\t\t\t\tsetBlockAt(x, y, z, BlockType.GRASS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t// Generate NUM_DIAMONDS of diamonds in random locations\n\t\tfor(int i=0; i<NUM_DIAMONDS; i++)\n\t\t\tsetBlockAt(getRandomLocation(), BlockType.DIAMOND);\t\n\t}", "public void makeCFG() {\n\t\tArrayList<Integer> entryToBB1 = new ArrayList<>();\n\t\tentryToBB1.add(1);\n\t\tCFG.put(0, entryToBB1);\n\t\tfor (int i = 1; i <= BasicBlocks.size(); i++) {\n\t\t\tArrayList<Integer> targetBBList = new ArrayList<>();\n\t\t\tArrayList<String> BB = BasicBlocks.get(i);\n\t\t\tString lastCode = BB.get(BB.size() - 1);\n\t\t\tString label = lastCode;\n\t\t\tint targetBB;\n\n\t\t\t// Branch (1): fjp\n\t\t\tif (lastCode.charAt(0) == 'f' && lastCode.charAt(1) == 'j') {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\n\t\t\t}\n\t\t\t// Branch (2): ujp\n\t\t\telse if (lastCode.charAt(0) == 'u' && lastCode.charAt(1) == 'j') {\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\t\t\t}\n\t\t\t// Normal Code & 'Exit'\n\t\t\telse {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tCFG.put(i, targetBBList);\n\t\t}\n\t}", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "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 void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }", "public void generateNextGeneration() {\n int neighbours;\n int minimum = Integer.parseInt(PreferencesActivity\n .getMinimumVariable(this._context));\n int maximum = Integer.parseInt(PreferencesActivity\n .getMaximumVariable(this._context));\n int spawn = Integer.parseInt(PreferencesActivity\n .getSpawnVariable(this._context));\n\n minimum = 2;\n maximum = 3;\n spawn = 3;\n\n int[][] nextGenerationLifeGrid = new int[HEIGHT][WIDTH];\n\n\n\n for (int h = 0; h < HEIGHT; h++) {\n for (int w = 0; w < WIDTH; w++) {\n neighbours = calculateNeighbours(h, w);\n\n\n if (_lifeGrid[h][w] != 0) {\n if ((neighbours >= minimum) && (neighbours <= maximum)) {\n nextGenerationLifeGrid[h][w] = neighbours;\n }\n\n } else {\n if (neighbours == spawn) {\n nextGenerationLifeGrid[h][w] = spawn;\n\n }\n }\n\n }\n\n }\n\n copyGrid(nextGenerationLifeGrid, _lifeGrid);\n\n }", "public boolean hasSelfLoops();", "ForLoopRule createForLoopRule();", "private JCStatement makeInvalidateSize() {\n // Initialize the singleton synthetic item vars (during IS_VALID phase)\n // Bound sequences don't have a value\n ListBuffer<JCStatement> stmts = ListBuffer.lb();\n for (int i = 0; i < length; ++i) {\n if (!isSequence(i)) {\n stmts.append(SetStmt(vsym(i), CallGetter(i)));\n }\n }\n JCStatement varInits = Block(stmts);\n \n return\n Block(\n If(IsTriggerPhase(),\n setSequenceValid(),\n varInits\n ),\n SetStmt(sizeSymbol, cummulativeSize(length)),\n CallSeqInvalidate(Int(0), Int(0), Get(sizeSymbol))\n );\n }", "public void checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public boolean onSceneTouchEvent(TouchEvent var1_1) {\n block19 : {\n block20 : {\n var2_2 = var1_1.getAction();\n var3_3 = var2_2 == 0;\n if (this.mTouchAreaBindingEnabled && !var3_3 && (var29_5 = (ITouchArea)(var28_4 = this.mTouchAreaBindings).get(var1_1.getPointerID())) != null) {\n var30_6 = var1_1.getX();\n var31_7 = var1_1.getY();\n switch (var2_2) {\n default: {\n break;\n }\n case 1: \n case 3: {\n var28_4.remove(var1_1.getPointerID());\n }\n }\n var32_8 = this.onAreaTouchEvent(var1_1, var30_6, var31_7, var29_5);\n if (var32_8 == null || !var32_8.booleanValue()) ** break;\n return true;\n }\n if (this.mChildScene != null) {\n if (this.onChildSceneTouchEvent(var1_1)) {\n return true;\n }\n if (this.mChildSceneModalTouch) {\n return false;\n }\n }\n var4_9 = var1_1.getX();\n var5_10 = var1_1.getY();\n var6_11 = this.mLayerCount;\n var7_12 = this.mLayers;\n ** if (!this.mOnAreaTouchTraversalBackToFront) goto lbl51\nlbl24: // 1 sources:\n var22_13 = 0;\n block3 : do {\n ** if (var22_13 >= var6_11) goto lbl30\nlbl27: // 1 sources:\n ** if ((var24_16 = (var23_14 = var7_12[var22_13].getTouchAreas()).size()) <= 0) goto lbl-1000\nlbl28: // 1 sources:\n var25_15 = 0;\n ** GOTO lbl40\nlbl30: // 2 sources:\n do {\n if ((var15_26 = (var14_25 = this.mTouchAreas).size()) <= 0) break block19;\n if (!this.mOnAreaTouchTraversalBackToFront) break block20;\n for (var19_27 = 0; var19_27 < var15_26; ++var19_27) {\n if (!(var20_29 = var14_25.get(var19_27)).contains(var4_9, var5_10) || (var21_28 = this.onAreaTouchEvent(var1_1, var4_9, var5_10, var20_29)) == null || !var21_28.booleanValue()) continue;\n if (this.mTouchAreaBindingEnabled == false) return true;\n if (var3_3 == false) return true;\n this.mTouchAreaBindings.put(var1_1.getPointerID(), (Object)var20_29);\n return true;\n }\n break block19;\n break;\n } while (true);\nlbl40: // 1 sources:\n do {\n if (var25_15 >= var24_16) lbl-1000: // 2 sources:\n {\n ++var22_13;\n continue block3;\n }\n if ((var26_18 = var23_14.get(var25_15)).contains(var4_9, var5_10) && (var27_17 = this.onAreaTouchEvent(var1_1, var4_9, var5_10, var26_18)) != null && var27_17.booleanValue()) {\n if (this.mTouchAreaBindingEnabled == false) return true;\n if (var3_3 == false) return true;\n this.mTouchAreaBindings.put(var1_1.getPointerID(), (Object)var26_18);\n return true;\n }\n ++var25_15;\n } while (true);\n break;\n } while (true);\nlbl51: // 1 sources:\n var8_19 = var6_11 - 1;\n do lbl-1000: // 2 sources:\n {\n if (var8_19 < 0) ** continue;\n ** if ((var10_21 = (var9_20 = var7_12[var8_19].getTouchAreas()).size()) <= 0) goto lbl-1000\nlbl55: // 1 sources:\n var11_22 = var10_21 - 1;\n do {\n if (var11_22 < 0) lbl-1000: // 2 sources:\n {\n --var8_19;\n ** continue;\n }\n if ((var12_23 = var9_20.get(var11_22)).contains(var4_9, var5_10) && (var13_24 = this.onAreaTouchEvent(var1_1, var4_9, var5_10, var12_23)) != null && var13_24.booleanValue()) {\n if (this.mTouchAreaBindingEnabled == false) return true;\n if (var3_3 == false) return true;\n this.mTouchAreaBindings.put(var1_1.getPointerID(), (Object)var12_23);\n return true;\n }\n --var11_22;\n } while (true);\n break;\n } while (true);\n }\n for (var16_30 = var15_26 - 1; var16_30 >= 0; --var16_30) {\n if (!(var17_31 = var14_25.get(var16_30)).contains(var4_9, var5_10) || (var18_32 = this.onAreaTouchEvent(var1_1, var4_9, var5_10, var17_31)) == null || !var18_32.booleanValue()) continue;\n if (this.mTouchAreaBindingEnabled == false) return true;\n if (var3_3 == false) return true;\n this.mTouchAreaBindings.put(var1_1.getPointerID(), (Object)var17_31);\n return true;\n }\n }\n if (this.mOnSceneTouchListener == null) return false;\n return this.mOnSceneTouchListener.onSceneTouchEvent(this, var1_1);\n }", "private void step() {\n // Set up the times\n loopTime += calcFreq;\n t += dt*speedSlider.getValue();\n simDate.setTime(loopTime);\n \n if (loopTime % 250 == 0) {\n timeField.setValue(simDate);\n }\n \n mainPanel.repaint();\n \n // Check for collisions\n ArrayList<Body> toBeRemoved = new ArrayList<>();\n for (Body b1 : bodies) {\n for (Body b2 : bodies) {\n if (b1 != b2 && areTouching(b1, b2)) {\n Body big = b1.mass > b2.mass ? b1 : b2;\n Body small = b1 == big ? b2 : b1;\n \n if (toBeRemoved.contains(small)) {\n continue;\n } else {\n toBeRemoved.add(small);\n }\n \n double newvx = (big.state.vx*big.mass+small.state.vx*small.mass)/(big.mass+small.mass);\n double newvy = (big.state.vy*big.mass+small.state.vy*small.mass)/(big.mass+small.mass);\n double newvz = (big.state.vz*big.mass+small.state.vz*small.mass)/(big.mass+small.mass);\n double newden = (big.DENSITY*big.mass+small.DENSITY*small.mass)/(big.mass+small.mass);\n big.mass += small.mass;\n big.DENSITY = newden;\n big.setRadiusFromMass();\n big.state.vx = newvx;\n big.state.vy = newvy;\n big.state.vz = newvz;\n }\n }\n \n // Check for out of bounds\n if (!toBeRemoved.contains(b1)) {\n if (Math.abs(b1.state.x) > cubeL || Math.abs(b1.state.y) > cubeL\n || Math.abs(b1.state.z) > cubeL/2) {\n toBeRemoved.add(b1);\n }\n }\n }\n \n // Remove all that need to be removed\n for (Body b : toBeRemoved) {\n bodies.remove(b);\n totalBodiesCounter.setText(\"\"+bodies.size());\n bodiesComboBox.removeItem(b.name);\n }\n \n // Calculate the next position\n for (Body b : bodies) {\n if (b.moveable) {\n b.nextState.x = b.state.x;\n b.nextState.y = b.state.y;\n b.nextState.z = b.state.z;\n b.nextState.vx = b.state.vx;\n b.nextState.vy = b.state.vy;\n b.nextState.vz = b.state.vz;\n \n b.updateBody(t, dt*speedSlider.getValue());\n if (pathsComboBox.getSelectedItem().equals(\"Lines\") && loopTime % 20 == 0) {\n b.addPos();\n } else if (pathsComboBox.getSelectedItem().equals(\"Dots\") && loopTime % 100 == 0) {\n b.addPos();\n }\n }\n }\n \n // Set each next position\n for (Body b : bodies) {\n if (b.moveable) {\n b.state.x = b.nextState.x;\n b.state.y = b.nextState.y;\n b.state.z = b.nextState.z;\n b.state.vx = b.nextState.vx;\n b.state.vy = b.nextState.vy;\n b.state.vz = b.nextState.vz;\n }\n }\n \n // Update the edit window\n Body bufferedBody = selectedBody;\n if (bufferedBody != null) {\n if (loopTime % 50 == 0) {\n xFieldEdit.setValue(bufferedBody.state.x);\n yFieldEdit.setValue(bufferedBody.state.y);\n zFieldEdit.setValue(bufferedBody.state.z);\n vxFieldEdit.setValue(bufferedBody.state.vx);\n vyFieldEdit.setValue(bufferedBody.state.vy);\n vzFieldEdit.setValue(bufferedBody.state.vz);\n massFieldEdit.setValue(bufferedBody.mass);\n radiusFieldEdit.setValue(bufferedBody.r);\n }\n \n // Follow the body\n if (followBodyButton.isSelected()) {\n setWindowToBody(bufferedBody);\n }\n }\n }", "public void setLoops(boolean aValue) { setEndAction(aValue? \"Loop\" : \"\"); }", "private static void buildTunnels()\n {\n //Initialize necessary member variables\n totalCost = 0;\n connectedHills = 1;\n \n //Create a disjoint set for all of the hills on the current campus\n h = scan.nextInt();\n campus = new DisjointSet(h);\n \n //Read how many tunnels can be built\n t = scan.nextInt();\n \n //Create an array for all the possible tunnels\n edges = new edge[t];\n \n //Loop through all of the possible tunnels\n for (tunnel = 0; tunnel < t; tunnel++)\n {\n //Save all information for the current possible tunnel\n edges[tunnel] = new edge();\n }\n \n //Sort the array of tunnels by their costs\n Arrays.sort(edges);\n \n //Loop through all the possible tunnels again\n for (tunnel = 0; tunnel < t; tunnel++)\n {\n //Try to connect the hills with the current tunnel and check if it was successful\n if (campus.union(edges[tunnel].x - 1, edges[tunnel].y - 1))\n {\n //Add the cost to build that tunnel to the total cost\n totalCost += edges[tunnel].d;\n \n //Incrememnt the amount of total hills connected\n connectedHills++;\n }\n \n //Check if the tunnels have connected all of the hills\n if (connectedHills == h)\n {\n //Stop trying to build tunnels\n return;\n }\n }\n }", "private void puzzleMaker() \n\t{\n\t\t\n\t\tprimaryStage.close();\n\t\tbuttons = new Button[SIZE][SIZE];\n\t\tStage puzzleStage = new Stage();\n\t\tpuzzleStage.setResizable(false);\n\t\tpuzzleStage.setMinWidth(250);\n\t\tpuzzleStage.setTitle(\"Lights Out\");\n\t\tBorderPane background = new BorderPane();\n\t\tHBox buttonBar = new HBox(20);\n\t\tboard = new GridPane();\n\t\tboard.setStyle(\"-fx-background-color: #555555;\");\n\t\tfor(int i = 0; i < SIZE * SIZE; i++)\n\t\t{\n\t\t\tButton lightButton = new Button();\n\t\t\tlightButton.setPrefHeight(50);\n\t\t\tlightButton.setPrefWidth(50);\n\t\t\tlightButton.setBackground(OFF);\n\n\t\t\tfinal int tempI = i;\n\t\t\tboard.add(lightButton, i % SIZE, i / SIZE);\n\t\t\tbuttons[i / SIZE][i % SIZE] = lightButton;\n\n\t\t\tlightButton.setOnAction( e ->\n\t\t\t{\n\t\t\t\tpressed(tempI / SIZE, tempI % SIZE);\n\t\t\t});\n\n\t\t}\n\t\trandomize();\n\t\t\n\t\tbackground.setCenter(board);\n\t\tbackground.setBottom(buttonBar);\n\n\t\tButton randomize = new Button(\"Randomize\");\n\t\trandomize.setOnAction( e ->\n\t\t{\n\t\t\trandomize();\n\t\t});\n\t\t\n\t\tButton chaseLights = new Button(\"Chase Lights\");\n\t\tchaseLights.setOnAction( e ->\n\t\t{\n\t\t\tchaseLights();\n\t\t});\n\n\t\tbuttonBar.getChildren().addAll(randomize, chaseLights);\n\t\tbuttonBar.setAlignment(Pos.CENTER);\n\t\tbuttonBar.setSpacing(20);\n\t\tboard.setAlignment(Pos.CENTER);\n\t\tScene puzzleScene = new Scene(background, background.getPrefWidth(), background.getPrefHeight());\n\t\tpuzzleStage.setScene(puzzleScene);\n\t\tpuzzleStage.show();\n\t}", "public void verifyDestroyedBoatsOnLines(){\n for (int i = 0; i < canvasNumberOfLines; i++){\n int start = 0;\n int startCopy = 0;\n \n for (int j = 0; j < canvasNumberOfColumns; j++){\n if (gameMatrix[i][j] != 0 && booleanMatrixUserChoices[i][j] == 1 && booleanFoundBoats[i][j] == 0){\n if (startCopy != gameMatrix[i][j] || start == 0){\n start = gameMatrix[i][j]+1;\n startCopy = gameMatrix[i][j];\n }\n }\n \n if (gameMatrix[i][j] == 0){\n start = 0;\n startCopy = 0;\n }\n \n if (start > 0 && booleanMatrixUserChoices[i][j] == 1){\n start--;\n }\n \n if (start == 1){\n if (startCopy == 1){\n boatsNumber[0] -= 1;\n booleanFoundBoats[i][j] = 1;\n }\n else if (startCopy == 2){\n boatsNumber[1] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n }\n else if (startCopy == 3){\n boatsNumber[2] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n }\n else if (startCopy == 4){\n boatsNumber[3] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n booleanFoundBoats[i][j-3] = 1;\n }\n else if (startCopy == 5){\n boatsNumber[4] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n booleanFoundBoats[i][j-3] = 1;\n booleanFoundBoats[i][j-4] = 1;\n }\n \n start = 0;\n startCopy = 0;\n }\n \n } \n } \n }", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "private void buildGenerations(BDD initialGeneration){\n\t\tBDD currentGeneration = initialGeneration;\n\t\tint i = 0;\n\t\t\n\t\tthis.generations.add(currentGeneration.copy());\n\t\n\t\twhile(i++ < endGenerations){\n\n\t\t\tBDD nextGeneration = getNextGeneration(currentGeneration);\n\t\t\tthis.generations.add(nextGeneration);\n\t\t\t\n\t\t\tcurrentGeneration.free();\n\t\t\tcurrentGeneration = nextGeneration.copy();\n\t\t}\t\t\n\t}", "public void initLogicBoard() {\n int numOfBombs = 0;\n while (numOfBombs<bombs) {\n int randX = (int) (Math.random() * (rows - 1));\n int randY = (int) (Math.random() * (cols - 1));\n if (allTiles[randX][randY].getType() != 10) {\n allTiles[randX][randY].setType(10);\n\n for (int m = randX - 1; m <= randX + 1; m++) {\n for (int n = randY - 1; n <= randY + 1; n++) {\n if ((m < rows && n < cols) && (m >= 0 && n >= 0)) {\n if (allTiles[m][n].getType() != 10)\n allTiles[m][n].setType(allTiles[m][n].getType() + 1);\n }\n }\n }\n numOfBombs++;\n\n }\n }\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 buildWalls() {\n for (Position floor : floors) {\n addWall(floor.xCoordinate, floor.yCoordinate);\n }\n }", "static boolean applyChainOptimized(android.support.constraint.solver.widgets.ConstraintWidgetContainer r39, android.support.constraint.solver.LinearSystem r40, int r41, int r42, android.support.constraint.solver.widgets.ChainHead r43) {\n /*\n r0 = r40\n r1 = r41\n r2 = r43\n android.support.constraint.solver.widgets.ConstraintWidget r3 = r2.mFirst\n android.support.constraint.solver.widgets.ConstraintWidget r4 = r2.mLast\n android.support.constraint.solver.widgets.ConstraintWidget r5 = r2.mFirstVisibleWidget\n android.support.constraint.solver.widgets.ConstraintWidget r6 = r2.mLastVisibleWidget\n android.support.constraint.solver.widgets.ConstraintWidget r7 = r2.mHead\n r8 = r3\n r9 = 0\n r10 = 0\n r11 = 0\n float r12 = r2.mTotalWeight\n android.support.constraint.solver.widgets.ConstraintWidget r13 = r2.mFirstMatchConstraintWidget\n android.support.constraint.solver.widgets.ConstraintWidget r14 = r2.mLastMatchConstraintWidget\n r2 = r39\n r15 = r8\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour[] r8 = r2.mListDimensionBehaviors\n r8 = r8[r1]\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r2 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.WRAP_CONTENT\n r16 = 0\n r17 = r9\n if (r8 != r2) goto L_0x002b\n r2 = 1\n goto L_0x002c\n L_0x002b:\n r2 = 0\n L_0x002c:\n r8 = 0\n r18 = 0\n r19 = 0\n if (r1 != 0) goto L_0x0050\n int r9 = r7.mHorizontalChainStyle\n if (r9 != 0) goto L_0x0039\n r9 = 1\n goto L_0x003a\n L_0x0039:\n r9 = 0\n L_0x003a:\n r8 = r9\n int r9 = r7.mHorizontalChainStyle\n r21 = r2\n r2 = 1\n if (r9 != r2) goto L_0x0044\n r2 = 1\n goto L_0x0045\n L_0x0044:\n r2 = 0\n L_0x0045:\n int r9 = r7.mHorizontalChainStyle\n r22 = r2\n r2 = 2\n if (r9 != r2) goto L_0x004e\n r2 = 1\n goto L_0x004f\n L_0x004e:\n r2 = 0\n L_0x004f:\n goto L_0x006e\n L_0x0050:\n r21 = r2\n int r2 = r7.mVerticalChainStyle\n if (r2 != 0) goto L_0x0058\n r2 = 1\n goto L_0x0059\n L_0x0058:\n r2 = 0\n L_0x0059:\n r8 = r2\n int r2 = r7.mVerticalChainStyle\n r9 = 1\n if (r2 != r9) goto L_0x0061\n r2 = 1\n goto L_0x0062\n L_0x0061:\n r2 = 0\n L_0x0062:\n int r9 = r7.mVerticalChainStyle\n r23 = r2\n r2 = 2\n if (r9 != r2) goto L_0x006b\n r2 = 1\n goto L_0x006c\n L_0x006b:\n r2 = 0\n L_0x006c:\n r22 = r23\n L_0x006e:\n r9 = 0\n r18 = 0\n r24 = r7\n r7 = r11\n r11 = r15\n r15 = r9\n r9 = 0\n L_0x0077:\n r19 = 0\n r25 = r13\n r13 = 8\n if (r10 != 0) goto L_0x0143\n r26 = r10\n int r10 = r11.getVisibility()\n if (r10 == r13) goto L_0x00ca\n int r9 = r9 + 1\n if (r1 != 0) goto L_0x0092\n int r10 = r11.getWidth()\n float r10 = (float) r10\n float r15 = r15 + r10\n goto L_0x0098\n L_0x0092:\n int r10 = r11.getHeight()\n float r10 = (float) r10\n float r15 = r15 + r10\n L_0x0098:\n if (r11 == r5) goto L_0x00a4\n android.support.constraint.solver.widgets.ConstraintAnchor[] r10 = r11.mListAnchors\n r10 = r10[r42]\n int r10 = r10.getMargin()\n float r10 = (float) r10\n float r15 = r15 + r10\n L_0x00a4:\n if (r11 == r6) goto L_0x00b2\n android.support.constraint.solver.widgets.ConstraintAnchor[] r10 = r11.mListAnchors\n int r20 = r42 + 1\n r10 = r10[r20]\n int r10 = r10.getMargin()\n float r10 = (float) r10\n float r15 = r15 + r10\n L_0x00b2:\n android.support.constraint.solver.widgets.ConstraintAnchor[] r10 = r11.mListAnchors\n r10 = r10[r42]\n int r10 = r10.getMargin()\n float r10 = (float) r10\n float r18 = r18 + r10\n android.support.constraint.solver.widgets.ConstraintAnchor[] r10 = r11.mListAnchors\n int r20 = r42 + 1\n r10 = r10[r20]\n int r10 = r10.getMargin()\n float r10 = (float) r10\n float r18 = r18 + r10\n L_0x00ca:\n android.support.constraint.solver.widgets.ConstraintAnchor[] r10 = r11.mListAnchors\n r10 = r10[r42]\n r27 = r9\n int r9 = r11.getVisibility()\n if (r9 == r13) goto L_0x0106\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour[] r9 = r11.mListDimensionBehaviors\n r9 = r9[r1]\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r13 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT\n if (r9 != r13) goto L_0x0106\n int r7 = r7 + 1\n if (r1 != 0) goto L_0x00f0\n int r9 = r11.mMatchConstraintDefaultWidth\n if (r9 == 0) goto L_0x00e7\n return r16\n L_0x00e7:\n int r9 = r11.mMatchConstraintMinWidth\n if (r9 != 0) goto L_0x00ef\n int r9 = r11.mMatchConstraintMaxWidth\n if (r9 == 0) goto L_0x00fe\n L_0x00ef:\n return r16\n L_0x00f0:\n int r9 = r11.mMatchConstraintDefaultHeight\n if (r9 == 0) goto L_0x00f5\n return r16\n L_0x00f5:\n int r9 = r11.mMatchConstraintMinHeight\n if (r9 != 0) goto L_0x0105\n int r9 = r11.mMatchConstraintMaxHeight\n if (r9 == 0) goto L_0x00fe\n goto L_0x0105\n L_0x00fe:\n float r9 = r11.mDimensionRatio\n int r9 = (r9 > r19 ? 1 : (r9 == r19 ? 0 : -1))\n if (r9 == 0) goto L_0x0106\n return r16\n L_0x0105:\n return r16\n L_0x0106:\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r11.mListAnchors\n int r13 = r42 + 1\n r9 = r9[r13]\n android.support.constraint.solver.widgets.ConstraintAnchor r9 = r9.mTarget\n if (r9 == 0) goto L_0x012c\n android.support.constraint.solver.widgets.ConstraintWidget r13 = r9.mOwner\n r28 = r7\n android.support.constraint.solver.widgets.ConstraintAnchor[] r7 = r13.mListAnchors\n r7 = r7[r42]\n android.support.constraint.solver.widgets.ConstraintAnchor r7 = r7.mTarget\n if (r7 == 0) goto L_0x012a\n android.support.constraint.solver.widgets.ConstraintAnchor[] r7 = r13.mListAnchors\n r7 = r7[r42]\n android.support.constraint.solver.widgets.ConstraintAnchor r7 = r7.mTarget\n android.support.constraint.solver.widgets.ConstraintWidget r7 = r7.mOwner\n if (r7 == r11) goto L_0x0127\n goto L_0x012a\n L_0x0127:\n r17 = r13\n goto L_0x0131\n L_0x012a:\n r7 = 0\n goto L_0x012f\n L_0x012c:\n r28 = r7\n r7 = 0\n L_0x012f:\n r17 = r7\n L_0x0131:\n if (r17 == 0) goto L_0x0139\n r7 = r17\n r11 = r7\n r10 = r26\n goto L_0x013b\n L_0x0139:\n r7 = 1\n r10 = r7\n L_0x013b:\n r13 = r25\n r9 = r27\n r7 = r28\n goto L_0x0077\n L_0x0143:\n r26 = r10\n android.support.constraint.solver.widgets.ConstraintAnchor[] r10 = r3.mListAnchors\n r10 = r10[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r10 = r10.getResolutionNode()\n android.support.constraint.solver.widgets.ConstraintAnchor[] r13 = r4.mListAnchors\n int r20 = r42 + 1\n r13 = r13[r20]\n android.support.constraint.solver.widgets.ResolutionAnchor r13 = r13.getResolutionNode()\n r29 = r14\n android.support.constraint.solver.widgets.ResolutionAnchor r14 = r10.target\n if (r14 == 0) goto L_0x0480\n android.support.constraint.solver.widgets.ResolutionAnchor r14 = r13.target\n if (r14 != 0) goto L_0x0170\n r30 = r2\n r32 = r6\n r37 = r7\n r33 = r8\n r38 = r9\n r35 = r13\n r13 = r0\n goto L_0x048d\n L_0x0170:\n android.support.constraint.solver.widgets.ResolutionAnchor r14 = r10.target\n int r14 = r14.state\n r0 = 1\n if (r14 != r0) goto L_0x0471\n android.support.constraint.solver.widgets.ResolutionAnchor r14 = r13.target\n int r14 = r14.state\n if (r14 == r0) goto L_0x018d\n r30 = r2\n r32 = r6\n r37 = r7\n r33 = r8\n r38 = r9\n r35 = r13\n r13 = r40\n goto L_0x047f\n L_0x018d:\n if (r7 <= 0) goto L_0x0192\n if (r7 == r9) goto L_0x0192\n return r16\n L_0x0192:\n r0 = 0\n if (r2 != 0) goto L_0x0199\n if (r8 != 0) goto L_0x0199\n if (r22 == 0) goto L_0x01b2\n L_0x0199:\n if (r5 == 0) goto L_0x01a4\n android.support.constraint.solver.widgets.ConstraintAnchor[] r14 = r5.mListAnchors\n r14 = r14[r42]\n int r14 = r14.getMargin()\n float r0 = (float) r14\n L_0x01a4:\n if (r6 == 0) goto L_0x01b2\n android.support.constraint.solver.widgets.ConstraintAnchor[] r14 = r6.mListAnchors\n int r20 = r42 + 1\n r14 = r14[r20]\n int r14 = r14.getMargin()\n float r14 = (float) r14\n float r0 = r0 + r14\n L_0x01b2:\n android.support.constraint.solver.widgets.ResolutionAnchor r14 = r10.target\n float r14 = r14.resolvedOffset\n r30 = r2\n android.support.constraint.solver.widgets.ResolutionAnchor r2 = r13.target\n float r2 = r2.resolvedOffset\n r20 = 0\n int r23 = (r14 > r2 ? 1 : (r14 == r2 ? 0 : -1))\n if (r23 >= 0) goto L_0x01c7\n float r23 = r2 - r14\n float r23 = r23 - r15\n goto L_0x01cb\n L_0x01c7:\n float r23 = r14 - r2\n float r23 = r23 - r15\n L_0x01cb:\n r27 = 1\n if (r7 <= 0) goto L_0x02b9\n if (r7 != r9) goto L_0x02b9\n android.support.constraint.solver.widgets.ConstraintWidget r20 = r11.getParent()\n if (r20 == 0) goto L_0x01e8\n r31 = r2\n android.support.constraint.solver.widgets.ConstraintWidget r2 = r11.getParent()\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour[] r2 = r2.mListDimensionBehaviors\n r2 = r2[r1]\n r32 = r6\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r6 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.WRAP_CONTENT\n if (r2 != r6) goto L_0x01ec\n return r16\n L_0x01e8:\n r31 = r2\n r32 = r6\n L_0x01ec:\n float r23 = r23 + r15\n float r23 = r23 - r18\n r2 = r3\n r6 = r2\n r2 = r14\n L_0x01f3:\n if (r6 == 0) goto L_0x02ad\n android.support.constraint.solver.Metrics r11 = android.support.constraint.solver.LinearSystem.sMetrics\n if (r11 == 0) goto L_0x021a\n android.support.constraint.solver.Metrics r11 = android.support.constraint.solver.LinearSystem.sMetrics\n r33 = r8\n r34 = r9\n long r8 = r11.nonresolvedWidgets\n long r8 = r8 - r27\n r11.nonresolvedWidgets = r8\n android.support.constraint.solver.Metrics r8 = android.support.constraint.solver.LinearSystem.sMetrics\n r35 = r13\n r36 = r14\n long r13 = r8.resolvedWidgets\n long r13 = r13 + r27\n r8.resolvedWidgets = r13\n android.support.constraint.solver.Metrics r8 = android.support.constraint.solver.LinearSystem.sMetrics\n long r13 = r8.chainConnectionResolved\n long r13 = r13 + r27\n r8.chainConnectionResolved = r13\n goto L_0x0222\n L_0x021a:\n r33 = r8\n r34 = r9\n r35 = r13\n r36 = r14\n L_0x0222:\n android.support.constraint.solver.widgets.ConstraintWidget[] r8 = r6.mNextChainWidget\n r17 = r8[r1]\n if (r17 != 0) goto L_0x022e\n if (r6 != r4) goto L_0x022b\n goto L_0x022e\n L_0x022b:\n r13 = r40\n goto L_0x02a1\n L_0x022e:\n float r8 = (float) r7\n float r8 = r23 / r8\n int r9 = (r12 > r19 ? 1 : (r12 == r19 ? 0 : -1))\n if (r9 <= 0) goto L_0x0249\n float[] r9 = r6.mWeight\n r9 = r9[r1]\n r11 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r9 = (r9 > r11 ? 1 : (r9 == r11 ? 0 : -1))\n if (r9 != 0) goto L_0x0241\n r8 = 0\n goto L_0x0249\n L_0x0241:\n float[] r9 = r6.mWeight\n r9 = r9[r1]\n float r9 = r9 * r23\n float r8 = r9 / r12\n L_0x0249:\n int r9 = r6.getVisibility()\n r11 = 8\n if (r9 != r11) goto L_0x0252\n r8 = 0\n L_0x0252:\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r6.mListAnchors\n r9 = r9[r42]\n int r9 = r9.getMargin()\n float r9 = (float) r9\n float r2 = r2 + r9\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r6.mListAnchors\n r9 = r9[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r9.getResolutionNode()\n android.support.constraint.solver.widgets.ResolutionAnchor r11 = r10.resolvedTarget\n r9.resolve(r11, r2)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r6.mListAnchors\n int r11 = r42 + 1\n r9 = r9[r11]\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r9.getResolutionNode()\n android.support.constraint.solver.widgets.ResolutionAnchor r11 = r10.resolvedTarget\n float r13 = r2 + r8\n r9.resolve(r11, r13)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r6.mListAnchors\n r9 = r9[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r9.getResolutionNode()\n r13 = r40\n r9.addResolvedValue(r13)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r6.mListAnchors\n int r11 = r42 + 1\n r9 = r9[r11]\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r9.getResolutionNode()\n r9.addResolvedValue(r13)\n float r2 = r2 + r8\n android.support.constraint.solver.widgets.ConstraintAnchor[] r9 = r6.mListAnchors\n int r11 = r42 + 1\n r9 = r9[r11]\n int r9 = r9.getMargin()\n float r9 = (float) r9\n float r2 = r2 + r9\n L_0x02a1:\n r6 = r17\n r8 = r33\n r9 = r34\n r13 = r35\n r14 = r36\n goto L_0x01f3\n L_0x02ad:\n r33 = r8\n r34 = r9\n r35 = r13\n r36 = r14\n r13 = r40\n r8 = 1\n return r8\n L_0x02b9:\n r31 = r2\n r32 = r6\n r33 = r8\n r34 = r9\n r35 = r13\n r36 = r14\n r13 = r40\n int r2 = (r23 > r19 ? 1 : (r23 == r19 ? 0 : -1))\n if (r2 >= 0) goto L_0x02d3\n r8 = 0\n r22 = 0\n r2 = 1\n r30 = r2\n r33 = r8\n L_0x02d3:\n if (r30 == 0) goto L_0x0370\n float r23 = r23 - r0\n r2 = r3\n float r6 = r3.getBiasPercent(r1)\n float r6 = r6 * r23\n float r14 = r36 + r6\n r11 = r2\n r23 = r14\n L_0x02e3:\n if (r11 == 0) goto L_0x036a\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n if (r2 == 0) goto L_0x0301\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n long r8 = r2.nonresolvedWidgets\n long r8 = r8 - r27\n r2.nonresolvedWidgets = r8\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n long r8 = r2.resolvedWidgets\n long r8 = r8 + r27\n r2.resolvedWidgets = r8\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n long r8 = r2.chainConnectionResolved\n long r8 = r8 + r27\n r2.chainConnectionResolved = r8\n L_0x0301:\n android.support.constraint.solver.widgets.ConstraintWidget[] r2 = r11.mNextChainWidget\n r17 = r2[r1]\n if (r17 != 0) goto L_0x0309\n if (r11 != r4) goto L_0x0366\n L_0x0309:\n r2 = 0\n if (r1 != 0) goto L_0x0312\n int r6 = r11.getWidth()\n float r2 = (float) r6\n goto L_0x0317\n L_0x0312:\n int r6 = r11.getHeight()\n float r2 = (float) r6\n L_0x0317:\n android.support.constraint.solver.widgets.ConstraintAnchor[] r6 = r11.mListAnchors\n r6 = r6[r42]\n int r6 = r6.getMargin()\n float r6 = (float) r6\n float r6 = r23 + r6\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n r8 = r8[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r10.resolvedTarget\n r8.resolve(r9, r6)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n int r9 = r42 + 1\n r8 = r8[r9]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r10.resolvedTarget\n float r14 = r6 + r2\n r8.resolve(r9, r14)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n r8 = r8[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n r8.addResolvedValue(r13)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n int r9 = r42 + 1\n r8 = r8[r9]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n r8.addResolvedValue(r13)\n float r6 = r6 + r2\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n int r9 = r42 + 1\n r8 = r8[r9]\n int r8 = r8.getMargin()\n float r8 = (float) r8\n float r23 = r6 + r8\n L_0x0366:\n r11 = r17\n goto L_0x02e3\n L_0x036a:\n r37 = r7\n r38 = r34\n goto L_0x046f\n L_0x0370:\n if (r33 != 0) goto L_0x0374\n if (r22 == 0) goto L_0x036a\n L_0x0374:\n if (r33 == 0) goto L_0x0379\n float r23 = r23 - r0\n goto L_0x037d\n L_0x0379:\n if (r22 == 0) goto L_0x037d\n float r23 = r23 - r0\n L_0x037d:\n r2 = r3\n int r9 = r34 + 1\n float r6 = (float) r9\n float r6 = r23 / r6\n if (r22 == 0) goto L_0x0395\n r8 = r34\n r9 = 1\n if (r8 <= r9) goto L_0x0390\n int r9 = r8 + -1\n float r9 = (float) r9\n float r6 = r23 / r9\n goto L_0x0397\n L_0x0390:\n r9 = 1073741824(0x40000000, float:2.0)\n float r6 = r23 / r9\n goto L_0x0397\n L_0x0395:\n r8 = r34\n L_0x0397:\n r9 = r36\n int r11 = r3.getVisibility()\n r14 = 8\n if (r11 == r14) goto L_0x03a2\n float r9 = r9 + r6\n L_0x03a2:\n if (r22 == 0) goto L_0x03b2\n r11 = 1\n if (r8 <= r11) goto L_0x03b2\n android.support.constraint.solver.widgets.ConstraintAnchor[] r11 = r5.mListAnchors\n r11 = r11[r42]\n int r11 = r11.getMargin()\n float r11 = (float) r11\n float r9 = r36 + r11\n L_0x03b2:\n if (r33 == 0) goto L_0x03c0\n if (r5 == 0) goto L_0x03c0\n android.support.constraint.solver.widgets.ConstraintAnchor[] r11 = r5.mListAnchors\n r11 = r11[r42]\n int r11 = r11.getMargin()\n float r11 = (float) r11\n float r9 = r9 + r11\n L_0x03c0:\n r11 = r2\n r23 = r9\n L_0x03c3:\n if (r11 == 0) goto L_0x046b\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n if (r2 == 0) goto L_0x03e6\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n r37 = r7\n r38 = r8\n long r7 = r2.nonresolvedWidgets\n long r7 = r7 - r27\n r2.nonresolvedWidgets = r7\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n long r7 = r2.resolvedWidgets\n long r7 = r7 + r27\n r2.resolvedWidgets = r7\n android.support.constraint.solver.Metrics r2 = android.support.constraint.solver.LinearSystem.sMetrics\n long r7 = r2.chainConnectionResolved\n long r7 = r7 + r27\n r2.chainConnectionResolved = r7\n goto L_0x03ea\n L_0x03e6:\n r37 = r7\n r38 = r8\n L_0x03ea:\n android.support.constraint.solver.widgets.ConstraintWidget[] r2 = r11.mNextChainWidget\n r17 = r2[r1]\n if (r17 != 0) goto L_0x03f6\n if (r11 != r4) goto L_0x03f3\n goto L_0x03f6\n L_0x03f3:\n r8 = 8\n goto L_0x0463\n L_0x03f6:\n r2 = 0\n if (r1 != 0) goto L_0x03ff\n int r7 = r11.getWidth()\n float r2 = (float) r7\n goto L_0x0404\n L_0x03ff:\n int r7 = r11.getHeight()\n float r2 = (float) r7\n L_0x0404:\n if (r11 == r5) goto L_0x0411\n android.support.constraint.solver.widgets.ConstraintAnchor[] r7 = r11.mListAnchors\n r7 = r7[r42]\n int r7 = r7.getMargin()\n float r7 = (float) r7\n float r23 = r23 + r7\n L_0x0411:\n r7 = r23\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n r8 = r8[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r10.resolvedTarget\n r8.resolve(r9, r7)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n int r9 = r42 + 1\n r8 = r8[r9]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n android.support.constraint.solver.widgets.ResolutionAnchor r9 = r10.resolvedTarget\n float r14 = r7 + r2\n r8.resolve(r9, r14)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n r8 = r8[r42]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n r8.addResolvedValue(r13)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n int r9 = r42 + 1\n r8 = r8[r9]\n android.support.constraint.solver.widgets.ResolutionAnchor r8 = r8.getResolutionNode()\n r8.addResolvedValue(r13)\n android.support.constraint.solver.widgets.ConstraintAnchor[] r8 = r11.mListAnchors\n int r9 = r42 + 1\n r8 = r8[r9]\n int r8 = r8.getMargin()\n float r8 = (float) r8\n float r8 = r8 + r2\n float r23 = r7 + r8\n if (r17 == 0) goto L_0x03f3\n int r7 = r17.getVisibility()\n r8 = 8\n if (r7 == r8) goto L_0x0463\n float r23 = r23 + r6\n L_0x0463:\n r11 = r17\n r7 = r37\n r8 = r38\n goto L_0x03c3\n L_0x046b:\n r37 = r7\n r38 = r8\n L_0x046f:\n r2 = 1\n return r2\n L_0x0471:\n r30 = r2\n r32 = r6\n r37 = r7\n r33 = r8\n r38 = r9\n r35 = r13\n r13 = r40\n L_0x047f:\n return r16\n L_0x0480:\n r30 = r2\n r32 = r6\n r37 = r7\n r33 = r8\n r38 = r9\n r35 = r13\n r13 = r0\n L_0x048d:\n return r16\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.Optimizer.applyChainOptimized(android.support.constraint.solver.widgets.ConstraintWidgetContainer, android.support.constraint.solver.LinearSystem, int, int, android.support.constraint.solver.widgets.ChainHead):boolean\");\n }", "void buildBlock(Tile t);", "@Override\n\tpublic void build() {\n\t\tif(this.getContainer().isEmpty()){\n\t\t\tthis.addBuilding(new Building(BuildingType.CABSTAND, 150));\n\t\t\tMonopolyTheGame.getInstance().getActivePlayer().decBalance(150);\n\t\t\tsetEnabler(false);\n\t\t\t//currentSquare.setRent(currentSquare.getRent()*2);\n\t\t}else {\n\t\t\tSystem.out.println(\"You cannot bould multiple cab stands on a cab company\");\n\t\t}\n\t\t\n\t}", "private static void task3() {\n\n\n System.out.printf(\"\\nTASK 3:\\nSee the 8 puzzles generated by this \" +\n \"task.\\nEach size (5, 7, 9 & 11) has two puzzles each; one \" +\n \"with a positive k value and one with a negative k value.\\n\" +\n \"Each puzzle is provided with a corresponding visualization \" +\n \"of it's solution\\n\");\n int[] puzzleSizes = new int[]{5, 7, 9, 11};\n for (int puzzleSize : puzzleSizes){\n createT3Puzzles(puzzleSize, true);\n createT3Puzzles(puzzleSize, false);\n }\n return;\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 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 static void makeGlider() {\n\t\tfor (int i = 0; i < Width; i++) {\n\t\t\tfor (int j = 0; j < Height; j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgrid[15][10] = 1;\n\t\tgrid[16][10] = 1;\n\t\tgrid[17][10] = 1;\n\t\tgrid[17][9] = 1;\n\t\tgrid[16][8] = 1;\n\t}", "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 void verifyDestroyedBoatsOnColumns(){ \n for (int i = 0; i < canvasNumberOfColumns; i++){\n int start = 0;\n int startCopy = 0;\n \n for (int j = 0; j < canvasNumberOfLines; j++){\n if (gameMatrix[j][i] != 0 && booleanMatrixUserChoices[j][i] == 1 && booleanFoundBoats[j][i] == 0){\n if (startCopy != gameMatrix[j][i] || start == 0){\n start = gameMatrix[j][i]+1;\n startCopy = gameMatrix[j][i];\n }\n }\n \n if (gameMatrix[j][i] == 0){\n start = 0;\n startCopy = 0;\n }\n \n if (start > 0 && booleanMatrixUserChoices[j][i] == 1){\n start--;\n }\n \n if (start == 1){\n if (startCopy == 1){\n boatsNumber[0] -= 1;\n booleanFoundBoats[j][i] = 1;\n }\n else if (startCopy == 2){\n boatsNumber[1] -= 1;\n booleanFoundBoats[j][i] = 1;\n booleanFoundBoats[j-1][i] = 1;\n }\n else if (startCopy == 3){\n boatsNumber[2] -= 1;\n booleanFoundBoats[j][i] = 1;\n booleanFoundBoats[j-1][i] = 1;\n booleanFoundBoats[j-2][i] = 1;\n }\n else if (startCopy == 4){\n boatsNumber[3] -= 1;\n booleanFoundBoats[j][i] = 1;\n booleanFoundBoats[j-1][i] = 1;\n booleanFoundBoats[j-2][i] = 1;\n booleanFoundBoats[j-3][i] = 1;\n }\n else if (startCopy == 5){\n boatsNumber[4] -= 1;\n booleanFoundBoats[j][i] = 1;\n booleanFoundBoats[j-1][i] = 1;\n booleanFoundBoats[j-2][i] = 1;\n booleanFoundBoats[j-3][i] = 1;\n booleanFoundBoats[j-4][i] = 1;\n }\n \n start = 0;\n startCopy = 0;\n }\n \n } \n } \n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}", "@Override\n protected void generateMonsters()\n {\n generateWeakEnemies(2);\n generateStrongEnemies(12);\n generateElites(10);\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 }", "private void moverCarritoGolf() {\n for (AutoGolf carrito : arrEnemigosCarritoGolf) {\n carrito.render(batch);\n\n carrito.moverIzquierda();\n }\n }", "public void configureNestedLoops(){\n\t\tif(currentView == null || currentView.getDynamicModelView() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open and a dynamic model present before nested loops can be configured\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcurrentView.getDynamicModelView().configureNestedLoops();\r\n\t}", "protected void generateInner(boolean verbose, SourceBuilder builder) {\n for (int i = 0; i < m_inners.size(); i++) {\n ((ClassHolder)m_inners.get(i)).generate(verbose, builder);\n }\n }", "final int getNextBuildTarget(int difficulty) {\n/* 1970 */ difficulty = Math.min(5, difficulty);\n/* 1971 */ int start = difficulty * 3;\n/* 1972 */ int templateFound = -1;\n/* */ int x;\n/* 1974 */ for (x = start; x < 17; x++) {\n/* */ \n/* 1976 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1978 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 1983 */ if (templateFound == -1)\n/* */ {\n/* */ \n/* 1986 */ for (x = start; x > 0; x--) {\n/* */ \n/* 1988 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1990 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ }\n/* 1996 */ if (templateFound > -1) {\n/* */ \n/* 1998 */ if (templateFound < 3)\n/* 1999 */ return 717; \n/* 2000 */ if (templateFound < 6)\n/* 2001 */ return 714; \n/* 2002 */ if (templateFound < 9)\n/* 2003 */ return 713; \n/* 2004 */ if (templateFound < 12)\n/* 2005 */ return 715; \n/* 2006 */ if (templateFound < 15) {\n/* 2007 */ return 712;\n/* */ }\n/* 2009 */ return 716;\n/* */ } \n/* 2011 */ return -1;\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 void setBoard() {\r\n Timer timer = new Timer();\r\n for (int i = 0; i < rectangles.size(); i++) {\r\n if (i < numTargets) {\r\n rectangles.get(i).setFill(Color.DARKBLUE);\r\n int finalI = i;\r\n rectangles.get(i).setOnMouseClicked(new EventHandler<>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n rectangles.get(finalI).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n rectangles.get(finalI).setFill(Color.DARKBLUE);\r\n for (int i = 0; i < numTargets; i++) {\r\n if (rectangles.get(i).getFill() == Color.DARKBLUE) numClicked++;\r\n }\r\n if (numClicked == numTargets) {\r\n level++;\r\n levelText.setValue(level);\r\n for (int j = 0; j < numTargets; j++) rectangles.get(j).setFill(Color.BLUE);\r\n numTargets++;\r\n numClicked = 0;\r\n if (upgradeCounter == upgradeBound) {\r\n upgradeCounter = 0;\r\n upgradeBound++;\r\n gridSize++;\r\n increaseGridSize();\r\n createRectangles();\r\n addRectanglesToGrid(grid, rectangles);\r\n rectangleSize -= 10;\r\n resizeRectangle();\r\n } else upgradeCounter++;\r\n\r\n Collections.shuffle(rectangles);\r\n TimerTask t = new TimerTask() {\r\n @Override\r\n public void run() {\r\n setBoard();\r\n }\r\n };\r\n timer.schedule(t, 1000L);\r\n }\r\n numClicked = 0;\r\n rectangles.get(finalI).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n }\r\n });\r\n }\r\n else {\r\n rectangles.get(i).setFill(Color.BLUE);\r\n int finalI1 = i;\r\n rectangles.get(i).setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n rectangles.get(finalI1).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n numClicked = 0;\r\n numLives--;\r\n livesText.setValue(numLives);\r\n Collections.shuffle(rectangles);\r\n setBoard();\r\n rectangles.get(finalI1).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n }\r\n });\r\n }\r\n }\r\n\r\n TimerTask task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n for (int i = 0; i < numTargets; i++)\r\n rectangles.get(i).setFill(Color.BLUE);\r\n }\r\n };\r\n timer.schedule(task, 2000L);\r\n }", "public void build()\n {\n\t\tPoint3d loc;\n\t\n\t\tcomputeFPS(0);\n\t\n\t\t// Make random number generator\n\t\tif (seed == -1) {\n\t\t seed = System.currentTimeMillis() % 10000;\n\t\t System.out.println(\"Seed value: \" + seed);\n\t\t}\n\t\trgen = new Random(seed);\n\t\n\t\t// Create empty scene\n\t\tobstacles = new Vector<Obstacle>();\n\t\tcritters = new Vector<Critter>();\n\t\n\t\t// ---------------\n\n // Create a couple of trees, one big and one smaller\n obstacles.addElement(new Tree(rgen, 5, 6, 4.5f, 0.4f, 0.0f, 0.0f));\n obstacles.addElement(new Tree(rgen, 4, 6, 2.5f, 0.15f, 8.0f, -5.0f));\n\n // Create a few rocks\n obstacles.addElement(new Rock(rgen, 4, 2, 2, 1));\n obstacles.addElement(new Rock(rgen, 3, 4, 8, 1));\n obstacles.addElement(new Rock(rgen, 3, 7, 2, 2));\n obstacles.addElement(new Rock(rgen, 2, -2.6, -9, 2));\n obstacles.addElement(new Rock(rgen, 4, -2, -3, 1));\n obstacles.addElement(new Rock(rgen, 3, -2, -1.11, 1));\n \n // Create the main bug\n mainBug = new Bug(rgen, 0.4f, -1, 1, 0.1f, 0.0f);\n critters.addElement(mainBug);\n \n // baby critters\n critters.addElement(new Bug(rgen, 0.1f, -5, 6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.15f, -7, -6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.2f, -8, 1, 0.1, 0.0f));\n \n //predator\n predator = new Predator(rgen, 0.3f, -9, 9, 0, 0);\n critters.addElement(predator);\n \n \n goal = new Point3d(rgen.nextDouble()*5, rgen.nextDouble()*5, 0);\n target = 0;\n\n\t\t// Reset computation clock\n\t\tcomputeClock = 0;\n }", "private void gameCycle() {\n \t\t// The first item is the recycle bin\n \t\tRecycleBin rb = (RecycleBin) objects.get(0);\n \t\tdouble r = Math.random();\n \n \t\t// Exponential difficulty for each item collected\n \n \n \t\tif (Math.pow(1.1, -0.002 * rb.getAmountCollected()) < r) {\n \t\t\tmakeDialog();\n \t\t}\n \n \t\t// Large items should be created less often later\n \t\tif ((-2 * Math.pow(3, 0.2 * -(rb.getAmountCollected() + 20)) + 0.9) < r) {\n \n \t\t\tSysfile foo = new Sysfile(getBounds(), Sysfile.Size.L);\n \t\t\tfoo.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - foo.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(foo);\n \t\t\t}\n \t\t}\n \n \t\t// Smaller sysfiles are created more often the more itmes are collected\n \t\tif (Math.pow(1.2, -0.002 * rb.getAmountCollected()) < r) {\n \n \t\t\tSysfile foo = new Sysfile(getBounds(), Sysfile.Size.M);\n \t\t\tfoo.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - foo.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(foo);\n \t\t\t}\n \t\t}\n \n \t\tif (Math.pow(2.0, -0.002 * rb.getAmountCollected()) < r) {\n \n \t\t\tSysfile foo = new Sysfile(getBounds(), Sysfile.Size.S);\n \t\t\tfoo.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - foo.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(foo);\n \t\t\t}\n \t\t}\n \n \n \n \t\t// Junk items are created regularly\n \t\tif (Math.random() < 0.005) {\n \t\t\tJunk bar = new Junk(getBounds());\n \t\t\tbar.setPosition(new Point2D.Double(\n \t\t\t\t\t(int) (Math.random() * (getWidth() - bar.getAreaRect().width)),\n \t\t\t\t\t10));\n \t\t\tsynchronized (lock) {\n \t\t\t\tobjects.add(bar);\n \t\t\t}\n \t\t}\n \t}", "public void LabelingCandiesToDestroy() {\n int i;\n int j;\n int checkIfSame = 1;\n int NumOfSame = 1;\n System.out.println(\" \");\n //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right)\n for (i = 0; i < 9; i++) {\n for (j = 0; j < 9; j++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - j)) { //when there is a valid combination, it labels the candies as 9\n if (pictures[i][j] == pictures[i][j + checkIfSame]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i][j + k] = 9; //9 is set to candies that have a 3 or more combinations\n }\n }\n\n }\n }\n //this is the second set for the other direction\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - i)) {\n if (pictures[i][j] == pictures[i + checkIfSame][j]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i + k][j] = 9;\n }\n }\n\n }\n }\n\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n System.out.print(pictures2[i][j] + \" \");\n }\n System.out.println();\n }\n DestroyCandies();\n }", "protected final void cycleMasks(Player owner, Mob mob, boolean force, PacketBuilder blockTo) {\n final boolean plr = owner != null;\n for (Map.Entry<MaskType, Integer> currentMask : (owner == null ? mobUpdateMap : playerUpdateMap).entrySet()) {\n MaskType curr = currentMask.getKey();\n boolean needsUpdate = (plr ? owner : mob).getMasks().requiresCycle(curr, force);\n if (needsUpdate) {\n if(curr == MaskType.ANIMATION) {\n if(plr)\n doAnimation(owner, blockTo); else\n doAnimation(mob, blockTo);\n } else if(curr == MaskType.FACE_ENTITY) {\n if(plr)\n doFaceEntity(owner, blockTo); else\n doFaceEntity(mob, blockTo);\n } else if(curr == MaskType.FACE_DIRECTION) {\n if(plr)\n doFaceDirection(owner, blockTo); else\n doFaceDirection(mob, blockTo);\n } else if(curr == MaskType.FORCED_CHAT) {\n if(plr)\n blockTo.putString(owner.getMasks().getForcedChat().getForceText()); else\n blockTo.putString(mob.getMasks().getForcedChat().getForceText());\n } else if(curr == MaskType.NAME_EDIT) {\n for(int i = 0; i < 3; i++) {\n if(plr) {\n blockTo.putString(owner.getMasks().getNameEdit().getRightClickOptions()[i]);\n } else\n blockTo.putString(mob.getMasks().getNameEdit().getRightClickOptions()[i]);\n }\n } else if (curr == MaskType.GRAPHICS) {\n if(plr)\n doGraphics(owner, blockTo); else\n doGraphics(mob, blockTo);\n } else if(curr == MaskType.SECONDARY_GRAPHICS) {\n if(plr)\n doSecondaryGraphics(owner, blockTo); else\n doSecondaryGraphics(mob, blockTo);\n } else if (curr == MaskType.HIT) {\n if(plr)\n doFirstHit(owner, blockTo, owner.getMasks().getHit(1)); else\n doFirstHit(mob, blockTo, mob.getMasks().getHit(1));\n } else if (curr == MaskType.SECOND_HIT) {\n if(plr)\n doSecondHit(owner, blockTo, owner.getMasks().getHit(2)); else\n doSecondHit(mob, blockTo, mob.getMasks().getHit(2));\n } else if(plr) {\n if(curr == MaskType.APPEARANCE) {\n doAppearance(owner.basicSettings().getCachedAppearanceBlock(), blockTo);\n } else if(curr == MaskType.CHAT) {\n doChat(owner, blockTo);\n } else if(curr == MaskType.RESET_MOVEMENT_MODE) {\n doResetMovementMode(owner, blockTo);\n } else if(curr == MaskType.MOVEMENT_MODE) {\n doMovementMode(owner, blockTo);\n } else if (curr == MaskType.FORCE_MOVEMENT) {\n doForcedMovement(owner, blockTo);\n }\n }\n }\n }\n if(plr) {\n owner.basicSettings().setCachedMaskBlock(blockTo.toPacket());\n } else {\n mob.basicSettings().setCachedMaskBlock(blockTo.toPacket());\n }\n }", "private void generateBreaks() {\n cexService.checkOrCreateBreakPoint();\n //Todos los dias menos el miercoles que es con el que va a compartir semana.\n List<DayOfWeek> dayRandomList = Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.THURSDAY,\n DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY);\n TouristPointDTO randomBreakShift = new TouristPointDTO(touristPointRepository.findAll().stream()\n .filter(touristPoint -> touristPoint.getName().equals(\"Descanso Aleatorio\")).findFirst().get());\n //No deberiamos dar mas de x dias de bonus, porque podemos crear tantos descansos que no haya nadie para\n // trabajar en algun momento dado.\n if (lastWeekDatabase != null) {\n for (Day dayLastWeek : lastWeekDatabase.getDays()) {\n for (ShiftDTO shiftLastWeek : dayLastWeek.getShifts()\n .stream()\n .filter(shift -> shift.getPoint().getName().equals(\"Descanso\"))\n .map(ShiftDTO::new)\n .collect(Collectors.toList())) {\n ShiftDTO breakShift = new ShiftDTO();\n breakShift.setWorker(shiftLastWeek.getWorker());\n breakShift.setPoint(shiftLastWeek.getPoint());\n ShiftDTO breakShift2 = new ShiftDTO();\n breakShift2.setWorker(shiftLastWeek.getWorker());\n breakShift2.setPoint(shiftLastWeek.getPoint());\n ShiftDTO breakShift3 = new ShiftDTO();\n breakShift3.setWorker(shiftLastWeek.getWorker());\n breakShift3.setPoint(shiftLastWeek.getPoint());\n switch (dayLastWeek.getDayOfWeek()) {\n case MONDAY:\n addBreakDay(breakShift, DayOfWeek.WEDNESDAY);\n break;\n case TUESDAY:\n breakShift.setPoint(randomBreakShift);\n addBreakDay(breakShift, dayRandomList.stream()\n .skip((int) (dayRandomList.size() * Math.random()))\n .findFirst().get());\n break;\n case WEDNESDAY:\n addBreakDay(breakShift, DayOfWeek.THURSDAY);\n addBreakDay(breakShift3, DayOfWeek.FRIDAY);\n break;\n case THURSDAY:\n addBreakDay(breakShift, DayOfWeek.SATURDAY);\n break;\n case FRIDAY:\n addBreakDay(breakShift, DayOfWeek.SUNDAY);\n break;\n case SATURDAY:\n addBreakDay(breakShift, DayOfWeek.MONDAY);\n break;\n case SUNDAY:\n addBreakDay(breakShift, DayOfWeek.TUESDAY);\n break;\n }\n }\n }\n } else {\n List<TouristInformer> touristInformers = touristInformerRepository.findAll().stream()\n .filter(touristInformer -> touristInformer.getDismissDate() == null).collect(Collectors.toList());\n List<Team> teams = teamRepository.findAll();\n TouristPointDTO breakPoint = new TouristPointDTO(touristPointRepository.findAll().stream()\n .filter(touristPoint -> touristPoint.getName().equals(\"Descanso\")).findFirst().get());\n for (Team team : teams) {\n DayOfWeek lastStartBreak = DayOfWeek.MONDAY;\n for (TouristInformerDTO touristInformer : touristInformers.stream()\n .filter(touristInformer -> touristInformer.getTeam().equals(team))\n .map(TouristInformerDTO::new)\n .collect(Collectors.toList())) {\n ShiftDTO shift1 = new ShiftDTO();\n shift1.setWorker(touristInformer);\n shift1.setPoint(breakPoint);\n ShiftDTO shift2 = new ShiftDTO();\n shift2.setWorker(touristInformer);\n shift2.setPoint(breakPoint);\n switch (lastStartBreak) {\n case MONDAY:\n addBreakDay(shift1, DayOfWeek.WEDNESDAY);\n shift2.setPoint(randomBreakShift);\n addBreakDay(shift2, dayRandomList.stream()\n .skip((int) (dayRandomList.size() * Math.random()))\n .findFirst().get());\n lastStartBreak = DayOfWeek.WEDNESDAY;\n break;\n case WEDNESDAY:\n addBreakDay(shift1, DayOfWeek.THURSDAY);\n addBreakDay(shift2, DayOfWeek.FRIDAY);\n lastStartBreak = DayOfWeek.THURSDAY;\n break;\n case THURSDAY:\n addBreakDay(shift1, DayOfWeek.SATURDAY);\n addBreakDay(shift2, DayOfWeek.SUNDAY);\n lastStartBreak = DayOfWeek.SATURDAY;\n break;\n case SATURDAY:\n addBreakDay(shift1, DayOfWeek.MONDAY);\n addBreakDay(shift2, DayOfWeek.TUESDAY);\n lastStartBreak = DayOfWeek.MONDAY;\n break;\n }\n }\n }\n }\n }", "@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}", "public void buildBridges() {\n\t\tList<MagneticComponent> firstTier = getValidLinks(0);\r\n\t\t\r\n\t\tbuildNextBridge(firstTier, 0);\r\n\t}", "private void decorate(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t \tif ((xLength - e) - (xStart + s) > 0){\r\n\t \t\tfor(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }", "@Override\n\tpublic void buildWalls() {\n\t\tSystem.out.println(\"Building Glass Walls\");\t\n\t}", "private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }", "private void createGrid() {\n String imageButtonID;\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n imageButtonID = \"painterImageButton_\" + i + j;\n\n //This step allows easy assignment of each imageButton with a nested loop\n int resID = this.getResources().getIdentifier(imageButtonID, \"id\", this.getPackageName());\n grid[i][j] = findViewById(resID);\n grid[i][j].setOnClickListener(this); //Response to each button click\n\n //Generate a random number to decide whether to put white or black here\n double x = Math.random() * 2;\n if (x < 1) {\n grid[i][j].setImageResource(R.drawable.black_circle);\n grid[i][j].setContentDescription(getString(R.string.alien_painter_black));\n } else if (x < 2) {\n grid[i][j].setImageResource(R.drawable.white_circle);\n grid[i][j].setContentDescription(getString(R.string.alien_painter_white));\n }\n\n }\n }\n\n //Make sure the grid isn't entirely black at the beginning\n grid[1][1].setImageResource(R.drawable.white_circle);\n grid[1][1].setContentDescription(\"white\");\n }", "private void firstSight()\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t \tfor(int a = 0; a < GRIDSIZE; a++)\n\t\t\t {\n\t\t\t \tfor(int b = 0; b < GRIDSIZE; b++)\n\t\t\t\t {\n\t\t\t \t\tbotones[a][b].toggleOnOff();\n\t\t\t \t\tbotones[a][b].setEnabled(true);\n\t\t\t\t }\n\t\t\t }\n\t\t\t\ttimerStart.stop();\n\t\t }\n\t\t });\n\t}" ]
[ "0.5724698", "0.55273837", "0.5471781", "0.5455753", "0.5445534", "0.5336893", "0.53340286", "0.53078", "0.5279148", "0.5275623", "0.5257397", "0.5245589", "0.524439", "0.520526", "0.518925", "0.51832944", "0.51553535", "0.51489174", "0.5140847", "0.51057386", "0.51037633", "0.5089357", "0.50671357", "0.5066868", "0.5052523", "0.5050428", "0.5031544", "0.50265527", "0.50264627", "0.5025142", "0.50054735", "0.49884704", "0.49814397", "0.4978175", "0.49733707", "0.49664038", "0.4953842", "0.49448022", "0.49258086", "0.49253333", "0.49252555", "0.4912481", "0.49116668", "0.49102786", "0.49004418", "0.48958343", "0.4890575", "0.48728034", "0.48650655", "0.48645028", "0.48644334", "0.4862134", "0.4854883", "0.48501843", "0.48457608", "0.48432645", "0.48423427", "0.48411047", "0.48284933", "0.48034889", "0.48012584", "0.47910312", "0.47877425", "0.4767946", "0.47650123", "0.47626632", "0.4762152", "0.47592798", "0.4758309", "0.4747979", "0.4743099", "0.47403345", "0.47385964", "0.47362453", "0.47298267", "0.47202125", "0.47192344", "0.47182262", "0.47085804", "0.4707794", "0.4700591", "0.46999213", "0.46990025", "0.4688526", "0.46783912", "0.4673618", "0.4671583", "0.46694455", "0.4662428", "0.4662155", "0.46619895", "0.46613842", "0.46594992", "0.46577936", "0.46575233", "0.46574017", "0.46555546", "0.46548632", "0.46496567", "0.46468633", "0.46452382" ]
0.0
-1
Run the timer and returns true if ticksBeforeStartLooping is reached and ticks > triggeringTicks
public boolean triggered(float delta) { if(finished || triggeringTicks.isEmpty()) return false; ticks += delta; //Ticks reached if(ticks >= triggeringTicks.get(triggeringTicksIndex) + ticksBeforeStartLooping) { if(++triggeringTicksIndex < triggeringTicks.size()) return true; else triggeringTicksIndex = 0; if(loopsToMake == -1) { ticks -= triggeringTicks.get(triggeringTicks.size() - 1); return true; } if(loopsToMake > 0) { ticks -= triggeringTicks.get(triggeringTicks.size() - 1); if(++loopNumber >= loopsToMake) { finished = true; } return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isRunningDuringTick(int tick);", "boolean trigger(int ticks);", "public boolean startTimerIsRunning() {\n\t\treturn startMoveDownTimer.isRunning();\n\t}", "@Override\n public boolean isFinished() {\n return !(System.currentTimeMillis() - currentMs < timeMs) &&\n // Then check to see if the lift is in the correct position and for the minimum number of ticks\n Math.abs(Robot.lift.getPID().getSetpoint() - Robot.lift.getEncoderHeight()) < error\n && ++currentCycles >= minDoneCycles;\n }", "public TimedTrigger ticksBeforeStartLooping(int ticksBeforeStartLooping) {\n this.ticksBeforeStartLooping = ticksBeforeStartLooping;\n return this;\n }", "public Boolean timerCheck(){\n return isRunning;\n }", "public boolean isRunning() { return _timer!=null && _timer.isRunning(); }", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}", "public boolean hasTick();", "@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }", "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "public boolean thoughtBubbleTimer(boolean debug) {\r\n if (debug) {\r\n if (seconds - lastBubble >= 5) {\r\n lastBubble = seconds;\r\n return true;\r\n } else if (seconds < lastBubble) {\r\n lastBubble = 0;\r\n }\r\n } else {\r\n if (minutes - lastBubble >= 1) {\r\n lastBubble = minutes;\r\n return true;\r\n } else if (minutes < lastBubble) {\r\n lastBubble = 0;\r\n }\r\n }\r\n return false;\r\n }", "public boolean isStarted()\r\n\t{\r\n\t\treturn currentstate == TIMER_START;\r\n\t}", "@Override\n public boolean isFinished() {\n \n boolean thereYet = false;\n\n double time = timer.get();\n\n \n if (Math.abs(targetDistance - distanceTraveled) <= 4){\n\n thereYet = true;\n\n // else if(Math.abs(targetDistance - distanceTraveled) <= 24){\n\n //shifter.shiftDown();\n \n //}\n\n \n\n } else if (stopTime <= time - startTime){\n\n thereYet = true;\n }\n SmartDashboard.putNumber(\"Distance Traveled\", distanceTraveled);\n\n return thereYet;\n\n }", "public boolean isRunning() {\n\t\treturn !loopTask.stop;\n\t}", "public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }", "public boolean isRunning()\n\t{\n\t\treturn updateTimer.isRunning();\n\t}", "public boolean Tick (int delta, boolean activate)\n {\n Timer -= delta;\n if (TimerMax < 0 && activate)\n {\n if (Loop)\n {\n Reset();\n } else\n {\n Stop();\n }\n return true;\n }\n \n return false;\n }", "protected boolean isFinished() {\n \tif(timer.get()>.7)\n \t\treturn true;\n \tif(Robot.gearX==0)\n \t\treturn true;\n return (Math.abs(173 - Robot.gearX) <= 5);\n }", "boolean isDrawTicks();", "void tick(long ticksSinceStart);", "public final boolean isTimerRunning() {\n return timerRunning;\n }", "public boolean hasStarted() {\n return hasStarted(10, 500, TimeUnit.MILLISECONDS);\n }", "protected boolean isFinished() {\n \tdouble changeInX = targetX - Robot.sensors.getXCoordinate();\n \tdouble changeInY = targetY - Robot.sensors.getYCoordinate();\n \tdouble distance = Math.sqrt(Math.pow(changeInX, 2) + Math.pow(changeInY, 2));\n return distance < 8 || System.currentTimeMillis() >= stopTime;\n }", "public boolean hasFinished()\r\n {\r\n return (timer.hasTimePassed());\r\n }", "public boolean runsDetectsFlakes() {\n return runsDetectsFlakes;\n }", "protected boolean isFinished() {\n long tEnd = System.currentTimeMillis();\n long tDelta = tEnd - tStart;\n double elapsedSeconds = tDelta / 1000.0;\n if (elapsedSeconds > 0.2) {\n \t System.out.println(\"End Fire\");\n \t return true;\n }\n else if(elapsedSeconds > 0.15) {\n \t System.out.println(\"end Fire\");\n Robot.m_Cannon.set(-1);\n }\n else if(elapsedSeconds > 0.05) {\n \t System.out.println(\"mid Fire\");\n Robot.m_Cannon.stop();\n }\n return false;\n }", "public boolean tick() {\n/* 55 */ this.affected = true;\n/* 56 */ if (this.round > 0)\n/* 57 */ this.round--; \n/* 58 */ return (this.round == 0);\n/* */ }", "public abstract void isRestart(long ms);", "@Override\n public void run() {\n time_ = (int) (System.currentTimeMillis() - startTime_) / 1000;\n updateUI();\n\n if (time_ >= maxTime_) {\n // Log.v(VUphone.tag, \"TimerTask.run() entering timeout\");\n handler_.post(new Runnable() {\n public void run() {\n report(true);\n }\n });\n }\n }", "void tick(long tickSinceStart);", "public boolean hasPassed(final long delta){\n return stamp + delta <= System.currentTimeMillis();\n }", "protected boolean isFinished() {\n return (System.currentTimeMillis() - startTime) >= time;\n \t//return false;\n }", "protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }", "public boolean continueExecuting()\n {\n double var1 = this.theEntity.getDistanceSq((double)this.entityPosX, (double)this.entityPosY, (double)this.entityPosZ);\n return this.breakingTime <= 240 && !this.field_151504_e.func_150015_f(this.theEntity.worldObj, this.entityPosX, this.entityPosY, this.entityPosZ) && var1 < 4.0D;\n }", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\twhile ((System.nanoTime() - startTime) / 1000000000 < Server.START_DELAY) {\r\n\r\n\t\t\t\t\t\t\t// Cancel the timer if the number of players ready\r\n\t\t\t\t\t\t\t// changes\r\n\t\t\t\t\t\t\tif (Server.this.playersReady == 0\r\n\t\t\t\t\t\t\t\t\t|| Server.this.playersReady != Server.this.players\r\n\t\t\t\t\t\t\t\t\t\t\t.size()\r\n\t\t\t\t\t\t\t\t\t|| this.value != Server.this.currentTimerNo) {\r\n\t\t\t\t\t\t\t\tServer.this.println(\"Cancelled timer\");\r\n\t\t\t\t\t\t\t\tServer.this.lobbyTimerActive = false;\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tThread.sleep(10);\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tServer.this.startGame();\r\n\t\t\t\t\t}", "boolean updateTicksTillForget(long ticks) {\n\t\tticksTillForget -= ticks;\n\t\treturn (ticksTillForget < 1);\n\t}", "private void checkTickListener()\n\t{\n\t}", "protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }", "public boolean isCounting() {\n assert startTime != -1;\n return System.currentTimeMillis() - startTime <= durationMillis;\n }", "public boolean isTimeElapsed() {\n\t\treturn (timeLeft <= 0);\n\t}", "protected void checkNextSoundInterval() {\n\t\tif(P.p.millis() > loopLastStartTime + loopInterval) {\n\t\t\tloopLastStartTime = P.p.millis();\n\t\t\tstartNextSound();\n\t\t}\n\t}", "protected boolean isFinished() {\n \treturn Robot.lift.isMotionMagicNearTarget() || totalTimer.get() > 5.0;\n }", "boolean hasPostEndOfAudioTimeoutMs();", "public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n \n return (comparetime>TILData.critpoints.get((int)speed));\n // stop tetris because this subject is an outlier for this level\n \n \n }", "public long checkInterval()\r\n/* 184: */ {\r\n/* 185:363 */ return this.checkInterval.get();\r\n/* 186: */ }", "public boolean failedTick() {\n switch (remainingTicks) {\n case 0:\n return false;\n case -1:\n tickable.tick();\n default:\n remainingTicks--;\n }\n return true;\n }", "protected boolean isFinished() {\n return (timeRunning>timeStarted+5 || RobotMap.inPosition.get()!=OI.shooterArmed);\n }", "@Override\n public void run() {\n if (this.runQueueProcessor.get()) {\n try {\n // wait until we are ready to run again\n if (this.tools.getTimestamp() >= this.runAgainAfterMs.get()) {\n\n long timeNow = this.tools.getTimestamp();\n long sinceLastRun = timeNow - this.lastRun;\n long sinceLastKick = timeNow - this.lastKicked;\n\n boolean kicked = sinceLastRun > sinceLastKick;\n double secondsSinceLastRun = sinceLastRun / 1000.0;\n LogMap logmap = LogMap.map(\"Op\", \"queuecheck\")\n .put(\"gap\", secondsSinceLastRun)\n .put(\"kicked\", kicked);\n this.logger.logDebug(this.logFrom, String.format(\"queue check: last check was %.1fs ago%s\",\n secondsSinceLastRun,\n (kicked) ? String.format(\", kicked %.1fs ago\", sinceLastKick / 1000.0) : \"\"),\n logmap);\n this.lastRun = timeNow;\n\n // by default, wait a small amount of time to check again\n // this may be changed inside processQueue\n queueCheckAgainAfter(this.config.getProcessQueueIntervalDefault());\n\n // process queue now\n processQueue();\n }\n } catch (Exception e) {\n this.logger.logException(this.logFrom, e);\n }\n }\n }", "boolean isDelayed();", "public void run() {\r\n\t\tint frames = 0;\r\n\t\tdouble unprocessedSeconds = 0;\r\n\t\tlong previousTime = System.nanoTime();\r\n\t\tdouble secondsPerTick = 1 / 60.0;\r\n\t\tint tickCount = 0;\r\n\t\tboolean ticked = false;\r\n\t\t\r\n\t\twhile (running) {\r\n\t\t\tlong currentTime = System.nanoTime();\r\n\t\t\tlong passedTime = currentTime - previousTime;\r\n\t\t\tpreviousTime = currentTime;\r\n\t\t\tunprocessedSeconds += passedTime / 1000000000.0;\r\n\t\t\trequestFocus();//has the window selected when program is lanched\r\n\r\n\t\t\twhile (unprocessedSeconds > secondsPerTick) {\r\n\t\t\t\tunprocessedSeconds -= secondsPerTick;\r\n\t\t\t\tticked = true;\r\n\t\t\t\ttickCount++;\r\n\t\t\t\tif (tickCount % 3 == 0) {//calls on tick 20x/second\r\n\t\t\t\t\ttick();\r\n\t\t\t\t\tnumberOfTicks++;\r\n\t\t\t\t}\r\n\t\t\t\tif (tickCount % 60 == 0) {\r\n\t\t\t\t\t//System.out.println(frames + \"fps\");\r\n\t\t\t\t\tfps = frames;\r\n\t\t\t\t\tpreviousTime += 1000;\r\n\t\t\t\t\tframes = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\trender();\r\n\t\t\tframes++;\r\n\t\t}\r\n\t}", "@Override\n public boolean onRunningTick(ItemStack aStack) {\n return onRunningTickCheck(aStack);\n }", "public boolean onTick();", "public boolean resetTimer()\n {\n this.counterThread.setSeconds(0);\n return true;\n }", "protected boolean isFinished() {\n \tif (Math.abs(_finalTickTargetLeft - Robot.driveTrain.getEncoderLeft()) <= 0 &&\n \t\t\tMath.abs(_finalTickTargetRight - Robot.driveTrain.getEncoderRight()) <= 0)\n \t{\n \t\treturn true;\n \t}\n return false;\n }", "boolean hasWaitTime();", "@Override\n\tpublic void run() {\n\n\t\tint loop = 0;\n\n\t\tdo {\n\t\t\tthis.onCallTeam.setCountTimer(loop);\n\t\t\tloop++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tSystem.out.println(\"Interrupted\");\n\t\t\t}\n\t\t} while (loop != 900);// 15 minutes\n\n\t}", "public void run() {\n\t \tif(ScorePanel.getScore() == 100){\r\n\t \t\ttimer.cancel();\r\n\t \t}\r\n\t \t//se o Tempo se esgotar, é game over!!!\r\n\t \telse if (tempo == 0){\r\n\t \t timer.cancel();\r\n \t\tAvatar.noMotion();\r\n \t\t//System.exit(0);\r\n\t }\r\n\t \t//Senão, vai contando\r\n\t \telse{\r\n\t \tlbltimer.setText(\"Tempo: \"+ --tempo);\r\n\t }\r\n\t }", "public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n if (newTime - timeLastTick >= timeBetweenTicks) {\n timeLastTick = newTime;\n updateLavaTiles();\n }\n }", "public boolean secondTimer() {\r\n if (seconds - lastSecond >= 1) {\r\n lastSecond = seconds;\r\n return true;\r\n } else if (seconds < lastSecond) {\r\n lastSecond = 0;\r\n }\r\n return false;\r\n }", "public void run()\n\t\t{\n\t\t\ttimerRunning = true;\n\t\t\tdate = new Date();\n\t\t\tstartTime = date.getTime();\n\t\t\tendTime = startTime + planet.getTimeMS();\n\t\t\tbuttonPanel.getTimeLabel().setText(\"Time: \" + planet.getTimeMS()/1000 + \" s\");\n\n\t\t\twhile(timerRunning)\n\t\t\t{\n\t\t\t\tdate = new Date();\n\t\t\t\tnowTime = date.getTime();\n\n\t\t\t\t// If the countdown has reached 0 (or less)\n\t\t\t\t// Stop the timer and other threads and end the game\n\t\t\t\tif(nowTime >= endTime)\n\t\t\t\t{\n\t\t\t\t\tstopTimer();\n\t\t\t\t\tbuttonPanel.getTimeLabel().setText(\"Time: 0 s\");\n\t\t\t\t\tstopThreads();\n\t\t\t\t\tJOptionPane.showMessageDialog(lander,\"Sorry, you ran out of time.\\nGame Over!\", \"Ran Out Of Time\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuttonPanel.getTimeLabel().setText(\"Time: \" + (endTime-nowTime)/1000 + \" s\");\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException e) {}\n\t\t\t}\n\t\t}", "public boolean firedRecently(double time);", "@Deprecated\n @SuppressWarnings({\"DeprecatedIsStillUsed\", \"RedundantSuppression\"})\n public boolean isRunning() {\n return isRunning(10, 500, TimeUnit.MILLISECONDS);\n }", "public boolean runRound() {\n gameMove();\n // return/check if gameover condiation is meet\n return isGameOver();\n }", "@Override\n\tpublic void run() {\n\t\tBot.inst.dbg.writeln(this, \"Running scheduled task id \" + this.timerID + \" for channel \" + this.channel);\n\t\t\n\t\tMessageInfo info = new MessageInfo(channel, \"\", message, \"\", \"\", 0);\n\t\tBot.inst.dbg.writeln(this, \"Flags: \" + this.flags);\n\n\t\tif (this.flagsVals.REQUIRES_MSG_COUNT && Integer.parseInt(this.flagsVals.REQUIRES_MSG_COUNT_AMT) > this.flagsVals.MSGES_SINCE_LAST_TRIGGER) {\n\t\t\tthis.flagsVals.MSGES_SINCE_LAST_TRIGGER = 0; // Reset msges count, even if the timer didnt get to run\n\t\t\tBot.inst.dbg.writeln(this, \"Timer failed. Not enough messages. Channel: \" + this.channel + \", id: \" + this.timerID);\n\t\t\treturn; // Not enough messages have been sent for this to trigger again\n\t\t}\n\t\t\n\t\tif (this.flagsVals.REQUIRES_LIVE) {\n\t\t\tif(!kdk.api.twitch.APIv5.isStreamerLive(Bot.inst.getClientID(), Bot.inst.getChannel(channel).getUserID())) {\n\t\t\t\tBot.inst.dbg.writeln(this, \"Timer failed. Streamer isn't live. Channel: \" + this.channel + \", id: \" + this.timerID);\n\t\t\t\treturn; // Streamer isn't live, we arnt going to send message\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (this.flagsVals.REQUIRES_GAME) {\n\t\t\tChannel chan = Bot.inst.getChannel(this.channel);\n\t\t\tString retrievedGame = kdk.api.twitch.APIv5.getChannelGame(DBFetcher.getTwitchOAuth(kdk.Bot.dbm), chan.getUserID()).replaceAll(\"\\\"\", \"\");\n\t\t\tif(!this.flagsVals.REQUIRES_GAME_NAME.equalsIgnoreCase(retrievedGame)) {\n\t\t\t\tBot.inst.dbg.writeln(this, \"Timer failed. Game did not match. Match: \" + retrievedGame + \", To: \" + this.flagsVals.REQUIRES_GAME_NAME + \", Channel: \" + this.channel + \", id: \" + this.timerID);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tBot.inst.dbg.writeln(this, \"Triggered timer \" + this.timerID + \", all conditions met\");\n\t\tthis.flagsVals.MSGES_SINCE_LAST_TRIGGER = 0; // Reset msges count, even if we're not using it\n\t\tBot.inst.sendMessage(channel, MessageParser.parseMessage(message, info));\n\t\t\n\t\tif(flagsVals.RANDOM_MODIFIER) {\n\t\t\tRandom rng = new Random();\n\t\t\tSystem.out.println(\"ID: \" + timerID + \", RNG_MAX: \" + flagsVals.RANDOM_MODIFIER_MAX);\n\t\t\tint rni = rng.nextInt(Integer.parseInt(flagsVals.RANDOM_MODIFIER_MAX));\n\t\t\t\n\t\t\ttimer.schedule(this, (delay + rni) * 1000, delay * 1000);\n\t\t}\n\t}", "boolean start()\n {\n // log.info(\"Begin start(), instance = '\" + instance + \"'\");\n boolean retVal = false;\n\n if (isStartable())\n {\n t = new Thread(processor);\n t.start();\n nextStartTime = System.currentTimeMillis() + minDurationInMillis;\n running = true;\n retVal = true;\n }\n\n // log.info(\"End start(), instance = '\" + instance + \"', retVal = \" + retVal);\n return retVal;\n }", "boolean hasStopped()\n {\n if (running && ! isAlive())\n {\n nextStartTime = System.currentTimeMillis() + minDurationInMillis;\n running = false;\n return true;\n }\n return false;\n }", "public void startTimer() {\n mStatusChecker.run();\n }", "@Override\n public boolean isFinished() {\n return Robot.auton && counter > 50;\n }", "boolean hasDesiredTime();", "public boolean isRun() {\n if (!isValid()) {\n return false;\n }\n else {\n if (tiles.get(0).getColour() == tiles.get(1).getColour()) {\n return true;\n } else {\n return false;\n }\n }\n }", "public boolean loopsForever() {\r\n\t\treturn getLoopExits().isEmpty();\r\n\t}", "public boolean hasSelfLoops();", "@Override\n public synchronized boolean hasPeriodPassed(double period) {\n if (get() > period) {\n // Advance the start time by the period.\n // Don't set it to the current time... we want to avoid drift.\n m_startTime += period * 1000;\n return true;\n }\n return false;\n }", "@Override\n protected boolean isFinished() {\n return (System.currentTimeMillis() >= thresholdTime || (currentAngle > (totalAngleTurn - 2) && currentAngle < (totalAngleTurn + 2)));\n }", "protected boolean isFinished() {\n return System.currentTimeMillis() - timeStarted >= timeToGo;\n }", "public boolean triggersNow()\n\t{\n\t\tif(!this.canTrigger())\n\t\t\treturn false;\n\n\t\tfor(GameObject object: this.game.actualState.stack())\n\t\t\tif(object instanceof StateTriggeredAbility)\n\t\t\t\tif(((StateTriggeredAbility)object).printedVersionID == this.ID)\n\t\t\t\t\treturn false;\n\n\t\tIdentified source = this.getSource(this.state);\n\t\tint controller;\n\t\tif(source.isGameObject())\n\t\t\tcontroller = ((GameObject)source).controllerID;\n\t\telse\n\t\t\t// it's a player\n\t\t\tcontroller = source.ID;\n\t\tfor(GameObject object: this.game.actualState.waitingTriggers.get(controller))\n\t\t\tif((object instanceof StateTriggeredAbility) && (((StateTriggeredAbility)object).printedVersionID == this.ID))\n\t\t\t\treturn false;\n\n\t\tfor(SetGenerator condition: this.triggerConditions)\n\t\t\tif(!condition.evaluate(this.game, this).isEmpty())\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "@Override\n public void run() {\n while (true) {\n long currentTime = System.nanoTime();\n\n draw();\n check(currentTime);\n }\n }", "@Override\r\n\tpublic boolean startWork(int delay) {\r\n\t\t\r\n\t\tif (!isInProcess() && haveWork() && !isDrawCalled) {\r\n\t\t\t\r\n\t\t\tif (EnginesManager.PARALLEL_WORK) {\r\n\t\t\t\ttaskTimer.schedule(new ScheduleTask(), delay);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\titerate();\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean startIteration() {\n final Telemetry telemetry = getTelemetry();\n telemetry.runningPerf.setIterations(++telemetry.iterations);\n return true;\n }", "private boolean play() {\n for(;;) {\n int key = Console.waitKeyPressed(250); // Wait for mouse event or a key\n if (key == KeyEvent.VK_ESCAPE) // Escape key -> abort game\n return false;\n if (key == Console.MOUSE_EVENT) { // Is a mouse event\n MouseEvent me = Console.getMouseEvent();\n if (me != null && me.type == MouseEvent.DOWN) {\n Location pos = view.getModelPosition(me.line, me.col); // Convert mouse position to cell coordinates\n if (pos!=null && model.touch(pos.line, pos.col))\n return !model.isCompleted();\n }\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//making the timer and notifying the observers.\n\t\t\twhile (time > 0 && gameRunning == true) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t\tif (gameRunning) {\n\t\t\t\t\ttime--;\n\t\t\t\t}\n\t\t\t\tsetChanged();\n\t\t\t\tnotifyObservers(time);\n\n\t\t\t}\n\t\t}\n\n\t}", "public void run()\n {\n while (threadRunning)\n {\n /*\n * As long as the timer is less than 99 minutes and 59 seconds then\n * increment just one per second. In the event that the timer runs\n * longer than that, start timer over at 0 seconds.\n */\n if (this.seconds < 6000)\n {\n this.seconds += 1;\n }\n else\n {\n this.seconds = 0;\n }\n //referring to the JLabel setText method for Timer\n setText(getFormattedTime(seconds));\n doNothing((long)1000); \n }\n }", "public void run(){\n\t\tdouble target = 60.0;\n double nsPerTick = 1000000000.0 / target;\n long lastTime = System.nanoTime();\n long timer = System.currentTimeMillis();\n double unprocessed = 0.0;\n int fps = 0;\n int tps = 0;\n boolean canRender = false;\n \n while (running) {\n long now = System.nanoTime();\n unprocessed += (now - lastTime) / nsPerTick;\n lastTime = now;\n \n if(unprocessed >= 1.0){\n tick();\n unprocessed--;\n tps++;\n canRender = true;\n }else canRender = false;\n \n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n \n if(canRender){\n //render\n \trender();\n fps++;\n }\n \n if(System.currentTimeMillis() - 1000 > timer){\n timer += 1000;\n System.out.printf(\"FPS: %d | TPS: %d\\n\", fps, tps);\n fps = 0;\n tps = 0;\n }\n \n }\n \n System.exit(0);\n\t}", "protected boolean isFinished() {\r\n if (lineHasBeenFound) {\r\n lineTrackTime = System.currentTimeMillis();\r\n }\r\n if(System.currentTimeMillis()-lineTrackTime > 4000){\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "@DISPID(28)\r\n\t// = 0x1c. The runtime will prefer the VTID if present\r\n\t@VTID(33)\r\n\tboolean enableTimerTriggers();", "protected boolean isFinished() {\n\t\tif (_timesRumbled == 40) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }", "public int setInterval(){\r\n if(interval == 0){\r\n gamePanel.setGameLoop(false);\r\n\r\n gamePanel.GameOver();\r\n time.cancel();\r\n }\r\n return --interval;\r\n }", "public abstract void isCorrectionTurn(long ms);", "boolean hasSolverTimeLimitSeconds();", "boolean isMoveFinished(int tick);", "public boolean takeControl() {\n\t\treturn Project2a.curState == Project2a.RobotState.Forward && Project2a.getCurTime() - 500 > MoveForward.startTime;\n\t}", "private boolean checkWindow(List<Integer> timers) {\n for (Integer timer : timers) {\n if (timer != -1)\n return false;\n }\n return true;\n }", "protected boolean isFinished() {\n\tif(this.motionMagicEndPoint >0) {\n \tif(Math.abs(RobotMap.motorLeftTwo.get() )< 0.09 && Math.abs(RobotMap.motorRightTwo.get() )> -0.09&& Timer.getFPGATimestamp()-starttime > 10) {\n \t\treturn true;\n \t}\n\t}\n\t\n return false;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn Math.abs(Robot.lidar.getRange() - range) < 2.0f;\n\t}" ]
[ "0.69880813", "0.6848529", "0.6073796", "0.6052584", "0.5948436", "0.5937426", "0.59330976", "0.5923573", "0.58962184", "0.58671045", "0.5606294", "0.56032914", "0.5566768", "0.55269724", "0.5502023", "0.5415148", "0.5391508", "0.537318", "0.536566", "0.5340461", "0.53141224", "0.5312267", "0.53069943", "0.5294946", "0.5271716", "0.52649426", "0.5258743", "0.5256753", "0.52180636", "0.5211756", "0.52044016", "0.52013385", "0.5200226", "0.51986855", "0.5193885", "0.519227", "0.51878333", "0.5173338", "0.5162241", "0.5154787", "0.51432735", "0.5137029", "0.51317614", "0.5122352", "0.51219016", "0.51093554", "0.5107996", "0.5104495", "0.509218", "0.50899225", "0.50881606", "0.50851333", "0.50844276", "0.50808084", "0.50792956", "0.5077776", "0.507006", "0.5059273", "0.50397676", "0.5034243", "0.50313926", "0.50301504", "0.5022672", "0.50176054", "0.5017108", "0.5016711", "0.501317", "0.50101566", "0.5008604", "0.49992913", "0.49987757", "0.49908313", "0.49778432", "0.49655196", "0.49639177", "0.49622852", "0.49607927", "0.49581626", "0.49537495", "0.49424905", "0.49410307", "0.4938256", "0.49381414", "0.4937364", "0.49355125", "0.49320117", "0.49240154", "0.49229646", "0.49214643", "0.49164626", "0.48895288", "0.48891735", "0.4888756", "0.48833194", "0.4883134", "0.48803487", "0.48724863", "0.48667842", "0.4864775", "0.48626775" ]
0.70844185
0
main class for backend operations Constuctor for FocusListener class
public FocusListener(String console, String instructionText, String type, GUIUpdater updater, MainInterpreter interpreter){ consoleText = console; instruction = instructionText; uiType = type; guiUpdater = updater; mainInterpreter = interpreter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initFocusListening() {\n addFocusListener(new FocusListener() {\n private boolean firstFocusGain = true;\n\n public void focusGained(FocusEvent e) {\n repaint();\n if (firstFocusGain) {\n \n firstFocusGain = false;\n }\n }\n \n public void focusLost(FocusEvent e) {\n repaint();\n }\n });\n }", "@Override\n\t\tpublic void addToFocusListener(FocusListener aFocusListener) {\n\n\t\t}", "private void initFocusListener() {\n final FocusListener focusListener = new FocusListener() {\n public void focusGained(FocusEvent e) {\n validateInput();\n }\n public void focusLost(FocusEvent e) {\n validateInput();\n }\n };\n emailJTextField.addFocusListener(focusListener);\n usernameJTextField.addFocusListener(focusListener);\n passwordJPasswordField.addFocusListener(focusListener);\n confirmPasswordJPasswordField.addFocusListener(focusListener);\n }", "public void testFocusListener() throws Exception\n {\n checkFormEventListener(FOCUS_BUILDER, \"FOCUS\");\n }", "private void createFocusListener() {\n this.addFocusListener(new FocusAdapter() {\n @Override\n public void focusGained(FocusEvent e) {//what happens if get focused.\n JTextField source = (JTextField) e.getComponent();\n if (source.getText().equals(defaultText))//if default text is there, our program clearing it.\n source.setText(\"\");\n source.removeFocusListener(this);\n }\n });\n }", "private void initInputListeners() {\n focusGrabber = new FocusGrabber();\r\n mouseClickScroller = new MouseClickScroller();\r\n cursorChanger = new CursorChanger();\r\n wheelScroller = new MouseWheelScroller();\r\n keyScroller = new KeyScroller();\r\n }", "public void Focus() {\n }", "public void focus() {}", "void addFocus();", "public interface FocusHierarchyListener extends FocusListener {\n\n}", "protected void inputListener(){\n }", "public ControlArbAppFocus () {\n inputManager = InputManager3D.getInputManager();\n }", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n public void focusGained(FocusEvent e) {\n }", "public void addFocusListener(java.awt.event.FocusListener l) {\n // Not supported for MenuComponents\n }", "void focus();", "void focus();", "public EditText.OnFocusChangeListener getCampoCPFCNPJFocusListener() {\n return (v, hasFocus) -> {\n if (!hasFocus) {\n setMascara();\n }\n };\n }", "public void focusGained( FocusEvent fe) \n {\n }", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n public void setFocus() {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "private void addListener(){\n\t\tthis.setFocusable(true);\n\t\tthis.addMouseListener(new MouseAdapter() {//on donne le focus a la fenetre\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent me) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t//Ajout d'un listener de touche de clavier\n\t\tthis.addKeyListener(new KeyListener() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tswitch (e.getKeyCode()) {\n\t\t\t\tcase KeyEvent.VK_R:\n\t\t\t\t\tif(findPDF.isEnabled())\n\t\t\t\t\t\tchoixRepertoire(PDFFile);\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_C:\n\t\t\t\t\tif(conversionPdf_Txt.isEnabled())\n\t\t\t\t\t\tvaliderConversionPDF();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_A:\n\t\t\t\t\tif(avisJury.isEnabled())\n\t\t\t\t\t\tcreationDecisionJury();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_S:\n\t\t\t\t\tif(statistique.isEnabled())\n\t\t\t\t\t\tgenererStatistique();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_Q:\n\t\t\t\t\tSystem.exit(0); \n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {}\n\t\t});\n\n\t\t// Listener qui detecte si le textfield pdf est non vide\n\t\tsourcePDF.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent e) {\n\t\t\t\tdetectionPDF();\n\t\t\t\tgestionFichier();//gere si le fichier est correcte\n\n\t\t\t}\n\t\t});\n\n\t\tfindPDF.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(findPDF.isEnabled())\n\t\t\t\t\tchoixRepertoire(PDFFile);\n\t\t\t}\n\t\t});\n\t\tfindDataSet.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif (findDataSet.isEnabled())\n\t\t\t\t\tchoixRepertoire(ARFFFile);\n\t\t\t}\n\t\t});\n\n\t\tconversionPdf_Txt.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(conversionPdf_Txt.isEnabled())\n\t\t\t\t\tvaliderConversionPDF();\n\t\t\t}\n\t\t});\n\n\t\tavisJury.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(avisJury.isEnabled()){\n\t\t\t\t\tif(fileTXT.exists())\n\t\t\t\t\t\tcreationDecisionJury();\n\t\t\t\t\telse\n\t\t\t\t\t\tmessage.setText(\"<html><span color='red'>la conversion du .pdf en .txt n'a pas été faite</span></html>\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tstatistique.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(statistique.isEnabled())\n\t\t\t\t\tif(fileTXT.exists())\n\t\t\t\t\t\tgenererStatistique();\n\t\t\t\t\telse\n\t\t\t\t\t\tmessage.setText(\"<html><span color='red'>la conversion du .pdf en .txt n'a pas été faite</span></html>\");\n\t\t\t}\n\t\t});\n\t\tbData.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(bData.isEnabled())\n\t\t\t\t\tif(fileTXT.exists())\n\t\t\t\t\t\tgenererDataSet();\n\t\t\t\t\telse\n\t\t\t\t\t\tmessage.setText(\"<html><span color='red'>la conversion du .pdf en .txt n'a pas été faite</span></html>\");\n\t\t\t}\n\t\t});\n\t\tcbTrainingOne.addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t\t\t\tCardLayout cl = (CardLayout)(cardOne.getLayout());\n\t\t\t\t\tint nbItem=cbTrainingOne.getItemCount();\n\t\t\t\t\tboolean foundPanel=false;\n\t\t\t\t\tint i=0;\n\t\t\t\t\twhile (i<nbItem && !foundPanel)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((String)e.getItem()).equals(cbTrainingOne.getItemAt(i)))\n\t\t\t\t\t\t\tfoundPanel=true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tif(panelGraphTraining.get(i).getComponents().length==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!e.getItem().equals(\"ALL\")) {\n\t\t\t\t\t\t\tString pathDataset = fileDataSet.getAbsolutePath() + \"/\" + fileDataSet.getName();\n\t\t\t\t\t\t\tBR clsBR = (BR)Modele.entrainement(pathDataset + \"_\" + e.getItem() + \".arff\",1);\n\t\t\t\t\t\t\tBCC cls = (BCC)Modele.entrainement(pathDataset + \"_\" + e.getItem() + \".arff\",0);\n\t\t\t\t\t\t\tBCC clsNpml = (BCC)Modele.entrainement(pathDataset + \"_\" + e.getItem() + \"_NPML.arff\",0);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdrawGraph(i, clsBR, true);\n\t\t\t\t\t\t\t\tdrawGraph(i, cls, true);\n\t\t\t\t\t\t\t\tdrawGraph(i, clsNpml, new String[]{\"CC2\"}, true);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tex.printStackTrace();\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\tcl.show(cardOne, (String) e.getItem());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcbTrainingTwo.addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t\t\t\tCardLayout cl = (CardLayout)(cardTwo.getLayout());\n\t\t\t\t\tint nbItem=cbTrainingTwo.getItemCount();\n\t\t\t\t\tboolean foundPanel=false;\n\t\t\t\t\tint i=0;\n\t\t\t\t\twhile (i<nbItem && !foundPanel)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((String)e.getItem()).equals(cbTrainingTwo.getItemAt(i)))\n\t\t\t\t\t\t\tfoundPanel=true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tif(panelGraphCompare.get(i).getComponents().length==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!e.getItem().equals(\"ALL\")) {\n\t\t\t\t\t\t\tString pathDataset = fileDataSet.getAbsolutePath() + \"/\" + fileDataSet.getName();\n\t\t\t\t\t\t\tBR clsBR = (BR)Modele.entrainement(pathDataset + \"_\" + e.getItem() + \".arff\",1);\n\t\t\t\t\t\t\tBCC cls = (BCC)Modele.entrainement(pathDataset + \"_\" + e.getItem() + \".arff\",0);\n\t\t\t\t\t\t\tBCC clsNpml = (BCC)Modele.entrainement(pathDataset + \"_\" + e.getItem() + \"_NPML.arff\",0);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdrawGraph(i, clsBR, false);\n\t\t\t\t\t\t\t\tdrawGraph(i, cls, false);\n\t\t\t\t\t\t\t\tdrawGraph(i, clsNpml, new String[]{\"CC2\"}, false);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tex.printStackTrace();\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\tcl.show(cardTwo, (String) e.getItem());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tbCompare.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n if(bCompare.isEnabled()) {\n if (!cardTwo.isVisible()) {\n cardTwo.setVisible(true);\n window.setBounds(screenWidth / 3 - (screenWidth / 2) / 2, screenHeight / 2 - 500, 1300, 950);\n }\n if (fileDataSet.exists()) {\n cbTrainingTwo.removeAllItems();\n cbTrainingTwo.insertItemAt(\"ALL\", 0);\n for (final File fileEntry : new File(cibleTrainingData.getText()).listFiles()) {\n if (!fileEntry.isDirectory()) {\n String[] fileName = fileEntry.getName().split(\"_\");\n fileName = fileName[fileName.length - 1].split(\"\\\\.\");\n if (fileName[0].matches(\"(ISI|TC|HC|SRT|MASTER|RT|STIC|TC)[0-9]{1}\")) {\n JTabbedPane panel = new JTabbedPane();\n cbTrainingTwo.addItem(fileName[0]);\n cardTwo.add(panel, fileName[0]);\n panelGraphCompare.add(panel);\n }\n }\n }\n String pathDataset = fileDataSet.getAbsolutePath() + \"/\" + fileDataSet.getName();\n\t\t\t\t\t\tBR clsBR = (BR)Modele.entrainement(pathDataset +\".arff\",1);\n BCC cls = (BCC)Modele.entrainement(pathDataset + \".arff\",0);\n BCC clsNpml = (BCC)Modele.entrainement(pathDataset + \"_NPML.arff\",0);\n try {\n\t\t\t\t\t\t\tdrawGraph(0, clsBR, false);\n drawGraph(0, cls, false);\n drawGraph(0, clsNpml, new String[]{\"CC2\"}, false);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }\n\n }\n });\n\n\t\tbDataTraining.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(bDataTraining.isEnabled())\n\t\t\t\t\tif(fileDataSet.exists())\n\t\t\t\t\t{\n\t\t\t\t\t cbTrainingOne.removeAllItems();\n cbTrainingOne.insertItemAt(\"ALL\", 0);\n for (final File fileEntry : new File(cibleTrainingData.getText()).listFiles()) {\n if (!fileEntry.isDirectory()) {\n String[] fileName = fileEntry.getName().split(\"_\");\n fileName = fileName[fileName.length - 1].split(\"\\\\.\");\n if (fileName[0].matches(\"(ISI|TC|HC|SRT|MASTER|RT|STIC|TC)[0-9]{1}\")) {\n JTabbedPane panel = new JTabbedPane();\n cbTrainingOne.addItem(fileName[0]);\n cardOne.add(panel, fileName[0]);\n panelGraphTraining.add(panel);\n\n }\n }\n }\n\t\t\t\t\t\tString pathDataset=fileDataSet.getAbsolutePath()+\"/\"+fileDataSet.getName();\n\t\t\t\t\t\tBR clsBR = (BR)Modele.entrainement(pathDataset+\".arff\",1);\n\t\t\t\t\t\tBCC cls = (BCC)Modele.entrainement(pathDataset+\".arff\",0);\n\t\t\t\t\t\tBCC clsNpml=(BCC)Modele.entrainement(pathDataset+\"_NPML.arff\",0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdrawGraph(0,clsBR,true);\n\t\t\t\t\t\t drawGraph(0,cls,true);\n\t\t\t\t\t\t\tdrawGraph(0,clsNpml,new String[]{\"CC2\"},true);\n\t\t\t\t\t\t\tbCompare.setEnabled(true);\n\t\t\t\t\t\t}catch (Exception ex)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\texit.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\r\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\r\n public void focusGained(FocusEvent e) {\n }", "public GUIListener(JTextField tf, Process p) { // constructor\n inputField = tf;\n process = p;\n }", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void focusGained(FocusEvent e) {\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void setFocus() {\n }", "@Override\n\tpublic void focusLost(FocusEvent e)\n\t{\n\t\t\n\t}", "public AbstractRestrictiveTextField()\n {\n addFocusListener(this);\n }", "protected void addFocusHandling() {\n\t\tthis.addFocusListener(new COFocusListener(this));\n\t this.addMouseListener(new COMouseFocusListener(this));\n\t}", "@Override\r\n public void onFocusChange(View view, boolean b) {\r\n //In Focus\r\n if (b){\r\n guiUpdater.updateInstructions(instruction);\r\n }\r\n\r\n //Lose focus\r\n else {\r\n //for predicate elements in coding playground\r\n if(uiType.equalsIgnoreCase(\"Predicate\")) {\r\n if(mainInterpreter.updatePredicate(uiType, (TextView)view)){\r\n guiUpdater.createConsoleLog(consoleText + \" \" + ((TextView) view).getText().toString());\r\n }\r\n }\r\n\r\n //for query predicate elements in console command line\r\n else if(uiType.equalsIgnoreCase(\"Query\")){\r\n if(mainInterpreter.updateQuery(uiType, (TextView)view)){\r\n guiUpdater.createConsoleLog(consoleText + \" \" + ((TextView) view).getText().toString());\r\n }\r\n }\r\n\r\n //for mathematical rule elements in coding playground\r\n else if(uiType.equalsIgnoreCase(\"MathematicalRule\")){\r\n if(mainInterpreter.updateMathComp(uiType, (TextView) view)){\r\n guiUpdater.createConsoleLog(consoleText + \" \" + ((TextView) view).getText().toString());\r\n }\r\n }\r\n }\r\n }", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t}", "@Override\r\n\tpublic void focusLost(FocusEvent e) {\n\r\n\t}", "private void init() {\n\r\n\t\tmyTerminal.inputSource.addUserInputEventListener(this);\r\n//\t\ttextSource.addUserInputEventListener(this);\r\n\r\n\t}", "public void setFocus();", "@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "private void myInit() {\n init_key();\n init_tbl_inventory();\n data_cols();\n focus();\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n jTextField1.grabFocus();\n }\n });\n\n }", "@Override\n\t\tpublic void focusLost(FocusEvent e) {\n\t\t}", "@Override\n public void focusLost(FocusEvent e) {\n }", "void setFocus();", "public TextController createFocus(ControllerCore genCode) {\n\t\tfocusTXT = new TextController(\"focus\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(focus$1LBL);\n\t\t\t\tsetProperty(\"focus\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn focusTXT;\n\t}", "@Override\r\n public void focusGained(FocusEvent event) {\r\n }", "public void setFocus() {\n\t}", "protected void onFocusGained()\n {\n ; // do nothing. \n }", "public interface IOnFocusListenable {\n\n void onWindowFocusChanged(boolean hasFocus);\n}", "@Override\n\t\tpublic void focusGained(FocusEvent e) {\t\tSystem.out.println(\"Focus Gained\");\n\t\t}", "public interface TextFieldListener {\r\n void keyTyped(EditTextFieldBase textField, char key);\r\n\r\n void lineCountChanged(EditTextFieldBase textField, int lineCount, float textHeight);\r\n }", "@Override\n public void focusGained(final FocusEvent e) {\n }", "public void focusGained(FocusEvent e)\r\n {\n }", "public void add(InputChangedListener listener)\r\n {\r\n\r\n }", "public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void focusGained(FocusEvent e)\r\n {\r\n // TODO Auto-generated method stub\r\n\r\n }", "private void initConnections() throws Exception {\r\n\t\t// user code begin {1}\r\n\t\tgetJTextField().addMouseListener(this);\r\n\t\tgetJTextField().addFocusListener(this);\r\n\t\t// user code end\r\n\t\tgetJTextField().addPropertyChangeListener(this);\r\n\t\tthis.addFocusListener(this);\r\n\t\tgetJTextField().addActionListener(this);\r\n\t\tgetJTextField().addFocusListener(this);\r\n\t\tgetJTextField().addKeyListener(this);\r\n\t\tgetJTextField().addMouseListener(this);\r\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}" ]
[ "0.6933359", "0.680908", "0.6761201", "0.67117995", "0.6482405", "0.6474581", "0.6381604", "0.6352681", "0.6333493", "0.63255036", "0.62745655", "0.6222113", "0.6209501", "0.6209501", "0.6209501", "0.6209501", "0.6209501", "0.6181156", "0.6158695", "0.6141516", "0.6141516", "0.614046", "0.61146986", "0.610936", "0.610936", "0.610936", "0.610936", "0.6090799", "0.60902417", "0.60902417", "0.60902417", "0.60902417", "0.6086342", "0.6086342", "0.6073126", "0.6073126", "0.6073126", "0.60661703", "0.60661703", "0.60661703", "0.60657114", "0.6060935", "0.6060935", "0.6060935", "0.6060935", "0.6060935", "0.6060935", "0.6060935", "0.6046847", "0.6039368", "0.6039368", "0.60225755", "0.60197854", "0.60197854", "0.60171396", "0.6005344", "0.5999798", "0.59944487", "0.59944487", "0.5990547", "0.5979502", "0.5960884", "0.5960884", "0.5960884", "0.5960884", "0.5960884", "0.5960884", "0.5960884", "0.59574246", "0.59513634", "0.594507", "0.5941415", "0.5924427", "0.59236807", "0.5920112", "0.58873326", "0.5868239", "0.5867959", "0.5867959", "0.5867959", "0.5857974", "0.5850957", "0.5817313", "0.5811997", "0.5805621", "0.5787219", "0.57738966", "0.57618403", "0.5751021", "0.57433015", "0.56912404", "0.56776375", "0.56646544", "0.56588674", "0.5651465", "0.5645143", "0.5637496", "0.56363493", "0.5635255", "0.5621345" ]
0.72730964
0
Updates the instruction screen when the view is being focused && Updates elements' value in backend and create console log for the changes made after losing focus
@Override public void onFocusChange(View view, boolean b) { //In Focus if (b){ guiUpdater.updateInstructions(instruction); } //Lose focus else { //for predicate elements in coding playground if(uiType.equalsIgnoreCase("Predicate")) { if(mainInterpreter.updatePredicate(uiType, (TextView)view)){ guiUpdater.createConsoleLog(consoleText + " " + ((TextView) view).getText().toString()); } } //for query predicate elements in console command line else if(uiType.equalsIgnoreCase("Query")){ if(mainInterpreter.updateQuery(uiType, (TextView)view)){ guiUpdater.createConsoleLog(consoleText + " " + ((TextView) view).getText().toString()); } } //for mathematical rule elements in coding playground else if(uiType.equalsIgnoreCase("MathematicalRule")){ if(mainInterpreter.updateMathComp(uiType, (TextView) view)){ guiUpdater.createConsoleLog(consoleText + " " + ((TextView) view).getText().toString()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotalItems, llTotalItems, mActivity);\n focusChange(etDescription, llDescription, mActivity);\n }", "public void focus() {}", "public void focusReceived(ImageWindow focusedWindow) {\n if (currentWindow_ != focusedWindow) {\n ImagePlus imgp = focusedWindow.getImagePlus();\n cache_ = getCache(imgp);\n \n if (cache_ != null) {\n summaryCommentsTextArea.setText(cache_.getComment());\n Map<String,String> md = cache_.getSummaryMetadata();\n summaryMetadataModel_.setMetadata(md);\n } else {\n summaryCommentsTextArea.setText(null);\n }\n \n currentWindow_ = focusedWindow;\n \n \n update(imgp);\n }\n }", "public void updateScreen() {\n/* 25 */ this.ipEdit.updateCursorCounter();\n/* */ }", "public void triggerFocusLost() {\n //Clearing focus on the last registered view\n if (mLastRegisteredFocusChangeView != null) {\n mLastRegisteredFocusChangeView.clearFocus();\n mLastRegisteredFocusChangeView = null;\n }\n\n //Clearing focus on the last registered view in Product Attributes RecyclerView\n if (mProductAttributesAdapter != null) {\n mProductAttributesAdapter.triggerFocusLost();\n }\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\t\t\t\t\t\tSystem.out.print(((JTextField) arg0\r\n\t\t\t\t\t\t\t\t\t\t.getComponent()).getText().toString());\r\n\t\t\t\t\t\t\t\tDBfactory.getDBfactory().updateSampleValue(\r\n\t\t\t\t\t\t\t\t\t\t((JTextFieldU) arg0.getComponent())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getUUid(),\r\n\t\t\t\t\t\t\t\t\t\t((JTextField) arg0.getComponent())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\r\n\r\n\t\t\t\t\t\t\t}", "public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}", "@Override //the numbers should only be set when the text field is focused\n public void handle(ActionEvent event) {\n String extractfrombutton = \"7\";\n if (inidep1.isFocused()) {\n inidep1.setText(inidep1.getText()+ extractfrombutton);\n }\n else if (intrate1.isFocused()) {\n intrate1.setText(intrate1.getText() + extractfrombutton);\n }\n else if (time1.isFocused()) {\n time1.setText(time1.getText() + extractfrombutton);\n }\n else if (futval1.isFocused()) {\n futval1.setText(futval1.getText() + extractfrombutton);\n }\n else if (inidep2.isFocused()) {\n inidep2.setText(inidep2.getText() + extractfrombutton);\n }\n else if (intrate2.isFocused()) {\n intrate2.setText(intrate2.getText() + extractfrombutton);\n }\n else if (time2.isFocused()) {\n time2.setText(time2.getText() + extractfrombutton);\n }\n else if (moncon.isFocused()) {\n moncon.setText(moncon.getText() + extractfrombutton);\n }\n else if (futval2.isFocused()) {\n futval2.setText(futval2.getText() + extractfrombutton);\n }\n else if (loanamt.isFocused()) {\n loanamt.setText(loanamt.getText() + extractfrombutton);\n }\n else if (intrate3.isFocused()) {\n intrate3.setText(intrate3.getText() + extractfrombutton);\n }\n else if (time3.isFocused()) {\n time3.setText(time3.getText() + extractfrombutton);\n }\n else if (monpay.isFocused()) {\n monpay.setText(monpay.getText() + extractfrombutton);\n }\n else if (noofpay.isFocused()) {\n noofpay.setText(noofpay.getText() + extractfrombutton);\n }\n else if (assetprice.isFocused()) {\n assetprice.setText(assetprice.getText() + extractfrombutton);\n }\n else if (loanterm.isFocused()) {\n loanterm.setText(loanterm.getText() + extractfrombutton);\n }\n else if (intrate4.isFocused()) {\n intrate4.setText(intrate4.getText() + extractfrombutton);\n }\n else if (monpay2.isFocused()) {\n monpay2.setText(monpay2.getText() + extractfrombutton);\n }\n }", "public void onResume() {\n super.onResume();\n if (this.f14954b != null && this.f14954b.mo6024f()) {\n this.f14954b.mo6021b(false);\n this.f14957e.setFocusPos(this.f14954b.mo10842i());\n }\n }", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}", "@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}", "protected void updateUi() {\n final boolean canInput = mSaveAndFinishWorker == null;\n byte[] password = LockPatternUtils.charSequenceToByteArray(mPasswordEntry.getText());\n final int length = password.length;\n if (mUiStage == Stage.Introduction) {\n mPasswordRestrictionView.setVisibility(View.VISIBLE);\n final int errorCode = validatePassword(password);\n String[] messages = convertErrorCodeToMessages(errorCode);\n // Update the fulfillment of requirements.\n mPasswordRequirementAdapter.setRequirements(messages);\n // Enable/Disable the next button accordingly.\n setNextEnabled(errorCode == NO_ERROR);\n } else {\n // Hide password requirement view when we are just asking user to confirm the pw.\n mPasswordRestrictionView.setVisibility(View.GONE);\n setHeaderText(getString(mUiStage.getHint(mIsAlphaMode, getStageType())));\n setNextEnabled(canInput && length >= mPasswordMinLength);\n mSkipOrClearButton.setVisibility(toVisibility(canInput && length > 0));\n }\n int message = mUiStage.getMessage(mIsAlphaMode, getStageType());\n if (message != 0) {\n mMessage.setVisibility(View.VISIBLE);\n mMessage.setText(message);\n } else {\n mMessage.setVisibility(View.INVISIBLE);\n }\n\n setNextText(mUiStage.buttonText);\n mPasswordEntryInputDisabler.setInputEnabled(canInput);\n Arrays.fill(password, (byte) 0);\n }", "public void focusGained(FocusEvent e){\r\n oldSpCode = txtSponsorCode.getText().toString().trim();\r\n }", "@FXML\n public void onEnter() {\n String userInput = inputField.getText();\n String response = duke.getResponse(userInput);\n lastCommandLabel.setText(response);\n ExpenseList expenseList = duke.expenseList;\n updateExpenseListView();\n inputField.clear();\n updateTotalSpentLabel();\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_createCurrentAccPIN.getText().contains(\"xxx\")){\n jtxt_createCurrentAccPIN.setText(\"\");\n }\n }", "private void attachInputListeners() {\n inputTextField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (userInputHistoryPointer == userInputHistory.size()) {\n currentInput = newValue;\n }\n });\n\n inputTextField.addEventHandler(KeyEvent.KEY_PRESSED, keyEvent -> {\n switch (keyEvent.getCode()) {\n case ENTER:\n keyEvent.consume();\n handleUserInput();\n break;\n case UP:\n keyEvent.consume();\n if (userInputHistoryPointer >= 1) {\n userInputHistoryPointer -= 1;\n setText(userInputHistory.get(userInputHistoryPointer));\n }\n break;\n case DOWN:\n keyEvent.consume();\n if (userInputHistoryPointer < userInputHistory.size() - 1) {\n userInputHistoryPointer += 1;\n setText(userInputHistory.get(userInputHistoryPointer));\n } else if (userInputHistoryPointer == userInputHistory.size() - 1) {\n userInputHistoryPointer += 1;\n setText(currentInput);\n }\n break;\n default:\n break;\n }\n });\n }", "private void userViewStep() {\n textUser.requestFocus();\n textUser.postDelayed(\n new Runnable() {\n public void run() {\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.showSoftInput(textUser, 0);\n }\n }, 200);\n EventBus.getDefault().postSticky(new EventOnboardingChanges(EventOnboardingChanges.ChangeType.REGISTER_CHANGE_TITLE, getResources().getString(R.string.tact_username_title)));\n }", "public void Focus() {\n }", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }", "public void updateScreen()\n {\n field_50064_a.updateCursorCounter();\n }", "@Override\n public void focusLost(FocusEvent e) {\n String newValue = recordForm.getValueAt(currentColumn);\n recordNotifier.changeRecord(currentRow, currentColumn, newValue);\n }", "private void updateKeyboard() {\n\n int keysLimit;\n if(totalScreens == keyboardScreenNo) {\n keysLimit = partial;\n for (int k = keysLimit; k < (KEYS.length - 2); k++) {\n TextView key = findViewById(KEYS[k]);\n key.setVisibility(View.INVISIBLE);\n }\n } else {\n keysLimit = KEYS.length - 2;\n }\n\n for (int k = 0; k < keysLimit; k++) {\n TextView key = findViewById(KEYS[k]);\n int keyIndex = (33 * (keyboardScreenNo - 1)) + k;\n key.setText(keyList.get(keyIndex).baseKey); // KP\n key.setVisibility(View.VISIBLE);\n // Added on May 15th, 2021, so that second and following screens use their own color coding\n String tileColorStr = COLORS[Integer.parseInt(keyList.get(keyIndex).keyColor)];\n int tileColor = Color.parseColor(tileColorStr);\n key.setBackgroundColor(tileColor);\n }\n\n }", "private synchronized void update() {\r\n\t\tIAdaptable adaptable = DebugUITools.getDebugContext();\r\n\t\tfTarget = null;\r\n\t\tfGDBTarget = null;\r\n\t\tif (adaptable != null) {\r\n\t\t\tIDebugElement element = (IDebugElement) adaptable.getAdapter(IDebugElement.class);\r\n\t\t\tif (element != null) {\r\n\t\t\t\tif (element.getModelIdentifier().equals(MDTDebugCorePlugin.ID_MDT_DEBUG_MODEL)) {\r\n\t\t\t\t\tif (element.getDebugTarget() instanceof MDTDebugTarget)\r\n\t\t\t\t\t\tfTarget = (MDTDebugTarget) element.getDebugTarget();\r\n\t\t\t\t\telse if (element.getDebugTarget() instanceof GDBDebugTarget)\r\n\t\t\t\t\t\tfGDBTarget = (GDBDebugTarget) element.getDebugTarget();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (adaptable instanceof GDBStackFrame) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGDBStackFrame gdbStackFrame = (GDBStackFrame)adaptable;\r\n\t\t\t\t\tGDBThread gdbThread = (GDBThread)gdbStackFrame.getThread();\r\n\t\t\t\t\tgdbThread.setCurrentGDBStackFrame(gdbStackFrame);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tMDTDebugCorePlugin.log(null, e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (fTarget != null) {\r\n\t\t\tObject input = null;\r\n\t\t\tif (fTarget.isSuspended()) {\r\n\t\t\t input = fTarget;\r\n\t\t\t}\r\n\t\t\tgetViewer().setInput(input);\r\n\t\t\tfPushAction.setDebugTarget(fTarget);\r\n\t\t\tgetViewer().refresh();\r\n\t\t} else if (fGDBTarget != null) {\r\n\t\t\tObject input = null;\r\n\t\t\tif (fGDBTarget.isSuspended()) {\r\n\t\t\t input = fGDBTarget;\r\n\t\t\t}\r\n\t\t\tgetViewer().setInput(input);\r\n\t\t\tfPushAction.setGDBDebugTarget(fGDBTarget);\r\n\t\t\tgetViewer().refresh();\r\n\t\t}\r\n }", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\n public void update() {\n jTextField1.setText(mCalculator.getDisplay());\n }", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\n public void setFocus() {\n }", "@Override\n public void onAnimationUpdate(ValueAnimator animation) {\n updateFocusLayoutparams();\n }", "void addFocus();", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onResume() {\n view.get().onDataUpdated(state);\n view.get().activateButton();\n\n }", "@Override\n\tpublic void setFocus() {\n\t}", "public void endFocus() {\n\t\tlog.fine(\"Ending focus\");\n\t\tthis.placeTime = Calendar.getInstance().getTimeInMillis();\n\t\tthis.focusTime = 0;\n\t\tthis.focused = false;\n\t\tthis.userId = -1;\n\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jpw_createCurrentAccPw.getPassword().equals(\"xxx\")){\n jpw_createCurrentAccPw.setText(\"\");\n }\n }", "void focus();", "void focus();", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "void setFocus();", "public void setFocus();", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n super.onWindowFocusChanged(hasFocus);\n// if (hasFocus) {\n// refreshContent();\n// }\n }", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n super.onWindowFocusChanged(hasFocus);\n// if (hasFocus) {\n// refreshContent();\n// }\n }", "public void updateScreen(){}", "protected void onFocusGained()\n {\n ; // do nothing. \n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_balance.getText().contains(\"000\")){\n jtxt_balance.setText(\"\");\n }\n }", "@Override\n\t\tpublic void focusGained(FocusEvent e) {\t\tSystem.out.println(\"Focus Gained\");\n\t\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jTextField_Create_Savings_Acc_accnum.getText().contains(\"xxx\")){\n jTextField_Create_Savings_Acc_accnum.setText(\"\");\n }\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "private void step3() {\n\t\tthis.demonstrationStep++;\n\t\tthis.editableFields = (this.getView().getUserInput().length - 2);\n\t\tthis.getView().getForwardingViewContainer().remove(this.getView().getProceed());\n\t\tthis.getView().setProceed(null);\n\t\tthis.getView().getUserInput()[1].setBorder(null);\n\t\tthis.getView().getUserOutput()[1].setBorder(null);\n\t\tfor (int i = 2; i < this.getView().getUserInput().length; i++) {\n\t\t\tthis.getView().getUserOutput()[i].setEditable(true);\n\t\t}\n\t\tthis.getView()\n\t\t\t\t.getExplanations()\n\t\t\t\t.setText(\n\t\t\t\t\t\tthis.wrapHtml(CryptoDemonstrationController.i18n\n\t\t\t\t\t\t\t\t.tr(\"Oh mighty Caesar. No one will ever be able to destroy you! Because of that fact lets end\"\n\t\t\t\t\t\t\t\t\t\t+ \" this childish games and finish the rest of the fields fast. Then we can send the courier again\"\n\t\t\t\t\t\t\t\t\t\t+ \" but this time your enemies will have no idea who wrote it and you will conquer the world.\")));\n\t\tthis.getView().getUserOutput()[2].requestFocus();\n\t\tthis.getView().validate();\n\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\tDisplayFuelData(AverageFuelRate, LatestFuelConsumed);\n\t\t\n\t\tif(bCursurIndex == false && ParentActivity.ScreenIndex == Home.SCREEN_STATE_MENU_MONITORING_FUELHISTORY_GENERALRECORD)\n\t\t\tCursurDisplay(CursurIndex);\n\t}", "@Override\n public void focusGained(FocusEvent e) {\n }", "public void setFocus() {\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_night.isFocused()) {\n et_night.setText(null);\n et_night.requestFocus();\n\n }\n\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_eve.isFocused()) {\n et_eve.setText(null);\n et_eve.requestFocus();\n\n }\n\n }", "public void setFocus() {\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\tFineModulationDisplay(FineModulation);\n\t\tAutoGreaseDisplay(AutoGrease);\n\t\tQuickcouplerDisplay(Quickcoupler);\n\t\tRideControlDisplay(RideControl);\n\t\tBeaconLampDisplay(BeaconLamp);\n\t\tMirrorHeatDisplay(MirrorHeat);\n//\t\tFNKeyDisplay(ParentActivity.LockEntertainment);\n\t}", "@Override\n\tpublic void onFocusChange(View v, boolean hasFocus) {\n\n\n\t\ttxtVw_schemeApld.setText(\"No Scheme Applicable\");\n\t\ttxtVw_schemeApld.setTag(\"0\");\n\n\t\tEditText et_ValueOnFocuslostnew = null;\n\t\tString ProductIdOnClickedControl = v.getTag().toString().split(\"_\")[1];\n\t\tif (!hasFocus) {\n\t\t\tisbtnExceptionVisible = 0;\n\n\t\t\tView viewRow = (View) v.getParent();\n\n\t\t\t//hideSoftKeyboard(v);\n\t\t\tif (v instanceof EditText) {\n\n\n\t\t\t\t//ProductIdOnClickedEdit\n\t\t\t\tEditText et_ValueOnFocuslost = (EditText) v;\n\t\t\t\t//et_ValueOnFocuslost.setCursorVisible(false);\n\t\t\t\tet_ValueOnFocuslostnew = et_ValueOnFocuslost;\n\t\t\t\tProductIdOnClickedEdit = et_ValueOnFocuslost.getTag().toString().split(Pattern.quote(\"_\"))[1];\n\t\t\t\tCtaegoryIddOfClickedView = hmapCtgryPrdctDetail.get(ProductIdOnClickedEdit);\n\t\t\t\tcondtnOddEven = hmapProductViewTag.get(CtaegoryIddOfClickedView + \"_\" + ProductIdOnClickedEdit);\n\t\t\t\t// View viewOldBackgound;\n\t\t\t\tif (condtnOddEven.equals(\"even\")) {\n\t\t\t\t\t// viewOldBackgound=ll_prdct_detal.findViewWithTag(CtaegoryIddOfClickedView+\"_\"+ProductIdOnClickedEdit+\"_\"+\"even\");\n\t\t\t\t\t// viewOldBackgound.setBackgroundResource(R.drawable.card_background_even);\n\t\t\t\t} else {\n\t\t\t\t\t//viewOldBackgound=ll_prdct_detal.findViewWithTag(CtaegoryIddOfClickedView+\"_\"+ProductIdOnClickedEdit+\"_\"+\"odd\");\n\n\t\t\t\t\t//viewOldBackgound.setBackgroundResource(R.drawable.card_background_odd);\n\t\t\t\t}\n\n\t\t\t\tif (v.getId() == R.id.et_Stock) {\n\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.Stock));\n\n\t\t\t\t}//txtVwRate\n\t\t\t\tif (v.getId() == R.id.txtVwRate) {\n\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.Rate));\n\t\t\t\t\tet_ValueOnFocuslost.setError(null);\n\t\t\t\t\tif (hmapProductflgPriceAva.get(ProductIdOnClickedEdit).equals(\"1\")) {\n\t\t\t\t\t\tEditText ediTextOrder = (EditText) ll_prdct_detal.findViewWithTag(\"etOrderQty\" + \"_\" + ProductIdOnClickedEdit);\n\t\t\t\t\t\tif (TextUtils.isEmpty(et_ValueOnFocuslost.getText().toString().trim())) {\n\t\t\t\t\t\t\tif (ediTextOrder != null) {\n\n\t\t\t\t\t\t\t\tediTextOrder.setText(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (v.getId() == R.id.et_SampleQTY) {\n\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.SmplQty));\n\n\t\t\t\t}\n\t\t\t\tif (v.getId() == R.id.et_OrderQty) {\n\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.OQty));\n\t\t\t\t}\n\t\t\t\tif (!viewCurrentBoxValue.equals(et_ValueOnFocuslost.getText().toString().trim())) {\n\t\t\t\t\tif (v.getId() == R.id.et_Stock) {\n\t\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.Stock));\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (v.getId() == R.id.txtVwRate) {\n\t\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.Rate));\n\n\t\t\t\t\t\tEditText temped = (EditText) ll_prdct_detal.findViewWithTag(\"etOrderQty_\" + et_ValueOnFocuslost.getTag().toString().split(Pattern.quote(\"_\"))[1]);\n\t\t\t\t\t\tEditText temprt = (EditText) ll_prdct_detal.findViewWithTag(\"tvRate_\" + et_ValueOnFocuslost.getTag().toString().split(Pattern.quote(\"_\"))[1]);\n\n\n\t\t\t\t\t}\n\t\t\t\t\tif (v.getId() == R.id.et_SampleQTY) {\n\t\t\t\t\t\tet_ValueOnFocuslost.setHint(ProductOrderEntry.this.getResources().getString(R.string.SmplQty));\n\t\t\t\t\t\t/*hmapPrdctSmpl.remove(ProductIdOnClickedControl);\n\t\t\t\t\t\thmapPrdctSmpl.put(ProductIdOnClickedControl, et_ValueOnFocuslost.getText().toString().trim());*/\n\t\t\t\t\t}\n\t\t\t\t\tif (v.getId() == R.id.et_OrderQty) {\n\n\t\t\t\t\t\tif (hmapPrdctOdrQty != null && hmapPrdctOdrQty.containsKey(ProductIdOnClickedEdit)) {\n\t\t\t\t\t\t\tint originalNetQntty = Integer.parseInt(hmapPrdctOdrQty.get(ProductIdOnClickedEdit));\n\t\t\t\t\t\t\tint totalStockLeft = hmapDistPrdctStockCount.get(ProductIdOnClickedEdit);\n\t\t\t\t\t\t\tif (originalNetQntty > totalStockLeft) {\n\n\t\t\t\t\t\t\t\talertForOrderExceedStock(ProductIdOnClickedEdit, et_ValueOnFocuslost, et_ValueOnFocuslost, -1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tif (Integer.parseInt(hmapPrdctOdrQty.get(ProductIdOnClickedEdit)) > 0) {\n\t\t\t\t\t\t\tif ((!hmapProductStandardRate.get(ProductIdOnClickedEdit).equals(\"\") && !hmapProductStandardRate.get(ProductIdOnClickedEdit).equals(\"-99\")) && !hmapProductStandardRate.get(ProductIdOnClickedEdit).equals(\"-99.00\") && !hmapProductStandardRate.get(ProductIdOnClickedEdit).equals(\"-99.0\")) {\n\t\t\t\t\t\t\t\tif (PriceApplyDiscountLevelType == 0) {\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tEditText temprt = (EditText) ll_prdct_detal.findViewWithTag(\"tvRate_\" + et_ValueOnFocuslostnew.getTag().toString().split(Pattern.quote(\"_\"))[1]);\n\t\t\t\t\t\t\t\ttemprt.setSelected(true);\n\t\t\t\t\t\t\t\ttemprt.requestFocus();\n\t\t\t\t\t\t\t\ttemprt.setCursorVisible(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\ttxtVw_schemeApld.setText(\"No Scheme Applicable\");\n\t\t\ttxtVw_schemeApld.setTag(\"0\");\n\t\t\tif (v instanceof EditText) {\n\t\t\t\t//showSoftKeyboard(v);\n\t\t\t\tEditText edtBox = (EditText) v;\n\t\t\t\tif (Build.VERSION.SDK_INT >= 11) {\n\t\t\t\t\tedtBox.setRawInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t\tedtBox.setTextIsSelectable(true);\n\t\t\t\t} else {\n\t\t\t\t\tedtBox.setRawInputType(InputType.TYPE_NULL);\n\t\t\t\t\tedtBox.setFocusable(true);\n\t\t\t\t}\n\t\t\t\t//edtBox.setInputType(InputType.TYPE_NULL);\n\n\t\t\t\tmCustomKeyboardNumWithoutDecimal.hideCustomKeyboardNum(v);\n\t\t\t\tmCustomKeyboardNum.hideCustomKeyboardNum(v);\n\t\t\t\t//ProductIdOnClickedEdit\n\t\t\t\tProductIdOnClickedEdit = edtBox.getTag().toString().split(Pattern.quote(\"_\"))[1];\n\t\t\t\ted_LastEditextFocusd = edtBox;\n\t\t\t\tCtaegoryIddOfClickedView = hmapCtgryPrdctDetail.get(ProductIdOnClickedEdit);\n\t\t\t\tcondtnOddEven = hmapProductViewTag.get(CtaegoryIddOfClickedView + \"_\" + ProductIdOnClickedEdit);\n\t\t\t\t// View viewParent;\n\t\t\t\tif (condtnOddEven.equals(\"even\")) {\n\t\t\t\t\t// viewParent=ll_prdct_detal.findViewWithTag(CtaegoryIddOfClickedView+\"_\"+ProductIdOnClickedEdit+\"_\"+\"even\");\n\t\t\t\t} else {\n\t\t\t\t\t// viewParent=ll_prdct_detal.findViewWithTag(CtaegoryIddOfClickedView+\"_\"+ProductIdOnClickedEdit+\"_\"+\"odd\");\n\t\t\t\t}\n\t\t\t\t// viewParent.setBackgroundResource(R.drawable.edit_text_diable_bg_clicked);\n\t\t\t\tif (v.getId() == R.id.et_OrderQty) {\n\n\t\t\t\t\tmCustomKeyboardNumWithoutDecimal.registerEditText(edtBox);\n\t\t\t\t\tmCustomKeyboardNumWithoutDecimal.showCustomKeyboard(v);\n\n\t\t\t\t\tedtBox.setHint(\"\");\n\t\t\t\t\tviewCurrentBoxValue = edtBox.getText().toString().trim();\n\t\t\t\t\tif (((ImageView) ll_prdct_detal.findViewWithTag(\"btnException_\" + (ProductIdOnClickedEdit))).getVisibility() == View.VISIBLE) {\n\t\t\t\t\t\tisbtnExceptionVisible = 1;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif (v.getId() == R.id.et_SampleQTY) {\n\t\t\t\t\tmCustomKeyboardNumWithoutDecimal.registerEditText(edtBox);\n\t\t\t\t\tmCustomKeyboardNumWithoutDecimal.showCustomKeyboard(v);\n\n\t\t\t\t\tedtBox.setHint(\"\");\n\n\n\t\t\t\t}\n\t\t\t\tif (v.getId() == R.id.et_Stock) {\n\t\t\t\t\tmCustomKeyboardNumWithoutDecimal.registerEditText(edtBox);\n\t\t\t\t\tmCustomKeyboardNumWithoutDecimal.showCustomKeyboard(v);\n\n\t\t\t\t\tedtBox.setHint(\"\");\n\t\t\t\t}\n\t\t\t\tif (v.getId() == R.id.txtVwRate) {\n\t\t\t\t\tmCustomKeyboardNum.registerEditText(edtBox);\n\t\t\t\t\tmCustomKeyboardNum.showCustomKeyboard(v);\n\n\t\t\t\t\tedtBox.setHint(\"\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (hmapProductRelatedSchemesList.size() > 0) {\n\t\t\t\tif (hmapProductRelatedSchemesList.containsKey(ProductIdOnClickedControl)) {\n\t\t\t\t\tfnUpdateSchemeNameOnScehmeControl(ProductIdOnClickedControl);\n\t\t\t\t} else {\n\t\t\t\t\t//SchemeNameOnScehmeControl=\"No Scheme Applicable\";\n\t\t\t\t\ttxtVw_schemeApld.setText(\"No Scheme Applicable\");\n\t\t\t\t\ttxtVw_schemeApld.setTag(\"0\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//SchemeNameOnScehmeControl=\"No Scheme Applicable\";\n\t\t\t\ttxtVw_schemeApld.setText(\"No Scheme Applicable\");\n\t\t\t\ttxtVw_schemeApld.setTag(\"0\");\n\t\t\t}\n\n\n\t\t}\n\n\t\t/*if(v.getId()==R.id.et_OrderQty)\n\t\t{\n\t\t\t*//*if(flgnwstausforfocus==false) {\n\t\t\t\tEditText temped = (EditText) ll_prdct_detal.findViewWithTag(\"etOrderQty_\" + ed_LastEditextFocusd.getTag().toString().split(Pattern.quote(\"_\"))[1]);\n\t\t\t\tif (temped.getText().length() != 0) {\n\n\t\t\t\t\tif ((!hmapProductStandardRate.get(ed_LastEditextFocusd.getTag().toString().split(Pattern.quote(\"_\"))[1]).equals(\"\") && !hmapProductStandardRate.get(ed_LastEditextFocusd.getTag().toString().split(Pattern.quote(\"_\"))[1]).equals(\"-99\")) && !hmapProductStandardRate.get(ed_LastEditextFocusd.getTag().toString().split(Pattern.quote(\"_\"))[1]).equals(\"-99.00\") && !hmapProductStandardRate.get(ed_LastEditextFocusd.getTag().toString().split(Pattern.quote(\"_\"))[1]).equals(\"-99.0\")) {\n\t\t\t\t\t\torderBookingTotalCalc();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tflgnwstausforfocus = true;\n\t\t\t\t\t*//**//*ed_LastEditextFocusd.setSelected(true);\n\t\t\t\t\ted_LastEditextFocusd.requestFocus();*//**//*\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*//*\n\t\t}\n*/\n\n\n\t\torderBookingTotalCalc();\n\n\n\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jTextField_Create_Savings_Acc_pass.getPassword().equals(\"xxx\")){\n jTextField_Create_Savings_Acc_pass.setText(\"\");\n }\n }", "public FocusListener(String console, String instructionText, String type, GUIUpdater updater, MainInterpreter interpreter){\r\n consoleText = console;\r\n instruction = instructionText;\r\n uiType = type;\r\n guiUpdater = updater;\r\n mainInterpreter = interpreter;\r\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void focusLost(FocusEvent e) {\n }", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jTextField_Create_Savings_Acc_bal.getText().contains(\"000\")){\n jTextField_Create_Savings_Acc_bal.setText(\"\");\n }\n }", "@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t}", "public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "private void updateDisplay() \n\t{\n\t\t// updates the date in the TextView\n if(bir.hasFocus())\n {\n\t\tbir.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }else\n {\n\t\taniv.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }\n\n\n\t}", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "public void doChanges3() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel5\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(72, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(59, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(73, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(60, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 59, 20)};\n Point hotspot = new Point(175, 125);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void refreshScreen() {\n app.getMainMenu().getTextField().clear();\n for (int key = 0; key < 96; key++) {\n app.getWorkSpace().getGridCell(key).unhighlightGridCell();\n app.getWorkSpace().getGridCell(key).updateState(app);\n }\n Storage.getInstance().writeObject(\"workspace\", app.getWorkSpace().getWorkSpaceMap());\n app.show();\n }", "public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void enterView() {\n\t\t// Before clearing it; have the browser remember it.\n\t\tif (isVisible()) {\n\t\t\tGenClient.showDebug(\"For view: \" + getClass().toString() + \" was already visible; no change was made.\");\n\t\t\treturn;\n\t\t}\n\t\tString state = getState();\n\t\tif (state == null) {\n\t\t\tGenClient.showError(\"Failed to get state for view\" + getClass().toString() + \"; making no change\");\n\t\t\treturn;\n\t\t}\n//\t\tGenClient.showDebug(\"Added history item for state: \" + state);\n\t\tsetVisible(true);\n\t\tboolean issueEvent = false;\n\t\tHistory.newItem(state, issueEvent);\n\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}" ]
[ "0.61975646", "0.60416216", "0.60338074", "0.5970912", "0.5942357", "0.59296805", "0.59014916", "0.58918715", "0.58770317", "0.5856674", "0.58372873", "0.5822962", "0.5819183", "0.58032745", "0.5792652", "0.5787523", "0.5757978", "0.5755204", "0.57453156", "0.5735373", "0.5730003", "0.5711151", "0.57100445", "0.5706669", "0.5700278", "0.5700278", "0.5700278", "0.5700278", "0.5700278", "0.56978595", "0.56825227", "0.56805336", "0.56805336", "0.56805336", "0.56805336", "0.5674484", "0.5656152", "0.56491476", "0.563792", "0.56309205", "0.56309205", "0.56309205", "0.56267524", "0.5610933", "0.56039625", "0.55962116", "0.5592417", "0.5592417", "0.55822617", "0.55822617", "0.55822617", "0.55822617", "0.55822617", "0.55822617", "0.55822617", "0.55756986", "0.55681145", "0.5558582", "0.5558582", "0.5553611", "0.55518883", "0.55518585", "0.5545991", "0.55407894", "0.55311084", "0.55214727", "0.55187476", "0.5511128", "0.5502153", "0.55000144", "0.548603", "0.5484936", "0.54839784", "0.5482593", "0.5479274", "0.54745805", "0.5462144", "0.5462144", "0.5462144", "0.5460325", "0.5456757", "0.54549414", "0.545304", "0.5449671", "0.54478526", "0.5438981", "0.5434682", "0.5434682", "0.54332596", "0.5431708", "0.5431708", "0.5431708", "0.5431708", "0.5411706", "0.5400986", "0.53990006", "0.53963214", "0.5380778", "0.53729403", "0.53729403" ]
0.6791213
0
Initializes a TarHeader with the supplied buffer. Then it extracts header information and populates the header attributes.
public TarHeader(byte buff[]) throws IOException { this.header = buff; initlializeHeaderFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TarEntry CreateEntry(byte[] headerBuffer);", "public TarArchiveEntry(byte[] headerBuf, ArchiveEntryEncoding encoding) throws IOException {\n this();\n parseTarHeader(headerBuf, encoding);\n }", "public Header parseHeader(CharArrayBuffer buffer) throws ParseException {\n/* 445 */ return (Header)new BufferedHeader(buffer);\n/* */ }", "public void fillHeader(ByteBuffer buffer) {\n buffer.put((byte) (this.version << 4 | this.internetHeaderLen));\n buffer.put((byte) this.DSCP);\n buffer.putShort((short) this.headerLen);\n\n buffer.putInt(this.whyAreFlags3Bits);\n\n buffer.put((byte) this.timeToLive);\n buffer.put((byte) this.protocol);\n buffer.putShort((short) this.checksum);\n\n buffer.put(this.source.getAddress());\n buffer.put(this.target.getAddress());\n }", "public TarHeader(File file, String ppath) {\r\n this.header = new byte[TarLibConstants.TAR_HEADER_SIZE];\r\n initlializeHeaderFields(file, ppath);\r\n writeToBuffer();\r\n }", "public PacketHeader(byte buffer[])\n\t\t{\n\t\t\n\t\t}", "public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}", "public void parseHeader() {\n\t\tthis.release = (Integer) this.headerData.get(0);\n\t\tthis.endian = (ByteOrder) this.headerData.get(1);\n\t\tthis.K = (Short) this.headerData.get(2);\n\t\tthis.datasetLabel = (String) this.headerData.get(4);\n\t\tthis.datasetTimeStamp = (String) this.headerData.get(5);\n\t\tthis.mapOffset = (Integer) this.headerData.get(6);\n\t}", "public IPAuthenticationHeader(final ByteBuffer buffer) throws ParseException {\n super(consume(buffer, ((HeaderLength.get(buffer) + 2) * 4)), IP_PROTOCOL_NUMBER);\n\n if (logger.isLoggable(Level.FINER)) {\n logger.finer(this.log.entry(\"IPAuthenticationHeader.IPAuthenticationHeader\", buffer));\n logState(logger, Level.FINER);\n }\n }", "public static DataHeader readDataHeader(ArchiveFileBuffer buffer, CtrlInfoReader info) throws Exception\n {\n final File file = buffer.getFile();\n final long offset = buffer.offset();\n\n // first part of data file header:\n // 4 bytes directory_offset (skipped)\n // \" next_offset (offset of next entry in its file)\n // \" prev_offset (offset of previous entry in its file)\n // \" cur_offset (used by FileAllocator writing file)\n // \" num_samples (number of samples in the buffer)\n // \" ctrl_info_offset (offset in this file of control info header (units, limits, etc.))\n // \" buff_size (bytes allocated for this entry, including header)\n // \" buff_free (number of un-used, allocated bytes for this header)\n // 2 bytes DbrType (type of data stored in buffer)\n // 2 bytes DbrCount (count of values for each buffer element, i.e. 1 for scalar types, >1 for array types)\n // 4 bytes padding (used to align the period)\n // 8 bytes (double) period\n // 8 bytes (epicsTimeStamp) begin_time\n // \" next_file_time\n // \" end_time\n // char [40] prev_file\n // char [40] next_file\n // --> Total of 152 bytes in data header\n buffer.skip(4);\n final long nextOffset = buffer.getUnsignedInt();\n buffer.skip(4);\n buffer.skip(4);\n final long numSamples = buffer.getUnsignedInt();\n final long ctrlInfoOffset = buffer.getUnsignedInt();\n final long buff_size = buffer.getUnsignedInt();\n final long buff_free = buffer.getUnsignedInt();\n final short dbrTypeCode = buffer.getShort();\n final short dbrCount = buffer.getShort();\n buffer.skip(4);\n buffer.skip(8);\n final Instant beginTime = buffer.getEpicsTime();\n final Instant nextTime = buffer.getEpicsTime();\n final Instant endTime = buffer.getEpicsTime();\n\n buffer.skip(40);\n final byte nameBytes [] = new byte [40];\n buffer.get(nameBytes);\n\n if (!info.isOffset(ctrlInfoOffset))\n info = new CtrlInfoReader(ctrlInfoOffset);\n final DbrType dbrType = DbrType.forValue(dbrTypeCode);\n\n // compute amount of data in this data file entry: (bytes allocated) - (bytes free) - (bytes in header)\n final long buffDataSize = buff_size - buff_free - 152;\n System.out.println(buffDataSize);\n\n // Size of samples:\n // 12 bytes for status/severity/timestamp,\n // padding, value, padding\n final long dbr_size = 12 + dbrType.padding + dbrCount * dbrType.valueSize + dbrType.getValuePad(dbrCount);\n final long expected = dbr_size * numSamples;\n System.out.println(dbr_size);\n System.out.println(expected);\n\n if (expected != buffDataSize)\n throw new Exception(\"Expected \" + expected + \" byte buffer, got \" + buffDataSize);\n\n String nextFilename = nextOffset != 0 ? new String(nameBytes).split(\"\\0\", 2)[0] : \"*\";\n File nextFile = new File(buffer.getFile().getParentFile(), nextFilename);\n\n logger.log(Level.FINE, \"Datablock\\n\" +\n \"Buffer : '\" + file + \"' @ 0x\" + Long.toHexString(offset) + \"\\n\" +\n \"Time : \" + beginTime + \"\\n\" +\n \"... : \" + endTime);\n\n return new DataHeader(file, offset, nextFile, nextOffset, nextTime, info, dbrType, dbrCount, numSamples);\n }", "public void parseTarHeader(byte[] header, ArchiveEntryEncoding encoding)\n throws IOException {\n parseTarHeader(header, encoding, false);\n }", "protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }", "private static MessageHeader createDataHeader(byte[] bufferBytes, int length) {\n\n\t\tObject[] iov = new Object[1];\n\n\t\tif (length != BUFFER_SIZE) {\n\t\t\tbyte[] lastBuffer = new byte[length];\n\t\t\tSystem.arraycopy(bufferBytes, 0, lastBuffer, 0, length);\n\t\t\tbufferBytes = lastBuffer;\n\t\t}\n\t\tiov[0] = bufferBytes;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "private void initHeader(boolean newHeader) throws IOException {\n\n if (newHeader) writeHeader();\n /*\n if (rafShp.read() == -1) { \n //File is empty, write a new one (what else???)\n writeHeader();\n } \n */ \n readHeader();\n }", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "private void initMetadata() throws IOException {\n \n // start by reading the file header\n in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n metadata.put(\"Byte Order\", new Boolean(little));\n \n in.skipBytes(4);\n in.read(toRead);\n long version = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Version\", new Long(version));\n \n byte[] er = new byte[2];\n in.read(er);\n short count = DataTools.bytesToShort(er, little);\n metadata.put(\"Count\", new Short(count));\n \n in.skipBytes(2);\n \n in.read(toRead);\n long offset = DataTools.bytesToLong(toRead, little);\n \n // skip to first tag\n in.seek(offset);\n \n // read in each tag and its data\n \n for (int i=0; i<count; i++) {\n in.read(er);\n short tag = DataTools.bytesToShort(er, little);\n in.skipBytes(2);\n \n in.read(toRead);\n offset = DataTools.bytesToLong(toRead, little);\n \n in.read(toRead);\n long fmt = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Format\", new Long(fmt));\n \n in.read(toRead);\n long numBytes = DataTools.bytesToLong(toRead, little);\n metadata.put(\"NumBytes\", new Long(numBytes));\n \n if (tag == 67 || tag == 68) {\n byte[] b = new byte[1];\n in.read(b);\n boolean isOpenlab2;\n if (b[0] == '0') isOpenlab2 = false;\n else isOpenlab2 = true;\n metadata.put(\"isOpenlab2\", new Boolean(isOpenlab2));\n \n in.skipBytes(2);\n in.read(er);\n short layerId = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerID\", new Short(layerId));\n \n in.read(er);\n short layerType = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerType\", new Short(layerType));\n \n in.read(er);\n short bitDepth = DataTools.bytesToShort(er, little);\n metadata.put(\"BitDepth\", new Short(bitDepth));\n \n in.read(er);\n short opacity = DataTools.bytesToShort(er, little);\n metadata.put(\"Opacity\", new Short(opacity));\n \n // not sure how many bytes to skip here\n in.skipBytes(10);\n \n in.read(toRead);\n long type = DataTools.bytesToLong(toRead, little);\n metadata.put(\"ImageType\", new Long(type));\n \n // not sure how many bytes to skip\n in.skipBytes(10);\n \n in.read(toRead);\n long timestamp = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp\", new Long(timestamp));\n \n in.skipBytes(2);\n \n if (isOpenlab2 == true) {\n byte[] layerName = new byte[127];\n in.read(layerName);\n metadata.put(\"LayerName\", new String(layerName));\n \n in.read(toRead);\n long timestampMS = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp-MS\", new Long(timestampMS));\n \n in.skipBytes(1);\n byte[] notes = new byte[118];\n in.read(notes);\n metadata.put(\"Notes\", new String(notes));\n }\n else in.skipBytes(123);\n }\n else if (tag == 69) {\n in.read(toRead);\n long platform = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Platform\", new Long(platform));\n \n in.read(er);\n short units = DataTools.bytesToShort(er, little);\n metadata.put(\"Units\", new Short(units));\n \n in.read(er);\n short imageId = DataTools.bytesToShort(er, little);\n metadata.put(\"ID\", new Short(imageId));\n in.skipBytes(1);\n \n byte[] toRead2 = new byte[8];\n double xOrigin = DataTools.readDouble(in, little);\n metadata.put(\"XOrigin\", new Double(xOrigin));\n double yOrigin = DataTools.readDouble(in, little);\n metadata.put(\"YOrigin\", new Double(yOrigin));\n double xScale = DataTools.readDouble(in, little);\n metadata.put(\"XScale\", new Double(xScale));\n double yScale = DataTools.readDouble(in, little);\n metadata.put(\"YScale\", new Double(yScale));\n in.skipBytes(1);\n \n byte[] other = new byte[31];\n in.read(other);\n metadata.put(\"Other\", new String(other));\n }\n \n // Initialize OME metadata\n \n if (ome != null) {\n OMETools.setBigEndian(ome, !little);\n if (metadata.get(\"BitDepth\") != null) {\n int bitDepth = ((Integer) metadata.get(\"BitDepth\")).intValue();\n String type;\n \n if (bitDepth <= 8) type = \"int8\";\n else if (bitDepth <= 16) type = \"int16\";\n else type = \"int32\";\n \n OMETools.setPixelType(ome, type);\n }\n if (metadata.get(\"Timestamp\") != null) {\n OMETools.setCreationDate(ome, (String) metadata.get(\"Timestamp\"));\n }\n \n if (metadata.get(\"XOrigin\") != null) {\n Double xOrigin = (Double) metadata.get(\"XOrigin\");\n OMETools.setStageX(ome, xOrigin.floatValue());\n }\n \n if (metadata.get(\"YOrigin\") != null) {\n Double yOrigin = (Double) metadata.get(\"YOrigin\");\n OMETools.setStageY(ome, yOrigin.floatValue());\n }\n \n if (metadata.get(\"XScale\") != null) {\n Double xScale = (Double) metadata.get(\"XScale\");\n OMETools.setPixelSizeX(ome, xScale.floatValue());\n }\n \n if (metadata.get(\"YScale\") != null) {\n Double yScale = (Double) metadata.get(\"YScale\");\n OMETools.setPixelSizeY(ome, yScale.floatValue());\n }\n }\n in.seek(offset);\n }\n }", "public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }", "public FileHeader(RandomAccessFile rafShp_) throws IOException {\n\n rafShp = rafShp_; \n\n initHeader(false); \n }", "private void initialise() {\n addHeaderSetting(new HeaderSettingInteger(Setting.VERSION.toString(),0,4,0x6));\n addHeaderSetting(new HeaderSettingInteger(Setting.TRAFFIC_CLASS.toString(),4,8,0));\n addHeaderSetting(new HeaderSettingLong(Setting.FLOW_LABEL.toString(),12,20,0));\n addHeaderSetting(new HeaderSettingLong(Setting.PAYLOAD_LENGTH.toString(),32,16,20));\n addHeaderSetting(new HeaderSettingInteger(Setting.NEXT_HEADER.toString(),48,8,253));\n addHeaderSetting(new HeaderSettingInteger(Setting.HOP_LIMIT.toString(),56,8,255));\n addHeaderSetting(new HeaderSettingHexString(Setting.SOURCE_ADDRESS.toString(),64,128,\"\"));\n addHeaderSetting(new HeaderSettingHexString(Setting.DESTINATION_ADDRESS.toString(),192,128,\"\"));\n }", "private NetFlowHeader prepareHeader() throws IOException {\n NetFlowHeader internalHeader;\n int numBytesRead = 0;\n int lenRead = 0;\n WrappedByteBuf buf;\n byte[] headerArray;\n\n // Read header depending on stream version (different from flow version)\n if (streamVersion == 1) {\n // Version 1 has static header\n // TODO: verify header size for stream version 1\n lenRead = NetFlowHeader.S1_HEADER_SIZE - METADATA_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder);\n } else {\n // Version 3 with dynamic header size\n headerArray = new byte[HEADER_OFFSET_LENGTH];\n numBytesRead = in.read(headerArray, 0, HEADER_OFFSET_LENGTH);\n if (numBytesRead != HEADER_OFFSET_LENGTH) {\n throw new UnsupportedOperationException(\"Short read while loading header offset\");\n }\n\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n int headerSize = (int)buf.getUnsignedInt(0);\n if (headerSize <= 0) {\n throw new UnsupportedOperationException(\"Failed to load header of size \" + headerSize);\n }\n\n // Actual header length, determine how many bytes to read\n lenRead = headerSize - METADATA_LENGTH - HEADER_OFFSET_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder, headerSize);\n }\n\n // allocate buffer for length to read\n headerArray = new byte[lenRead];\n numBytesRead = in.read(headerArray, 0, lenRead);\n if (numBytesRead != lenRead) {\n throw new UnsupportedOperationException(\"Short read while loading header data\");\n }\n // build buffer\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n\n // resolve stream version (either 1 or 3)\n if (streamVersion == 1) {\n internalHeader.setFlowVersion((short)buf.getUnsignedShort(0));\n internalHeader.setStartCapture(buf.getUnsignedInt(2));\n internalHeader.setEndCapture(buf.getUnsignedInt(6));\n internalHeader.setHeaderFlags(buf.getUnsignedInt(10));\n internalHeader.setRotation(buf.getUnsignedInt(14));\n internalHeader.setNumFlows(buf.getUnsignedInt(18));\n internalHeader.setNumDropped(buf.getUnsignedInt(22));\n internalHeader.setNumMisordered(buf.getUnsignedInt(26));\n // Read hostname fixed bytes\n byte[] hostnameBytes = new byte[NetFlowHeader.S1_HEADER_HN_LEN];\n buf.getBytes(30, hostnameBytes, 0, hostnameBytes.length);\n internalHeader.setHostname(new String(hostnameBytes));\n // Read comments fixed bytes\n byte[] commentsBytes = new byte[NetFlowHeader.S1_HEADER_CMNT_LEN];\n buf.getBytes(30 + hostnameBytes.length, commentsBytes, 0, commentsBytes.length);\n internalHeader.setComments(new String(commentsBytes));\n\n // Dereference arrays\n hostnameBytes = null;\n commentsBytes = null;\n } else {\n // Resolve TLV (type-length value)\n // Set decode pointer to first tlv\n int dp = 0;\n int left = lenRead;\n // Smallest TLV is 2+2+0 (null TLV)\n // tlv_t - TLV type, tlv_l - TLV length, tlv_v - TLV value\n int tlv_t = 0;\n int tlv_l = 0;\n int tlv_v = 0;\n\n // Byte array for holding Strings\n byte[] pr;\n\n while (left >= 4) {\n // Parse type, store in host byte order\n tlv_t = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse len, store in host byte order\n tlv_l = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse val\n tlv_v = dp;\n\n // Point decode buffer at next tlv\n dp += tlv_l;\n left -= tlv_l;\n\n // TLV length check\n if (left < 0) {\n break;\n }\n\n switch(tlv_t) {\n // FT_TLV_VENDOR\n case 0x1:\n internalHeader.setVendor(buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_EX_VER\n case 0x2:\n internalHeader.setFlowVersion((short) buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_AGG_VER\n case 0x3:\n internalHeader.setAggVersion(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_AGG_METHOD\n case 0x4:\n internalHeader.setAggMethod(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_EXPORTER_IP\n case 0x5:\n internalHeader.setExporterIP(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_START\n case 0x6:\n internalHeader.setStartCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_END\n case 0x7:\n internalHeader.setEndCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_HEADER_FLAGS\n case 0x8:\n internalHeader.setHeaderFlags(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_ROT_SCHEDULE\n case 0x9:\n internalHeader.setRotation(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_COUNT\n case 0xA:\n internalHeader.setNumFlows(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_LOST\n case 0xB:\n internalHeader.setNumDropped(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_MISORDERED\n case 0xC:\n internalHeader.setNumMisordered(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_PKT_CORRUPT\n case 0xD:\n internalHeader.setNumCorrupt(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_SEQ_RESET\n case 0xE:\n internalHeader.setSeqReset(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_HOSTNAME\n case 0xF:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setHostname(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_COMMENTS\n case 0x10:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setComments(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_NAME\n case 0x11:\n // uint32_t, uint16_t, string:\n // - IP address of device\n // - ifIndex of interface\n // - interface name\n long ip = buf.getUnsignedInt(tlv_v);\n int ifIndex = buf.getUnsignedShort(tlv_v + 4);\n pr = new byte[tlv_l - 4 - 2];\n buf.getBytes(tlv_v + 4 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setInterfaceName(ip, ifIndex, new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_ALIAS\n case 0x12:\n // uint32_t, uint16_t, uint16_t, string:\n // - IP address of device\n // - ifIndex count\n // - ifIndex of interface (count times)\n // - alias name\n long aliasIP = buf.getUnsignedInt(tlv_v);\n int aliasIfIndexCnt = buf.getUnsignedShort(tlv_v + 4);\n int aliasIfIndex = buf.getUnsignedShort(tlv_v + 4 + 2);\n pr = new byte[tlv_l - 4 - 2 - 2];\n buf.getBytes(tlv_v + 4 + 2 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setInterfaceAlias(aliasIP, aliasIfIndexCnt, aliasIfIndex,\n new String(pr, 0, pr.length - 1));\n break;\n // Case 0x0\n default:\n break;\n }\n }\n buf = null;\n pr = null;\n }\n return internalHeader;\n }", "public Header(String t) {\n this.title=t;\n }", "private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArray[ndx][0] = attributes[ndx];\n dataArray[ndx][1] = headerFile.get(attributes[ndx]);\n if (attributes[ndx].toString().equals(\"Description\"))\n Description = headerFile.get(attributes[ndx]);\n }\n data = dataArray;\n }", "public void loadTagBuffer() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n }\r\n\r\n if (fLength < FileDicomBaseInner.BUFFER_SIZE) {\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n } else if (tagBuffer == null) {\r\n tagBuffer = new byte[FileDicomBaseInner.BUFFER_SIZE];\r\n } else if (tagBuffer.length < FileDicomBaseInner.BUFFER_SIZE) {\r\n tagBuffer = new byte[FileDicomBaseInner.BUFFER_SIZE];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "private HeaderUtil() {}", "public TagHeader_v2_3(byte[] data, InputStream in)\n throws IOException\n {\n super(data);\n if (usesExtendedHeader())\n extHeader = makeExtendedHeader(in);\n }", "public void fromBuffer(ByteBufWrapper paramhd)\r\n/* 37: */ {\r\n/* 38:44 */ this.a = paramhd.e();\r\n/* 39:45 */ this.b = paramhd.readInt();\r\n/* 40:46 */ this.c = paramhd.readInt();\r\n/* 41:47 */ this.d = paramhd.readInt();\r\n/* 42:48 */ this.e = paramhd.readByte();\r\n/* 43:49 */ this.f = paramhd.readByte();\r\n/* 44:50 */ this.g = paramhd.readBoolean();\r\n/* 45: */ }", "protected void parseHeaderLine(String unparsedLine) {\r\n\r\n\t\tif (DEBUG)\r\n\t\t\tSystem.out.println(\"HEADER LINE = \" + unparsedLine);\r\n\r\n\t\tStringTokenizer t = new StringTokenizer(unparsedLine, \" ,\\042\\011\");\r\n\t\tString tok = null;\r\n\r\n\t\tfor (int i = 0; t.hasMoreTokens(); i++) {\r\n\t\t\ttok = t.nextToken();\r\n\t\t\tif (DEBUG)\r\n\t\t\t\tSystem.out.println(\"token \" + i + \"=[\" + tok + \"]\");\r\n\t\t\tif (tok.equalsIgnoreCase(CHAN_HEADER)) {\r\n\t\t\t\t_chanIndex = i;\r\n\t\t\t\tif (DEBUG)\r\n\t\t\t\t\tSystem.out.println(\"chan_header=\" + i);\r\n\t\t\t}\r\n\t\t\tif (tok.equalsIgnoreCase(DIST_HEADER)) {\r\n\t\t\t\t_distIndex = i;\r\n\t\t\t\tif (DEBUG)\r\n\t\t\t\t\tSystem.out.println(\"dist_header=\" + i);\r\n\t\t\t}\r\n\t\t\tif (tok.equalsIgnoreCase(FILENAME_HEADER)) {\r\n\t\t\t\t_filenameIndex = i;\r\n\t\t\t\tif (DEBUG)\r\n\t\t\t\t\tSystem.out.println(\"filename_header=\" + i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (DEBUG)\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"_chanIndex, _distIndex, _filenameIndex=\" + _chanIndex + \",\" + _distIndex + \",\" + _filenameIndex);\r\n\r\n\t}", "public MainframeFile (String name, byte[] buffer)\n // ---------------------------------------------------------------------------------//\n {\n this.name = name;\n this.buffer = buffer;\n }", "public HeaderDescriptor() \n {\n super();\n xmlName = \"header\";\n elementDefinition = true;\n \n //-- set grouping compositor\n setCompositorAsSequence();\n org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\n org.exolab.castor.mapping.FieldHandler handler = null;\n org.exolab.castor.xml.FieldValidator fieldValidator = null;\n //-- initialize attribute descriptors\n \n //-- initialize element descriptors\n \n //-- _transactionId\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(long.class, \"_transactionId\", \"transaction-id\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTransactionId())\n return null;\n return new java.lang.Long(target.getTransactionId());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // ignore null values for non optional primitives\n if (value == null) return;\n \n target.setTransactionId( ((java.lang.Long)value).longValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _transactionId\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n LongValidator typeValidator = new LongValidator();\n typeValidator .setMinInclusive(-1L);\n typeValidator .setMaxInclusive(4294967295L);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opName\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_opName\", \"op-name\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpName();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpName( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opName\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.OpTypeType.class, \"_opType\", \"op-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpType( (com.opengate.webservice.xml.types.OpTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.OpTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _identifier\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_identifier\", \"identifier\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getIdentifier();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setIdentifier( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _identifier\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _connectorType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.ConnectorTypeType.class, \"_connectorType\", \"connector-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getConnectorType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setConnectorType( (com.opengate.webservice.xml.types.ConnectorTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.ConnectorTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _connectorType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _timestamp\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.util.Date.class, \"_timestamp\", \"timestamp\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getTimestamp();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setTimestamp( (java.util.Date) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new java.util.Date();\n }\n };\n handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _timestamp\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _notification\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.Notification.class, \"_notification\", \"notification\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getNotification();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setNotification( (com.opengate.webservice.xml.Notification) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new com.opengate.webservice.xml.Notification();\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _notification\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _ttl\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, \"_ttl\", \"ttl\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTtl())\n return null;\n return new java.lang.Integer(target.getTtl());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // if null, use delete method for optional primitives \n if (value == null) {\n target.deleteTtl();\n return;\n }\n target.setTtl( ((java.lang.Integer)value).intValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _ttl\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n IntegerValidator typeValidator= new IntegerValidator();\n typeValidator.setMinInclusive(-1);\n typeValidator.setMaxInclusive(2147483647);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n }", "public FileHeader(RandomAccessFile rafShp_, boolean newHeader) throws IOException {\n\n rafShp = rafShp_; \n\n initHeader(newHeader); \n }", "public Header( String headerCode) {\n\t\tsuper(tag(Header.class), headerCode); \n\t}", "public Header(DOMelement element){\n\t\tsuper(tag(Header.class),element);\n\t}", "public ProtocolControlFrame(byte[] buffer) throws FrameException {\n super(Frame.PROTOCOLCONTROLFRAME_T, buffer);\n this.infoElements = new Hashtable<Integer, byte[]>();\n try {\n byte[] iesBuffer = new byte[buffer.length - FULLFRAME_HEADER_LENGTH];\n System.arraycopy(buffer, FULLFRAME_HEADER_LENGTH, iesBuffer, 0, iesBuffer.length);\n int bytesRemaining = iesBuffer.length;\n //This while iterate the buffer to search information elements. \n //These are variable in number, type and size. \n while(bytesRemaining > 0) {\n byte[] aux = new byte[bytesRemaining];\n System.arraycopy(iesBuffer, iesBuffer.length - bytesRemaining, aux, 0, aux.length);\n ByteBuffer byteBuffer = new ByteBuffer(aux);\n int id = byteBuffer.get8bits();\n int dataLength = byteBuffer.get8bits();\n byte[] data = new byte[dataLength];\n System.arraycopy(byteBuffer.getByteArray(), 0, data, 0, data.length);\n infoElements.put(new Integer(id),data);\n bytesRemaining -= InfoElement.HEADER_LENGTH + dataLength;\n }\n } catch (Exception e) {\n throw new FrameException(e);\n } \n }", "public void setFromTag(String tag){\n try{\n fromHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }", "private void init(FastaEntry fastaEntry) {\n init(fastaEntry.get_header(), fastaEntry.get_sequence());\n }", "Header createHeader();", "public RTCMPackage(RTCMHeader rtcmHeader)\n {\n\tsetRtcmHeader(rtcmHeader);\n }", "public void parse(byte[] buffer) {\n if (buffer == null) {\n MMLog.log(TAG, \"parse failed buffer = \" + null);\n return;\n }\n\n if (buffer.length >= 9) {\n this.msgHead = getIntVale(0, 2, buffer);\n if(this.msgHead != DEFAULT_HEAD) return;\n\n this.msgEnd = getIntVale(buffer.length - 1, 1, buffer);\n if(this.msgEnd != DEFAULT_END) return;\n\n this.msgID = getIntVale(2, 2, buffer);\n this.msgIndex = getIntVale(4, 1, buffer);\n this.msgLength = getIntVale(5, 2, buffer);\n this.msgCRC = getIntVale(buffer.length - 2, 1, buffer);\n\n } else {\n MMLog.log(TAG, \"parse failed length = \" + buffer.length);\n }\n if (msgLength <= 0) return;\n datas = new byte[msgLength];\n System.arraycopy(buffer, 7, datas, 0, this.msgLength);\n }", "private void initializeKnownHeaders() {\r\n needParceHeader = true;\r\n \r\n addMainHeader(\"city\", getPossibleHeaders(DataLoadPreferences.NH_CITY));\r\n addMainHeader(\"msc\", getPossibleHeaders(DataLoadPreferences.NH_MSC));\r\n addMainHeader(\"bsc\", getPossibleHeaders(DataLoadPreferences.NH_BSC));\r\n addMainIdentityHeader(\"site\", getPossibleHeaders(DataLoadPreferences.NH_SITE));\r\n addMainIdentityHeader(\"sector\", getPossibleHeaders(DataLoadPreferences.NH_SECTOR));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_CI, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_CI));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_LAC, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_LAC));\r\n addMainHeader(INeoConstants.PROPERTY_LAT_NAME, getPossibleHeaders(DataLoadPreferences.NH_LATITUDE));\r\n addMainHeader(INeoConstants.PROPERTY_LON_NAME, getPossibleHeaders(DataLoadPreferences.NH_LONGITUDE));\r\n // Stop statistics collection for properties we will not save to the sector\r\n addNonDataHeaders(1, mainHeaders);\r\n \r\n // force String types on some risky headers (sometimes these look like integers)\r\n useMapper(1, \"site\", new StringMapper());\r\n useMapper(1, \"sector\", new StringMapper());\r\n \r\n // Known headers that are sector data properties\r\n addKnownHeader(1, \"beamwidth\", getPossibleHeaders(DataLoadPreferences.NH_BEAMWIDTH), false);\r\n addKnownHeader(1, \"azimuth\", getPossibleHeaders(DataLoadPreferences.NH_AZIMUTH), false);\r\n }", "public static void constructStartupMessage(final ByteBuf buffer) {\n /*\n * Requests headers - according to https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec\n * section #1\n *\n * 0 8 16 24 32 40\n * +---------+---------+---------+---------+---------+\n * | version | flags | stream | opcode |\n * +---------+---------+---------+---------+---------+\n */\n\n buffer.writeByte(0x04); //request\n buffer.writeBytes(new byte[]{0x00}); // flag\n buffer.writeShort(incrementAndGet()); //stream id\n buffer.writeBytes(new byte[]{0x01}); // startup\n\n /*\n * Body size - int - 4bytes.\n * Body of STARTUP message contains MAP of 1 entry, where key and value is [string]\n *\n * Size = (map size) + (key size) + (key string length) + (value size) + (value string length)\n */\n short size = (short) (2 + 2 + CQL_VERSION_KEY.length() + 2 + CQL_VERSION_VALUE.length());\n\n buffer.writeInt(size);\n\n /*\n * Write body itself, lets say that is it Map.of(\"CQL_VERSION\",\"3.0.0\") in CQL version.\n */\n\n //map sie\n buffer.writeShort(1);\n\n //key\n buffer.writeShort(CQL_VERSION_KEY.length());\n buffer.writeBytes(CQL_VERSION_KEY.getBytes());\n\n //value\n buffer.writeShort(CQL_VERSION_VALUE.length());\n buffer.writeBytes(CQL_VERSION_VALUE.getBytes());\n }", "public boolean readHeader(final boolean loadTagBuffer) throws IOException {\r\n int[] extents;\r\n String type, // type of data; there are 7, see FileInfoDicom\r\n name; // string representing the tag\r\n\r\n boolean endianess = FileBase.LITTLE_ENDIAN; // all DICOM files start as little endian (tags 0002)\r\n boolean flag = true;\r\n\r\n if (loadTagBuffer == true) {\r\n loadTagBuffer();\r\n }\r\n\r\n String strValue = null;\r\n Object data = null;\r\n FileDicomSQ sq = null;\r\n\r\n try {\r\n extents = new int[2];\r\n } catch (final OutOfMemoryError e) {\r\n\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"Out of memory in FileDicom.readHeader\");\r\n Preferences.debug(\"Out of memory in FileDicom.readHeader\\n\", Preferences.DEBUG_FILEIO);\r\n } else {\r\n Preferences.debug(\"Out of memory in FileDicom.readHeader\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n throw new IOException(\"Out of Memory in FileDicom.readHeader\");\r\n }\r\n\r\n metaGroupLength = 0;\r\n elementLength = 0;\r\n fileInfo.setEndianess(endianess);\r\n\r\n skipBytes(ID_OFFSET); // Find \"DICM\" tag\r\n\r\n // In v. 3.0, within the ID_OFFSET is general header information that\r\n // is not encoded into data elements and not present in DICOM v. 2.0.\r\n // However, it is optional.\r\n\r\n if ( !getString(4).equals(\"DICM\")) {\r\n fileInfo.containsDICM = false;\r\n seek(0); // set file pointer to zero\r\n }\r\n\r\n fileInfo.setDataType(ModelStorageBase.SHORT); // Default file type\r\n\r\n final FileDicomTagTable tagTable = fileInfo.getTagTable();\r\n\r\n while (flag == true) {\r\n\r\n int bPtrOld = bPtr;\r\n boolean isPrivate = false;\r\n if (fileInfo.containsDICM) {\r\n\r\n // endianess is defined in a tag and set here, after the transfer\r\n // syntax group has been read in\r\n if (getFilePointer() >= (ID_OFFSET + 4 + metaGroupLength)) {\r\n endianess = fileInfo.getEndianess();\r\n // Preferences.debug(\"endianess = \" + endianess + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n } else {\r\n\r\n if (getFilePointer() >= metaGroupLength) {\r\n endianess = fileInfo.getEndianess();\r\n }\r\n }\r\n\r\n // ******* Gets the next element\r\n getNextElement(endianess); // gets group, element, length\r\n name = convertGroupElement(groupWord, elementWord);\r\n\r\n if (name.equals(\"2005,140F\")) {\r\n System.out.println(\"Begin debug analysis.\");\r\n }\r\n\r\n final FileDicomKey key = new FileDicomKey(name);\r\n int tagVM;\r\n\r\n // Preferences.debug(\"group = \" + groupWord + \" element = \" + elementWord + \" length = \" +\r\n // elementLength + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n if ( (fileInfo.vr_type == FileInfoDicom.IMPLICIT) || (groupWord == 2)) {\r\n\r\n // implicit VR means VR is based on tag as defined in dictionary\r\n type = DicomDictionary.getType(key);\r\n tagVM = DicomDictionary.getVM(key);\r\n\r\n // the tag was not found in the dictionary..\r\n if (type == null) {\r\n type = \"typeUnknown\";\r\n tagVM = 0;\r\n }\r\n } else { // Explicit VR\r\n // System.err.println(\"Working with explicit: \"+key);\r\n\r\n type = FileDicomTagInfo.getType(new String(vr));\r\n\r\n if ( !DicomDictionary.containsTag(key)) { // a private tag\r\n tagVM = 0;\r\n isPrivate = true;\r\n } else { // not a private tag\r\n\r\n final FileDicomTagInfo info = DicomDictionary.getInfo(key);\r\n // this is required if DicomDictionary contains wild card characters\r\n info.setKey(key);\r\n tagVM = info.getValueMultiplicity();\r\n }\r\n }\r\n\r\n if ( (elementWord == 0) && (elementLength == 0)) { // End of file\r\n\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"Error: Unexpected end of file: \" + fileName\r\n + \" Unable to load image.\");\r\n }\r\n\r\n throw new IOException(\"Error while reading header\");\r\n }\r\n\r\n if ( (getFilePointer() & 1) != 0) { // The file location pointer is at an odd byte number\r\n\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"Error: Input file corrupted. Unable to load image.\");\r\n }\r\n\r\n // System.err.println(\"name: \"+ name + \" , len: \" + Integer.toString(elementLength, 0x10));\r\n System.err.println(\"ERROR CAUSED BY READING IMAGE ON ODD BYTE\");\r\n throw new IOException(\"Error while reading header\");\r\n }\r\n\r\n try {\r\n bPtrOld = bPtr;\r\n if (type.equals(\"typeString\")) {\r\n strValue = getString(elementLength);\r\n } else if (type.equals(\"otherByteString\")) {\r\n\r\n if ( !name.equals(FileDicomInner.IMAGE_TAG)) {\r\n data = getByte(tagVM, elementLength, endianess);\r\n }\r\n } else if (type.equals(\"otherWordString\") && !name.equals(\"0028,1201\") && !name.equals(\"0028,1202\")\r\n && !name.equals(\"0028,1203\")) {\r\n\r\n if ( !name.equals(FileDicomInner.IMAGE_TAG)) {\r\n data = getByte(tagVM, elementLength, endianess);\r\n }\r\n } else if (type.equals(\"typeShort\")) {\r\n data = getShort(tagVM, elementLength, endianess);\r\n } else if (type.equals(\"typeInt\")) {\r\n data = getInteger(tagVM, elementLength, endianess);\r\n } else if (type.equals(\"typeFloat\")) {\r\n data = getFloat(tagVM, elementLength, endianess);\r\n } else if (type.equals(\"typeDouble\")) {\r\n data = getDouble(tagVM, elementLength, endianess);\r\n }\r\n // (type == \"typeUnknown\" && elementLength == -1) Implicit sequence tag if not in DICOM dictionary.\r\n else if (type.equals(\"typeSequence\") || ( (type == \"typeUnknown\") && (elementLength == -1))) {\r\n final int len = elementLength;\r\n\r\n // save these values because they'll change as the sequence is read in below.\r\n Preferences.debug(\"Sequence Tags: (\" + name + \"); length = \" + len + \"\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n\r\n sq = (FileDicomSQ) getSequence(endianess, len, name);\r\n sequenceTags.put(key, sq);\r\n // System.err.print( \"SEQUENCE DONE: Sequence Tags: (\" + key + \")\"+\" \"+type);\r\n // Integer.toString(len, 0x10) + \"\\n\");\r\n\r\n try {\r\n\r\n } catch (final NullPointerException e) {\r\n System.err.println(\"Null pointer exception while setting value. Trying to put new tag.\");\r\n }\r\n Preferences.debug(\"Finished sequence tags.\\n\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n // check if private\r\n if (isPrivate) {\r\n if (type.equals(\"typeString\")) {\r\n privateTags.put(key, strValue);\r\n } else if ( !type.equals(\"typeSequence\")) {\r\n privateTags.put(key, data);\r\n } else {\r\n privateTags.put(key, sq);\r\n }\r\n }\r\n\r\n // check if should anonymize, note user can specify private tags to anonymize\r\n if (tagExistInAnonymizeTagIDs(key.toString())) {\r\n\r\n // System.out.print(\"Writing \"+key+\"\\t\");\r\n\r\n final long raPtrOld = raFile.getFilePointer();\r\n if (type.equals(\"typeString\")) {\r\n\r\n // System.out.println(strValue);\r\n anonymizeTags.put(key, strValue);\r\n String anonStr = \"\";\r\n if (key.equals(\"0008,0014\") || key.equals(\"0008,0018\") || key.equals(\"0020,000E\")\r\n || key.equals(\"0020,000D\") || key.equals(\"0020,0010\") || key.equals(\"0020,0052\")) {\r\n final Random r = new Random();\r\n\r\n for (int i = 0; i < strValue.length(); i++) {\r\n if (strValue.charAt(i) == '.') {\r\n anonStr = anonStr + \".\";\r\n } else if (key.equals(\"0008,0018\")) {\r\n anonStr = anonStr + r.nextInt(10);\r\n } else {\r\n anonStr = anonStr + \"1\";\r\n }\r\n }\r\n } else {\r\n for (int i = 0; i < strValue.length(); i++) {\r\n anonStr = anonStr + \"X\";\r\n }\r\n }\r\n\r\n raFile.seek(bPtrOld);\r\n raFile.writeBytes(anonStr); // non-anon would be strValue\r\n raFile.seek(raPtrOld);\r\n System.out.println(\"Writing \" + strValue + \" to \" + bPtrOld + \". Returned raPtr to \"\r\n + raPtrOld);\r\n } else if (type.equals(\"otherByteString\")) {\r\n\r\n if ( !name.equals(FileDicomInner.IMAGE_TAG)) {\r\n // System.out.println(data);\r\n anonymizeTags.put(key, data);\r\n\r\n final byte[] b = new byte[ ((Byte[]) data).length];\r\n for (int i = 0; i < b.length; i++) {\r\n b[i] = 0;\r\n }\r\n raFile.seek(bPtrOld);\r\n raFile.write(b);\r\n raFile.seek(raPtrOld);\r\n }\r\n } else if (type.equals(\"otherWordString\") && !name.equals(\"0028,1201\")\r\n && !name.equals(\"0028,1202\") && !name.equals(\"0028,1203\")) {\r\n\r\n if ( !name.equals(FileDicomInner.IMAGE_TAG)) {\r\n // System.out.println(data);\r\n anonymizeTags.put(key, data);\r\n\r\n final byte[] b = new byte[ ((Byte[]) data).length];\r\n for (int i = 0; i < b.length; i++) {\r\n b[i] = 0;\r\n }\r\n raFile.seek(bPtrOld);\r\n raFile.write(b);\r\n raFile.seek(raPtrOld);\r\n }\r\n } else if (type.equals(\"typeShort\")) {\r\n // System.out.println(data);\r\n anonymizeTags.put(key, data);\r\n\r\n raFile.seek(bPtrOld);\r\n if (data instanceof Short || data instanceof Integer) {\r\n writeShort((short) 0, endianess);\r\n } else if (data instanceof Short[] || data instanceof Integer[]) {\r\n if (data instanceof Integer[]) {\r\n System.err.println(\"Unusual data type encountered\");\r\n }\r\n for (int i = 0; i < ((Short[]) data).length; i++) {\r\n writeShort((short) 0, endianess);\r\n }\r\n } else {\r\n System.err.println(\"Data corruption\");\r\n }\r\n raFile.seek(raPtrOld);\r\n } else if (type.equals(\"typeInt\")) {\r\n // System.out.println(data);\r\n anonymizeTags.put(key, data);\r\n\r\n raFile.seek(bPtrOld);\r\n if (data instanceof Integer) {\r\n writeInt(0, endianess);\r\n } else if (data instanceof Integer[]) {\r\n for (int i = 0; i < ((Integer[]) data).length; i++) {\r\n writeInt(0, endianess);\r\n }\r\n } else {\r\n System.err.println(\"Data corruption\");\r\n }\r\n raFile.seek(raPtrOld);\r\n } else if (type.equals(\"typeFloat\")) {\r\n // System.out.println(data);\r\n anonymizeTags.put(key, data);\r\n\r\n raFile.seek(bPtrOld);\r\n if (data instanceof Float) {\r\n writeFloat(0, endianess);\r\n } else if (data instanceof Float[] || data instanceof Double[]) {\r\n if (data instanceof Double[]) {\r\n System.err.println(\"Unusual data type encountered\");\r\n }\r\n for (int i = 0; i < ((Float[]) data).length; i++) {\r\n writeFloat(0, endianess);\r\n }\r\n } else {\r\n System.err.println(\"Data corruption\");\r\n }\r\n raFile.seek(raPtrOld);\r\n } else if (type.equals(\"typeDouble\")) {\r\n anonymizeTags.put(key, data);\r\n\r\n raFile.seek(bPtrOld);\r\n if (data instanceof Double) {\r\n writeDouble(0, endianess);\r\n } else if (data instanceof Double[]) {\r\n for (int i = 0; i < ((Double[]) data).length; i++) {\r\n writeDouble(0, endianess);\r\n }\r\n } else {\r\n System.err.println(\"Data corruption\");\r\n }\r\n raFile.seek(raPtrOld);\r\n }\r\n }\r\n } catch (final OutOfMemoryError e) {\r\n\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"Out of memory in FileDicom.readHeader\");\r\n Preferences.debug(\"Out of memory in FileDicom.readHeader\\n\", Preferences.DEBUG_FILEIO);\r\n } else {\r\n Preferences.debug(\"Out of memory in FileDicom.readHeader\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n e.printStackTrace();\r\n\r\n throw new IOException();\r\n }\r\n\r\n if (name.equals(\"0002,0000\")) { // length of the transfer syntax group\r\n\r\n if (data != null) {\r\n metaGroupLength = ((Integer) (data)).intValue() + 12; // 12 is the length of 0002,0000 tag\r\n }\r\n\r\n Preferences.debug(\"metalength = \" + metaGroupLength + \" location \" + getFilePointer() + \"\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n } else if (name.equals(\"0018,602C\")) {\r\n fileInfo.setUnitsOfMeasure(FileInfoBase.CENTIMETERS, 0);\r\n } else if (name.equals(\"0018,602E\")) {\r\n fileInfo.setUnitsOfMeasure(FileInfoBase.CENTIMETERS, 1);\r\n } else if (name.equals(\"0002,0010\")) {\r\n\r\n // Transfer Syntax UID: DICOM part 10 page 13, part 5 p. 42-48, Part 6 p. 53\r\n // 1.2.840.10008.1.2 Implicit VR Little Endian (Default)\r\n // 1.2.840.10008.1.2.1 Explicit VR Little Endian\r\n // 1.2.840.10008.1.2.2 Explicit VR Big Endian\r\n // 1.2.840.10008.1.2.4.50 8-bit Lossy JPEG (JPEG Coding Process 1)\r\n // 1.2.840.10008.1.2.4.51 12-bit Lossy JPEG (JPEG Coding Process 4)\r\n // 1.2.840.10008.1.2.4.57 Lossless JPEG Non-hierarchical (JPEG Coding Process 14)\r\n // we should bounce out if we don't support this transfer syntax\r\n if (strValue.trim().equals(\"1.2.840.10008.1.2\")) {\r\n Preferences.debug(\"File Dicom: readHeader - Transfer Syntax = \" + strValue\r\n + \" Implicit VR - Little Endian \\n\", Preferences.DEBUG_FILEIO);\r\n\r\n fileInfo.setEndianess(FileBase.LITTLE_ENDIAN);\r\n fileInfo.vr_type = FileInfoDicom.IMPLICIT;\r\n encapsulated = false;\r\n } else if (strValue.trim().equals(\"1.2.840.10008.1.2.1\")) {\r\n Preferences.debug(\"File Dicom: readHeader - Transfer Syntax = \" + strValue\r\n + \" Explicit VR - Little Endian \\n\", Preferences.DEBUG_FILEIO);\r\n\r\n fileInfo.setEndianess(FileBase.LITTLE_ENDIAN);\r\n fileInfo.vr_type = FileInfoDicom.EXPLICIT;\r\n encapsulated = false;\r\n } else if (strValue.trim().equals(\"1.2.840.10008.1.2.2\")) {\r\n Preferences.debug(\"File Dicom: readHeader - Transfer Syntax = \" + strValue\r\n + \" Explicit VR - Big Endian \\n\", Preferences.DEBUG_FILEIO);\r\n\r\n fileInfo.setEndianess(FileBase.BIG_ENDIAN);\r\n fileInfo.vr_type = FileInfoDicom.EXPLICIT;\r\n encapsulated = false;\r\n } else if (strValue.trim().startsWith(\"1.2.840.10008.1.2.4.\")) { // JPEG\r\n Preferences.debug(\"File Dicom: readHeader - Transfer Syntax = \" + strValue\r\n + \" Implicit VR - Little Endian \\n\", Preferences.DEBUG_FILEIO);\r\n\r\n fileInfo.setEndianess(FileBase.LITTLE_ENDIAN);\r\n fileInfo.vr_type = FileInfoDicom.EXPLICIT;\r\n encapsulated = true;\r\n\r\n if (strValue.trim().equals(\"1.2.840.10008.1.2.4.57\")\r\n || strValue.trim().equals(\"1.2.840.10008.1.2.4.58\")\r\n || strValue.trim().equals(\"1.2.840.10008.1.2.4.65\")\r\n || strValue.trim().equals(\"1.2.840.10008.1.2.4.66\")\r\n || strValue.trim().equals(\"1.2.840.10008.1.2.4.70\")) {\r\n lossy = false;\r\n } else {\r\n lossy = true;\r\n }\r\n } else {\r\n Preferences.debug(\"File Dicom: readHeader - Transfer Syntax = \" + strValue + \" unknown!\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"MIPAV does not support transfer syntax:\\n\" + strValue);\r\n }\r\n\r\n flag = false; // break loop\r\n\r\n return false; // couldn't read it!\r\n }\r\n } else if (name.equals(FileDicomInner.IMAGE_TAG)) { // && elementLength!=0) { // The image.\r\n System.out.println(\"Reading \" + name + \" image data\");\r\n // This complicated code determines whether or not the offset is correct for the image.\r\n // For that to be true, (height * width * pixel spacing) + the present offset should equal\r\n // the length of the file. If not, 4 might need to be added (I don't know why). If not again,\r\n // the function returns false.\r\n\r\n final int imageLength = extents[0] * extents[1] * fileInfo.bitsAllocated / 8;\r\n\r\n Preferences.debug(\"File Dicom: readHeader - Data tag = \" + FileDicomInner.IMAGE_TAG + \"\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n Preferences.debug(\"File Dicom: readHeader - imageLength = \" + imageLength + \"\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n Preferences.debug(\"File Dicom: readHeader - getFilePointer = \" + getFilePointer() + \"\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n\r\n if (fileInfo.getModality() == FileInfoBase.POSITRON_EMISSION_TOMOGRAPHY) {\r\n fileInfo.displayType = ModelStorageBase.FLOAT;\r\n } else {\r\n fileInfo.displayType = fileInfo.getDataType();\r\n }\r\n\r\n if ( !encapsulated) {\r\n // System.err.println( \"\\n\" +\r\n // Long.toString(getFilePointer()) + \" \" +\r\n // Long.toString(raFile.length()) +\r\n // \" image length = \" + imageLength );\r\n\r\n long fileEnd;\r\n\r\n if (loadTagBuffer == true) {\r\n fileEnd = raFile.length();\r\n } else {\r\n fileEnd = fLength;\r\n }\r\n\r\n if ( (imageLength + getFilePointer()) <= fileEnd) {\r\n fileInfo.setOffset(getFilePointer()); // Mark where the image is\r\n }\r\n // I think the extra 4 bytes is for explicit tags!!\r\n // see Part 5 page 27 1998\r\n else if ( (imageLength + getFilePointer() + 4) <= fileEnd) {\r\n fileInfo.setOffset(getFilePointer() + 4);\r\n } else {\r\n\r\n // Preferences.debug( \"File Dicom: readHeader: xDim = \" + extents[0] + \" yDim = \" +\r\n // extents[1] +\r\n // \" Bits allocated = \" + fileInfo.bitsAllocated, 2);\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"Image not at expected offset.\");\r\n }\r\n\r\n throw new IOException(\"Error while reading header\");\r\n }\r\n } else { // encapsulated\r\n fileInfo.setOffset( (getFilePointer() - 12));\r\n }\r\n\r\n fileInfo.setExtents(extents);\r\n flag = false; // break loop\r\n } else if (type.equals(\"typeUnknown\")) { // Private tag, may not be reading in correctly.\r\n\r\n try {\r\n\r\n // set the value if the tag is in the dictionary (which means it isn't private..) or has already\r\n // been put into the tag table without a value (private tag with explicit vr)\r\n if (DicomDictionary.containsTag(key) || tagTable.containsTag(key)) {\r\n final Object obj = readUnknownData();\r\n Preferences.debug(\"Note unknown data (\" + key + \"):\\t\" + obj + \"\\t\" + elementLength);\r\n\r\n // tagTable.setValue(key, readUnknownData(), elementLength);\r\n } else {\r\n final Object obj = readUnknownData();\r\n Preferences.debug(\"Note private data (\" + key + \"):\\t\" + obj + \"\\t\" + elementLength);\r\n privateTags.put(key, obj);\r\n\r\n // tagTable\r\n // .putPrivateTagValue(new FileDicomTagInfo(key, null, tagVM, \"PrivateTag\", \"Private Tag\"));\r\n\r\n // tagTable.setValue(key, readUnknownData(), elementLength);\r\n\r\n Preferences.debug(\"Group = \" + groupWord + \" element = \" + elementWord + \" Type unknown\"\r\n + \"; value = \" + strValue + \"; element length = \" + elementLength + \"\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n }\r\n } catch (final OutOfMemoryError e) {\r\n\r\n if ( !isQuiet()) {\r\n MipavUtil.displayError(\"Out of memory error while reading \\\"\" + fileName\r\n + \"\\\".\\nThis may not be a DICOM image.\");\r\n Preferences.debug(\"Out of memory storing unknown tags in FileDicom.readHeader\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n } else {\r\n Preferences.debug(\"Out of memory storing unknown tags in FileDicom.readHeader\\n\",\r\n Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n e.printStackTrace();\r\n\r\n throw new IOException(\"Out of memory storing unknown tags in FileDicom.readHeader\");\r\n } catch (final NullPointerException npe) {\r\n System.err.println(\"name: \" + name);\r\n System.err.print(\"no hashtable? \");\r\n System.err.println(tagTable == null);\r\n throw npe;\r\n }\r\n }\r\n }\r\n // Done reading tags\r\n\r\n String photometricInterp = null;\r\n\r\n if (tagTable.getValue(\"0028,0004\") != null) {\r\n fileInfo.photometricInterp = ((String) (tagTable.getValue(\"0028,0004\"))).trim();\r\n photometricInterp = fileInfo.photometricInterp.trim();\r\n }\r\n\r\n if (photometricInterp == null) { // Default to MONOCROME2 and hope for the best\r\n photometricInterp = new String(\"MONOCHROME2\");\r\n }\r\n\r\n if ( (photometricInterp.equals(\"MONOCHROME1\") || photometricInterp.equals(\"MONOCHROME2\"))\r\n && (fileInfo.pixelRepresentation == FileInfoDicom.UNSIGNED_PIXEL_REP)\r\n && (fileInfo.bitsAllocated == 8)) {\r\n fileInfo.setDataType(ModelStorageBase.UBYTE);\r\n fileInfo.displayType = ModelStorageBase.UBYTE;\r\n fileInfo.bytesPerPixel = 1;\r\n } else if ( (photometricInterp.equals(\"MONOCHROME1\") || photometricInterp.equals(\"MONOCHROME2\"))\r\n && (fileInfo.pixelRepresentation == FileInfoDicom.SIGNED_PIXEL_REP)\r\n && (fileInfo.bitsAllocated == 8)) {\r\n fileInfo.setDataType(ModelStorageBase.BYTE);\r\n fileInfo.displayType = ModelStorageBase.BYTE;\r\n fileInfo.bytesPerPixel = 1;\r\n } else if ( (photometricInterp.equals(\"MONOCHROME1\") || photometricInterp.equals(\"MONOCHROME2\"))\r\n && (fileInfo.pixelRepresentation == FileInfoDicom.UNSIGNED_PIXEL_REP)\r\n && (fileInfo.bitsAllocated > 8)) {\r\n fileInfo.setDataType(ModelStorageBase.USHORT);\r\n fileInfo.displayType = ModelStorageBase.USHORT;\r\n fileInfo.bytesPerPixel = 2;\r\n } else if ( (photometricInterp.equals(\"MONOCHROME1\") || photometricInterp.equals(\"MONOCHROME2\"))\r\n && (fileInfo.pixelRepresentation == FileInfoDicom.SIGNED_PIXEL_REP) && (fileInfo.bitsAllocated > 8)) {\r\n fileInfo.setDataType(ModelStorageBase.SHORT);\r\n fileInfo.displayType = ModelStorageBase.SHORT;\r\n fileInfo.bytesPerPixel = 2;\r\n }\r\n // add something for RGB DICOM images - search on this !!!!\r\n else if (photometricInterp.equals(\"RGB\") && (fileInfo.bitsAllocated == 8)) {\r\n fileInfo.setDataType(ModelStorageBase.ARGB);\r\n fileInfo.displayType = ModelStorageBase.ARGB;\r\n fileInfo.bytesPerPixel = 3;\r\n\r\n if (tagTable.getValue(\"0028,0006\") != null) {\r\n fileInfo.planarConfig = ((Short) (tagTable.getValue(\"0028,0006\"))).shortValue();\r\n } else {\r\n fileInfo.planarConfig = 0; // rgb, rgb, rgb\r\n }\r\n } else if (photometricInterp.equals(\"YBR_FULL_422\") && (fileInfo.bitsAllocated == 8) && encapsulated) {\r\n fileInfo.setDataType(ModelStorageBase.ARGB);\r\n fileInfo.displayType = ModelStorageBase.ARGB;\r\n fileInfo.bytesPerPixel = 3;\r\n\r\n if (tagTable.getValue(\"0028,0006\") != null) {\r\n fileInfo.planarConfig = ((Short) (tagTable.getValue(\"0028,0006\"))).shortValue();\r\n } else {\r\n fileInfo.planarConfig = 0; // rgb, rgb, rgb\r\n }\r\n } else if (photometricInterp.equals(\"PALETTE COLOR\")\r\n && (fileInfo.pixelRepresentation == FileInfoDicom.UNSIGNED_PIXEL_REP)\r\n && (fileInfo.bitsAllocated == 8)) {\r\n fileInfo.setDataType(ModelStorageBase.UBYTE);\r\n fileInfo.displayType = ModelStorageBase.UBYTE;\r\n fileInfo.bytesPerPixel = 1;\r\n\r\n final int[] dimExtents = new int[2];\r\n dimExtents[0] = 4;\r\n dimExtents[1] = 256;\r\n lut = new ModelLUT(ModelLUT.GRAY, 256, dimExtents);\r\n\r\n for (int q = 0; q < dimExtents[1]; q++) {\r\n lut.set(0, q, 1); // the alpha channel is preloaded.\r\n }\r\n // sets the LUT to exist; we wait for the pallete tags to\r\n // describe what the lut should actually look like.\r\n } else {\r\n Preferences.debug(\"File DICOM: readImage() - Unsupported pixel Representation\",\r\n Preferences.DEBUG_FILEIO);\r\n\r\n if (raFile != null) {\r\n raFile.close();\r\n }\r\n\r\n return false;\r\n }\r\n\r\n if (fileInfo.getModality() == FileInfoBase.POSITRON_EMISSION_TOMOGRAPHY) {\r\n fileInfo.displayType = ModelStorageBase.FLOAT;\r\n // a bit of a hack - indicates Model image should be reallocated to float for PET image the data is\r\n // stored\r\n // as 2 bytes (short) but is \"normalized\" using the slope parameter required for PET images (intercept\r\n // always 0 for PET).\r\n }\r\n\r\n if ( ( (fileInfo.getDataType() == ModelStorageBase.UBYTE) || (fileInfo.getDataType() == ModelStorageBase.USHORT))\r\n && (fileInfo.getRescaleIntercept() < 0)) {\r\n // this performs a similar method as the pet adjustment for float images stored on disk as short to read\r\n // in\r\n // signed byte and signed short images stored on disk as unsigned byte or unsigned short with a negative\r\n // rescale intercept\r\n if (fileInfo.getDataType() == ModelStorageBase.UBYTE) {\r\n fileInfo.displayType = ModelStorageBase.BYTE;\r\n } else if (fileInfo.getDataType() == ModelStorageBase.USHORT) {\r\n fileInfo.displayType = ModelStorageBase.SHORT;\r\n }\r\n }\r\n\r\n if (tagTable.getValue(\"0028,1201\") != null) {\r\n // red channel LUT\r\n final FileDicomTag tag = tagTable.get(new FileDicomKey(\"0028,1201\"));\r\n final Object[] values = tag.getValueList();\r\n final int lutVals = values.length;\r\n\r\n // load LUT.\r\n if (values instanceof Byte[]) {\r\n\r\n for (int qq = 0; qq < lutVals; qq++) {\r\n lut.set(1, qq, ((Byte) values[qq]).intValue());\r\n }\r\n } else {\r\n\r\n for (int qq = 0; qq < lutVals; qq++) {\r\n lut.set(1, qq, ((Short) values[qq]).intValue());\r\n }\r\n }\r\n }\r\n\r\n if (tagTable.getValue(\"0028,1202\") != null) {\r\n\r\n // green channel LUT\r\n final FileDicomTag tag = tagTable.get(new FileDicomKey(\"0028,1202\"));\r\n final Object[] values = tag.getValueList();\r\n final int lutVals = values.length;\r\n\r\n // load LUT.\r\n if (values instanceof Byte[]) {\r\n\r\n for (int qq = 0; qq < lutVals; qq++) {\r\n lut.set(2, qq, ((Byte) values[qq]).intValue());\r\n }\r\n } else {\r\n\r\n for (int qq = 0; qq < lutVals; qq++) {\r\n lut.set(2, qq, ((Short) values[qq]).intValue());\r\n }\r\n }\r\n }\r\n\r\n if (tagTable.getValue(\"0028,1203\") != null) {\r\n\r\n // blue channel LUT\r\n final FileDicomTag tag = tagTable.get(new FileDicomKey(\"0028,1203\"));\r\n final Object[] values = tag.getValueList();\r\n final int lutVals = values.length;\r\n\r\n // load LUT.\r\n if (values instanceof Byte[]) {\r\n\r\n for (int qq = 0; qq < lutVals; qq++) {\r\n lut.set(3, qq, ((Byte) values[qq]).intValue());\r\n }\r\n } else {\r\n\r\n for (int qq = 0; qq < lutVals; qq++) {\r\n lut.set(3, qq, ((Short) values[qq]).intValue());\r\n }\r\n }\r\n\r\n // here we make the lut indexed because we know that\r\n // all the LUT tags are in the LUT.\r\n lut.makeIndexedLUT(null);\r\n }\r\n\r\n hasHeaderBeenRead = true;\r\n\r\n if ( (loadTagBuffer == true) && (raFile != null)) {\r\n raFile.close();\r\n }\r\n\r\n return true;\r\n }", "public void read_data_header(byte[] buffer) throws IOException {\r\n ByteArrayInputStream byte_in = new ByteArrayInputStream(buffer);\r\n DataInputStream in = new DataInputStream(byte_in);\r\n int _dimension = in.readInt();\r\n this.setDimension(_dimension);\r\n in.close();\r\n byte_in.close();\r\n }", "private void initializeAnimalHeader() {\r\n\t\t//initialize text\r\n\t\tTextProperties textProps = new TextProperties();\r\n\t\ttextProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"SansSerif\", Font.BOLD, 24));\r\n\t\ttextProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 1);\r\n\t\tlang.newText(new Coordinates(20, 30), \"ShiftRows\", \"header\", null, textProps);\r\n\t\t//initialize rectangle\r\n\t\tRectProperties hRectProps = new RectProperties();\r\n\t\thRectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tlang.newRect(new Offset(-5, -5, \"header\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"header\", AnimalScript.DIRECTION_SE), \"hRect\", null, hRectProps);\r\n\t}", "public StateHeader() { // for externalization\r\n }", "public void setHeader(ResChunkHeader header) {\n this.header = header;\n }", "private DataHeader(final File file, final long offset,\n final File nextFile, final long nextOffset,\n final Instant nextTime, final CtrlInfoReader info,\n final DbrType dbrType, final short dbrCount, final long numSamples)\n {\n this.file = file;\n this.offset = offset;\n this.nextFile = nextFile;\n this.nextOffset = nextOffset;\n this.nextTime = nextTime;\n\n //this.startTime = startTime;\n //this.endTime = endTime;\n\n this.info = info;\n this.dbrType = dbrType;\n this.dbrCount = dbrCount;\n this.numSamples = numSamples;\n }", "public DNSHeader (BigEndianDecoder decoder)\n {\n\n this.id = decoder.decodeShort();\n this.flag = decoder.decodeShort();\n this.questionCount = decoder.decodeShort();\n this.answerCount = decoder.decodeShort();\n this.nameServerCount = decoder.decodeShort();\n this.additionalFullRRCount = decoder.decodeShort();\n\n }", "public void fromBytes(ByteBuffer buffer) {\n }", "@Test\n public void validHeaderTest(){\n //test for a complete header with some missing values\n Header h;\n SimpleReader sr = new SimpleReader();\n String fileForLexer = sr.FileToString(\"sample_abc/piece1.abc\");\n abcLexer lex = new abcLexer(fileForLexer);\n abcParser parser = new abcParser(lex);\n h=parser.parseHeader();\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getTitle(),\"PieceNo.1\");\n assertEquals(h.getComposer(),\"Unknown\");//uses a default value\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getMeter(),\"4/4\");\n assertEquals(h.getNoteLength(),\"1/4\");\n assertEquals(h.getTempo(),\"140\");\n assertEquals(h.getKey(),\"C\");\n }", "private void parseHeader() throws IOException {\n\n\t\t// ////////////////////////////////////////////////////////////\n\t\t// Administrative header info\n\t\t// ////////////////////////////////////////////////////////////\n\n\t\t// First 10 bytes reserved for preamble\n\t\tbyte[] sixBytes = new byte[6];\n\t\tkeyBuffer.get(sixBytes, 0, 6);\n\t\tlogger.log(new String(sixBytes) + \"\\n\"); // says adac01\n\n\t\ttry {\n\n\t\t\tshort labels = keyBuffer.getShort();\n\t\t\tlogger.log(Integer.toString(labels)); // Number of labels in header\n\t\t\tlogger.log(Integer.toString(keyBuffer.get())); // Number of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sub-headers\n\t\t\tlogger.log(Integer.toString(keyBuffer.get())); // Unused byte\n\n\t\t\t// For each header field available.. get them\n\t\t\tfor (short i = 0; i < labels; i++) {\n\n\t\t\t\t// Attempt to find the next key...\n\t\t\t\t// ...the keynum (description)\n\t\t\t\t// ...the offset to the value\n\t\t\t\tADACKey key = getKeys();\n\t\t\t\tswitch (key.getDataType()) {\n\n\t\t\t\tcase ADACDictionary.BYTE:\n\n\t\t\t\t\tkeyList.add(new ByteKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.SHORT:\n\n\t\t\t\t\tkeyList.add(new ShortKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.INT:\n\n\t\t\t\t\tkeyList.add(new IntKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.FLOAT:\n\n\t\t\t\t\tkeyList.add(new FloatKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.EXTRAS:\n\n\t\t\t\t\tkeyList.add(new ExtrasKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"ADAC Decoder\", \"Failed to retrieve ADAC image file header. \" + \"Is this an ADAC image file?\");\n\t\t}\n\t}", "public FileHeader(String objectTypeName, String formatTypeName,\r\n int version, char delimiter)\r\n throws InputDataFileException\r\n {\r\n try\r\n {\r\n // Ensure object type name is given\r\n Assertion.assertMsg(objectTypeName != null &&\r\n objectTypeName.length() > 0,\r\n \"Error creating FileHeader instance: \" +\r\n \"No object type name given.\");\r\n\r\n // Ensure format type name is given\r\n Assertion.assertMsg(formatTypeName != null &&\r\n formatTypeName.length() > 0,\r\n \"Error creating FileHeader instance: \" +\r\n \"No format type name given.\");\r\n\r\n // Copy data to object\r\n mObjectTypeName = objectTypeName;\r\n mFormatTypeName = formatTypeName;\r\n mVersion = version;\r\n mDelimiter = new Character(delimiter);\r\n }\r\n catch (AssertionException e)\r\n {\r\n throw new InputDataFileException(e.getMessage());\r\n }\r\n }", "public void parseHeader()\n {\n\n Hashtable table = new Hashtable();\n String[] lines = Utilities.splitString(header, \"\\r\\n\"); //Break everything into lines\n String[] line1 = Utilities.splitString(header, \" \"); //Break the 1st header line Ex: GET / HTTP/1.1\n method = line1[0].trim();\n file = line1[1].trim();\n Utilities.debugLine(\"WebServer.parseHeader(): \" + lines[0], DEBUG);\n\n //For the remainder of the headers, parse the requestFields.\n for (int i = 1; i < lines.length - 1; i++)\n {\n String[] tempLine = Utilities.splitStringOnce(lines[i], \":\");\n table.put(tempLine[0].trim(), tempLine[1].trim());\n }\n headerFields = table;\n }", "@Override\n public void fromBuffer(byte[] buffer) {\n set(bytesToContent(buffer));\n }", "public static ByteBuf newHeader(int localConnId, int remoteConnId, long userFlag) throws UnsupportedEncodingException {\n ByteBuf header = Unpooled.buffer(4 + 4 + 8);\n\n header.writeInt(localConnId);\n header.writeInt(remoteConnId);\n header.writeLong(userFlag);\n header.writerIndex(header.capacity());\n return header;\n }", "public Importer(File directory) {\r\n\t\tsuper();\r\n\t\t_headerObject = new HeaderObject();\r\n\t\t_headerObject._directory = directory;\r\n\t}", "private void init() {\n CardHeader header = new CardHeader(getContext());\n header.setButtonOverflowVisible(true);\n header.setTitle(TestBook.getTitle());\n header.setPopupMenu(R.menu.card_menu_main, new CardHeader.OnClickCardHeaderPopupMenuListener() {\n @Override\n public void onMenuItemClick(BaseCard card, MenuItem item) {\n Toast.makeText(getContext(), item.getTitle(), Toast.LENGTH_SHORT).show();\n }\n });\n\n addCardHeader(header);\n\n BookCardThumb bookthumbnail = new BookCardThumb(getContext());\n bookthumbnail.setDrawableResource(R.drawable.pngbook_cover);\n addCardThumbnail(bookthumbnail);\n\n }", "private void initHeader() {\r\n\r\n Typeface friendNameTypeface = UIUtils.getFontTypeface(this,\r\n UIUtils.Fonts.ROBOTO_CONDENSED);\r\n contactNameTextView.setTypeface(friendNameTypeface);\r\n contactNameTextView.setText(friendFeed.getContact().toString());\r\n\r\n Typeface lastMessageSentDateTypeface = UIUtils.getFontTypeface(\r\n this, UIUtils.Fonts.ROBOTO_LIGHT);\r\n lastMessageSentDateTextView.setTypeface(lastMessageSentDateTypeface);\r\n lastMessageSentDateTextView.setText(StringUtils\r\n .normalizeDifferenceDate(friendFeed.getLastMessageTime()));\r\n\r\n typingStatusTextView.setTypeface(lastMessageSentDateTypeface);\r\n\r\n ImageLoaderManager imageLoaderManager = new ImageLoaderManager(getApplicationContext());\r\n imageLoaderManager.loadContactAvatarImage(contactImageView, friendFeed.getContact(), false);\r\n }", "public FileInputTools(SharedBuffer buffer, int bufferInputFileLength) throws Exception {\r\n\t\tsuper (buffer);\r\n\t\tthis.reset();\r\n\t\tthis.bufferInputFileLength = bufferInputFileLength;\r\n\t\tthis.initializeStream();\r\n\t}", "public T caseAT_Header(AT_Header object) {\r\n\t\treturn null;\r\n\t}", "public void setFileHeaderInfo(String fileHeaderInfo) {\n this.fileHeaderInfo = fileHeaderInfo;\n }", "public Header(String headerCode, HashMap<String, String> attributes) {\n\t\tsuper(tag(Header.class), headerCode, attributes); \n\t}", "public CommentHeader(BaseBlock bb, byte[] commentHeader) {\r\n super(bb);\r\n\r\n int pos = 0;\r\n// unpSize = Raw.readShortLittleEndian(commentHeader, pos);\r\n pos += 2;\r\n unpVersion |= commentHeader[pos] & 0xff;\r\n pos++;\r\n\r\n unpMethod |= commentHeader[pos] & 0xff;\r\n pos++;\r\n// commCRC = Raw.readShortLittleEndian(commentHeader, pos);\r\n\r\n }", "public T caseET_Header(ET_Header object) {\r\n\t\treturn null;\r\n\t}", "public DetailsFileHeaderTemplate() {\n\t\tsuper(ID_HEADER_LABEL, DESCRIPTION_HEADER_LABEL, OCCURRENCES_HEADER_LABEL);\n\t}", "public void setHeader(String header) {\n this.header = header;\n }", "private HTTPHeaderEntry extractHeader(String headerStr) {\n \n \t\tHTTPHeaderEntry headerEntry = null;\n \t\tString[] each = headerStr.split( \": \" );\n \t\tif ( each[0].equals( HeaderEntry.CONTENT_TYPE.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( HeaderEntry.CONTENT_TYPE, each[1] );\n \t\t}\n \t\telse if ( each[0].equals( HeaderEntry.DATE.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( HeaderEntry.DATE, each[1] );\n \t\t}\n \t\telse if ( each[0].equals( ResponseHeaderEntry.CONTENT_LENGTH.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( ResponseHeaderEntry.CONTENT_LENGTH, Integer.parseInt( each[1] ) );\n \t\t}\n \n \t\theader.add( headerEntry );\n \t\treturn headerEntry;\n \t}", "void setHeader(java.lang.String header);", "public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}", "private void init(String fastaHeader, String AAsequence) {\n if (fastaHeader.substring(0, 1).equals(\">\")) {\n\n m_fasta_header = fastaHeader;\n m_aa_sequence = AAsequence;\n m_coordinates_map = new ArrayList<>();\n m_cds_annotation_correct = 0;\n\n m_gene_id = extract_gene_id_fasta(fastaHeader);\n m_transcript_id = extract_transcript_id_fasta(fastaHeader);\n\n if (PepGenomeTool.useExonCoords) {\n // Exco mode\n // Using exon coords in place of CDS, offset describes distance in nucleotides from exon start to translation start.\n m_translation_offset = extract_offset_fasta(fastaHeader);\n\n }\n else {\n // Not using exon coords in place of CDS - Using original format\n m_translation_offset = 0;\n }\n\n // Put transcript ID and offset value into translation offset map in PepGenomeTool\n PepGenomeTool.m_translation_offset_map.put(m_transcript_id, m_translation_offset);\n\n }\n }", "protected void readHeader() {\n // Denote no lines have been read.\n this.lineCount = 0;\n // Read the header.\n if (! this.reader.hasNext()) {\n // Here the entire file is empty. Insure we get EOF on the first read.\n this.nextLine = null;\n } else {\n this.headerLine = this.reader.next();\n // Parse the header line into labels and normalize them to lower case.\n this.labels = this.splitLine(headerLine);\n // Set up to return the first data line.\n this.readAhead();\n }\n }", "private void setupHeader(final String filePath) throws IOException{\n\t\tFile headerFile = new File(filePath);\n\t\tString dataString = new String();\n\t\tBufferedReader reader = new BufferedReader(new FileReader(headerFile));\n\t\twhile((dataString = reader.readLine()) != null){\n\t\t\theaderText.append(dataString);\n\t\t\theaderText.append(System.lineSeparator());\n\t\t}\n\t\treader.close();\n\t}", "public void setToTag(String tag) {\n try{\n toHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }", "private HeaderProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private static void setHeaderFields (String senderOID, String receiverOID) {\n result.setITSVersion(HL7Constants.ITS_VERSION);\n result.setId(HL7MessageIdGenerator.GenerateHL7MessageId(localDeviceId));\n result.setCreationTime(HL7DataTransformHelper.CreationTimeFactory());\n result.setInteractionId(HL7DataTransformHelper.IIFactory(HL7Constants.INTERACTION_ID_ROOT, \"PRPA_IN201302UV\"));\n result.setProcessingCode(HL7DataTransformHelper.CSFactory(\"T\"));\n result.setProcessingModeCode(HL7DataTransformHelper.CSFactory(\"T\"));\n result.setAcceptAckCode(HL7DataTransformHelper.CSFactory(\"AL\"));\n \n // Create the Sender\n result.setSender(HL7SenderTransforms.createMCCIMT000100UV01Sender(senderOID));\n\n // Create the Receiver\n result.getReceiver().add(HL7ReceiverTransforms.createMCCIMT000100UV01Receiver(receiverOID));\n }", "public void setHeader(String header) {\n\t\t_header = header;\n\t}", "private void serializeHeader(ByteBuffer buffer){\n buffer.putShort(msgType); //2B\n if(srcIP==null) srcIP=\"\";\n String srcIP_temp = srcIP;\n for(int i=0; i<15-srcIP.length(); i++) {\n srcIP_temp = srcIP_temp + \" \";\n }\n buffer.put(srcIP_temp.getBytes()); //15B\n buffer.putInt(srcPort); //4B\n buffer.putFloat(desCost); //4B\n\n String desIP_temp = desIP;\n for(int i=0; i<15-desIP.length(); i++) {\n desIP_temp = desIP_temp + \" \";\n }\n buffer.put(desIP_temp.getBytes()); //15B\n buffer.putInt(desPort);\n }", "public Headers()\n\t{\n\t\tthis.headers = new HashMap<>();\n\t\tthis.originalCasing = new HashMap<>();\n\t\tthis.acceptHeaders = new HashMap<>();\n\t}", "public RemoveObject2Tag(RecordHeader recordHeader) {\n this.recordHeader = new RecordHeader();\n this.recordHeader.setTagCode(recordHeader.getTagCode());\n this.recordHeader.setTagLength(recordHeader.getTagLength());\n }", "public void setHeader(String header) {\n\t\tthis.header = header;\n\t}", "public MultiPacketInit(byte[] pkt) throws Exception\n\t{\t\t\n\t\t if((pkt[0] & 0xE0) != (0x80))\n\t\t\t throw new Exception (\"Invalid MultiPacket header.\");\n\t\t \n\t\t this.data = pkt;\n\t\t \n\t\t byte[] totLenBytes = new byte[4];\n\t\t System.arraycopy(pkt, 1, totLenBytes, 0, totLenBytes.length);\n\t\t this.totalLen = ByteBuffer.wrap(totLenBytes).getInt();\n\t}", "public PcapPktHdr() {\n\t\tthis.seconds = System.currentTimeMillis() / 1000; // In seconds\n\t\tthis.useconds = (int) (System.nanoTime() / 1000); // Microseconds\n\n\t\tthis.caplen = 0;\n\t\tthis.len = 0;\n\t}", "private void _readHeader() throws PicoException, IOException {\n if (!_open)\n return;\n\n // Save the current position and move to the start of the header.\n long pos = _backing.getFilePointer();\n _backing.seek(PicoStructure.HEAD_START);\n\n // Read the header from the file. We read the fixed length portion\n // here, up through the start of the key.\n byte[] _fixedhdr = new byte[(int) PicoStructure.FIXED_HEADER_LENGTH];\n int length = _backing.read(_fixedhdr);\n\n // Make sure we have enough bytes for the magic string.\n if (length < PicoStructure.MAGIC_LENGTH - PicoStructure.MAGIC_OFFSET) {\n // The magic string was not present. This cannot be a Pico wrapper\n // file.\n throw new PicoException(\"File too short; missing magic string.\");\n }\n\n // Process the fixed portion of the header. After calling this the\n // key is allocated, but not populated.\n _head = PicoHeader.getHeader(_fixedhdr);\n\n // The hash is valid because we just read it from the file and nothing\n // has yet been written. All write methods must invalidate the hash.\n _hashvalid = true;\n\n // Go and read the key, now that we know its length. Note that we read\n // it directly into the array returned by getKey.\n length = _backing.read(_head.getKey());\n\n // Make sure we have the complete key. The only bad case is that the\n // file ends before the key is complete.\n if (length != _head.getKey().length) {\n throw new PicoException(\"File too short; incomplete key.\");\n }\n\n // Move to the original position in the file.\n _backing.seek(pos);\n\n // Ka-presto! The header has been read. Life is good.\n }", "private static MessageHeader createHeader(ConnectionHeader connectionHeader, File file) {\n\n\t\tObject[] iov = new Object[4];\n\t\tiov[0] = connectionHeader.getProtocolVersion();\n\t\tiov[1]= connectionHeader.getMessageType();\n\t\tiov[2] = connectionHeader.getDataLen();\n\t\tiov[3] = connectionHeader.getMetaLen();\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\t\tif(file != null) {\n\t\t\tmh.setFilePath(file.getAbsolutePath());\n\t\t}\n\n\t\treturn mh;\n\t}", "protected void bInit()\n {\n \tb_expect_seqnum=1;\n //\tMessage m=new Message(String.valueOf(new char[20]));\n //\tb_sndpkt=make_pkt(0,m,0);//make a package\n }", "public CSVInput withFileHeaderInfo(FileHeaderInfo fileHeaderInfo) {\n this.fileHeaderInfo = fileHeaderInfo.toString();\n return this;\n }", "protected final int populateSECSItemHeaderData(byte[] buffer, int numberOfBytes)\n {\n int offset = 0;\n byte[] outputLengthBytes = new byte[]{0, 0, 0, 0};\n buffer[0] = (byte)((SECSItemFormatCode.getNumberFromSECSItemFormatCode(formatCode) << 2) | outboundNumberOfLengthBytes.valueOf());\n \n ByteBuffer bb = ByteBuffer.wrap(outputLengthBytes);\n bb.order(ByteOrder.BIG_ENDIAN);\n bb.putInt(numberOfBytes);\n\n switch(outboundNumberOfLengthBytes)\n {\n case ONE:\n buffer[1] = outputLengthBytes[3];\n offset = 2;\n break;\n case TWO:\n buffer[1] = outputLengthBytes[2];\n buffer[2] = outputLengthBytes[3];\n offset = 3;\n break;\n case THREE:\n buffer[1] = outputLengthBytes[1];\n buffer[2] = outputLengthBytes[2];\n buffer[3] = outputLengthBytes[3];\n offset = 4;\n break;\n case NOT_INITIALIZED:\n System.err.println(\"The case where outboundNumberOfLengthBytes is still in its NOT_INITIALIZED state should never happen.\");\n break;\n }\n \n return offset;\n }", "private static Text createHeader() {\n StringBuilder stringBuilder = new StringBuilder();\n //noinspection HardCodedStringLiteral\n stringBuilder.append(\"Offset \");\n for (int i = 0; i < 16; i++) {\n stringBuilder.append(\" 0\");\n stringBuilder.append(Integer.toHexString(i));\n }\n stringBuilder.append(System.lineSeparator()).append(System.lineSeparator());\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "public void fromBuffer(ByteBufWrapper paramhd)\r\n/* 18: */ {\r\n/* 19:35 */ this.b = ((np)a.fromJson(paramhd.c(32767), np.class));\r\n/* 20: */ }", "@Override\n\tpublic void builder(ByteBuffer buffer) {\n\t\tsetV(buffer);\n\t\tsetO(buffer);\n\t\tsetT(buffer);\n\t\tsetLen(buffer);\n\t\tsetContents(buffer);\n\t\tsetTotalByteLength();\n\t}", "TCPTransportHeader(String transportData) {\n this.headerFrame = transportData;\n sourcePort = convertStringToHex(headerFrame.substring(0, 16));\n destinationPort = convertStringToHex(headerFrame.substring(16, 32));\n sequenceNumber = \"x\" + convertStringToHex(headerFrame.substring(32, 64));\n acknowledgementNumber = \"x\" + convertStringToHex(headerFrame.substring(64, 96));\n headerLength = \"x\" + convertStringToHex(headerFrame.substring(96, 100));\n reservedBits = (headerFrame.substring(100, 106));\n URG = convertStringToHex(headerFrame.substring(106, 107));\n ACK = convertStringToHex(headerFrame.substring(107, 108));\n PSH = convertStringToHex(headerFrame.substring(108, 109));\n RST = convertStringToHex(headerFrame.substring(109, 110));\n SYN = convertStringToHex(headerFrame.substring(110, 111));\n FIN = convertStringToHex(headerFrame.substring(111, 112));\n WindowSize = \"x\" + convertStringToHex(headerFrame.substring(112, 128));\n CheckSum = \"x\" + convertStringToHex(headerFrame.substring(128, 144));\n UrgentPointer = \"x\" + convertStringToHex(headerFrame.substring(144, 160));\n\n System.out.println(this);\n }", "@Override\n\tpublic void initialize(MutableAggregationBuffer buffer) {\n\t\tbuffer.update(0, null);\n\t\tbuffer.update(1, 0l);\n\t\tbuffer.update(2, 0l);\n\t}", "private void initialiseHeader()\n\t{\n\t ListHead head = null;\n\n\t head = super.getListHead();\n\n\t //init only once\n\t if (head != null)\n\t {\n\t \treturn;\n\t }\n\n\t head = new ListHead();\n\n\t // render list head\n\t if (this.getItemRenderer() instanceof WListItemRenderer)\n\t {\n\t \t((WListItemRenderer)this.getItemRenderer()).renderListHead(head);\n\t }\n\t else\n\t {\n\t \tthrow new ApplicationException(\"Rendering of the ListHead is unsupported for \"\n\t \t\t\t+ this.getItemRenderer().getClass().getSimpleName());\n\t }\n\n\t //attach the listhead\n\t head.setParent(this);\n\n\t return;\n\t}", "public DSRRoutingHeader(DSRRoutingHeader header) \n {\n super(header);\n validRoute = header.validRoute;\n protocoll = header.protocoll;\n setTargetLocation(header.targetLocation);\n }", "private respHeader(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }", "private void loadBuffer(ByteBuffer buffer) {\n byteBuffer = buffer.get();\n }", "@Override\n public void setHeader(String arg0, String arg1) {\n\n }", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "public Builder setHeaderTableIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n headerTableId_ = value;\n onChanged();\n return this;\n }", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }" ]
[ "0.6662747", "0.65779656", "0.6253181", "0.621582", "0.6161134", "0.6045143", "0.6039432", "0.5972711", "0.562571", "0.5586709", "0.5577412", "0.55381244", "0.54261434", "0.5369906", "0.5330284", "0.5291149", "0.52497137", "0.5232076", "0.52219254", "0.51829714", "0.51814497", "0.5173699", "0.5127974", "0.50756526", "0.5071279", "0.50408834", "0.5037374", "0.5034893", "0.5017755", "0.5017749", "0.5013482", "0.4967221", "0.49526992", "0.494721", "0.49340495", "0.49172235", "0.49151215", "0.49113548", "0.48920515", "0.48912317", "0.48876646", "0.4851443", "0.48322213", "0.48298088", "0.48202607", "0.4810801", "0.48088393", "0.48028332", "0.47985643", "0.47916868", "0.47881937", "0.47877765", "0.4775287", "0.47641987", "0.47463614", "0.47352362", "0.4734782", "0.4724035", "0.4716789", "0.4708503", "0.47078425", "0.46933782", "0.4690467", "0.46876344", "0.46865135", "0.46831268", "0.46610576", "0.46481907", "0.4644003", "0.46324477", "0.46299857", "0.46224526", "0.46120355", "0.46108362", "0.4609646", "0.45900202", "0.4567705", "0.45588744", "0.45571288", "0.45491645", "0.45319104", "0.45222005", "0.4520318", "0.45052573", "0.44999126", "0.44972575", "0.44968593", "0.44901842", "0.44840753", "0.44684654", "0.4467413", "0.44618097", "0.44615513", "0.44580966", "0.44539022", "0.4439287", "0.44192237", "0.4407308", "0.43998268", "0.4399694" ]
0.7717323
0
Initializes a TarHeader by reading the supplied file attributes and then populates the header attributes.
public TarHeader(File file, String ppath) { this.header = new byte[TarLibConstants.TAR_HEADER_SIZE]; initlializeHeaderFields(file, ppath); writeToBuffer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TarHeader(byte buff[]) throws IOException {\r\n this.header = buff;\r\n initlializeHeaderFields();\r\n }", "private void initMetadata() throws IOException {\n \n // start by reading the file header\n in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n metadata.put(\"Byte Order\", new Boolean(little));\n \n in.skipBytes(4);\n in.read(toRead);\n long version = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Version\", new Long(version));\n \n byte[] er = new byte[2];\n in.read(er);\n short count = DataTools.bytesToShort(er, little);\n metadata.put(\"Count\", new Short(count));\n \n in.skipBytes(2);\n \n in.read(toRead);\n long offset = DataTools.bytesToLong(toRead, little);\n \n // skip to first tag\n in.seek(offset);\n \n // read in each tag and its data\n \n for (int i=0; i<count; i++) {\n in.read(er);\n short tag = DataTools.bytesToShort(er, little);\n in.skipBytes(2);\n \n in.read(toRead);\n offset = DataTools.bytesToLong(toRead, little);\n \n in.read(toRead);\n long fmt = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Format\", new Long(fmt));\n \n in.read(toRead);\n long numBytes = DataTools.bytesToLong(toRead, little);\n metadata.put(\"NumBytes\", new Long(numBytes));\n \n if (tag == 67 || tag == 68) {\n byte[] b = new byte[1];\n in.read(b);\n boolean isOpenlab2;\n if (b[0] == '0') isOpenlab2 = false;\n else isOpenlab2 = true;\n metadata.put(\"isOpenlab2\", new Boolean(isOpenlab2));\n \n in.skipBytes(2);\n in.read(er);\n short layerId = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerID\", new Short(layerId));\n \n in.read(er);\n short layerType = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerType\", new Short(layerType));\n \n in.read(er);\n short bitDepth = DataTools.bytesToShort(er, little);\n metadata.put(\"BitDepth\", new Short(bitDepth));\n \n in.read(er);\n short opacity = DataTools.bytesToShort(er, little);\n metadata.put(\"Opacity\", new Short(opacity));\n \n // not sure how many bytes to skip here\n in.skipBytes(10);\n \n in.read(toRead);\n long type = DataTools.bytesToLong(toRead, little);\n metadata.put(\"ImageType\", new Long(type));\n \n // not sure how many bytes to skip\n in.skipBytes(10);\n \n in.read(toRead);\n long timestamp = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp\", new Long(timestamp));\n \n in.skipBytes(2);\n \n if (isOpenlab2 == true) {\n byte[] layerName = new byte[127];\n in.read(layerName);\n metadata.put(\"LayerName\", new String(layerName));\n \n in.read(toRead);\n long timestampMS = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp-MS\", new Long(timestampMS));\n \n in.skipBytes(1);\n byte[] notes = new byte[118];\n in.read(notes);\n metadata.put(\"Notes\", new String(notes));\n }\n else in.skipBytes(123);\n }\n else if (tag == 69) {\n in.read(toRead);\n long platform = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Platform\", new Long(platform));\n \n in.read(er);\n short units = DataTools.bytesToShort(er, little);\n metadata.put(\"Units\", new Short(units));\n \n in.read(er);\n short imageId = DataTools.bytesToShort(er, little);\n metadata.put(\"ID\", new Short(imageId));\n in.skipBytes(1);\n \n byte[] toRead2 = new byte[8];\n double xOrigin = DataTools.readDouble(in, little);\n metadata.put(\"XOrigin\", new Double(xOrigin));\n double yOrigin = DataTools.readDouble(in, little);\n metadata.put(\"YOrigin\", new Double(yOrigin));\n double xScale = DataTools.readDouble(in, little);\n metadata.put(\"XScale\", new Double(xScale));\n double yScale = DataTools.readDouble(in, little);\n metadata.put(\"YScale\", new Double(yScale));\n in.skipBytes(1);\n \n byte[] other = new byte[31];\n in.read(other);\n metadata.put(\"Other\", new String(other));\n }\n \n // Initialize OME metadata\n \n if (ome != null) {\n OMETools.setBigEndian(ome, !little);\n if (metadata.get(\"BitDepth\") != null) {\n int bitDepth = ((Integer) metadata.get(\"BitDepth\")).intValue();\n String type;\n \n if (bitDepth <= 8) type = \"int8\";\n else if (bitDepth <= 16) type = \"int16\";\n else type = \"int32\";\n \n OMETools.setPixelType(ome, type);\n }\n if (metadata.get(\"Timestamp\") != null) {\n OMETools.setCreationDate(ome, (String) metadata.get(\"Timestamp\"));\n }\n \n if (metadata.get(\"XOrigin\") != null) {\n Double xOrigin = (Double) metadata.get(\"XOrigin\");\n OMETools.setStageX(ome, xOrigin.floatValue());\n }\n \n if (metadata.get(\"YOrigin\") != null) {\n Double yOrigin = (Double) metadata.get(\"YOrigin\");\n OMETools.setStageY(ome, yOrigin.floatValue());\n }\n \n if (metadata.get(\"XScale\") != null) {\n Double xScale = (Double) metadata.get(\"XScale\");\n OMETools.setPixelSizeX(ome, xScale.floatValue());\n }\n \n if (metadata.get(\"YScale\") != null) {\n Double yScale = (Double) metadata.get(\"YScale\");\n OMETools.setPixelSizeY(ome, yScale.floatValue());\n }\n }\n in.seek(offset);\n }\n }", "TarEntry CreateEntry(byte[] headerBuffer);", "public FileHeader(RandomAccessFile rafShp_) throws IOException {\n\n rafShp = rafShp_; \n\n initHeader(false); \n }", "public TarArchiveEntry(byte[] headerBuf, ArchiveEntryEncoding encoding) throws IOException {\n this();\n parseTarHeader(headerBuf, encoding);\n }", "public Header(String headerCode, HashMap<String, String> attributes) {\n\t\tsuper(tag(Header.class), headerCode, attributes); \n\t}", "public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }", "protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }", "private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArray[ndx][0] = attributes[ndx];\n dataArray[ndx][1] = headerFile.get(attributes[ndx]);\n if (attributes[ndx].toString().equals(\"Description\"))\n Description = headerFile.get(attributes[ndx]);\n }\n data = dataArray;\n }", "public Importer(File directory) {\r\n\t\tsuper();\r\n\t\t_headerObject = new HeaderObject();\r\n\t\t_headerObject._directory = directory;\r\n\t}", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "private void initialise() {\n addHeaderSetting(new HeaderSettingInteger(Setting.VERSION.toString(),0,4,0x6));\n addHeaderSetting(new HeaderSettingInteger(Setting.TRAFFIC_CLASS.toString(),4,8,0));\n addHeaderSetting(new HeaderSettingLong(Setting.FLOW_LABEL.toString(),12,20,0));\n addHeaderSetting(new HeaderSettingLong(Setting.PAYLOAD_LENGTH.toString(),32,16,20));\n addHeaderSetting(new HeaderSettingInteger(Setting.NEXT_HEADER.toString(),48,8,253));\n addHeaderSetting(new HeaderSettingInteger(Setting.HOP_LIMIT.toString(),56,8,255));\n addHeaderSetting(new HeaderSettingHexString(Setting.SOURCE_ADDRESS.toString(),64,128,\"\"));\n addHeaderSetting(new HeaderSettingHexString(Setting.DESTINATION_ADDRESS.toString(),192,128,\"\"));\n }", "private void init(FastaEntry fastaEntry) {\n init(fastaEntry.get_header(), fastaEntry.get_sequence());\n }", "public DetailsFileHeaderTemplate() {\n\t\tsuper(ID_HEADER_LABEL, DESCRIPTION_HEADER_LABEL, OCCURRENCES_HEADER_LABEL);\n\t}", "private void init() throws FileNotFoundException, TransformerConfigurationException {\n try (Scanner filesscanner = new Scanner(new File(csvlocation))) {\n while (filesscanner.hasNext()) {\n filecontent.add(filesscanner.next());\n }\n if (!filecontent.isEmpty()) {\n this.header = filecontent.get(0);\n filecontent.remove(0);\n }\n setMailtemplate();\n } catch (FileNotFoundException | TransformerConfigurationException e) {\n LOGGER.error(\"Exception occured while reading the file\", e);\n throw e;\n }\n }", "public void constructWith(LzzFileInfo pro) {\n\t\tthis.id = pro.getId ();\n\n\t\tthis.fname = pro.getFname ();\n\n\t\tthis.ftype = pro.getFtype ();\n\n\t\tthis.fsavepath = pro.getFsavepath ();\n\n\t\tthis.furlpath = pro.getFurlpath ();\n\n\t\tthis.createTime = pro.getCreateTime ();\n\n\t\tthis.modifyTime = pro.getModifyTime ();\n\n\t\tthis.def1 = pro.getDef1 ();\n\n\t\tthis.def2 = pro.getDef2 ();\n\n\t\tthis.def3 = pro.getDef3 ();\n\n\t\tthis.def4 = pro.getDef4 ();\n\n\t\tthis.def5 = pro.getDef5 ();\n\n\t\tthis.def6 = pro.getDef6 ();\n\n\t\tthis.def7 = pro.getDef7 ();\n\n\t\tthis.def8 = pro.getDef8 ();\n\n\t\tthis.def9 = pro.getDef9 ();\n\n\t\tthis.def10 = pro.getDef10 ();\n\n\t\tthis.dr = pro.getDr ();\n\n\t}", "public APEHeader(final File file) {\n m_pIO = file;\n }", "public FileHeader(RandomAccessFile rafShp_, boolean newHeader) throws IOException {\n\n rafShp = rafShp_; \n\n initHeader(newHeader); \n }", "private void initHeader(boolean newHeader) throws IOException {\n\n if (newHeader) writeHeader();\n /*\n if (rafShp.read() == -1) { \n //File is empty, write a new one (what else???)\n writeHeader();\n } \n */ \n readHeader();\n }", "public TarFile(File file) {\n this.file = file;\n }", "public void parseHeader() {\n\t\tthis.release = (Integer) this.headerData.get(0);\n\t\tthis.endian = (ByteOrder) this.headerData.get(1);\n\t\tthis.K = (Short) this.headerData.get(2);\n\t\tthis.datasetLabel = (String) this.headerData.get(4);\n\t\tthis.datasetTimeStamp = (String) this.headerData.get(5);\n\t\tthis.mapOffset = (Integer) this.headerData.get(6);\n\t}", "public TagHeader_v2_3(byte[] data, InputStream in)\n throws IOException\n {\n super(data);\n if (usesExtendedHeader())\n extHeader = makeExtendedHeader(in);\n }", "public void parseTarHeader(byte[] header, ArchiveEntryEncoding encoding)\n throws IOException {\n parseTarHeader(header, encoding, false);\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}", "private void initializeAnimalHeader() {\r\n\t\t//initialize text\r\n\t\tTextProperties textProps = new TextProperties();\r\n\t\ttextProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"SansSerif\", Font.BOLD, 24));\r\n\t\ttextProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 1);\r\n\t\tlang.newText(new Coordinates(20, 30), \"ShiftRows\", \"header\", null, textProps);\r\n\t\t//initialize rectangle\r\n\t\tRectProperties hRectProps = new RectProperties();\r\n\t\thRectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tlang.newRect(new Offset(-5, -5, \"header\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"header\", AnimalScript.DIRECTION_SE), \"hRect\", null, hRectProps);\r\n\t}", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "private DataHeader(final File file, final long offset,\n final File nextFile, final long nextOffset,\n final Instant nextTime, final CtrlInfoReader info,\n final DbrType dbrType, final short dbrCount, final long numSamples)\n {\n this.file = file;\n this.offset = offset;\n this.nextFile = nextFile;\n this.nextOffset = nextOffset;\n this.nextTime = nextTime;\n\n //this.startTime = startTime;\n //this.endTime = endTime;\n\n this.info = info;\n this.dbrType = dbrType;\n this.dbrCount = dbrCount;\n this.numSamples = numSamples;\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "private void initializeKnownHeaders() {\r\n needParceHeader = true;\r\n \r\n addMainHeader(\"city\", getPossibleHeaders(DataLoadPreferences.NH_CITY));\r\n addMainHeader(\"msc\", getPossibleHeaders(DataLoadPreferences.NH_MSC));\r\n addMainHeader(\"bsc\", getPossibleHeaders(DataLoadPreferences.NH_BSC));\r\n addMainIdentityHeader(\"site\", getPossibleHeaders(DataLoadPreferences.NH_SITE));\r\n addMainIdentityHeader(\"sector\", getPossibleHeaders(DataLoadPreferences.NH_SECTOR));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_CI, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_CI));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_LAC, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_LAC));\r\n addMainHeader(INeoConstants.PROPERTY_LAT_NAME, getPossibleHeaders(DataLoadPreferences.NH_LATITUDE));\r\n addMainHeader(INeoConstants.PROPERTY_LON_NAME, getPossibleHeaders(DataLoadPreferences.NH_LONGITUDE));\r\n // Stop statistics collection for properties we will not save to the sector\r\n addNonDataHeaders(1, mainHeaders);\r\n \r\n // force String types on some risky headers (sometimes these look like integers)\r\n useMapper(1, \"site\", new StringMapper());\r\n useMapper(1, \"sector\", new StringMapper());\r\n \r\n // Known headers that are sector data properties\r\n addKnownHeader(1, \"beamwidth\", getPossibleHeaders(DataLoadPreferences.NH_BEAMWIDTH), false);\r\n addKnownHeader(1, \"azimuth\", getPossibleHeaders(DataLoadPreferences.NH_AZIMUTH), false);\r\n }", "TarEntry CreateEntryFromFile(String fileName);", "protected PicoFile(RandomAccessFile backing, byte[] key) throws IOException {\n assert backing != null : \"Backing is null.\";\n assert key != null : \"Key is null.\";\n assert key.length > 0 : \"Key is missing.\";\n _backing = backing;\n _open = true;\n _resetDigest();\n // We are creating a new file, so truncate any existing file and\n // generate a new header.\n _backing.setLength(0L);\n _head = new PicoHeader();\n _head.setKey(key);\n\n // Now the Header size is fixed since we have the key and know the size\n // of the hash\n // we will write later.\n\n // This actually positions us to _head.offset + 0\n position(0L);\n }", "public Object initialize(final File source) throws FileNotFoundException {\n List<String> header = null;\n int linesLookedAt = 0;\n xReadLines reader = new xReadLines(source);\n \n for ( String line : reader ) {\n Matcher m = HEADER_PATTERN.matcher(line);\n if ( m.matches() ) {\n //System.out.printf(\"Found a header line: %s%n\", line);\n header = new ArrayList<String>(Arrays.asList(line.split(DELIMITER_REGEX)));\n //System.out.printf(\"HEADER IS %s%n\", Utils.join(\":\", header));\n }\n \n if ( linesLookedAt++ > MAX_LINES_TO_LOOK_FOR_HEADER )\n break;\n }\n \n // check that we found the header\n if ( header != null ) {\n logger.debug(String.format(\"HEADER IS %s%n\", Utils.join(\":\", header)));\n } else {\n // use the indexes as the header fields\n logger.debug(\"USING INDEXES FOR ROD HEADER\");\n // reset if necessary\n if ( !reader.hasNext() )\n reader = new xReadLines(source);\n header = new ArrayList<String>();\n int tokens = reader.next().split(DELIMITER_REGEX).length;\n for ( int i = 0; i < tokens; i++)\n header.add(Integer.toString(i));\n }\n \n return header;\n }", "public ShareFileHttpHeaders() {}", "private void initializeTestFile(File testFile) throws IOException {\n testReader = new ASCIIreader(testFile);\n }", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "public void init(String tmpInputFile)\r\n {\n readFile(tmpInputFile);\r\n writeInfoFile();\r\n }", "public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }", "public HeaderDescriptor() \n {\n super();\n xmlName = \"header\";\n elementDefinition = true;\n \n //-- set grouping compositor\n setCompositorAsSequence();\n org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\n org.exolab.castor.mapping.FieldHandler handler = null;\n org.exolab.castor.xml.FieldValidator fieldValidator = null;\n //-- initialize attribute descriptors\n \n //-- initialize element descriptors\n \n //-- _transactionId\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(long.class, \"_transactionId\", \"transaction-id\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTransactionId())\n return null;\n return new java.lang.Long(target.getTransactionId());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // ignore null values for non optional primitives\n if (value == null) return;\n \n target.setTransactionId( ((java.lang.Long)value).longValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _transactionId\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n LongValidator typeValidator = new LongValidator();\n typeValidator .setMinInclusive(-1L);\n typeValidator .setMaxInclusive(4294967295L);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opName\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_opName\", \"op-name\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpName();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpName( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opName\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.OpTypeType.class, \"_opType\", \"op-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpType( (com.opengate.webservice.xml.types.OpTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.OpTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _identifier\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_identifier\", \"identifier\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getIdentifier();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setIdentifier( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _identifier\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _connectorType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.ConnectorTypeType.class, \"_connectorType\", \"connector-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getConnectorType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setConnectorType( (com.opengate.webservice.xml.types.ConnectorTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.ConnectorTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _connectorType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _timestamp\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.util.Date.class, \"_timestamp\", \"timestamp\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getTimestamp();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setTimestamp( (java.util.Date) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new java.util.Date();\n }\n };\n handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _timestamp\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _notification\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.Notification.class, \"_notification\", \"notification\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getNotification();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setNotification( (com.opengate.webservice.xml.Notification) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new com.opengate.webservice.xml.Notification();\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _notification\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _ttl\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, \"_ttl\", \"ttl\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTtl())\n return null;\n return new java.lang.Integer(target.getTtl());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // if null, use delete method for optional primitives \n if (value == null) {\n target.deleteTtl();\n return;\n }\n target.setTtl( ((java.lang.Integer)value).intValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _ttl\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n IntegerValidator typeValidator= new IntegerValidator();\n typeValidator.setMinInclusive(-1);\n typeValidator.setMaxInclusive(2147483647);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\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 }", "public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}", "public void setFileHeaderInfo(String fileHeaderInfo) {\n this.fileHeaderInfo = fileHeaderInfo;\n }", "public void setHeaderAttributeCount(int headerAttributeCount)\n {\n this.headerAttributeCount = headerAttributeCount;\n }", "@Test\n public void validHeaderTest(){\n //test for a complete header with some missing values\n Header h;\n SimpleReader sr = new SimpleReader();\n String fileForLexer = sr.FileToString(\"sample_abc/piece1.abc\");\n abcLexer lex = new abcLexer(fileForLexer);\n abcParser parser = new abcParser(lex);\n h=parser.parseHeader();\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getTitle(),\"PieceNo.1\");\n assertEquals(h.getComposer(),\"Unknown\");//uses a default value\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getMeter(),\"4/4\");\n assertEquals(h.getNoteLength(),\"1/4\");\n assertEquals(h.getTempo(),\"140\");\n assertEquals(h.getKey(),\"C\");\n }", "@Override\n public void init() throws IOException {\n super.init();\n metaUtils_ = new MetaUtils(conf_);\n }", "abstract void initialize(boolean fromFile,int r,int c);", "public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }", "@Override\n protected void initializeReader() {\n this.fileList = new ArrayList<>();\n this.fileListPosition = new AtomicInteger(0);\n this.currentTextAnnotation = new AtomicReference<>();\n }", "public void init(Properties properties) throws IOException;", "public HeapFile(File f, TupleDesc td) {\n // some code goes here\n this.f = f;\n this.td = td;\n }", "private NetFlowHeader prepareHeader() throws IOException {\n NetFlowHeader internalHeader;\n int numBytesRead = 0;\n int lenRead = 0;\n WrappedByteBuf buf;\n byte[] headerArray;\n\n // Read header depending on stream version (different from flow version)\n if (streamVersion == 1) {\n // Version 1 has static header\n // TODO: verify header size for stream version 1\n lenRead = NetFlowHeader.S1_HEADER_SIZE - METADATA_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder);\n } else {\n // Version 3 with dynamic header size\n headerArray = new byte[HEADER_OFFSET_LENGTH];\n numBytesRead = in.read(headerArray, 0, HEADER_OFFSET_LENGTH);\n if (numBytesRead != HEADER_OFFSET_LENGTH) {\n throw new UnsupportedOperationException(\"Short read while loading header offset\");\n }\n\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n int headerSize = (int)buf.getUnsignedInt(0);\n if (headerSize <= 0) {\n throw new UnsupportedOperationException(\"Failed to load header of size \" + headerSize);\n }\n\n // Actual header length, determine how many bytes to read\n lenRead = headerSize - METADATA_LENGTH - HEADER_OFFSET_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder, headerSize);\n }\n\n // allocate buffer for length to read\n headerArray = new byte[lenRead];\n numBytesRead = in.read(headerArray, 0, lenRead);\n if (numBytesRead != lenRead) {\n throw new UnsupportedOperationException(\"Short read while loading header data\");\n }\n // build buffer\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n\n // resolve stream version (either 1 or 3)\n if (streamVersion == 1) {\n internalHeader.setFlowVersion((short)buf.getUnsignedShort(0));\n internalHeader.setStartCapture(buf.getUnsignedInt(2));\n internalHeader.setEndCapture(buf.getUnsignedInt(6));\n internalHeader.setHeaderFlags(buf.getUnsignedInt(10));\n internalHeader.setRotation(buf.getUnsignedInt(14));\n internalHeader.setNumFlows(buf.getUnsignedInt(18));\n internalHeader.setNumDropped(buf.getUnsignedInt(22));\n internalHeader.setNumMisordered(buf.getUnsignedInt(26));\n // Read hostname fixed bytes\n byte[] hostnameBytes = new byte[NetFlowHeader.S1_HEADER_HN_LEN];\n buf.getBytes(30, hostnameBytes, 0, hostnameBytes.length);\n internalHeader.setHostname(new String(hostnameBytes));\n // Read comments fixed bytes\n byte[] commentsBytes = new byte[NetFlowHeader.S1_HEADER_CMNT_LEN];\n buf.getBytes(30 + hostnameBytes.length, commentsBytes, 0, commentsBytes.length);\n internalHeader.setComments(new String(commentsBytes));\n\n // Dereference arrays\n hostnameBytes = null;\n commentsBytes = null;\n } else {\n // Resolve TLV (type-length value)\n // Set decode pointer to first tlv\n int dp = 0;\n int left = lenRead;\n // Smallest TLV is 2+2+0 (null TLV)\n // tlv_t - TLV type, tlv_l - TLV length, tlv_v - TLV value\n int tlv_t = 0;\n int tlv_l = 0;\n int tlv_v = 0;\n\n // Byte array for holding Strings\n byte[] pr;\n\n while (left >= 4) {\n // Parse type, store in host byte order\n tlv_t = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse len, store in host byte order\n tlv_l = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse val\n tlv_v = dp;\n\n // Point decode buffer at next tlv\n dp += tlv_l;\n left -= tlv_l;\n\n // TLV length check\n if (left < 0) {\n break;\n }\n\n switch(tlv_t) {\n // FT_TLV_VENDOR\n case 0x1:\n internalHeader.setVendor(buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_EX_VER\n case 0x2:\n internalHeader.setFlowVersion((short) buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_AGG_VER\n case 0x3:\n internalHeader.setAggVersion(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_AGG_METHOD\n case 0x4:\n internalHeader.setAggMethod(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_EXPORTER_IP\n case 0x5:\n internalHeader.setExporterIP(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_START\n case 0x6:\n internalHeader.setStartCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_END\n case 0x7:\n internalHeader.setEndCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_HEADER_FLAGS\n case 0x8:\n internalHeader.setHeaderFlags(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_ROT_SCHEDULE\n case 0x9:\n internalHeader.setRotation(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_COUNT\n case 0xA:\n internalHeader.setNumFlows(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_LOST\n case 0xB:\n internalHeader.setNumDropped(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_MISORDERED\n case 0xC:\n internalHeader.setNumMisordered(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_PKT_CORRUPT\n case 0xD:\n internalHeader.setNumCorrupt(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_SEQ_RESET\n case 0xE:\n internalHeader.setSeqReset(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_HOSTNAME\n case 0xF:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setHostname(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_COMMENTS\n case 0x10:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setComments(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_NAME\n case 0x11:\n // uint32_t, uint16_t, string:\n // - IP address of device\n // - ifIndex of interface\n // - interface name\n long ip = buf.getUnsignedInt(tlv_v);\n int ifIndex = buf.getUnsignedShort(tlv_v + 4);\n pr = new byte[tlv_l - 4 - 2];\n buf.getBytes(tlv_v + 4 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setInterfaceName(ip, ifIndex, new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_ALIAS\n case 0x12:\n // uint32_t, uint16_t, uint16_t, string:\n // - IP address of device\n // - ifIndex count\n // - ifIndex of interface (count times)\n // - alias name\n long aliasIP = buf.getUnsignedInt(tlv_v);\n int aliasIfIndexCnt = buf.getUnsignedShort(tlv_v + 4);\n int aliasIfIndex = buf.getUnsignedShort(tlv_v + 4 + 2);\n pr = new byte[tlv_l - 4 - 2 - 2];\n buf.getBytes(tlv_v + 4 + 2 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setInterfaceAlias(aliasIP, aliasIfIndexCnt, aliasIfIndex,\n new String(pr, 0, pr.length - 1));\n break;\n // Case 0x0\n default:\n break;\n }\n }\n buf = null;\n pr = null;\n }\n return internalHeader;\n }", "public HeapFile(File f, TupleDesc td) {\n // some code goes here\n \tm_f = f;\n \tm_td = td;\n }", "public AncFile() {\n }", "public FileInfo(FileInfo v)\n \t{\n \t\ttitle = v.title;\n \t\tauthors = v.authors;\n \t\tseries = v.series;\n \t\tseriesNumber = v.seriesNumber;\n \t\tpath = v.path;\n \t\tfilename = v.filename;\n \t\tpathname = v.pathname;\n \t\tarcname = v.arcname;\n \t\tformat = v.format;\n \t\tsize = v.size;\n \t\tarcsize = v.arcsize;\n \t\tisArchive = v.isArchive;\n \t\tisDirectory = v.isDirectory;\n \t\tcreateTime = v.createTime;\n \t\tlastAccessTime = v.lastAccessTime;\n \t}", "@Override\n public void readFields(DataInput in) throws IOException {\n super.readFields(in);\n\n byte flags = in.readByte();\n hasFooter = (FOOTER_FLAG & flags) != 0;\n isOriginal = (ORIGINAL_FLAG & flags) != 0;\n hasBase = (BASE_FLAG & flags) != 0;\n boolean hasLongFileId = (HAS_LONG_FILEID_FLAG & flags) != 0,\n hasWritableFileId = (HAS_SYNTHETIC_FILEID_FLAG & flags) != 0,\n hasSyntheticProps = (HAS_SYNTHETIC_ACID_PROPS_FLAG & flags) != 0;\n if (hasLongFileId && hasWritableFileId) {\n throw new IOException(\"Invalid split - both file ID types present\");\n }\n\n deltas.clear();\n int numDeltas = in.readInt();\n for(int i=0; i < numDeltas; i++) {\n AcidInputFormat.DeltaMetaData dmd = new AcidInputFormat.DeltaMetaData();\n dmd.readFields(in);\n deltas.add(dmd);\n }\n if (hasFooter) {\n int tailLen = WritableUtils.readVInt(in);\n byte[] tailBuffer = new byte[tailLen];\n in.readFully(tailBuffer);\n OrcProto.FileTail fileTail = OrcProto.FileTail.parseFrom(tailBuffer);\n orcTail = new OrcTail(fileTail, null);\n }\n if (hasLongFileId) {\n fileKey = in.readLong();\n } else if (hasWritableFileId) {\n SyntheticFileId fileId = new SyntheticFileId();\n fileId.readFields(in);\n this.fileKey = fileId;\n }\n fileLen = in.readLong();\n rootDir = new Path(in.readUTF());\n\n if (hasSyntheticProps) {\n long rowId = in.readLong();\n int bucket = in.readInt();\n long writeId = in.readLong();\n\n syntheticAcidProps = new OffsetAndBucketProperty(rowId, bucket, writeId);\n }\n }", "public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException {\n super(entry);\n setName(entry.getName());\n final byte[] extra = entry.getExtra();\n if (extra != null) {\n setExtraFields(ExtraFieldUtils.parse(extra, true, ExtraFieldUtils.UnparseableExtraField.READ));\n } else {\n setExtra();\n }\n setMethod(entry.getMethod());\n this.size = entry.getSize();\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "public Headers()\n\t{\n\t\tthis.headers = new HashMap<>();\n\t\tthis.originalCasing = new HashMap<>();\n\t\tthis.acceptHeaders = new HashMap<>();\n\t}", "public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }", "private static MessageHeader createHeader(ConnectionHeader connectionHeader, File file) {\n\n\t\tObject[] iov = new Object[4];\n\t\tiov[0] = connectionHeader.getProtocolVersion();\n\t\tiov[1]= connectionHeader.getMessageType();\n\t\tiov[2] = connectionHeader.getDataLen();\n\t\tiov[3] = connectionHeader.getMetaLen();\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\t\tif(file != null) {\n\t\t\tmh.setFilePath(file.getAbsolutePath());\n\t\t}\n\n\t\treturn mh;\n\t}", "private void setupHeader(final String filePath) throws IOException{\n\t\tFile headerFile = new File(filePath);\n\t\tString dataString = new String();\n\t\tBufferedReader reader = new BufferedReader(new FileReader(headerFile));\n\t\twhile((dataString = reader.readLine()) != null){\n\t\t\theaderText.append(dataString);\n\t\t\theaderText.append(System.lineSeparator());\n\t\t}\n\t\treader.close();\n\t}", "public FileHeader(String objectTypeName, String formatTypeName,\r\n int version, char delimiter)\r\n throws InputDataFileException\r\n {\r\n try\r\n {\r\n // Ensure object type name is given\r\n Assertion.assertMsg(objectTypeName != null &&\r\n objectTypeName.length() > 0,\r\n \"Error creating FileHeader instance: \" +\r\n \"No object type name given.\");\r\n\r\n // Ensure format type name is given\r\n Assertion.assertMsg(formatTypeName != null &&\r\n formatTypeName.length() > 0,\r\n \"Error creating FileHeader instance: \" +\r\n \"No format type name given.\");\r\n\r\n // Copy data to object\r\n mObjectTypeName = objectTypeName;\r\n mFormatTypeName = formatTypeName;\r\n mVersion = version;\r\n mDelimiter = new Character(delimiter);\r\n }\r\n catch (AssertionException e)\r\n {\r\n throw new InputDataFileException(e.getMessage());\r\n }\r\n }", "public void init() throws IOException;", "public Header( String headerCode) {\n\t\tsuper(tag(Header.class), headerCode); \n\t}", "public CSVInput withFileHeaderInfo(FileHeaderInfo fileHeaderInfo) {\n this.fileHeaderInfo = fileHeaderInfo.toString();\n return this;\n }", "public PacketHeader(byte buffer[])\n\t\t{\n\t\t\n\t\t}", "public Importer(HeaderObject headerObject, File directory, String[] steps) {\r\n\t\tsuper();\r\n\t\t_headerObject = headerObject;\r\n\t\t_headerObject._directory = directory;\r\n\t\t_steps = steps;\r\n\t}", "public FileInfo(\r\n String _absolutePath,\r\n String _name,\r\n long _length )\r\n {\r\n this();\r\n absolutePath = _absolutePath;\r\n name = _name;\r\n length = _length;\r\n\r\n }", "public static DataHeader readDataHeader(ArchiveFileBuffer buffer, CtrlInfoReader info) throws Exception\n {\n final File file = buffer.getFile();\n final long offset = buffer.offset();\n\n // first part of data file header:\n // 4 bytes directory_offset (skipped)\n // \" next_offset (offset of next entry in its file)\n // \" prev_offset (offset of previous entry in its file)\n // \" cur_offset (used by FileAllocator writing file)\n // \" num_samples (number of samples in the buffer)\n // \" ctrl_info_offset (offset in this file of control info header (units, limits, etc.))\n // \" buff_size (bytes allocated for this entry, including header)\n // \" buff_free (number of un-used, allocated bytes for this header)\n // 2 bytes DbrType (type of data stored in buffer)\n // 2 bytes DbrCount (count of values for each buffer element, i.e. 1 for scalar types, >1 for array types)\n // 4 bytes padding (used to align the period)\n // 8 bytes (double) period\n // 8 bytes (epicsTimeStamp) begin_time\n // \" next_file_time\n // \" end_time\n // char [40] prev_file\n // char [40] next_file\n // --> Total of 152 bytes in data header\n buffer.skip(4);\n final long nextOffset = buffer.getUnsignedInt();\n buffer.skip(4);\n buffer.skip(4);\n final long numSamples = buffer.getUnsignedInt();\n final long ctrlInfoOffset = buffer.getUnsignedInt();\n final long buff_size = buffer.getUnsignedInt();\n final long buff_free = buffer.getUnsignedInt();\n final short dbrTypeCode = buffer.getShort();\n final short dbrCount = buffer.getShort();\n buffer.skip(4);\n buffer.skip(8);\n final Instant beginTime = buffer.getEpicsTime();\n final Instant nextTime = buffer.getEpicsTime();\n final Instant endTime = buffer.getEpicsTime();\n\n buffer.skip(40);\n final byte nameBytes [] = new byte [40];\n buffer.get(nameBytes);\n\n if (!info.isOffset(ctrlInfoOffset))\n info = new CtrlInfoReader(ctrlInfoOffset);\n final DbrType dbrType = DbrType.forValue(dbrTypeCode);\n\n // compute amount of data in this data file entry: (bytes allocated) - (bytes free) - (bytes in header)\n final long buffDataSize = buff_size - buff_free - 152;\n System.out.println(buffDataSize);\n\n // Size of samples:\n // 12 bytes for status/severity/timestamp,\n // padding, value, padding\n final long dbr_size = 12 + dbrType.padding + dbrCount * dbrType.valueSize + dbrType.getValuePad(dbrCount);\n final long expected = dbr_size * numSamples;\n System.out.println(dbr_size);\n System.out.println(expected);\n\n if (expected != buffDataSize)\n throw new Exception(\"Expected \" + expected + \" byte buffer, got \" + buffDataSize);\n\n String nextFilename = nextOffset != 0 ? new String(nameBytes).split(\"\\0\", 2)[0] : \"*\";\n File nextFile = new File(buffer.getFile().getParentFile(), nextFilename);\n\n logger.log(Level.FINE, \"Datablock\\n\" +\n \"Buffer : '\" + file + \"' @ 0x\" + Long.toHexString(offset) + \"\\n\" +\n \"Time : \" + beginTime + \"\\n\" +\n \"... : \" + endTime);\n\n return new DataHeader(file, offset, nextFile, nextOffset, nextTime, info, dbrType, dbrCount, numSamples);\n }", "private void _readHeader() throws PicoException, IOException {\n if (!_open)\n return;\n\n // Save the current position and move to the start of the header.\n long pos = _backing.getFilePointer();\n _backing.seek(PicoStructure.HEAD_START);\n\n // Read the header from the file. We read the fixed length portion\n // here, up through the start of the key.\n byte[] _fixedhdr = new byte[(int) PicoStructure.FIXED_HEADER_LENGTH];\n int length = _backing.read(_fixedhdr);\n\n // Make sure we have enough bytes for the magic string.\n if (length < PicoStructure.MAGIC_LENGTH - PicoStructure.MAGIC_OFFSET) {\n // The magic string was not present. This cannot be a Pico wrapper\n // file.\n throw new PicoException(\"File too short; missing magic string.\");\n }\n\n // Process the fixed portion of the header. After calling this the\n // key is allocated, but not populated.\n _head = PicoHeader.getHeader(_fixedhdr);\n\n // The hash is valid because we just read it from the file and nothing\n // has yet been written. All write methods must invalidate the hash.\n _hashvalid = true;\n\n // Go and read the key, now that we know its length. Note that we read\n // it directly into the array returned by getKey.\n length = _backing.read(_head.getKey());\n\n // Make sure we have the complete key. The only bad case is that the\n // file ends before the key is complete.\n if (length != _head.getKey().length) {\n throw new PicoException(\"File too short; incomplete key.\");\n }\n\n // Move to the original position in the file.\n _backing.seek(pos);\n\n // Ka-presto! The header has been read. Life is good.\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 }", "public RAFFile(Path metadataFile, Path archiveFile) throws IOException {\n\t\tthis.metadataFile = new RAFFileReader(metadataFile.toFile(), RAFFileReader.RAF_READWRITE);\n\t\tthis.archiveFile = new RAFFileReader(archiveFile.toFile(), RAFFileReader.RAF_READWRITE);\n\n\t\tfileEntries = new ArrayList<>();\n\n\t\treadMetadata();\n\t}", "private void init (Properties props) throws FileNotFoundException {\n\t\t\n\t\tport = Integer.parseInt (props.getProperty (AposNtrip.PROP_PORT));\n\t\tString userName = props.getProperty (AposNtrip.PROP_USERNAME);\n\t\tString password = props.getProperty (AposNtrip.PROP_PASSWORD);\n\t\tString mountPoint = props.getProperty (AposNtrip.PROP_MOUNTPOINT);\n\t\t\n\t\tbyte[] encodedPassword = ( userName + \":\" + password ).getBytes();\n\t Base64 encoder = new Base64 ();\n\t basicAuthentication = encoder.encode( encodedPassword );\n\t\n\t expectedRequest = \"GET /\" + mountPoint + \" HTTP/1.0\";\n\t expectedUserAgent = \"User-Agent: .*\";\n\t expectedAuthorisation = \"Authorization: Basic \" + (new String (basicAuthentication));\n\t expectedLocation = props.getProperty (PROP_EXPECTED_LOCATION);\n\t \n\t System.out.println (\"AposNtripCasterMock: expectedRequest=\" + expectedRequest);\n\t System.out.println (\"AposNtripCasterMock: expectedUserAgent=\" + expectedUserAgent);\n\t System.out.println (\"AposNtripCasterMock: expectedAuthorisation=\" + expectedAuthorisation);\n\t \n\t String fileName = props.getProperty (PROP_INPUT_DATA_FILE);\n\t\tURL url = Thread.currentThread ().getContextClassLoader ().getResource (fileName);\n\t\t\n\t\tif (url == null)\n\t\t\tthrow new FileNotFoundException (fileName);\n\t\t\n\t\tinputDataFile = new File (url.getFile ());\n\t}", "public StateHeader() { // for externalization\r\n }", "public FrameBodyASPI(final RandomAccessFile file) throws IOException, InvalidTagException {\r\n super();\r\n read(file);\r\n }", "private HeaderUtil() {}", "public TabixReader(final String filename, final String indexFileName) throws IOException {\n\t\tthis.filename = filename;\n\t\tmFp = new BlockCompressedInputStream(new File(filename));\n\t\tBlockCompressedInputStream is = new BlockCompressedInputStream(new File(filename + \".tbi\"));\n\t\ttabix = readHeader(is);\n\t\tconf = tabix.config;\n\t\tis.close();\n\t}", "private void parseHeader() throws IOException {\n\n\t\t// ////////////////////////////////////////////////////////////\n\t\t// Administrative header info\n\t\t// ////////////////////////////////////////////////////////////\n\n\t\t// First 10 bytes reserved for preamble\n\t\tbyte[] sixBytes = new byte[6];\n\t\tkeyBuffer.get(sixBytes, 0, 6);\n\t\tlogger.log(new String(sixBytes) + \"\\n\"); // says adac01\n\n\t\ttry {\n\n\t\t\tshort labels = keyBuffer.getShort();\n\t\t\tlogger.log(Integer.toString(labels)); // Number of labels in header\n\t\t\tlogger.log(Integer.toString(keyBuffer.get())); // Number of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sub-headers\n\t\t\tlogger.log(Integer.toString(keyBuffer.get())); // Unused byte\n\n\t\t\t// For each header field available.. get them\n\t\t\tfor (short i = 0; i < labels; i++) {\n\n\t\t\t\t// Attempt to find the next key...\n\t\t\t\t// ...the keynum (description)\n\t\t\t\t// ...the offset to the value\n\t\t\t\tADACKey key = getKeys();\n\t\t\t\tswitch (key.getDataType()) {\n\n\t\t\t\tcase ADACDictionary.BYTE:\n\n\t\t\t\t\tkeyList.add(new ByteKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.SHORT:\n\n\t\t\t\t\tkeyList.add(new ShortKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.INT:\n\n\t\t\t\t\tkeyList.add(new IntKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.FLOAT:\n\n\t\t\t\t\tkeyList.add(new FloatKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ADACDictionary.EXTRAS:\n\n\t\t\t\t\tkeyList.add(new ExtrasKvp(this, key));\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"ADAC Decoder\", \"Failed to retrieve ADAC image file header. \" + \"Is this an ADAC image file?\");\n\t\t}\n\t}", "private void init(String fastaHeader, String AAsequence) {\n if (fastaHeader.substring(0, 1).equals(\">\")) {\n\n m_fasta_header = fastaHeader;\n m_aa_sequence = AAsequence;\n m_coordinates_map = new ArrayList<>();\n m_cds_annotation_correct = 0;\n\n m_gene_id = extract_gene_id_fasta(fastaHeader);\n m_transcript_id = extract_transcript_id_fasta(fastaHeader);\n\n if (PepGenomeTool.useExonCoords) {\n // Exco mode\n // Using exon coords in place of CDS, offset describes distance in nucleotides from exon start to translation start.\n m_translation_offset = extract_offset_fasta(fastaHeader);\n\n }\n else {\n // Not using exon coords in place of CDS - Using original format\n m_translation_offset = 0;\n }\n\n // Put transcript ID and offset value into translation offset map in PepGenomeTool\n PepGenomeTool.m_translation_offset_map.put(m_transcript_id, m_translation_offset);\n\n }\n }", "private void initFromFile(Configuration config) throws FileNotFoundException {\n String file = config.getString(OrderFile_Type_Property_Name);\n List<List<String>> contents = FileUtils.readCsv(file);\n int index;\n for (List<String> rowContent : contents) {\n index = 0;\n String accountId = rowContent.get(index++);\n String orderId = rowContent.get(index++);\n String exchange = rowContent.get(index++);\n String stockId = rowContent.get(index++);\n String tradingDay = rowContent.get(index++);\n\n\n if (this.date == 0) {\n // 2019-11-13 00:00:00\n this.date = TimeUtils.formatTradeDate(tradingDay);\n } else if (TimeUtils.formatTradeDate(tradingDay) != date) {\n throw new InitializationException(MessageFormat.format(\"Two different trading days are sent to system, {0} and {1}.\", String.valueOf(this.date), String.valueOf(TimeUtils.formatTradeDate(tradingDay))));\n }\n\n String side = rowContent.get(index++);\n String type = rowContent.get(index++);\n double price = Double.valueOf(rowContent.get(index++));\n String algo = rowContent.get(index++);\n String startTime = rowContent.get(index++);\n String endTime = rowContent.get(index++);\n int qty = Integer.valueOf(rowContent.get(index++));\n double pov = Double.valueOf(rowContent.get(index));\n\n Order order = new Order(orderId, accountId, stockId, startTime, endTime, algo, type, price, pov, side, qty, exchange);\n this.cache.put(orderId, order);\n }\n }", "protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }", "public FileInputTools(SharedBuffer buffer, int bufferInputFileLength) throws Exception {\r\n\t\tsuper (buffer);\r\n\t\tthis.reset();\r\n\t\tthis.bufferInputFileLength = bufferInputFileLength;\r\n\t\tthis.initializeStream();\r\n\t}", "protected File(SleuthkitCase db, long objId, long fsObjId, \n\t\t\tTSK_FS_ATTR_TYPE_ENUM attrType, short attrId, String name, long metaAddr, \n\t\t\tTSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, \n\t\t\tTSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, \n\t\t\tlong size, long ctime, long crtime, long atime, long mtime, \n\t\t\tshort modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath) {\n\t\tsuper(db, objId, fsObjId, attrType, attrId, name, metaAddr, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);\n\t}", "private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }", "public FileObject() {\n\t}", "public void fillHeader(ByteBuffer buffer) {\n buffer.put((byte) (this.version << 4 | this.internetHeaderLen));\n buffer.put((byte) this.DSCP);\n buffer.putShort((short) this.headerLen);\n\n buffer.putInt(this.whyAreFlags3Bits);\n\n buffer.put((byte) this.timeToLive);\n buffer.put((byte) this.protocol);\n buffer.putShort((short) this.checksum);\n\n buffer.put(this.source.getAddress());\n buffer.put(this.target.getAddress());\n }", "protected void initFile(String id) throws FormatException, IOException {\n // normalize file name\n super.initFile(normalizeFilename(null, id));\n id = currentId;\n String dir = new File(id).getParent();\n\n // parse and populate OME-XML metadata\n String fileName = new Location(id).getAbsoluteFile().getAbsolutePath();\n RandomAccessInputStream ras = new RandomAccessInputStream(fileName);\n String xml;\n IFD firstIFD;\n try {\n TiffParser tp = new TiffParser(ras);\n firstIFD = tp.getFirstIFD();\n xml = firstIFD.getComment();\n }\n finally {\n ras.close();\n }\n\n if (service == null) setupService();\n OMEXMLMetadata meta;\n try {\n meta = service.createOMEXMLMetadata(xml);\n }\n catch (ServiceException se) {\n throw new FormatException(se);\n }\n\n hasSPW = meta.getPlateCount() > 0;\n\n for (int i=0; i<meta.getImageCount(); i++) {\n int sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n service.removeChannels(meta, i, sizeC);\n }\n\n // TODO\n //Hashtable originalMetadata = meta.getOriginalMetadata();\n //if (originalMetadata != null) metadata = originalMetadata;\n\n LOGGER.trace(xml);\n\n if (meta.getRoot() == null) {\n throw new FormatException(\"Could not parse OME-XML from TIFF comment\");\n }\n\n String[] acquiredDates = new String[meta.getImageCount()];\n for (int i=0; i<acquiredDates.length; i++) {\n acquiredDates[i] = meta.getImageAcquiredDate(i);\n }\n\n String currentUUID = meta.getUUID();\n service.convertMetadata(meta, metadataStore);\n\n // determine series count from Image and Pixels elements\n int seriesCount = meta.getImageCount();\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n core[i] = new CoreMetadata();\n }\n info = new OMETiffPlane[seriesCount][];\n\n tileWidth = new int[seriesCount];\n tileHeight = new int[seriesCount];\n\n // compile list of file/UUID mappings\n Hashtable<String, String> files = new Hashtable<String, String>();\n boolean needSearch = false;\n for (int i=0; i<seriesCount; i++) {\n int tiffDataCount = meta.getTiffDataCount(i);\n for (int td=0; td<tiffDataCount; td++) {\n String uuid = null;\n try {\n uuid = meta.getUUIDValue(i, td);\n }\n catch (NullPointerException e) { }\n String filename = null;\n if (uuid == null) {\n // no UUID means that TiffData element refers to this file\n uuid = \"\";\n filename = id;\n }\n else {\n filename = meta.getUUIDFileName(i, td);\n if (!new Location(dir, filename).exists()) filename = null;\n if (filename == null) {\n if (uuid.equals(currentUUID) || currentUUID == null) {\n // UUID references this file\n filename = id;\n }\n else {\n // will need to search for this UUID\n filename = \"\";\n needSearch = true;\n }\n }\n else filename = normalizeFilename(dir, filename);\n }\n String existing = files.get(uuid);\n if (existing == null) files.put(uuid, filename);\n else if (!existing.equals(filename)) {\n throw new FormatException(\"Inconsistent UUID filenames\");\n }\n }\n }\n\n // search for missing filenames\n if (needSearch) {\n Enumeration en = files.keys();\n while (en.hasMoreElements()) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n if (filename.equals(\"\")) {\n // TODO search...\n // should scan only other .ome.tif files\n // to make this work with OME server may be a little tricky?\n throw new FormatException(\"Unmatched UUID: \" + uuid);\n }\n }\n }\n\n // build list of used files\n Enumeration en = files.keys();\n int numUUIDs = files.size();\n HashSet fileSet = new HashSet(); // ensure no duplicate filenames\n for (int i=0; i<numUUIDs; i++) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n fileSet.add(filename);\n }\n used = new String[fileSet.size()];\n Iterator iter = fileSet.iterator();\n for (int i=0; i<used.length; i++) used[i] = (String) iter.next();\n\n // process TiffData elements\n Hashtable<String, IFormatReader> readers =\n new Hashtable<String, IFormatReader>();\n for (int i=0; i<seriesCount; i++) {\n int s = i;\n LOGGER.debug(\"Image[{}] {\", i);\n LOGGER.debug(\" id = {}\", meta.getImageID(i));\n\n String order = meta.getPixelsDimensionOrder(i).toString();\n\n PositiveInteger samplesPerPixel = null;\n if (meta.getChannelCount(i) > 0) {\n samplesPerPixel = meta.getChannelSamplesPerPixel(i, 0);\n }\n int samples = samplesPerPixel == null ? -1 : samplesPerPixel.getValue();\n int tiffSamples = firstIFD.getSamplesPerPixel();\n\n boolean adjustedSamples = false;\n if (samples != tiffSamples) {\n LOGGER.warn(\"SamplesPerPixel mismatch: OME={}, TIFF={}\",\n samples, tiffSamples);\n samples = tiffSamples;\n adjustedSamples = true;\n }\n\n if (adjustedSamples && meta.getChannelCount(i) <= 1) {\n adjustedSamples = false;\n }\n\n int effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n if (!adjustedSamples) {\n effSizeC /= samples;\n }\n if (effSizeC == 0) effSizeC = 1;\n if (effSizeC * samples != meta.getPixelsSizeC(i).getValue().intValue()) {\n effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n }\n int sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n int sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n int num = effSizeC * sizeT * sizeZ;\n\n OMETiffPlane[] planes = new OMETiffPlane[num];\n for (int no=0; no<num; no++) planes[no] = new OMETiffPlane();\n\n int tiffDataCount = meta.getTiffDataCount(i);\n boolean zOneIndexed = false;\n boolean cOneIndexed = false;\n boolean tOneIndexed = false;\n\n // pre-scan TiffData indices to see if any of them are indexed from 1\n\n for (int td=0; td<tiffDataCount; td++) {\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n if (c >= effSizeC) cOneIndexed = true;\n if (z >= sizeZ) zOneIndexed = true;\n if (t >= sizeT) tOneIndexed = true;\n }\n\n for (int td=0; td<tiffDataCount; td++) {\n LOGGER.debug(\" TiffData[{}] {\", td);\n // extract TiffData parameters\n String filename = null;\n String uuid = null;\n try {\n filename = meta.getUUIDFileName(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving filename.\");\n }\n try {\n uuid = meta.getUUIDValue(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving value.\");\n }\n NonNegativeInteger tdIFD = meta.getTiffDataIFD(i, td);\n int ifd = tdIFD == null ? 0 : tdIFD.getValue();\n NonNegativeInteger numPlanes = meta.getTiffDataPlaneCount(i, td);\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n // NB: some writers index FirstC, FirstZ and FirstT from 1\n if (cOneIndexed) c--;\n if (zOneIndexed) z--;\n if (tOneIndexed) t--;\n\n int index = FormatTools.getIndex(order,\n sizeZ, effSizeC, sizeT, num, z, c, t);\n int count = numPlanes == null ? 1 : numPlanes.getValue();\n if (count == 0) {\n core[s] = null;\n break;\n }\n\n // get reader object for this filename\n if (filename == null) {\n if (uuid == null) filename = id;\n else filename = files.get(uuid);\n }\n else filename = normalizeFilename(dir, filename);\n IFormatReader r = readers.get(filename);\n if (r == null) {\n r = new MinimalTiffReader();\n readers.put(filename, r);\n }\n\n Location file = new Location(filename);\n if (!file.exists()) {\n // if this is an absolute file name, try using a relative name\n // old versions of OMETiffWriter wrote an absolute path to\n // UUID.FileName, which causes problems if the file is moved to\n // a different directory\n filename =\n filename.substring(filename.lastIndexOf(File.separator) + 1);\n filename = dir + File.separator + filename;\n\n if (!new Location(filename).exists()) {\n filename = currentId;\n }\n }\n\n // populate plane index -> IFD mapping\n for (int q=0; q<count; q++) {\n int no = index + q;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = ifd + q;\n planes[no].certain = true;\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n }\n if (numPlanes == null) {\n // unknown number of planes; fill down\n for (int no=index+1; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = planes[no - 1].ifd + 1;\n LOGGER.debug(\" Plane[{}]: FILLED\", no);\n }\n }\n else {\n // known number of planes; clear anything subsequently filled\n for (int no=index+count; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = null;\n planes[no].id = null;\n planes[no].ifd = -1;\n LOGGER.debug(\" Plane[{}]: CLEARED\", no);\n }\n }\n LOGGER.debug(\" }\");\n }\n\n if (core[s] == null) continue;\n\n // verify that all planes are available\n LOGGER.debug(\" --------------------------------\");\n for (int no=0; no<num; no++) {\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n if (planes[no].reader == null) {\n LOGGER.warn(\"Image ID '{}': missing plane #{}. \" +\n \"Using TiffReader to determine the number of planes.\",\n meta.getImageID(i), no);\n TiffReader r = new TiffReader();\n r.setId(currentId);\n try {\n planes = new OMETiffPlane[r.getImageCount()];\n for (int plane=0; plane<planes.length; plane++) {\n planes[plane] = new OMETiffPlane();\n planes[plane].id = currentId;\n planes[plane].reader = r;\n planes[plane].ifd = plane;\n }\n num = planes.length;\n }\n finally {\n r.close();\n }\n }\n }\n LOGGER.debug(\" }\");\n\n // populate core metadata\n info[s] = planes;\n try {\n if (!info[s][0].reader.isThisType(info[s][0].id)) {\n info[s][0].id = currentId;\n }\n for (int plane=0; plane<info[s].length; plane++) {\n if (!info[s][plane].reader.isThisType(info[s][plane].id)) {\n info[s][plane].id = info[s][0].id;\n }\n }\n\n info[s][0].reader.setId(info[s][0].id);\n tileWidth[s] = info[s][0].reader.getOptimalTileWidth();\n tileHeight[s] = info[s][0].reader.getOptimalTileHeight();\n\n core[s].sizeX = meta.getPixelsSizeX(i).getValue().intValue();\n int tiffWidth = (int) firstIFD.getImageWidth();\n if (core[s].sizeX != tiffWidth) {\n LOGGER.warn(\"SizeX mismatch: OME={}, TIFF={}\",\n core[s].sizeX, tiffWidth);\n }\n core[s].sizeY = meta.getPixelsSizeY(i).getValue().intValue();\n int tiffHeight = (int) firstIFD.getImageLength();\n if (core[s].sizeY != tiffHeight) {\n LOGGER.warn(\"SizeY mismatch: OME={}, TIFF={}\",\n core[s].sizeY, tiffHeight);\n }\n core[s].sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n core[s].sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n core[s].sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n core[s].pixelType = FormatTools.pixelTypeFromString(\n meta.getPixelsType(i).toString());\n int tiffPixelType = firstIFD.getPixelType();\n if (core[s].pixelType != tiffPixelType) {\n LOGGER.warn(\"PixelType mismatch: OME={}, TIFF={}\",\n core[s].pixelType, tiffPixelType);\n core[s].pixelType = tiffPixelType;\n }\n core[s].imageCount = num;\n core[s].dimensionOrder = meta.getPixelsDimensionOrder(i).toString();\n\n // hackish workaround for files exported by OMERO that have an\n // incorrect dimension order\n String uuidFileName = \"\";\n try {\n if (meta.getTiffDataCount(i) > 0) {\n uuidFileName = meta.getUUIDFileName(i, 0);\n }\n }\n catch (NullPointerException e) { }\n if (meta.getChannelCount(i) > 0 && meta.getChannelName(i, 0) == null &&\n meta.getTiffDataCount(i) > 0 &&\n uuidFileName.indexOf(\"__omero_export\") != -1)\n {\n core[s].dimensionOrder = \"XYZCT\";\n }\n\n core[s].orderCertain = true;\n PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n core[s].rgb = samples > 1 || photo == PhotoInterp.RGB;\n if ((samples != core[s].sizeC && (samples % core[s].sizeC) != 0 &&\n (core[s].sizeC % samples) != 0) || core[s].sizeC == 1 ||\n adjustedSamples)\n {\n core[s].sizeC *= samples;\n }\n\n if (core[s].sizeZ * core[s].sizeT * core[s].sizeC >\n core[s].imageCount && !core[s].rgb)\n {\n if (core[s].sizeZ == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeT == core[s].imageCount) {\n core[s].sizeZ = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeC == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeZ = 1;\n }\n }\n\n if (meta.getPixelsBinDataCount(i) > 1) {\n LOGGER.warn(\"OME-TIFF Pixels element contains BinData elements! \" +\n \"Ignoring.\");\n }\n core[s].littleEndian = firstIFD.isLittleEndian();\n core[s].interleaved = false;\n core[s].indexed = photo == PhotoInterp.RGB_PALETTE &&\n firstIFD.getIFDValue(IFD.COLOR_MAP) != null;\n if (core[s].indexed) {\n core[s].rgb = false;\n }\n core[s].falseColor = true;\n core[s].metadataComplete = true;\n }\n catch (NullPointerException exc) {\n throw new FormatException(\"Incomplete Pixels metadata\", exc);\n }\n }\n\n // remove null CoreMetadata entries\n\n Vector<CoreMetadata> series = new Vector<CoreMetadata>();\n Vector<OMETiffPlane[]> planeInfo = new Vector<OMETiffPlane[]>();\n for (int i=0; i<core.length; i++) {\n if (core[i] != null) {\n series.add(core[i]);\n planeInfo.add(info[i]);\n }\n }\n core = series.toArray(new CoreMetadata[series.size()]);\n info = planeInfo.toArray(new OMETiffPlane[0][0]);\n\n MetadataTools.populatePixels(metadataStore, this, false, false);\n for (int i=0; i<acquiredDates.length; i++) {\n if (acquiredDates[i] != null) {\n metadataStore.setImageAcquiredDate(acquiredDates[i], i);\n }\n }\n metadataStore = getMetadataStoreForConversion();\n }", "public Sample load(BufferedReader r) throws IOException {\n\tString line = r.readLine();\n\tif (line==null || !line.startsWith(\"HEADER:\"))\n\t throw new WrongFiletypeException(); // no HEADER: found\n\n\t// new sample, with given filename\n\tSample s = new Sample();\n\n\t// don't know end, yet\n\tYear end = null;\n\tint length = -1;\n\n\t// metadata\n\tfor (;;) {\n\t // read a line\n\t line = r.readLine();\n\n\t // got to data, stop\n\t if (line.startsWith(\"DATA:\"))\n\t\tbreak;\n\n\t // parse line as \"variable = value\", and put into s.meta\n\t int i = line.indexOf(\"=\");\n\t if (i == -1)\n\t\tthrow new WrongFiletypeException();\n\t String tag = line.substring(0, i);\n\t String value = line.substring(i+1);\n\n\t // got end-date.\n\t if (tag.equals(\"DateEnd\"))\n\t\tend = new Year(value);\n\t \n\t if (tag.equals(\"Length\"))\n\t \tlength = Integer.parseInt(value);\n\n\t // WRITE ME: parse other tags and interpret metadata as\n\t // intelligently as possible\n\t}\n\n\ts.count = new ArrayList();\n\ts.incr = new ArrayList();\n\ts.decr = new ArrayList();\n\n\t// data -- i'll assume all data is (width,count,up,down)\n\tStreamTokenizer t = new StreamTokenizer(r);\n\tint idx = 0;\n\t\n\tfor (;;) {\n\t // parse (datum, count, up, dn)\n\t\tint datum, count, up, dn;\n\t\ttry {\n\t\t\t\tt.nextToken();\n\t\t\t\tdatum = (int) t.nval;\n\t\t\t\tt.nextToken();\n\t\t\t\tcount = (int) t.nval;\n\t\t\t\tt.nextToken();\n\t\t\t\tup = (int) t.nval;\n\t\t\t\tt.nextToken();\n\t\t\t\tdn = (int) t.nval;\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new WrongFiletypeException();\n\t\t}\n\n\t // (0,0,0,0) seems to mean end-of-sample\n\t if (datum == 0)\n\t \tbreak;\n\n\t // add to lists\n\t s.data.add(new Integer(datum));\n\t s.count.add(new Integer(count));\n\t s.incr.add(new Integer(up));\n\t s.decr.add(new Integer(dn));\n\t \n\t idx++;\n\t \n\t // break out if we have 'length' samples\n\t if(idx == length)\n\t \tbreak;\n\t}\n\n\t// no end? die.\n\tif (end == null)\n\t throw new WrongFiletypeException();\n\n\t// set range, and return\n\ts.range = new Range(end.add(1 - s.data.size()), end);\n\treturn s;\n }", "private void initialize() throws IOException {\n // get parameters\n Parameter[] params = getParameters();\n if (params != null) {\n for (int i = 0; i < params.length; i++) {\n if (\"prepend\".equals(params[i].getName())) {\n setPrepend(new File(params[i].getValue()));\n continue;\n }\n if (\"append\".equals(params[i].getName())) {\n setAppend(new File(params[i].getValue()));\n continue;\n }\n }\n }\n if (prepend != null) {\n if (!prepend.isAbsolute()) {\n prepend = new File(getProject().getBaseDir(), prepend.getPath());\n }\n prependReader = new BufferedReader(new FileReader(prepend));\n }\n if (append != null) {\n if (!append.isAbsolute()) {\n append = new File(getProject().getBaseDir(), append.getPath());\n }\n appendReader = new BufferedReader(new FileReader(append));\n }\n }", "public Header(String t) {\n this.title=t;\n }", "public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }", "private FSArquivo(Construtor construtor) {\n nome = construtor.nome;\n tipoMedia = construtor.tipoMedia;\n base = construtor.base;\n prefixo = construtor.prefixo;\n sufixo = construtor.sufixo;\n }", "public Header(DOMelement element){\n\t\tsuper(tag(Header.class),element);\n\t}", "public void changeHeaderFile(){\n if ( changedAttr.isEmpty() ) return;\n else {\n Set<Object> tmpAttr = changedAttr.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n for (int i = 0; i < attributes.length; i++){\n if ( headerFile.containsKey(attributes[i]) ) {\n headerFile.put(attributes[i], changedAttr.get(attributes[i]));\n // DeidData.imageHandler.findImageByDisplayName(curimage.getImageDisplayName())\n // .getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n curimage.getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n //System.out.println(curimage.getHeader().get(attributes[i]));\n }\n }\n curimage.changeHeader();\n \n }\n }", "public TabixReader(final String filename) throws IOException {\n\t\tthis(filename, filename+\".tbi\");\n\t}", "protected void readHeader() {\n // Denote no lines have been read.\n this.lineCount = 0;\n // Read the header.\n if (! this.reader.hasNext()) {\n // Here the entire file is empty. Insure we get EOF on the first read.\n this.nextLine = null;\n } else {\n this.headerLine = this.reader.next();\n // Parse the header line into labels and normalize them to lower case.\n this.labels = this.splitLine(headerLine);\n // Set up to return the first data line.\n this.readAhead();\n }\n }", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "public FileInfo(File file) {\n this.file = file;\n }", "public void init(BinaryDataReader dataReader) throws IOException\n\t{\n\t}", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessInputStream(id);\n\n String endian = in.readString(2);\n boolean little = endian.equals(\"II\");\n in.order(little);\n\n in.seek(98);\n int seriesCount = in.readInt();\n\n in.seek(192);\n while (in.read() == 0);\n String description = in.readCString();\n addGlobalMeta(\"Description\", description);\n\n while (in.readInt() == 0);\n\n long fp = in.getFilePointer();\n if ((fp % 2) == 0) fp -= 4;\n else fp--;\n\n offsets = new long[seriesCount];\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n in.seek(fp + i*256);\n core[i] = new CoreMetadata();\n core[i].littleEndian = little;\n core[i].sizeX = in.readInt();\n core[i].sizeY = in.readInt();\n int numBits = in.readInt();\n core[i].sizeC = in.readInt();\n core[i].sizeZ = in.readInt();\n core[i].sizeT = in.readInt();\n\n core[i].imageCount = core[i].sizeZ * core[i].sizeC * core[i].sizeT;\n int nBytes = numBits / 8;\n core[i].pixelType =\n FormatTools.pixelTypeFromBytes(nBytes, false, nBytes == 8);\n\n core[i].dimensionOrder = \"XYCZT\";\n core[i].rgb = false;\n\n in.skipBytes(4);\n\n long pointer = in.getFilePointer();\n String name = in.readCString();\n\n if (i == 0) {\n in.skipBytes((int) (92 - in.getFilePointer() + pointer));\n while (true) {\n int check = in.readInt();\n if (check > in.getFilePointer()) {\n offsets[i] = (long) check + LUT_SIZE;\n break;\n }\n in.skipBytes(92);\n }\n }\n else {\n offsets[i] = offsets[i - 1] + core[i - 1].sizeX * core[i - 1].sizeY *\n core[i - 1].imageCount *\n FormatTools.getBytesPerPixel(core[i - 1].pixelType);\n }\n offsets[i] += 352;\n in.seek(offsets[i]);\n while (in.getFilePointer() + 116 < in.length() && in.read() == 3 &&\n in.read() == 37)\n {\n in.skipBytes(114);\n offsets[i] = in.getFilePointer();\n }\n in.seek(in.getFilePointer() - 1);\n byte[] buf = new byte[3 * 1024 * 1024];\n int n = in.read(buf, 0, 1);\n boolean found = false;\n while (!found && in.getFilePointer() < in.length()) {\n n += in.read(buf, 1, buf.length - 1);\n for (int q=0; q<buf.length - 1; q++) {\n if ((buf[q] & 0xff) == 192 && (buf[q + 1] & 0xff) == 46) {\n offsets[i] = in.getFilePointer() - n + q;\n found = true;\n break;\n }\n }\n buf[0] = buf[buf.length - 1];\n n = 1;\n }\n if (found) offsets[i] += 16063;\n if (i == offsets.length - 1 && !compressed && i > 0) {\n offsets[i] = (int) (in.length() -\n (core[i].sizeX * core[i].sizeY * core[i].imageCount * (numBits / 8)));\n }\n }\n\n MetadataStore store = makeFilterMetadata();\n MetadataTools.populatePixels(store, this);\n MetadataTools.setDefaultCreationDate(store, id, 0);\n }", "public TxtReader() {\n numberOfCharacters = getNumberOfCharacters();\n }" ]
[ "0.7192794", "0.58140695", "0.5799738", "0.5775392", "0.57689697", "0.56931627", "0.5661732", "0.56263256", "0.55323255", "0.55315244", "0.5508927", "0.54734164", "0.5449029", "0.54362345", "0.541314", "0.54022384", "0.5395003", "0.5355366", "0.5353745", "0.53437734", "0.52823365", "0.524961", "0.518083", "0.5177638", "0.5160789", "0.51565254", "0.5155418", "0.5114309", "0.5109344", "0.51035297", "0.5085618", "0.50683475", "0.504708", "0.50445783", "0.5030387", "0.50119585", "0.5011533", "0.49853122", "0.49672508", "0.49639043", "0.4958558", "0.4950245", "0.4946246", "0.49362415", "0.49217483", "0.49208018", "0.4901496", "0.49007753", "0.4896717", "0.48831993", "0.48821077", "0.48758948", "0.48753205", "0.4840561", "0.48387343", "0.48351407", "0.4817764", "0.4814096", "0.48139143", "0.48131877", "0.48098287", "0.47960854", "0.47902536", "0.47833046", "0.47819018", "0.47708485", "0.47630906", "0.4754092", "0.47401246", "0.47354504", "0.47332308", "0.47332087", "0.47247675", "0.47163033", "0.46879518", "0.46839476", "0.4682312", "0.46700454", "0.46689665", "0.4666875", "0.4664595", "0.46617666", "0.46529576", "0.46526432", "0.46479416", "0.4647542", "0.46423128", "0.4640224", "0.46386713", "0.4637879", "0.46309003", "0.46286198", "0.46243066", "0.46168053", "0.46166655", "0.46162057", "0.4609857", "0.46082392", "0.4607732", "0.4603672" ]
0.6317993
1
Compute the checksum of a tar entry header.
public static long computeCheckSum(final byte[] buf) { long sum = 0; for (int i = 0; i < buf.length; ++i) { sum += BYTE_MASK & buf[i]; } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getChecksum();", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "public String getChecksum() {\r\n\t\treturn checksum;\r\n\t}", "public String getChecksum() {\n return checksum;\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "TarEntry CreateEntry(byte[] headerBuffer);", "public String getChecksum() {\n return mChecksum;\n }", "private long calcChecksum(File f) throws IOException {\n BufferedInputStream in = new BufferedInputStream(new FileInputStream(f));\n return calcChecksum(in, f.length());\n }", "public java.lang.String getChecksum() {\n java.lang.Object ref = checksum_;\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 checksum_ = s;\n return s;\n }\n }", "public long getChecksum() {\n long checksum = 0;\n\n if (this.resourceName != null) {\n Iterator iterator = this.app.getRepositories().iterator();\n while (iterator.hasNext()) {\n RepositoryInterface repository = (RepositoryInterface) iterator.next();\n ResourceInterface resource = repository.getResource(this.resourceName);\n if (resource != null) {\n checksum += resource.lastModified();\n }\n }\n }\n\n if (this.resources != null) {\n Iterator iterator = this.resources.iterator();\n while (iterator.hasNext()) {\n checksum += ((ResourceInterface) iterator.next()).lastModified();\n }\n }\n\n if (this.defaultProperties != null) {\n checksum += this.defaultProperties.getChecksum();\n }\n\n return checksum;\n }", "private long calcChecksum(InputStream in, long size) throws IOException{\n CRC32 crc = new CRC32();\n int len = buffer.length;\n int count = -1;\n int haveRead = 0; \n while((count=in.read(buffer, 0, len)) > 0){\n haveRead += count;\n crc.update(buffer, 0, count);\n }\n in.close();\n return crc.getValue();\n }", "POGOProtos.Rpc.AssetDigestEntryProtoOrBuilder getDigestOrBuilder();", "void compute_checksum() {\n\t\t\t// IMPORTANT : write this NOW !\n\t\t\t/*\n\t\t\t * short *ptr; Checksum = 0; for (ptr = (short *) pmh; ptr < (short\n\t\t\t * *)&pmh->Checksum; ptr++) Checksum ^= *ptr;\n\t\t\t */\n\t\t\tChecksum = 0;\n\t\t\tshort b[] = new short[9];\n\t\t\tb[0] = (short) (Key & 0xFF);\n\t\t\tb[1] = (short) ((Key & 0xFF00) >>> 16);\n\t\t\tb[2] = (short) Left;\n\t\t\tb[3] = (short) Top;\n\t\t\tb[4] = (short) Right;\n\t\t\tb[5] = (short) Bottom;\n\t\t\tb[6] = Inch;\n\t\t\tb[7] = (short) (Reserved & 0xFF);\n\t\t\tb[8] = (short) ((Reserved & 0xFF00) >>> 16);\n\t\t\tfor (int i = 0; i < b.length; i++)\n\t\t\t\tChecksum ^= b[i];\n\t\t}", "public void assimilateChecksum(TransformationCatalogEntry entry) {\n if (entry.hasCheckSum()) {\n // PM-1617 add all metadata from the entry into FileTransfer\n Metadata m = (Metadata) entry.getAllProfiles().get(Profiles.NAMESPACES.metadata);\n this.getAllMetadata().merge(m);\n }\n }", "public java.lang.String getChecksum() {\n java.lang.Object ref = checksum_;\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 checksum_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "com.google.protobuf.ByteString\n getChecksumBytes();", "void addChecksum(int checksum);", "public com.google.protobuf.ByteString\n getChecksumBytes() {\n java.lang.Object ref = checksum_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n checksum_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "static long calculateChecksum(byte[] buf) {\n int length = buf.length;\n int i = 0;\n\n long sum = 0;\n long data;\n\n // Handle all pairs\n while (length > 1) {\n // Corrected to include @Andy's edits and various comments on Stack Overflow\n data = (((buf[i] << 8) & 0xFF00) | ((buf[i + 1]) & 0xFF));\n sum += data;\n // 1's complement carry bit correction in 16-bits (detecting sign extension)\n if ((sum & 0xFFFF0000) > 0) {\n sum = sum & 0xFFFF;\n sum += 1;\n }\n\n i += 2;\n length -= 2;\n }\n\n // Handle remaining byte in odd length buffers\n if (length > 0) {\n // Corrected to include @Andy's edits and various comments on Stack Overflow\n sum += (buf[i] << 8 & 0xFF00);\n // 1's complement carry bit correction in 16-bits (detecting sign extension)\n if ((sum & 0xFFFF0000) > 0) {\n sum = sum & 0xFFFF;\n sum += 1;\n }\n }\n\n // Final 1's complement value correction to 16-bits\n sum = ~sum;\n sum = sum & 0xFFFF;\n return sum;\n }", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "public int calculSum(DoublyLinkedListHeader list) {\n\t\tif(list.getHeader().getFirst() == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint sum =0;\r\n\t\t\tDNode current = list.getHeader().getFirst();\r\n\t\t\twhile(current!= null) {\r\n\t\t\t\tsum += ((Integer)current.getInfo()).intValue();\r\n\t\t\t\tcurrent = current.getNext();\r\n\t\t\t}\r\n\t\t\treturn sum;\r\n\t\t}\r\n\t}", "private static long calculateChecksum(final byte[] array) {\n final long crc;\n\n if ((array != null) && (array.length > 0)) {\n final Checksum checksum = new CRC32();\n checksum.update(array, 0, array.length);\n\n crc = checksum.getValue();\n } else {\n crc = 0;\n }\n\n return crc;\n }", "public POGOProtos.Rpc.AssetDigestEntryProto getDigest() {\n if (digestBuilder_ == null) {\n return digest_ == null ? POGOProtos.Rpc.AssetDigestEntryProto.getDefaultInstance() : digest_;\n } else {\n return digestBuilder_.getMessage();\n }\n }", "@Override\n public int checksum(ByteBuffer bb) {\n if (bb == null)\n throw new NullPointerException(\"ByteBuffer is null in Fletcher32#checksum\");\n Fletcher32 f = f32.get();\n f.update(bb.array());\n return (int) f.getValue();\n }", "@Schema(required = true, description = \"Object sha256 checksum in hex format\")\n public String getChecksum() {\n return checksum;\n }", "@Override\n public void calculateChecksum(Patch p) {\n }", "private static void recoverEntries(\n File file, RandomAccessFile access,\n LinkedHashMap<UUID, byte[]> entries) throws IOException {\n byte[] header = new byte[BLOCK_SIZE];\n while (access.getFilePointer() + BLOCK_SIZE <= access.length()) {\n // read the tar header block\n access.readFully(header);\n\n // compute the header checksum\n int sum = 0;\n for (int i = 0; i < BLOCK_SIZE; i++) {\n sum += header[i] & 0xff;\n }\n\n // identify possible zero block\n if (sum == 0 && access.getFilePointer() + 2 * BLOCK_SIZE == access.length()) {\n return; // found the zero blocks at the end of the file\n }\n\n // replace the actual stored checksum with spaces for comparison\n for (int i = 148; i < 148 + 8; i++) {\n sum -= header[i] & 0xff;\n sum += ' ';\n }\n\n byte[] checkbytes = String.format(\"%06o\\0 \", sum).getBytes(UTF_8);\n for (int i = 0; i < checkbytes.length; i++) {\n if (checkbytes[i] != header[148 + i]) {\n log.warn(\"Invalid entry checksum at offset {} in tar file {}, skipping...\",\n access.getFilePointer() - BLOCK_SIZE, file);\n continue;\n }\n }\n\n // The header checksum passes, so read the entry name and size\n ByteBuffer buffer = ByteBuffer.wrap(header);\n String name = readString(buffer, 100);\n buffer.position(124);\n int size = readNumber(buffer, 12);\n if (access.getFilePointer() + size > access.length()) {\n // checksum was correct, so the size field should be accurate\n log.warn(\"Partial entry {} in tar file {}, ignoring...\", name, file);\n return;\n }\n\n Matcher matcher = NAME_PATTERN.matcher(name);\n if (matcher.matches()) {\n UUID id = UUID.fromString(matcher.group(1));\n\n String checksum = matcher.group(3);\n if (checksum != null || !entries.containsKey(id)) {\n byte[] data = new byte[size];\n access.readFully(data);\n\n // skip possible padding to stay at block boundaries\n long position = access.getFilePointer();\n long remainder = position % BLOCK_SIZE;\n if (remainder != 0) {\n access.seek(position + (BLOCK_SIZE - remainder));\n }\n\n if (checksum != null) {\n CRC32 crc = new CRC32();\n crc.update(data);\n if (crc.getValue() != Long.parseLong(checksum, 16)) {\n log.warn(\"Checksum mismatch in entry {} of tar file {}, skipping...\",\n name, file);\n continue;\n }\n }\n\n entries.put(id, data);\n }\n } else if (!name.equals(file.getName() + \".idx\")) {\n log.warn(\"Unexpected entry {} in tar file {}, skipping...\",\n name, file);\n long position = access.getFilePointer() + size;\n long remainder = position % BLOCK_SIZE;\n if (remainder != 0) {\n position += BLOCK_SIZE - remainder;\n }\n access.seek(position);\n }\n }\n }", "public com.google.protobuf.ByteString\n getChecksumBytes() {\n java.lang.Object ref = checksum_;\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 checksum_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "byte[] getDigest();", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "@java.lang.Override\n public POGOProtos.Rpc.AssetDigestEntryProto getDigest() {\n return digest_ == null ? POGOProtos.Rpc.AssetDigestEntryProto.getDefaultInstance() : digest_;\n }", "public void parseTarHeader(byte[] header, ArchiveEntryEncoding encoding)\n throws IOException {\n parseTarHeader(header, encoding, false);\n }", "public byte[] getChecksum() {\n return checksum;\n }", "public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }", "com.google.protobuf.ByteString getVmChecksum();", "public void setChecksum(String checksum) {\n this.checksum = checksum;\n }", "private static long signatureHash(String tsPath, List<String> inputAllFiles) throws IOException {\n long crc32 = 0;\n for (String iFile : inputAllFiles) {\n long c = getCrc32(iFile) & 0xffffffffL;\n SystemOut.println(\"CRC32 from \" + iFile + \" = \" + c);\n crc32 ^= c;\n }\n SystemOut.println(\"CRC32 from all input files = \" + crc32);\n // store the CRC32 as a built-in variable\n if (tsPath != null) // nasty trick - do not insert signature into live data files\n VariableRegistry.INSTANCE.register(SIGNATURE_HASH, \"\" + crc32);\n return crc32;\n }", "protected void calculateChecksum(Patch p) {\n calculateChecksum(p, checksumStart, checksumEnd, checksumOffset);\n }", "public final TarEntry GetNextEntry()\n\t{\n\t\tif (hasHitEOF)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tif (currentEntry != null)\n\t\t{\n\t\t\tSkipToNextEntry();\n\t\t}\n\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] headerBuf = tarBuffer.ReadBlock();\n\t\tbyte[] headerBuf = tarBuffer.ReadBlock();\n\n\t\tif (headerBuf == null)\n\t\t{\n\t\t\thasHitEOF = true;\n\t\t}\n\t\telse if (TarBuffer.IsEndOfArchiveBlock(headerBuf))\n\t\t{\n\t\t\thasHitEOF = true;\n\t\t}\n\n\t\tif (hasHitEOF)\n\t\t{\n\t\t\tcurrentEntry = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tTarHeader header = new TarHeader();\n\t\t\t\theader.ParseBuffer(headerBuf);\n\t\t\t\tif (!header.getIsChecksumValid())\n\t\t\t\t{\n\t\t\t\t\tthrow new TarException(\"Header checksum is invalid\");\n\t\t\t\t}\n\t\t\t\tthis.entryOffset = 0;\n\t\t\t\tthis.entrySize = header.getSize();\n\n\t\t\t\tStringBuilder longName = null;\n\n\t\t\t\tif (header.getTypeFlag() == TarHeader.LF_GNU_LONGNAME)\n\t\t\t\t{\n\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] nameBuffer = new byte[TarBuffer.BlockSize];\n\t\t\t\t\tbyte[] nameBuffer = new byte[TarBuffer.BlockSize];\n\t\t\t\t\tlong numToRead = this.entrySize;\n\n\t\t\t\t\tlongName = new StringBuilder();\n\n\t\t\t\t\twhile (numToRead > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint numRead = this.Read(nameBuffer, 0, (numToRead > nameBuffer.length ? nameBuffer.length : (int)numToRead));\n\n\t\t\t\t\t\tif (numRead == -1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthrow new InvalidHeaderException(\"Failed to read long name entry\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlongName.append(TarHeader.ParseName(nameBuffer, 0, numRead).toString());\n\t\t\t\t\t\tnumToRead -= numRead;\n\t\t\t\t\t}\n\n\t\t\t\t\tSkipToNextEntry();\n\t\t\t\t\theaderBuf = this.tarBuffer.ReadBlock();\n\t\t\t\t}\n\t\t\t\telse if (header.getTypeFlag() == TarHeader.LF_GHDR)\n\t\t\t\t{ // POSIX global extended header\n\t\t\t\t\t// Ignore things we dont understand completely for now\n\t\t\t\t\tSkipToNextEntry();\n\t\t\t\t\theaderBuf = this.tarBuffer.ReadBlock();\n\t\t\t\t}\n\t\t\t\telse if (header.getTypeFlag() == TarHeader.LF_XHDR)\n\t\t\t\t{ // POSIX extended header\n\t\t\t\t\t// Ignore things we dont understand completely for now\n\t\t\t\t\tSkipToNextEntry();\n\t\t\t\t\theaderBuf = this.tarBuffer.ReadBlock();\n\t\t\t\t}\n\t\t\t\telse if (header.getTypeFlag() == TarHeader.LF_GNU_VOLHDR)\n\t\t\t\t{\n\t\t\t\t\t// TODO: could show volume name when verbose\n\t\t\t\t\tSkipToNextEntry();\n\t\t\t\t\theaderBuf = this.tarBuffer.ReadBlock();\n\t\t\t\t}\n\t\t\t\telse if (header.getTypeFlag() != TarHeader.LF_NORMAL && header.getTypeFlag() != TarHeader.LF_OLDNORM && header.getTypeFlag() != TarHeader.LF_DIR)\n\t\t\t\t{\n\t\t\t\t\t// Ignore things we dont understand completely for now\n\t\t\t\t\tSkipToNextEntry();\n\t\t\t\t\theaderBuf = tarBuffer.ReadBlock();\n\t\t\t\t}\n\n\t\t\t\tif (entryFactory == null)\n\t\t\t\t{\n\t\t\t\t\tcurrentEntry = new TarEntry(headerBuf);\n\t\t\t\t\tif (longName != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentEntry.setName(longName.toString());\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\tcurrentEntry = entryFactory.CreateEntry(headerBuf);\n\t\t\t\t}\n\n\t\t\t\t// Magic was checked here for 'ustar' but there are multiple valid possibilities\n\t\t\t\t// so this is not done anymore.\n\n\t\t\t\tentryOffset = 0;\n\n\t\t\t\t// TODO: Review How do we resolve this discrepancy?!\n\t\t\t\tentrySize = this.currentEntry.getSize();\n\t\t\t}\n\t\t\tcatch (InvalidHeaderException ex)\n\t\t\t{\n\t\t\t\tentrySize = 0;\n\t\t\t\tentryOffset = 0;\n\t\t\t\tcurrentEntry = null;\n\t\t\t\tString errorText = String.format(\"Bad header in record %1$s block %2$s %3$s\", tarBuffer.getCurrentRecord(), tarBuffer.getCurrentBlock(), ex.getMessage());\n\t\t\t\tthrow new InvalidHeaderException(errorText);\n\t\t\t}\n\t\t}\n\t\treturn currentEntry;\n\t}", "public void setChecksum(String checksum) {\r\n\t\tthis.checksum = checksum;\r\n\t}", "public POGOProtos.Rpc.AssetDigestEntryProtoOrBuilder getDigestOrBuilder() {\n if (digestBuilder_ != null) {\n return digestBuilder_.getMessageOrBuilder();\n } else {\n return digest_ == null ?\n POGOProtos.Rpc.AssetDigestEntryProto.getDefaultInstance() : digest_;\n }\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "public static String checksum(byte[] bytes) {\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(\"SHA1\");\n } catch (final NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n if (messageDigest == null) {\n return null;\n }\n\n messageDigest.update(bytes);\n final byte[] mdbytes = messageDigest.digest();\n\n // convert the byte to hex format\n final StringBuffer sb = new StringBuffer(\"\");\n\n for (int i = 0; i < mdbytes.length; i++) {\n sb.append(Integer.toString((mdbytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n return sb.toString();\n }", "protected static void calculateChecksum(Patch patch, int start, int end, int offset) {\n DriverUtil.calculateChecksum(patch.sysex, start, end, offset);\n }", "public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}", "public static int getHash(long entry) {\n return (int) (entry >>> 32);\n }", "byte[] digest();", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "@java.lang.Override\n public POGOProtos.Rpc.AssetDigestEntryProtoOrBuilder getDigestOrBuilder() {\n return getDigest();\n }", "public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}", "public void assimilateChecksum(Container container) {\n if (container.hasCheckSum()) {\n // PM-1617 add all metadata from the entry into FileTransfer\n Metadata m = (Metadata) container.getAllProfiles().get(Profiles.NAMESPACES.metadata);\n this.getAllMetadata().merge(m);\n }\n }", "public long getFileCrc()\r\n {\r\n return lFileCrc;\r\n }", "private static int \n headersCount (final Map.Entry <String, VersionedValue> entry)\n {\n return entry.getKey ().length () + 1 + 4 + entry.getValue ().getValue ().length () + 1;\n }", "public static byte[] digest(byte contents[][]) {\n CCNDigestHelper dh = new CCNDigestHelper();\n for (int i = 0; i < contents.length; ++i) {\n if (null != contents[i]) dh.update(contents[i], 0, contents[i].length);\n }\n return dh.digest();\n }", "public int headerLength();", "private String getChecksum(String sentence) {\n\t\tint checksum = 0;\n\t\tfor (char Character : sentence.toCharArray()) {\n\t\t\tif (Character == '$') {\n\t\t\t\t// Ignore the dollar sign\n\t\t\t} else if (Character == '*') {\n\t\t\t\t// Stop processing before the asterisk\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// Is this the first value for the checksum?\n\t\t\t\tif (checksum == 0) {\n\t\t\t\t\t// Yes. Set the checksum to the value\n\t\t\t\t\tchecksum = (byte) Character;\n\t\t\t\t} else {\n\t\t\t\t\t// No. XOR the checksum with this character's value\n\t\t\t\t\tchecksum = checksum ^ (byte) Character;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Return the checksum formatted as a two-character hexadecimal\n\t\treturn Integer.toHexString(checksum).toUpperCase();\n\t}", "public boolean verifyChecksum() {\n\t\tChecksum cs = new Checksum();\n\t\tlong remaining = size - Tran.HEAD_SIZE;\n\t\tint pos = adr;\n\t\twhile (remaining > 0) {\n\t\t\tByteBuffer buf = stor.buffer(pos);\n\t\t\t// safe as long as chunk size < Integer.MAX_VALUE\n\t\t\tint n = (int) Math.min(buf.remaining(), remaining);\n\t\t\tcs.update(buf, n);\n\t\t\tremaining -= n;\n\t\t\tpos = stor.advance(pos, n);\n\t\t}\n\t\tcs.update(zero_tail);\n\t\treturn cksum == cs.getValue();\n\t}", "private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n For uncompressed (stored) files, those calls do work.\n However, using ZipFile.getEntries() works for both compressed and \n uncompressed files.\n \n Now, from some simple testing I did, it seems that the value of CRC-32 is\n independent of the compression setting. So, it should be easy to pass this \n information on to the output entry.\n */\n String name = inputEntry .getName();\n if ( ! (inputEntry .isDirectory() || name .endsWith( \".class\" )) ) {\n try {\n InputStream input = zip.getInputStream( zip .getEntry( name ) );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n name = className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n ZipEntry outputEntry = new ZipEntry( name );\n outputEntry.setTime(inputEntry .getTime() );\n outputEntry.setExtra(inputEntry.getExtra());\n outputEntry.setComment(inputEntry.getComment());\n outputEntry.setTime(inputEntry.getTime());\n if (compression){\n outputEntry.setMethod(ZipEntry.DEFLATED);\n //Note, don't need to specify size or crc for compressed files.\n } else {\n outputEntry.setMethod(ZipEntry.STORED);\n outputEntry.setCrc(inputEntry.getCrc());\n outputEntry.setSize(inputEntry.getSize());\n }\n return outputEntry;\n }", "public final byte[] getChecksumData()\r\n\t{\r\n\t\treturn this.checksumData;\r\n\t}", "public Metadata createChecksum(JsonNode node, String enclosingKeyword) {\n Metadata m = new Metadata();\n if (node instanceof ObjectNode) {\n for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {\n Map.Entry<String, JsonNode> e = it.next();\n String key = e.getKey();\n ReplicaCatalogKeywords reservedKey = ReplicaCatalogKeywords.getReservedKey(key);\n if (reservedKey == null) {\n this.complainForIllegalKey(enclosingKeyword, key, node);\n }\n\n String keyValue = node.get(key).asText();\n switch (reservedKey) {\n case SHA256:\n m.construct(Metadata.CHECKSUM_TYPE_KEY, \"sha256\");\n m.construct(Metadata.CHECKSUM_VALUE_KEY, keyValue);\n break;\n\n default:\n this.complainForUnsupportedKey(\n ReplicaCatalogKeywords.CHECKSUM.getReservedName(), key, node);\n }\n }\n } else {\n throw getException(\n \"Checksum needs to be object node. Found for \"\n + enclosingKeyword\n + \"->\"\n + node);\n }\n\n return m;\n }", "public int hashCode()\n\t{\n\t\tint result = 17;\n\n\t\tlong tmp;\n\t\tif (_rsHeader != null && !org.castor.core.util.CycleBreaker.startingToCycle(_rsHeader))\n\t\t{\n\t\t\tresult = 37 * result + _rsHeader.hashCode();\n\t\t\torg.castor.core.util.CycleBreaker.releaseCycleHandle(_rsHeader);\n\t\t}\n\n\t\treturn result;\n\t}", "public byte checkSum(byte[] data) {\n byte crc = 0x00;\n // 從指令類型累加到參數最後一位\n for (int i = 1; i < data.length - 2; i++) {\n crc += data[i];\n }\n return crc;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "protected int calculate_checksum(int seqnum,Message m,int ack){\n \tchar []temp=m.getData().toCharArray();\n \tint sum=0;\n \tsum+=seqnum;\n \tsum+=ack;\n \tfor(int i=0;i<temp.length;i++){\n \t\tsum=sum+(int)temp[i];\n \t}\n \treturn sum;\n }", "@Test\n public void testCreateDocumentChecksumFromMeta() throws IOException {\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream();\n Doc doc = new Doc(\"N/A\", is);\n doc.getMetadata().add(\"field1\", \"value1.1\", \"value1.2\");\n doc.getMetadata().add(\"field2\", \"value2\");\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n\n // 2 matching fields\n cs.setFieldMatcher(TextMatcher.csv(\"field1,field2\"));\n String checksum1 = cs.createDocumentChecksum(doc);\n Assertions.assertTrue(\n StringUtils.isNotBlank(checksum1),\n \"No checksum was generated for two matching fields.\");\n\n // 1 out of 2 matching fields\n cs.setFieldMatcher(TextMatcher.csv(\"field1,field3\"));\n String checksum2 = cs.createDocumentChecksum(doc);\n Assertions.assertTrue(\n StringUtils.isNotBlank(checksum2),\n\n \"No checksum was generated for 1 of two matching fields.\");\n\n // No matching fields\n cs.setFieldMatcher(TextMatcher.csv(\"field4,field5\"));\n String checksum3 = cs.createDocumentChecksum(doc);\n Assertions.assertNull(checksum3,\n \"Checksum for no matching fields should have been null.\");\n\n // Regex\n cs.setFieldMatcher(TextMatcher.regex(\"field.*\"));\n String checksum4 = cs.createDocumentChecksum(doc);\n Assertions.assertTrue(StringUtils.isNotBlank(checksum4),\n \"No checksum was generated.\");\n\n\n // Regex only no match\n cs.setFieldMatcher(TextMatcher.regex(\"NOfield.*\"));\n String checksum5 = cs.createDocumentChecksum(doc);\n Assertions.assertNull(checksum5,\n \"Checksum for no matching regex should have been null.\");\n\n is.dispose();\n }", "public static int calculateDataSize(String name, byte[] key, byte[] value, long threadId, long ttl, boolean async) {\n return ClientMessage.HEADER_SIZE//\n + (BitUtil.SIZE_OF_INT + name.length() * 3)//\n + (BitUtil.SIZE_OF_INT + key.length)//\n + (BitUtil.SIZE_OF_INT + value.length)//\n + BitUtil.SIZE_OF_LONG//\n + BitUtil.SIZE_OF_LONG//\n + BitUtil.SIZE_OF_BYTE;\n }", "public TarArchiveEntry(byte[] headerBuf, ArchiveEntryEncoding encoding) throws IOException {\n this();\n parseTarHeader(headerBuf, encoding);\n }", "public String getChecksumForType(MigrationType type);", "public TarHeader(byte buff[]) throws IOException {\r\n this.header = buff;\r\n initlializeHeaderFields();\r\n }", "private String handleWantDigestHeader(final Binary binary, final String wantDigest)\n throws UnsupportedAlgorithmException {\n final Collection<String> preferredDigests = parseWantDigestHeader(wantDigest);\n if (preferredDigests.isEmpty()) {\n throw new UnsupportedAlgorithmException(\n \"Unsupported digest algorithm provided in 'Want-Digest' header: \" + wantDigest);\n }\n\n final Collection<URI> checksumResults = fixityService.getFixity(binary, preferredDigests);\n return checksumResults.stream().map(uri -> uri.toString().replaceFirst(\"urn:\", \"\")\n .replaceFirst(\":\", \"=\").replaceFirst(\"sha1=\", \"sha=\")).collect(Collectors.joining(\",\"));\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static int getChecksum(int type, int id) {\n int crc = 0;\n byte[] data = null;\n try {\n data = GameLoader.getCache().CACHES[type + 1].decompress(id);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (data != null && data.length > 2) {\n int length = data.length - 2;\n crc32.reset();\n crc32.update(data, 0, length);\n crc = (int) crc32.getValue();\n }\n return crc;\n }", "public final static short calculateChecksum(final ByteBuffer buffer,\n final byte[] sourceAddress,\n final byte[] destinationAddress) {\n return IPPacket.calculateChecksum(buffer, Checksum, sourceAddress, destinationAddress, IP_PROTOCOL_NUMBER,\n Length.get(buffer));\n }", "public long CRC() {\n long retval = 0;\n retval += ((data[3] << 24) + (data[2] << 16) + (data[1] << 8) + data[0]);\n retval += ((data[7] << 24) + (data[6] << 16) + (data[5] << 8) + data[4]);\n retval += ((data[11] << 24) + (data[10] << 16) + (data[9] << 8) + data[8]);\n retval += ((data[15] << 24) + (data[14] << 16) + (data[13] << 8) + data[12]);\n return retval;\n }", "private long computeCheckSum(final byte[] buf) {\n long sum = 0;\n for (byte aBuf : buf) {\n sum += 255 & aBuf;\n }\n return sum;\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public void write(LogEntryProto entry) throws IOException {\n final int serialized = entry.getSerializedSize();\n final int proto = CodedOutputStream.computeUInt32SizeNoTag(serialized) + serialized;\n final int total = proto + 4; // proto and 4-byte checksum\n final byte[] buf = sharedBuffer != null? sharedBuffer.get(): new byte[total];\n Preconditions.assertTrue(total <= buf.length, () -> \"total = \" + total + \" > buf.length \" + buf.length);\n preallocateIfNecessary(total);\n\n CodedOutputStream cout = CodedOutputStream.newInstance(buf);\n cout.writeUInt32NoTag(serialized);\n entry.writeTo(cout);\n\n checksum.reset();\n checksum.update(buf, 0, proto);\n ByteBuffer.wrap(buf, proto, 4).putInt((int) checksum.getValue());\n\n out.write(buf, total);\n }", "TarEntry CreateEntryFromFile(String fileName);", "BlockChainLink getLinkBlockHeader(byte[] hash);", "private Checksum getCheckSun() {\n if (transientChecksum == null) {\n transientChecksum = new Adler32();\n }\n return transientChecksum;\n }", "public long checkSum() {\n \tCRC32 crc = new CRC32();\n \tcrc.reset(); // in order to reuse the object for all signals\n \tString signal = this.trainID + \":\" + Double.toString(this.trainWeight) + \":\" + Double.toString(this.currentX) + \",\" + \n \t\t\tDouble.toString(this.currentY);\n \tcrc.update(signal.getBytes()); // signal is a String containing your data\n \tlong checksum = crc.getValue();\n \treturn checksum;\n }", "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 writeEntryHeader(byte[] outbuf, ArchiveEntryEncoding encoding, boolean starMode) throws IOException {\n int offset = 0;\n offset = ArchiveUtils.formatNameBytes(name, outbuf, offset, NAMELEN, encoding);\n offset = writeEntryHeaderField(mode, outbuf, offset, MODELEN, starMode);\n offset = writeEntryHeaderField(userId, outbuf, offset, UIDLEN, starMode);\n offset = writeEntryHeaderField(groupId, outbuf, offset, GIDLEN, starMode);\n offset = writeEntryHeaderField(size, outbuf, offset, SIZELEN, starMode);\n offset = writeEntryHeaderField(modTime, outbuf, offset, MODTIMELEN, starMode);\n int csOffset = offset;\n for (int c = 0; c < CHKSUMLEN; ++c) {\n outbuf[offset++] = (byte) ' ';\n }\n outbuf[offset++] = linkFlag;\n offset = ArchiveUtils.formatNameBytes(linkName, outbuf, offset, NAMELEN, encoding);\n offset = ArchiveUtils.formatNameBytes(MAGIC_POSIX, outbuf, offset, MAGICLEN);\n offset = ArchiveUtils.formatNameBytes(version, outbuf, offset, VERSIONLEN);\n offset = ArchiveUtils.formatNameBytes(userName, outbuf, offset, UNAMELEN, encoding);\n offset = ArchiveUtils.formatNameBytes(groupName, outbuf, offset, GNAMELEN, encoding);\n offset = writeEntryHeaderField(devMajor, outbuf, offset, DEVLEN, starMode);\n offset = writeEntryHeaderField(devMinor, outbuf, offset, DEVLEN, starMode);\n while (offset < outbuf.length) {\n outbuf[offset++] = 0;\n }\n long chk = computeCheckSum(outbuf);\n formatCheckSumOctalBytes(chk, outbuf, csOffset, CHKSUMLEN);\n }", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "int computeHashCode(byte val);", "private PostData calculateHash(String key, String command, String var1, String salt) {\n checksum = null;\n checksum = new PayUChecksum();\n checksum.setKey(key);\n checksum.setCommand(command);\n checksum.setVar1(var1);\n checksum.setSalt(salt);\n return checksum.getHash();\n }", "public static long crc32(String s) {\n Checksum checksum = new CRC32();\n byte[] bytes = s.getBytes();\n checksum.update(bytes, 0, bytes.length);\n return checksum.getValue();\n }", "public String calculateHash () {\n StringBuilder hashInput = new StringBuilder(previousHash)\n .append(timeStamp)\n .append(magicNumber)\n .append(timeSpentMining);\n for (Transfer transfer : this.transfers) {\n String transferDesc = transfer.getDescription();\n hashInput.append(transferDesc);\n }\n return CryptoUtil.applySha256(hashInput.toString());\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}", "private void validateChecksum(ReadObjectResponse res) throws IOException {\n int calculatedChecksum =\n Hashing.crc32c().hashBytes(res.getChecksummedData().getContent().toByteArray()).asInt();\n int expectedChecksum = res.getChecksummedData().getCrc32C();\n if (calculatedChecksum != expectedChecksum) {\n throw new IOException(\n String.format(\n \"Message checksum (%s) didn't match expected checksum (%s) for '%s'\",\n expectedChecksum, calculatedChecksum, resourceId));\n }\n }" ]
[ "0.6431495", "0.60488033", "0.58404195", "0.5669164", "0.5618391", "0.55881834", "0.5585545", "0.55431145", "0.55309904", "0.54139405", "0.53988296", "0.5385062", "0.5345088", "0.53386676", "0.5301279", "0.52901626", "0.5273019", "0.52519614", "0.52427566", "0.5227671", "0.52260315", "0.51792216", "0.5174343", "0.5171135", "0.5160101", "0.5159795", "0.5156854", "0.515014", "0.5101639", "0.5091031", "0.5084632", "0.50745475", "0.50352836", "0.50281465", "0.5011025", "0.5009559", "0.49760503", "0.49523008", "0.49482197", "0.49444035", "0.49435782", "0.49424878", "0.49390948", "0.49292725", "0.4924191", "0.48736575", "0.4858027", "0.4856271", "0.4850351", "0.48475182", "0.48342875", "0.48255822", "0.47657657", "0.47592086", "0.47575974", "0.47575974", "0.47183564", "0.47145316", "0.46961105", "0.46679047", "0.46333706", "0.46283528", "0.4626775", "0.4603349", "0.46031824", "0.45848837", "0.4568151", "0.4565317", "0.45588937", "0.45482776", "0.45442846", "0.45417678", "0.45299762", "0.4529768", "0.45268622", "0.45203003", "0.4518525", "0.4514699", "0.45060462", "0.45030504", "0.44992873", "0.44951186", "0.4493512", "0.4480327", "0.4477262", "0.44742376", "0.44716066", "0.44667512", "0.44652966", "0.44652113", "0.44581145", "0.44516385", "0.44480586", "0.44218183", "0.44217914", "0.43794385", "0.43778506", "0.43751234", "0.43707502", "0.43685678" ]
0.4494831
82
Returns you the buffer associated with this header.
public byte[] getBuffer() { return this.header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ByteBuffer getBuffer() {\n return _buf;\n }", "public Buffer getBuffer() {\n return buffer.getCopy();\n }", "public ByteBuffer getBuffer() {\n return buffer;\n }", "public final ByteBuffer getBuffer() {\n return buf;\n }", "protected ByteBuffer getBuffer() {\n return buffer;\n }", "public ByteBuffer buffer() { return bb; }", "public ByteBuffer getBuffer() {\n return ((ByteBuffer)this.b.asReadOnlyBuffer().position(this.pointer == 0 ? this.b.limit() : this.pointer)).slice().order(this.b.order());\n }", "public byte[] getBuffer () {\n\t\t\t\n\t\t\tif (index < 0)\n\t\t\t\treturn null;\n\n\t\t\tint len = index;\n\t\t\tbyte[] b = new byte[len+1];\n\t\t\tfor (int k=0; k <= len; k++)\n\t\t\t\tb[k] = buf[k];\n\n\t\t\treturn b;\n\t\t}", "public byte [] getBuf() {\r\n return bop.getBuf();\r\n }", "public ByteBuffer getByteBuffer();", "byte [] getBuffer ();", "public Body getBody() {\n return new BufferBody(buffer);\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "long[] getBuffer() {\n\t\treturn buffer;\n\t}", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public byte[] getHeader() {\n\treturn header;\n }", "public static byte[] getAPDUBuffer() {\n return getAPDUBuffer(currentTI.getAPDUBuffer());\n }", "CharArrayBuffer getBuffer()\n ;", "public AudioBuffer getAudioBuffer() {\n\t\treturn buffer;\n\t}", "public IOBuffer getIOBuffer() {\n\t\treturn iOBuffer;\n\t}", "public ByteBuffer getData() {\r\n\t\tByteBuffer buffer = null;\r\n\t\tbuffer = new ByteBuffer(messageData);\r\n\t\treturn buffer;\r\n\t}", "@Nonnull\n public String toBuf() {\n Buf buf = new Buf();\n Error.throwIfNeeded(jniToBuf(buf, getRawPointer()));\n return buf.getString().orElse(\"\");\n }", "public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "public Object getHeader() {\n return header;\n }", "@Override\n public byte[] getBuffer() {\n return EMPTY_RESULT;\n }", "public ByteBuffer getHeader() {\n ByteBuffer wrap;\n byte[] bArr;\n if (this.largeBox || getSize() >= 4294967296L) {\n bArr = new byte[16];\n bArr[3] = (byte) 1;\n bArr[4] = this.type.getBytes()[0];\n bArr[5] = this.type.getBytes()[1];\n bArr[6] = this.type.getBytes()[2];\n bArr[7] = this.type.getBytes()[3];\n wrap = ByteBuffer.wrap(bArr);\n wrap.position(8);\n IsoTypeWriter.writeUInt64(wrap, getSize());\n } else {\n bArr = new byte[8];\n bArr[4] = this.type.getBytes()[0];\n bArr[5] = this.type.getBytes()[1];\n bArr[6] = this.type.getBytes()[2];\n bArr[7] = this.type.getBytes()[3];\n wrap = ByteBuffer.wrap(bArr);\n IsoTypeWriter.writeUInt32(wrap, getSize());\n }\n wrap.rewind();\n return wrap;\n }", "public FloatBuffer getData() {\n return buffer;\n }", "abstract public ByteString getBlocksBuffer();", "public char[] getResultBuffer() { return b; }", "public List<byte[]> getHeader() {\n\t\treturn this.fileHeader;\n\t}", "public ByteBuffer getFileData() {\n\t\treturn fileData;\n\t}", "private Buffer getBufferByPosition(int pos)\n throws IOException\n {\n return getBuffer(pos / BLOCK_SIZE);\n }", "public IBuffer newBuffer();", "public static ByteBuf getExpectedBuffer() {\n String msgHex = \"00 01 00 0b 00 00 00 0a 00 21 63 6f 6e 73 75 6d 65 72 2d 63 6f 6e 73 6f 6c 65 2d 63 \" +\n \"6f 6e 73 75 6d 65 72 2d 35 39 37 35 30 2d 31 ff ff ff ff 00 00 01 f4 00 00 00 01 03 \" +\n \"20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 0a 63 6f 64 65 63 2d 74 65 73 74 \" +\n \"00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \" +\n \"00 10 00 00 00 00 00 00 00 00\";\n return TestUtils.hexToBinary(msgHex);\n }", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "protected ByteBuffer writeHeader()\n {\n ByteBuffer buffer = ByteBuffer.allocate(getMessageSize());\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n\n buffer.put(HEADER.getBytes(), 0, 4);\n\n return buffer;\n }", "protected final char[] getCopyBuffer()\n {\n char[] buf = mCopyBuffer;\n if (buf == null) {\n mCopyBuffer = buf = mConfig.allocMediumCBuffer(DEFAULT_COPYBUFFER_LEN);\n }\n return buf;\n }", "private String getDataFromBuffer(){\r\n int bufferDataSize = mBufferData.size();\r\n StringBuilder temp = new StringBuilder();\r\n \r\n for (int i = 0; i < bufferDataSize; i++) {\r\n temp.append(mBufferData.remove());\r\n }\r\n return temp.toString();\r\n }", "public String getBufferStartCounter() {\r\n\t\treturn bufferStartCounter;\r\n\t}", "abstract public Buffer createBuffer();", "List<TrackerPayload> getBuffer();", "public Buffer getClipboard() {\n return clipboard.getCopy();\n }", "public final ByteBuffer getPayload() {\n return this.payload.slice();\n }", "public String getHeader() {\n return header;\n }", "public String getHeader() {\n return header;\n }", "@Override\n\tpublic Buffer getBuffer(PageID pageID) throws BufferException {\n\t\tint containerID = (pageID != null) ? pageID.getContainerNo() : 0;\n\n\t\tBuffer buffer = bufferMapping[containerID];\n\n\t\tif (buffer == null) {\n\t\t\tthrow new BufferException(\n\t\t\t\t\t\"No buffer associated with page number %s.\", pageID);\n\t\t}\n\n\t\treturn buffer;\n\t}", "public Buffer getEmptyBuffer()\n {\n // System.out.println(getClass().getName()+\":: getEmptyBuffer\");\n\n switch (protocol)\n {\n case ProtocolPush:\n if (!isEmptyBufferAvailable() && reset)\n return null;\n reset = false;\n return circularBuffer.getEmptyBuffer();\n case ProtocolSafe:\n synchronized (circularBuffer)\n {\n reset = false;\n while (!reset && !isEmptyBufferAvailable())\n {\n try\n {\n circularBuffer.wait();\n } catch (Exception e)\n {\n }\n }\n if (reset)\n return null;\n Buffer buffer = circularBuffer.getEmptyBuffer();\n circularBuffer.notifyAll();\n return buffer;\n }\n\n default:\n throw new RuntimeException();\n }\n }", "public T get(int position) {\n if (this.getSize() > 0) {\n return buffer[position];\n }\n return null;\n }", "public ByteArrayList getData() {\n return DataBuffer.this.getData();\n }", "public ByteBuf serialize() {\n\t\tByteBuf buffer = Unpooled.buffer();\n\t\twriteFully(buffer);\n\t\treturn buffer;\n\t}", "public byte[] getInstrumentedClassBuffer() {\n\t\tbyte[] byteCode = new byte[instrumentedClassBuffer.capacity()];\n\t\tinstrumentedClassBuffer.get(byteCode);\n\t\treturn byteCode;\n\t}", "public int getBufferLength() {\n return this.bufferLength;\n }", "public PGraphics getSrcBuffer() {\n\t\treturn this.src;\n\t}", "public Class<?> header() {\n return header;\n }", "public String getHeader() {\n\t\treturn header.toString();\n\t}", "public WDBuffer m3789b() {\n return new WDBuffer();\n }", "public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}", "public Long getCertBuf() {\n\t\treturn certBuf;\n\t}", "public String getHeader() {\n\t\treturn _header;\n\t}", "public int getBufferSize() {\n\t\treturn buffer.length;\n\t}", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public ByteBuffer getVertexBuffer() {\n \treturn vertBuf;\n }", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public String getName()\n {\n return \"buffermode\";\n }", "public Header getHeader() {\n\t\treturn this.header;\n\t}", "public int size() { return buffer.length; }", "public String getHeader() {\n\t\t\treturn header;\n\t\t}", "protected StringBuffer getTextBuffer() {\n return this.textBuffer;\n }", "public byte[] getByteArray() {\n try {\n byte[] ret = (byte[]) byteBuffers.dequeue();\n num++;\n //Thread.dumpStack();\n if(ZenBuildProperties.dbgDataStructures){\n System.out.write('b');\n System.out.write('a');\n System.out.write('_');\n System.out.write('c');\n System.out.write('a');\n System.out.write('c');\n System.out.write('h');\n System.out.write('e');\n edu.uci.ece.zen.utils.Logger.writeln(num);\n }\n\n if (ret == null) {\n return (byte[]) imm.newArray(byte.class, 1024);\n } else {\n return ret;\n }\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.FATAL, getClass(), \"getByteArray\", e);\n System.exit(-1);\n }\n return null;\n }", "public ByteBuffer getTextureBuffer(String name) {\n\t\treturn TextureManager.global.getTextureBuffer(name);\n\t}", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "public Header parseHeader(CharArrayBuffer buffer) throws ParseException {\n/* 445 */ return (Header)new BufferedHeader(buffer);\n/* */ }", "public byte[] getCopyBytes() {\n try {\n return serialToStream();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public abstract ByteBuffer getPacket();", "com.didiyun.base.v1.Header getHeader();", "public byte[] getVideoBuffer()\n {\n return this.videocard.vgaMemory;\n }", "@Override\n public long getFilePointer() {\n return this.fileOffset + this.bufferPointer.bufferOffset;\n }", "public final ByteBuffer serialize() {\n return this.b.asReadOnlyBuffer().order(this.b.order());\n }", "public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }", "public byte[] getBhTimestamp() {\n return bhTimestamp;\n }" ]
[ "0.7695279", "0.76004773", "0.75912327", "0.7559755", "0.7385815", "0.73651075", "0.71458554", "0.7095035", "0.6945379", "0.67840135", "0.6729331", "0.6564716", "0.64992326", "0.6425868", "0.6352961", "0.6342217", "0.63395023", "0.6325471", "0.6255709", "0.61713153", "0.61336535", "0.6096759", "0.6068821", "0.6066551", "0.60440195", "0.6002337", "0.59398794", "0.5904648", "0.58929074", "0.5877636", "0.5859661", "0.58458245", "0.5841519", "0.58156323", "0.577696", "0.5771238", "0.57632196", "0.57352084", "0.5723294", "0.5696995", "0.56863785", "0.5683229", "0.56785154", "0.5661442", "0.5647797", "0.5615622", "0.5594946", "0.5594946", "0.5577065", "0.55663586", "0.55611175", "0.5554638", "0.55539393", "0.55301255", "0.55056083", "0.5486727", "0.5483343", "0.5472879", "0.546413", "0.54635596", "0.54515433", "0.544752", "0.54208016", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.541028", "0.5407638", "0.5397038", "0.539621", "0.5389787", "0.53879094", "0.5387486", "0.5386149", "0.5377153", "0.5374061", "0.537224", "0.53710043", "0.53633595", "0.53628755", "0.5350084", "0.5349573", "0.5348228", "0.53464824", "0.53449404", "0.53371143" ]
0.84731764
0
Getter method for file name
public String getFileName() { return fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "public String getFileName();", "public String getFileName();", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "String getFilename();", "public String getFileName ();", "public abstract String getFileName();", "private String getFileName() {\n\t\t// retornamos el nombre del fichero\n\t\treturn this.fileName;\n\t}", "public String getFilename();", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "protected String getFileName() {\n\t\treturn fileName;\n\t}", "protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }", "public final String getFileName()\r\n {\r\n return _fileName;\r\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}", "public String getFilename() {\n\treturn file.getFilename();\n }", "public String getFileName() \n {\n return fileName;\n }", "public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}", "public String getFile_name() {\n\t\treturn file_name;\n\t}", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}", "public String getFILE_NAME() { return FILE_NAME; }", "public String getName()\n {\n return( file );\n }", "public String getFileName() {\n\t\treturn file.getFileName();\n\t}", "public String getFileName() {\n\t\treturn file.getName();\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}", "public String getName() {\n return _file.getAbsolutePath();\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName(){\n\t\treturn _fileName;\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "public final String getFileName() {\n return this.fileName;\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String getFileName() {\n return this.fileName;\n }", "public String getFileName() {\n return this.fileName;\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic String getFilename() {\n\t\treturn this.path.getFileName().toString();\n\t}", "@Override\n protected String getFileName() {\n return path;\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }", "public String getFileName() {\n return filename;\n }", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String fileName () {\n\t\treturn fileName;\n\t}", "public String getName() {\r\n return mFile.getName();\r\n }", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFilename() {\n\treturn(filename);\n }", "public String getName()\n\t{\n\t\treturn _fileName;\n\t}", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "@java.lang.Override\n public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n }\n }", "@Override\n public String getFilename() {\n return filename;\n }", "public String getName() {\n\t\treturn filename;\n\t}" ]
[ "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8541808", "0.8541808", "0.8512379", "0.8512379", "0.8512379", "0.8512379", "0.8512379", "0.84856933", "0.84856933", "0.8448822", "0.8440679", "0.8400226", "0.83129925", "0.8304292", "0.82842547", "0.8238982", "0.8208616", "0.8157114", "0.8122224", "0.80992544", "0.80885404", "0.8078223", "0.803835", "0.8017012", "0.80132985", "0.79974365", "0.7983356", "0.79684895", "0.79677445", "0.796483", "0.7963692", "0.7940759", "0.7932744", "0.79307914", "0.7930257", "0.7927359", "0.79163754", "0.7910852", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.7902796", "0.79010063", "0.78924066", "0.78832126", "0.78832126", "0.7873783", "0.78532255", "0.78477603", "0.78477603", "0.7845092", "0.7845092", "0.7838361", "0.7835833", "0.78353816", "0.78353816", "0.78068805", "0.7804156", "0.7804156", "0.7804156", "0.7795499", "0.77865285", "0.77813876", "0.77724355", "0.7767304", "0.7767304", "0.7767304", "0.7767304", "0.7767304", "0.7767304", "0.7762994", "0.7752546", "0.77476054", "0.774315", "0.773512", "0.773512", "0.773512", "0.773512", "0.773512", "0.7725995", "0.7725995", "0.77200305", "0.77033293" ]
0.79869413
37
Setter method to set the name of the file.
public void setFileName(String fileName) { this.fileName = fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileName( String name ) {\n\tfilename = name;\n }", "public void setFileName(String name) {\r\n this.fileName = name == null ? null : name.substring(name.lastIndexOf(File.separator) + 1);\r\n }", "public void setFileName(String name)\n\t{\n\t\tfileName = name;\n\t}", "public void setName(String filename) {\n\t\tthis.filename = filename;\n\t}", "public void setFileName(final String theName)\r\n {\r\n\r\n // this means we are currently in a save operation\r\n _modified = false;\r\n\r\n // store the filename\r\n _fileName = theName;\r\n\r\n // and use it as the name\r\n if (theName.equals(NewSession.DEFAULT_NAME))\r\n setName(theName);\r\n\r\n }", "void setFileName( String fileName );", "public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "public void SetFileName(String fileName) {\r\n\tthis.fileName = fileName;\r\n }", "public void setFileName(final File filename) {\n fFileName = filename;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n fileName_ = value;\n onChanged();\n return this;\n }", "public void setFileName(String fileName)\r\n/* 16: */ {\r\n/* 17:49 */ this.fileName = fileName;\r\n/* 18: */ }", "public void setFileName(String fileName)\r\n\t{\r\n\t\tm_fileName = fileName;\r\n\t}", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n fileName_ = value;\n onChanged();\n return this;\n }", "public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }", "public void setFileName(String nomeFile) {\n\t\tthis.fileName = nomeFile;\n\t}", "@JsonSetter(\"fileName\")\r\n public void setFileName (String value) { \r\n this.fileName = value;\r\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(final String fileName) {\r\n this.fileName = fileName;\r\n }", "public void setFile(String fileName)\n {\n }", "public final void setFileName(final String fileName) {\n this.fileName = fileName;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public void setFileName(String fileName) {\n\t\tnew LabeledText(\"File name\").setText(fileName);\n\t}", "private void setFileName(final String fileName) {\n\t\t// almacenamos el nombre del fichero\n\t\tthis.fileName = fileName;\n\t}", "public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void updateFileName()\n {\n\n String fn= presenter.getCurrentTrack().getFileName();\n if(fn!=null && !fn.isEmpty()) {\n File file = new File(fn);\n fn=file.getName();\n }\n if(fn==null || fn.isEmpty())\n fn=\"*\";\n fileNameTextView.setText(fn);\n }", "public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}", "public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}", "protected void setName(String name) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a7eb4750-e93f-41a2-ab4f-3fcf8cb1f39b\");\n if (name != null && getPlatform() == PLATFORM_FAT && !name.contains(\"/\")) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6d8baf11-928b-4d13-a982-c28e6d5c3bb7\");\n name = name.replace('\\\\', '/');\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e80bbe2d-caf4-4e25-b64c-8fef2f2969dd\");\n this.name = name;\n }", "public void setFileName(String fileName)\n\t{\n\t\tthis.fileName = fileName;\n\t}", "@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public void setFileName(final String fileName) {\n\t\tthis.fileName = fileName;\n\t}", "private void setSourceName(String name) {\n srcFileName = name;\n }", "public void setFileName(String fileName)\r\n\t{\r\n\t\tsettings.setFileName(fileName);\r\n\t}", "private void setFileNamePath(String value) {\n\t\tthis.fileNamePath = value;\n\t}", "public void setFileName(String fileName) {\r\n this.fileName = fileName == null ? null : fileName.trim();\r\n }", "public void setName(String name)\n {\n fName = name;\n }", "public void setFileName(String fileName) {\n\t\tthis.fileName = fileName;\n\t}", "public void setFileName(String fileName) {\n\t\tthis.fileName = fileName;\n\t}", "public void setName(String name)\n {\n if (name == null || DefaultFileHandler.sanitizeFilename(name, getLogger()).isEmpty())\n {\n throw new NullPointerException(\"Custom deployable name cannot be null or empty\");\n }\n this.name = name;\n }", "public FileName(String fn) {\n setFile(fn);\n }", "public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }", "public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }", "public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }", "public void setCurrentFile(String name) {\n\t\tthis.currentFile = name;\n\t}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String fileName) throws FormatException {\n evaluate(fileName);\n }", "protected void setName(String name) {\n this._name = name;\n }", "void getFileName(File file) throws IOException {\n this.file=file;\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public final void setPropertyFileName(String fileName) {\n this.propertyFileName = fileName;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n\t this.name = name;\n\t }", "public void setName(String value) {\n this.name = value;\n }", "public void setFilename(final String filename)\n {\n this.currentFile = filename; // for use with Gnu Emacs\n }", "public void setName(String name) {\r\n this._name = name;\r\n }", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "public void setFileName(@Nullable String documentName) {\n this.fileName = documentName;\n }", "public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }", "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\n fName= name;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "protected void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public String getFile_name() {\n\t\treturn file_name;\n\t}", "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public void setFilename(String fn) {\n\t\tfilename = fn;\n\t}", "protected void setName(String name) {\n this.name = name;\n }", "public String getName()\n\t{\n\t\treturn _fileName;\n\t}", "public void setFilename(String filename) {\n this.filename = filename;\n }", "public void setFilename(String filename) {\n this.filename = filename;\n }", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName( final String name )\r\n {\r\n this.name = name;\r\n }" ]
[ "0.80961746", "0.7971805", "0.7891024", "0.78165", "0.7706754", "0.7662618", "0.7621634", "0.75951636", "0.7497318", "0.7329077", "0.73077565", "0.7296822", "0.7296721", "0.7273174", "0.72707677", "0.7206543", "0.7172623", "0.7157991", "0.7156188", "0.7143601", "0.71386236", "0.71074766", "0.7084552", "0.7084552", "0.7084552", "0.7084552", "0.7084552", "0.7084552", "0.7068892", "0.70575947", "0.70456463", "0.7040615", "0.7040615", "0.7040615", "0.7040615", "0.7040615", "0.7004039", "0.6987433", "0.6987433", "0.6928634", "0.69094414", "0.68759596", "0.6870338", "0.68421257", "0.683194", "0.68094534", "0.6800557", "0.6760516", "0.6757446", "0.675392", "0.675392", "0.6753022", "0.6752862", "0.6716641", "0.6716641", "0.6716641", "0.6701143", "0.6699958", "0.6697905", "0.66878325", "0.6681867", "0.6660761", "0.66533536", "0.66479075", "0.66449076", "0.66449076", "0.6644029", "0.66351247", "0.66326725", "0.66324955", "0.66307354", "0.6629115", "0.66259295", "0.6622065", "0.66187614", "0.66187614", "0.66169477", "0.6616934", "0.66052437", "0.66052437", "0.66052437", "0.66052437", "0.66047955", "0.66034114", "0.6603036", "0.6600001", "0.6597084", "0.6597084", "0.65965915", "0.6591737", "0.6591471", "0.65785635", "0.65785635", "0.657215", "0.656872", "0.656872", "0.656872", "0.65653354", "0.65653354", "0.656055" ]
0.7197829
16
Returns the file size in bytes.
public long getFileSize() { return fileSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long size() {\n return file.length();\n }", "public long size() {\n return this.filePage.getSizeInfile();\n }", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "public static long size(File file) {\n\t\treturn file.length();\n\t}", "public long getSize() {\r\n return mFile.getSize();\r\n }", "public long getFileSize(){\n\t return new File(outputFileName).length();\n }", "public long getFileSize();", "public long getFileSize();", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "long getFileSize();", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public long getFileSize() {\n return fileSize_;\n }", "public long getFileSize() {\n\t\treturn mFileSize;\n\t}", "public long getSizeFromFile(File file) {\n\t\tlong size = 0;\n\t\tif (file != null) {\n\t\t\tsize = file.length();\n\t\t}\n\t\treturn size;\n\t}", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "public long getFileSize() {\n return fileSize_;\n }", "public long getFileSize(String filename) {\n\t\treturn 0;\n\t}", "public long length() {\n return _file.length();\n }", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "public long getFileLength() {\n\n return fileLength;\n\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "long sizeInBytes() throws IOException;", "public static long getFileSize(String filePath) {\n\t\treturn new File(filePath).length();\n\t}", "public long getFileSize(String fileName)\n {\n long size = -1;\n\n File file = new File(fileLocation.getAbsolutePath() + File.separatorChar\n + fileName);\n\n if (file.isFile())\n {\n size = file.length();\n }\n\n return size;\n }", "public final long getFileLength()\n\t\tthrows IOException {\n\t\t\n\t\t//\tGet the file length\n\t\t\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\treturn tempFile.length();\n\t}", "public static long getFileSize(String fileName) {\n return new File(fileName).length();\n }", "public String getFileSize() {\n return fileSize;\n }", "public float getFileSize() {\n return fileSize_;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "private int getFileSize(File file) {\r\n\t\tFileInputStream fis = null;\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tint size = fis.available();\r\n\t\t\tfis.close();\r\n\t\t\treturn size;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public int getFileSize (String filePath) throws RemoteException {\r\n\t\tint size;\r\n\t\tFile myFile = new File(filePath);\r\n\t\tsize = (int)myFile.length();\r\n\t\treturn size;\r\n\r\n\t\t\t\t\r\n\t}", "public float getFileSize() {\n return fileSize_;\n }", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public long getFileSize() {\n return this.originalFileSize;\n }", "public static long getDownloadingFileSize() {\n\t\treturn downloadingFileSize;\n\t}", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "@Override\n public long size() {\n if (!isRegularFile()) {\n throw new IllegalStateException(\"not a regular file!\");\n }\n return this.fileSize;\n }", "public static long getFileSize(String path) {\n if (path == null || path.isEmpty()) {\n return -1;\n }\n File file = new File(path);\n return (file.exists() && file.isFile() ? file.length() : -1);\n }", "public int size() {\n return bytes.length;\n }", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "public double fileSizeMB(String filePath) throws NumberFormatException, IOException {\n \tFile file = new File(filePath.replace(\"\\\\\", \"/\"));\n if(file.exists()) {\n // fileWriterPrinter(\"FILE SIZE: \" + file.length() + \" Bit\");\n // fileWriterPrinter(\"FILE SIZE: \" + file.length()/1024 + \" Kb\");\n fileWriterPrinter(\"FILE SIZE: \" + ((double) file.length()/(1024*1024)) + \" Mb\");\n return (double) file.length()/(1024*1024);\n } else { fileWriterPrinter(\"File doesn't exist\"); return 0; }\n \n }", "public long getByteCount() {\n return byteCount;\n }", "long getFileLength(String path) throws IOException;", "public long size() {\n try {\n return Files.size(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to get the size of staged document!\", e);\n }\n }", "public Number getFileCount() {\r\n\t\treturn (this.fileCount);\r\n\t}", "public int size() {\n return files.size();\n }", "public long size(String path);", "public long getSize() {\n\t\treturn size;\n\t}", "public long getDbFileSize() {\r\n\tlong result = -1;\r\n\r\n\ttry {\r\n\t File dbFile = new File(fileName);\r\n\t if (dbFile.exists()) {\r\n\t\tresult = dbFile.length();\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n\r\n\treturn result;\r\n }", "protected long getDataFileSize() throws IOException\r\n {\r\n long size = 0;\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n if (dataFile != null)\r\n {\r\n size = dataFile.length();\r\n }\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return size;\r\n }", "public Integer getFileSize(Long key) {\n File file = new File(MUSIC_FILE_PATH + File.separator + key + \".mp3\");\n return (int)file.length();\n }", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public long getCurrentFileLength() {\n\t\tif (requestedFile != null) {\n\t\t\ttry {\t// avoid race conditions\n\t\t\t\treturn requestedFile.length;\n\t\t\t} catch (NullPointerException e) {}\n\t\t}\n\t\ttry {\t// avoid race conditions\n\t\t\treturn currentFile.length;\n\t\t} catch (NullPointerException e) {}\n\t\treturn 0;\n\t}", "@XmlElement\n public long getFileSize() {\n return this.fileSize;\n }", "public static byte getSize() {\n return SIZE;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "int getFileCount();", "Long diskSizeBytes();", "public int TotalBytes()\n {\n int totalBytes = request.getContentLength();\n if (totalBytes == -1) return 0;\n return totalBytes;\n }", "long getSize() throws IOException;", "public long getTotalSize() {\n return totalSize;\n }", "public long size() {\n\t\treturn size;\n\t}", "public long getSize() {\r\n return size;\r\n }", "public long getSize() {\n return size.get();\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public long getFileCompressedSize()\r\n {\r\n return lFileCompressedSize;\r\n }", "@Override\n\tpublic long contentLength() throws IOException {\n\t\treturn Files.size(this.path);\n\t}", "public int getSize() {\n\t\treturn smilFiles.size();\n\t}", "public long picoSize() throws IOException {\n return _backing.length();\n }", "public long getSize() {\n return size;\n }", "public long getInstrumentedFileSize() {\n if (this.rewrittenFile != null) return this.rewrittenFile.length();\n else return -1;\n }", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\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}\n\t\treturn this.V;\n\t}", "private Long computeSize(InputStreamWrapper stream) throws IOException {\n long size = 0;\n try (InputStream inStream = stream.getStream()) {\n byte[] buffer = new byte[1024 * 1024]; // 1MB\n int chunkBytesRead;\n while ((chunkBytesRead = inStream.read(buffer)) != -1) {\n size += chunkBytesRead;\n }\n }\n\n return size;\n }", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "public synchronized long size() {\n\t\treturn size;\n\t}", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "public int getTotalSize();", "public abstract long size() throws IOException;", "public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRUCTURE)\n return size * members.getStructureSize();\n // else if (this.isVariableLength())\n // return 0; // do not know\n else\n return size * getDataType().getSize();\n }", "long getSize() throws FileSystemException;", "long getWorkfileSize();", "long getMaxFileSizeBytes();", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "@Override\n public synchronized long size(Path file) throws FileNotFoundException\n {\n File f = file.toFile(root);\n if (!f.exists() || f.isDirectory())\n throw new FileNotFoundException(\"File not found or is a directory\");\n return f.length(); \n }", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "public long getSize();", "public int getFileSize(Uri uri) {\n\t\tContentResolver cr = getContentResolver();\n\t\tInputStream is = null;\n\t\tint size = 0;\n\t\ttry {\n\t\t\tis = cr.openInputStream(uri);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tsize = is.available();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString fileSize = android.text.format.Formatter.formatShortFileSize(\n\t\t\t\tthis, size);\n\n\t\tint sizef = (int) Float.parseFloat(fileSize.substring(0,\n\t\t\t\tfileSize.length() - 2));\n\t\treturn sizef;\n\t}", "public int getLengthInBytes()\n \t{\n \t\treturn FormatableBitSet.numBytesFromBits(lengthAsBits);\n \t}" ]
[ "0.8380398", "0.82824004", "0.81919116", "0.8130729", "0.8122667", "0.80664366", "0.7987896", "0.7937613", "0.7923065", "0.7923065", "0.78927386", "0.7739394", "0.7706008", "0.76779574", "0.7666144", "0.7657571", "0.76551133", "0.76413655", "0.7634756", "0.75949275", "0.7524168", "0.75100523", "0.7506214", "0.74638736", "0.7424317", "0.74107647", "0.74011517", "0.7375228", "0.73578835", "0.735184", "0.7341335", "0.7324982", "0.7294211", "0.72683865", "0.7257153", "0.7203184", "0.7185496", "0.71711206", "0.71685874", "0.7155019", "0.71350586", "0.7132152", "0.7125845", "0.7121402", "0.709745", "0.7092331", "0.7076425", "0.7061834", "0.7027257", "0.70110756", "0.70063657", "0.6993983", "0.6993445", "0.698447", "0.6975591", "0.69696385", "0.69566673", "0.6953099", "0.695003", "0.6915515", "0.6894473", "0.6894473", "0.6894473", "0.6894473", "0.6892896", "0.6872797", "0.6871713", "0.68671215", "0.68585324", "0.6857338", "0.6855524", "0.684847", "0.68431556", "0.68323904", "0.6830709", "0.6828991", "0.68206847", "0.681664", "0.68164754", "0.6814249", "0.6809331", "0.6785885", "0.67838603", "0.6768567", "0.67655677", "0.6749706", "0.67380005", "0.6737577", "0.6731268", "0.67264795", "0.6708875", "0.670782", "0.6700192", "0.6697928", "0.6697928", "0.6691261", "0.66871464", "0.6685947", "0.6683631", "0.6682" ]
0.7561722
20
Returns the file type. Currently only two types are supported. 1. Normal File 2. Directory.
public byte getLinkIndicator() { return this.linkIndicator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public String getFileType()\n {\n if (m_fileOptions.m_type == null ||\n m_fileOptions.m_type.length() <= 0)\n {\n return getTypeFromExtension();\n }\n\n return m_fileOptions.m_type;\n }", "public String getType()\n {\n return VFS.FILE_TYPE;\n }", "public String getFileType() {\n return fileType;\n }", "public java.lang.String getFiletype() {\n return filetype;\n }", "public String getFileType(){\n\t\treturn type;\n\t}", "public String getFiletype() {\n return filetype;\n }", "public Integer getFileType() {\n return fileType;\n }", "public FileType getFileType() {\n return fileType;\n }", "public TFileType getFileType() {\n\n\t\treturn type;\n\t}", "public static String getFileType(){\n\t\t//Get the selected file type\n\t\tString type = (String) fileType.getSelectedItem();\n\t\t//Re-enable the combobox, since download has already started\n\t\tfileType.setEnabled(true);\n\t\t//Reset the default file type\n\t\tfileType.setSelectedIndex(0);\n\t\treturn type;\n\t}", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }", "public String getContentType() {\r\n return mFile.getContentType();\r\n }", "protected FileType doGetType()\n {\n return m_type;\n }", "public static FileType getType(final File file) {\n if (FileUtils.isLink(file)) {\n return SYMLINK;\n } else if (file.isDirectory()) {\n return DIRECTORY;\n } else if (file.isFile()) {\n return FILE;\n }\n return FILE;\n }", "public static int fileType(File file) {\n for (String type : imageType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_IMAGE_CODE;\n }\n }\n\n for (String type : videoType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_VIDEO_CODE;\n }\n }\n\n for (String type : audioType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.AUDIO_CODE;\n }\n }\n return Template.Code.FILE_MANAGER_CODE;\n\n }", "public String getFileSystemType() {\n return this.fileSystemType;\n }", "public TrimString getFileSystemType() {\n\t\treturn(_type);\n\t}", "String getFileMimeType();", "public static FileTypes getFileType(String fileName) {\n\t\tFile file = new File(fileName);\n\t\tif (file.isDirectory()) {\n\t\t\treturn FileTypes.DIRECTORY;\n\t\t} else {\n\t\t\tif (isJavaSourceFile(fileName)) {\n\t\t\t\treturn FileTypes.JAVA_FILE;\n\t\t\t} else {\n\t\t\t\treturn FileTypes.NON_JAVA_FILE;\n\t\t\t}\n\t\t}\n\t}", "String[] getFileTypes();", "public static FileType valueOf(File file){\r\n\t\tString fileName = file.getName().toUpperCase();\r\n\t\treturn FileType.valueOf(fileName.substring(fileName.lastIndexOf(\".\")+1));\r\n\t}", "public edu.umich.icpsr.ddi.FileTypeType getFileType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTypeType target = null;\n target = (edu.umich.icpsr.ddi.FileTypeType)get_store().find_element_user(FILETYPE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private int getFileType(SourceFile sourceFile)\n\t{\n\t\tString name = sourceFile.getName();\n\t\tString pkg = sourceFile.getPackageName();\n\n\t\tif (name.startsWith(\"<\") && name.endsWith(\">\") || name.equals(\"GeneratedLocale\")) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\treturn SYNTHETIC_FILE;\n\n for (final String frameworkPkg : FRAMEWORK_FILE_PACKAGES )\n {\n // look for packages starting with pkgName\n if (pkg.startsWith(frameworkPkg + '\\\\') || //$NON-NLS-1$\n pkg.startsWith(frameworkPkg + '/') || //$NON-NLS-1$\n pkg.equals(frameworkPkg)) //$NON-NLS-1$\n {\n return FRAMEWORK_FILE;\n }\n }\n\n if (name.startsWith(\"Actions for\")) //$NON-NLS-1$\n return ACTIONS_FILE;\n\n return AUTHORED_FILE;\n}", "public String getMimeType ()\n {\n final String METHOD_NAME = \"getMimeType\";\n this.logDebug(METHOD_NAME + \"1/2: Started\");\n\n String mimeType = null;\n try\n {\n\tint contentType = this.document.getContentType();\n\tif ( contentType >= 0 ) mimeType = MediaType.nameFor[contentType];\n }\n catch (Exception exception)\n {\n\tthis.logWarn(METHOD_NAME + \"Failed to retrieve mime type\", exception);\n }\n\n this.logDebug(METHOD_NAME + \" 2/2: Done. mimeType = \" + mimeType);\n return mimeType;\n }", "private String fileType(String username,String folderName,String fileName){\n //从数据库中获取用户ID\n int userId=userService.getUserIdByname(username);\n //根据用户ID和文件夹名获取文件夹ID\n int folderId=folderService.getFolderIdByName(folderName,userId);\n //根据文件夹id和文件夹名获取文件实体,再取出type\n String fileType= tableService.getTableByName(fileName,folderId).getType();\n return fileType;\n }", "protected String getContentType()\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n String ext = FilenameUtils.getExtension(fullAttachmentFilename);\n if (ext == null)\n {\n return null;\n }\n if (ext.equalsIgnoreCase(\"pdf\"))\n {\n return \"application/pdf\";\n } else if (ext.equalsIgnoreCase(\"zip\"))\n {\n return \"application/zip\";\n } else if (ext.equalsIgnoreCase(\"jpg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"jpeg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"html\"))\n {\n return \"text/html\";\n\n } else if (ext.equalsIgnoreCase(\"png\"))\n {\n return \"image/png\";\n\n } else if (ext.equalsIgnoreCase(\"gif\"))\n {\n return \"image/gif\";\n\n }\n log.warn(\"Content type not found for file extension: \" + ext);\n return null;\n }", "String getContentType(String fileExtension);", "public String getFileContentType() {\r\n return (String) getAttributeInternal(FILECONTENTTYPE);\r\n }", "public interface FileType {\n\tString name();\n}", "ImageType getType();", "private String getFileExtension(String mimeType) {\n mimeType = mimeType.toLowerCase();\n if (mimeType.equals(\"application/msword\")) {\n return \".doc\";\n }\n if (mimeType.equals(\"application/vnd.ms-excel\")) {\n return \".xls\";\n }\n if (mimeType.equals(\"application/pdf\")) {\n return \".pdf\";\n }\n if (mimeType.equals(\"text/plain\")) {\n return \".txt\";\n }\n\n return \"\";\n }", "public final String getImageType() {\n String imageType = null;\n\n if (this.url != null) {\n imageType = this.url.substring(this.url.lastIndexOf(\".\") + 1);\n }\n\n return imageType;\n }", "public int getEntityType(){\n\t\tIterator<ArrayList<String>> i = headerLines.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tArrayList<String> headerLines = i.next();\n\t\t\tString headerName = headerLines.get(0);\n\t\t\tif (headerName.matches(\"Content-Type:\")){\n\t\t\t\tString headerData = headerLines.get(1);\n\t\t\t\tif(headerData.contains(\"text\")){\n\t\t\t\t\treturn TEXT;\n\t\t\t\t} else if (headerData.contains(\"pdf\")){\n\t\t\t\t\treturn PDF;\n\t\t\t\t} else if (headerData.contains(\"gif\")){\n\t\t\t\t\treturn GIF;\n\t\t\t\t} else if (headerData.contains(\"jpeg\")){\n\t\t\t\t\treturn JPEG;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public void setFileType(String fileType) {\r\n\t\tthis.fileType = fileType;\r\n\t}", "public String getFileExtension() {\n return toString().toLowerCase();\n }", "private static TYPE getFileType(final String path, final ServiceContext context) {\n return PROJECT_FILE;\n }", "public void setFileType(FileType typ) {\n fileType = typ;\n }", "public String getFilecontentContentType() {\n return filecontentContentType;\n }", "private String getMimeType(File file) {\n String fileName = file.getName();\n\n if (fileName.endsWith(\"css\")) {\n return \"text/css; charset=utf-8\";\n } else if (fileName.endsWith(\"html\")) {\n return \"text/html; charset=utf-8\";\n } else if (fileName.endsWith(\"jpg\") || fileName.endsWith(\"jpeg\")) {\n return \"image/jpeg\";\n } else if (fileName.endsWith(\"png\")) {\n return \"image/png\";\n } else if (fileName.endsWith(\"ico\")) {\n return \"image/x-icon\";\n }\n\n return \"text/plain; charset=utf-8\";\n }", "@Override\n protected FileType doGetType() throws Exception {\n if (isRoot()) {\n return FileType.FOLDER;\n }\n\n final MantaObject response = this.lastResponse;\n if (response == null) {\n return FileType.IMAGINARY;\n } else if (response.isDirectory()) {\n return FileType.FOLDER;\n } else {\n return FileType.FILE;\n }\n }", "public String getFileExtension();", "java.lang.String getMimeType();", "java.lang.String getMimeType();", "@Override\n\tpublic String getContentType(File file) {\n\t\treturn null;\n\t}", "public void testGetType_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getType();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}", "public String getMimeType() throws VlException\n {\n return MimeTypes.getDefault().getMimeType(this.getPath());\n }", "public static FileType fromString(String str) {\n if (str.equals(\"FILE\")) {\n return FILE;\n } else if (str.equals(\"DIRECTORY\")) {\n return DIRECTORY;\n } else if (str.equals(\"SYMLINK\")) {\n return SYMLINK;\n }\n //TODO: FIXME \n return FILE;\n }", "String getMimeType();", "private static TYPE getFtlWebfileType(final String path) {\n if (path.indexOf('.') > -1) {\n final String ext = path.substring(path.lastIndexOf('.'));\n if (BINARY_EXTENSIONS.contains(ext)) {\n return BINARY_WEBFILE;\n }\n }\n return WEBFILE;\n }", "public String fileExtension() {\r\n return getContent().fileExtension();\r\n }", "MimeType mediaType();", "public String getMimeType();", "public String getType(String fileExtension) {\n // trim leading dot if given\n if (fileExtension.startsWith(\".\")) {\n fileExtension = fileExtension.substring(1);\n }\n return this.typeMap.get(fileExtension);\n }", "public static String getFileType() {return \"json\";}", "public static FileType get(int value) {\n\t\tswitch(value) {\n\t\t\tcase DETECT_VALUE:\n\t\t\t\treturn DETECT;\n\t\t\tcase PUPPET_ROOT_VALUE:\n\t\t\t\treturn PUPPET_ROOT;\n\t\t\tcase MODULE_ROOT_VALUE:\n\t\t\t\treturn MODULE_ROOT;\n\t\t\tcase SINGLE_SOURCE_FILE_VALUE:\n\t\t\t\treturn SINGLE_SOURCE_FILE;\n\t\t}\n\t\treturn null;\n\t}", "public int getFileShapeType() {\n return fileShapeType;\n }", "String getFileExtension();", "public String getMime_type()\r\n {\r\n return getSemanticObject().getProperty(data_mime_type);\r\n }", "private FileType getFileType(String name) {\n\t\tif(name==null)\n\t\t\treturn null;\n\t\tfor(FileType fileType: fileTypes){\n\t\t\tif(name.startsWith(fileType.getFileNamePrefix())){\n\t\t\t\treturn fileType;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<String> getFileTypes() { return new ArrayList<String>(); }", "public java.lang.String getMimeType() {\n return _courseImage.getMimeType();\n }", "public String getContentTypeFor(String fileName)\r\n {\r\n String ret_val = null;\r\n\r\n if(fileName.toUpperCase().endsWith(\".PNG\"))\r\n ret_val = \"image/png\";\r\n else if(fileName.toUpperCase().endsWith(\".TIF\"))\r\n ret_val = \"image/tiff\";\r\n else if(fileName.toUpperCase().endsWith(\".TIFF\"))\r\n ret_val = \"image/tiff\";\r\n else if(fileName.toUpperCase().endsWith(\".TGA\"))\r\n ret_val = \"image/targa\";\r\n else if(fileName.toUpperCase().endsWith(\".BMP\"))\r\n ret_val = \"image/bmp\";\r\n else if(fileName.toUpperCase().endsWith(\".PPM\"))\r\n ret_val = \"image/x-portable-pixmap\";\r\n else if(fileName.toUpperCase().endsWith(\".PGM\"))\r\n ret_val = \"image/x-portable-graymap\";\r\n\r\n // handle previous filename maps\r\n if(ret_val == null && prevMap != null)\r\n return prevMap.getContentTypeFor(fileName);\r\n\r\n // return null if unsure.\r\n return ret_val;\r\n }", "@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }", "public String logFileType() {\n return this.logFileType;\n }", "public boolean isFile() { return true; }", "public abstract String getFileExtension();", "public ReactorResult<java.lang.String> getAllFileType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), FILETYPE, java.lang.String.class);\r\n\t}", "@Override\n public List<String> getFileTypes() {\n return gemFileFileTypesDb.getKeys();\n }", "@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();", "@NotNull\n String getMimeType();", "public void setFileType(Integer fileType) {\n this.fileType = fileType;\n }", "public String getMimeType() {\r\n return mimeType;\r\n }", "public Long getFiletypeForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;", "@ApiModelProperty(\n example = \"image/jpeg\",\n value = \"MimeType of the file (image/png, image/jpeg, application/pdf, etc..)\")\n /**\n * MimeType of the file (image/png, image/jpeg, application/pdf, etc..)\n *\n * @return mimeType String\n */\n public String getMimeType() {\n return mimeType;\n }", "public void setFileType(String fileType) {\n this.fileType = fileType == null ? null : fileType.trim();\n }", "public static String getMimeTypeForFile(String uri) {\n\t\tint dot = uri.lastIndexOf('.');\n\t\tString mime = null;\n\t\tif (dot >= 0) {\n\t\t\tmime = mimeTypes().get(uri.substring(dot + 1).toLowerCase());\n\t\t}\n\t\treturn mime == null ? \"application/octet-stream\" : mime;\n\t}", "public static String getType() {\n type = getProperty(\"type\");\n if (type == null) type = \"png\";\n return type;\n }", "public static String getContentType(String filename) {\n return getTika().detect(filename);\n }", "public void setFILE_TYPE(String FILE_TYPE) {\r\n this.FILE_TYPE = FILE_TYPE == null ? null : FILE_TYPE.trim();\r\n }", "@Test\n public void testGetFileType() {\n System.out.println(\"getFileType\");\n String file = \"adriano.pdb\";\n String expResult = \"pdb\";\n String result = Util.getFileType(file);\n assertEquals(expResult, result);\n }", "protected abstract String getFileExtension();", "public String getMimeType() {\n\t\treturn mimeType;\n\t}", "public String getMimeType() {\n\t\treturn mimeType;\n\t}", "public String getMimeType() {\n\t\treturn mimeType;\n\t}", "public static String getFileType(String fileName) {\n String[] fileNames = fileName.split(\"\\\\.\");\n\n if (\"cs\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CSHARP;\n } else if (\"java\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_JAVA;\n } else if (\"cpp\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else if (\"h\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else if (\"hpp\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else if (\"cc\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else {\n return null;\n }\n }", "@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}", "@ApiModelProperty(required = true, value = \"The mime type of the file/folder. If unknown, it defaults to application/binary.\")\n public String getMimeType() {\n return mimeType;\n }", "public String getMimeType() {\n return mimeType;\n }", "public MimeType mimetype() {\r\n return getContent().mimetype();\r\n }", "public String getMimeType() {\n return mimeType;\n }", "FileFormat getFormat();", "public String getMimeType() {\n return mimeType;\n }", "public String getMimeType() {\n return mimeType;\n }", "public ResourceFileFeatureType resourceFileFeatureType() {\n _initialize();\n return resourceFileFeatureType;\n }", "public void setFiletype(java.lang.String filetype) {\n this.filetype = filetype;\n }", "public Class<?> getFileClass()\r\n {\r\n return sFileClass;\r\n }", "public OutlookAttachmentType getType()\n {\n return getConstant(\"Type\", OutlookAttachmentType.class);\n }", "public String getMimeType() {\r\n\t\treturn this.mimeType;\r\n\t}" ]
[ "0.7988", "0.79863083", "0.7823593", "0.78130996", "0.7794088", "0.77875125", "0.76612735", "0.7601769", "0.7592868", "0.7406518", "0.7389412", "0.7092527", "0.69622993", "0.69281584", "0.69247013", "0.6918668", "0.6867187", "0.6792004", "0.67585677", "0.6708846", "0.6646549", "0.6622399", "0.6616376", "0.6604927", "0.65926737", "0.6550722", "0.6494545", "0.6431293", "0.64226276", "0.64091855", "0.64079607", "0.6362282", "0.6337228", "0.6325798", "0.6308482", "0.627521", "0.6265357", "0.6252771", "0.6251628", "0.62491375", "0.62432355", "0.62143004", "0.6202929", "0.61993736", "0.61886436", "0.61886436", "0.6165861", "0.61530745", "0.61494285", "0.613566", "0.6123246", "0.61228085", "0.6102379", "0.6087849", "0.6067975", "0.6050288", "0.60359144", "0.5984816", "0.5968708", "0.5932899", "0.5916566", "0.59152454", "0.5903911", "0.58992994", "0.58931375", "0.5861552", "0.5851953", "0.58422554", "0.58391875", "0.5838554", "0.5833448", "0.5819727", "0.5819491", "0.58024275", "0.5777428", "0.5766662", "0.57648206", "0.57602245", "0.57444936", "0.5741942", "0.57346946", "0.5734179", "0.57319355", "0.57294595", "0.5721048", "0.5721048", "0.5721048", "0.57206506", "0.5714081", "0.57138145", "0.5705903", "0.57006115", "0.5690746", "0.56875104", "0.56867754", "0.56867754", "0.5682089", "0.56655306", "0.5656472", "0.56549835", "0.5653211" ]
0.0
-1
Creates new form per_bidBond
public per_bidBond() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.getFieldErrors()) {\n message.append(error.getField()).append(\" - \").append(error.getRejectedValue()).append(\"\\n\");\n }\n ModelAndView modelAndView = (ModelAndView)newAuction();\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"form\", form);\n return modelAndView;\n }\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n AuctionWrapper wrapper = new AuctionWrapper();\n wrapper.setDemandResourceId(form.getDemandedResourceId());\n wrapper.setDemandAmount(form.getDemandedAmount());\n wrapper.setOfferResourceId(form.getOfferedResourceId());\n wrapper.setOfferAmount(form.getOfferedAmount());\n wrapper.setSellerId(userAuth.getPlayerId());\n auctionRestTemplate.post(auctionURL + \"/new\", wrapper, String.class);\n return new RedirectView(\"/player/trading\");\n }", "public void addNewBenificiary() {\n\t\t\tsetColBankCode(null);\n\t\t\tsetCardNumber(null);\n\t\t\tsetPopulatedDebitCardNumber(null);\n\t\t\tsetApprovalNumberCard(null);\n\t\t\tsetRemitamount(null);\n\t\t\tsetColAuthorizedby(null);\n\t\t\tsetColpassword(null);\n\t\t\tsetApprovalNumber(null);\n\t\t\tsetBooAuthozed(false);\n\t\t\tbankMasterList.clear();\n\t\t\tlocalbankList.clear();// From View V_EX_CBNK\n\t\t\tlstDebitCard.clear();\n\n\t\t\t// to fetch All Banks from View\n\t\t\t//getLocalBankListforIndicatorFromView();\n\t\t\tlocalbankList = generalService.getLocalBankListFromView(session.getCountryId());\n\n\t\t\tList<BigDecimal> duplicateCheck = new ArrayList<BigDecimal>();\n\t\t\tList<ViewBankDetails> lstofBank = new ArrayList<ViewBankDetails>();\n\t\t\tif (localbankList.size() != 0) {\n\t\t\t\tfor (ViewBankDetails lstBank : localbankList) {\n\t\t\t\t\tif (!duplicateCheck.contains(lstBank.getChequeBankId())) {\n\t\t\t\t\t\tduplicateCheck.add(lstBank.getChequeBankId());\n\t\t\t\t\t\tlstofBank.add(lstBank);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetBankMasterList(lstofBank);\n\t\t\tsetBooRenderSingleDebit(true);\n\t\t\tsetBooRenderMulDebit(false);\n\t\t}", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public form_for_bd() {\n initComponents();\n }", "public void newBidPostedByMe(U1467085Bid bid) {\n try {\n JavaSpace05 js = SpaceUtils.getSpace();\n if (EventRegistration != null) {\n EventRegistration.getLease().cancel();\n }\n if (allPossibleConfirmations.stream().noneMatch((o) -> o.adId == bid.adId)) {\n U1467085BidConfirmation newTemplate = new U1467085BidConfirmation();\n newTemplate.adId = bid.adId;\n allPossibleConfirmations.add(newTemplate);\n EventRegistration = js.registerForAvailabilityEvent(allPossibleConfirmations, null, false, Listener, SpaceUtils.LONGLEASE, null);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public FundsVolunteerCreate(AppState appState) {\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n btCancelar.setVisible(false);\n btSave.setVisible(false);\n btnRemove.setVisible(false);\n btnSaveEdit.setVisible(false);\n enableFields(false);\n this.appState = appState;\n }", "@PostMapping(\"createAccount\")\n public String createAccount(@RequestParam int depositAmount, String accountName){\n CheckingAccount account = new CheckingAccount(depositAmount, accountName);\n accounts.add(account);\n currentAccount = account;\n //model.addAttribute(\"accountNumber\", account.getAccountNumber());\n return \"AccountOptions\";\n }", "@Override\n public void onClick(View v) {\n NewBucketDialogFragment newBucketDialogFragment = NewBucketDialogFragment.newInstance();\n newBucketDialogFragment.setTargetFragment(BucketListFragment.this, REQ_CODE_NEW_BUCKET);\n newBucketDialogFragment.show(getFragmentManager(), NewBucketDialogFragment.TAG);\n }", "public TransferOfFundsForm() {\n super();\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public @NotNull Bidder newBidder();", "public void createforwadbal(String name, String bal, String string, String cdate) {\n\t\tContentValues cv2=new ContentValues();\n\t\tcv2.put(Sales_Cname, name);\n\t\tcv2.put(Sales_Amt, Integer.parseInt(bal));\n\t\tcv2.put(Sales_Des,string);\n\t\tcv2.put(Sales_Date, cdate);\n\t\tourDatabase.insert(DATABASE_TABLE5, null, cv2);\n\t\t\n\t}", "@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n log( \"POST\" );\n BloodDonationLogic bloodDonationLogic = LogicFactory.getFor(\"BloodDonation\");\n \n try {\n BloodDonation bloodDonation = bloodDonationLogic.createEntity(req.getParameterMap());\n if (req.getParameter(BloodDonationLogic.BANK_ID).isEmpty()) {\n bloodDonationLogic.add(bloodDonation);\n } else {\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n //because user can only select the bank that already exist from drop down menu\n //so we do not need to test whether bank is existing or not\n int userInputBankID = Integer.parseInt(req.getParameter(BloodDonationLogic.BANK_ID));\n BloodBank bloodBank = bloodBankLogic.getWithId(userInputBankID);\n bloodDonation.setBloodBank(bloodBank);\n bloodDonationLogic.add(bloodDonation);\n }\n } catch (Exception ex) {\n errorMessage = ex.getMessage();\n }\n\n if (req.getParameter(\"add\") != null) {\n //if add button is pressed return the same page\n createInputBloodDonationForm(req, resp);\n } else if (req.getParameter(\"view\") != null) {\n //if view button is pressed redirect to the appropriate table\n resp.sendRedirect(\"BloodDonationTableJSP\");\n }\n\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}", "public CrearPedidos() {\n initComponents();\n }", "public void initPageComponents() {\n\t\t\n\t\tboolean showMeterID \t= false;\n\t\tboolean showBillerID \t= false;\n\t\tboolean showRegID\t\t= false;\n\t\tboolean fillMeterID\t\t= false;\n\t\tboolean fillBillerID \t= false;\n\t\tboolean fillRegID\t\t= false;\n\t\tif(billPayBean.getBillerId().equals(\"91901\")) { //prepaid\n\t\t\tshowMeterID \t= true;\n\t\t\tshowBillerID \t= true;\n\t\t\tfillMeterID\t\t= true;\n\t\t\tfillBillerID\t= true;\n\t\t} else if(billPayBean.getBillerId().equals(\"91951\")) { //postpaid\n\t\t\tshowBillerID \t= true;\n\t\t\tfillBillerID\t= true;\n\t\t} else if(billPayBean.getBillerId().equals(\"91999\")) { //nontaglis\n\t\t\tshowRegID\t\t= true;\n\t\t\tfillRegID\t\t= true;\n\t\t}\n\t\t\n\t\tfinal Form<BankBillPaymentConfirmPage> form = new Form<BankBillPaymentConfirmPage>(\"confirmBillPay\", \n\t\t\t\tnew CompoundPropertyModel<BankBillPaymentConfirmPage>(this));\n\t\tform.add(new FeedbackPanel(\"errorMessages\"));\n\t\tform.add(new Label(\"billPayBean.billerLabel\")); \n\t\tform.add(new Label(\"billPayBean.productLabel\"));\n\t\tform.add(new Label(\"billPayBean.billAmount\"));\n\t\tform.add(new AmountLabel(\"billPayBean.feeAmount\"));\n\t\tfinal boolean showNameandBillNumber = billPayBankNameList.contains(billPayBean.getBillerId());\n\t\tform.add(new Label(\"label.customer.name\", getLocalizer().getString(\"label.customer.name\", this)).setVisible(showNameandBillNumber)); \n\t\tform.add(new Label(\"billPayBean.customerName\").setVisible(showNameandBillNumber));\n\t\tform.add(new Label(\"label.meter.number\", getLocalizer().getString(\"label.meter.number\", this)).setVisible(showMeterID));\n\t\tform.add(new Label(\"billPayBean.meterNumber\").setVisible(fillMeterID));\n\t\tform.add(new Label(\"label.bill.number\", getLocalizer().getString(\"label.bill.number\", this)).setVisible(showBillerID));\n\t\tform.add(new Label(\"billPayBean.billNumber\").setVisible(fillBillerID));\n\t\tform.add(new Label(\"label.reg.number\", getLocalizer().getString(\"label.reg.number\", this)).setVisible(showRegID));\n\t\tform.add(new Label(\"billPayBean.regNumber\").setVisible(fillRegID));\n\t\t\n\t\tform.add(new PasswordTextField(\"billPayBean.pin\").add(new ErrorIndicator()));\n\t\t\n\t\taddSubmitButton(form);\n\t\t\n\t\tadd(form);\n\t}", "BOp createBOp();", "public static DialogInterface.OnClickListener createNewBudgetClickListener(final SelectBudgetDialog sbd)\n {\n DialogInterface.OnClickListener ocl = new DialogInterface.OnClickListener() {\n /*\n The neutral button click is the 'create new' budget action where the user is taken to\n another dialog where they will have the option of creating a new budget. Either completely new\n or by copying an existing budget\n */\n public void onClick(DialogInterface dialog, int id)\n {\n DialogFragment createBudgetDialog = new CreateBudgetDialog();\n createBudgetDialog.show(sbd.getFragmentManager(), \"create_budget_dialog_tag\");\n }\n };\n return ocl;\n }", "@Override\n protected void populateForm(final CreateCoinForm form, final Coin element) {\n }", "public Patient_Generate_Bill_Receptionist() {\n initComponents();\n }", "public void createNew(PatientBO patient)\n {\n _dietTreatment = new DietTreatmentBO();\n _dietTreatment.setPatient(patient);\n setPatient(patient);\n }", "FORM createFORM();", "public void onClick(DialogInterface dialog, int id)\n {\n DialogFragment createBudgetDialog = new CreateBudgetDialog();\n createBudgetDialog.show(sbd.getFragmentManager(), \"create_budget_dialog_tag\");\n }", "public void setBid(String bid) {\r\n this.bid = bid;\r\n }", "@RequestMapping(value = \"/auction/{id}/feedback/add\", method = RequestMethod.POST)\n\tpublic String feedbackSubmit(@PathVariable(\"id\") int id, @ModelAttribute(\"bid\") Bid bid, Model model) {\n\t\treturn \"redirect:feedbacksuccess\";\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 }", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "public Bid newBid(Item item, User buyer, Money amount)\n {\n return auctionManager.newBid(item, buyer, amount);\n }", "@Override\n public final Buyer createBuyr(final Map<String, Object> pRvs,\n final IReqDt pRqDt) throws Exception {\n Map<String, Object> vs = new HashMap<String, Object>();\n Buyer buyer = null;\n vs.put(\"DbCrdpLv\", 1);\n vs.put(\"TxDstdpLv\", 1);\n List<Buyer> brs = getOrm().retLstCnd(pRvs, vs, Buyer.class,\n \"where FRE=1 and PWD is null\");\n vs.clear();\n if (brs.size() > 0) {\n double rd = Math.random();\n if (rd > 0.5) {\n buyer = brs.get(brs.size() - 1);\n } else {\n buyer = brs.get(0);\n }\n buyer.setPwd(null);\n buyer.setEml(null);\n buyer.setFre(false);\n }\n if (buyer == null) {\n buyer = new Buyer();\n buyer.setIsNew(true);\n buyer.setNme(\"newbe\" + new Date().getTime());\n }\n return buyer;\n }", "@PostMapping(\"/tour-bubbls\")\n public ResponseEntity<TourBubblDTO> createTourBubbl(@Valid @RequestBody TourBubblDTO tourBubblDTO) throws URISyntaxException {\n log.debug(\"REST request to save TourBubbl : {}\", tourBubblDTO);\n if (tourBubblDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"tourBubbl\", \"idexists\", \"A new tourBubbl cannot already have an ID\")).body(null);\n }\n TourBubblDTO result = tourBubblService.save(tourBubblDTO);\n return ResponseEntity.created(new URI(\"/api/tour-bubbls/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"tourBubbl\", result.getId().toString()))\n .body(result);\n }", "public New_shipment() {\n initComponents();\n init();\n \n }", "public void testNewBid(){\n\n Thing thing = new Thing(new User());\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing, borrower, 800);\n }catch(Exception e){\n fail();\n }\n assertEquals(800, bid.getAmount());\n assertEquals(Bid.Per.FLAT, bid.getPer());\n assertEquals(\"8.00\", bid.valueOf());\n assertEquals(\"$8.00\", bid.toString());\n\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tapp = (App)getApplication();\n\t\tsetContentView(R.layout.bpartner_info);\n\t\tIntent intent = getIntent();\n//\t\tselectedBpId = intent.getIntExtra(\"selectedBpId\", 0);\n\t\tanswersheet = (Answersheet)intent.getSerializableExtra(\"answersheet\");\n\t\t\n//\t\tselectedBPartner = (BPartner)intent.getSerializableExtra(\"selectedBPartner\");\n\t\tselectedBPartner = answersheet.getBpartner();\n\t\tif(selectedBPartner != null){\n\t\t\tselectedBPartnerId = selectedBPartner.getBpartnerId();\n\t\t}\n\t\t\n\t\t\n\t\tbpbo = new BPartnerBo(app.getDatabase());\n\t\t\n\t}", "private Book createBook() {\n Book book = null;\n\n try {\n\n //determine if fiction or non-fiction\n if (radFiction.isSelected()) {\n //fiction book\n book = new Fiction(Integer.parseInt(tfBookID.getText()));\n\n } else if (radNonFiction.isSelected()) {\n //non-fiction book\n book = new NonFiction(Integer.parseInt(tfBookID.getText()));\n\n } else {\n driver.errorMessageNormal(\"Please selecte fiction or non-fiction.\");\n }\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return book;\n }", "public void saveBid(BidListModel bidList) {\n bidListRep.save(bidList);\n }", "@Override\n public void onClick(View v) {\n if (isEmptyEditText(budget_max) || isEmptyEditText(base)) {\n Toast.makeText(AddModule.this, R.string.error_msg_all_fields, Toast.LENGTH_SHORT).show();\n return;\n }\n\n else {\n\n JSONObject json = new JSONObject();\n JSONObject moduleJson = new JSONObject();\n try {\n moduleJson.put(\"max_budget\",Float.parseFloat(budget_max.getText().toString()));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n moduleJson.put(\"base\",Float.parseFloat(base.getText().toString()));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n json.put(\"budgetmodule_form\",moduleJson);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n TypedInput in = new TypedByteArray(\"application/json\", json.toString().getBytes());\n\n BudgetModuleService service = BudgetModuleAPI.getInstance();\n service.addBudgetModule(event.getId(), in, new Callback<Response>() {\n @Override\n public void success(Response s, Response response) {\n Toast.makeText(AddModule.this, \"Le module a bien été ajouté!\", Toast.LENGTH_SHORT).show();\n finish();\n }\n\n @Override\n public void failure(RetrofitError error) {\n error.printStackTrace();\n finish();\n }\n });\n }\n dialog.dismiss();\n }", "private Borrower createBorrower() {\n Borrower bor = null;\n try {\n bor = new Borrower(Integer.parseInt(tfBorrowerID.getText()), driver);\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return bor;\n }", "@Override\n\tpublic Bid createBid(Auction auction, RegisteredUser user, float price)\n\t\t\tthrows DTException {\n\t\tBid bid = new BidImpl(auction, user, price);\n\t\treturn bid;\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "@PostMapping(\"/cards\")\n StarbucksCard newCard() {\n StarbucksCard newcard = new StarbucksCard();\n\n Random random = new Random();\n int num = random.nextInt(900000000) + 100000000;\n int code = random.nextInt(900) + 100;\n\n newcard.setCardNumber(String.valueOf(num));\n newcard.setCardCode(String.valueOf(code));\n newcard.setBalance(20.00);\n newcard.setActivated(false);\n newcard.setStatus(\"New Card\");\n return repository.save(newcard);\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "@PostMapping(\"/band-pruebas\")\n @Timed\n public ResponseEntity<BandPrueba> createBandPrueba(@RequestBody BandPrueba bandPrueba) throws URISyntaxException {\n log.debug(\"REST request to save BandPrueba : {}\", bandPrueba);\n if (bandPrueba.getId() != null) {\n throw new BadRequestAlertException(\"A new bandPrueba cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n BandPrueba result = bandPruebaService.save(bandPrueba);\n return ResponseEntity.created(new URI(\"/api/band-pruebas/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public FamilyBudget() {\n initComponents();\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "public Bid assembleBid(BidDTO bidDTO) {\r\n AuctionPersistenceHelper.validateNotNull(bidDTO, \"bidDTO\");\r\n\r\n CustomBid bid = new CustomBid(bidDTO.getBidderId(), bidDTO.getImageId(), bidDTO.getMaxAmount(),\r\n bidDTO.getTimestamp());\r\n\r\n if (bidDTO.getEffectiveAmount() != null) {\r\n bid.setEffectiveAmount(bidDTO.getEffectiveAmount().intValue());\r\n }\r\n\r\n if (bidDTO.getId() != null) {\r\n bid.setId(bidDTO.getId().longValue());\r\n }\r\n\r\n return bid;\r\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 }", "@PostMapping(\"/createAccount\")\r\n\tpublic String valNewAccount(@ModelAttribute(value=\"account\") @Valid Accounts account, BindingResult bindingResultAccount, @ModelAttribute(value=\"client\") @Valid Client client, BindingResult bindingResultClient, @ModelAttribute(value=\"user\") @Valid Users user, BindingResult bindingResultUser, Accounts acc, Transactions welcomeBalance, Model model) {\n\t\tif(bindingResultUser.hasErrors() || bindingResultClient.hasErrors() || (userDB.getUserEmailByEmail(user.getEmail()) != null && user.getEmail().equals(userDB.getUserEmailByEmail(user.getEmail()))) || (clientDB.getClientSINBySIN(client.getSin()) != null && client.getSin().intValue() == clientDB.getClientSINBySIN(client.getSin()).intValue()) ) {\r\n\t\t\tif((userDB.getUserEmailByEmail(user.getEmail()) != null) && (user.getEmail().equals(userDB.getUserEmailByEmail(user.getEmail())))) {\r\n\t\t\t\tmodel.addAttribute(\"user_message\",\"You already have an account. Login with \" + user.getEmail() + \" to view your account.\");\r\n\t\t\t}\r\n\t\t\tif((clientDB.getClientSINBySIN(client.getSin()) != null && client.getSin() != null) && (client.getSin().intValue() == clientDB.getClientSINBySIN(client.getSin()).intValue())) {\r\n\t\t\t\tmodel.addAttribute(\"user_message_two\",\"The SIN number you entered is already registered with another account.\");\r\n\t\t\t}\r\n\t\t\treturn \"/user/open.html\";\r\n\t\t}else {\r\n\t\t\t/*Process New Account*/\r\n\t\t\tDate today = new Date();\r\n\t\t\tclientDB.save(client);\r\n\t\t\tSystem.out.println(\"Processed Client - Saved\");\r\n\t\t\t\r\n\t\t\tuser.setClientID(clientDB.getClient(client.getId()).getId());\r\n\t\t\tuser.setJoinDate(\"2019-12-08\");\r\n\t\t\tuserDB.save(user);\r\n\t\t\tSystem.out.println(\"Processed Users - Saved\");\r\n\t\t\t\r\n\t\t\tacc.setClientID(clientDB.getClient(client.getId()).getId());\r\n\t\t\tacc.setBalance(500.00);\r\n\t\t\tacc.setOpenDate(today.toString());\r\n\t\t\taccountDB.save(acc);\r\n\t\t\tSystem.out.println(\"Processed Accounts - Saved\");\r\n\t\t\t\r\n\t\t\twelcomeBalance.setClient(clientDB.getClient(client.getId()).getId());\r\n\t\t\twelcomeBalance.setAccount(accountDB.getAccount(acc.getAccNum(), client.getId()).getAccNum());\r\n\t\t\twelcomeBalance.setType(\"Debit\");\r\n\t\t\twelcomeBalance.setMemo(\"Welcome to Pocket\");\r\n\t\t\twelcomeBalance.setPostDate(today.toString());\r\n\t\t\twelcomeBalance.setProcessDate(today.toString());\r\n\t\t\twelcomeBalance.setAmount(500.00);\r\n\t\t\ttransactionDB.save(welcomeBalance);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Processed Transactions\");\r\n\t\t\treturn \"/user/accountCreated.html\";\r\n\t\t}\r\n\t}", "public Component buidListForm() throws BeanDAOException {\n\t\treturn new ListForm<BEAN, KEY>(this);\n\t}", "public void addApartment(int bid) throws IOException {\n Apartment apartment = new Apartment(apartmentsCollection.size() + 1, Integer.parseInt(numOfRooms.getText()), bid, cabinetMarker,\n Double.parseDouble(size.getText()),\n Double.parseDouble(price.getText()));\n try {\n// dataAccess.addApartment(apartment, personsCollection.size() - 1);\n dataAccess.addApartment(apartment, cabinetMarker);\n Main a = new Main();\n //a.changeScene(\"Registration\");\n //a.changeScene(\"OwnerCabinet\");\n reload();\n\n System.out.println(cabinetMarker + \" : Vsyo eshe tam!\");\n\n\n } catch (SQLException e1) {\n e1.printStackTrace();\n }\n apartmentsCollection.add(apartment);\n numOfAp.clear();\n size.clear();\n numOfRooms.clear();\n price.clear();\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 Builder setBid(int value) {\n copyOnWrite();\n instance.setBid(value);\n return this;\n }", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "public AwardAmountFNADistributionForm() {\r\n initComponents();\r\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "private void addSubmitButton(Form<BankBillPaymentConfirmPage> form) {\n\t\t// TODO Auto-generated method stub\n\t\tButton confirmBtn = new Button(\"btnConfirm\") {\n\t\t\t\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\n\t\t\tpublic void onSubmit() {\n\t\t\t\ttry {\n\t\t\t\t\tif (checkCredential(billPayBean.getPin())) {\n\t\t\t\t\t\thandleConfirmBillPayment();\n\t\t\t\t\t} else {\n\t\t\t\t\t\terror(getLocalizer().getString(\"error.invalid.pin\", this));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\t\t}\n\t\t\t};\n\n\t\t};\n\t\tform.add(confirmBtn);\n\t}", "public FormInserir() {\n initComponents();\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 }", "public void addindbpayment(){\n \n \n double tot = calculateTotal();\n Payment pms = new Payment(0,getLoggedcustid(),tot);\n \n System.out.println(\"NI Payment \"+getLoggedcustid()+\" \"+pms.getPaymentid()+\" \"+pms.getTotalprice());\n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(pms);\n try \n {\n session.getTransaction().commit();\n session.close();\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n clear();\n setBookcart(null);\n test.clear();\n itemdb.clear();\n \n \n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n \n\t}", "@Override\n\tpublic void createBourse(Bourse brs) {\n\t\t\n\t}", "private void butAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAddActionPerformed\n AddBorrower ab = new AddBorrower();\n ab.setVisiblePanel(0);\n ab.setVisible(true);\n }", "public SubTipoBancaBD(SubTipoBanca stb) {\n this.stb = stb;\n }", "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 }", "private void initCreateDeckBtn() {\n createBtn = new Button((editWidth - 310) / 2, 400, \"CREATE NEW DECK\", MasterGUI.green, titleField.getWidth(), titleField.getHeight());\n createBtn.setFont(MasterGUI.poppinsFont);\n createBtn.setForeground(MasterGUI.white);\n createBtn.setContentAreaFilled(true);\n createBtn.setFocusPainted(false);\n ActionListener createAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createDeckFromInput();\n user.updateDeckList();\n repaintDeckCards();\n HomeView.repaintHomeView();\n }\n };\n createBtn.addActionListener(e -> {\n MainGUI.confirmDialog(createAction, \"Create new Deck?\");\n });\n editPanel.add(createBtn);\n }", "public void createBike(){\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }", "public Register_beneficiary() {\n initComponents();\n }", "void bond(Bond bond) {\n this.bond = bond; \n }", "public InvoiceCreate() {\n initComponents();\n }", "public newRelationship() {\n initComponents();\n }", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "public void createBike() {\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "public BType() {\n initComponents();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public void createCoupon(Coupon coupon) throws DbException;", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "@Override\n protected void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String id = request.getParameter(\"eid\");\n Employee e = new Employee();\n e.setId(id);\n Date date = Date.valueOf(request.getParameter(\"date\"));\n int bhid = Integer.parseInt(request.getParameter(\"bhid\"));\n ButtonHole bh = new ButtonHole();\n bh.setId(bhid);\n int quantity = Integer.parseInt(request.getParameter(\"quantity\"));\n int bhquantity = Integer.parseInt(request.getParameter(\"bhquantity\"));\n \n ButtonHoleGoodsDAO bhgdao = new ButtonHoleGoodsDAO();\n ButtonholeGoods bhg = new ButtonholeGoods();\n bhg.setDate(date);\n bhg.setQuantity(quantity);\n bhg.setBhquantity(bhquantity);\n bhg.setButtonhole(bh);\n bhg.setEmp(e);\n bhgdao.insertButtonHoleGoods(bhg);\n \n response.sendRedirect(\"listButtonHole?id=\"+id);\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 jLabel5 = new javax.swing.JLabel();\n pro_Bid = new javax.swing.JProgressBar();\n Pro_perf = new javax.swing.JProgressBar();\n tf_pbbonds_id = new javax.swing.JTextField();\n tf_pbbonds_name = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jLabel10 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n tf_bid_end = new javax.swing.JTextField();\n tf_bid_start = new javax.swing.JTextField();\n tf_bid_pro = new javax.swing.JTextField();\n tf_bid_value = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n tf_bid_no = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n tf_pbbonds_value = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n tf_per_end = new javax.swing.JTextField();\n tf_per_start = new javax.swing.JTextField();\n tf_per_pro = new javax.swing.JTextField();\n tf_per_value = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n tf_per_no = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n pre1 = new javax.swing.JLabel();\n pre2 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel5.setText(\"Project Value:\");\n\n tf_pbbonds_id.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_pbbonds_idActionPerformed(evt);\n }\n });\n\n tf_pbbonds_name.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_pbbonds_nameActionPerformed(evt);\n }\n });\n\n jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel10.setText(\"End Date\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel12.setText(\"Provider\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel11.setText(\"Value\");\n\n tf_bid_value.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_bid_valueActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel2.setText(\"Reference Number\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel9.setText(\"Date of\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel4.setText(\"Commencement\");\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(30, 30, 30)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jLabel12))\n .addGap(42, 42, 42)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tf_bid_no)\n .addComponent(tf_bid_start)\n .addComponent(tf_bid_pro, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tf_bid_end)\n .addComponent(tf_bid_value, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(39, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jLabel11)\n .addGap(68, 68, 68)\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(tf_bid_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tf_bid_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_bid_start, javax.swing.GroupLayout.Alignment.TRAILING, 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 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_bid_pro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addComponent(tf_bid_end, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)))))\n .addContainerGap(81, Short.MAX_VALUE))\n );\n\n tf_pbbonds_value.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_pbbonds_valueActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel3.setText(\"Project Name\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel1.setText(\"Project ID:\");\n\n jPanel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel13.setText(\"End Date\");\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel14.setText(\"Provider\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel15.setText(\"Value\");\n\n tf_per_value.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_per_valueActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel6.setText(\"Reference Number\");\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel16.setText(\"Date of\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel17.setText(\"Commencement\");\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 .addGap(19, 19, 19)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel14)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13)))\n .addComponent(jLabel17)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tf_per_no)\n .addComponent(tf_per_start)\n .addComponent(tf_per_pro, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tf_per_end)\n .addComponent(tf_per_value, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(42, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jLabel15)\n .addGap(18, 18, 18)\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jLabel13)\n .addGap(35, 35, 35)\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel17))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(tf_per_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tf_per_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_per_start, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(tf_per_pro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tf_per_end, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)))))\n .addContainerGap(76, Short.MAX_VALUE))\n );\n\n pre1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n\n pre2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n\n jLabel7.setFont(new java.awt.Font(\"Andalus\", 1, 28));\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Rina/bookmark_32.png\"))); // NOI18N\n jLabel7.setText(\"Bid Bond\");\n\n jLabel8.setFont(new java.awt.Font(\"Andalus\", 1, 28));\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Rina/statistics_32.png\"))); // NOI18N\n jLabel8.setText(\"Performance Bond\");\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Rina/delete_16.png\"))); // NOI18N\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(174, 174, 174)\n .addComponent(pre1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(368, 368, 368)\n .addComponent(pre2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(168, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(152, 152, 152)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel1)\n .addComponent(jLabel5))\n .addGap(54, 54, 54)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tf_pbbonds_id)\n .addComponent(tf_pbbonds_value)\n .addComponent(tf_pbbonds_name, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pro_Bid, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Pro_perf, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jLabel8)))))\n .addGap(25, 25, 25))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_pbbonds_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(tf_pbbonds_name, 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(tf_pbbonds_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(21, 21, 21)\n .addComponent(pro_Bid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(281, 281, 281)))\n .addGap(21, 21, 21)\n .addComponent(Pro_perf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(2, 2, 2)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pre1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pre2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton2))\n .addGap(25, 25, 25))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-838)/2, (screenSize.height-606)/2, 838, 606);\n }", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public MyBank() {\n initComponents();\n fillClients();\n }", "private void jButtonBeheerBedrijvenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBeheerBedrijvenActionPerformed\n\n if (bedrijfForm == null) {\n bedrijfForm = new BedrijfForm(this, this.dbFacade);\n bedrijfForm.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n }\n bedrijfForm.setVisible(true);\n \n }", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "BankDetail() {\n this.isValid = new Boolean(false);\n this.bankAccountNo = new String();\n this.bankAccountHolderName = new String();\n this.bankCountry = new String();\n this.IFSC = new String();\n }", "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}", "public BancaBD(Banca b, int idCurriculoLattes){\n this.b = b;\n this.idCurriculoLattes = idCurriculoLattes;\n }", "public BPPType createBPPart(String id, String value) {\n\t\tBPPType bpp = mappingFactory.createBPPType();\n\t\tbpp.setId(id);\n\t\tbpp.setValue(value);\n\t\treturn bpp;\n\t}", "public void thisSlot(MyButton boton) {\n\t\tthis.boton = boton;\n\t\tDialeg dialeg = new Dialeg();\n\t\tdialeg.setInputText(\"How much money do you want to bet?\");\n\t\tif (dialeg.getAmount() != null && (dialeg.getAmount().isEmpty()\n\t\t\t\t|| !dialeg.getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\") || Float.parseFloat(dialeg.getAmount()) <= 0)) {\n\t\t\tdialeg.setWarningText(\"Enter a correct amount!\");\n\t\t} else if (dialeg.getAmount() != null) {\n\t\t\tString slot = boton.getText();\n\t\t\tBet bet = new Bet(Double.parseDouble(dialeg.getAmount()), slot);\n\t\t\trouletteExecutor.setAposta(bet);\n\t\t\tbool.set(true);\n\t\t}\n\t}", "@Override\n\tpublic int insertBidding(BidderDTO bidderDTO) {\n\t\treturn session.insert(\"BidderMapper.insertBidding\", bidderDTO);\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }", "@Override\n\tpublic void createItem(Object result) {\n\t\t\n\t\tunloadform();\n\t\tif (result != null) {\n\t\t\tIOTransactionLogic tr = (IOTransactionLogic) result;\n\t\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\t\tint month = Calendar.getInstance().get(Calendar.MONTH);\n\t\t\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(tr.getDate());\n\t\t\tint trYear = cal.get(Calendar.YEAR);\n\t\t\tint trMonth = cal.get(Calendar.MONTH);\n\t\t\t\n\t\t\tif ((year == trYear) && (month == trMonth)\n\t\t\t\t\t&& tr.getBankAccountID() == bal.getId()) {\n\t\t\t\ttransactionDisplayer trDisplayer = new transactionDisplayer(tr);\n\t\t\t\tsetDataLineChart();\n\t\t\t\tsetDataPieChart();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}" ]
[ "0.61111224", "0.58795077", "0.562075", "0.5557155", "0.55487657", "0.5545591", "0.55206263", "0.5492724", "0.54016757", "0.53788036", "0.537523", "0.5366189", "0.5354759", "0.53271145", "0.53242266", "0.5266772", "0.52666026", "0.52595484", "0.5247074", "0.52264255", "0.52202183", "0.52135223", "0.5200903", "0.5191954", "0.5180115", "0.5163885", "0.5140952", "0.51101804", "0.50941664", "0.5093604", "0.50819546", "0.5074893", "0.50706506", "0.5045426", "0.50445354", "0.50404423", "0.5027794", "0.5024796", "0.50176674", "0.5013222", "0.49957842", "0.49909216", "0.49855632", "0.49766934", "0.4966896", "0.4965179", "0.4957433", "0.495292", "0.4948577", "0.49454886", "0.493829", "0.49342185", "0.4930361", "0.4927757", "0.49019876", "0.4901014", "0.48962885", "0.48949167", "0.48924613", "0.48897883", "0.48703405", "0.48629", "0.48608872", "0.48603135", "0.48602623", "0.48591074", "0.4855398", "0.48535135", "0.48474002", "0.4844011", "0.4842378", "0.48422268", "0.48421064", "0.48369205", "0.48298258", "0.48150253", "0.48140082", "0.48085007", "0.48063043", "0.47998422", "0.4785796", "0.47851297", "0.4784726", "0.47841263", "0.47782847", "0.47773805", "0.4770609", "0.47687113", "0.47633395", "0.47629502", "0.47622636", "0.47584063", "0.47568068", "0.4756132", "0.47541162", "0.47504142", "0.47469786", "0.47468182", "0.47449678", "0.47406706" ]
0.62161547
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(); jLabel5 = new javax.swing.JLabel(); pro_Bid = new javax.swing.JProgressBar(); Pro_perf = new javax.swing.JProgressBar(); tf_pbbonds_id = new javax.swing.JTextField(); tf_pbbonds_name = new javax.swing.JTextField(); jPanel3 = new javax.swing.JPanel(); jLabel10 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); tf_bid_end = new javax.swing.JTextField(); tf_bid_start = new javax.swing.JTextField(); tf_bid_pro = new javax.swing.JTextField(); tf_bid_value = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); tf_bid_no = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); tf_pbbonds_value = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); tf_per_end = new javax.swing.JTextField(); tf_per_start = new javax.swing.JTextField(); tf_per_pro = new javax.swing.JTextField(); tf_per_value = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); tf_per_no = new javax.swing.JTextField(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); pre1 = new javax.swing.JLabel(); pre2 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setResizable(false); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel5.setText("Project Value:"); tf_pbbonds_id.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_pbbonds_idActionPerformed(evt); } }); tf_pbbonds_name.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_pbbonds_nameActionPerformed(evt); } }); jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); jLabel10.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel10.setText("End Date"); jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel12.setText("Provider"); jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel11.setText("Value"); tf_bid_value.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_bid_valueActionPerformed(evt); } }); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel2.setText("Reference Number"); jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel9.setText("Date of"); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel4.setText("Commencement"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(30, 30, 30) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(4, 4, 4) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel4) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10) .addComponent(jLabel12)) .addGap(42, 42, 42) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(tf_bid_no) .addComponent(tf_bid_start) .addComponent(tf_bid_pro, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(tf_bid_end) .addComponent(tf_bid_value, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(39, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(20, 20, 20) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jLabel11) .addGap(68, 68, 68) .addComponent(jLabel10) .addGap(18, 18, 18) .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(tf_bid_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(tf_bid_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tf_bid_start, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tf_bid_pro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel12)) .addGap(18, 18, 18) .addComponent(tf_bid_end, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(38, 38, 38))))) .addContainerGap(81, Short.MAX_VALUE)) ); tf_pbbonds_value.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_pbbonds_valueActionPerformed(evt); } }); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel3.setText("Project Name"); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel1.setText("Project ID:"); jPanel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel13.setText("End Date"); jLabel14.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel14.setText("Provider"); jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel15.setText("Value"); tf_per_value.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_per_valueActionPerformed(evt); } }); jLabel6.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel6.setText("Reference Number"); jLabel16.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel16.setText("Date of"); jLabel17.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel17.setText("Commencement"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(4, 4, 4) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel14) .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel13))) .addComponent(jLabel17) .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(42, 42, 42) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(tf_per_no) .addComponent(tf_per_start) .addComponent(tf_per_pro, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(tf_per_end) .addComponent(tf_per_value, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(42, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(23, 23, 23) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jLabel6) .addGap(18, 18, 18) .addComponent(jLabel15) .addGap(18, 18, 18) .addComponent(jLabel14) .addGap(18, 18, 18) .addComponent(jLabel13) .addGap(35, 35, 35) .addComponent(jLabel16) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel17)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(tf_per_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(tf_per_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tf_per_start, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addComponent(tf_per_pro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(tf_per_end, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(38, 38, 38))))) .addContainerGap(76, Short.MAX_VALUE)) ); pre1.setFont(new java.awt.Font("Tahoma", 1, 12)); pre2.setFont(new java.awt.Font("Tahoma", 1, 12)); jLabel7.setFont(new java.awt.Font("Andalus", 1, 28)); jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Rina/bookmark_32.png"))); // NOI18N jLabel7.setText("Bid Bond"); jLabel8.setFont(new java.awt.Font("Andalus", 1, 28)); jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Rina/statistics_32.png"))); // NOI18N jLabel8.setText("Performance Bond"); jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Rina/delete_16.png"))); // NOI18N jButton2.setText("Cancel"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(174, 174, 174) .addComponent(pre1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(368, 368, 368) .addComponent(pre2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(168, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(23, 23, 23) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(152, 152, 152) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jLabel1) .addComponent(jLabel5)) .addGap(54, 54, 54) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(tf_pbbonds_id) .addComponent(tf_pbbonds_value) .addComponent(tf_pbbonds_name, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pro_Bid, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(Pro_perf, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addComponent(jLabel8))))) .addGap(25, 25, 25)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(24, 24, 24) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tf_pbbonds_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(tf_pbbonds_name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tf_pbbonds_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(21, 21, 21) .addComponent(pro_Bid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(48, 48, 48) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(281, 281, 281))) .addGap(21, 21, 21) .addComponent(Pro_perf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(2, 2, 2))) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(pre1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pre2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton2)) .addGap(25, 25, 25)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-838)/2, (screenSize.height-606)/2, 838, 606); }
{ "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 BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\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 intrebarea() {\n initComponents();\n }", "public Magasin() {\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}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@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 MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\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 Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\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 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 EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\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 Carrera() {\n initComponents();\n }", "public POS1() {\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.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.69452274", "0.6942602", "0.6935845", "0.6931919", "0.6928187", "0.6925288", "0.69251484", "0.69117147", "0.6911646", "0.6892842", "0.68927234", "0.6891408", "0.68907607", "0.68894386", "0.68836755", "0.688209", "0.6881168", "0.68787616", "0.68757504", "0.68741524", "0.68721044", "0.685922", "0.68570775", "0.6855737", "0.6855207", "0.68546575", "0.6853559", "0.6852262", "0.6852262", "0.68443567", "0.6837038", "0.6836797", "0.68291426", "0.6828922", "0.68269444", "0.6824652", "0.682331", "0.68175536", "0.68167555", "0.6810103", "0.6809546", "0.68085015", "0.68083894", "0.6807979", "0.68027437", "0.67950374", "0.67937446", "0.67921823", "0.67911226", "0.67900467", "0.6788873", "0.67881", "0.6781613", "0.67669237", "0.67660683", "0.6765841", "0.6756988", "0.675558", "0.6752552", "0.6752146", "0.6742482", "0.67395985", "0.673791", "0.6736197", "0.6733452", "0.67277217", "0.6726687", "0.67204696", "0.67168", "0.6714824", "0.6714823", "0.6708782", "0.67071444", "0.670462", "0.67010295", "0.67004406", "0.6699407", "0.6698219", "0.669522", "0.66916007", "0.6689694" ]
0.0
-1
puts all the file in a single string
private void messagesLoad(String mesagesFileName) throws IOException { String temp = new String(Files.readAllBytes(Paths.get(mesagesFileName))); String allMessages = stripAccents(temp); // only if you use mockmock or an non UTF-8 compatible SMPT server //then we split the String into an ArrayList of String //in the file messages.utf8 we have used "=_=_=" as seperator messages = new ArrayList<String>(Arrays.asList(allMessages.split("=_=_=\n"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "public String readMultipleFromFiles()\n {\n String result = \"\";\n try\n {\n FileReader fileReader = new FileReader(filename);\n try\n {\n StringBuffer stringBuffer = new StringBuffer();\n Scanner scanner = new Scanner(fileReader);\n while (scanner.hasNextLine())\n {\n stringBuffer.append(scanner.nextLine()).append(\"\\n\");\n }\n stringBuffer.delete(stringBuffer.length() - 1, stringBuffer.length());\n result = stringBuffer.toString();\n } finally\n {\n fileReader.close();\n }\n } catch (FileNotFoundException e)\n {\n System.out.println(\"There is no such file called \" + filename);\n } catch (IOException e)\n {\n System.out.println(\"read \" + filename + \" error!!!\");\n } catch (NumberFormatException e)\n {\n System.out.println(\"content in file \" + filename + \" is error\");\n }\n return result;\n }", "private static String fileToString(String path) throws IOException {\n\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\t\treturn new String(encoded, StandardCharsets.UTF_8);\n\t}", "String getFileOutput();", "private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }", "public static String fileToString(File file) throws IOException{\n\t\tBufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file));\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(inputStream));\n\t\tStringBuilder file_content = new StringBuilder();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null) {\n\t\t file_content.append(line);\n\t\t}\n\t\t\n\t\treturn file_content.toString();\n\t}", "private static String readFileToString(String filePath) throws IOException {\n\t\tStringBuilder fileData = new StringBuilder(1000);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\tchar[] buf = new char[10];\n\t\tint numRead = 0;\n\t\twhile ((numRead = reader.read(buf)) != -1) {\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\n\t\t\tfileData.append(readData);\n\t\t\tbuf = new char[1024];\n\t\t}\n\t\treader.close();\n\t\treturn fileData.toString();\t\n\t}", "public static String fileToString(String fileName) throws FileNotFoundException {\n Scanner in = new Scanner(new File(fileName));\n String result = \"\";\n\n while(in.hasNextLine()){\n result += in.nextLine();\n }\n\n return result;\n }", "private static String readFileContents(File file) throws FileNotFoundException {\n StringBuilder fileContents = new StringBuilder((int) file.length());\n\n try (Scanner scanner = new Scanner(file)) {\n while (scanner.hasNext()) {\n fileContents.append(scanner.next());\n }\n return fileContents.toString();\n }\n }", "static String readFile(String path) throws IOException{\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tStringBuffer sb = new StringBuffer();\n\t\t// read a file\n\t\tint singleByte = fs.read(); // read singleByte\n\t\twhile(singleByte!=-1){\n\t\t\tsb.append((char)singleByte);\n\t\t\t///System.out.print((char)singleByte);\n\t\t\tsingleByte = fs.read();\n\t\t}\n\t\tfs.close(); // close the file\n\t\treturn sb.toString();\n\t}", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "public static String loadAFileToStringDE1(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new BufferedInputStream( new FileInputStream(f) );\n long contentLength = f.length();\n ByteArrayOutputStream outstream = new ByteArrayOutputStream( contentLength > 0 ? (int) contentLength : 1024);\n byte[] buffer = new byte[4096];\n int len;\n while ((len = is.read(buffer)) > 0) {\n outstream.write(buffer, 0, len);\n } \n outstream.close();\n ret = outstream.toString();\n //byte[] ba = outstream.toByteArray();\n //ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法1用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }", "public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }", "void printFile(String path) {\n try {\n String[] readFileOutPut = readFile(path);\n for (int i = 0; i < readFileOutPut.length;i++) System.out.println(readFileOutPut[i]);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public String readFileIntoString(String filepath) throws IOException;", "public static void demoReadAll(){\n try{\n //Read entire file bytes. Return in byte format. Don't need to close() after use. \n byte[] b = Files.readAllBytes(Paths.get(\"country.txt\"));\n String s = new String(b);\n System.out.println(s);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "String getFile();", "String getFile();", "String getFile();", "public static String givestring(String file_name)\n\t {\n\t \tString s=\"\";\n\t \tString r=\"\";\n\t \tFile file=new File(file_name);\n\t \ttry\n\t \t{\n\t \t\tScanner scan=new Scanner(file);\n\t \t\twhile(scan.hasNextLine())\n\t \t\t{\n\t \t\t\ts=scan.nextLine();\n\t \t\t\ts=checkString(s);\n\t \t\t\tr+=s;\n\t \t\t}\n\t \t}\n\t \tcatch (FileNotFoundException e)\n\t \t {\n System.out.println(\"Sorry Invalid file name\");\n // System.out.println(\"Please try again\");\n // Scanner sc=new Scanner(System.in);\n // String ss=sc.nextLine();\n // givestring(ss);\n \t\t }\n\t \n // System.out.println(r);\nreturn r;\n\t }", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public String readFileToString(String file) throws IOException {\n BufferedReader reader = new BufferedReader( new FileReader(file));\n String line = null;\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n while( ( line = reader.readLine() ) != null ) {\n stringBuilder.append( line );\n stringBuilder.append( ls );\n }\n return stringBuilder.toString();\n }", "public static String getAsString(File file) {\n\t\tInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\tString rtn = getAsString(is);\n\t\t\treturn rtn;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t} finally {\n\t\t\tif (is != null) {\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (Exception exp) {\n\t\t\t\t\tthrow new RuntimeException(exp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int cp;\n\t\t while ((cp = rd.read()) != -1) {\n\t\t sb.append((char) cp);\n\t\t }\n\t\t return sb.toString();\n\t\t }", "private static String readFile(String file) throws IOException {\n\n\t\tString line = null;\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString ls = System.getProperty(\"line.separator\");\n\n\t\ttry (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tstringBuilder.append(line);\n\t\t\t\tstringBuilder.append(ls);\n\t\t\t}\n\t\t}\n\n\t\treturn stringBuilder.toString();\n\t}", "@SuppressWarnings(\"unused\")\n private String readFile(File f) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n StringBuilder builder = new StringBuilder();\n while (line != null) {\n builder.append(line).append('\\n');\n line = reader.readLine();\n }\n reader.close();\n return builder.toString();\n }", "private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}", "public static String readFileAsString(String file) throws IOException {\n \t\tStringBuilder contents = new StringBuilder();\n \t\tBufferedReader input = new BufferedReader(new FileReader(file));\n \t\tString line = null;\n \t\twhile ((line = input.readLine()) != null) {\n \t\t\tcontents.append(line);\n \t\t\tcontents.append(System.getProperty(\"line.separator\"));\n \t\t}\n \t\tinput.close();\n \t\treturn contents.toString();\n \t}", "private static String readFile(String file) throws IOException { //Doesn't work - possible error with FileReader\n //BufferedReader reader = new BufferedReader(new FileReader(file));\n //FileReader reader=new FileReader(file);\n\n\n FileReader file2 = new FileReader(file);\n System.out.println(\"Inside readFile\");\n BufferedReader buffer = new BufferedReader(file2);\n\n\n\n //String line = null;\n String line=\"\";\n\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n try {\n while ((line = buffer.readLine()) != null) {\n System.out.println(line);\n stringBuilder.append(line);\n stringBuilder.append(ls);\n }\n return stringBuilder.toString();\n\n }finally{\n buffer.close();//https://stackoverflow.com/questions/326390/how-do-i-create-a-java-string-from-the-contents-of-a-file\n }\n /*Scanner scanner = null;\n scanner = new Scanner(file);\n StringBuilder stringBuilder = new StringBuilder();\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n stringBuilder.append(line);\n\n System.out.println(\"line: \"+line);\n }\n return stringBuilder.toString();*/\n\n }", "public String getFormattedFileContents ();", "private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }", "private String readFully(String filename) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filename));\n\t\tStringBuilder buf=new StringBuilder();\n\t\tchar[] data=new char[8192];\n\t\tint num=reader.read(data);\n\t\twhile(num>-1){\n\t\t\tbuf.append(data,0,num);\n\t\t\tnum=reader.read(data);\n\t\t}\n\t\treturn buf.toString();\n\t}", "public static String readAllString(String filename) {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(filename);\n\t\t\t// readAll closes\n\t\t\treturn readAllString(fis);\n\t\t} catch (FileNotFoundException fnf) {\n\t\t\tthrow new WrappedException(fnf);\n\t\t}\n\t}", "public String readFile(File file) {\r\n\t\tString line;\r\n\t\tString allText = \"\";\r\n\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(file))) {\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\r\n\t\t\t\tallText += line + \"\\n\";\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException 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\treturn allText;\r\n\t}", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }", "public static String readAllStrings(String fileName) throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading of all strings from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n while ((s=in.readLine())!=null){\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }", "public String getStringFile(){\n return fileView(file);\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "public String getContents(File file) {\n\t //...checks on file are elided\n\t StringBuilder contents = new StringBuilder();\n\t \n\t try {\n\t //use buffering, reading one line at a time\n\t //FileReader always assumes default encoding is OK!\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String line = null; \n\n\t while (( line = input.readLine()) != null){\n\t contents.append(line);\n\t contents.append(\"\\r\\n\");\t }\n\t }\n\t finally {\n\t input.close();\n\t }\n\t }\n\t catch (IOException ex){\n\t log.error(\"Greska prilikom citanja iz fajla: \"+ex);\n\t }\n\t \n\t return contents.toString();\n\t}", "private String readAll(Reader rd) throws IOException {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint cp;\r\n\t\twhile ((cp = rd.read()) != -1) {\r\n\t\t\tsb.append((char) cp);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public void concatePlainText(String[] filenames, String desFileName) {\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(desFileName));\n //StringBuffer buffer=new StringBuffer();\n for (String filename : filenames) {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String str;\n while ((str = reader.readLine()) != null) {\n // buffer.append(str);\n writer.write(str);\n writer.newLine();\n }\n reader.close();\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String getFileContent(String filename){\n\t\tString output = \"\";\n\t\tfor(String s : files.keySet()){\n\t\t\tif(s.equals(filename.trim())){\n\t\t\t\toutput = files.get(s);\n\t\t\t\treturn output;\n\t\t\t}\n\t\t}\n\t\treturn \"File does not exist\";\n\t}", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "public String toFileString()\n {\n return ( cyl + \",\" + fuel );\n }", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "static void echoFile() {\n BufferedReader echo = new BufferedReader(fileIn);\n String curr_char = \"\";\n try {\n while((curr_char = echo.readLine()) != null) {\n System.out.println(curr_char);\n }\n cout.println();\n }\n catch(IOException e) {\n System.out.println(\"echofile error\");\n }\n }", "public static String loadFileAsString(String filePath) throws java.io.IOException{\n\t StringBuffer fileData = new StringBuffer(1000);\n\t BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t char[] buf = new char[1024];\n\t int numRead=0;\n\t while((numRead=reader.read(buf)) != -1){\n\t String readData = String.valueOf(buf, 0, numRead);\n\t fileData.append(readData);\n\t }\n\t reader.close();\n\t return fileData.toString();\n\t}", "public static String textToString( String fileName )\n { \n String temp = \"\";\n try {\n Scanner input = new Scanner(new File(fileName));\n \n //add 'words' in the file to the string, separated by a single space\n while(input.hasNext()){\n temp = temp + input.next() + \" \";\n }\n input.close();\n \n }\n catch(Exception e){\n System.out.println(\"Unable to locate \" + fileName);\n }\n //make sure to remove any additional space that may have been added at the end of the string.\n return temp.trim();\n }", "public static String readFileToString(File file) throws IOException {\n return readFileToString(file, null);\n }", "public String execute() {\n String output = \"\";\n String tempOut = \"\";\n FSElement file;\n ArrayList<FSElement> recfiles;\n for (String fileName : dirArray) {\n file = Traverse.accessFS(fileName, root);\n if (file != null) {\n if (file instanceof File) {\n tempOut = getContent((File) file);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n } else if (subdir) {\n recfiles = Traverse.getAllDirs((Directory) file);\n for (FSElement temp : recfiles) {\n if (temp instanceof File) {\n tempOut = getContent((File) temp);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n }\n }\n }\n } else {\n Output.pathIncorrect(fileName);\n }\n }\n if (!(output.equals(\"\"))) {\n output = output.substring(0, output.length() - 2);\n return output;\n } else {\n Output.NoFilesFound();\n return null;\n }\n }", "public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }", "public String readFileBufferedReader() {\n String result = \"\";\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(new File(ALICE_PATH)));\n\n for (String x = in.readLine(); x != null; x = in.readLine()) {\n result = result + x + '\\n';\n }\n\n } catch (IOException e) {\n }\n\n if(in != null)try {\n in.close();\n } catch (IOException e) {\n }\n\n return result;\n }", "public static String localFileToString(String fileName) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\ttry\n\t {\n\t StringBuilder sb = new StringBuilder();\n\t String line = br.readLine();\n\n\t while (line != null)\n\t {\n\t sb.append(line);\n\t sb.append(\"\\n\");\n\t line = br.readLine();\n\t }\n\t \n\t return sb.toString();\n\t }\n\t finally\n\t {\n\t br.close();\n\t }\n\t}", "private static void readFile() throws IOException\r\n\t{\r\n\t\tString s1;\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\r\n\t\tSystem.out.println(\"\\ndbs3.txt File\");\r\n\t\twhile ((s1 = br.readLine())!=null)\r\n\t\t{\r\n\t\t\tSystem.out.println(s1);\r\n\t\t}//end while loop to read files\r\n\t\t\r\n\t\tbr.close();//close the buffered reader\r\n\t}", "private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }", "static public String getContents(File aFile) {\n\t\tStringBuilder contents = new StringBuilder();\r\n\r\n\t\ttry {\r\n\t\t\t// use buffering, reading one line at a time\r\n\t\t\t// FileReader always assumes default encoding is OK!\r\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(aFile));\r\n\t\t\ttry {\r\n\t\t\t\tString line = null; // not declared within while loop\r\n\t\t\t\t/*\r\n\t\t\t\t * readLine is a bit quirky : it returns the content of a line\r\n\t\t\t\t * MINUS the newline. it returns null only for the END of the\r\n\t\t\t\t * stream. it returns an empty String if two newlines appear in\r\n\t\t\t\t * a row.\r\n\t\t\t\t */\r\n\t\t\t\twhile ((line = input.readLine()) != null) {\r\n\t\t\t\t\tcontents.append(line);\r\n\t\t\t\t\tcontents.append(System.getProperty(\"line.separator\"));\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tinput.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn contents.toString();\r\n\t}", "public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }", "public String fileView(RandomAccessFile file){\n StringBuilder out = new StringBuilder(\"\");\n try{\n file.seek(0);\n while(true){\n out.append(file.readInt() + \"\\n\");\n }\n }catch (IOException e){\n\n }\n return out.toString();\n }", "public static void main(String[] args) {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint temp = 0;\n\t\tlong date1 = System.currentTimeMillis();\n\t\tbyte buf[] = new byte[1024];\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"d:\\\\javas\\\\resource\\\\51cfabdabfecc3baec9d506e3a027629.jpg\");\n\t\t\tfos = new FileOutputStream(\"d:\\\\javas\\\\resource\\\\copy51cfabdabfecc3baec9d506e3a027629.jpg\");\n\t\t\twhile((temp = fis.read(buf)) != -1){\n\t\t\t\t//String str = new String(buf,0,temp);\n\t\t\t\tfos.write(buf, 0, temp);\n\t\t\t\t//byte[] by = new byte[1024];\n\t\t\t\t//by = str.getBytes();\n\t\t\t\t//fos.write(str.getBytes());如果是在把字符串写到文件可以用这个方法;\n\t\t\t\t//sb.append(str);\n\t\t\t}\n\t\t\t//System.out.println(sb);\n\t\t\t\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tif(fos != null){\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(fis != null){\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//new File(\"d:\"+ File.separator +\"a.txt\");\n\t\tlong date2 = System.currentTimeMillis();\n\t\tSystem.out.println(date2 + \"-\" + date1 + \"=\" + (date2-date1));\n\t\t\n\t}", "private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}", "String prepareFile();", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "void doShowFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tIterator itr = m_fileInfo.getAllFiles();\n\n\t\t\twhile(itr.hasNext())\n\t\t\t{\n\t\t\t\tSourceFile m = (SourceFile) ((Map.Entry)itr.next()).getValue();\n\n\t\t\t\tString name = m.getName();\n\t\t\t\tint id = m.getId();\n\t\t\t\tString path = m.getFullPath();\n\n\t\t\t\tsb.append(id);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(path);\n\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\tsb.append(name);\n\t\t\t\tsb.append(m_newline);\n\t\t\t}\n\t\t\tout( sb.toString() );\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSourceFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t}", "private static String readFile(String path) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(path)))) {\n\t\t\tStringBuilder input = new StringBuilder();\n\t\t\tString tmp; while ((tmp = br.readLine()) != null) input.append(tmp+\"\\n\");\n\t\t\treturn input.toString();\n\t\t}\n\t}", "public static String loadAFileToStringDE2(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new FileInputStream(f) ;\n long contentLength = f.length();\n byte[] ba = new byte[(int)contentLength];\n is.read(ba);\n ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法2用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n String contenido = \"\";\r\n\r\n try {\r\n FileReader in = new FileReader(\"./src/fichero_prueba.txt\");\r\n int c = in.read();\r\n\r\n while (c != -1) {\r\n contenido += (char) c;\r\n c = in.read();\r\n }\r\n in.close();\r\n } catch (IOException e){\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n System.out.println(contenido);\r\n\r\n\r\n //LEER MENSAJE POR BLOQUES\r\n\r\n String contenido2 = \"\";\r\n\r\n try {\r\n BufferedReader inb = new BufferedReader(new FileReader(\"./src/fichero_prueba.txt\"));\r\n\r\n String linea = inb.readLine();\r\n while (linea!=null){\r\n contenido2 += linea+\"\\n\";\r\n linea = inb.readLine();\r\n }\r\n inb.close();\r\n } catch (IOException e){\r\n e.printStackTrace();\r\n }\r\n System.out.println(contenido2);\r\n\r\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "public static String csvToString(String fname) throws IOException{\n\t\tString contents = new String(Files.readAllBytes(Paths.get(fname)));\n\t\treturn contents;\n\t}", "public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }", "private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}", "public static String getContent(String path){\t\n\t\t\n\t\tStringBuilder content = new StringBuilder();\n\t\tFile file = new File(path);\n\t\t\n\t\ttry{\n\t\t\tScanner fileReader = new Scanner(file);\n\t\t\twhile (fileReader.hasNextLine()) \n\t\t\t\tcontent.append(fileReader.nextLine() + \"\\n\");\t\n\t\t\tfileReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException f){\n\t\t\tf.printStackTrace();\n }\n \n return content.toString();\n\t}", "private static String readAllBytes(Reader rd) throws IOException {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tstringBuilder.append((char) cp);\n\t\t}\n\t\treturn stringBuilder.toString();\n\t}", "public String readFileContents(String filename) {\n return null;\n\n }", "private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "private static String readAllBytesJava7(String filePath) {\n String content = \"\";\n\n try {\n content = new String(Files.readAllBytes(Paths.get(filePath)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content;\n }", "public abstract String toStringForFileName();", "private static String getFilesContent() {\n String content = \"\";\n try {\n //cameras.json\n AssetManager am = MarketApplication.getMarketApplication().getAssets();\n InputStream stream = am.open(CAMERAS_FILE_NAME);\n int size = stream.available();\n byte[] buffer = new byte[size];\n stream.read(buffer);\n mJsonCameras = new String(buffer);\n\n //videogames.json\n stream = am.open(VIDEO_GAMES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n mJsonVideogames = new String(buffer);\n\n //clothes.json\n stream = am.open(CLOTHES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n stream.close();\n mJsonClothesProducts = new String(buffer);\n\n\n } catch (IOException e) {\n Log.e(TAG, \"Couldn't read the file\");\n }\n return content;\n }", "public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }", "public static void main(String[] args) {\n byte[] content = null;\n try {\n content = Files.readAllBytes(new File(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\diemkhang\\\\test reader\\\\introduce.txt\").toPath());\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(new String(content));\n }", "public String readFile(String filename)\n {\n StringBuilder texts = new StringBuilder();\n \n try \n {\n FileReader inputFile = new FileReader(filename);\n Scanner parser = new Scanner(inputFile);\n \n while (parser.hasNextLine())\n {\n String line = parser.nextLine();\n texts.append(line + \";\");\n }\n \n inputFile.close();\n parser.close();\n return texts.toString();\n \n }\n \n catch(FileNotFoundException exception) \n {\n String error = filename + \" not found\";\n System.out.println(error);\n return error;\n }\n \n catch(IOException exception) \n {\n String error = \"Unexpected I/O error occured\";\n System.out.println(error); \n return error;\n } \n }", "public static String sourceFileToString(String fileName)\n\t{\n\t\t// http://stackoverflow.com/a/15161665/1106708\n\t\tStringBuilder builder = new StringBuilder();\n\t\tInputStream is = Settings.class.getResourceAsStream(fileName);\n\t\tint ch;\n\t\ttry\n\t\t{\n\t\t\twhile((ch = is.read()) != -1)\n\t\t\t{\n\t\t\t builder.append((char)ch);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}", "public String toString(){\n\t\tFileHandler fw = new FileHandler(); //Create new object for file write\n \tformatText(title);\n \tformatText(snippet);\n \tsnippet = removeLineBreak(snippet);\n \t\n \t//Print out contents to screen\n \tSystem.out.println(urlLabel + link);\n \tSystem.out.println(titleLabel + title);\n\t\tSystem.out.println(snippetLabel + snippet);\n\t\t\n\t\t//Write contents to file\n\t\tfw.writeToFile(urlLabel, link, fw.file, false);\n\t\tfw.writeToFile(titleLabel, title, fw.file, false);\n\t\tfw.writeToFile(snippetLabel, snippet, fw.file, false);\n\t\tfw.writeToFile(\"---------- END OF RESULT -----------\",\"\", fw.file, false);\n\t return \"\";\n\t}", "public String[] readFile() {\n\t\t\n\t\tFile file = null;\n\t\tString[] contenu = new String[2];\n\t\tMonFileChooser ouvrir = new MonFileChooser();\n\t\tint resultat = ouvrir.showOpenDialog(null);\n\t\tif (resultat == MonFileChooser.APPROVE_OPTION) {\n\t\t\tfile = ouvrir.getSelectedFile();\n\t\t\tcontenu[0]=file.getName();\n\t\t\n\t\t\n\t\t\ttry {\n\t\t\t\tString fileContent = null;\n\t\t\t\tcontenu[1] = \"\";\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(file)); \n\t\t\t\twhile((fileContent = br.readLine()) != null) {\n\t\t\t\t\tif (fileContent != null)\n\t\t\t\t\tcontenu[1] += fileContent+\"\\n\";\n\t\t\t}\n\t\t\t br.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\topenFiles.add(file);\n\t\t}\n\t\treturn contenu;\t\n\t}", "public String readFileContent(File file) {\n StringBuilder fileContentBuilder = new StringBuilder();\n if (file.exists()) {\n String stringLine;\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((stringLine = bufferedReader.readLine()) != null) {\n fileContentBuilder.append(stringLine + \"\\n\");\n }\n bufferedReader.close();\n fileReader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return fileContentBuilder.toString();\n }", "public void readFile();", "public String getConteudoArquivo() {\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tFileReader leitor = null;\n\t\tBufferedReader buffer = null;\n\t\ttry {\n\n\t\t\tleitor = new FileReader(this.arquivo);\n\t\t\tbuffer = new BufferedReader(leitor);\n\n\t\t\twhile (buffer.ready()) {\n\t\t\t\tbuilder.append(buffer.readLine() + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"Imposivel de ler o arquivo \"\n\t\t\t\t\t+ this.arquivo.getName());\n\t\t} finally {\n\t\t\tRessourcesUtils.closeRessources(buffer);\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "public static StringBuilder getFileContent(String filename)\n\t\t\tthrows FileNotFoundException {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner input = new Scanner(new File(filename));\n\t\twhile (input.hasNextLine()) {\n\t\t\tsb.append(input.nextLine());\n\t\t}\n\t\tinput.close();\n\n\t\treturn sb;\n\t}", "private static String readFileToString(File fileToRead) {\n\t\tString out = null;\n\t\ttry {\n\t\t\tout = FileUtils.readFileToString(fileToRead);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn out;\n\t}", "public static String testFileToString(String filename) throws IOException {\n return testFileToString(filename, null);\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tString path=\"D:\\\\Users\\\\testfile.txt\";\n\t\tString content = new String(Files.readAllBytes(Paths.get(path)));\n\t\tSystem.out.println(content);\n\n\t}", "public static String readWholeFile(String filename) {\n\t\t \n\t\t \n\t\t \n\t\ttry {\n\t\t\tScanner scanner = new Scanner(new File(filename));\n\t\t\t //scanner.useDelimiter(\"\\\\Z\");\n\t\t\t String returnString = \"\";\n\t\t\t while (scanner.hasNextLine()) {\n\t\t\t\t returnString += scanner.nextLine();\n\t\t\t\t returnString += System.lineSeparator();\n\t\t\t }\n\t\t\t \n\t\t\t return returnString;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t \n\t\t \n\t\t }", "public static String read(File file) throws FileNotFoundException, IOException {\n char[] cbuf = new char[1024];\n StringBuilder builder = new StringBuilder();\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)))) {\n int numRead;\n while ((numRead = reader.read(cbuf)) != -1) {\n builder.append(cbuf, 0, numRead);\n }\n }\n return builder.toString();\n }", "private static String arquivoParaString(String caminhoArquivo){\n\t\ttry {\t\n\t\t\tbyte[] encoded = Files.readAllBytes(Paths.get(caminhoArquivo));\n\t\t\treturn new String(encoded, StandardCharsets.UTF_8);\n\t\t}catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "public abstract String FileOutput();" ]
[ "0.6805603", "0.65760523", "0.64838594", "0.64143234", "0.63987565", "0.6378096", "0.6357946", "0.63493127", "0.6266244", "0.62476546", "0.6138269", "0.60705453", "0.6064859", "0.60217774", "0.6006778", "0.5989748", "0.59699523", "0.59699523", "0.59699523", "0.59521633", "0.59337354", "0.59286046", "0.5916459", "0.5905264", "0.5903999", "0.5883456", "0.58706623", "0.5857432", "0.58486545", "0.58345765", "0.5825752", "0.58191055", "0.5818701", "0.5812794", "0.5812794", "0.58047456", "0.5796813", "0.57954013", "0.57928586", "0.57867974", "0.5783669", "0.57834405", "0.57820493", "0.5781098", "0.5771967", "0.5769017", "0.5756817", "0.57487386", "0.5717472", "0.5703109", "0.57001275", "0.5689402", "0.5677201", "0.56764925", "0.5670051", "0.5647851", "0.56327784", "0.5621208", "0.56027025", "0.56016505", "0.55956393", "0.55910087", "0.55885303", "0.55878705", "0.5576294", "0.55556196", "0.5547307", "0.5542435", "0.55382323", "0.553404", "0.55319345", "0.552186", "0.5516945", "0.55148315", "0.5514162", "0.54945797", "0.5481251", "0.5475495", "0.5464525", "0.5460814", "0.54555464", "0.5453258", "0.5444856", "0.54432607", "0.54407436", "0.54386526", "0.5437608", "0.5434621", "0.5430107", "0.5422171", "0.54187876", "0.5398607", "0.5395773", "0.5387242", "0.538183", "0.538106", "0.537449", "0.53741324", "0.5372423", "0.53682405", "0.5354488" ]
0.0
-1
helper just for mockmock server mockmock server is not utf8 compatible mockmock server is not compatible with \' and \"
public static String stripAccents(String s) { s = Normalizer.normalize(s, Normalizer.Form.NFD); s = s.replaceAll("[\\p{InCombiningDiacriticalMarks}]", ""); s= s.replace('\'', '\u0020'); s= s.replace('\"', '\u0020'); s= s.replace('’', '\u0020'); s= s.replace('-', '\u0020'); s= s.replace('«', '\u0020'); s= s.replace('»', '\u0020'); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test092() throws Throwable {\n String string0 = JSONObject.quote(\"</IFXFL[\\u0007U86s$n`t?\");\n assertEquals(\"\\\"<\\\\/IFXFL[\\\\u0007U86s$n`t?\\\"\", string0);\n }", "@Test\n public void testunicode32() {\n assertEquals(\"\\uD834\\uDD1E\", JsonReader.read(\"\\\"\\\\uD834\\\\uDD1E\\\"\"));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n String string0 = JSONObject.quote(\"=!-\");\n assertEquals(\"\\\"=!-\\\"\", string0);\n }", "static String getStringJsonEscaped(String str) {\n JsonStringEncoder e = JsonStringEncoder.getInstance();\n StringBuilder sb = new StringBuilder();\n e.quoteAsString(str, sb);\n return sb.toString();\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n String string0 = JSONObject.quote(\"h?_!V\");\n assertEquals(\"\\\"h?_!V\\\"\", string0);\n }", "public void testImapQuote() {\n \n // Simple strings should come through with simple quotes\n assertEquals(\"\\\"abcd\\\"\", Utility.imapQuoted(\"abcd\"));\n \n // Quoting internal double quotes with \\\n assertEquals(\"\\\"ab\\\\\\\"cd\\\"\", Utility.imapQuoted(\"ab\\\"cd\"));\n \n // Quoting internal \\ with \\\\\n assertEquals(\"\\\"ab\\\\\\\\cd\\\"\", Utility.imapQuoted(\"ab\\\\cd\"));\n }", "private String quoteUnixCredentials(String str) {\n return str.replace(\"'\", \"'\\\\''\");\n }", "@org.junit.Test\n public void jsString()\n {\n assertEquals(\"empty\", \"''\", Encodings.toJSString(\"\"));\n assertEquals(\"simple\", \"'test'\", Encodings.toJSString(\"test\"));\n assertEquals(\"escape\", \"'escape \\\\\\'\\\\\\\"strings\\\\\\\"\\\\''\",\n Encodings.toJSString(\"escape '\\\"strings\\\"'\"));\n }", "public static void main(String args[])\r\n\t{\n\t\ttry {\r\n\t\t\tString s = \"{\\\"wfycdwmc\\\":\\\"河西单位0712\\\",\\\"sfbj\\\":\\\"0\\\"}\";\r\n\t\t sun.misc.BASE64Encoder necoder = new sun.misc.BASE64Encoder(); \r\n\t\t String ss = necoder.encode(s.getBytes());\r\n\t\t System.out.println(ss);\r\n\t\t sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();\r\n\t\t byte[] bt = decoder.decodeBuffer(ss); \r\n\t\t ss = new String(bt, \"UTF-8\");\r\n\t\t System.out.println(ss);\r\n//\t\t\tClient client = new Client(new URL(url));\r\n////\t\t\tObject[] token = client.invoke(\"getToken\",new Object[] {tokenUser,tokenPwd});//获取token\r\n//\t\t\tObject[] zyjhbh = client.invoke(apiName,new Object[] {\"120000\"});\r\n//\t\t\tSystem.out.println(zyjhbh[0].toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n String string0 = JSONObject.quote(\"\\\"\\\"\");\n assertEquals(\"\\\"\\\\\\\"\\\\\\\"\\\"\", string0);\n }", "@Test\n public void testBuildRequiredStringWithGoodUtf8() throws Exception {\n assertThat(StringWrapper.newBuilder().setReqBytes(UTF8_BYTE_STRING).getReq())\n .isEqualTo(UTF8_BYTE_STRING_TEXT);\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "@Test\n public void testBugFound151110() {\n String s = \"{\\\"names\\\":[{\\\"firstname\\\":\\\"Sebastian\\\",\\\"surname\\\":\\\"\\\\u00c5kesson\\\",\\\"gender\\\":\\\"male\\\"}]}\";\n Binson obj = Binson.fromJson(s);\n assertEquals(\"Åkesson\", obj.getArray(\"names\").getObject(0).getString(\"surname\"));\n }", "private static String handleEscapes(String s) {\n final String UNLIKELY_STRING = \"___~~~~$$$$___\";\n return s.replace(\"\\\\\\\\\", UNLIKELY_STRING).replace(\"\\\\\", \"\").replace(UNLIKELY_STRING, \"\\\\\");\n }", "@Override\n\tprotected void testForOpenDoubleQuotes() {\n\t}", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n String string0 = DBUtil.escape(\"Ucb\");\n assertEquals(\"Ucb\", string0);\n }", "@Test\n public void testGetNewUserSpecialChars() throws Exception {\n String badChars = \"~!@#$%^&*(//\\\\)_\" + getRandomString();\n String firstname = \"first+name\"+badChars;\n String lastname = \"last+name\"+badChars;\n String email = \"email@domain+name://///\" + getRandomString();\n UserMultiID umk = createRU(\"remote+user\"+badChars);\n String idp = \"test+idp+\" + getRandomString();\n String idpName = \"test//idp/\" + getRandomString();\n String affiliation = \"affiliation\" + badChars;\n String displayName = firstname + \" \" + lastname;\n String organizationalUnit = \"organization\" + badChars;\n\n // create a new user. The escaped characters are sent and should be returned unescaped in the map.\n XMLMap map = getDBSClient().getUser(umk, idp, idpName, firstname, lastname, email,affiliation,\n displayName,organizationalUnit);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n String string0 = \"{3&b()u=\\\"9(/N;Cfw?\";\n JSONTokener jSONTokener0 = new JSONTokener(\"{3&b()u=\\\"9(/N;Cfw?\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Unterminated string at character 18 of {3&b()u=\\\"9(/N;Cfw?\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n String string0 = SQLUtil.normalize(\"executejizk|8u\\\"v5f\", true);\n assertEquals(\"executejizk | 8u \\\"v5f\\\"\", string0);\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 }", "@Test\r\n public void testGetStringRepresentation() {\r\n }", "public static String javaStringEscape(String str)\n {\n test:\n {\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\n':\n case '\\r':\n case '\\\"':\n case '\\\\':\n break test;\n }\n }\n return str;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n switch (ch) {\n default:\n sb.append(ch);\n break;\n case '\\n':\n sb.append(\"\\\\n\");\n break;\n case '\\r':\n sb.append(\"\\\\r\");\n break;\n case '\\\"':\n sb.append(\"\\\\\\\"\");\n break;\n case '\\\\':\n sb.append(\"\\\\\\\\\");\n break;\n }\n }\n return sb.toString();\n }", "@Test\n\tpublic void testBeetlTest() throws JsonProcessingException {\n Account account = accountDao.queryAccountByName(\"李四\");\n\n ObjectMapper mapper = new ObjectMapper();\n String str = mapper.writeValueAsString(account);\n System.out.println(\"queryAccountByName:\" + str);\n }", "@Test\n public void encodeTest() throws Exception{\n this.mvc.perform(post(\"/encode?message=a little of this and a little of that&key=mcxrstunopqabyzdefghijklvw\")\n .accept(MediaType.TEXT_PLAIN))\n .andExpect(status().isOk()) // 200 class\n .andExpect(content().string(\"m aohhas zt hnog myr m aohhas zt hnmh\")); // expected good\n }", "@Override\r\n\tprotected void convertStringConst(String str) {\r\n\t\tappend(\"\\'\\\"\", str.replace(\"\\'\",\"\\'\\'\"), \"\\\"\\'\");\r\n\t}", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n String string0 = JSONObject.quote(\"e(h'R;/n&72HYkju\");\n assertEquals(\"\\\"e(h'R;/n&72HYkju\\\"\", string0);\n \n String string1 = JSONObject.valueToString(\"e(h'R;/n&72HYkju\");\n assertFalse(string1.equals((Object)string0));\n }", "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "private String doubleQuote( String raw ) { return '\"' + raw + '\"'; }", "public String renderJsonString(Object model) {\r\n \r\n StringBuffer buffer = new StringBuffer();\r\n jsonSerializer.deepSerialize(model, buffer);\r\n StringBuilder jsonResponse = new StringBuilder();\r\n jsonResponse.append(buffer);\r\n \r\n //Pattern.compile(regex).matcher(str).replaceAll(repl)\r\n String s = pattrenEscapedBackquote.matcher(jsonResponse.toString()).replaceAll(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n //String s = jsonResponse.toString().replaceAll(\"\\\\\\\\\\\\\\\\\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n s = pattrenEscapedQuoubleQuotePrefixedwithBackquote.matcher(s).replaceAll(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\");\r\n //s = s.replaceAll(\"\\\\\\\\\\\\\\\"\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\");\r\n s = pattrenForDoubleQuote.matcher(s).replaceAll(\"$1\\\\\\\\\\\"\");\r\n s = pattrenEscapedQuoubleQuoteNotPrefixedwithBackquote.matcher(s).replaceAll(\"$1\\\\\\\\\\\"\");\r\n //s = s.replaceAll(\"([^\\\\\\\\])\\\"\", \"$1\\\\\\\\\\\"\");\r\n \r\n return (\"\\\"\" + s + \"\\\"\");\r\n }", "public static String utf8Encode(String str, String defultReturn) {\n if (!TextUtils.isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "@Test\n\tpublic void testJsonEncoding() throws IOException {\n\t\tvalidateEncodingHandling(\"UTF16BE.json\", Charsets.UTF_16BE, \"The\\uD801\\uDC37 Na\\uD834\\uDD1Em\\uD834\\uDD1Ee\\uD801\\uDC37\");\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.ISO_8859_1, \"³ for ?, ¿ for ?\");\n\t\t// Reading ISO8859-1 as UTF8 will result in mapping errors. This is expected and can't be avoided if the wrong encoding has been specified.\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.UTF_8, \"� for ?, � for ?\");\n\t}", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n\tpublic void testSpecialChars() {\n\t\tString ff = XStreamUtils.serialiseToXml(\"Form feed: \\f\");\n\t\tSystem.out.println(ff);\n\t\tObject s = XStreamUtils.serialiseFromXml(\"<S>&#xc;</S>\");\n\t\tSystem.out.println(ff);\n\t}", "@Test\n public void testClientMessageDecode() throws Exception {\n testNettyMessageClientDecoding(false, false, false);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n JSONObject.quote(\"=\\\" p^/$6Yz29)9\");\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.append(\"\\\"=\\\" p^/$6Yz29)9\\\"\", \"=\\\" p^/$6Yz29)9\");\n jSONObject0.toString(3125, 3125);\n assertEquals(1, jSONObject0.length());\n }", "@Test\n public void loadPage_EncodeRequest() throws Exception {\n final String htmlContent\n = \"<html><head><title>foo</title></head><body>\\n\"\n + \"</body></html>\";\n\n final WebClient client = getWebClient();\n\n final MockWebConnection webConnection = new MockWebConnection();\n webConnection.setDefaultResponse(htmlContent);\n client.setWebConnection(webConnection);\n\n // with query string not encoded\n HtmlPage page = client.getPage(\"http://first?a=b c&d=\\u00E9\\u00E8\");\n String expected;\n final boolean ie = getBrowserVersion().isIE();\n if (ie) {\n expected = \"?a=b%20c&d=\\u00E9\\u00E8\";\n }\n else {\n expected = \"?a=b%20c&d=%E9%E8\";\n }\n assertEquals(\"http://first/\" + expected, page.getWebResponse().getWebRequest().getUrl());\n\n // with query string already encoded\n page = client.getPage(\"http://first?a=b%20c&d=%C3%A9%C3%A8\");\n assertEquals(\"http://first/?a=b%20c&d=%C3%A9%C3%A8\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string partially encoded\n page = client.getPage(\"http://first?a=b%20c&d=e f\");\n assertEquals(\"http://first/?a=b%20c&d=e%20f\", page.getWebResponse().getWebRequest().getUrl());\n\n // with anchor\n page = client.getPage(\"http://first?a=b c#myAnchor\");\n assertEquals(\"http://first/?a=b%20c#myAnchor\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string containing encoded \"&\", \"=\", \"+\", \",\", and \"$\"\n page = client.getPage(\"http://first?a=%26%3D%20%2C%24\");\n assertEquals(\"http://first/?a=%26%3D%20%2C%24\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n }", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n String string0 = JSONObject.quote(\"=\\\" p^/$6Yz29)9\");\n assertEquals(\"\\\"=\\\\\\\" p^/$6Yz29)9\\\"\", string0);\n \n Short short0 = new Short((short)11);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"=\\\" p^/$6Yz29)9\";\n stringArray0[1] = \"\\\"=\\\" p^/$6Yz29)9\\\"\";\n stringArray0[2] = \"\\\"=\\\" p^/$6Yz29)9\\\"\";\n JSONObject jSONObject0 = new JSONObject(short0, stringArray0);\n String string1 = jSONObject0.toString(4791, 104);\n assertEquals(\"{}\", string1);\n }", "@Test\n public void shouldNotBeAbleToInputSpecialCharactersInTradeInValueField() {\n }", "public void testSimplePropFindWithNonLatinWithFakePathWS() throws Exception\n {\n testSimplePropFindWithNonLatin(getFakePathWS());\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n String string0 = JSONObject.quote(\"e(h'R;/n&72HYkju\");\n assertEquals(\"\\\"e(h'R;/n&72HYkju\\\"\", string0);\n \n Object object0 = JSONObject.NULL;\n String string1 = JSONObject.valueToString(object0);\n assertEquals(\"null\", string1);\n }", "@Override\n\t\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\t\n\t\t}", "public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }", "@Override\n\tprotected void testForOpenSingleQuotes() {\n\t}", "@Test\n\tpublic void test_ReadUtf8String() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, -107, -61, -65, 0);\n\t\tassertEquals(\"\\uaa55\\u00ff\", br.readUtf8String(0));\n\t}", "@Test\n public void testGetContent_1() throws IOException {\n System.out.println(\"getContent\");\n MockServletResponse instance = new MockServletResponse();\n instance.getWriter().write(\"ABC:ČÁŠ\");\n assertEquals(\"ABC:ČÁŠ\", instance.toString());\n }", "String remEscapes(String str){\n StringBuilder retval = new StringBuilder();\n\n // remove leading/trailing \" or '\r\n int start = 1, end = str.length() - 1;\n\n if ((str.startsWith(SQ3) && str.endsWith(SQ3)) ||\n (str.startsWith(SSQ3) && str.endsWith(SSQ3))){\n // remove leading/trailing \"\"\" or '''\r\n start = 3;\n end = str.length() - 3;\n }\n\n for (int i = start; i < end; i++) {\n\n if (str.charAt(i) == '\\\\' && i+1 < str.length()){\n i += 1;\n switch (str.charAt(i)){\n\n case 'b':\n retval.append('\\b');\n continue;\n case 't':\n retval.append('\\t');\n continue;\n case 'n':\n retval.append('\\n');\n continue;\n case 'f':\n retval.append('\\f');\n continue;\n case 'r':\n retval.append('\\r');\n continue;\n case '\"':\n retval.append('\\\"');\n continue;\n case '\\'':\n retval.append('\\'');\n continue;\n case '\\\\':\n retval.append('\\\\');\n continue;\n }\n\n }\n else {\n retval.append(str.charAt(i));\n }\n }\n\n return retval.toString();\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "@Override\n\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\n\t}", "@Order(1)\n\t\t@ParameterizedTest\n\t\t@ValueSource(strings = { \"\", \"!\\\\#$%&'()*+,-./\", \"∀∁∂∃∄∅∆∇∈∉∊∋∌∍∎∏∐∑\", \"ĀāĂ㥹\" })\n\t\tpublic void sendMessageWithSpecialContent(String content) throws IOException, ParseException {\n\t\t\t\n\t\t\t\n\t\t\tArrayList<String> userArray = new ArrayList<String>(userMap.values());\n\n\t\t\tboolean result = Requests.createMessageBoolReturn(JSONUtils.createMessageObject(\n\t\t\t\t\t\t\t\t\t\tuserArray.get(0), userArray.get(1), content));\n\t\t\tassertTrue(result);\n\t\t}", "@Test\n\tpublic void test_ReadNextUtf8String() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, -107, -61, -65, 0, -22, -87, -107, 0);\n\t\tassertEquals(\"\\uaa55\\u00ff\", br.readNextUtf8String());\n\t\tassertEquals(\"\\uaa55\", br.readNextUtf8String());\n\t}", "public static void main(String[] args) throws UnsupportedEncodingException {\n\t\tString rsp = createSocketClient(\"127.0.0.1\", 6666,\n\t\t\t\t\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?> <Request> <Head> <TxCode>100501</TxCode><TransSerialNumber>3135910010010501012099090900000001</TransSerialNumber> </Head> <Body> <ListSource>200501</ListSource> <DataType>AccountNumber</DataType> <OrganizationID>0000</OrganizationID> <Data>701000108903574</Data> <AccountName>detectName</AccountName> </Body> </Request>\",\n\t\t\t\t\"UTF-8\", \"UTF-8\");\n\t\tSystem.out.println(rsp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setCharacterEncoding(\"UTF-8\");\n checkRequest(\"command\", request, response);\n }", "public EncodeAndDecodeStrings() {}", "public void testSetEncoding_Normal() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n\n byte[] bytes = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n assertTrue(Arrays.equals(bytes, aos.toByteArray()));\n }", "@Test\n public void testAtomString_7() {\n LOGGER.info(\"testAtomString_7\");\n final String s = \"Hello\";\n final byte[] b = s.getBytes(US_ASCII);\n AtomString atomString1 = new AtomString(b);\n AtomString atomString2 = new AtomString(s);\n assertEquals(atomString1, atomString2);\n }", "@Test\n public void testEncoding() throws URISyntaxException, MalformedURLException, UnsupportedEncodingException {\n String encoded = URLEncoder.encode(\"*,\", \"UTF-8\");\n\n //legal to use * and ,\n URI uri = new URI(\"http://localhost/ehcache/sampleCache1/*,\");\n URI url2 = uri.resolve(\"http://localhost/ehcache/sampleCache1/*,\");\n\n }", "static JsonResource forString( String contents ) {\n return new JsonResource() {\n @Override\n public <T> T readFrom( ReadMethod<T> consumer ) throws IOException {\n try ( ByteArrayInputStream stream = new ByteArrayInputStream(contents.getBytes(Json.getDefaultConfig().getCharset())) ) {\n return consumer.read(stream);\n }\n }\n };\n }", "@Override\n public void setCharacterEncoding(String arg0) {\n\n }", "protected String getUTF8Str(String str) throws UnsupportedEncodingException {\n return new String(str.getBytes(\"iso-8859-1\"), \"utf-8\");\r\n }", "public FakeStandardOutput() throws UnsupportedEncodingException {\r\n super(new StringOutputStream(), true, \"UTF8\");\r\n innerStream = (StringOutputStream) super.out;\r\n }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n String string0 = JSONObject.quote(\"=H ^/$6U29)n\");\n assertEquals(\"\\\"=H ^/$6U29)n\\\"\", string0);\n \n JSONObject jSONObject0 = new JSONObject();\n boolean boolean0 = jSONObject0.optBoolean(\"\\\"=H ^/$6U29)n\\\"\", true);\n assertTrue(boolean0);\n \n String string1 = jSONObject0.toString(8192, 91);\n assertEquals(\"{}\", string1);\n }", "@Test\n\t public void teststringAPI_success() {\n\t\tString testData = \"My data is right\";\n\t\tchar charData='a';\n\t\tString expected = \"My dt is right\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tSystem.out.println(actualStr);\n\t\tassertEquals(\"Got Expected Result\", expected, actualStr);\n\t }", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "private String literal(String str) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"'\");\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\'':\n buffer.append(\"''\");\n break;\n default:\n buffer.append(str.charAt(i));\n break;\n }\n }\n buffer.append(\"'\");\n return buffer.toString();\n }", "protected String add_escapes(String str) {\n StringBuffer retval = new StringBuffer();\n char ch;\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case 0:\n continue;\n case '\\b':\n retval.append(\"\\\\b\");\n continue;\n case '\\t':\n retval.append(\"\\\\t\");\n continue;\n case '\\n':\n retval.append(\"\\\\n\");\n continue;\n case '\\f':\n retval.append(\"\\\\f\");\n continue;\n case '\\r':\n retval.append(\"\\\\r\");\n continue;\n case '\\\"':\n retval.append(\"\\\\\\\"\");\n continue;\n case '\\'':\n retval.append(\"\\\\\\'\");\n continue;\n case '\\\\':\n retval.append(\"\\\\\\\\\");\n continue;\n default:\n if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {\n String s = \"0000\" + Integer.toString(ch, 16);\n retval.append(\"\\\\u\" + s.substring(s.length() - 4, s.length()));\n } else {\n retval.append(ch);\n }\n continue;\n }\n }\n return retval.toString();\n }", "private void serializeString(final String string, final StringBuffer buffer)\n {\n String decoded = Unserializer.decode(string, charset);\n\n buffer.append(\"s:\");\n buffer.append(decoded.length());\n buffer.append(\":\\\"\");\n buffer.append(string);\n buffer.append(\"\\\";\");\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n String string0 = SQLUtil.normalize(\"S\\\"oRi-d%o\", false);\n assertEquals(\"S \\\"oRi-d%o\\\"\", string0);\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n String string0 = JSONObject.quote(\"=H ^/$6YUz29)n\");\n JSONObject jSONObject0 = new JSONObject();\n String string1 = JSONObject.valueToString(jSONObject0);\n assertFalse(string1.equals((Object)string0));\n }", "@Test\n\t@Ignore\n\tpublic void testResponse() throws UnsupportedEncodingException {\n\t\tws = resource().path(\"omxdata\");\n\t\tClientResponse response = ws.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);\n\t\tassertEquals(200, response.getStatus());\n\t\tSystem.out.println(response.getStatus());\n\t}", "public String c(String str) {\n String str2;\n String str3 = null;\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n String host = Uri.parse(str).getHost();\n String aBTestValue = TUnionTradeSDK.getInstance().getABTestService().getABTestValue(\"config\");\n if (!TextUtils.isEmpty(aBTestValue)) {\n String optString = new JSONObject(aBTestValue).optString(\"domain\");\n TULog.d(\"abTestRequestUrl, url: \" + str + \" host: \" + host + \" domains: \" + optString, new Object[0]);\n if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(optString)) {\n JSONArray jSONArray = new JSONArray(optString);\n if (jSONArray.length() > 0) {\n int length = jSONArray.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (host.contains(jSONArray.getString(i))) {\n String encode = URLEncoder.encode(str, \"utf-8\");\n try {\n TULog.d(\"abTestRequestUrl, loginJumpUrl :\" + str2, new Object[0]);\n } catch (Exception unused) {\n }\n str3 = str2;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n } catch (Exception unused2) {\n }\n return str3;\n }", "@Test\n void shouldGenerateTheFixMessage()\n {\n assertThat(\n new String(asciiFixBody(\"FIX.4.2\", \"35=5^49=SellSide^56=BuySide^34=3^52=20190606-09:25:34.329^58=Logout acknowledgement^\")))\n .isEqualTo(\"8=FIX.4.2\\u00019=84\\u000135=5\\u000149=SellSide\\u000156=BuySide\\u000134=3\\u000152=20190606-09:25:34.329\\u000158=Logout acknowledgement\\u000110=079\\u0001\");\n }", "@Test\n public void testBranchNameUriEncoding () throws Exception {\n // branch with spaces in the names can be used\n assertTrue(api.checkPathExists(\"name with spaces\", \"Jenkinsfile\"));\n // branch other characters in the name can be used\n assertTrue(api.checkPathExists(\"~`!@#$%^&*()_+=[]{}\\\\|;\\\"<>,./\\\\?a\", \"Jenkinsfile\"));\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n JSONObject.quote(\"e(h'R;/n&72HYkju\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"W|u`$\\\"F}/\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of W|u`$\\\"F}/\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Override\r\n\tprotected ActualizarCompromisoResponse responseText(String json) {\n\t\tActualizarCompromisoResponse response = JSONHelper.desSerializar(json, ActualizarCompromisoResponse.class);\r\n\t\treturn response;\r\n\t}", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "public interface ConstString\n{\n\tString STRING_ENCODING_UTF8 = \"UTF-8\";\n\tString APPLICATION_XML = \"application/xml\";\n\tString APPLICATION_JSON = \"application/json\";\n\tString APP_JSON_UTF_8 = \"application/json;charset=UTF-8\";\n\tString APP_XML_UTF_8 = \"application/xml;charset=UTF-8\";\n}", "public static String maskQuoteAndBackslash(String s)\t{\n\t\tStringBuffer sb = new StringBuffer(s.length());\n\t\tfor (int i = 0; i < s.length(); i++)\t{\n\t\t\tchar c = s.charAt(i);\n\t\t\tswitch (c)\t{\n\t\t\t\tcase '\"':\n\t\t\t\tcase '\\\\':\n\t\t\t\t\tsb.append('\\\\');\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.append(c);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private void testString() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tmessage.setPayload(\"Gimme a break, man!\");\n\t\tsend(message);\n\t}", "public static String getUTF8XMLString(String xml) {\r\n\t\tString xmlUTF8 = \"\";\r\n\t\ttry {\r\n\t\t\txmlUTF8 = URLEncoder.encode(xml, \"utf-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn xmlUTF8;\r\n\t}", "private static String cleanServerAddress(String dirtyServerAddress){\n\t\tif (dirtyServerAddress.contains(\":\")){\n\t\t\tdirtyServerAddress = dirtyServerAddress.substring(0, dirtyServerAddress.indexOf(':'));\n\t\t}\n\t\tif (dirtyServerAddress.contains(\"/\")){\n\t\t\tdirtyServerAddress = dirtyServerAddress.substring(0, dirtyServerAddress.indexOf('/'));\n\t\t}\n\t\treturn(dirtyServerAddress);\n\t}", "@Test\n public void testPropertiesFactoryBean() {\n assertEquals(\"texte accentu\\u00e9\", this.prop1);\n }", "public static String utf8strToHexStr_Slash_U(String multlangStr) throws Exception {\n\t\tProperties profile = new Properties();\n\t\tint strLen = multlangStr.length();\n\t\tString resultStr = \"\";\n\t\tfor (int i= 0; i< strLen ; i++) {\n\t\t\tint intChar = multlangStr.codePointAt(i);\n\t\t\tString strChar = \"\\\\u\" + Integer.toHexString(intChar) ;\n\t\t\tresultStr = resultStr + strChar;\n\t\t}\n\t\treturn resultStr;\n\t}", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n String string0 = JSONObject.quote(\"f+\\n\");\n assertEquals(\"\\\"f+\\\\n\\\"\", string0);\n \n JSONObject jSONObject0 = new JSONObject();\n JSONArray jSONArray0 = jSONObject0.names();\n assertNull(jSONArray0);\n \n String string1 = JSONObject.valueToString(jSONObject0, 1566, 1566);\n assertEquals(\"{}\", string1);\n }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n String string0 = SQLUtil.normalize(\"'\", false);\n assertEquals(\"''\", string0);\n }", "@Deprecated\r\n\tpublic static String addSlashesString(String str) {\r\n\t\tif (str == null)\r\n\t\t\treturn str;\r\n\r\n\t\tString newStr = \"\";\r\n\t\tfor (int i = 0; i < str.length(); ++i) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tswitch (c) {\r\n\t\t\tcase '\\n':\r\n\t\t\t\tnewStr += \"\\\\n\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\r':\r\n\t\t\t\tnewStr += \"\\\\r\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\t':\r\n\t\t\t\tnewStr += \"\\\\t\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\\\':\r\n\t\t\t\tnewStr += \"\\\\\\\\\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tnewStr += c;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newStr;\r\n\t}", "private static String getResponseString(URLConnection conn) throws IOException {\n\t\tReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int c; (c = in.read()) >= 0; )\n\t\t\tsb.append((char) c);\n\t\treturn sb.toString();\n\t}", "private String fixSlashes(String str) {\n\t\tstr = str.replace('\\\\', '/');\r\n\t\t// compress multiples into singles;\r\n\t\t// do in 2 steps with dummy string\r\n\t\t// to avoid infinte loop\r\n\t\tstr = replaceString(str, \"//\", \"_____\");\r\n\t\tstr = replaceString(str, \"_____\", \"/\");\r\n\t\treturn str;\r\n\t}", "@Override\n\tpublic String echo(String s) throws RemoteException {\n\t\tSystem.out.println(\"Replied to some client saying ’\" + s + \"’\");\n\t\treturn s;\n\t}", "private static boolean needSingleQuotation(char paramChar)\n/* */ {\n/* 2498 */ return ((paramChar >= '\\t') && (paramChar <= '\\r')) || ((paramChar >= ' ') && (paramChar <= '/')) || ((paramChar >= ':') && (paramChar <= '@')) || ((paramChar >= '[') && (paramChar <= '`')) || ((paramChar >= '{') && (paramChar <= '~'));\n/* */ }", "@Test\n\t public void teststringAPI_fail() {\n\t\tString testData = \"Caps is not considered the same\";\n\t\tchar charData='c';\n\t\tString expected = \"aps is not onsidered the same\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr);\n\t }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n NetworkHandling.sendDataOnTcp((EvoSuiteLocalAddress) null, (byte[]) null);\n String string0 = SQLUtil.normalize(\" Y*-X>Nz.q@~K^o8Z]v\", false);\n assertEquals(\"Y * - X > Nz.q @ ~ K ^ o8Z ] v\", string0);\n \n boolean boolean0 = SQLUtil.isQuery(\"fwX.WrSyJ>:+F-&9\");\n assertFalse(boolean0);\n }", "public static String getUTF8String(String xml) {\n // A StringBuffer Object\n StringBuffer sb = new StringBuffer();\n sb.append(xml);\n String str = \"\";\n String strUTF8=\"\";\n try {\n str = new String(sb.toString().getBytes(\"utf-8\"));\n strUTF8 = URLEncoder.encode(str, \"utf-8\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // return to String Formed\n return strUTF8;\n }", "@Test\n public void testParseOneLine() {\n byte[] byteString = {'h','e','l','l','o',' ','t','h','e','r','e','\\r','\\n'};\n socket.readBuffer.put(byteString);\n assertEquals('h',socket.readBuffer.get(0));\n\n TelnetMessage msg = socket.parse(byteString.length);\n assertTrue(msg != null);\n assertTrue(\"hello there\".equals(msg.text));\n }", "@Test\n public void testStringLiteralEscapedTick() throws Exception {\n String sql = \"SELECT 'O''Leary' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"O'Leary\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "private String escapeName(String name) {\n return (name != null && name.indexOf('\"') > 0) ?\n name.replaceAll(\"\\\"\", \"\\\\\\\\\\\"\") : name;\n }", "private String servetransform1864(String server) throws InvalidServerURLException {\n\t\tMatcher m = serverPattern.matcher(server);\n\t\tif (!m.matches()) {\n\t\t\tthrow new InvalidServerURLException();\n\t\t}\n\n\t\tString protocol = m.group(1);\n\t\tif (protocol == null) {\n\t\t\tprotocol = \"https://\";\n\t\t}\n\t\tString serverName = m.group(2);\n\t\tString port = m.group(3);\n\t\tif (port == null) {\n\t\t\tport = \":\" + AppSettings.DEFAULT_PORT;\n\t\t}\n\n\t\tString context = m.group(5);\n\t\tif (context == null) {\n\t\t\tcontext = AppSettings.DEFAULT_CONTEXT;\n\t\t}\n\n\t\treturn protocol + serverName + port + \"/\" + context;\n\t}", "private static String escapeJavaString(String input)\n {\n int len = input.length();\n // assume (for performance, not for correctness) that string will not expand by more than 10 chars\n StringBuilder out = new StringBuilder(len + 10);\n for (int i = 0; i < len; i++) {\n char c = input.charAt(i);\n if (c >= 32 && c <= 0x7f) {\n if (c == '\"') {\n out.append('\\\\');\n out.append('\"');\n } else if (c == '\\\\') {\n out.append('\\\\');\n out.append('\\\\');\n } else {\n out.append(c);\n }\n } else {\n out.append('\\\\');\n out.append('u');\n // one liner hack to have the hex string of length exactly 4\n out.append(Integer.toHexString(c | 0x10000).substring(1));\n }\n }\n return out.toString();\n }", "private String escapeValue(String value) {\n Matcher match = escapePattern.matcher(value);\n String ret = match.replaceAll(\"\\\\\\\\\\\\\\\\\");\n return ret.replace(\"\\\"\", \"\\\\\\\"\").replace(\"\\n\", \" \").replace(\"\\t\", \" \");\n }", "protected static void writeQuotedStringValue(ByteArrayOutputStream out, byte[] buf) {\n int len = buf.length;\n byte ch;\n for (int i = 0; i < len; i++) {\n ch = buf[i];\n if (needEscape((char) ch)) {\n out.write('\\\\');\n }\n out.write(ch);\n }\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public String sesameClient (String target) {\n\tString result = null;\n\n try {\n\t URL http = new URL(baseURL + target);\n\t InputStream in = http.openStream();\n\t StringBuffer out = new StringBuffer();\n\t byte[] b = new byte[4096];\n\n\t for (int n; (n = in.read(b)) != -1; )\n\t out.append(new String(b, 0, n));\n\n\t result = out.toString();\n\n } catch (Exception e ) {\n\t System.out.println(\"Sesame client : \" + e);\n\t}\n\n\treturn (result);\n }" ]
[ "0.5741775", "0.5737021", "0.5533718", "0.5533004", "0.54587173", "0.54500985", "0.54494214", "0.5426125", "0.5419492", "0.5395067", "0.5337351", "0.5325896", "0.5266869", "0.5252074", "0.52517164", "0.52381784", "0.52205855", "0.5176668", "0.5173867", "0.51653093", "0.51424944", "0.514178", "0.5138271", "0.511877", "0.5114525", "0.5093377", "0.5082373", "0.50647295", "0.5062025", "0.50508326", "0.5031242", "0.50196004", "0.50076383", "0.5001733", "0.4998077", "0.49966678", "0.4976471", "0.49714932", "0.49571764", "0.49553022", "0.49443498", "0.49352032", "0.4929534", "0.49271426", "0.49205402", "0.49123496", "0.49078134", "0.49075732", "0.4906688", "0.48945433", "0.48895663", "0.4876654", "0.48759398", "0.48753077", "0.48670352", "0.4857043", "0.4847362", "0.48449874", "0.4841786", "0.48345006", "0.48318416", "0.48255682", "0.48243964", "0.4823464", "0.48234606", "0.4821", "0.48180372", "0.48082927", "0.47991496", "0.47960725", "0.47934347", "0.4780588", "0.4779745", "0.47729853", "0.47598794", "0.4757171", "0.47546685", "0.47523394", "0.4750222", "0.47480273", "0.47344148", "0.47256476", "0.47241944", "0.47209674", "0.47173724", "0.47129208", "0.47128332", "0.47114944", "0.47098583", "0.47093216", "0.47085127", "0.47048065", "0.47017562", "0.47009918", "0.469267", "0.46902192", "0.46898118", "0.468966", "0.46891797", "0.46885368", "0.46841145" ]
0.0
-1
endregion region Constructors If no pronoun is specified, it is implied the change applies to all subjects (excluding vosotros, nosotros in present)
StemChange(String _old, String _new) { this(_old, _new, TenseType.PRESENT, (Pronoun[]) null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Topic( String title )\n {\n activation = 0;\n label = title;\n associations = new String[100];\n numAssocs = 0;\n response1 = \"\";\n response2 = \"\";\n response3 = \"\";\n probability1 = -1;\n probability2 = -1;\n probability3 = -1;\n generator = new Random();\n }", "public Subject() {\n\t}", "public SubjectClass() {\n }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "public PennCnvSeq() {\n }", "private SubjectManagement() {\n\n\t}", "PhrasesIdentification() {\n }", "protected Sentence() {/* intentionally empty block */}", "public Normal(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }", "public Phonetics(String filename) {\n\t\tgetFilenames(filename);\n\t\tgetNames();\n\t}", "public TranscribedNote()\r\n {\r\n\r\n }", "public ComparableSubject(String uri) {\n\t\t\tthis.uri = uri;\n\t\t\tmapProperties = new HashMap<String, String>();\n\t\t}", "public CMN() {\n\t}", "public TutorIndustrial() {}", "public MyNLP()\n\t{\n\t\t//create StanfordNLP\n\t\tsnlp = new StanfordNLP();\n\t\t//create Recognizer\n\t\trec = new MyRecognizer();\n\t\t//build recognizers\n\t\trec.build();\n\t\t//create SentimentalAnalysis\n\t\tsa = new SentimentalAnalysis();\n\t}", "public void createNoSubject() {\n\n }", "private Notes() {}", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "public Pam() { //you dont need anything in this bc its only relvent for the class Alignment \n\n }", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Terms() {}", "public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}", "public InSentencePronounSieve(JCas jCas, List<Cluster> clusters, List<Mention> mentions) {\n super(jCas, clusters, mentions);\n }", "public Science(String name, String publisher) // a constructor, has name, publisher\r\n\t{\r\n\t\tsuper(name); // calls parent constructor\r\n\t\tthis.publisher = publisher; // stores publisher value in science publisher member\r\n\t}", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "public SubjectPublicKeyInfo (\n AlgorithmIdentifier algorithm_,\n Asn1BitString subjectPublicKey_\n ) {\n super();\n algorithm = algorithm_;\n subjectPublicKey = subjectPublicKey_;\n }", "public PSRelation()\n {\n }", "public TextPhraseBase(org.semanticwb.platform.SemanticObject base)\n {\n super(base);\n }", "public Publication(String title, int year)\n {\n // this is the constructor that iniates the variables \n name = title;\n yr = year;\n }", "private TypicalPersons() {}", "private TypicalPersons() {}", "public Notes() {\n initComponents();\n subjectText = new String ();\n noteText = new String();\n count = 0;\n ArrayMath = new Array[100];\n \n \n }", "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "public Subject(String code, String name, int semester, int yearOfStuding, Professor professor,\n\t\t\tArrayList<Student> students) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = students;\n\t}", "public void setSubject (String s) {\n subject = s;\n }", "public Poem(){}", "public void setSubject(Subject subject);", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public MessageTran() {\n\t}", "public Person(String vorname, String nachname) {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "public TPrizeExample() {\r\n\t\toredCriteria = new ArrayList();\r\n\t}", "public SubjectareasRecord() {\n\t\tsuper(Subjectareas.SUBJECTAREAS);\n\t}", "public YonetimliNesne() {\n }", "public AssignedAuthor() {\n \tthis.classCode = \"ASSIGNED\";\n }", "private Phrase(boolean dummy) {\n }", "public Livro(String nn, String au, int qtd){\n super(nn, au, qtd, true, true);\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }", "public UnitphrasesRecord() {\n super(Unitphrases.UNITPHRASES);\n }", "public Observant() {\n super(ID, 1, CardType.SKILL, CardRarity.UNCOMMON, CardTarget.SELF);\n }", "public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Potencial() {\r\n }", "public Sentence(){\n\t\tsentence = new ArrayList<TWord>();\n\t}", "public Subject(String code, String name, int semester, int yearOfStuding, Professor professor) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = new ArrayList<Student>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 2595655369364615933L;\n\n\t\t\t\n\t\t};\n\t}", "public MessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Subject(int id, String name){\n this.name = name;\n this.id = id;\n }", "public Promo(String n){\nnom = n;\n}", "public CyanSus() {\n\n }", "@Override\n public boolean isSubject() {\n return false;\n }", "public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}", "public contrustor(int ID , String sname) {\r\n\t\tsubid = ID;\r\n\t\tsSubjectName = sname;\r\n\t}", "public TopicObject() {\n super();\n }", "public DefaultAuthor() {\n\t\ttopic = null;\n\t}", "public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Punter(String name)\n {\n super(name);\n }", "public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}", "public void setSubject(String newValue);", "private TMCourse() {\n\t}", "public NameVerificationSlip()\n {\n this(null, null);\n }", "public Student(Name name, Phone phone, Email email, Address address, Set<Tag> tags, List<Subject> subjects) {\n super(name, phone, email, address, tags);\n subjectList = new ArrayList<>(subjects);\n }", "public Mannschaft() {\n }", "public Question(String firstPrompt) {\r\n this(); //Calling method (defualt constuctor) that takes no parameters\r\n this.firstPrompt = firstPrompt;\r\n //or public Question(String p) and firstPrompt = p\r\n }", "public VueNbPaires(String text, int center) {\n super(text, center);\n }", "public Note() {\n\t\tsuper();\n\t}", "public Person(String fn, String ln, Set<String> pns) {\n\t\t\tthis.firstName = fn;\n\t\t\tthis.lastName = ln;\n\t\t\tCollection<E> oldSet = pns;\n\t\t\tTreeSet<E> tempPhone = new TreeSet<E>(pns);\n\t\t\tthis.phoneNumbers = tempPhone;\n\t\t}", "public Student(int userPID)\n\t{\n\t\tPID = userPID;\n\t\tfirst = \"Tyler\";\n\t\tlast = \"Hoyt\";\n\t\tmajor = \"Computer Science\";\n\t\tminor = \"\"; //Wont let me set it to null????????????????????????????????????????????\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public CCPMention(JCas jcas) {\n super(jcas);\n readObject();\n }", "public SimpleCitizen(){\n super();\n information = \"let's help to find mafias and take them out\";\n }", "public SysSkillConferpo()\n {\n }", "public Cannon(Space s) {\r\n\t\tthis(0,s);\r\n\t}", "public Chapter(){\r\n title = \"\";\r\n body = \"\";\r\n }", "public Emphasis() {\n super(null);\n }", "public Subject(UUID id, String name, String description, String slug) {\n super(id);\n this.name = name;\n this.slug = slug;\n this.description = description;\n this.instructors = new InstructorProxyList(id);\n this.students = new StudentProxyList(id);\n this.exams = new ExamProxyList(id);\n }", "public Individual()\r\n\t{\r\n\t}", "private Paragraph() {\n super(IParagraph.TYPE_ID);\n }", "public Synopsis()\n\t{\n\n\t}", "private Tweet() {\n this(\"\", -1, \"\", false);\n }", "public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}", "public ConceptAtom(IRI iri)\n {\n super(iri);\n this.strVariable = \"\"; \n }", "private SpreedWord() {\n\n }", "public Chat_1(String toaNimi) {\n\n nimi = toaNimi;\n\n }", "public Plato(){\n\t\t\n\t}", "public AssistantProfessor(){\n super();\n m_yearsUntilTenure = -1;\n }", "public Professor()\n\t{\n\t\t//stuff\n\t}", "public Competence() {\r\n\t\tsuper();\r\n\t}", "public Phl() {\n }", "public Tigre(String pCouleur, int pPoids) {\n this.couleur = pCouleur;\n this.poids = pPoids;\n }", "private ComporMessageFormat() {\r\n }" ]
[ "0.64905393", "0.6391066", "0.5937908", "0.58613604", "0.5847779", "0.57527316", "0.57415926", "0.5737275", "0.5728635", "0.571746", "0.5670859", "0.5639272", "0.56170976", "0.558149", "0.55738115", "0.5532422", "0.5521938", "0.55072004", "0.5497206", "0.5495631", "0.5472958", "0.54467374", "0.54309756", "0.54297173", "0.541266", "0.54008716", "0.54006374", "0.5398346", "0.53899556", "0.53670484", "0.53670484", "0.53660893", "0.5353895", "0.5341797", "0.5335827", "0.5327087", "0.5323399", "0.53213817", "0.5319613", "0.53194976", "0.53170097", "0.5315165", "0.53117794", "0.5308672", "0.53071755", "0.5304918", "0.5304574", "0.52995807", "0.52926415", "0.529135", "0.5286833", "0.52821153", "0.5278705", "0.52743053", "0.5272526", "0.5263357", "0.52604055", "0.52599216", "0.52532417", "0.5252206", "0.52512723", "0.5248231", "0.52478683", "0.5245782", "0.5232288", "0.52288", "0.522871", "0.52284753", "0.52160317", "0.5212384", "0.5210153", "0.5204243", "0.5203519", "0.5200879", "0.51948506", "0.5191378", "0.51907957", "0.518953", "0.518708", "0.5186608", "0.51779383", "0.5177365", "0.5168177", "0.5167429", "0.5167261", "0.51656264", "0.51601666", "0.51590604", "0.51578", "0.5154234", "0.51541424", "0.51533246", "0.51506746", "0.5146941", "0.514635", "0.5142747", "0.5142233", "0.5139628", "0.5139371", "0.51381195", "0.5137784" ]
0.0
-1
region Overrides Doesn't compare pronouns
@Override public boolean equals(Object obj) { if (obj.getClass().equals(getClass())) { StemChange sc = (StemChange) obj; return _new.equals(sc._new) && _old.equals(sc._old); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isPronoun(AnalyzedTokenReadings[] tokens, int n) {\n return (tokens[n].getToken().matches(\"(d(e[mnr]|ie|as|e([nr]|ss)en)|welche[mrs]?|wessen|was)\")\n && !tokens[n - 1].getToken().equals(\"sowie\"));\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "private boolean isNoun(int i)\n\t{\n\t\tif (text.get(i).length() > 1) // Ensures word is more than one character\n\t\t{\n\t\t\tString prior = text.get(i-1);\n\t\t\tif (prior.charAt(0) == '\\\"' || prior.charAt(0) == '-' || prior.charAt(0) == '“') // Checks if \" or - is the char next to the word\n\t\t\t{\n\t\t\t\tif (text.get(i-2).charAt(0) == 10) // Checks if the char 2 spaces before the word is a newline character\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (text.get(i-2).length() == 1 && text.get(i-3).length() == 1) // Checks if there is a one letter word before the space before the word\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (text.get(i-3).charAt(0) == 13)\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\tif (prior.charAt(0) == ' ' && text.get(i-2).length() == 1 && text.get(i-2).charAt(0) != 'I') // Checks that word prior to word is not a type of full stop\n\t\t{\n\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\treturn false;\n\t\t}\n\t\tif (prior.charAt(0) == 10) //If char before word is a newline character then it is saved for another iteration\n\t\t{\n\t\t\tfullStops.add(i);\n\t\t\treturn false;\n\t\t}\n\n\t\tif (text.get(i).charAt(0) > 64 && text.get(i).charAt(0) < 91) // If starting character is uppercase then it is assumed to be a noun\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public boolean hasFirstPronouns(Sentence sent) {\n List<String> firsPronouns = new ArrayList<String>(Arrays.asList(\"i\", \"my\", \"we\"));\n for (Token token : selectCovered(Token.class, sent)) {\n if (token.getPosValue().toLowerCase().startsWith(\"prp\")\n && firsPronouns.contains(token.getCoveredText().toLowerCase())) {\n return true;\n }\n }\n return false;\n }", "boolean checkPronoun(String headWord, Token token){\n\t\tif (Pronoun.isSomePronoun(headWord)){\n\t\t\tPronoun pn = Pronoun.valueOrNull(headWord);\n\t\t\tif (pn==null)\n\t\t\t\treturn false;\n\t\t\tif (pn.speaker == Pronoun.Speaker.FIRST_PERSON || pn.speaker == Pronoun.Speaker.SECOND_PERSON)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t} \n\t\treturn false;\n\t}", "public static boolean validPronoun (Mention m, Pronoun p){\n\t\tif (p==null || m ==null)\n\t\t\treturn false;\n\t\t//System.out.printf(\"Checkeing pronoun %s\\n\",p.toString());\n\t\t//System.out.printf(\"Checking head word %s \\n\",m.headWord());\n\t\t//See if mention is a pronoun\n\t\tPronoun p2 = Pronoun.valueOrNull(m.headWord());\n\t\tif (p2!=null){\n\t\t\t//Check plurality\n\t\t\tif (!xor(p.plural,p2.plural)){\n\t\t\t\t//System.out.println(\"Plural failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//Check gender\n\t\t\tif (!p.gender.isCompatible(p2.gender)){\n\t\t\t\t//System.out.println(\"gender failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//Check speaker\n\t\t\tif (!p.speaker.equals(p2.speaker)){\n\t\t\t\t//System.out.println(\"speaker failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t//Check plurality\n\t\t\tif (m.headToken().isNoun() && !xor(p.plural,m.headToken().isPluralNoun())){\n\t\t\t\t//System.out.println(\"Plural failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (Name.isName(m.headWord())) {\n\t\t\t\tif(!p.gender.isCompatible(Name.get(m.headWord()).gender))\n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"gender failed\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isNoun (String word){\n for(int i = 0; i< SynSets.length; i++){\n if(SynSets[0][1].contains(\" \"+word+\" \")) return true;\n }\n return false;\n }", "private boolean isNoun(String string){\n \t\tif (noun.contains(string))\n \t\t\treturn true;\n \t\treturn false;\n \t}", "public static void main(String[] args) {\n\t\tString Frase1 = (\"Estic fent un String\");\r\n\t\tString Frase2 = (\"Aixo es un String\");\r\n\t\t\r\n\t\tint comparacio = Frase1.compareToIgnoreCase(Frase2);\r\n\t\tif(comparacio < 0) {\r\n\t\t\tSystem.out.println(\"Fras1 es primera per ordre alfabetic \" + Frase1);\r\n\t\t}\r\n\t\telse if (comparacio > 0) {\r\n\t\tSystem.out.println(\"Frase2 es primera per ordre alfabetic: \" + Frase2);\t\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Les dues paraules son iguals\");\r\n\t\t}\r\n\t}", "public static Annotation ruleResolvePronoun(Annotation[] basenps, int num, Document doc)\r\n{\n Annotation np2 = basenps[num];\r\n // Get some properties of the np\r\n FeatureUtils.PRTypeEnum type2 = Pronoun.getValue(np2, doc);\r\n String str2 = doc.getAnnotString(np2);\r\n boolean reflexive = FeatureUtils.isReflexive(str2);\r\n // Get the possible antecedents\r\n ArrayList<Annotation> antes = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums = new ArrayList<Integer>();\r\n if (DEBUG) {\r\n System.err.println(\"Pronoun: \" + doc.getAnnotText(np2));\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.FIRST) {\r\n if (NumberEnum.SINGLE.equals(Number.getValue(np2, doc)))\r\n return ruleResolvePronounI(np2, basenps, num, doc);\r\n else\r\n return ruleResolvePronounWe(np2, basenps, num, doc);\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.SECOND)\r\n return ruleResolvePronounYou(np2, basenps, num, doc);\r\n else {\r\n int sentnum = 0;\r\n for (int i = num - 1; i >= 0 && sentnum <= 3; i--) {\r\n Annotation np1 = basenps[i];\r\n sentnum = sentNum(np1, np2, doc);\r\n if (DEBUG) {\r\n System.err.println(\"Possible antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n if (!isNumberIncompatible(np1, np2, doc) && !isGenderIncompatible(np1, np2, doc)\r\n && !isAnimacyIncompatible(np1, np2, doc) && isWNClassComp(np1, np2, doc) && isProComp(np1, np2, doc)\r\n && !Embedded.getValue(np1, doc) && isSyntax(np1, np2, doc)) {\r\n if (DEBUG) {\r\n System.err.println(\"Candidate antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n antes.add(0, np1);\r\n nums.add(0, i);\r\n }\r\n }\r\n }\r\n if (antes.size() == 0) return null;\r\n // Check for reflexsives\r\n if (FeatureUtils.isReflexive(doc.getAnnotText(np2))) {\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n if (antes.size() == 1) {\r\n // Rule 1: Unique in discourse\r\n if (DEBUG) {\r\n System.err.println(\"Rule 1 match!!!\");\r\n }\r\n union(nums.get(0).intValue(), num);\r\n return antes.get(0);\r\n }\r\n // Rule 2: Reflexive -- the last possible antecedent\r\n if (reflexive) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 2 match!!!\");\r\n }\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n // Rule 3: Unique current + Prior\r\n ArrayList<Annotation> antes1 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums1 = new ArrayList<Integer>();\r\n int counter = 0;\r\n for (Annotation np1 : antes) {\r\n if (sentNum(np1, np2, doc) < 2) {\r\n antes1.add(np1);\r\n nums1.add(nums.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes1.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 3 match!!!\");\r\n }\r\n union(nums1.get(0).intValue(), num);\r\n return antes1.get(0);\r\n }\r\n // Rule 4: Possesive Pro\r\n\r\n if (FeatureUtils.isPossesive(str2) && antes1.size() > 0) {\r\n Integer found = null;\r\n Annotation ant = null;\r\n boolean multiple = false;\r\n for (int i = 0; i < antes1.size() && !multiple; i++) {\r\n Annotation np1 = antes1.get(i);\r\n if (doc.getAnnotText(np1).equalsIgnoreCase(str2) && sentNum(np1, np2, doc) == 1) {\r\n if (found == null) {\r\n found = nums1.get(i);\r\n ant = antes1.get(i);\r\n }\r\n else {\r\n multiple = true;\r\n }\r\n }\r\n }\r\n if (!multiple && found != null) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 4 match!!!\");\r\n }\r\n union(found.intValue(), num);\r\n return ant;\r\n }\r\n }\r\n // Rule #5: Unique in the current sentence\r\n ArrayList<Annotation> antes2 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums2 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes1) {\r\n if (sentNum(np1, np2, doc) < 1) {\r\n antes2.add(np1);\r\n nums2.add(nums1.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes2.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 5 match!!!\");\r\n }\r\n union(nums2.get(0).intValue(), num);\r\n return antes2.get(0);\r\n }\r\n // Extra Rule: Unique in the current clause (or parent clauses\r\n AnnotationSet parse = doc.getAnnotationSet(Constants.PARSE);\r\n Annotation clause = SyntaxUtils.getClause(np2, parse);\r\n while (clause != null) {\r\n ArrayList<Annotation> antes3 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums3 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes2) {\r\n if (clause.covers(np1)) {\r\n antes3.add(np1);\r\n nums3.add(nums2.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (DEBUG) {\r\n System.err.println(antes3.size() + \" antecedents in the clause\");\r\n }\r\n if (antes3.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Clause rule match!!!\");\r\n }\r\n union(nums3.get(0).intValue(), num);\r\n return antes3.get(0);\r\n }\r\n clause = SyntaxUtils.getParentClause(clause, parse);\r\n }\r\n\r\n // Rule #6: Unique Subject\r\n\r\n // //Look for the subject in the current sentence\r\n // boolean unique = true;\r\n // Annotation subject = null;\r\n // Integer subjectNum = null;\r\n // for(int i=antes.size()-1; i>=0; i--){\r\n // Annotation np1 = antes.get(i);\r\n // if(sentNum(np1, np2, annotations, text)==0){\r\n // if(FeatureUtils.getGramRole(np1, annotations, text).equals(\"SUBJECT\")){\r\n // //&&SyntaxUtils.isMainClause(np1, parse)){\r\n // if(DEBUG)\r\n // System.err.println(\"Rule 6 match!!!\");\r\n // if(subjectNum!=null)\r\n // unique=false;\r\n // subjectNum = nums.get(i);\r\n // subject = antes.get(i);\r\n // }\r\n // }\r\n // }\r\n\r\n // if(subject!=null&&unique){\r\n // union(subjectNum.intValue(), num);\r\n // return subject;\r\n // }\r\n\r\n // Look for the subject in the previous sentence\r\n boolean unique = true;\r\n Annotation subject = null;\r\n Integer subjectNum = null;\r\n if (GramRole.getValue(np2, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np2, parse)){\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 1) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6 match!!!\");\r\n }\r\n if (subjectNum != null) {\r\n unique = false;\r\n }\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null && unique) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n subjectNum = null;\r\n subject = null;\r\n\r\n // One more Rule -- assign possessive pronouns to the last subject\r\n if (type2.equals(FeatureUtils.PRTypeEnum.POSSESSIVE)) {\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 0) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6a match!!!\");\r\n }\r\n if (subject == null) {\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n }\r\n\r\n return null;\r\n}", "private String getTitle(String s) {\n if (this.isCaseFolding) {\n s = s.toLowerCase();\n }\n\n if (this.isPunctuationHandling) {\n s = punctuationHandler(s);\n }\n\n return s;\n }", "@Override\n public String toString() {\n return super.toString() + \" --> \" + getCorrectedText();\n }", "public static void main(String[] args) {\n String s = \"MOM\";\n String reverse = \"\";\n String d = \"IMTIAZ\";\n String back = \"\";\n char[] word = s.toLowerCase().toCharArray();\n for (int i = s.length() - 1; i >= 0; i--) {\n reverse = reverse + s.charAt(i);\n for (int j = d.length() - 1; j >= 0; j--) {\n back = back + d.charAt(j);\n }\n\n }\n if (s.equals(reverse)) {\n System.out.println(s + \"--word is a palindron\");\n\n } else {\n System.out.println(s + \"--word is not a palindron\");\n }\n if (d.equals(back))\n System.out.println(d + \"--word is a palindron\");\n else\n System.out.println(d + \"--word is not a palindron\");\n\n\n\n isPalindrome(\"MADAM\");\n isPalindrome(\"IMTIAZ\");\n isPalindrome(\"AHMED\");\n isPalindrome(\"MOM\");\n }", "@Override\r\n\t\t\tpublic int compare(T o1, T o2) {\n\t\t\t\tString s1 = ((OWLProperty)o1).getIRI().getShortForm();\r\n\t\t\t\tString s2 = ((OWLProperty)o2).getIRI().getShortForm();\r\n\t\t\t\tif (s1.startsWith(\"'\")) {\r\n\t\t\t\t\ts1 = s1.substring(1, s1.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tif (s2.startsWith(\"'\")) {\r\n\t\t\t\t\ts2 = s2.substring(1, s2.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\treturn s1.compareTo(s2);\r\n\t\t\t}", "@Override\n\tpublic int compareTo(word o) {\n\t\tif(this.text.compareTo(o.text)>=0)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}", "default String getNormalizedText() {\n return meta(\"nlpcraft:nlp:normtext\");\n }", "@Override\n public String[] alternativeNames() {\n return normAlts;\n }", "boolean hasPunctuationToAppend();", "boolean hasHadithText();", "protected String computeTitle() {\r\n\t\treturn getRawTitle();\r\n\t}", "boolean isSetCapital();", "@Override\r\n\tpublic int compareTo(String o) {\n\t\treturn nomeP.compareTo(o);\r\n\t}", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "String getPunctuation();", "public String appearLike(){\n return \"Rund og helt uden kanter.\";\n }", "public int numPronouns(Sentence sent) {\n int pronouns = 0;\n for (Token token : selectCovered(Token.class, sent)) {\n if (token.getPosValue().toLowerCase().startsWith(\"pr\")) {\n ++pronouns;\n }\n }\n return pronouns;\n }", "private String checkOldTitleSyntax ( String title ) {\n\t\tString ttlstr = title;\n\t\tint pos = ttlstr.indexOf('^');\n\t\t\n\t\tif ( (ttlstr.charAt(0) == '~') && (pos > 0)) {\n\t\t\tString tmpStr = ttlstr.substring(1,ttlstr.length());\n\t\t\tpos --;\n\t\t\twhile ( pos > 0 ) {\n\t\t\t\ttmpStr = tmpStr.substring(0, pos-1) + \"~\" + tmpStr.substring(pos + 1, tmpStr.length());\n\t\t\t\tpos = tmpStr.indexOf('^');\n\t\t\t}\n\t\t\tttlstr = tmpStr;\n\t\t}\n\t\t\n\t\treturn ttlstr;\n\t}", "public boolean isNoun(String word)\n {\n if (word == null) throw new NullPointerException();\n return synsetHash.containsKey(word);\n }", "public int compare(PSRelationshipInfo o1, PSRelationshipInfo o2)\n {\n String l1 = o1.getLabel();\n String l2 = o2.getLabel();\n return l1.compareToIgnoreCase(l2);\n }", "public void getNounPhrases(Parse p) {\n if (p.getType().equals(\"NN\") || p.getType().equals(\"NNS\") || p.getType().equals(\"NNP\") \n || p.getType().equals(\"NNPS\")) {\n nounPhrases.add(p.getCoveredText()); //extracting the noun parse\n }\n \n if (p.getType().equals(\"VB\") || p.getType().equals(\"VBP\") || p.getType().equals(\"VBG\")|| \n p.getType().equals(\"VBD\") || p.getType().equals(\"VBN\")) {\n \n verbPhrases.add(p.getCoveredText()); //extracting the verb parse\n }\n \n for (Parse child : p.getChildren()) {\n getNounPhrases(child);\n }\n}", "@Override\n public String speak()\n {\n return \"Neigh\";\n }", "private float getPERScore(NameInfo name1Info, NameInfo name2Info) {\n\t\t// initials compared with full name\n\t\tString acroName1 = name1Info.getName();\n\t\tString acroName2 = name2Info.getName();\n\t\tif (acroName1.length() == acroName2.length()) { // similar names, perhaps with misspelling or apostrophe\n\t\t\tif (ed.score(acroName1, acroName2) <= 1.0f)\n\t\t\t\treturn 1.0f;\n\t\t}\n\t\tString shortName = \"\";\n\t\tif (acroName1.length() > acroName2.length()){\n\t\t\tshortName = acroMan.findAcronym(acroName1);\n\t\t\tif (shortName.equalsIgnoreCase(acroName2))\n\t\t\t\treturn 1.0f;\n\t\t} else {\n\t\t\tshortName = acroMan.findAcronym(acroName2);\n\t\t\tif (shortName.equalsIgnoreCase(acroName1))\n\t\t\t\treturn 1.0f;\n\t\t}\n\t\t\n\t\t// last name compared with full name\n\t\tString longName = \"\";\n\t\tshortName = \"\";\n\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\tlongName = name1Info.getName();\n\t\t\tshortName = name2Info.getName();\n\t\t} else {\n\t\t\tlongName = name2Info.getName();\n\t\t\tshortName = name1Info.getName();\n\t\t}\n\t\tString [] tokensLong = longName.split(\"\\\\s+\");\n\t\tfor (String word : tokensLong) {\n\t\t\tif (shortName.equalsIgnoreCase(word))\n\t\t\t\treturn 1.0f;\n\t\t}\n\t\t\n\t\t// first and last names are too similar for NameParser to distinguish\n\t\tString Name1 = name1Info.getName(), Name2 = name2Info.getName();\n\t\tString [] tokens1 = (Name1.trim()).split(\"\\\\s+\");\n\t\tString [] tokens2 = (Name2.trim()).split(\"\\\\s+\");\n\t\tif (tokens1.length == tokens2.length && tokens1.length == 2) {\n\t\t\tString [] shortened = removeSameWords(Name1, Name2);\n\t\t\tString shortName1 = shortened[0], shortName2 = shortened[1];\n\t\t\tfloat preciseScore = (float)LSHUtils.dice(shortName1, shortName2);\n\t\t\tif (preciseScore < 0.5f)\n\t\t\t\treturn 0.0f;\n\t\t\telse\n\t\t\t\treturn 1.0f;\n\t\t}\n\t\t\n\t\t// score using NameParser \n\t\tfloat maxScore = 0.0f;\n\t\tfloat maxExtraScore = 0.0f ;\n\t\tString name1Extra, name2Extra ;\n\t\tfloat perScore ;\n\n\t\tArrayList<String> candidate1 = name1Info.getCandidates();\n\t\tArrayList<String> candidate2 = name2Info.getCandidates();\n\t\tint n = candidate1.size();\n\t\tint m = candidate2.size();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString name1 = candidate1.get(i);\n\t\t\tname1Parser.parsing(name1);\n\n\t\t\tname1Extra = name1Parser.getExtraName() ;\n\t\t\tif(! name1Extra.isEmpty())\n\t\t\t\textraName1Parser.parsing(name1Extra) ;\n\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString name2 = candidate2.get(j);\n\t\t\t\tname2Parser.parsing(name2);\n\n\t\t\t\tname2Extra = name2Parser.getExtraName() ;\n\t\t\t\tif(! name2Extra.isEmpty())\n\t\t\t\t\textraName2Parser.parsing(name2Extra) ;\n\n\t\t\t\tif (name1.equals(name2))\n\t\t\t\t\tperScore = 1.0f;\n\t\t\t\telse {\n\t\t\t\t\tperScore = name1Parser.compare(name2Parser);\n\t\t\t\t\tfloat extraPerScore ;\n\t\t\t\t\tif( name1Extra.isEmpty() || name2Extra.isEmpty() )\n\t\t\t\t\t\textraPerScore = (name1Extra.isEmpty() && name2Extra.isEmpty()) ? perScore : 0.9f ;\n\t\t\t\t\telse\n\t\t\t\t\t\textraPerScore = (name1Extra.equals(name2Extra)) ? 1.0f : extraName1Parser.compare(extraName2Parser) ;\n\n\t\t\t\t\tperScore = (perScore + extraPerScore) / 2.0f ;\n\t\t\t\t}\n\t\t\t\tif (perScore > maxScore)\n\t\t\t\t\tmaxScore = perScore;\n\n\t\t\t\tif( ! name1Extra.isEmpty() ) {\n\t\t\t\t\tperScore = extraName1Parser.compare(name2Parser) ;\n\t\t\t\t\tif (perScore > maxExtraScore)\n\t\t\t\t\t\tmaxExtraScore = perScore;\n\t\t\t\t}\n\t\t\t\tif( ! name2Extra.isEmpty() ) {\n\t\t\t\t\tperScore = name1Parser.compare(extraName2Parser) ;\n\t\t\t\t\tif (perScore > maxExtraScore)\n\t\t\t\t\t\tmaxExtraScore = perScore;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (maxExtraScore > maxScore) ? maxExtraScore : maxScore ;\n\t}", "@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\r\npublic static void ruleResolvePronouns(AnnotationSet basenp, Document doc)\r\n{\n Annotation[] basenpArray = basenp.toArray();\r\n\r\n // Initialize coreference clusters\r\n int maxID = basenpArray.length;\r\n\r\n // Create an array of pointers\r\n // clust = new UnionFind(maxID);\r\n fvm = new RuleResolvers.FeatureVectorMap();\r\n ptrs = new int[maxID];\r\n clusters = new HashSet[maxID];\r\n for (int i = 0; i < clusters.length; i++) {\r\n ptrs[i] = i;\r\n HashSet<Annotation> cluster = new HashSet<Annotation>();\r\n cluster.add(basenpArray[i]);\r\n clusters[i] = cluster;\r\n }\r\n Annotation zero = new Annotation(-1, -1, -1, \"zero\");\r\n\r\n for (int i = 1; i < basenpArray.length; i++) {\r\n Annotation np2 = basenpArray[i];\r\n if (FeatureUtils.isPronoun(np2, doc)) {\r\n Annotation ant = ruleResolvePronoun(basenpArray, i, doc);\r\n if (ant != null) {\r\n np2.setProperty(Property.PRO_ANTES, ant);\r\n }\r\n else {\r\n np2.setProperty(Property.PRO_ANTES, zero);\r\n }\r\n }\r\n }\r\n}", "public void testPROPER2() throws Exception {\n\t\tObject retval = execLexer(\"PROPER\", 150, \"or\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"PROPER\", expecting, actual);\n\t}", "@Override\n\tpublic void 식사(String 메뉴) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic boolean test(String t, String u) {\n\t\t\t\t return t.equalsIgnoreCase(u);\r\n\t\t\t}", "public interface MorphemesDetector {\n\n String detectSuffix(String token);\n\n}", "public String getCorrectionWord(String misspell);", "boolean isSetCapitalInKind();", "public static void main(String[] args) {\n assertEquals(\" \", reverseWords(\" \"));\n }", "public boolean isPunctuator() /*const*/{\n\t\treturn Tkn==TipeToken.Kurungbuka || Tkn==TipeToken.Kurungtutup;\n\t}", "@Override\r\n public int compare(TextPosition pos1, TextPosition pos2)\r\n {\n if (pos1.getDir() < pos2.getDir())\r\n {\r\n return -1;\r\n }\r\n else if (pos1.getDir() > pos2.getDir())\r\n {\r\n return 1;\r\n }\r\n \r\n // get the text direction adjusted coordinates\r\n float x1 = pos1.getXDirAdj();\r\n float x2 = pos2.getXDirAdj();\r\n \r\n float pos1YBottom = pos1.getYDirAdj();\r\n float pos2YBottom = pos2.getYDirAdj();\r\n\r\n // note that the coordinates have been adjusted so 0,0 is in upper left\r\n float pos1YTop = pos1YBottom - pos1.getHeightDir();\r\n float pos2YTop = pos2YBottom - pos2.getHeightDir();\r\n\r\n float yDifference = Math.abs(pos1YBottom - pos2YBottom);\r\n\r\n // we will do a simple tolerance comparison\r\n if (yDifference < .1 ||\r\n pos2YBottom >= pos1YTop && pos2YBottom <= pos1YBottom ||\r\n pos1YBottom >= pos2YTop && pos1YBottom <= pos2YBottom)\r\n {\r\n if (x1 < x2)\r\n {\r\n return -1;\r\n }\r\n else if (x1 > x2)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n }\r\n else if (pos1YBottom < pos2YBottom)\r\n {\r\n return - 1;\r\n }\r\n else\r\n {\r\n return 1;\r\n }\r\n }", "public boolean isNoun(String word) {\n if (word == null) throw new IllegalArgumentException();\n return synsetsStrToNum.containsKey(word);\n }", "@Override\n public int compareTo(Word other){\n int value = other.Count()-this.Count();\n if (value == 0) return 1;\n return value;\n }", "@Override\n\tpublic int compare(Subject o1, Subject o2) {\n\t\tString s1 = o1.getSubtitle();\n\t\tString s2 = o2.getSubtitle();\n\t\treturn s1.compareTo(s2);\n\t}", "private boolean isAbbreviation(String word) {\n\n boolean abbr = true;\n String[] parts = word.split(\"\\\\.\");\n for (String part : parts) {\n if (part.length() > 1 || !Pattern.matches(\"[a-zA-Z]\", part)) {\n abbr = false;\n break;\n }\n }\n return abbr;\n }", "@Test\n\t\tpublic void noApplyHyp() {\n\t\t\tassertFailure(\" ;H; ;S; 1=1 |- {1}⊆S\");\n\t\t}", "public String getPositiveSuffix() {\n return positiveSuffix;\n }", "public boolean isNoun(String word)\n {\n if (word==null) throw new IllegalArgumentException();\n return h.containsKey(word);\n }", "static String correctParagraph(String paragraph) {\n\n\t\t\tString newText = paragraph.replaceAll(\"\\\\s{2,}+\", \" \");\n\n\t\t\tnewText = newText.replaceAll(\"\\\\s+,\", \",\");\n\t\t\tnewText = newText.replaceAll(\"\\\\s+\\\\.\", \".\");\n\n\n\t\t\tString firstLetter = newText.substring(0, 1).toUpperCase();\n\t\t\tnewText = firstLetter + newText.substring(1);\n\n\t\t\tString[] sentences = newText.split(\"\\\\.\");\n\t\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\t\tString temp = sentences[i].trim();\n\t\t\t\tfirstLetter = temp.substring(0, 1).toUpperCase();\n\t\t\t\tsentences[i] = firstLetter + temp.substring(1);\n\t\t\t}\n\t\t\tStringBuilder newParagraph = new StringBuilder(sentences[0]);\n\t\t\tfor(int i = 1; i < sentences.length; i++){\n\t\t\t\tnewParagraph.append(\". \").append(sentences[i]);\n\t\t\t}\n\t\t\tnewText = newParagraph.append(\".\").toString();\n\n\t\t\treturn newText;\n\t\t}", "@Override\n\tpublic int compareTo(Song s) {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.title.compareToIgnoreCase(s.title);\n\t}", "@Override\n public int compare(String o1, String o2) {\n int res = String.CASE_INSENSITIVE_ORDER.compare(o1, o2);\n if (res == 0) {\n res = o1.compareTo(o2);\n }\n return res;\n }", "public Set<String> nouns() {\n return nouns;\n }", "public boolean isNoun(String word) {\n return sNounSet.contains(word);\n }", "public void testPROPER1() throws Exception {\n\t\tObject retval = execLexer(\"PROPER\", 149, \"proper\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"PROPER\", expecting, actual);\n\t}", "public String alphabeticalTitle(String title){\n if ( title.toLowerCase().startsWith(\"the \") ) {\n \t String titlePrefix = title.substring(0, 3);\n \t String titleSuffix = title.substring(4, title.length());\n \t title = titleSuffix + \", \" + titlePrefix;\n \t }\n\t\t return title;\n\t }", "@Override\n public String toString(){\n return super.toString().substring(0,1) + super.toString().substring(1).toLowerCase();\n }", "boolean hasWord();", "public boolean qualifiesAs(PrepPhrase other) {\n\t\treturn false;\r\n\t}", "public String getScoreName() {\n return \"NetspeakSynonyms\"; // TODO: parameter\n }", "public boolean is_punctual(){\n if(this.get_punctuality() == 2){\n return true;\n } else {\n return false;\n }\n }", "public void testPROPER3() throws Exception {\n\t\tObject retval = execLexer(\"PROPER\", 151, \"per\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"PROPER\", expecting, actual);\n\t}", "public boolean isNoun(String word) {\n return nounsMap.containsKey(word);\n }", "public void assertTextPresentIgnoreCase(String expected, String actual) {\n assertTextPresent(expected.toLowerCase(), actual.toLowerCase());\n }", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "public int compare(String o1, String o2) {\r\n\t\t\t\treturn o1.compareToIgnoreCase(o2);\r\n\t\t\t}", "public boolean isNoun(String word) {\n\n\t\treturn nouns.containsKey(word);\n\t}", "@Override\n public int compare(String left, String right) {\n return left.compareTo(right);\n }", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "@Test\n\tpublic void simpleNameNormalizationTest() {\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"MacMillan, Don\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Jana, DK\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"A. Kruger\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Peter axyz ac\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Peter Ãac\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Gestionnaire HAL-SU\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Christophe Penkerc'h\"));\n\t\t\n\t\tSet<String> wrongNameTokens = new HashSet<String>(2);\n\t\twrongNameTokens.add(\"phd\");\n\t\twrongNameTokens.add(\"professor\");\n\t\twrongNameTokens.add(\"of\");\n\t\twrongNameTokens.add(\"nutrition\");\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleNameByWrongNameTokens(\"A. Kruger PhD, Professor Of Nutrition\",\n\t\t\t\twrongNameTokens));\n\t}", "IDisplayString getTitle();", "@Test\n void applyHalfSpaceRule() {\n \n String test = \"ما می توانیم\";\n String result = \"ما می‌توانیم\";\n assertEquals(result, FixZwnj.applyHalfSpaceRule(test));\n\n String test2 = \"ما نمی توانیم\";\n String result2 = \"ما نمی‌توانیم\";\n assertEquals(result2, FixZwnj.applyHalfSpaceRule(test2));\n\n String test3 = \"این بهترین کتاب ها است\";\n String result3 = \"این بهترین کتاب‌ها است\";\n assertEquals(result3, FixZwnj.applyHalfSpaceRule(test3));\n\n String test4 = \"بزرگ تری و قدرتمند ترین زبان های دنیا\";\n String result4 = \"بزرگ‌تری و قدرتمند‌ترین زبان‌های دنیا\";\n assertEquals(result4, FixZwnj.applyHalfSpaceRule(test4));\n\n String test5 = \"زمانیکه نگارش\";\n String result5 = \"زمانیکه نگارش\";\n assertEquals(result5, FixZwnj.applyHalfSpaceRule(test5));\n }", "@Override\n public int compare(Student o1, Student o2) {\n Collator col = Collator.getInstance(new Locale(\"cs\",\"CZ\"));\n return col.compare(o1.getLastName(), o2.getLastName());\n }", "@Override\n public int compareTo(SpellingError se) {\n int me = getStartPosition().getOffset();\n int other = se.getStartPosition().getOffset();\n if(me == other) return 0;\n if(me < other) return -1;\n return 1;\n }", "private boolean name() {\r\n return (\r\n (letter() && alphas()) ||\r\n (CHAR('`') && nobquotes() && MARK(QUOTE) && CHAR('`'))\r\n );\r\n }", "public boolean isNoun(String word) {\n if (word == null) throw new IllegalArgumentException();\n return (data.containsKey(word));\n }", "public final int compare(final Term first, final Term second) {\n return first.getHebrewString().compareTo(second.getHebrewString());\n }", "public void reagir(String frase) {\n if (frase.equals(\"toma comida\") || frase.equals(\"olá\")) {\n System.out.println(\"abanar e latir\");\n } else {\n System.out.println(\"rosnar\");\n }\n }", "public boolean isNoun(String word) {\n\t\tif (word == null)\n\t\t\tthrow new IllegalArgumentException(); \n\t\treturn nounToId.containsKey(word);\n\t}", "public void testCompareIgnoreCase() {\n\t\tString one = \"hello\";\n\t\tString two = \"In the house\";\n\t\t//h vor i\n\t\tassertTrue(comp.compareStrings(one, two) > 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) < 0);\n\t}", "public interface StringBasic01 {\n\n\t/**\n\t * Palindrome is a String which give the same result by reading from left to right and from right to left.\n\t * Example: \"aabaa\" is a palindrome.\n\t * \"mom\" is a palindrome\n\t * \"radar\" is a palindrome\n\t * etc.\n\t * Using charAt(int position) function of Java String to check if a input String is palindrome\n\t *\n\t */\n\tstatic boolean isPalindrome(String s) {\n\t\tint i = 0, j = s.length() - 1;\n\t\twhile (i < j) {\n\t\t\tif (s.charAt(i) != s.charAt(j))\n\t\t\t\treturn false;\n\t\t\t++i;\n\t\t\t--j;\n\t\t}\n\t\treturn true;\n\t}\n\n\t\t/**\n\t\t * Given a paragraph of text, calculate how many sentences included in the paragraph.\n\t\t ** Example: paragraph = \"I have 2 pets, a cat and a dog. The cat's name is Milo. The dog's name is Ricky\";\n\t\t ** return should be 3.\n\t\t *\n\t\t * @param paragraph of text\n\t\t * @return the number of sentences\n\t\t * (Suggest: Using split function of String).\n\t\t */\n\n\t\tstatic int sentenceCount(String paragraph) {\n\t\t\tif (paragraph != null && !paragraph.isEmpty()) {\n\t\t\t\treturn paragraph.split(\"\\\\.\").length;\n\t\t\t}\n\t\t\telse return 0;\n\t\t}\n\n\t\t/**\n\t\t * Given a paragraph of text, which unfortunately contains bad writing style:\n\t\t * error1: each sentence doesn't begin with a capital letter\n\t\t * error2: there is space between commas and previous letter, like \"2 pets , a cat \"\n\t\t * error3: there is no space between commas and the next letter, like \"2 pets,a cat \"\n\t\t * error4: there is space between period and previous letter, like \"a dog .\"\n\t\t * error5: there is more than one space between words, like \"a dog\"\n\t\t * Write code to correct the paragraph.\n\t\t ** Example: paragraph = \"i have 2 pets , a cat and a dog. the cat's name is Milo . the dog's name is Ricky\"\n\t\t ** output = \"I have 2 pets, a cat and a dog. The cat's name is Milo. The dog's name is Ricky\"\n\t\t *\n\t\t * @param paragraph of wrong text\n\t\t * @return corrected paragraph\n\t\t * Suggest: using some of followings: split, replace, toUpperCase.\n\t\t */\n\t\tstatic String correctParagraph(String paragraph) {\n\n\t\t\tString newText = paragraph.replaceAll(\"\\\\s{2,}+\", \" \");\n\n\t\t\tnewText = newText.replaceAll(\"\\\\s+,\", \",\");\n\t\t\tnewText = newText.replaceAll(\"\\\\s+\\\\.\", \".\");\n\n\n\t\t\tString firstLetter = newText.substring(0, 1).toUpperCase();\n\t\t\tnewText = firstLetter + newText.substring(1);\n\n\t\t\tString[] sentences = newText.split(\"\\\\.\");\n\t\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\t\tString temp = sentences[i].trim();\n\t\t\t\tfirstLetter = temp.substring(0, 1).toUpperCase();\n\t\t\t\tsentences[i] = firstLetter + temp.substring(1);\n\t\t\t}\n\t\t\tStringBuilder newParagraph = new StringBuilder(sentences[0]);\n\t\t\tfor(int i = 1; i < sentences.length; i++){\n\t\t\t\tnewParagraph.append(\". \").append(sentences[i]);\n\t\t\t}\n\t\t\tnewText = newParagraph.append(\".\").toString();\n\n\t\t\treturn newText;\n\t\t}\n\n /**\n * Given an article and a keyword. Find how many times the key words appear in the articles\n * Example:\n * article = \"Business Insider teamed up with Zillow's rental site, HotPads, to find the\n * median rent for a one-bedroom apartment in each of the 49 US metro areas with the largest\n * populations (as determined by Zillow). We also used Data USA to find the median household\n * income in each of these areas.\n *\n * The data was compiled using HotPad's Repeat Rent Index. Each of the one-bedroom apartments\n * analyzed in the study has been listed for rent on HotPads for longer than a month.\"\n * keyword = \"one-bedroom\".\n * Because the word \"one-bedroom\" appears twice in the paragraph, therefore:\n * countAppearances should return 2.\n * @param article: String. like a newspaper article\n * @param keyword: keyword to find in the articles\n * @return the number of appearances\n * Suggest: use method indexOf\n */\n\n\n\tstatic int countAppearances(String article, String keyword) {\n\t\tif(keyword.isEmpty()){\n\t\t\treturn 0;\n\t\t}\n\t\tString newArticle = article.replace(keyword, \"\");\n\t\treturn (article.length() - newArticle.length())/keyword.length();\n\t}\n\n\n}", "public int compareTitle(Song other) {\n return this.title.compareTo(other.getTitle());\n }", "@Override\n public int compare(String lhs, String rhs) {\n return lhs.compareTo(rhs);\n }", "public Set<String> nouns() {\n return sNounSet;\n }", "private static boolean isPrefix(char[] needle, int p) {\n for (int i = p, j = 0; i < needle.length; ++i, ++j) {\n if (needle[i] != needle[j]) {\n return false;\n }\n }\n return true;\n }", "@Override\r\n\tpublic int compare(Patient o1, Patient o2) {\n\t\treturn o1.getFirstName().compareToIgnoreCase(o2.getFirstName());\r\n\t}", "public boolean isNoun(String word) {\n return synsetList.containsKey(word);\n }", "public static void main (String[]args){\n\t\t \r\n\t\tString s1= \"ratan\";\r\n\t\tString s2=\"anu\";\r\n\t\tString s3=\"ratan\";\r\n\t\tSystem.out.println(s1.equals(s2));\r\n\t\tSystem.out.println(s1.equals(s3));\r\n\t\tSystem.out.println(s3.equals(s2));\r\n\t\tSystem.out.println(\"Ratan\".equals(\"ratan\"));// ratan as a string or s1 is also work\r\n\t\tSystem.out.println(\"Ratan\".equalsIgnoreCase(s1));\r\n\t\t\r\n\t\t\r\n\t\t// Compareto ---------> return +value or -value\r\n\t\tSystem.out.println(s1.compareTo(s2));\r\n\t\tSystem.out.println(s1.compareTo(s3));\r\n\t\tSystem.out.println(s2.compareTo(s3));\r\n\t\t\r\n\t\tSystem.out.println(\"Ratan\".compareTo(\"ratan\"));// ratan or s1 also work as shown here\r\n\t\tSystem.out.println(\"Ratan\".compareToIgnoreCase(s1));\r\n\r\n}", "@Test\n public void testSpinTwoWords() {\n final String actualResult = kata4.spinWord(\"Hey fellow warriors\");\n final String expectedResult = \"Hey wollef sroirraw\";\n assertEquals(expectedResult, actualResult);\n }", "protected boolean affectsTextPresentation(PropertyChangeEvent event)\n {\n return true;\n }", "public void testSimplePropFindWithNonLatin() throws Exception\n {\n testSimplePropFindWithNonLatin(getPathWS());\n }", "@Override\n public void title_()\n {\n }", "public ICase retourneLaCase() ;", "private static boolean isKonAfterVerb(AnalyzedTokenReadings[] tokens, int start, int end) {\n if(tokens[start].matchesPosTagRegex(\"VER:(MOD|AUX).*\") && tokens[start + 1].matchesPosTagRegex(\"(KON|PRP).*\")) {\n if(start + 3 == end) {\n return true;\n }\n for(int i = start + 2; i < end; i++) {\n if(tokens[i].matchesPosTagRegex(\"(SUB|PRO:PER).*\")) {\n return true;\n }\n }\n }\n return false;\n }", "public String is_punctual_friendly(){\n this.get_punctuality();\n\n return friendly[this.punctuality];\n }", "@Override\n public int compare(String o1, String o2) {\n\n if (o1.equals(o2)) {\n return 0;\n }\n\n String prefix = Strings.commonPrefix(o1, o2);\n if (prefix.length() == 0) {\n // No common prefix\n return o1.compareTo(o2);\n }\n\n if (o1.length() == prefix.length()) {\n return -1;\n }\n\n return o1.compareTo(o2);\n\n }", "@Override\n public int compare(Suggestion sugg1, Suggestion sugg2) {\n int alteredGrammarWordsDifference = sugg1.getAlteredGrammarWordsCount()\n - sugg2.getAlteredGrammarWordsCount();\n\n if (alteredGrammarWordsDifference != 0) {\n return alteredGrammarWordsDifference;\n }\n\n //if tied: less added info first\n int additionalNamesDifference = sugg1.getAdditionalNamesCount() + sugg1.getAdditionalGrammarWords()\n - (sugg2.getAdditionalNamesCount() + sugg2.getAdditionalGrammarWords());\n\n if (additionalNamesDifference != 0) {\n return additionalNamesDifference;\n }\n\n //if tied: less words first\n int wordCountDifference = sugg1.getWordsCount() - sugg2.getWordsCount();\n\n if (wordCountDifference == 0) {\n return wordCountDifference;\n }\n\n //if tied: shortest text first\n return sugg1.getText().length() - sugg2.getText().length();\n }", "public Set<String> nouns() {\n return nounSet;\n }", "public void computeParagraph(){\r\n\r\n\t\tstrBuff = new StringBuffer();\r\n\r\n\t\t//For else for ER2 rule of inserting the first letter of my last name twice before each consonant\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\r\n\t\t\tif(paragraph.charAt(i) == 'a' || paragraph.charAt(i) == 'e' || paragraph.charAt(i) == 'i'\r\n\t\t\t\t|| paragraph.charAt(i) == 'o' || paragraph.charAt(i) == 'u' || paragraph.charAt(i) == 'A'\r\n\t\t\t\t|| paragraph.charAt(i) == 'E' || paragraph.charAt(i) == 'I' || paragraph.charAt(i) == 'O'\r\n\t\t\t\t|| paragraph.charAt(i) == 'U' || paragraph.charAt(i) == ' ' || paragraph.charAt(i) == '.'\r\n\t\t\t\t|| paragraph.charAt(i) == '!' || paragraph.charAt(i) == '?'){\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\r\n\t\t\telse{\r\n\t\t\t\tstrBuff.append(\"OO\");\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tnewParagraph = strBuff.toString();\r\n\r\n\t\tcount = 0;\r\n\r\n\t\t//For for ER2 rule of counting the number of characters in the initial text excluding the number of vowels\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\t\t\tif(paragraph.charAt(i) != 'a' && paragraph.charAt(i) != 'e' && paragraph.charAt(i) != 'i'\r\n\t\t\t\t&& paragraph.charAt(i) != 'o' && paragraph.charAt(i) != 'u' && paragraph.charAt(i) != 'A'\r\n\t\t\t\t&& paragraph.charAt(i) != 'E' && paragraph.charAt(i) != 'I' && paragraph.charAt(i) != 'O'\r\n\t\t\t\t&& paragraph.charAt(i) != 'U'){\r\n\t\t\t\t\tcount++;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t}" ]
[ "0.6016104", "0.5906519", "0.5749095", "0.57117295", "0.5587394", "0.5582457", "0.54995185", "0.5489228", "0.5419934", "0.5392421", "0.535806", "0.53037024", "0.5299926", "0.52918905", "0.52661777", "0.5265072", "0.52559114", "0.5210002", "0.5202682", "0.5199572", "0.51850986", "0.5184815", "0.5183814", "0.518363", "0.51826775", "0.51603025", "0.5157308", "0.5125814", "0.5115949", "0.5099688", "0.5087354", "0.5053966", "0.5051702", "0.50274366", "0.5013549", "0.50088197", "0.50086933", "0.5004522", "0.49986693", "0.49986285", "0.49971092", "0.49959457", "0.4995225", "0.4990479", "0.49850088", "0.49823666", "0.49820036", "0.49754477", "0.49732977", "0.4971375", "0.49644303", "0.49569356", "0.49555334", "0.4942811", "0.49348077", "0.4926218", "0.49257377", "0.49254102", "0.49217707", "0.49156314", "0.49116603", "0.4901709", "0.48968166", "0.48960054", "0.48852658", "0.48772326", "0.48719582", "0.4867764", "0.4867485", "0.48636013", "0.486074", "0.4860503", "0.48583725", "0.48576906", "0.48522922", "0.484471", "0.48420295", "0.48376048", "0.48351046", "0.48324826", "0.483237", "0.48295444", "0.48281556", "0.4826742", "0.48263043", "0.48173806", "0.48122585", "0.48121467", "0.48116156", "0.48040318", "0.47998193", "0.4798124", "0.47969946", "0.4795227", "0.47881857", "0.47866267", "0.4786194", "0.47831005", "0.47813177", "0.47809383", "0.47778186" ]
0.0
-1
/ kali baris i dengan suatu konstanta k
void scaleRow(Matrix m, int i, double k) { int j, n = m.cols; for (j=0; j<n; j++) { m.M[i][j] = k * m.M[i][j]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "void tampilKarakterA();", "public abstract String dohvatiKontakt();", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "public boolean kosong() {\r\n return ukuran == 0;\r\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public final void beK() {\n AppMethodBeat.i(88975);\n if (this.kaS.aZV().vTW != null && this.kaS.aZV().vTW.size() > 0) {\n tm tmVar = (tm) this.kaS.aZV().vTW.get(0);\n if (this.iPD != null) {\n this.iPD.setText(tmVar.title);\n }\n if (this.ksp != null) {\n if (TextUtils.isEmpty(tmVar.kbW)) {\n this.ksp.setVisibility(8);\n } else {\n this.ksp.setText(tmVar.kbW);\n }\n }\n if (this.ksq != null) {\n if (TextUtils.isEmpty(tmVar.kbX)) {\n this.ksq.setVisibility(8);\n } else {\n this.ksq.setText(tmVar.kbX);\n AppMethodBeat.o(88975);\n return;\n }\n }\n }\n AppMethodBeat.o(88975);\n }", "void kiemTraThangHopLi() {\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "protected void narisi(Graphics2D g, double wp, double hp) {\n\n FontMetrics fm = g.getFontMetrics();\n\n int hPisava = fm.getAscent();\n\n double xColumn = 0.0;\n double yColumn = sirinaStolpca(wp, hp);\n\n for(int i = 0; i < podatki.length; i++){\n\n g.setColor(Color.ORANGE);\n g.fillRect((int)xColumn,(int)(hp - visinaStolpca(i, wp, hp)), (int) sirinaStolpca(wp, hp), (int) visinaStolpca(i, wp, hp));\n\n g.setColor(Color.RED);\n g.drawRect((int)((i)*sirinaStolpca(wp, hp)),(int) (hp-visinaStolpca(i, wp, hp)), (int)sirinaStolpca(wp, hp), (int)visinaStolpca(i, wp, hp));\n\n g.setColor(Color.BLUE);\n if(i < podatki.length - 1){\n double startCrtaX = sredinaVrha(i, wp, hp)[0];\n double startCrtaY = sredinaVrha(i, wp, hp)[1];\n\n double endCrtaX = sredinaVrha(i + 1, wp, hp)[0];\n double endCrtaY = sredinaVrha(i+1, wp, hp)[1];\n\n g.drawLine((int)startCrtaX,(int) startCrtaY,(int) endCrtaX,(int) endCrtaY);\n\n }\n\n g.setColor(Color.BLACK);\n\n String toWrite = Integer.toString(i+1);\n double wNapis=fm.stringWidth(toWrite);\n double xNapis=xColumn+(xColumn-wNapis)/2;\n double yNapisLowerLine=hp-hPisava;\n xColumn+=sirinaStolpca(wp, hp);\n g.drawString(toWrite,ri (xNapis),ri(yNapisLowerLine));\n\n }\n\n }", "@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "private static void cajas() {\n\t\t\n\t}", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "public String kalkulatu() {\n\t\tString emaitza = \"\";\n\t\tDouble d = 0.0;\n\t\ttry {\n\t\t\td = Double.parseDouble(et_sarrera.getText().toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tet_sarrera.setText(\"0\");\n\t\t}\n\t\tif (st_in.compareTo(\"m\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609.344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"km\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100000.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1.609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0000254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"cm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 10.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 160934.4);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 2.54);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"mm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 10.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 25.4);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"ml\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1.609344);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609.344);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 160934.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.000015782828);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"inch\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0000254);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0254);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 2.54);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 25.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.000015782828);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t}\n\t\t}\n\t\treturn emaitza;\n\t}", "public static String seuraavaArvaus(HashMap<String, Integer> muisti, String viimeisimmat, String kaikki) {\n if (kaikki.length() < 3) {\n return \"k\";\n }\n\n String viimKivi = viimeisimmat + \"k\";\n String viimPaperi = viimeisimmat + \"p\";\n String viimSakset = viimeisimmat + \"s\";\n \n int viimKiviLkm = 0;\n int viimPaperiLkm = 0;\n int viimSaksetLkm = 0;\n String arvaus = \"k\";\n int viimValueMax = 0;\n /*\n Sopivan valinnan etsiminen tehdään tarkastelemalla käyttäjän kahta viimeistä\n syötettä ja vertailemalla niitä koko historiaan. Mikäli historian mukaan\n kahta viimeistä syötettä seuraa useimmin kivi, tekoälyn tulee pelata paperi.\n Mikäli kahta viimeistä syötettä seuraa useimmin paperi, tekoälyn tulee \n pelata sakset. Mikäli taas kahta viimeistä syötettä seuraa useimmin sakset, \n tekoälyn tulee pelata kivi. Muissa tapauksissa pelataan kivi.\n */\n if (muisti.containsKey(viimKivi)) {\n viimKiviLkm = muisti.get(viimKivi);\n }\n if (muisti.containsKey(viimPaperi)) {\n viimPaperiLkm = muisti.get(viimPaperi);\n }\n if (muisti.containsKey(viimSakset)) {\n viimSaksetLkm = muisti.get(viimSakset);\n }\n\n if (viimKiviLkm > viimPaperiLkm && viimKiviLkm > viimSaksetLkm) {\n return \"p\";\n }\n if (viimPaperiLkm > viimKiviLkm && viimPaperiLkm > viimSaksetLkm) {\n return \"s\";\n }\n if (viimSaksetLkm > viimKiviLkm && viimSaksetLkm > viimPaperiLkm) {\n return \"k\";\n }\n\n return arvaus;\n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "private String getDuzMetinSozlukForm(Kok kok) {\n String icerik = kok.icerik();\r\n if (kok.asil() != null)\r\n icerik = kok.asil();\r\n\r\n StringBuilder res = new StringBuilder(icerik).append(\" \");\r\n\r\n // Tipi ekleyelim.\r\n if (kok.tip() == null) {\r\n System.out.println(\"tipsiz kok:\" + kok);\r\n return res.toString();\r\n }\r\n\r\n if (!tipAdlari.containsKey(kok.tip())) {\r\n System.out.println(\"tip icin dile ozel kisa ad bulunamadi.:\" + kok.tip().name());\r\n return \"#\" + kok.icerik();\r\n }\r\n\r\n res.append(tipAdlari.get(kok.tip()))\r\n .append(\" \")\r\n .append(getOzellikString(kok.ozelDurumDizisi()));\r\n return res.toString();\r\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }", "public void tekst_ekranu(Graphics dbg)\n {\n dbg.setColor(Color.BLACK);\n int y=(int)Math.round(getHeight()*0.04);\n dbg.setFont(new Font(\"TimesRoman\",Font.PLAIN,y));\n dbg.drawString(\"zycie \"+liczba_zyc,(int)Math.round(getWidth()*0.01),y);\n dbg.drawString(\"punkty \"+liczba_punktow,(int)Math.round(getWidth()*0.2),y);\n dbg.drawString(\"czas \"+(int)Math.round(czas_gry),(int)Math.round(getWidth()*0.4),y);\n dbg.drawString(\"naboje \"+liczba_naboi,(int)Math.round(getWidth()*0.6),y);\n dbg.drawString(\"poziom \"+poziom,(int)Math.round(getWidth()*0.8),y);\n }", "public void hitunganRule2(){\n penebaranBibitSedikit = 1200;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu Penebaran Bibit\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen Lama\r\n if ((hariPanenLama >=100) && (hariPanenLama <=180)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a2 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a2 = nPanen;\r\n }\r\n \r\n //tentukan Z2\r\n z2 = (penebaranBibitSedikit + hariPanenLama) * 700;\r\n System.out.println(\"a2 = \" + String.valueOf(a2));\r\n System.out.println(\"z2 = \" + String.valueOf(z2));\r\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "bdm mo1784a(akh akh);", "private void hienThiDichVuKhachHangSuDung(String maKH){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layDichVuKhachHangSuDung(maKH);\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaDV.addItem(suDungModel.getMaDV());\n }\n }", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello World!!\");\n\t\t\n\t\tString metin =\"Vadesi Yüksek\";\n\t\tString altMetin= \"Dolar\";\n\t\t\n\t\tint vade=24;\n\t\tdouble dunKur=82.8;\n\t\tdouble bugunKur=22.8;\n\t\n\t\t// System.out.println(metin);\n\t\t// System.out.println(kur);\n\t\t \n\t\tboolean kurDustumu=false;\n\t\t//System.out.println(kurDustumu);\n\t\t\n\t\tString okYonu=\"\";\n\t\t\n\t\tif(dunKur<bugunKur) {\n\t\t\tokYonu=\"up.jpg\";\n\t\t}\n\t\telse if(dunKur==bugunKur){\n\t\t\tokYonu=\"equal.jpg\";\n\t\t}\n\t\telse {\n\t\t\tokYonu=\"down.jpg\";\n\t\t}\n\t\t//System.out.println(okYonu);\n\t\t\n\t\tString[] krediler = {\"Hızlı\",\"HalkBank\",\"Emekli\",\"Eşya\",\"Kriz\"};\n\t\t\n\t\tfor (int i = 0; i < krediler.length; i++) {\n\t\t\tSystem.out.println(krediler[i]);\n\t\t}\n\t}", "public void aapne() {\n trykketPaa = true;\n setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n if (bombe) {\n setText(\"x\");\n Color moerkeregroenn = Color.rgb(86, 130, 3, 0.5);\n setBackground(new Background(new BackgroundFill(moerkeregroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n } else if (bombeNaboer == 0) {\n setText(\" \");\n } else {\n setText(bombeNaboer + \"\");\n if (bombeNaboer == 1) {\n setTextFill(Color.BLUE);\n } else if (bombeNaboer == 2) {\n setTextFill(Color.GREEN);\n } else if (bombeNaboer == 3) {\n setTextFill(Color.RED);\n } else if (bombeNaboer == 4) {\n setTextFill(Color.DARKBLUE);\n } else if (bombeNaboer == 5) {\n setTextFill(Color.BROWN);\n } else if (bombeNaboer == 6) {\n setTextFill(Color.DARKCYAN);\n }\n }\n }", "@RequestMapping(value = \"/kqdanhgia/{id}\",method = RequestMethod.GET)\r\n\tpublic String showkqdanhgia(@PathVariable(\"id\") String userb, Model model , HttpServletRequest request) {\n\t\tBangDanhGia bdg = choose.getBgd();\r\n\r\n\t\tif (bdg == null) {\r\n\t\t\tmodel.addAttribute(\"message\", \"Chưa ch�?n bảng đánh giá\");\r\n\t\t\treturn \"showkqdanhgia\";\r\n\t\t}\r\n\t\tmodel.addAttribute(\"bangdanhgia\", bdg);\r\n\t\tList<LoaiCauHoi> lchs = new ArrayList<LoaiCauHoi>(bdg.getLchs());\r\n\t\tCollections.sort(lchs);\r\n\t\tmodel.addAttribute(\"lchs\", lchs);\r\n\t\tmodel.addAttribute(\"nguoidang\", userb);\r\n\t\tList<BangDanhGiaKq> dgkqs = bdgkqService.findByUserb(userb);\r\n\t\tList<DisplayResult> kqs = new ArrayList<DisplayResult>();\r\n\t\tfor (CauHoi cauHoi : bdg.getCauhois()) {\r\n\t\t\tDisplayResult kq = new DisplayResult();\r\n\t\t\tkq.setCh(cauHoi);\r\n\t\t\tkq.setMch(cauHoi.getId());\r\n\t\t\tint a = 0, b = 0, c = 0, d = 0;\r\n\t\t\tfor (BangDanhGiaKq bangDanhGiaKq : dgkqs) {\r\n\t\t\t\tif (bangDanhGiaKq.getLoaiBang().getId() == bdg.getId()) {\r\n\t\t\t\t\tfor (CauHoiKq chkq : bangDanhGiaKq.getCauhoikqs()) {\r\n\t\t\t\t\t\tif (chkq.getCauhoi().getId().equals(cauHoi.getId())) {\r\n\t\t\t\t\t\t\tswitch (chkq.getKetqua()) {\r\n\t\t\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t\t\t\ta++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'B':\r\n\t\t\t\t\t\t\t\tb++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'C':\r\n\t\t\t\t\t\t\t\tc++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'D':\r\n\t\t\t\t\t\t\t\td++;\r\n\t\t\t\t\t\t\t\tbreak;\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}\r\n\t\t\tkq.setNumA(((double) a / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungA(\"Rất Tốt : \" + kq.getNumA() + \"%\");\r\n\t\t\tkq.setNumB(((double) b / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungB(\"Tốt : \" + kq.getNumB() + \"%\");\r\n\t\t\tkq.setNumC(((double) c / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungC(\"Bình Thường : \" + kq.getNumC() + \"%\");\r\n\t\t\tkq.setNumD(((double) d / dgkqs.size()) * 100);\r\n\t\t\tkq.setNoidungD(\"Chưa Tốt : \" + kq.getNumD() + \"%\");\r\n\t\t\tkqs.add(kq);\r\n\t\t}\r\n\t\tlog.error(\"BangDanhGiakq : \" + dgkqs.toString());\r\n\t\tlog.info(\"bang ket qua : \" + kqs.toString());\r\n\t\tmodel.addAttribute(\"kqs\", kqs);\r\n\t\treturn \"showkqdanhgia\";\r\n\t}", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}", "public void BacaIsi(int masalah){\r\n\t\t// KAMUS LOKAL\r\n\t\tint metode;\r\n\t\tint nbBrs;\r\n\t\tint nbKol;\r\n\r\n\t\tMatriks tempM;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t// ALGORITMA\r\n\t\tSystem.out.printf(\"Pilih metode pembacaan matriks \\n1. Input Keyboard \\n2. File \\n\");\r\n\r\n\t\tmetode = sc.nextInt();\r\n\r\n\t\tif (metode == 1) {\r\n\r\n\t\t\t// Menerima Masukan dari keyboard untuk SPL\r\n\t\t\tif (masalah == 1) {\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang baris:\");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang kolom:\");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t// Menerima Masukan untuk Interpolasi Linier dari Keyboard\r\n\t\t\telse if (masalah == 2) {\r\n\t\t\t\tString titik;\r\n\t\t\t\tScanner scanner = new Scanner(System.in).useDelimiter(\"line.separator\");\r\n\t\t\t\tScanner s;\r\n\r\n\t\t\t\tSystem.out.printf(\"Input N: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,2);\r\n\r\n\t\t\t\tSystem.out.println(\"Titik:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs+1; i++) {\r\n\t\t\t\t\ttitik = scanner.nextLine();\r\n\t\t\t\t\ttitik = titik.substring(1, titik.length()-1);\r\n\r\n\t\t\t\t\ts = new Scanner(titik).useDelimiter(\", \");\r\n\r\n\t\t\t\t\ttempM.Elmt[i][0] = s.nextDouble();\r\n\t\t\t\t\ttempM.Elmt[i][1] = s.nextDouble();\r\n\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tscanner.close();\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t//Menerima Masukan untuk Regresi Linier berganda\r\n\t\t\telse if (masalah == 3) {\r\n\t\t\t\tSystem.out.printf(\"Jumlah data: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Jumlah peubah: \");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol+1);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t// Menerima Masukan input untuk persoalan matriks inverse dan determinan\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Ukuran Matriks: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\t\t\t\ttempM = new Matriks(nbBrs, nbBrs);\r\n\t\t\t\tSystem.out.println(\"Elemen Matriks: \");\r\n\r\n\t\t\t\tfor(int i=0; i<nbBrs; i++){\r\n\t\t\t\t\tfor(int j=0; j<nbBrs; j++){\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menerima masukan dari file eksternal\r\n\t\telse if (metode == 2) {\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tdouble tempI;\r\n\r\n\t\t\tString b;\r\n\t\t\tString[] baris;\r\n\r\n\t\t\tSystem.out.printf(\"Masukkan alamat file: \");\r\n\t\t\tString alamat = sc.next();\r\n\r\n\t\t\tFile file = new File(alamat);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(file);\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tb = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\tbaris = new String[i];\r\n\t\t\t\ts = new Scanner(file);\r\n\t\t\t\tnbBrs = i;\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tbaris[i] = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\ts = new Scanner(baris[0]);\r\n\r\n\t\t\t\twhile (s.hasNextDouble()) {\r\n\t\t\t\t\ttempI = s.nextDouble();\r\n\t\t\t\t\tj = j + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\tnbKol = j;\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tfor (i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tsc = new Scanner(baris[i]);\r\n\r\n\t\t\t\t\tfor (j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tsc.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t} catch(FileNotFoundException e) {\r\n\t\t\t\tSystem.out.println(\"An error occured.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}", "public RekapKamar() {\n Koneksi DB = new Koneksi();\n DB.koneksi();\n con = DB.conn;\n stat = DB.stmn;\n initComponents();\n loadTabel();\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public Karakter_Yarat(String Meslek,int Seviye,int Guc,int YeniSeviye,int YeniGuc) {\r\n super(Meslek,Seviye,Guc,YeniSeviye, YeniGuc);\r\n }", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "public Kullanici() {}", "public String konus() {\n\t\treturn this.getIsim()+\" havliyor\";\n\t}", "public beranda() {\n initComponents();\n koneksi DB = new koneksi();\n DB.config();\n con = DB.con;\n st = DB.stm;\n ShowDataStore();\n ShowPermintaanStore();\n ShowPermintaanGudang();\n ShowDataStoreKurang15();\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public trangchinhban() {\n\t\tsetBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\tsetBackground(Color.WHITE);\n\t\tsetLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"QU\\u1EA2N L\\u00DD B\\u00C0N\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Apps-Google-Drive-Fusion-Tables-icon.png\"));\n\t\tlblNewLabel_1.setBounds(117, 35, 211, 57);\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\n\t\tadd(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Tên Bàn :\");\n\t\tlblNewLabel_1_1.setBounds(27, 121, 80, 36);\n\t\tlblNewLabel_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1_1 = new JLabel(\"Ghi Ch\\u00FA :\");\n\t\tlblNewLabel_1_1_1.setBounds(27, 228, 80, 36);\n\t\tlblNewLabel_1_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1_1);\n\t\t\n\t\ttxtTenban = new JTextField();\n\t\ttxtTenban.setBackground(new Color(255, 255, 255));\n\t\ttxtTenban.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTenban.setCaretColor(new Color(0, 153, 153));\n\t\ttxtTenban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\ttxtTenban.setBounds(117, 126, 246, 29);\n\t\tadd(txtTenban);\n\t\t\n\t\ttxtGhichu = new JTextField();\n\t\ttxtGhichu.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(255, 102, 0)));\n\t\ttxtGhichu.setBounds(117, 233, 246, 29);\n\t\ttxtGhichu.setColumns(10);\n\t\tadd(txtGhichu);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tscrollPane.setBorder(new MatteBorder(2, 2, 2, 2, (Color) new Color(0, 153, 153)));\n\t\tscrollPane.setBackground(new Color(0, 153, 153));\n\t\tscrollPane.addAncestorListener(new AncestorListener() {\n\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\n\t\t\t}\n\t\t});\n\t\tscrollPane.setBounds(411, 35, 612, 227);\n\t\tadd(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setGridColor(new Color(255, 255, 255));\n\t\ttable.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\ttable.setForeground(new Color(255, 255, 255));\n\t\ttable.setBackground(new Color(255, 102, 51));\n\t\ttable.setFont(new Font(\"Times New Roman\", Font.BOLD, 12));\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmyindex = table.getSelectedRow();\n\t\t\t\ttxtTenban.setText(table.getValueAt(myindex, 1).toString());\n\t\t\t\ttxtTrangthai.setSelectedItem(table.getValueAt(myindex, 2).toString());\n\t\t\t\ttxtGhichu.setText(table.getValueAt(myindex, 3).toString());\n\t\t\t}\n\t\t});\n\t\ttable.setModel(new DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t\t\"STT\", \"Tên bàn\", \"Trạng thái\", \"Ghi chú\"\n\t\t\t}\n\t\t) {\n\t\t\tClass[] columnTypes = new Class[] {\n\t\t\t\tString.class, String.class, String.class, String.class\n\t\t\t};\n\t\t\tpublic Class getColumnClass(int columnIndex) {\n\t\t\t\treturn columnTypes[columnIndex];\n\t\t\t}\n\t\t\tboolean[] columnEditables = new boolean[] {\n\t\t\t\tfalse, true, true, true\n\t\t\t};\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn columnEditables[column];\n\t\t\t}\n\t\t});\n\t\tscrollPane.setViewportView(table);\n\t\t\n\t\tJButton themban = new JButton(\" Th\\u00EAm b\\u00E0n\");\n\t\tthemban.setBorder(new MatteBorder(2, 8, 2, 8, (Color) new Color(51, 204, 102)));\n\t\tthemban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\n\t\t\t\tTable ban = new Table(tenban,trangthai,ghichu);\n\t\t\t\t\n\t\t\t\tTableThaoTac.insert(ban);\n\t\t\t\t\n\t\t\t\tShowTable();\n\t\t\t}\n\t\t});\n\t\tthemban.setBackground(new Color(255, 255, 255));\n\t\tthemban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\add-1-icon.png\"));\n\t\tthemban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tthemban.setBounds(64, 295, 127, 45);\n\t\tadd(themban);\n\t\t\n\t\tJButton xoaban = new JButton(\" X\\u00F3a b\\u00E0n\");\n\t\txoaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 51, 0)));\n\t\txoaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint selectedIndex = table.getSelectedRow();\n\t\t\t\tif(selectedIndex >=0) {\n\t\t\t\t\tTable stt = listTable.get(selectedIndex);\n\t\t\t\t\tint option = JOptionPane.showConfirmDialog(getRootPane(), \"Bạn có muốn xóa không ?\");\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tTableThaoTac.delete(stt.getSttban());\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\txoaban.setBackground(new Color(255, 255, 255));\n\t\txoaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Actions-button-cancel-icon.png\"));\n\t\txoaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\txoaban.setBounds(231, 362, 127, 45);\n\t\tadd(xoaban);\n\t\t\n\t\tJLabel lblNewLabel_1_1_2 = new JLabel(\"Trạng thái :\");\n\t\tlblNewLabel_1_1_2.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tlblNewLabel_1_1_2.setBounds(27, 172, 80, 36);\n\t\tadd(lblNewLabel_1_1_2);\n\t\ttxtTrangthai.setDebugGraphicsOptions(DebugGraphics.NONE_OPTION);\n\t\ttxtTrangthai.setEditable(true);\n\t\ttxtTrangthai.setFocusCycleRoot(true);\n\t\ttxtTrangthai.setForeground(new Color(0, 0, 0));\n\t\ttxtTrangthai.setBackground(new Color(255, 255, 255));\n\t\ttxtTrangthai.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTrangthai.setModel(new DefaultComboBoxModel(new String[] {\"Còn trống\", \"Hết chỗ\", \"Đã đặt\"}));\n\t\ttxtTrangthai.setBounds(117, 177, 246, 29);\n\t\tadd(txtTrangthai);\n\t\t\n\t\tJButton suaban = new JButton(\"Sửa bàn\");\n\t\tsuaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 204, 0)));\n\t\tsuaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\document-edit-icon.png\"));\n\t\tsuaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (txtTenban.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Lỗi\");\n\t\t\t\t} else {\n\t\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\tTable ban = new Table(myindex +1,tenban,trangthai,ghichu);\n\t\t\t\t\tTableThaoTac.update(ban);\n\t\t\t\t\t;\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsuaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tsuaban.setBackground(new Color(255, 255, 255));\n\t\tsuaban.setBounds(64, 362, 127, 45);\n\t\tadd(suaban);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe.png\"));\n\t\tlblNewLabel.setBounds(459, 272, 255, 220);\n\t\tadd(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\n\t\tlblNewLabel_2.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe hh.png\"));\n\t\tlblNewLabel_2.setBounds(754, 297, 211, 160);\n\t\tadd(lblNewLabel_2);\n\t\t\n\t\tJButton lammoi = new JButton(\"Làm mới\");\n\t\tlammoi.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 102, 0)));\n\t\tlammoi.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtTenban.setText(\"\");\n\t\t\t\ttxtTrangthai.setSelectedIndex(0);\n\t\t\t\ttxtGhichu.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tlammoi.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\system-software-update-icon (1).png\"));\n\t\tlammoi.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tlammoi.setBackground(new Color(255, 255, 255));\n\t\tlammoi.setBounds(231, 295, 127, 45);\n\t\tadd(lammoi);\n\t\t\n\t\tdfModel = (DefaultTableModel) table.getModel();\n\t\tShowTable();\n\t\t\n\t}", "private void xuLyThanhToanDichVu() {\n if(checkGia(txtThanhToanDVSoLuongCu.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongCu.requestFocus();\n return;\n }//Kiem tra so luong cu\n \n if(checkGia(txtThanhToanDVSoLuongMoi.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongMoi.requestFocus();\n return;\n }//kiem tra so luong moi\n \n float soLuongCu = Float.valueOf(txtThanhToanDVSoLuongCu.getText().trim());\n float soLuongMoi = Float.valueOf(txtThanhToanDVSoLuongMoi.getText().trim());\n float soLuong = soLuongMoi - soLuongCu;\n txtThanhToanDVSoLuong.setText(soLuong+\"\");\n tongCong += soLuong * Float.valueOf(txtThanhToanDVGiaDV.getText().trim());\n txtThanhToanTongCong.setText(tongCong+\" VNĐ\");\n \n }", "public static void dodavanjeBicikl() {\n\t\tString vrstaVozila = \"Bicikl\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = Main.nista;\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = 0;\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 700;\n\t\tdouble cenaServisa = 5000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tint brSedist = 1;\n\t\tint brVrata = 0;\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tBicikl vozilo = new Bicikl(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "public Leiho4ZerbitzuGehigarriak(Ostatua hartutakoOstatua, double prezioTot, Date dataSartze, Date dataIrtetze,\r\n\t\t\tint logelaTot, int pertsonaKop) {\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\".\\\\Argazkiak\\\\logoa.png\"));\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tthis.setBounds(350, 50, 600, 600);\r\n\t\tthis.setResizable(false); // neurketak ez aldatzeko\r\n\t\tthis.setSize(new Dimension(600, 600));\r\n\t\tthis.setTitle(\"Airour ostatu bilatzailea\");\r\n\t\tprezioTot2 = prezioTot;\r\n\t\t// botoiak\r\n\t\tbtn_next.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tMetodoakLeihoAldaketa.bostgarrenLeihoa(hartutakoOstatua, prezioTot2, dataSartze, dataIrtetze, logelaTot,\r\n\t\t\t\t\t\tpertsonaKop, cboxPentsioa.getSelectedItem() + \"\", zerbitzuArray, gosaria);\r\n\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_next.setBounds(423, 508, 122, 32);\r\n\t\tbtn_next.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_next.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtn_next.setForeground(Color.RED);\r\n\t\tgetContentPane().add(btn_next);\r\n\r\n\t\tbtn_prev.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// System.out.println(hartutakoOstatua.getOstatuMota());\r\n\t\t\t\tif (hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaHotelak(hartutakoOstatua, dataSartze, dataIrtetze);\r\n\t\t\t\telse\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaEtxeak(hartutakoOstatua, prezioTot, dataIrtetze, dataIrtetze);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_prev.setBounds(38, 508, 107, 32);\r\n\t\tbtn_prev.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_prev.setForeground(Color.RED);\r\n\t\tbtn_prev.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(btn_prev);\r\n\r\n\t\trestart.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMetodoakLeihoAldaketa.lehenengoLeihoa();\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\trestart.setBounds(245, 508, 72, 32);\r\n\t\trestart.setForeground(Color.RED);\r\n\t\trestart.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(restart);\r\n\r\n\t\t// panela\r\n\t\tlblIzena.setText(hartutakoOstatua.getIzena());\r\n\t\tlblIzena.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIzena.setFont(new Font(\"Verdana\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblIzena.setBounds(0, 13, 594, 32);\r\n\t\tgetContentPane().add(lblIzena);\r\n\r\n\t\tlblLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblLogelak.setBounds(210, 114, 72, 25);\r\n\t\tgetContentPane().add(lblLogelak);\r\n\r\n\t\ttxtLogelak = new JTextField();\r\n\t\ttxtLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtLogelak.setEditable(false);\r\n\t\ttxtLogelak.setText(logelaTot + \"\");\r\n\t\ttxtLogelak.setBounds(285, 116, 32, 20);\r\n\t\ttxtLogelak.setColumns(10);\r\n\t\tgetContentPane().add(txtLogelak);\r\n\r\n\t\tlblPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblPentsioa.setBounds(210, 165, 72, 14);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tlblPentsioa.setVisible(false);\r\n\t\tgetContentPane().add(lblPentsioa);\r\n\r\n\t\tcboxPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tcboxPentsioa.addItem(\"Pentsiorik ez\");\r\n\t\tcboxPentsioa.addItem(\"Erdia\");\r\n\t\tcboxPentsioa.addItem(\"Osoa\");\r\n\t\tcboxPentsioa.setBounds(285, 162, 111, 20);\r\n\t\tgetContentPane().add(cboxPentsioa);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tcboxPentsioa.setVisible(false);\r\n\r\n\t\tcboxPentsioa.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\r\n\t\t\t\tif (cboxPentsioa.getSelectedItem().equals(\"Pentsiorik ez\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 0;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Erdia\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 5 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Osoa\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 10 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tchckbxGosaria.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxGosaria.setBounds(245, 201, 97, 23);\r\n\t\tchckbxGosaria.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\t\t\t\tdouble gosariPrezioa = 3 * gauak;\r\n\t\t\t\tif (chckbxGosaria.isSelected()) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + gosariPrezioa;\r\n\t\t\t\t\tgosaria = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgosaria = false;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - gosariPrezioa;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxGosaria);\r\n\r\n\t\tlblZerbitzuak.setFont(new Font(\"Verdana\", Font.BOLD, 16));\r\n\t\tlblZerbitzuak.setBounds(51, 244, 230, 25);\r\n\t\tgetContentPane().add(lblZerbitzuak);\r\n\r\n\t\t// gehigarriak\r\n\t\tzerbitzuArray = MetodoakKontsultak.zerbitzuakOstatuanMet(hartutakoOstatua);\r\n\r\n\t\tmodelo.addColumn(\"Izena:\");\r\n\t\tmodelo.addColumn(\"Prezio gehigarria:\");\r\n\t\tmodelo.addColumn(\"Hartuta:\");\r\n\r\n\t\t// tabla datuak\r\n\t\ttable = new JTable(modelo);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\ttable.setFont(new Font(\"Verdana\", Font.PLAIN, 14));\r\n\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\r\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable.getTableHeader().setResizingAllowed(false);\r\n\t\ttable.setRowHeight(32);\r\n\t\ttable.setBackground(Color.LIGHT_GRAY);\r\n\t\ttable.setBounds(24, 152, 544, 42);\r\n\t\ttable.getTableHeader().setFont(new Font(\"Verdana\", Font.BOLD, 15));\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\tgetContentPane().add(table);\r\n\r\n\t\ttable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent me) {\r\n\t\t\t\tif (me.getClickCount() == 1) {\r\n\t\t\t\t\ti = 1;\r\n\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tscrollPane = new JScrollPane(table);\r\n\t\tscrollPane.setViewportBorder(null);\r\n\t\tscrollPane.setBounds(20, 282, 562, 188);\r\n\r\n\t\tgetContentPane().add(scrollPane);\r\n\r\n\t\tfor (HartutakoOstatuarenZerbitzuak zerb : zerbitzuArray) {\r\n\t\t\tarray[0] = zerb.getIzena();\r\n\t\t\tarray[1] = zerb.getPrezioa() + \" €\";\r\n\t\t\tarray[2] = \"Ez\";\r\n\t\t\tmodelo.addRow(array);\r\n\t\t}\r\n\t\ttable.setModel(modelo);\r\n\r\n\t\tlblPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrezioa.setBounds(210, 72, 63, 14);\r\n\t\tgetContentPane().add(lblPrezioa);\r\n\r\n\t\ttxtPrezioa = new JTextField();\r\n\t\ttxtPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\ttxtPrezioa.setEditable(false);\r\n\t\ttxtPrezioa.setBounds(274, 70, 136, 20);\r\n\t\ttxtPrezioa.setColumns(10);\r\n\t\tgetContentPane().add(txtPrezioa);\r\n\r\n\t}", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "public void asetaTeksti(){\n }", "public String cekReduplikasi(String kata) throws IOException{\n String res = \"\";\n if(!kata.contains(\"-\") && this.cekUlangSebagian(kata)){ // kata ulang sebagian\n if(this.cekAdaDiLexicon(kata.substring(2))){\n res = kata.substring(2);\n }\n else if(this.cekAdaDiLexicon(kata.substring(2, kata.length()-2))){\n res = kata.substring(2, kata.length()-2);\n }\n }\n else if(this.cekUlangSemu(kata)){ // kata ulang semu\n res = kata;\n }\n else if(kata.contains(\"-\")){\n int idxHubung = kata.indexOf(\"-\");\n String temp1 = kata.substring(0, idxHubung);\n String temp2 = kata.substring(idxHubung+1);\n if(temp1.equalsIgnoreCase(temp2)){ // kata ulang penuh\n res = temp1;\n }\n else if(this.cekAdaDiLexicon(temp1) && !this.cekAdaDiLexicon(temp2)){\n res = temp1;\n }\n else if(!this.cekAdaDiLexicon(temp1) && this.cekAdaDiLexicon(temp2)){\n res = temp2;\n }\n else{\n res = temp1;\n }\n }\n else{\n res = kata;\n }\n return res;\n }", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "public static void main(String[] args) {\n int kor,eng,math;\r\n char score='A';\r\n // 사용자가 입력 \r\n /*Scanner scan=new Scanner(System.in);\r\n System.out.print(\"국어 점수 입력:\");\r\n kor=scan.nextInt();\r\n System.out.print(\"영어 점수 입력:\");\r\n eng=scan.nextInt();\r\n System.out.print(\"수학 점수 입력:\");\r\n math=scan.nextInt();*/\r\n kor=input(\"국어\");\r\n eng=input(\"영어\");\r\n math=input(\"수학\");\r\n \r\n // 학점 \r\n int avg=(kor+eng+math)/30;\r\n score=hakjum(avg);// 메소드는 호출 => 메소드 처음부터 실행 => 결과값을 넘겨주고 다음문장으로 이동\r\n /*switch(avg)\r\n {\r\n case 10:\r\n case 9:\r\n \tscore='A';\r\n \tbreak;\r\n case 8:\r\n \tscore='B';\r\n \tbreak;\r\n case 7:\r\n \tscore='C';\r\n \tbreak;\r\n case 6:\r\n \tscore='D';\r\n \tbreak;\r\n default:\r\n \tscore='F';\r\n }*/\r\n \r\n System.out.println(\"국어:\"+kor);\r\n System.out.println(\"영어:\"+eng);\r\n System.out.println(\"수학:\"+math);\r\n System.out.println(\"총점:\"+(kor+eng+math));\r\n System.out.printf(\"평균:%.2f\\n\",(kor+eng+math)/3.0);\r\n System.out.println(\"학점:\"+score);\r\n\t}", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "public void nastav() {\n\t\ttabulkaZiak.setMaxWidth(velkostPolickaX * 3 + 2);\n\t\ttabulkaZiak.setPlaceholder(new Label(\"Žiadne známky.\"));\n\n\t}", "float getMonatl_kosten();", "public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "public Kalkulator() {\n initComponents();\n angka=\"\";\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "public int[][] MatrisKuralaUygun(int[][] girdi) {\n\t\tint Kontrol = 0; // cali hucreler kontrol etmek icin\r\n\t\tint[][] output = new int[girdi.length][girdi[0].length]; // [row][colum]\r\n\t\tfor (int i = 0; i < girdi.length; i++) {\r\n\t\t\tfor (int j = 0; j < girdi[0].length; j++) {\r\n\t\t\t\tfor (int k = 1; k < output[0].length - 1; k++) {// bu dongu tek seferlik calisir bir eklemek veya\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cikarmak icin\r\n\t\t\t\t\tif (j < 3 && i == 0) {// burda 0'inci satir icin // [0][0] saginda ve altiginda bakildi\r\n\t\t\t\t\t\tif (j != 2) {// hepsi Kontrola toplaniyor\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t} // [0][1] saginda ve solunda ve altinda hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j];//\r\n\t\t\t\t\t\tif (j != 0) { // [0][2] sol ve alt hucrelere\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (i == 1 && j == 0) {// birinci satir sifirinci dikey\r\n\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j]; // [1][0] ust ve alt ve sag hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\t\t\t\t\t} else if ((i == 1 || i == 2) && (j == 2 || j == 1)) {\r\n\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j];// [1][1] hem ust ve alt ve sag ve sol hucrelere bakildi\r\n\t\t\t\t\t\tif (j != 2) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\r\n\t\t\t\t\t} else if (i == 3 && (j < 3)) {// 2'inci satir icin\r\n\t\t\t\t\t\tif (j != 0) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\t} // [2][1] hem ust ve sag ve sol hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\r\n\t\t\t\t\t\tif (j != 2) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (girdi[i][j] == 1 && Kontrol < 2) { // canli ise ve kontrol 2 den az ise\r\n\t\t\t\t\toutput[i][j] = 0;// sifir yazdir\r\n\t\t\t\t\tKontrol = 0;// Kontrol sifirlamamiz cok onemli yoksa kontrol hem artar\r\n\t\t\t\t} else if (girdi[i][j] == 1 && (Kontrol == 2 || Kontrol == 3)) { // canli ise ve kontrol 2 ve 3 ise\r\n\t\t\t\t\toutput[i][j] = 1;\r\n\t\t\t\t\tKontrol = 0;// burda onemli\r\n\t\t\t\t} else if (girdi[i][j] == 1 && Kontrol > 3) { // canli ise ve kontrol 3 den cok ise\r\n\t\t\t\t\toutput[i][j] = 0;\r\n\t\t\t\t\tKontrol = 0;\r\n\t\t\t\t} else if (girdi[i][j] == 0 && Kontrol == 3) { // canli ise ve kontrol 3 ise\r\n\t\t\t\t\toutput[i][j] = 1;\r\n\t\t\t\t\tKontrol = 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toutput[i][j] = girdi[i][j];// eger yukardaki kosulari girilmedi ise aynisi yazdir\r\n\r\n\t\t\t\t\tKontrol = 0;// ve yine Kontrol sifir\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn output;// dizi donduruyor\r\n\r\n\t}", "private int obliczDowoz() {\n int x=this.klient.getX();\n int y=this.klient.getY();\n double odl=Math.sqrt((Math.pow((x-189),2))+(Math.pow((y-189),2)));\n int kilometry=(int)(odl*0.5); //50 gr za kilometr\n return kilometry;\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public void setMerkki(char merkki){\r\n this.merkki = merkki; \r\n }", "public void stupenVrcholu(String klic){\n\t\tint indexKlic = index(klic);\n\t\tfor(int i = 0; i < matice.length;i++){\n\t\t\tif(matice[i][indexKlic] == 1 )\n\t\t\t\tvrchP[indexKlic].stupenVstup++;\n\t\t\t\n\t\t\tif(matice[indexKlic][i] == 1)\n\t\t\t\t\tvrchP[indexKlic].stupenVystup++;\n\t\t\t}\n\t\t\t\t\n\t\t\n\t}", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }", "public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\n }", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "void Hrana(String start,String cil, char druh){\n\t\tint iStart = index(start);\n\t\tint iCil = index(cil);\n\t\t\n\t\tif(iStart == -1)\n\t\t\treturn;\n\t\tif(iCil == -1)\n\t\t\treturn;\n\t\t//orientovana hrana\n\t\tif(druh == '-' || druh == '>'){\n\t\t\tmatice[iStart][iCil] = 1;\n\t\t\tvrchP[iStart].pocetSousedu = vrchP[iStart].pocetSousedu +1;\n\t\t}\n\t\t\n\t\t//neorientovana\n\t\tif(druh == '-'){\n\t\t\tmatice[iCil][iStart] = 1;\n\t\t\tvrchP[iCil].pocetSousedu = vrchP[iCil].pocetSousedu +1;\t\n\t\t}\n\t\t\n\t\tHrana pom = new Hrana(start,cil,'W',druh);\n\t\thrana[pocetHr] = pom;\n\t\tpocetHr++;\n\t\t\n\t\t\n\t}", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "@Override\r\n\tpublic int hitungBiayaKopi(int jumlahHalaman) {\n\t\treturn jumlahHalaman * 750;\r\n\t}" ]
[ "0.67495245", "0.661955", "0.6569739", "0.6497958", "0.64578927", "0.64096415", "0.63138896", "0.62916994", "0.6287841", "0.62343854", "0.6216168", "0.6191973", "0.61895907", "0.6182705", "0.6154348", "0.6153824", "0.6152273", "0.6120276", "0.6116837", "0.60663015", "0.6034733", "0.60044014", "0.59992075", "0.5995405", "0.5983617", "0.5973246", "0.5969778", "0.5969198", "0.5946402", "0.5942523", "0.5938311", "0.59346277", "0.5927055", "0.5925713", "0.59244615", "0.59233457", "0.59153473", "0.59151864", "0.5906157", "0.5890535", "0.5888555", "0.5887424", "0.58864063", "0.5877382", "0.5871706", "0.58691615", "0.5854492", "0.5851824", "0.5847066", "0.5845619", "0.5845124", "0.58450884", "0.5844377", "0.5843448", "0.5841385", "0.58282495", "0.58237416", "0.5819502", "0.58130467", "0.58129585", "0.5808796", "0.5806783", "0.5802972", "0.5797286", "0.57947546", "0.579207", "0.57845443", "0.578174", "0.5775561", "0.5773257", "0.5770766", "0.5770117", "0.57666266", "0.5765171", "0.5763098", "0.57584524", "0.57578695", "0.5750264", "0.57499564", "0.5749891", "0.57486814", "0.57479507", "0.574115", "0.5739707", "0.5728901", "0.57243276", "0.57223076", "0.57192963", "0.5717311", "0.5703066", "0.57020575", "0.57018095", "0.5696372", "0.56960773", "0.5693227", "0.5693192", "0.56931543", "0.56929046", "0.56919616", "0.56918764", "0.5691055" ]
0.0
-1
/ tukar baris i1 dengan baris i2
void swapRow(Matrix m, int i1, int i2) { double[] temp = m.M[i1]; m.M[i1] = m.M[i2]; m.M[i2] = temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public void mo9255g(int i, int i2) {\n }", "void mo7304b(int i, int i2);", "public void mo5369d(int i, int i2) {\n }", "void mo7445h(int i, int i2);", "public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\n }", "public void mo5356b(int i, int i2) {\n }", "public void mo9257i(int i, int i2) {\n }", "void mo17017a(int i, int i2);", "void mo7301a(int i, int i2);", "public void mo115203b(int i, int i2) {\n }", "private void m9223id(int i, int i2) {\n this.AAJ.writeByte((i2 << 5) | i);\n }", "public void mo9256h(int i, int i2) {\n }", "void mo63039b(int i, int i2);", "public abstract void mo9816d(int i, int i2);", "void mo8280a(int i, int i2, C1207m c1207m);", "void mo34684de(int i, int i2);", "void mo4102a(int i, int i2);", "public void mo5365c(int i, int i2) {\n }", "public void mo9253f(int i, int i2) {\n }", "public String perkalian(int bil1, int bil2) {\n return (int)functions.kali_old(bil1, bil2) + \"\";\n }", "void mo4103b(int i, int i2);", "void mo17008a(int i, int i2);", "void mo11024a(int i, int i2, String str);", "void mo7308d(int i, int i2);", "void mo7444g(int i, int i2);", "void mo7438a(int i, int i2);", "void mo7306c(int i, int i2);", "void mo17011b(int i, int i2);", "public static void main(String[] args) {\n\t\tint[][] t1 = new int[4][];\r\n\t\tt1[0]= new int[4];\r\n\t\tSystem.out.println(t1[0]);\r\n\t\tSystem.out.println(t1[0][0]);\r\n\t\tint[][] t2 = {{1,2,3,4,5},{44,66,77,99,12,21},{11,22}};\r\n\t\tfor(int i=0 ; i<t2.length;i++) {\r\n\t\t\tfor(int j=0 ; j < t2[i].length ;j++) {\r\n\t\t\t\tSystem.out.print(t2[i][j]+\" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\r\n\t\t\t}\r\n\t\tchar[][]s = {\r\n\t\t\t\t{'x','x','x'},\r\n\t\t\t\t{'x','o','x'},\r\n\t\t\t\t{'x','x','o'},\r\n\t\t\t\t{'x','x','x'}\r\n\t\t};\r\n\t\t\r\n\t\tfor(int i=0 ; i<s.length ; i++) {\r\n\t\t\tfor(int j=0 ; j<s[i].length;j++) {\r\n\t\t\t\tif(s[i][j]=='o') {\r\n\t\t\t\t\tSystem.out.printf(\"[%2d행%2d열}%n\",i,j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t}", "public int[][] MatrisKuralaUygun(int[][] girdi) {\n\t\tint Kontrol = 0; // cali hucreler kontrol etmek icin\r\n\t\tint[][] output = new int[girdi.length][girdi[0].length]; // [row][colum]\r\n\t\tfor (int i = 0; i < girdi.length; i++) {\r\n\t\t\tfor (int j = 0; j < girdi[0].length; j++) {\r\n\t\t\t\tfor (int k = 1; k < output[0].length - 1; k++) {// bu dongu tek seferlik calisir bir eklemek veya\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cikarmak icin\r\n\t\t\t\t\tif (j < 3 && i == 0) {// burda 0'inci satir icin // [0][0] saginda ve altiginda bakildi\r\n\t\t\t\t\t\tif (j != 2) {// hepsi Kontrola toplaniyor\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t} // [0][1] saginda ve solunda ve altinda hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j];//\r\n\t\t\t\t\t\tif (j != 0) { // [0][2] sol ve alt hucrelere\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (i == 1 && j == 0) {// birinci satir sifirinci dikey\r\n\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j]; // [1][0] ust ve alt ve sag hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\t\t\t\t\t} else if ((i == 1 || i == 2) && (j == 2 || j == 1)) {\r\n\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j];// [1][1] hem ust ve alt ve sag ve sol hucrelere bakildi\r\n\t\t\t\t\t\tif (j != 2) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\r\n\t\t\t\t\t} else if (i == 3 && (j < 3)) {// 2'inci satir icin\r\n\t\t\t\t\t\tif (j != 0) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\t} // [2][1] hem ust ve sag ve sol hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\r\n\t\t\t\t\t\tif (j != 2) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (girdi[i][j] == 1 && Kontrol < 2) { // canli ise ve kontrol 2 den az ise\r\n\t\t\t\t\toutput[i][j] = 0;// sifir yazdir\r\n\t\t\t\t\tKontrol = 0;// Kontrol sifirlamamiz cok onemli yoksa kontrol hem artar\r\n\t\t\t\t} else if (girdi[i][j] == 1 && (Kontrol == 2 || Kontrol == 3)) { // canli ise ve kontrol 2 ve 3 ise\r\n\t\t\t\t\toutput[i][j] = 1;\r\n\t\t\t\t\tKontrol = 0;// burda onemli\r\n\t\t\t\t} else if (girdi[i][j] == 1 && Kontrol > 3) { // canli ise ve kontrol 3 den cok ise\r\n\t\t\t\t\toutput[i][j] = 0;\r\n\t\t\t\t\tKontrol = 0;\r\n\t\t\t\t} else if (girdi[i][j] == 0 && Kontrol == 3) { // canli ise ve kontrol 3 ise\r\n\t\t\t\t\toutput[i][j] = 1;\r\n\t\t\t\t\tKontrol = 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toutput[i][j] = girdi[i][j];// eger yukardaki kosulari girilmedi ise aynisi yazdir\r\n\r\n\t\t\t\t\tKontrol = 0;// ve yine Kontrol sifir\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn output;// dizi donduruyor\r\n\r\n\t}", "public void hitunganRule2(){\n penebaranBibitSedikit = 1200;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu Penebaran Bibit\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen Lama\r\n if ((hariPanenLama >=100) && (hariPanenLama <=180)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a2 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a2 = nPanen;\r\n }\r\n \r\n //tentukan Z2\r\n z2 = (penebaranBibitSedikit + hariPanenLama) * 700;\r\n System.out.println(\"a2 = \" + String.valueOf(a2));\r\n System.out.println(\"z2 = \" + String.valueOf(z2));\r\n }", "void mo63037a(int i, int i2);", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"isminizi giriniz\");\n//\t\tString isim=scan.nextLine().toLowerCase();\n//\t\tSystem.out.println(\"soyadinizi giriniz\");\n//\t\tString soyisim=scan.nextLine().toLowerCase();\n//\t\tSystem.out.print(isim.substring(0, 1).toUpperCase()+isim.substring(1, isim.length()));\n//\t\tSystem.out.print(\" \" +soyisim.substring(0, 1).toUpperCase() +soyisim.substring(1, soyisim.length()));\n\n\t\t/// hocanin cozumu\n\t\t// int ikinciBasNok = isimSoyIsim.indexOf(\" \");\n// System.out.print(isimSoyIsim.substring(0,1).toUpperCase());\n// System.out.print(isimSoyIsim.substring(1, ikinciBasNok+1).toLowerCase());\n// System.out.print(isimSoyIsim.substring(ikinciBasNok+1, ikinciBasNok+2).toUpperCase());\n// System.out.println(isimSoyIsim.substring(ikinciBasNok+2).toLowerCase());\n\n\t\t/// Array ile cozum\n\t\tString isimSoyIsim = scan.nextLine();\n\t\t\n// 0/fedai 1/ocak //isimler.length => 2 - 1 1 != 1\n\t\tString[] isimler = isimSoyIsim.split(\" \");\n\n\t\tfor (int i = 0; i < isimler.length; i++) {\n\t\t\tisimler[i] = isimler[i].toLowerCase();\n\t\t\t\tif(isimler.length-1 != i ) //\n\t\t\tSystem.out.print(isimler[i].substring(0, 1).toUpperCase() + isimler[i].substring(1) + \" \");\n\t\t\t\telse\n\t\t System.out.print(isimler[i].substring(0,1).toUpperCase()+isimler[i].substring(1));\n\t\t}\nscan.close();\n\t}", "public String kombinasi(int bil1, int bil2) {\n if(functions.kombinasi(bil1, bil2) < 0){\n return \"tolong masukan a ≥ 0\"; \n }\n return (int)functions.kombinasi(bil1, bil2)+\"\";\n }", "public void setdata1_5(String isfo,String ippm, String ilw, String ihppm1 ,String ihppm2) {\n\t\tcontrolwindow.disppar.sfo=Double.parseDouble(isfo);\n\t//\tm_mess.setText(\"setdata1_5 2: \" + sfo+\" - \"+ippm);\n\t\tdim.ppm.clear();\n\t\tdim.lw.clear();\n\t\tdim.hppm1.clear();\n\t\tdim.hppm2.clear();\n\t\tfor(i=0;i<ippm.split(\",\").length;i++){\n\t\t\tdim.ppm.add(Double.parseDouble(ippm.split(\",\")[i]));\n\t\t\tdim.lw.add(Double.parseDouble(ilw.split(\",\")[i]));\n\t\t\tif(Double.parseDouble(ihppm1.split(\",\")[i]) > Double.parseDouble(ihppm2.split(\",\")[i])){\n\t\t\t\tdim.hppm1.add(Double.parseDouble(ihppm1.split(\",\")[i]));\n\t\t\t\tdim.hppm2.add(Double.parseDouble(ihppm2.split(\",\")[i]));\n\t\t\t}else{\n\t\t\t\tdim.hppm1.add(Double.parseDouble(ihppm2.split(\",\")[i]));\n\t\t\t\tdim.hppm2.add(Double.parseDouble(ihppm1.split(\",\")[i]));\n\t\t\t}\n\t\t\tm_mess.setText(\"setdata1_5 4: \" + dim.ppm.get(i)+\"ok\"+i);\n\t//\t\thppm[i][1]=Double.parseDouble(ihppm1.split(\",\")[i]);\n\t//\t\thppm[i][2]=Double.parseDouble(ihppm2.split(\",\")[i]);\n\t\t}\n\t\tif(controlwindow.disppar.sw==-1d){\n\t\t\tdim.calcFWMW();\n\t\t\tdim.calcTicks(controlwindow.disppar);\n\t\t\tcontrolwindow.Setsw(dim.fullwidth);\n\t\t\tcontrolwindow.Setcf(dim.midwind);\n\t\t}\n\t\tdim.CalcPos(controlwindow.disppar);\n\t\tdim.CalcWidth(controlwindow.disppar);\n\t\tdim.CalcOverlap(controlwindow.disppar);\n\t\tdim.calcTicks(controlwindow.disppar);\n\t\tdisplaywindow.update();\n\t}", "public final void gG(int i, int i2) {\n AppMethodBeat.i(26749);\n ab.i(\"MicroMsg.Note.NoteDataManager\", \"checkMergeTextDataItem startPos: %d endPos: %d needNotify: %b\", Integer.valueOf(i), Integer.valueOf(i2), Boolean.TRUE);\n synchronized (this) {\n try {\n if (this.iPr == null) {\n } else {\n int i3;\n if (i <= 0) {\n i = 0;\n }\n if (i2 >= this.iPr.size()) {\n i2 = this.iPr.size() - 1;\n i3 = -1;\n } else {\n i3 = -1;\n }\n while (i2 > i) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i2);\n com.tencent.mm.plugin.wenote.model.a.c cVar2 = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i2 - 1);\n if (cVar != null && cVar.getType() == 1 && cVar2 != null && cVar2.getType() == 1) {\n i3 = i2 - 1;\n i iVar = (i) cVar;\n i iVar2 = (i) cVar2;\n if (!bo.isNullOrNil(iVar.content)) {\n Spanned ahb = com.tencent.mm.plugin.wenote.model.nativenote.a.a.ahb(iVar.content);\n Spanned ahb2 = com.tencent.mm.plugin.wenote.model.nativenote.a.a.ahb(iVar2.content);\n iVar2.content += \"<br/>\" + iVar.content;\n if (iVar.uNT) {\n iVar2.uNT = true;\n iVar2.uNZ = false;\n if (iVar.uNV == -1 || iVar.uNV >= ahb.length()) {\n iVar2.uNV = -1;\n } else {\n iVar2.uNV = iVar.uNV + (ahb2.length() + 1);\n }\n } else if (iVar2.uNT && iVar2.uNV == -1) {\n iVar2.uNV = ahb2.length();\n }\n } else if (iVar.uNT) {\n iVar2.uNT = true;\n iVar2.uNZ = false;\n iVar2.uNV = -1;\n }\n ab.i(\"MicroMsg.Note.NoteDataManager\", \"checkMergeTextDataItem remove position: %d\", Integer.valueOf(i2));\n Kf(i2);\n if (this.uPa != null) {\n this.uPa.JZ(i2);\n }\n }\n i2--;\n i3 = i3;\n }\n }\n } finally {\n AppMethodBeat.o(26749);\n }\n }\n }", "void mo54407a(int i, int i2);", "private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public final /* synthetic */ void a(int i2) {\n List<a> a2 = this.f68520c.a(i2);\n ArrayList arrayList = new ArrayList();\n for (a next : a2) {\n if (!(next == null || next.f56315e == null || TextUtils.isEmpty(next.f56315e))) {\n String[] split = next.f56315e.split(\"\\\\.\");\n if (split.length <= 0 || !split[split.length - 1].equals(\"gif\")) {\n arrayList.add(MvImageChooseAdapter.b.a(next));\n }\n }\n }\n this.f68519b.a((List<MvImageChooseAdapter.b>) arrayList, i2, true);\n }", "public final void mo4600bN(int i, int i2) {\n }", "private void m32684a(int i, int i2) {\n if (i != i2) {\n if (i2 != 0) {\n TextView d = m32690d(i2);\n if (d != null) {\n d.setVisibility(0);\n d.setAlpha(1.0f);\n }\n }\n if (i != 0) {\n TextView d2 = m32690d(i);\n if (d2 != null) {\n d2.setVisibility(4);\n if (i == 1) {\n d2.setText(null);\n }\n }\n }\n this.f24569i = i2;\n }\n }", "protected void narisi(Graphics2D g, double wp, double hp) {\n\n FontMetrics fm = g.getFontMetrics();\n\n int hPisava = fm.getAscent();\n\n double xColumn = 0.0;\n double yColumn = sirinaStolpca(wp, hp);\n\n for(int i = 0; i < podatki.length; i++){\n\n g.setColor(Color.ORANGE);\n g.fillRect((int)xColumn,(int)(hp - visinaStolpca(i, wp, hp)), (int) sirinaStolpca(wp, hp), (int) visinaStolpca(i, wp, hp));\n\n g.setColor(Color.RED);\n g.drawRect((int)((i)*sirinaStolpca(wp, hp)),(int) (hp-visinaStolpca(i, wp, hp)), (int)sirinaStolpca(wp, hp), (int)visinaStolpca(i, wp, hp));\n\n g.setColor(Color.BLUE);\n if(i < podatki.length - 1){\n double startCrtaX = sredinaVrha(i, wp, hp)[0];\n double startCrtaY = sredinaVrha(i, wp, hp)[1];\n\n double endCrtaX = sredinaVrha(i + 1, wp, hp)[0];\n double endCrtaY = sredinaVrha(i+1, wp, hp)[1];\n\n g.drawLine((int)startCrtaX,(int) startCrtaY,(int) endCrtaX,(int) endCrtaY);\n\n }\n\n g.setColor(Color.BLACK);\n\n String toWrite = Integer.toString(i+1);\n double wNapis=fm.stringWidth(toWrite);\n double xNapis=xColumn+(xColumn-wNapis)/2;\n double yNapisLowerLine=hp-hPisava;\n xColumn+=sirinaStolpca(wp, hp);\n g.drawString(toWrite,ri (xNapis),ri(yNapisLowerLine));\n\n }\n\n }", "public void controlla_bersaglio() {\n\n if ((x[0] == bersaglio_x) && (y[0] == bersaglio_y)) {\n punti++;\n posiziona_bersaglio();\n }\n }", "@Override\n\tpublic void i2() {\n\t\t\n\t}", "public void mo2477b(int i, int i2) {\n try {\n xb.m4188b(mo2625k(), C0725i.m3011a(i), C0725i.m3011a(i2));\n } catch (C0811o e) {\n WDErreurManager.m2883a(C0745b.m3222b(f1944z[0], \"1\", String.valueOf(mo2483h()), String.valueOf(e.m4106a())));\n }\n }", "void mo56156a(int i, int i2);", "public final void mo91698a(int i, int i2) {\n mo91947k(i);\n }", "public final void mo9216d(String str, String str2, int i, int i2) {\n }", "public void mo3791b(int i, int i2) {\n this.f1438M = i;\n this.f1439N = i2;\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "int mo9690a(int i, int i2);", "public void mo2472a(int i, int i2) {\n try {\n xb.m4186a(mo2625k(), C0725i.m3011a(i), C0725i.m3011a(i2));\n } catch (C0811o e) {\n WDErreurManager.m2883a(C0745b.m3222b(f1944z[0], \"1\", String.valueOf(mo2483h()), String.valueOf(e.m4106a())));\n }\n }", "void mo9075h(String str, int i, int i2);", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void m25387a(Canvas canvas, String str, int i, int i2) {\n canvas.drawText(str, (((float) i) - this.f20604O.measureText(str)) * 0.5f, (((float) i2) * 0.5f) - ((this.f20604O.ascent() + this.f20604O.descent()) * 0.5f), this.f20604O);\n }", "public String pemangkatan(int bil1, int bil2) {\n return functions.pangkat_2(bil1, bil2) + \"\";\n }", "private void collectTags\n (int[] i, int i0, int i1, long[] T) {\n for (int o=i0; o<i1; o++) // 1\n T[o] = data[i[o]]; // 1\n }", "void show_sense(int a, int b, String w[][]){\r\n int t1,t2,t3,t4;\r\n t1=a-1; // kirinya kotak\r\n t2=a+1; // kanannya kotak\r\n t3=a+4; // bawahnya kotak\r\n t4=a-4; // atasnya kotak\r\n\r\n if(a==5 || a==9) // kalau misal koordinat di batas kiri (5 dan 9), kirinya gak dianggap (0)\r\n t1=0;\r\n if (a==8|| a==12) // kalau misal koordinat di batas kanan (8 dan 12), kanannya gak dianggap (0)\r\n t2=0;\r\n if (a==4) // kalau misal koordinat di batas kanan (4), kanannya gak dianggap (0)\r\n t2 =0;\r\n if (a==13) // koordinat 13 itu agent, kirinya agent itu 0\r\n t1=0;\r\n\r\n // error handling kalau table diluar batas\r\n if(t3>16)\r\n t3=0;\r\n if(t4<0)\r\n t4=0;\r\n\r\n // b = breeze\r\n // adjacent nya pit itu breeze\r\n if(b==1){\r\n b_pos[0] = t1;\r\n b_pos[1] = t2;\r\n b_pos[2] = t3;\r\n b_pos[3] = t4;\r\n }\r\n else if (b==2){ // s = stench\r\n s_pos[0] = t1; // adjacent nya wumpus itu stench\r\n s_pos[1] = t2;\r\n s_pos[2] = t3;\r\n s_pos[3] = t4;\r\n }\r\n\r\n int temp1,count;\r\n\r\n for (int i = 0; i < 4; i++) {\r\n if (b==1) temp1 = b_pos[i];\r\n else temp1 = s_pos[i];\r\n\r\n count=0;\r\n \r\n // Iterasi buat ngasih tanda stench dan breeze\r\n for (int j = 1; j <= 4; j++) {\r\n for (int k = 1; k <= 4; k++) {\r\n ++count;\r\n if (count==temp1 && b==1 && !w[j][k].contains(\"B\")){\r\n w[j][k]+=\"B\";\r\n }\r\n else if (count==temp1 && b==2 && !w[j][k].contains(\"s\")){\r\n w[j][k]+=\"s\";\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "void mo19167a(String str, String str2, int i, String str3, int i2);", "public final void mo99830a(int i, int i2) {\n }", "public static void main(String[] args) {\n\t\tscn = new Scanner(System.in);\n\t\tSystem.out.print(\"Masukkan Baris: \");\n\t\tint baris = scn.nextInt();\n\t\tSystem.out.print(\"Masukkan Kolom: \");\n\t\tint kolom = scn.nextInt();\n\n\t\tint[][] myMatrik = new int[baris][kolom];\n\t\tint[][] outMatrik = inputMatrik(myMatrik);\n\t\tcetakMatrik(outMatrik);\n\t\tint[][] myMatrik1 = new int[baris][kolom];\n\t\tint[][] outMatrik1 = inputMatrik(myMatrik1);\n\t\tcetakMatrik(outMatrik1);\n\t\tint[][] hasilMatrik = kaliMatrik(outMatrik, outMatrik1);\n\t\tcetakMatrik(hasilMatrik);\n\n\t}", "public final void mo1469G(int i, int i2) {\n AppMethodBeat.m2504i(109598);\n C4990ab.m7416i(this.rZO.rZK.TAG, \"onInserted: \" + i + ' ' + i2);\n this.rZO.rZK.rZH.mo55968ai(this.rZO.rZk, i, i2);\n AppMethodBeat.m2505o(109598);\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public void mo9816d(int i, int i2) {\n mo9828m(20);\n mo9820l((i << 3) | 0);\n mo9820l(i2);\n }", "public void mo21804a(int i, int i2, String str) {\n if (i != this.f24537i || i2 != this.f24538j || !this.f24517T.equals(str)) {\n if (mo21822a(\"size\", Integer.valueOf(i), Integer.valueOf(i2), str)) {\n this.f24537i = i;\n this.f24538j = i2;\n this.f24517T = str;\n }\n }\n }", "public void mo3778a(int i, int i2) {\n this.f1434I = i;\n this.f1435J = i2;\n }", "void m15859a(int i, int i2);", "private int hammingDistance(int[] i, int[] i2) {\n\t\tint dist = 0;\n\t\tfor(int j = 0 ; j < i.length ; j++)\n\t\t\tdist += i[j] ^ i2[j]; // X-OR\n\t\treturn dist;\n\t}", "void mo34677H(String str, int i, int i2);", "protected String seuraavaBittijono(String binaarina, int i) {\n int loppu = Math.min(binaarina.length(), i + merkkienPituus);\n return binaarina.substring(i, loppu);\n }", "public abstract void mo9815c(int i, int i2);", "public void diagrafiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages \n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tSystem.out.println();\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO THS SYNTAGHS POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfPrescription)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO SYNTAGHS: \");\n\t\t\t}\n\t\t\t// Metakinw tis epomenes syntages mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfPrescription - 1; k++)\n\t\t\t{\n\t\t\t\tprescription[k] = prescription[k+1]; // Metakinw thn syntagh sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfPrescription--; // Meiwse ton ari8mo twn syntagwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMES SYNTAGES PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static void menuno(int menuno2) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.print(\"Unesi ime: \");\n\t\tScanner unos = new Scanner(System.in);\n\t\tString ime = unos.next();\n\t\t\n\t\t//prvi red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t System.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//drugi red crtica\n\t\tSystem.out.println(\": : : TABLICA MNOZENJA : : :\");\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tSystem.out.print(\" * |\");\n\t\tfor(int j=1;j<=9;j++){\n\t\t\tSystem.out.printf(\"%3d\",j);\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//treci red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tfor(int i=1;i<=9;i++){\n\t\t\tSystem.out.printf(\"%2d |\",i);\n\t\t\tfor(int j=1;j<=9;j++){\n\t\t\t\tSystem.out.printf(\"%3d\",i*j);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//cetvrti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\tfor(int k=0;k<8;k++){\n\t\t\tSystem.out.printf(\": \");\n\t\t}\n\t\tSystem.out.print(\":by \"+ime);\n\t\tSystem.out.println();\n\t\t\n\t\t//peti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\tunos.close();\n\t}", "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 }", "public void tablero(){\r\n System.out.println(\" X \");\r\n System.out.println(\" 1 2 3\");\r\n System.out.println(\" | |\");\r\n //imprimir primera fila\r\n System.out.println(\" 1 \"+gato[0][0]+\" | \"+gato[0][1]+\" | \"+gato[0][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir segunda fila\r\n System.out.println(\"Y 2 \"+gato[1][0]+\" | \"+gato[1][1]+\" | \"+gato[1][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir tercera fila\r\n System.out.println(\" 3 \"+gato[2][0]+\" | \"+gato[2][1]+\" | \"+gato[2][2]+\" \");\r\n System.out.println(\" | |\");\r\n }", "void mo34676dd(int i, int i2);", "void mo9704b(float f, float f2, int i);", "public final void mo5333a(int i, int i2) {\n this.f9709b.setMeasuredDimension(i, i2);\n }", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "private static void m848a(StringBuilder sb, int i, int i2, String str) {\n if ((i & i2) == i2) {\n sb.append(str);\n }\n }", "void Hrana(String start,String cil, char druh){\n\t\tint iStart = index(start);\n\t\tint iCil = index(cil);\n\t\t\n\t\tif(iStart == -1)\n\t\t\treturn;\n\t\tif(iCil == -1)\n\t\t\treturn;\n\t\t//orientovana hrana\n\t\tif(druh == '-' || druh == '>'){\n\t\t\tmatice[iStart][iCil] = 1;\n\t\t\tvrchP[iStart].pocetSousedu = vrchP[iStart].pocetSousedu +1;\n\t\t}\n\t\t\n\t\t//neorientovana\n\t\tif(druh == '-'){\n\t\t\tmatice[iCil][iStart] = 1;\n\t\t\tvrchP[iCil].pocetSousedu = vrchP[iCil].pocetSousedu +1;\t\n\t\t}\n\t\t\n\t\tHrana pom = new Hrana(start,cil,'W',druh);\n\t\thrana[pocetHr] = pom;\n\t\tpocetHr++;\n\t\t\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.\r\n\t\tb += 7;\r\n\t}", "@Override\n\tpublic void sanjiao() {\n\t\t\tfor (int i = 1; i <5; i++) {\n\t\t\t\tfor(int j=1;j<=2*i-1;j++){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "private static int m9034a(int i, int i2) {\n if (i == -1) {\n return i2 == -1 ? 0 : -1;\n }\n if (i2 == -1) {\n return 1;\n }\n return i - i2;\n }", "void m15861b(int i, int i2);", "public abstract void mo70708a(String str, int i, int i2);", "public abstract void mo4381c(int i, int i2);", "public void dorong(int nilai) {\r\n if (ukuran >= elemen.length) {\r\n int[] temp = new int[elemen.length * 2];\r\n System.arraycopy(elemen, 0, temp, 0, elemen.length);\r\n elemen = temp;\r\n }\r\n\r\n elemen[ukuran++] = nilai;\r\n }", "public abstract void mo4362a(int i, int i2);", "public final void mo8280a(int i, int i2, C1207m c1207m) {\n }", "private void m1938a(int i, double d, int i2) {\n int a = (int) m1936a(d);\n if (i2 == RainbowPalette.f2748b || i2 == RainbowPalette.f2749c) {\n C0538a.m1861a().mo4984a(getContext(), C0528a.m1795a().mo4941e(), i);\n } else if (i2 == RainbowPalette.f2750d) {\n C0538a.m1861a().mo4985a(getContext(), C0528a.m1795a().mo4941e(), 100 - a, a);\n } else if (i2 == RainbowPalette.f2751e) {\n C0538a.m1861a().mo4997b(getContext(), C0528a.m1795a().mo4941e(), a);\n }\n }", "private void info3(int i) {\n\t\t\n\t}", "private void mo4305g(int i, int i2) {\n this.f3139t.f3157c = this.f3140u.mo5112b() - i2;\n this.f3139t.f3159e = this.f3143x ? -1 : 1;\n C0784c cVar = this.f3139t;\n cVar.f3158d = i;\n cVar.f3160f = 1;\n cVar.f3156b = i2;\n cVar.f3161g = Integer.MIN_VALUE;\n }", "public String permutasi(int bil1, int bil2) {\n if(functions.permutasi(bil1, bil2) < 0){\n return \"tolong masukan a ≥ 0\"; \n }\n return (int)functions.permutasi(bil1, bil2)+\"\";\n }", "int mo1684a(byte[] bArr, int i, int i2);", "public static int m22581h(int i, int i2) {\n return m22569e(i) + m22576g(m22592m(i2));\n }", "static int m51587b(int i, int i2, float f) {\n return Math.round(((float) (i2 - i)) * f) + i;\n }", "public abstract void mo4386e(int i, int i2);" ]
[ "0.61581117", "0.6124259", "0.59645563", "0.59376293", "0.5821908", "0.57961303", "0.57534283", "0.5751974", "0.57237655", "0.5720385", "0.57147986", "0.5713675", "0.5713142", "0.57113093", "0.57090026", "0.5701512", "0.569355", "0.5692318", "0.56825083", "0.5669155", "0.56683075", "0.56639093", "0.56611913", "0.56595075", "0.56558955", "0.5648805", "0.56482774", "0.55681366", "0.55597645", "0.5551526", "0.55499756", "0.5545531", "0.55379885", "0.5537701", "0.552551", "0.5515976", "0.5515697", "0.5509143", "0.55039257", "0.54965466", "0.54939747", "0.5490569", "0.54805696", "0.5473042", "0.5465623", "0.5452993", "0.5452221", "0.5449857", "0.5443167", "0.54431576", "0.5439234", "0.54338884", "0.5425751", "0.54252505", "0.5422245", "0.5416897", "0.54068327", "0.53957754", "0.5391139", "0.53902245", "0.5385279", "0.5384325", "0.537624", "0.53703666", "0.53668493", "0.53484505", "0.5332911", "0.5325508", "0.5319191", "0.5311296", "0.53058153", "0.53006524", "0.53000957", "0.5299005", "0.5296333", "0.5294857", "0.52936304", "0.52927154", "0.52913076", "0.5289239", "0.5287669", "0.5287166", "0.52843475", "0.5281988", "0.52814883", "0.5277744", "0.5277072", "0.52767026", "0.52684796", "0.52680856", "0.52671385", "0.5266183", "0.525885", "0.52515966", "0.5244886", "0.5240671", "0.52374864", "0.5237118", "0.5232289", "0.52207327", "0.52167106" ]
0.0
-1
/ tambahkan baris i2 dengan hasil kali i1 dengan suatu konstanta k
void replaceRow(Matrix m, int i1, int i2, double k) { int j, n = m.cols; for (j=0; j<n; j++) { m.M[i2][j] = m.M[i2][j] + (k * m.M[i1][j]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //------------bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //--------bagian mencangkokkan simpul baru ke dalam simpul lama---------\n if (awal == null)// jika senarai kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kiri = akhir;\n akhir.kanan = baru;\n akhir = baru;\n akhir.kanan = null;\n }\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }", "@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "public static void tambahTengah() {\n Scanner masukan = new Scanner(System.in);\n System.out.println(\"\\nTentukan Lokasi Penambahan Data\");\n int LOKASI = masukan.nextInt();\n masukan.nextLine();\n\n int jumlahSimpulYangAda = hitungJumlahSimpul();\n if (LOKASI == 1) {\n System.out.println(\"Lakukan penambahan di depan\");\n } else if (LOKASI > jumlahSimpulYangAda) {\n System.out.println(\"Lakukan penambahan di belakang\");\n } else {\n\n //------------bagian entri data dari keyboard--------------\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH TENGAH : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //-- -- -- -- -- --bagian menemukan posisi yang dikehendaki-----------\n simpul bantu;\n bantu = awal;\n int i = 1;\n while ((i < LOKASI)\n && (bantu != akhir)) {\n bantu = bantu.kanan;\n i++;\n }\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru-----------\n simpul baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- --bagian mencangkokkan simpul baru ke dalam linkedlist lama------\n baru.kiri = bantu.kiri;\n baru.kiri.kanan = baru;\n baru.kanan = bantu;\n bantu.kiri = baru;\n }\n }", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public static void jawaban1() {\n int cari;\r\n boolean ditemukan = true;\r\n int a=0;\r\n\r\n //membentuk array yang berisi data\r\n int[] angka = new int[]{74, 98, 72, 74, 72, 90, 81, 72};\r\n \r\n //mengeluarkan array\r\n for (int i = 0; i < angka.length; i++) {\r\n System.out.print(angka [i]+\"\\t\");\r\n\r\n \r\n }\r\n\r\n\r\n //meminta user memasukkan angka yang hendak dicari\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"\\nMasukkan angka yang ingin anda cari dibawah sini\");\r\n cari = keyboard.nextInt();\r\n\r\n //proses pencarian atau pencocokan data pada array\r\n for (int i = 0; i < angka.length; i++) {\r\n if (cari == angka[i]) {\r\n ditemukan = true;\r\n \r\n System.out.println(\"Angka yang anda masukkan ada didalam data ini\");\r\n \r\n break;\r\n }\r\n\r\n }\r\n //proses hitung data\r\n if (ditemukan == true) {\r\n \r\n for (int i = 0; i < angka.length; i++) {\r\n if (angka[i]== cari){\r\n a++;\r\n }\r\n \r\n }\r\n\r\n }\r\n \r\n System.out.println(\"Selamat data anda dengan angka \"+cari+ \" ditemukan sebanyak \"+a);\r\n }", "public void simpanDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO tbl_kembali(nm_kategori, ala_kategori, no_kategori, kame_kategori, kd_kategori, sewa_kategori, kembali_kategori, lambat_kategori)\" + \"VALUES('\"+ nmKategori +\"','\"+ alaKategori +\"','\"+ noKategori +\"','\"+ kameKategori +\"','\"+ kdKategori +\"','\"+ sewaKategori +\"','\"+ lamKategori +\"','\"+ lambatKategori +\"')\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public frmPengembalian() {\n initComponents();\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblKembali.setModel(model);\n model.addColumn(\"NAMA\");\n model.addColumn(\"ALAMAT\");\n model.addColumn(\"NO. HP\");\n model.addColumn(\"NAMA KAMERA\");\n model.addColumn(\"KODE KAMERA\");\n model.addColumn(\"TANGGAL DISEWAKAN\");\n model.addColumn(\"TANGGAL DIKEMBALIKAN\");\n model.addColumn(\"TERLAMBAT\");\n\n \n //fungsi ambil data\n getDataKategori();\n }", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "public void SetBilangan(int i){\n\t\tTkn=TipeToken.Bilangan;\n\t\tTipeBilangan = Tipe._int;\n\t\tVal.I = i;\n\t}", "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public TambahProduk() {\n initComponents();\n conn = new Koneksi();\n dapat_produk();\n loadTable();\n }", "public tabelAnggota() {\n initComponents();\n \n //membuat tablemodel\n model = new DefaultTableModel();\n //menambah tablemodel ke tabel\n jTable1.setModel(model);\n \n model.addColumn(\"ID Anggota\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Alamat\");\n model.addColumn(\"No HP\");\n model.addColumn(\"Tanggal Lahir\");\n model.addColumn(\"Tanggal Bergabung\");\n \n loadData();\n enaButtonSimpan();\n }", "public static void main(String[] args) {\n\n Bilangan tampilan = new Bilangan();\n System.out.println(\"Nilai E = \"+tampilan.tampilkanE());\n System.out.println(\"Nilai F = \"+tampilan.tampilkanF());\n System.out.println(\"Nilai G = \"+tampilan.tampilkanG());\n\n //nilai diintput\n tampilan.inputE(100);\n System.out.println(\"Nilai E setelah diinput = \"+tampilan.tampilkanE());\n tampilan.inputF(200);\n System.out.println(\"Nilai F setelah diinput = \"+tampilan.tampilkanF());\n tampilan.inputG(300);\n System.out.println(\"Nilai G setelah diinput = \"+tampilan.tampilkanG());\n\n //panggil method tambah(), kurang(), kali(), bagi()\n System.out.println(\"Hasil pertambahan E, F dan G = \"+tampilan.tambah());\n System.out.println(\"Hasil pengurangan G dikurang E = \"+tampilan.kurang());\n System.out.println(\"Hasil perkalian E, F dan G = \"+tampilan.perkalian());\n System.out.println(\"Hasil pembagian G dibagi E = \"+tampilan.pembagian());\n }", "public void simpanDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO barang(kode_barang, nama_barang, merk_barang, jumlah_stok, harga)\"\n + \"VALUES('\"+ kode_barang +\"','\"+ nama_barang +\"','\"+ merk_barang +\"','\"+ jumlah_stok +\"','\"+ harga +\"')\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "public void showEdit() {\n DefaultTableCellRenderer alignCenter= new DefaultTableCellRenderer();\n alignCenter.setHorizontalAlignment(JLabel.CENTER);\n\n try {\n //register driver yang akan dipakai\n Class.forName(DriverDB);\n\n //menyambungkan ke database\n connectDB = DriverManager.getConnection(URL,USERNAME,PASSWORD);\n\n //mengatur table head atau nama kolom\n DefaultTableModel kerangkaTabel = new DefaultTableModel();\n kerangkaTabel.addColumn(\"Nomer\");\n kerangkaTabel.addColumn(\"Judul Buku\");\n kerangkaTabel.addColumn(\"Tanggal Pinjam\");\n kerangkaTabel.addColumn(\"Tanggal Harus Kembali\");\n kerangkaTabel.addColumn(\"Tanggal Kembali\");\n kerangkaTabel.addColumn(\"Denda\");\n kerangkaTabel.addColumn(\"Biaya Sewa\");\n\n //perintah sql nya\n statmt= connectDB.createStatement();\n String sql = \"SELECT * FROM sewabuku\";\n\n //eksekusi perintah sql\n setHasil= statmt.executeQuery(sql);\n\n //nomor urut untuk di dalam tabel\n //supaya tidak menggunakan id\n int no_urut=1;\n while (setHasil.next()){\n kerangkaTabel.addRow(new Object[] {\n //setHasil.getString(\"id\"),\n no_urut,\n setHasil.getString(\"judul\"),\n setHasil.getString(\"tanggal_pinjam\"),\n setHasil.getString(\"tanggal_harus_kembali\"),\n setHasil.getString(\"tanggal_kembali\"),\n setHasil.getString(\"denda\"),\n setHasil.getString(\"biaya_sewa\")\n });\n no_urut++;\n\n }\n setHasil.close();\n connectDB.close();\n statmt.close();\n\n //set table model tadi ke dalam JTables\n tableDanAksi.setModel(kerangkaTabel);\n\n //mengatur tinggi tiap baris\n tableDanAksi.setRowHeight(30);\n\n\n //mengatur penempatan teks/teks alignment tiap kolom, index kolom dimulai dari 0\n\n /*indeks 0 : kolom nomer\n * indeks 1 : kolom nama buku\n * indeks 2 : kolom tanggal pinjam\n * indeks 3 : kolom tanggal harus kembali\n * indeks 4 : kolom tanggal kembali\n * indeks 5 : kolom denda\n * indeks 6 : kolom sewa*/\n tableDanAksi.getColumnModel().getColumn(0).setCellRenderer(alignCenter);\n tableDanAksi.getColumnModel().getColumn(2).setCellRenderer(alignCenter);\n tableDanAksi.getColumnModel().getColumn(3).setCellRenderer(alignCenter);\n tableDanAksi.getColumnModel().getColumn(4).setCellRenderer(alignCenter);\n\n //mengatur lebar kolom\n TableColumnModel setKolom = tableDanAksi.getColumnModel();\n setKolom.getColumn(0).setPreferredWidth(5);\n// setKolom.getColumn(0).setPreferredWidth(5);\n// setKolom.getColumn(0).setPreferredWidth(5);\n// setKolom.getColumn(0).setPreferredWidth(5);\n// setKolom.getColumn(0).setPreferredWidth(5);\n// setKolom.getColumn(0).setPreferredWidth(5);\n\n\n }catch (SQLException eksepsi){\n System.out.println(eksepsi.getMessage());\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void tampilkan() {\n //To change body of generated methods, choose Tools | Templates.\n DefaultTableModel tabelpegawai = new DefaultTableModel();\n tabelpegawai.addColumn(\"NAMA\");\n tabelpegawai.addColumn(\"ALAMAT\");\n tabelpegawai.addColumn(\"HP\");\n tabelpegawai.addColumn(\"BBM\");\n tabelpegawai.addColumn(\"SITUS\");\n \n \n try {\n conek getCnn = new conek();\n con= null;\n con= (com.mysql.jdbc.Connection) getCnn.getConnection();\n String sql = \"select * from toko \";\n Statement stat = con.createStatement();\n ResultSet res=stat.executeQuery(sql);\n while (res.next()){\n tabelpegawai.addRow(new Object[]{res.getString(1),res.getString(2),res.getString(3),res.getString(4),res.getString(5)});\n }\n jTable1.setModel(tabelpegawai);\n } catch(Exception e){}\n }", "public void BacaIsi(int masalah){\r\n\t\t// KAMUS LOKAL\r\n\t\tint metode;\r\n\t\tint nbBrs;\r\n\t\tint nbKol;\r\n\r\n\t\tMatriks tempM;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t// ALGORITMA\r\n\t\tSystem.out.printf(\"Pilih metode pembacaan matriks \\n1. Input Keyboard \\n2. File \\n\");\r\n\r\n\t\tmetode = sc.nextInt();\r\n\r\n\t\tif (metode == 1) {\r\n\r\n\t\t\t// Menerima Masukan dari keyboard untuk SPL\r\n\t\t\tif (masalah == 1) {\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang baris:\");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang kolom:\");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t// Menerima Masukan untuk Interpolasi Linier dari Keyboard\r\n\t\t\telse if (masalah == 2) {\r\n\t\t\t\tString titik;\r\n\t\t\t\tScanner scanner = new Scanner(System.in).useDelimiter(\"line.separator\");\r\n\t\t\t\tScanner s;\r\n\r\n\t\t\t\tSystem.out.printf(\"Input N: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,2);\r\n\r\n\t\t\t\tSystem.out.println(\"Titik:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs+1; i++) {\r\n\t\t\t\t\ttitik = scanner.nextLine();\r\n\t\t\t\t\ttitik = titik.substring(1, titik.length()-1);\r\n\r\n\t\t\t\t\ts = new Scanner(titik).useDelimiter(\", \");\r\n\r\n\t\t\t\t\ttempM.Elmt[i][0] = s.nextDouble();\r\n\t\t\t\t\ttempM.Elmt[i][1] = s.nextDouble();\r\n\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tscanner.close();\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t//Menerima Masukan untuk Regresi Linier berganda\r\n\t\t\telse if (masalah == 3) {\r\n\t\t\t\tSystem.out.printf(\"Jumlah data: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Jumlah peubah: \");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol+1);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t// Menerima Masukan input untuk persoalan matriks inverse dan determinan\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Ukuran Matriks: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\t\t\t\ttempM = new Matriks(nbBrs, nbBrs);\r\n\t\t\t\tSystem.out.println(\"Elemen Matriks: \");\r\n\r\n\t\t\t\tfor(int i=0; i<nbBrs; i++){\r\n\t\t\t\t\tfor(int j=0; j<nbBrs; j++){\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menerima masukan dari file eksternal\r\n\t\telse if (metode == 2) {\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tdouble tempI;\r\n\r\n\t\t\tString b;\r\n\t\t\tString[] baris;\r\n\r\n\t\t\tSystem.out.printf(\"Masukkan alamat file: \");\r\n\t\t\tString alamat = sc.next();\r\n\r\n\t\t\tFile file = new File(alamat);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(file);\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tb = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\tbaris = new String[i];\r\n\t\t\t\ts = new Scanner(file);\r\n\t\t\t\tnbBrs = i;\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tbaris[i] = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\ts = new Scanner(baris[0]);\r\n\r\n\t\t\t\twhile (s.hasNextDouble()) {\r\n\t\t\t\t\ttempI = s.nextDouble();\r\n\t\t\t\t\tj = j + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\tnbKol = j;\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tfor (i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tsc = new Scanner(baris[i]);\r\n\r\n\t\t\t\t\tfor (j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tsc.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t} catch(FileNotFoundException e) {\r\n\t\t\t\tSystem.out.println(\"An error occured.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public Pasien(String nama, String alamat, String tempatLahir, int tanggalLahir, int bulanLahir, int tahunLahir, String NIK) {\r\n this.nama = nama;\r\n this.alamat = alamat;\r\n this.tempatLahir = tempatLahir;\r\n this.NIK = NIK;\r\n this.tanggalLahir = tanggalLahir;\r\n this.bulanLahir = bulanLahir;\r\n this.tahunLahir = tahunLahir;\r\n }", "@RequestMapping(value = \"/pegawai/tambah\", method = RequestMethod.POST)\n\tprivate String tambahPegawai(@ModelAttribute PegawaiModel pegawai, Model model) {\n\t\tProvinsiModel provinsi = pegawai.getInstansi().getProvinsi();\n\t\tString nip = \"\";\n\t\tnip = nip + provinsi.getId();\n\t\tint instansiLine = provinsi.getInstansiProvinsi().indexOf(pegawai.getInstansi()) + 1;\n\t\t\n\t\tif(instansiLine < 10) { \n\t\t\tnip = nip + \"0\"+ instansiLine;\n\t\t}else { \n\t\t\tnip = nip + instansiLine; \n\t\t\t}\n\t\t\n\t\tString formatTanggal = pegawai.getTanggal_lahir().toString();\n\t\tString formatDateBaru = formatTanggal.substring(8) + formatTanggal.substring(5, 7) + formatTanggal.substring(2, 4);\n\t\tnip = nip + formatDateBaru;\n\t\tnip+=pegawai.getTahun_masuk();//menambahkan tahun masuk untuk membuat nip\n\t\t\n\t\t//menambahkan urutan masuk untuk membuat nip\n\t\tInstansiModel instansi = pegawai.getInstansi();\n\t\tint nomorDepan=1;\n\t\tfor(PegawaiModel comparePegawai: instansi.getListPegawaiInstansi()) {\n\t\t\tif(nip.equals(comparePegawai.getNip().substring(0, 14))) {\n\t\t\t\tnomorDepan = nomorDepan + 1;\n\t\t\t}\n\t\t}\n\t\tif(nomorDepan < 10) {\n\t\t\tnip = nip + \"0\"+nomorDepan;\n\t\t}else {\n\t\t\tnip = nip + nomorDepan;\n\t\t}\n\t\t\n\t\tpegawai.setNip(nip);\n\t\tpegawaiService.addPegawai(pegawai);\n\t\tmodel.addAttribute(\"pegawai\", pegawai);\n\t\treturn \"dataBertambah\";\n\t}", "public MenuUtamaPenyedia() {\n initComponents();\n tabPenyedia.setTitleAt(0, \"View Profile\");\n tabPenyedia.setTitleAt(1, \"Edit Profile\");\n tabPenyedia.setTitleAt(2, \"Create Barang\");\n tglSpinner.setValue(0);\n blnSpinner.setValue(0);\n thnSpinner.setValue(2016);\n kbComboBox.setMaximumRowCount(2);\n kbComboBox.removeAllItems();\n kbComboBox.insertItemAt(\"Bagus\", 0);\n kbComboBox.insertItemAt(\"Tidak Bagus\", 1);\n }", "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); // yang anda ingin kan\n \n while(res.next()){\n Object[] ob = new Object[6];\n ob[0] = res.getString(1);\n \n comboId.addItem(ob[0]); // fungsi ini bertugas menampung isi dari database\n }\n res.close(); stt.close();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "public void tampil_tb_mahasiswa(){\n Object []baris = {\"No Bp\",\"Nama\",\"Tempat Lahir\",\"Tanggal Lhair\",\"Jurusan\",\"Tanggal Masuk\"};\n tabmode = new DefaultTableModel(null, baris);\n //tb_mahasiswa.setModel(tabmode);\n try {\n Connection con = new koneksi().getConnection();\n String sql = \"select * from tb_mahasiswa order by no_bp asc\";\n java.sql.Statement stat = con.createStatement();\n java.sql.ResultSet hasil = stat.executeQuery(sql);\n while (hasil.next()){\n String no_bp = hasil.getString(\"no_bp\");\n String nama = hasil.getString(\"nama\");\n String tempat_lahir = hasil.getString(\"tempat_lahir\");\n String tanggal_lahir = hasil.getString(\"tanggal_lahir\");\n String jurusan = hasil.getString(\"jurusan\"); \n String tanggal_masuk = hasil.getString(\"tanggal_masuk\");\n String[] data = {no_bp, nama, tempat_lahir, tanggal_lahir, jurusan, tanggal_masuk};\n tabmode.addRow(data);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Menampilkan data GAGAL\",\"Informasi\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "public trangchinhban() {\n\t\tsetBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\tsetBackground(Color.WHITE);\n\t\tsetLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"QU\\u1EA2N L\\u00DD B\\u00C0N\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Apps-Google-Drive-Fusion-Tables-icon.png\"));\n\t\tlblNewLabel_1.setBounds(117, 35, 211, 57);\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\n\t\tadd(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Tên Bàn :\");\n\t\tlblNewLabel_1_1.setBounds(27, 121, 80, 36);\n\t\tlblNewLabel_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1_1 = new JLabel(\"Ghi Ch\\u00FA :\");\n\t\tlblNewLabel_1_1_1.setBounds(27, 228, 80, 36);\n\t\tlblNewLabel_1_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1_1);\n\t\t\n\t\ttxtTenban = new JTextField();\n\t\ttxtTenban.setBackground(new Color(255, 255, 255));\n\t\ttxtTenban.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTenban.setCaretColor(new Color(0, 153, 153));\n\t\ttxtTenban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\ttxtTenban.setBounds(117, 126, 246, 29);\n\t\tadd(txtTenban);\n\t\t\n\t\ttxtGhichu = new JTextField();\n\t\ttxtGhichu.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(255, 102, 0)));\n\t\ttxtGhichu.setBounds(117, 233, 246, 29);\n\t\ttxtGhichu.setColumns(10);\n\t\tadd(txtGhichu);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tscrollPane.setBorder(new MatteBorder(2, 2, 2, 2, (Color) new Color(0, 153, 153)));\n\t\tscrollPane.setBackground(new Color(0, 153, 153));\n\t\tscrollPane.addAncestorListener(new AncestorListener() {\n\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\n\t\t\t}\n\t\t});\n\t\tscrollPane.setBounds(411, 35, 612, 227);\n\t\tadd(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setGridColor(new Color(255, 255, 255));\n\t\ttable.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\ttable.setForeground(new Color(255, 255, 255));\n\t\ttable.setBackground(new Color(255, 102, 51));\n\t\ttable.setFont(new Font(\"Times New Roman\", Font.BOLD, 12));\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmyindex = table.getSelectedRow();\n\t\t\t\ttxtTenban.setText(table.getValueAt(myindex, 1).toString());\n\t\t\t\ttxtTrangthai.setSelectedItem(table.getValueAt(myindex, 2).toString());\n\t\t\t\ttxtGhichu.setText(table.getValueAt(myindex, 3).toString());\n\t\t\t}\n\t\t});\n\t\ttable.setModel(new DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t\t\"STT\", \"Tên bàn\", \"Trạng thái\", \"Ghi chú\"\n\t\t\t}\n\t\t) {\n\t\t\tClass[] columnTypes = new Class[] {\n\t\t\t\tString.class, String.class, String.class, String.class\n\t\t\t};\n\t\t\tpublic Class getColumnClass(int columnIndex) {\n\t\t\t\treturn columnTypes[columnIndex];\n\t\t\t}\n\t\t\tboolean[] columnEditables = new boolean[] {\n\t\t\t\tfalse, true, true, true\n\t\t\t};\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn columnEditables[column];\n\t\t\t}\n\t\t});\n\t\tscrollPane.setViewportView(table);\n\t\t\n\t\tJButton themban = new JButton(\" Th\\u00EAm b\\u00E0n\");\n\t\tthemban.setBorder(new MatteBorder(2, 8, 2, 8, (Color) new Color(51, 204, 102)));\n\t\tthemban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\n\t\t\t\tTable ban = new Table(tenban,trangthai,ghichu);\n\t\t\t\t\n\t\t\t\tTableThaoTac.insert(ban);\n\t\t\t\t\n\t\t\t\tShowTable();\n\t\t\t}\n\t\t});\n\t\tthemban.setBackground(new Color(255, 255, 255));\n\t\tthemban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\add-1-icon.png\"));\n\t\tthemban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tthemban.setBounds(64, 295, 127, 45);\n\t\tadd(themban);\n\t\t\n\t\tJButton xoaban = new JButton(\" X\\u00F3a b\\u00E0n\");\n\t\txoaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 51, 0)));\n\t\txoaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint selectedIndex = table.getSelectedRow();\n\t\t\t\tif(selectedIndex >=0) {\n\t\t\t\t\tTable stt = listTable.get(selectedIndex);\n\t\t\t\t\tint option = JOptionPane.showConfirmDialog(getRootPane(), \"Bạn có muốn xóa không ?\");\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tTableThaoTac.delete(stt.getSttban());\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\txoaban.setBackground(new Color(255, 255, 255));\n\t\txoaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Actions-button-cancel-icon.png\"));\n\t\txoaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\txoaban.setBounds(231, 362, 127, 45);\n\t\tadd(xoaban);\n\t\t\n\t\tJLabel lblNewLabel_1_1_2 = new JLabel(\"Trạng thái :\");\n\t\tlblNewLabel_1_1_2.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tlblNewLabel_1_1_2.setBounds(27, 172, 80, 36);\n\t\tadd(lblNewLabel_1_1_2);\n\t\ttxtTrangthai.setDebugGraphicsOptions(DebugGraphics.NONE_OPTION);\n\t\ttxtTrangthai.setEditable(true);\n\t\ttxtTrangthai.setFocusCycleRoot(true);\n\t\ttxtTrangthai.setForeground(new Color(0, 0, 0));\n\t\ttxtTrangthai.setBackground(new Color(255, 255, 255));\n\t\ttxtTrangthai.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTrangthai.setModel(new DefaultComboBoxModel(new String[] {\"Còn trống\", \"Hết chỗ\", \"Đã đặt\"}));\n\t\ttxtTrangthai.setBounds(117, 177, 246, 29);\n\t\tadd(txtTrangthai);\n\t\t\n\t\tJButton suaban = new JButton(\"Sửa bàn\");\n\t\tsuaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 204, 0)));\n\t\tsuaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\document-edit-icon.png\"));\n\t\tsuaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (txtTenban.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Lỗi\");\n\t\t\t\t} else {\n\t\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\tTable ban = new Table(myindex +1,tenban,trangthai,ghichu);\n\t\t\t\t\tTableThaoTac.update(ban);\n\t\t\t\t\t;\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsuaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tsuaban.setBackground(new Color(255, 255, 255));\n\t\tsuaban.setBounds(64, 362, 127, 45);\n\t\tadd(suaban);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe.png\"));\n\t\tlblNewLabel.setBounds(459, 272, 255, 220);\n\t\tadd(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\n\t\tlblNewLabel_2.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe hh.png\"));\n\t\tlblNewLabel_2.setBounds(754, 297, 211, 160);\n\t\tadd(lblNewLabel_2);\n\t\t\n\t\tJButton lammoi = new JButton(\"Làm mới\");\n\t\tlammoi.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 102, 0)));\n\t\tlammoi.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtTenban.setText(\"\");\n\t\t\t\ttxtTrangthai.setSelectedIndex(0);\n\t\t\t\ttxtGhichu.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tlammoi.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\system-software-update-icon (1).png\"));\n\t\tlammoi.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tlammoi.setBackground(new Color(255, 255, 255));\n\t\tlammoi.setBounds(231, 295, 127, 45);\n\t\tadd(lammoi);\n\t\t\n\t\tdfModel = (DefaultTableModel) table.getModel();\n\t\tShowTable();\n\t\t\n\t}", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "private void btnTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTambahActionPerformed\n tambahUbah = 1;\n TambahUbahTIK t = new TambahUbahTIK();\n t.setVisible(true);\n this.dispose();\n }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n tf_id_kategori = new javax.swing.JTextField();\n tf_nama_kategori = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n cari = new javax.swing.JButton();\n tambah = new javax.swing.JButton();\n simpan = new javax.swing.JButton();\n ubah = new javax.swing.JButton();\n hapus = new javax.swing.JButton();\n refresh = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n pencarian = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jumlah_data = new javax.swing.JLabel();\n batal = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tf_keterangan = new javax.swing.JTextArea();\n jLabel4 = new javax.swing.JLabel();\n keluar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Master Kategori\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Nama Kategori\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 142, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setText(\"Keterangan\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 177, -1, -1));\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel12.setText(\":\");\n getContentPane().add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(144, 177, -1, -1));\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel11.setText(\":\");\n getContentPane().add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(144, 142, -1, -1));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel10.setText(\":\");\n jLabel10.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(144, 104, -1, -1));\n\n tf_id_kategori.setEditable(false);\n tf_id_kategori.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n tf_id_kategori.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 10, 1, 1));\n tf_id_kategori.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n tf_id_kategori.setMargin(new java.awt.Insets(0, 3, 0, 3));\n getContentPane().add(tf_id_kategori, new org.netbeans.lib.awtextra.AbsoluteConstraints(156, 98, 80, 30));\n\n tf_nama_kategori.setEditable(false);\n tf_nama_kategori.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n tf_nama_kategori.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 10, 1, 1));\n tf_nama_kategori.setMargin(new java.awt.Insets(0, 3, 0, 3));\n tf_nama_kategori.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tf_nama_kategoriKeyTyped(evt);\n }\n });\n getContentPane().add(tf_nama_kategori, new org.netbeans.lib.awtextra.AbsoluteConstraints(156, 134, 250, 30));\n\n jScrollPane2.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n\n jTable1.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\", \"Title 5\", \"Title 6\", \"Title 7\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, false, false, true, true, true, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable1.setRowHeight(17);\n jTable1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTable1MouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jTable1);\n\n getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(9, 327, 1021, 192));\n\n cari.setText(\"Cari\");\n cari.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n cari.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n cari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cariActionPerformed(evt);\n }\n });\n getContentPane().add(cari, new org.netbeans.lib.awtextra.AbsoluteConstraints(708, 284, 87, 37));\n\n tambah.setText(\"Tambah\");\n tambah.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n tambah.setBorderPainted(false);\n tambah.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tambah.setIconTextGap(2);\n tambah.setMargin(new java.awt.Insets(2, 0, 2, 0));\n tambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tambahActionPerformed(evt);\n }\n });\n getContentPane().add(tambah, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 286, 87, 37));\n\n simpan.setText(\"Simpan\");\n simpan.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n simpan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n simpan.setEnabled(false);\n simpan.setIconTextGap(1);\n simpan.setMargin(new java.awt.Insets(2, 0, 2, 0));\n simpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n simpanActionPerformed(evt);\n }\n });\n getContentPane().add(simpan, new org.netbeans.lib.awtextra.AbsoluteConstraints(102, 286, 87, 37));\n\n ubah.setText(\"Ubah\");\n ubah.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n ubah.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n ubah.setEnabled(false);\n ubah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ubahActionPerformed(evt);\n }\n });\n getContentPane().add(ubah, new org.netbeans.lib.awtextra.AbsoluteConstraints(194, 286, 87, 37));\n\n hapus.setText(\"Hapus\");\n hapus.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n hapus.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n hapus.setEnabled(false);\n hapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hapusActionPerformed(evt);\n }\n });\n getContentPane().add(hapus, new org.netbeans.lib.awtextra.AbsoluteConstraints(286, 286, 87, 37));\n\n refresh.setText(\"Refresh\");\n refresh.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n refresh.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n refresh.setMargin(new java.awt.Insets(2, 0, 2, 0));\n refresh.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n refreshActionPerformed(evt);\n }\n });\n getContentPane().add(refresh, new org.netbeans.lib.awtextra.AbsoluteConstraints(852, 523, 87, 37));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Jumlah Data\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(24, 533, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 28)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"MASTER KATEGORI\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 35, -1, -1));\n\n pencarian.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n pencarian.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 10, 1, 1));\n pencarian.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\n pencarian.setMargin(new java.awt.Insets(0, 3, 0, 3));\n pencarian.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pencarianActionPerformed(evt);\n }\n });\n getContentPane().add(pencarian, new org.netbeans.lib.awtextra.AbsoluteConstraints(798, 284, 232, 37));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"ID Kategori\");\n jLabel7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 104, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"APLIKASI PERPUSTAKAAN\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 20, -1, 14));\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 255, 255));\n jLabel17.setText(\":\");\n getContentPane().add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 533, -1, -1));\n\n jumlah_data.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jumlah_data.setForeground(new java.awt.Color(255, 255, 255));\n jumlah_data.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jumlah_data.setText(\"0000\");\n getContentPane().add(jumlah_data, new org.netbeans.lib.awtextra.AbsoluteConstraints(121, 533, 38, -1));\n\n batal.setText(\"Batal\");\n batal.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n batal.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n batal.setMargin(new java.awt.Insets(2, 0, 2, 0));\n batal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n batalActionPerformed(evt);\n }\n });\n getContentPane().add(batal, new org.netbeans.lib.awtextra.AbsoluteConstraints(378, 286, 87, 37));\n\n tf_keterangan.setEditable(false);\n tf_keterangan.setColumns(20);\n tf_keterangan.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n tf_keterangan.setRows(5);\n tf_keterangan.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 10, 1, 1));\n tf_keterangan.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tf_keteranganKeyTyped(evt);\n }\n });\n jScrollPane1.setViewportView(tf_keterangan);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(156, 170, 250, 101));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar/icon4.png\"))); // NOI18N\n jLabel4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 10, 70, 64));\n\n keluar.setText(\"Keluar\");\n keluar.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n keluar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n keluar.setMargin(new java.awt.Insets(2, 0, 2, 0));\n keluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n keluarActionPerformed(evt);\n }\n });\n getContentPane().add(keluar, new org.netbeans.lib.awtextra.AbsoluteConstraints(944, 523, 87, 37));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar/Form Master.jpg\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n setLocationRelativeTo(null);\n }", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"Nis\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Sekolah\");\n model.addColumn(\"Jurusan\");\n model.addColumn(\"Tempat PKL\");\n model.addColumn(\"Total Nilai\");\n\n //menampilkan data database kedalam tabel\n try {\n int no = 1;\n String sql = \"select * from tampil_nilai\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2), res.getString(3),\n res.getString(4), res.getString(5), res.getString(6)});\n \n }\n jTable1.setModel(model);\n } catch (SQLException e) {\n }\n\n \n \n try {\n String sql = \"select * from jurusan\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil1 = new Object[3];\n int counter = 0;\n while (res.next()) { \n jComboBoxjurusan.addItem(res.getString(2));\n this.hasil1[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n \n try {\n String sql = \"select * from lab\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil2 = new Object[5];\n int counter = 0;\n while (res.next()) {\n \n jComboBoxpkl.addItem(res.getString(2));\n this.hasil2[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n }", "public static void main(String[] args){\n //deklarasi variabel\n String nama, alamat, hobi;\n int usia, nilai;\n \n //membuat scanner baru\n Scanner keyboard = new Scanner(System.in);\n \n //tampilkan output ke user\n System.out.println(\"## Pendaftaran Mahasiswa Baru Universitas Mercu Buana Bekasi\");\n System.out.print(\"Nama Mahasiswa: \");\n //menggunakan Scanner dan menyimpan apa yang diketik divariabel nama\n nama = keyboard.nextLine();\n //Tampilkan output lagi\n System.out.print(\"Alamat: \");\n //menggunakan scanner lagi\n alamat = keyboard.nextLine();\n \n System.out.print(\"Hobi: \");\n hobi = keyboard.nextLine();\n \n System.out.print(\"Usia: \");\n usia = keyboard.nextInt();\n \n System.out.print(\"Nilai: \");\n nilai = keyboard.nextInt();\n \n //menampilkan apa yang sudah disimpan di variabel\n System.out.println(\"-----------------------------\");\n System.out.println(\"Nama Mahasiswa: \" + nama);\n System.out.println(\"Alamat: \" + alamat);\n System.out.println(\"Usia: \" + usia);\n System.out.println(\"Nilai: \" + nilai);\n }", "public transaksi() {\n initComponents();\n judul();\n tampildata();\n judulbarang();\n tampilbarang();\n reset();\n autokode();\n total();\n lkembali.setText(\"Rp. 0\");\n bcek.requestFocus();\n ltgl.setText(hari); \n bhapus.setVisible(false);\n bedit.setVisible(false);\n bbeli.setVisible(true);\n breset.setVisible(true);\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public static void main(String[] args) {\n Mahasiswa Mahasiswa1 = new Mahasiswa();\r\n Mahasiswa1.nama = \"Lukman\";\r\n Mahasiswa1.nim = \"2015069001\";\r\n Mahasiswa1.jurusan = \"Teknik Mendengkur\";\r\n Mahasiswa1.Fakultas = \"Fakultas Tidur\";\r\n Mahasiswa1.angkatan = 2015;\r\n Mahasiswa1.univ = \"Universitas Rebahan\";\r\n Mahasiswa1.ipk = 3.69;\r\n Mahasiswa1.umur = 24;\r\n\r\n System.out.println(Mahasiswa1.nama);\r\n System.out.println(Mahasiswa1.nim);\r\n System.out.println(Mahasiswa1.jurusan);\r\n System.out.println(Mahasiswa1.Fakultas);\r\n System.out.println(Mahasiswa1.angkatan);\r\n System.out.println(Mahasiswa1.univ);\r\n System.out.println(Mahasiswa1.ipk);\r\n System.out.println(Mahasiswa1.umur);\r\n\r\n //bikin objek baru\r\n Mahasiswa Mahasiswa2 = new Mahasiswa();\r\n\r\n Mahasiswa2.nama = \"Budi\";\r\n Mahasiswa2.nim = \"2020069001\";\r\n Mahasiswa2.jurusan = \"Teknik Mendengkur\";\r\n Mahasiswa2.Fakultas = \"Fakultas Tidur\";\r\n Mahasiswa2.univ = \"Universitas Rebahan\";\r\n Mahasiswa2.ipk = 2.69;\r\n Mahasiswa2.umur = 17;\r\n\r\n System.out.println(Mahasiswa1.nama);\r\n System.out.println(Mahasiswa1.nim);\r\n System.out.println(Mahasiswa1.jurusan);\r\n System.out.println(Mahasiswa1.Fakultas);\r\n System.out.println(Mahasiswa1.angkatan);\r\n System.out.println(Mahasiswa1.univ);\r\n System.out.println(Mahasiswa1.ipk);\r\n System.out.println(Mahasiswa1.umur);\r\n\r\n }", "public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public DanhSachHocPhanDaDangKi() {\n initComponents();\n updateTable();\n }", "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "public void tabelpembayaran(){\n DefaultTableModel tbl = new DefaultTableModel();\n //tbl.addColumn(\"Kode\");\n tbl.addColumn(\"TGL Audit\");\n tbl.addColumn(\"TGL Pembayaran\");\n tbl.addColumn(\"Status\");\n tbl.addColumn(\"Grup\");\n tbl.addColumn(\"Aktivitas\");\n tbl.addColumn(\"JML Anggota\");\n tbl.addColumn(\"HA\");\n tbl.addColumn(\"Gaji PerHA\");\n tbl.addColumn(\"Gaji Anggota\");\n tbl.addColumn(\"Total\");\n tblpembayaran.setModel(tbl);\n try{\n java.sql.Statement statement=(java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res=statement.executeQuery(\"select * from tblpembayaran\");\n while(res.next())\n {\n tbl.addRow(new Object[]{\n res.getString(\"tanggal_audit\"),\n res.getString(\"tanggal_pembayaran\"), \n res.getString(\"status_pembayaran\"),\n res.getString(\"nama_grup\"),\n res.getString(\"nama_aktivitas\"),\n res.getInt(\"jumlah_anggota\"),\n res.getInt(\"ha\"),\n res.getInt(\"harga\"),\n res.getInt(\"gaji_peranggota\"),\n res.getInt(\"total\")\n });\n tblpembayaran.setModel(tbl); \n }\n }catch (Exception e){\n JOptionPane.showMessageDialog(rootPane,\"Salah\");\n }\n \n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }", "public void actionPerformed(ActionEvent evt){ ////klik ALT+ENTER -> import actionPerformed ->TOP\n String nol_bulan=\"\";\n String nol_hari=\"\";\n String nol_jam=\"\";\n String nol_menit=\"\";\n String nol_detik=\"\";\n Calendar dt=Calendar.getInstance(); ////untuk mengambil informasi waktu\n \n int nilai_jam=dt.get(Calendar.HOUR_OF_DAY); ////3.Calendar.HOUR_OF_DAY digunakan untuk settingan jam\n int nilai_menit=dt.get(Calendar.MINUTE); ////4.Calendar.MINUTE digunakan untuk settingan menit\n int nilai_detik=dt.get(Calendar.SECOND); ////5.Calendar.SECOND digunakan untuk settingan detik\n \n \n if(nilai_jam<=9){\n nol_jam=\"0\";\n }\n if(nilai_menit<=9){\n nol_menit=\"0\";\n }\n if(nilai_detik<=9){\n nol_detik=\"0\";\n }\n \n String jam=nol_jam+Integer.toString(nilai_jam);\n String menit=nol_menit+Integer.toString(nilai_menit);\n String detik=nol_detik+Integer.toString(nilai_detik);\n jammm.setText(jam+\":\"+menit+\":\"+detik); ////6.Label dengan variabel \"jammm\" akan berubah sesuai settingan jam menit dan detik\n\n }", "public Form_Barang() {\n initComponents();\n model = new DefaultTableModel();\n \n barang.setModel(model);\n model.addColumn(\"KODE PRODUK\");\n model.addColumn(\"NAMA PRODUK\");\n model.addColumn(\"MERK BARANG\");\n model.addColumn(\"JUMLAH STOK\");\n model.addColumn(\"HARGA\");\n getDataProduk();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtID = new javax.swing.JTextField();\n txtNama = new javax.swing.JTextField();\n txtAlamat = new javax.swing.JTextField();\n txtHp = new javax.swing.JTextField();\n cbAgama = new javax.swing.JComboBox<>();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabelKaryawan = new javax.swing.JTable();\n tbGaji = new javax.swing.JButton();\n tbSimpan = new javax.swing.JButton();\n tbEdit = new javax.swing.JButton();\n tbHapus = new javax.swing.JButton();\n tbBatal = new javax.swing.JButton();\n tbKeluar = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n Laki = new javax.swing.JRadioButton();\n Perempuan = new javax.swing.JRadioButton();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Karyawan\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setPreferredSize(new java.awt.Dimension(700, 520));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"ID Karyawan\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 80, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Nama\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 110, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Agama\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 170, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Alamat\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 200, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"No HP\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 230, -1, -1));\n\n txtID.setFont(new java.awt.Font(\"Levenim MT\", 0, 12)); // NOI18N\n getContentPane().add(txtID, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 80, 113, -1));\n\n txtNama.setFont(new java.awt.Font(\"Levenim MT\", 0, 12)); // NOI18N\n getContentPane().add(txtNama, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 110, 162, -1));\n\n txtAlamat.setFont(new java.awt.Font(\"Levenim MT\", 0, 12)); // NOI18N\n getContentPane().add(txtAlamat, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 200, 217, -1));\n\n txtHp.setFont(new java.awt.Font(\"Levenim MT\", 0, 12)); // NOI18N\n getContentPane().add(txtHp, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 230, 160, -1));\n\n cbAgama.setBackground(new java.awt.Color(102, 255, 153));\n cbAgama.setFont(new java.awt.Font(\"Levenim MT\", 0, 12)); // NOI18N\n cbAgama.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Islam\", \"Protestan\", \"Katolik\", \"Hindu\", \"Buddha\", \"Konghucu\" }));\n cbAgama.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n getContentPane().add(cbAgama, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 170, 121, -1));\n\n tabelKaryawan.setBackground(new java.awt.Color(0, 153, 153));\n tabelKaryawan.setForeground(new java.awt.Color(255, 255, 255));\n tabelKaryawan.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tabelKaryawan.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabelKaryawanMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tabelKaryawan);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, 660, 150));\n\n tbGaji.setIcon(new javax.swing.ImageIcon(\"D:\\\\YOUTUBE ADSENSE\\\\Projectku\\\\Kuliah\\\\Tugas\\\\Kelas 2\\\\Pemrograman Berorientasi Objek\\\\Praktikum\\\\Project\\\\Data\\\\51455-pegawai-pnesdfsdfg-2.png\")); // NOI18N\n tbGaji.setToolTipText(\"Gaji Karyawan\");\n tbGaji.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tbGaji.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbGajiActionPerformed(evt);\n }\n });\n getContentPane().add(tbGaji, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 10, 80, 60));\n\n tbSimpan.setBackground(new java.awt.Color(51, 153, 0));\n tbSimpan.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n tbSimpan.setForeground(new java.awt.Color(255, 255, 255));\n tbSimpan.setText(\"Tambah\");\n tbSimpan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tbSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbSimpanActionPerformed(evt);\n }\n });\n getContentPane().add(tbSimpan, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 270, -1, -1));\n\n tbEdit.setBackground(new java.awt.Color(51, 153, 0));\n tbEdit.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n tbEdit.setForeground(new java.awt.Color(255, 255, 255));\n tbEdit.setText(\"Edit\");\n tbEdit.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tbEdit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbEditActionPerformed(evt);\n }\n });\n getContentPane().add(tbEdit, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 270, -1, -1));\n\n tbHapus.setBackground(new java.awt.Color(204, 0, 0));\n tbHapus.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n tbHapus.setForeground(new java.awt.Color(255, 255, 255));\n tbHapus.setText(\"Hapus Data\");\n tbHapus.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tbHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbHapusActionPerformed(evt);\n }\n });\n getContentPane().add(tbHapus, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 270, -1, -1));\n\n tbBatal.setBackground(new java.awt.Color(51, 153, 0));\n tbBatal.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n tbBatal.setForeground(new java.awt.Color(255, 255, 255));\n tbBatal.setText(\"Clear\");\n tbBatal.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tbBatal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbBatalActionPerformed(evt);\n }\n });\n getContentPane().add(tbBatal, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 270, -1, -1));\n\n tbKeluar.setBackground(new java.awt.Color(204, 0, 0));\n tbKeluar.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n tbKeluar.setForeground(new java.awt.Color(255, 255, 255));\n tbKeluar.setText(\"Exit\");\n tbKeluar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n tbKeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbKeluarActionPerformed(evt);\n }\n });\n getContentPane().add(tbKeluar, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 260, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"Jenis Kelamin\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 140, -1, -1));\n\n buttonGroup1.add(Laki);\n Laki.setFont(new java.awt.Font(\"Levenim MT\", 1, 12)); // NOI18N\n Laki.setForeground(new java.awt.Color(255, 255, 255));\n Laki.setText(\"L\");\n Laki.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n LakiActionPerformed(evt);\n }\n });\n getContentPane().add(Laki, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 140, -1, -1));\n\n buttonGroup1.add(Perempuan);\n Perempuan.setFont(new java.awt.Font(\"Levenim MT\", 1, 12)); // NOI18N\n Perempuan.setForeground(new java.awt.Color(255, 255, 255));\n Perempuan.setText(\"P\");\n getContentPane().add(Perempuan, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 140, -1, -1));\n\n jButton1.setIcon(new javax.swing.ImageIcon(\"D:\\\\YOUTUBE ADSENSE\\\\Projectku\\\\Kuliah\\\\Tugas\\\\Kelas 2\\\\Pemrograman Berorientasi Objek\\\\Praktikum\\\\Project\\\\Data\\\\menuhasil.png\")); // NOI18N\n jButton1.setToolTipText(\"Menu\");\n jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 50, 50));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"DATA KARYAWAN\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 10, -1, -1));\n\n jPanel1.setBackground(new java.awt.Color(90, 200, 200));\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 720, 510));\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n Hapus = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n batal = new javax.swing.JButton();\n txtoperator = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n isihargadefault = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n isihargajual = new javax.swing.JTextField();\n isihargamember = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n isiidpulsa = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabelpulsa = new javax.swing.JTable();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setTitle(\"PULSA\");\n setAutoscrolls(true);\n setOpaque(true);\n setVisible(false);\n\n jButton1.setText(\"Tambah\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"ID PULSA\");\n\n Hapus.setText(\"Hapus\");\n Hapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n HapusActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Edit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n batal.setText(\"Batal\");\n batal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n batalActionPerformed(evt);\n }\n });\n\n txtoperator.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtoperatorActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"OPERATOR\");\n\n jLabel6.setText(\"HARGA JUAL\");\n\n jLabel5.setText(\"HARGA DEFAULT \");\n\n jLabel7.setText(\"HARGA MEMBER\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel8.setText(\"PULSA\");\n\n tabelpulsa.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabelpulsa.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n tabelpulsa.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabelpulsaMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tabelpulsa);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(341, 341, 341)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(84, 84, 84)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(36, 36, 36)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(isiidpulsa)\n .addComponent(txtoperator, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(43, 43, 43)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(isihargadefault)\n .addComponent(isihargajual)\n .addComponent(isihargamember, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Hapus)\n .addGap(18, 18, 18)\n .addComponent(batal)\n .addGap(83, 83, 83))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 769, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtoperator, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isiidpulsa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(isihargadefault, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(isihargajual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(isihargamember, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2)\n .addComponent(Hapus)\n .addComponent(batal))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20))\n );\n\n pack();\n }", "void hienThi() {\n LoaiVT.Open();\n ArrayList<LoaiVT> DSSP = LoaiVT.DSLOAIVT;\n VatTu PX = VatTu.getPX();\n \n try {\n txtMaVT.setText(PX.getMaVT());\n txtTenVT.setText(PX.getTenVT());\n txtDonVi.setText(PX.getDVT());\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n for(LoaiVT SP: DSSP){ \n cb.addElement(SP.getMaLoai());\n if(SP.getMaLoai().equals(PX.getMaLoai())){\n cb.setSelectedItem(SP.getMaLoai());\n }\n }\n cbMaloai.setModel(cb);\n } catch (Exception ex) {\n txtMaVT.setText(\"\");\n txtTenVT.setText(\"\");\n txtDonVi.setText(\"\");\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n cb.setSelectedItem(\"\");\n cbMaloai.setModel(cb);\n }\n \n \n }", "public main(String nama) {\n initComponents();\n hargat();\n selectData();\n String nama_kasir = nama;\n kasir.setText(nama);\n }", "public static void main(String[] args) {\n\t\tScanner key = new Scanner(System.in);\n\t\tint cari, index, banyak=0;\n\t\tArrayList<Integer> arrAngka = new ArrayList<>();\n\t\tArrayList<Integer> posisi = new ArrayList<>();\n\t\tarrAngka.add(4); \n\t\tarrAngka.add(3);\n\t\tarrAngka.add(2);\n\t\tarrAngka.add(4);\n\t\tarrAngka.add(2);\n\t\t\n\t\tarrAngka.add(6);\n\t\tarrAngka.add(2);\n\t\tarrAngka.add(5);\n\t\tarrAngka.add(5);\n\t\tarrAngka.add(7);\n\t\t\n\t\tarrAngka.add(5);\n\t\tarrAngka.add(3);\n\t\tarrAngka.add(5);\n\t\tarrAngka.add(3);\n\t\tarrAngka.add(3);\n\t\t\n\t\tarrAngka.add(23);\n\t\tarrAngka.add(4);\n\t\tarrAngka.add(6);\n\t\tarrAngka.add(5);\n\t\tarrAngka.add(3);\n\t\t\n\t\tarrAngka.add(4);\n\t\tarrAngka.add(4);\n\t\tarrAngka.add(2);\n\t\tarrAngka.add(2);\n\t\t\n\t\tSystem.out.print(\"Masukan angka yang dicari : \");\n\t\tcari = key.nextInt();\n\t\tfor(index = 0 ; index < arrAngka.size(); index++) {\n\t\t\tif(cari == arrAngka.get(index)) {\n\t\t\t\tbanyak += 1;\n\t\t\t\tposisi.add(index + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Angka \" + cari + \" ada \" + banyak +\", ditemukan pada posisi\");\n\t\tfor (Integer integer : posisi) {\n\t\t\tSystem.out.print(integer +\", \");\n\t\t}\n\t}", "private void load_buku() {\n Object header[] = {\"ID BUKU\", \"JUDUL BUKU\", \"PENGARANG\", \"PENERBIT\", \"TAHUN TERBIT\"};\n DefaultTableModel data = new DefaultTableModel(null, header);\n bookTable.setModel(data);\n String sql_data = \"SELECT * FROM tbl_buku\";\n try {\n Connection kon = koneksi.getConnection();\n Statement st = kon.createStatement();\n ResultSet rs = st.executeQuery(sql_data);\n while (rs.next()) {\n String d1 = rs.getString(1);\n String d2 = rs.getString(2);\n String d3 = rs.getString(3);\n String d4 = rs.getString(4);\n String d5 = rs.getString(5);\n\n String d[] = {d1, d2, d3, d4, d5};\n data.addRow(d);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\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 jPanel3 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n admin = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n kd_brg = new javax.swing.JTextField();\n harga = new javax.swing.JTextField();\n nm_brg = new javax.swing.JTextField();\n packaging = new javax.swing.JComboBox<>();\n kategori = new javax.swing.JComboBox<>();\n jPanel4 = new javax.swing.JPanel();\n simpan = new javax.swing.JButton();\n ubah = new javax.swing.JButton();\n bersihkan = new javax.swing.JButton();\n hapus = new javax.swing.JButton();\n keluar = new javax.swing.JButton();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n table = new javax.swing.JTable();\n jLabel9 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n cari = new javax.swing.JButton();\n jPanel6 = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel2.setBackground(new java.awt.Color(204, 255, 204));\n\n jPanel3.setBackground(new java.awt.Color(0, 255, 0));\n\n jLabel6.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\n jLabel6.setText(\"DATA BARANG DI TOKO\");\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 12)); // NOI18N\n jLabel7.setText(\"ADMIN TOKO :\");\n\n admin.setBackground(new java.awt.Color(255, 255, 255));\n admin.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\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.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(337, 337, 337)\n .addComponent(jLabel6))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(admin, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\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()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(admin, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addContainerGap(28, Short.MAX_VALUE))\n );\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel1.setText(\"KODE BARANG\");\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel2.setText(\"NAMA BARANG\");\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel3.setText(\"KATEGORI BARANG\");\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel4.setText(\"JENIS PACKAGING\");\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel5.setText(\"HARGA\");\n\n packaging.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pack\", \"Plastik\" }));\n\n kategori.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Makanan\", \"Baranglain\", \" \" }));\n\n jPanel4.setBackground(new java.awt.Color(0, 255, 204));\n\n simpan.setText(\"SIMPAN\");\n simpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n simpanActionPerformed(evt);\n }\n });\n\n ubah.setText(\"UBAH\");\n ubah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ubahActionPerformed(evt);\n }\n });\n\n bersihkan.setText(\"BERSIHKAN\");\n bersihkan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bersihkanActionPerformed(evt);\n }\n });\n\n hapus.setText(\"HAPUS\");\n hapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hapusActionPerformed(evt);\n }\n });\n\n keluar.setText(\"KELUAR\");\n keluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n keluarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(simpan, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bersihkan))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ubah, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hapus, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(keluar, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(simpan)\n .addComponent(ubah))\n .addGap(37, 37, 37)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bersihkan)\n .addComponent(hapus))\n .addGap(26, 26, 26)\n .addComponent(keluar)\n .addContainerGap(24, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n\n table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Kode_barang\", \"Nama_barang\", \"Kategori\", \"Jenis\", \"Harga\"\n }\n ));\n jScrollPane1.setViewportView(table);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 677, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel9.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel9.setText(\"Pencarian Berdasarkan Kategori Makanan\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Makanan\", \"Baranglain\", \" \" }));\n\n cari.setText(\"CARI\");\n cari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cariActionPerformed(evt);\n }\n });\n\n jPanel6.setBackground(new java.awt.Color(0, 255, 204));\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 205, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(cari))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(harga, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(137, 137, 137)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kd_brg, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nm_brg, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(kategori, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(packaging, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(61, 61, 61)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 37, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(kd_brg, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(nm_brg, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(kategori, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)\n .addComponent(jLabel4))\n .addComponent(packaging, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(harga, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jComboBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)\n .addComponent(cari))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 25, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19))\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 );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(191, 191, 191))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 707, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "@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 jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n nomorRumah1 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n namaKeluarga1 = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jumlahKeluarga1 = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n cbgolongan1 = new javax.swing.JComboBox<>();\n tambah1 = new javax.swing.JButton();\n perbarui1 = new javax.swing.JButton();\n hapus1 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n warga1 = new javax.swing.JTable();\n jLabel12 = new javax.swing.JLabel();\n menu1 = new javax.swing.JButton();\n rt21 = new javax.swing.JButton();\n rt25 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n agamaTxt = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel2.setBackground(new java.awt.Color(204, 204, 255));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel7.setText(\"Data Warga Trisari\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel8.setText(\"Nama Kepala Keluarga\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel9.setText(\"Nomor Rumah\");\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel10.setText(\"Jumlah Anggota Keluarga\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel11.setText(\"Golongan Ekonomi\");\n\n cbgolongan1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Kaya\", \"Mampu\", \"Kurang Mampu\" }));\n\n tambah1.setText(\"Tambah Data\");\n tambah1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tambah1ActionPerformed(evt);\n }\n });\n\n perbarui1.setText(\"Perbarui Data\");\n perbarui1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n perbarui1ActionPerformed(evt);\n }\n });\n\n hapus1.setText(\"Hapus Data\");\n hapus1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hapus1ActionPerformed(evt);\n }\n });\n\n warga1.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 \"Nomor Rumah\", \"Kepala Keluarga\", \"Jumlah Anggota\", \"Golongan Ekonomi\"\n }\n ));\n warga1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n warga1MouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(warga1);\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel12.setText(\"RT 22\");\n\n menu1.setText(\"Menu Utama\");\n menu1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu1ActionPerformed(evt);\n }\n });\n\n rt21.setText(\"Data RT. 21\");\n rt21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rt21ActionPerformed(evt);\n }\n });\n\n rt25.setText(\"Data RT. 23\");\n rt25.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rt25ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel1.setText(\"Agama\");\n\n agamaTxt.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Islam\", \"Kristen\", \"Katolik\", \"Hindhu\", \"Buddha\" }));\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(23, 23, 23)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel1)\n .addComponent(jLabel11))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nomorRumah1)\n .addComponent(namaKeluarga1)\n .addComponent(jumlahKeluarga1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(cbgolongan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(agamaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rt21)\n .addComponent(tambah1))\n .addGap(49, 49, 49)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(menu1)\n .addComponent(perbarui1))\n .addGap(30, 30, 30)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(hapus1)\n .addComponent(rt25))))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 398, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(272, 272, 272)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel12)))\n .addContainerGap(426, Short.MAX_VALUE))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel12)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nomorRumah1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(namaKeluarga1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jumlahKeluarga1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbgolongan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(agamaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(63, 63, 63)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tambah1)\n .addComponent(hapus1)\n .addComponent(perbarui1))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(menu1)\n .addComponent(rt21)\n .addComponent(rt25)))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42))\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 .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtNo = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txtKodeKamar = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtNoRekamBayi = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n txtKodeicd = new javax.swing.JTextField();\n txtKodeDokter = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n txtKodeTindakan = new javax.swing.JTextField();\n txtSuhuTubuh = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n txtLama = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n txtResusitas = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n txtHasil = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n txtKeterangan = new javax.swing.JTextField();\n txtApgar = new javax.swing.JTextField();\n tbSimpan = new javax.swing.JButton();\n tbEdit = new javax.swing.JButton();\n tbHapus = new javax.swing.JButton();\n tbCetak = new javax.swing.JButton();\n tbKeluar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabelRanapBayi = new javax.swing.JTable();\n tbKeluar1 = new javax.swing.JButton();\n TxtCari = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel17 = new javax.swing.JLabel();\n TxtCrRmBayi = new javax.swing.JTextField();\n TxtCrKmr = new javax.swing.JTextField();\n TxtCrIcd = new javax.swing.JTextField();\n TxtCrDokter = new javax.swing.JTextField();\n TxtCrTindakan = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n txtTglMasuk = new uz.ncipro.calendar.JDateTimePicker();\n txtTglPulang = new uz.ncipro.calendar.JDateTimePicker();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"DATA RAWAT INAP BAYI\");\n\n txtNo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNoActionPerformed(evt);\n }\n });\n\n jLabel8.setText(\"Kode Kamar :\");\n\n txtKodeKamar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtKodeKamarActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"No. :\");\n\n jLabel3.setText(\"No. Rekam Bayi :\");\n\n jLabel9.setText(\"Kode icd :\");\n\n jLabel10.setText(\"Kode Dokter :\");\n\n jLabel2.setText(\"Tanggal Masuk :\");\n\n jLabel6.setText(\"Tanggal Pulang :\");\n\n jLabel11.setText(\"Kode Tindakan :\");\n\n jLabel12.setText(\"Suhu Tubuh :\");\n\n jLabel4.setText(\"Lama :\");\n\n jLabel13.setText(\"Resusitas :\");\n\n jLabel14.setText(\"Hasil :\");\n\n jLabel15.setText(\"Apgar :\");\n\n jLabel16.setText(\"Keterangan :\");\n\n tbSimpan.setText(\"Simpan\");\n tbSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbSimpanActionPerformed(evt);\n }\n });\n\n tbEdit.setText(\"Edit\");\n tbEdit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbEditActionPerformed(evt);\n }\n });\n\n tbHapus.setText(\"Hapus\");\n tbHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbHapusActionPerformed(evt);\n }\n });\n\n tbCetak.setText(\"Cetak\");\n tbCetak.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbCetakActionPerformed(evt);\n }\n });\n\n tbKeluar.setText(\"Keluar\");\n tbKeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbKeluarActionPerformed(evt);\n }\n });\n\n tabelRanapBayi.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tabelRanapBayi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabelRanapBayiMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tabelRanapBayi);\n\n tbKeluar1.setText(\"Baru\");\n tbKeluar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbKeluar1ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Cari\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel17.setText(\"Keyword :\");\n\n jButton3.setText(\"...\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"...\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"...\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jButton6.setText(\"...\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jButton7.setText(\"...\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n\n txtTglMasuk.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"09/12/2014\" }));\n txtTglMasuk.setDisplayFormat(\"dd/MM/yyyy\");\n\n txtTglPulang.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"09/12/2014\" }));\n txtTglPulang.setDisplayFormat(\"dd/MM/yyyy\");\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(layout.createSequentialGroup()\n .addContainerGap()\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 915, Short.MAX_VALUE)\n .addContainerGap())\n .add(layout.createSequentialGroup()\n .add(23, 23, 23)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(jLabel4)\n .add(jLabel6)\n .add(jLabel2)\n .add(jLabel5)\n .add(jLabel3)\n .add(jLabel8)\n .add(jLabel9))\n .add(18, 18, 18)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(txtNo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(txtKodeKamar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 66, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(TxtCrKmr))\n .add(layout.createSequentialGroup()\n .add(txtKodeicd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 66, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(TxtCrIcd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 139, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(txtLama, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jButton6)\n .add(jButton7)))\n .add(layout.createSequentialGroup()\n .add(txtNoRekamBayi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 67, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(TxtCrRmBayi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 138, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton4))\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, txtTglPulang, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, txtTglMasuk, 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(tbSimpan)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(tbEdit, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 63, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(tbKeluar1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(tbHapus)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(tbCetak)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(tbKeluar))\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1))\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(91, 91, 91)\n .add(jLabel17)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(TxtCari, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 143, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)\n .add(jButton1)\n .addContainerGap(148, Short.MAX_VALUE))\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(99, 99, 99)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(txtSuhuTubuh, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtResusitas, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtHasil, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtKeterangan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(txtApgar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 176, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(layout.createSequentialGroup()\n .add(jLabel10)\n .add(18, 18, 18)\n .add(txtKodeDokter, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 67, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(jLabel12)\n .add(jLabel11)\n .add(jLabel13)\n .add(jLabel14)\n .add(jLabel16)\n .add(jLabel15))\n .add(18, 18, 18)\n .add(txtKodeTindakan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 67, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(TxtCrTindakan)\n .add(TxtCrDokter, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE))))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jButton5)\n .add(jButton3))\n .add(59, 59, 59))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(51, 51, 51)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtKodeDokter, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel10)\n .add(TxtCrDokter, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton5))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel11)\n .add(txtKodeTindakan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(TxtCrTindakan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton3))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtSuhuTubuh, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel12))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtResusitas, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel13))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtHasil, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel14))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtKeterangan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel16))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtApgar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel15)))\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(jLabel1)\n .add(21, 21, 21)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel5)\n .add(txtNo, 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(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel3)\n .add(txtNoRekamBayi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(TxtCrRmBayi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton4))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel2)\n .add(txtTglMasuk, 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(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel6)\n .add(txtTglPulang, 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(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel4)\n .add(txtLama, 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(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtKodeKamar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel8)\n .add(TxtCrKmr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton6))\n .add(17, 17, 17)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(txtKodeicd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel9)\n .add(TxtCrIcd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton7))))\n .add(20, 20, 20)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(tbSimpan)\n .add(jLabel17)\n .add(TxtCari, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButton1)\n .add(tbEdit)\n .add(tbKeluar1)\n .add(tbHapus)\n .add(tbCetak)\n .add(tbKeluar))\n .add(18, 18, 18)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 167, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "public aplikasi_kun() {\n initComponents();\n }", "public laporan(String username, String nama) {\n initComponents();\n user=username;\n koneksi DB = new koneksi();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n jLabel8.setText(nama);\n name=nama;\n }", "public void tambahkanTamu(String Nama, String noTelp, String customerType, int jumlahKamar, int jenisKamar, String DataAnda, boolean checkIn, String noKamar) {\r\n tamu.add(new Tamu(Nama, noTelp, customerType, jumlahKamar, jenisKamar, DataAnda, checkIn, noKamar));\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n petani = new javax.swing.JComboBox<>();\n luas = new javax.swing.JTextField();\n bibit = new javax.swing.JTextField();\n pupuk = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n btn_save = new javax.swing.JButton();\n btn_delete = new javax.swing.JButton();\n btn_back = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tb_kontrak = new javax.swing.JTable();\n jLabel8 = new javax.swing.JLabel();\n id = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n petani.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n petani.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-\" }));\n petani.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n petaniActionPerformed(evt);\n }\n });\n getContentPane().add(petani, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 70, 170, 50));\n\n luas.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n getContentPane().add(luas, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 150, 170, 50));\n\n bibit.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n bibit.setEnabled(false);\n getContentPane().add(bibit, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 220, 170, 50));\n\n pupuk.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n pupuk.setEnabled(false);\n getContentPane().add(pupuk, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 300, 170, 50));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Kg\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 300, 40, 50));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Kg\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 220, 40, 50));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Ha\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 150, 40, 50));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"ID :\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 140, 80, 50));\n\n btn_save.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar3/save.png\"))); // NOI18N\n btn_save.setBorder(null);\n btn_save.setBorderPainted(false);\n btn_save.setContentAreaFilled(false);\n getContentPane().add(btn_save, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 300, 100, 40));\n\n btn_delete.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar3/hapus.png\"))); // NOI18N\n btn_delete.setBorder(null);\n btn_delete.setBorderPainted(false);\n btn_delete.setContentAreaFilled(false);\n btn_delete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_deleteActionPerformed(evt);\n }\n });\n getContentPane().add(btn_delete, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 300, 100, 40));\n\n btn_back.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar3/keluar.png\"))); // NOI18N\n btn_back.setBorder(null);\n btn_back.setBorderPainted(false);\n btn_back.setContentAreaFilled(false);\n getContentPane().add(btn_back, new org.netbeans.lib.awtextra.AbsoluteConstraints(900, 580, 170, 60));\n\n tb_kontrak.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tb_kontrak);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 400, 640, 240));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Data Kontrak\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 10, 320, 90));\n\n id.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n id.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(id, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 140, 70, 50));\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar/data K.jpg\"))); // NOI18N\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Black Diamonds Personal Use\", 0, 48)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Data Kontrak\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 10, 340, 90));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gambar/data K.jpg\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "public static void tambahPasienBaru(Pasien pasienBaru) {\r\n daftarPasien.add(pasienBaru);\r\n }", "public beranda() {\n initComponents();\n koneksi DB = new koneksi();\n DB.config();\n con = DB.con;\n st = DB.stm;\n ShowDataStore();\n ShowPermintaanStore();\n ShowPermintaanGudang();\n ShowDataStoreKurang15();\n }", "public Vector addJumMhsYgSudahHeregistrasi_v1(Vector vListInfoKelas) {\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString cuid1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tableMahasiswa = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n txtCari = new javax.swing.JTextField();\n cmdCari = new javax.swing.JButton();\n cmdKeluar1 = new javax.swing.JButton();\n cmdTambah = new javax.swing.JButton();\n cmdHapus = new javax.swing.JButton();\n cmdUbah = new javax.swing.JButton();\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"M a h a s i s w a\");\n\n tableMahasiswa.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tableMahasiswa);\n\n jLabel1.setText(\"Pencarian Nama\");\n\n cmdCari.setText(\"Cari!\");\n cmdCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdCariActionPerformed(evt);\n }\n });\n\n cmdKeluar1.setText(\"Keluar\");\n cmdKeluar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdKeluar1ActionPerformed(evt);\n }\n });\n\n cmdTambah.setText(\"Tambah\");\n cmdTambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdTambahActionPerformed(evt);\n }\n });\n\n cmdHapus.setText(\"Hapus\");\n cmdHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdHapusActionPerformed(evt);\n }\n });\n\n cmdUbah.setText(\"Ubah\");\n cmdUbah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdUbahActionPerformed(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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 669, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmdCari))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(cmdTambah)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmdUbah)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmdHapus)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmdKeluar1)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(16, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmdCari)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 407, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmdKeluar1)\n .addComponent(cmdTambah)\n .addComponent(cmdHapus)\n .addComponent(cmdUbah))\n .addContainerGap())\n );\n\n pack();\n }", "@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 labelJumlah = new javax.swing.JLabel();\n textfieldJudul = new javax.swing.JLabel();\n textfieldPengarang = new javax.swing.JLabel();\n textfieldPenerbit = new javax.swing.JLabel();\n labelJumlah1 = new javax.swing.JLabel();\n textFieldKategoriBuku = new javax.swing.JLabel();\n textfieldTahunTerbit = new javax.swing.JLabel();\n textfieldKodeRak = new javax.swing.JLabel();\n textfieldJumlah = new javax.swing.JLabel();\n jLabelGambar = new javax.swing.JLabel();\n textfieldNamaFileBuku = new javax.swing.JLabel();\n labelTahunTerbit1 = new javax.swing.JLabel();\n textfieldKodeBuku = new javax.swing.JLabel();\n labelTahunTerbit2 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tableBuku = new javax.swing.JTable();\n textfieldCariJudulBuku = new javax.swing.JTextField();\n buttonCari = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n buttonBackHome = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Input Data Buku\");\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBackground(new java.awt.Color(255, 228, 229));\n jPanel2.setPreferredSize(new java.awt.Dimension(300, 600));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n labelJumlah.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 12)); // NOI18N\n labelJumlah.setForeground(new java.awt.Color(102, 102, 102));\n labelJumlah.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n labelJumlah.setText(\"Jumlah\");\n jPanel2.add(labelJumlah, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 500, 170, 25));\n\n textfieldJudul.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 24)); // NOI18N\n textfieldJudul.setForeground(new java.awt.Color(51, 51, 51));\n textfieldJudul.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n textfieldJudul.setText(\"Judul\");\n jPanel2.add(textfieldJudul, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 310, 320, 50));\n\n textfieldPengarang.setFont(new java.awt.Font(\"Balsamiq Sans\", 0, 14)); // NOI18N\n textfieldPengarang.setForeground(new java.awt.Color(51, 51, 51));\n textfieldPengarang.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n textfieldPengarang.setText(\"Pengarang\");\n jPanel2.add(textfieldPengarang, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 370, 320, -1));\n\n textfieldPenerbit.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n textfieldPenerbit.setForeground(new java.awt.Color(51, 51, 51));\n textfieldPenerbit.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n textfieldPenerbit.setText(\"Penerbit\");\n jPanel2.add(textfieldPenerbit, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 450, 170, -1));\n\n labelJumlah1.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 12)); // NOI18N\n labelJumlah1.setForeground(new java.awt.Color(102, 102, 102));\n labelJumlah1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n labelJumlah1.setText(\"Kode Rak\");\n jPanel2.add(labelJumlah1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 500, 180, 25));\n\n textFieldKategoriBuku.setBackground(new java.awt.Color(204, 204, 204));\n textFieldKategoriBuku.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 12)); // NOI18N\n textFieldKategoriBuku.setForeground(new java.awt.Color(153, 153, 153));\n textFieldKategoriBuku.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n textFieldKategoriBuku.setText(\"Kategori\");\n jPanel2.add(textFieldKategoriBuku, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 280, 140, 30));\n\n textfieldTahunTerbit.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n textfieldTahunTerbit.setForeground(new java.awt.Color(51, 51, 51));\n textfieldTahunTerbit.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n textfieldTahunTerbit.setText(\"Tahun Terbit\");\n jPanel2.add(textfieldTahunTerbit, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 450, 180, -1));\n\n textfieldKodeRak.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n textfieldKodeRak.setForeground(new java.awt.Color(51, 51, 51));\n textfieldKodeRak.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n textfieldKodeRak.setText(\"Kode Rak\");\n jPanel2.add(textfieldKodeRak, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 530, 180, -1));\n\n textfieldJumlah.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n textfieldJumlah.setForeground(new java.awt.Color(51, 51, 51));\n textfieldJumlah.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n textfieldJumlah.setText(\"Jumlah\");\n jPanel2.add(textfieldJumlah, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 530, 170, -1));\n\n jLabelGambar.setOpaque(true);\n jPanel2.add(jLabelGambar, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 100, 140, 170));\n\n textfieldNamaFileBuku.setText(\"NamaFileBuku\");\n jPanel2.add(textfieldNamaFileBuku, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 210, -1, -1));\n\n labelTahunTerbit1.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 12)); // NOI18N\n labelTahunTerbit1.setForeground(new java.awt.Color(102, 102, 102));\n labelTahunTerbit1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n labelTahunTerbit1.setText(\"Tahun Terbit\");\n jPanel2.add(labelTahunTerbit1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 420, 180, 25));\n\n textfieldKodeBuku.setFont(new java.awt.Font(\"Balsamiq Sans\", 0, 12)); // NOI18N\n textfieldKodeBuku.setForeground(new java.awt.Color(246, 93, 78));\n textfieldKodeBuku.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n textfieldKodeBuku.setText(\"Tahun Terbit\");\n jPanel2.add(textfieldKodeBuku, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 160, 150, -1));\n\n labelTahunTerbit2.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 12)); // NOI18N\n labelTahunTerbit2.setForeground(new java.awt.Color(102, 102, 102));\n labelTahunTerbit2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n labelTahunTerbit2.setText(\"Penerbit\");\n labelTahunTerbit2.setPreferredSize(new java.awt.Dimension(100, 23));\n jPanel2.add(labelTahunTerbit2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 420, 160, 25));\n\n jLabel5.setBackground(new java.awt.Color(71, 127, 255));\n jLabel5.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 21)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(246, 93, 78));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Detail Buku\");\n jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 40, -1, -1));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 0, 420, 600));\n\n jPanel1.setBackground(new java.awt.Color(246, 93, 78));\n jPanel1.setForeground(new java.awt.Color(246, 93, 78));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tableBuku.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n tableBuku.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 {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tableBuku.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tableBukuMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tableBuku);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 340, 540, 190));\n\n textfieldCariJudulBuku.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n textfieldCariJudulBuku.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n textfieldCariJudulBuku.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(230, 231, 232)));\n textfieldCariJudulBuku.setPreferredSize(new java.awt.Dimension(2, 30));\n textfieldCariJudulBuku.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textfieldCariJudulBukuActionPerformed(evt);\n }\n });\n jPanel1.add(textfieldCariJudulBuku, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 230, 450, -1));\n\n buttonCari.setBackground(new java.awt.Color(9, 110, 59));\n buttonCari.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n buttonCari.setForeground(new java.awt.Color(255, 255, 255));\n buttonCari.setText(\"Cari\");\n buttonCari.setBorder(null);\n buttonCari.setPreferredSize(new java.awt.Dimension(75, 30));\n buttonCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonCariActionPerformed(evt);\n }\n });\n jPanel1.add(buttonCari, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 280, 70, 30));\n\n jLabel6.setBackground(new java.awt.Color(71, 127, 255));\n jLabel6.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Masukkan Judul Buku Yang Kamu Cari!\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 200, -1, -1));\n\n jLabel4.setBackground(new java.awt.Color(71, 127, 255));\n jLabel4.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 36)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"PENCARIAN BUKU\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 40, -1, -1));\n\n buttonBackHome.setBackground(new java.awt.Color(9, 110, 59));\n buttonBackHome.setFont(new java.awt.Font(\"Balsamiq Sans\", 1, 18)); // NOI18N\n buttonBackHome.setForeground(new java.awt.Color(255, 255, 255));\n buttonBackHome.setText(\"Kembali ke Menu\");\n buttonBackHome.setBorder(null);\n buttonBackHome.setPreferredSize(new java.awt.Dimension(75, 30));\n buttonBackHome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonBackHomeActionPerformed(evt);\n }\n });\n jPanel1.add(buttonBackHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 550, 170, 30));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 580, 600));\n\n pack();\n setLocationRelativeTo(null);\n }", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "public nhanvien() {\n initComponents();\n laysodong();\n if(count % 5 ==0 )\n {\n sotrang = count/5;\n }\n else\n {\n sotrang=count/5 + 1;\n }\n DAO_NV.dolentable(tblnhanvien,1);\n lbltrang.setText(\"1\");\n lblsotrang.setText(\"1/\"+sotrang);\n jButton3.setEnabled(false);\n jButton1.setEnabled(false);\n \n \n \n \n\n }", "public formdatamahasiswa() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable2 = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n txnip = new javax.swing.JTextField();\n txalamat = new javax.swing.JTextField();\n txnama = new javax.swing.JTextField();\n txjabatan = new javax.swing.JTextField();\n rdlk = new javax.swing.JRadioButton();\n rdpr = new javax.swing.JRadioButton();\n cbagama = new javax.swing.JComboBox<>();\n rdmk = new javax.swing.JRadioButton();\n rdbmk = new javax.swing.JRadioButton();\n cbsimpan = new javax.swing.JButton();\n cbtambah = new javax.swing.JButton();\n cbedit = new javax.swing.JButton();\n cbhapus = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTable = new javax.swing.JTable();\n\n jTable2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane2.setViewportView(jTable2);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel1.setText(\"Form Input Data Karyawan \");\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel2.setText(\"NIP\");\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel3.setText(\"Nama\");\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel4.setText(\"Jenis Kelamin\");\n\n jLabel6.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel6.setText(\"Jabatan\");\n\n jLabel7.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel7.setText(\"Alamat\");\n\n jLabel8.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel8.setText(\"Agama\");\n\n jLabel9.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel9.setText(\"Status\");\n\n buttonGroup1.add(rdlk);\n rdlk.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n rdlk.setText(\"Laki-laki\");\n rdlk.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdlkActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rdpr);\n rdpr.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n rdpr.setText(\"Perempuan\");\n rdpr.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdprActionPerformed(evt);\n }\n });\n\n cbagama.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n cbagama.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Islam\", \"Kristen\", \"Budha\", \"Hindu\" }));\n\n buttonGroup2.add(rdmk);\n rdmk.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n rdmk.setText(\"Menikah\");\n\n buttonGroup2.add(rdbmk);\n rdbmk.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n rdbmk.setText(\"Belum Menikah\");\n rdbmk.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdbmkActionPerformed(evt);\n }\n });\n\n cbsimpan.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n cbsimpan.setText(\"Simpan\");\n cbsimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbsimpanActionPerformed(evt);\n }\n });\n\n cbtambah.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n cbtambah.setText(\"Tambah\");\n cbtambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbtambahActionPerformed(evt);\n }\n });\n\n cbedit.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n cbedit.setText(\"Edit\");\n cbedit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbeditActionPerformed(evt);\n }\n });\n\n cbhapus.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n cbhapus.setText(\"Hapus\");\n cbhapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbhapusActionPerformed(evt);\n }\n });\n\n jTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null}\n },\n new String [] {\n \"NIP\", \"Nama\", \"Jabatan\", \"Jenis Kelamin\", \"Agama\", \"Status\", \"Alamat\"\n }\n ));\n jTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTableMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(jTable);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(340, 340, 340)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGap(365, 365, 365)\n .addComponent(cbsimpan)\n .addGap(18, 18, 18)\n .addComponent(cbtambah)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 843, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 22, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))\n .addComponent(jLabel4))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txnama, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(rdlk)\n .addGap(18, 18, 18)\n .addComponent(rdpr))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txnip, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txjabatan, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(98, 98, 98)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(rdmk)\n .addGap(18, 18, 18)\n .addComponent(rdbmk)\n .addContainerGap(32, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(cbedit, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(cbhapus)\n .addGap(11, 11, 11))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txalamat, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbagama, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))))))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txnip, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(cbagama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txnama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(rdmk)\n .addComponent(rdbmk))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txjabatan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(txalamat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(rdlk)\n .addComponent(rdpr))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 36, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbsimpan)\n .addComponent(cbtambah)\n .addComponent(cbedit)\n .addComponent(cbhapus))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "public void summary(int tambahanProyek) {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur + tambahanProyek));\r\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\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 jLabel2 = new javax.swing.JLabel();\n txtpertama = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtkedua = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txthasil = new javax.swing.JTextField();\n tbltambah = new javax.swing.JButton();\n tblkurang = new javax.swing.JButton();\n tblbagi = new javax.swing.JButton();\n tblkali = new javax.swing.JButton();\n tblbersihkan = new javax.swing.JButton();\n tblkeluar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"PROGRAM KALKULATOR\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"NILAI A\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"NILAI B\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"HASIL\");\n\n txthasil.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txthasilActionPerformed(evt);\n }\n });\n\n tbltambah.setText(\"+\");\n tbltambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbltambahActionPerformed(evt);\n }\n });\n\n tblkurang.setText(\"-\");\n tblkurang.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblkurangActionPerformed(evt);\n }\n });\n\n tblbagi.setText(\"/\");\n tblbagi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblbagiActionPerformed(evt);\n }\n });\n\n tblkali.setText(\"X\");\n tblkali.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblkaliActionPerformed(evt);\n }\n });\n\n tblbersihkan.setText(\"BERSIHKAN\");\n tblbersihkan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblbersihkanActionPerformed(evt);\n }\n });\n\n tblkeluar.setText(\"KELUAR\");\n tblkeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblkeluarActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"DIBUAT OLEH : NIKO ALDI ARIBOY\");\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(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(92, 92, 92))\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.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtkedua, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(txthasil))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtpertama, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tblbagi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tbltambah, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tblkurang, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tblkali, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(tblkeluar))\n .addComponent(tblbersihkan)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtpertama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tbltambah)\n .addComponent(tblkurang))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtkedua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tblbagi)\n .addComponent(tblkali))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txthasil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tblbersihkan))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tblkeluar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addGap(8, 8, 8))\n );\n\n pack();\n }", "public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }", "public static void setupSouSuoBiaoDiGui(int status,int shenDu,int hang,Vector luJing)\n {\n \n \n \n for(int nextstatusXiaBiao=0;nextstatusXiaBiao<9;nextstatusXiaBiao++)\n {\n Vector[]newluJing=new Vector[9];\n newluJing[nextstatusXiaBiao]=(Vector)(luJing.clone());\n newluJing[nextstatusXiaBiao].add(String.valueOf(nextstatusXiaBiao));\n \n int[]nextStatusArray=(int[])(bianHuanTable.get(status));\n int nextstatus=nextStatusArray[nextstatusXiaBiao];\n //\n //===============================================\n \n if(souSuoBiao[hang][nextstatus].size()==0)\n {\n //souSuoBiao[hang][nextstatus].remove (0);\n souSuoBiao[hang][nextstatus].add(0,String.valueOf(shenDu));\n souSuoBiao[hang][nextstatus].add(1,newluJing[nextstatusXiaBiao]);\n \n \n souSuoBiaoFeiNullGeShu++;\n //MyPrintln.println(\"共计:\"+String.valueOf (souSuoBiaoFeiNullGeShu));\n \n }\n \n else \n {\n //按序放到正确位置\n \n //souSuoBiao[hang][nextstatus].add(String.valueOf(shenDu));\n //souSuoBiao[hang][nextstatus].add(newluJing[nextstatusXiaBiao]);\n ///=======\n int i1 ;\n for(i1=0;i1<souSuoBiao[hang][nextstatus].size();i1+=2)\n {\n String oldshenDu=(String)(souSuoBiao[hang][nextstatus].get(i1));\n if(shenDu<Integer.parseInt(oldshenDu))\n {\n break ;\n }\n }\n //--------\n souSuoBiao[hang][nextstatus].add(i1,String.valueOf(shenDu));\n souSuoBiao[hang][nextstatus].add(i1+1,newluJing[nextstatusXiaBiao]);\n \n //======\n \n \n //oldshenDu.\n }\n \n \n \n }\n //=======================================\n //将调用和条件改变位置到上面,则是深度优先\n //=====================================\n \n shenDu++;\n \n if((souSuoType.compareTo(\"shenDuControlGetAll\")==0&&shenDu<=shenDuControl)\n ||(souSuoType.compareTo(\"short\")==0&&souSuoBiaoHangFull(hang)!=1)\n )\n //if(souSuoBiaoHangFull(hang)!=1)//行满则返回\n //该条件是得到最短路径的方法。只得到一个。如果采用广度优先搜索,那么第一个结果就是需要的结果\n /// if(shenDu<=2)//该条件是得到所有3步内的方法,最短的自动放到最前面\n {\n //int[]nextStatusArray=bianHuanTable.get(status);\n for(int nextstatusXiaBiao=0;nextstatusXiaBiao<9;nextstatusXiaBiao++)\n {\n Vector[]newluJing=new Vector[9];\n newluJing[nextstatusXiaBiao]=(Vector)(luJing.clone());\n newluJing[nextstatusXiaBiao].add(String.valueOf(nextstatusXiaBiao));\n \n int[]nextStatusArray=(int[])(bianHuanTable.get(status));\n int nextstatus=nextStatusArray[nextstatusXiaBiao];\n //===============\n // souSuoBiao[status][nextstatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[status][nextstatus].add(String.valueOf(1));\n //---------------------\n // int[]lastStatusArray=bianHuanTable.get(nextstatus);\n // for(int laststatusXiaBiao=0;laststatusXiaBiao<9;laststatusXiaBiao++)\n // {\n // int laststatus=lastStatusArray[lastXiaBiao];\n //----------\n \n // souSuoBiao[status][laststatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[status][laststatus].add(String.valueOf(laststatusXiaBiao));\n // souSuoBiao[status][laststatus].add((2));\n \n //----------\n //}\n //\n // if(souSuoBiao[hang][nextstatus].size()==0)\n // {\n // souSuoBiao[hang][nextstatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[hang][nextstatus].add(String.valueOf(++shenDu));\n // souSuoBiaoFeiNullGeShu++;\n // MyPrintln.println(\"共计:\"+String.valueOf (souSuoBiaoFeiNullGeShu));\n // }\n //\n \n \n setupSouSuoBiaoDiGui(nextstatus,shenDu,hang,newluJing[nextstatusXiaBiao]);\n \n //=====================\n \n }\n }\n }", "private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\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 jLabel2 = new javax.swing.JLabel();\n Pilih = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n Spesialist = new javax.swing.JTextField();\n Nama = new javax.swing.JTextField();\n Alamat = new javax.swing.JTextField();\n Usia = new javax.swing.JTextField();\n Jenis = new javax.swing.JTextField();\n Gol = new javax.swing.JTextField();\n Status = new javax.swing.JTextField();\n Warga = new javax.swing.JTextField();\n Waktu = new javax.swing.JTextField();\n jToolBar1 = new javax.swing.JToolBar();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jLabel1.setText(\"Pemilihan Dokter\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(110, 40, 190, 28);\n\n jLabel2.setText(\"Pilih Dokter\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(30, 90, 60, 14);\n\n Pilih.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"--Pilih Salah Satu--\", \"DR. Farras Yassar\", \"DR. Dian Sikahita\", \"DR. Harun Ulum Fajar\" }));\n Pilih.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n PilihActionPerformed(evt);\n }\n });\n getContentPane().add(Pilih);\n Pilih.setBounds(100, 90, 190, 20);\n\n jLabel3.setText(\"Dokter Spesialis\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(40, 470, 90, 14);\n\n jLabel4.setText(\"Nama\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(40, 150, 70, 14);\n\n jLabel5.setText(\"Alamat\");\n getContentPane().add(jLabel5);\n jLabel5.setBounds(40, 190, 70, 14);\n\n jLabel6.setText(\"Usia\");\n getContentPane().add(jLabel6);\n jLabel6.setBounds(40, 230, 70, 14);\n\n jLabel7.setText(\"Jenis Kelamin\");\n getContentPane().add(jLabel7);\n jLabel7.setBounds(40, 270, 70, 14);\n\n jLabel8.setText(\"Golongan Darah\");\n getContentPane().add(jLabel8);\n jLabel8.setBounds(40, 310, 90, 14);\n\n jLabel9.setText(\"Status\");\n getContentPane().add(jLabel9);\n jLabel9.setBounds(40, 350, 90, 14);\n\n jLabel10.setText(\"Kewarganegaraan\");\n getContentPane().add(jLabel10);\n jLabel10.setBounds(40, 390, 90, 14);\n\n jLabel11.setText(\"Waktu Praktek\");\n getContentPane().add(jLabel11);\n jLabel11.setBounds(40, 430, 90, 14);\n getContentPane().add(Spesialist);\n Spesialist.setBounds(160, 470, 140, 30);\n getContentPane().add(Nama);\n Nama.setBounds(160, 150, 140, 30);\n getContentPane().add(Alamat);\n Alamat.setBounds(160, 190, 140, 30);\n getContentPane().add(Usia);\n Usia.setBounds(160, 230, 140, 30);\n getContentPane().add(Jenis);\n Jenis.setBounds(160, 270, 140, 30);\n getContentPane().add(Gol);\n Gol.setBounds(160, 310, 140, 30);\n getContentPane().add(Status);\n Status.setBounds(160, 350, 140, 30);\n getContentPane().add(Warga);\n Warga.setBounds(160, 390, 140, 30);\n getContentPane().add(Waktu);\n Waktu.setBounds(160, 430, 140, 30);\n\n jToolBar1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Identitas\"));\n jToolBar1.setRollover(true);\n getContentPane().add(jToolBar1);\n jToolBar1.setBounds(20, 120, 310, 400);\n\n setBounds(0, 0, 416, 564);\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public QuanLyMonHoc(TaiKhoan taiKhoan) {\n this.taiKhoan = taiKhoan;\n initComponents();\n defaultTableModel = new DefaultTableModel() {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n } \n };\n tbQLMH.setModel(defaultTableModel);\n \n defaultTableModel.addColumn(\"Mã môn học\");\n defaultTableModel.addColumn(\"Tên môn học\");\n defaultTableModel.addColumn(\"Số tín chỉ\");\n \n themDuLieu();\n }", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public int Kullanicino_Bul(String kullanici_adi) throws SQLException {\n baglanti vb = new baglanti();\r\n try {\r\n \r\n vb.baglan();\r\n int kullanicino = 0;\r\n String sorgu = \"select kullanici_no from kullanicilar where kullanici_adi='\" + kullanici_adi + \"';\";\r\n\r\n ps = vb.con.prepareStatement(sorgu);\r\n\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n kullanicino = rs.getInt(1);\r\n }\r\n return kullanicino;\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(siparis.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }" ]
[ "0.68225276", "0.6779897", "0.66802174", "0.6640903", "0.6581742", "0.6450677", "0.6380785", "0.637048", "0.6321939", "0.6278995", "0.62147313", "0.6206834", "0.61978364", "0.6182612", "0.61695206", "0.6154844", "0.6154733", "0.6147631", "0.61426413", "0.613294", "0.6119221", "0.61075103", "0.6106073", "0.60963297", "0.60618997", "0.60547996", "0.60479623", "0.6045384", "0.6038737", "0.60352236", "0.60106045", "0.60090685", "0.6008344", "0.6007238", "0.59960526", "0.5988498", "0.5981688", "0.59759074", "0.5973113", "0.59506106", "0.593302", "0.59186", "0.5897575", "0.58965", "0.5886712", "0.5885764", "0.5882491", "0.58816683", "0.5880144", "0.5880044", "0.58693033", "0.58677214", "0.58632547", "0.5855893", "0.58551097", "0.5841768", "0.5838384", "0.58380264", "0.58370525", "0.58271194", "0.582364", "0.5818541", "0.5801585", "0.58009154", "0.57977825", "0.57860804", "0.57792884", "0.57750124", "0.5774213", "0.5769347", "0.5768191", "0.57606125", "0.574591", "0.57456183", "0.5744879", "0.5744652", "0.5743492", "0.5742797", "0.57347834", "0.5721673", "0.571742", "0.5708332", "0.569766", "0.56923264", "0.5684504", "0.568282", "0.568198", "0.5681903", "0.56744707", "0.5666961", "0.5659636", "0.56581277", "0.5656671", "0.5655178", "0.5653539", "0.56517637", "0.565122", "0.56503904", "0.56496745", "0.5648305", "0.5644626" ]
0.0
-1
/ mencari determinan dengan reduksi baris
float DetGauss(Matrix m){ Matrix mtemp = new Matrix(m.M); float hasil=1; int count = 0; int swap = -1; for(int i=0;i<mtemp.rows-1;i++){ for(int j=i+1; j<mtemp.rows; j++){ if(mtemp.M[i][i]<mtemp.M[j][i]){ count++; swapRow(mtemp,i,j); } } for(int k=i+1; k<mtemp.rows; k++){ double ratio = mtemp.M[k][i]/mtemp.M[i][i]; for(int j=0;j<mtemp.cols;j++){ mtemp.M[k][j] -= ratio*mtemp.M[i][j]; } } } for(int i=0; i<mtemp.rows; i++){ hasil *= mtemp.M[i][i]; } if(count==0){ swap = 1; }else{ for(int i=1; i<count; i++){ swap = swap * (-1); } } return hasil*swap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showBars() {\n graph.removeAllSeries();\n Log.d(\"ShowGraph \", \"started\");\n Log.d(\"Tuples length \", tuples.size() + \"\");\n ArrayList<Double> vkupno = new ArrayList<Double>();\n //vo vkupno, sekoj element, e vkupnata vrednost za nutrientot pod toj broj\n int brNutrienti = values.size();\n Log.d(\"Values length\", brNutrienti + \"\");\n for (int i = 0; i < brNutrienti; i++) {\n vkupno.add(i, 0.0);\n }\n Iterator<String> it = values.iterator();\n String currentNutrient = null;\n double dodadi = 0;\n for (int j = 0; j < brNutrienti; j++) {\n currentNutrient = it.next();\n for (int i = 0; i < tuples.size(); i++) {\n Tuple currentTuple = tuples.get(i);\n if (currentNutrient.equals(\"Protein\")) {\n dodadi = (currentTuple.getProtein()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Total lipid (fat)\")) {\n dodadi = (currentTuple.getLipid()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Carbohydrate\")) {\n dodadi = (currentTuple.getCarbohydrate()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Glucose\")) {\n dodadi = (currentTuple.getGlucose()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Calcium\")) {\n dodadi = (currentTuple.getCalcium()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Iron\")) {\n dodadi = (currentTuple.getIron()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Magnesium\")) {\n dodadi = (currentTuple.getMagnesium()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Zinc\")) {\n dodadi = (currentTuple.getZinc()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin C\")) {\n dodadi = (currentTuple.getVitaminC()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Thiamin\")) {\n dodadi = (currentTuple.getThiamin()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Riboflavin\")) {\n dodadi = (currentTuple.getRibofavin()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Niacin\")) {\n dodadi = (currentTuple.getNiacin()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin B6\")) {\n dodadi = (currentTuple.getVitaminB6()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin B12\")) {\n dodadi = (currentTuple.getVitaminB12()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"VitaminA\")) {\n dodadi = (currentTuple.getVitaminA()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin D\")) {\n dodadi = (currentTuple.getVitaminD()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin E\")) {\n dodadi = (currentTuple.getVitaminE()) * currentTuple.getQuantity() / 100;\n }\n dodadi = dodadi + vkupno.get(j);\n vkupno.set(j, dodadi);\n dodadi = 0;\n }\n }\n Log.d(\"Posle polenje na vkupno\", \"sfsfsdf\");\n //posle ova vo vkupno se sodrzhat y vrednostite za grafikot\n DataPoint[] dpArray = new DataPoint[vkupno.size()];\n for (int i = 0; i < vkupno.size(); i++) {\n dpArray[i] = new DataPoint(i + 1, vkupno.get(i));\n intake.add(vkupno.get(i));\n Log.d(\"y(\" + i + \")=\", vkupno.get(i) + \"\");\n }\n BarGraphSeries<DataPoint> series = new BarGraphSeries<DataPoint>(dpArray);\n graph.addSeries(series);\n // styling\n series.setValueDependentColor(new ValueDependentColor<DataPoint>() {\n @Override\n public int get(DataPoint data) {\n return Color.rgb((int) data.getX() * 255 / 4, (int) Math.abs(data.getY() * 255 / 6), 100);\n }\n });\n series.setSpacing(1);\n series.setDataWidth(0.2);\n // draw values on top\n series.setDrawValuesOnTop(true);\n series.setValuesOnTopColor(Color.BLACK);\n /* StaticLabelsFormatter staticLabelsFormatter = new StaticLabelsFormatter(graph);\n staticLabelsFormatter.setHorizontalLabels(new String[] {\"CH\", \"F\", \"Pr\",\"Mi\"});\n graph.getGridLabelRenderer().setLabelFormatter(staticLabelsFormatter);\n */\n //graph.getLegendRenderer().setVisible(true);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.TOP);\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "private void nastavGraf() {\n barChart = (BarChart) findViewById(R.id.bargraph);\n\n ArrayList<BarEntry> barEntries = new ArrayList<>();\n ArrayList<String> theDates = new ArrayList<>();\n\n // ziskame zaznamy z tabuľky Steps a naplnime graf\n List<HashMap<String, String>> zoznam = mDatabaseHelper.getSteps();\n HashMap<String, String> mapa = new HashMap<>();\n for (int i = 0; i < zoznam.size(); i++) {\n if (i == 3) break;\n mapa = zoznam.get(i);\n theDates.add(mapa.get(\"datum\"));\n barEntries.add(new BarEntry(Float.parseFloat(mapa.get(\"kroky\")), i));\n }\n\n BarDataSet barDataSet = new BarDataSet(barEntries, \"Steps\");\n int redColorValue = Color.parseColor(\"#ff1744\");\n barDataSet.setColor(redColorValue);\n BarData theData = new BarData(theDates, barDataSet);\n\n barChart.setData(theData);\n barChart.getLegend().setEnabled(false);\n barChart.setDescription(null);\n }", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public void graficoBarras(String pQuery, Double pTiempoRelacional,\n Double pTiempoEmpotrada, Double pTiempoMemoria) {\n\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(pTiempoRelacional, \"a\", \"Relacional\");\n dataset.addValue(pTiempoEmpotrada, \"a\", \"Empotrada\");\n dataset.addValue(pTiempoMemoria, \"a\", \"En memoria\");\n\n JFreeChart chart = ChartFactory.createBarChart(\n \"Resultados de la operación\", // El titulo de la gráfica \n \"Query ejecutado: \" + pQuery, // Etiqueta de categoria \n \"Tiempo (ms)\", // Etiqueta de valores \n dataset, // Datos \n PlotOrientation.VERTICAL, // orientacion \n false, // Incluye Leyenda \n true, // Incluye tooltips \n false // URLs? \n );\n\n ChartFrame frame = new ChartFrame(\"Graficador\", chart);\n frame.pack();\n frame.setVisible(true);\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "private void initBarChart() {\n\t\tBarChart<String, Number> chartLinguagens = new BarChart<String, Number>(new CategoryAxis(), new NumberAxis());\n\t\t// define o espaçamento entre as barras.\n\t\tchartLinguagens.setCategoryGap(30);\n\t\t// inserindo o title do grafico\n\t\tchartLinguagens.setTitle(\"Ranking de Linguagens de Programação Mar/2013\");\n\t\t// seta nome e valor de cada linguagem apresentada no grafico\n\t\tXYChart.Data<String, Number> dataJava = new XYChart.Data<String, Number>(\"Java\", 18.156);\n\t\tXYChart.Data<String, Number> dataC = new XYChart.Data<String, Number>(\"C\", 17.141);\n\t\tXYChart.Data<String, Number> dataObjectiveC = new XYChart.Data<String, Number>(\"Objective-C\", 10.230);\n\t\tXYChart.Data<String, Number> dataCPlus = new XYChart.Data<String, Number>(\"C++\", 9.115);\n\t\tXYChart.Data<String, Number> dataCSharp = new XYChart.Data<String, Number>(\"C#\", 6.597);\n\t\tXYChart.Series<String, Number> seriesData = new XYChart.Series<String, Number>();\n\t\t// rodapé ???\n\t\tseriesData.setName(\"Porcentagem (%)\");\n\n\t\tseriesData.getData().addAll(dataJava, dataC, dataObjectiveC, dataCPlus, dataCSharp);\n\n\t\tchartLinguagens.getData().add(seriesData);\n\t\t/* Indicar o BarChart em um painel principal... */\n\t\tpane.getChildren().add(chartLinguagens);\n\t}", "@Override\r\n\tpublic final String[] getHabilidadesRaza() {\r\n\t\treturn new String[] {\"Golpe Defensa\", \"Mordisco de Vida\"};\r\n\t}", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "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 Leiho4ZerbitzuGehigarriak(Ostatua hartutakoOstatua, double prezioTot, Date dataSartze, Date dataIrtetze,\r\n\t\t\tint logelaTot, int pertsonaKop) {\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\".\\\\Argazkiak\\\\logoa.png\"));\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tthis.setBounds(350, 50, 600, 600);\r\n\t\tthis.setResizable(false); // neurketak ez aldatzeko\r\n\t\tthis.setSize(new Dimension(600, 600));\r\n\t\tthis.setTitle(\"Airour ostatu bilatzailea\");\r\n\t\tprezioTot2 = prezioTot;\r\n\t\t// botoiak\r\n\t\tbtn_next.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tMetodoakLeihoAldaketa.bostgarrenLeihoa(hartutakoOstatua, prezioTot2, dataSartze, dataIrtetze, logelaTot,\r\n\t\t\t\t\t\tpertsonaKop, cboxPentsioa.getSelectedItem() + \"\", zerbitzuArray, gosaria);\r\n\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_next.setBounds(423, 508, 122, 32);\r\n\t\tbtn_next.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_next.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtn_next.setForeground(Color.RED);\r\n\t\tgetContentPane().add(btn_next);\r\n\r\n\t\tbtn_prev.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// System.out.println(hartutakoOstatua.getOstatuMota());\r\n\t\t\t\tif (hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaHotelak(hartutakoOstatua, dataSartze, dataIrtetze);\r\n\t\t\t\telse\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaEtxeak(hartutakoOstatua, prezioTot, dataIrtetze, dataIrtetze);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_prev.setBounds(38, 508, 107, 32);\r\n\t\tbtn_prev.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_prev.setForeground(Color.RED);\r\n\t\tbtn_prev.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(btn_prev);\r\n\r\n\t\trestart.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMetodoakLeihoAldaketa.lehenengoLeihoa();\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\trestart.setBounds(245, 508, 72, 32);\r\n\t\trestart.setForeground(Color.RED);\r\n\t\trestart.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(restart);\r\n\r\n\t\t// panela\r\n\t\tlblIzena.setText(hartutakoOstatua.getIzena());\r\n\t\tlblIzena.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIzena.setFont(new Font(\"Verdana\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblIzena.setBounds(0, 13, 594, 32);\r\n\t\tgetContentPane().add(lblIzena);\r\n\r\n\t\tlblLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblLogelak.setBounds(210, 114, 72, 25);\r\n\t\tgetContentPane().add(lblLogelak);\r\n\r\n\t\ttxtLogelak = new JTextField();\r\n\t\ttxtLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtLogelak.setEditable(false);\r\n\t\ttxtLogelak.setText(logelaTot + \"\");\r\n\t\ttxtLogelak.setBounds(285, 116, 32, 20);\r\n\t\ttxtLogelak.setColumns(10);\r\n\t\tgetContentPane().add(txtLogelak);\r\n\r\n\t\tlblPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblPentsioa.setBounds(210, 165, 72, 14);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tlblPentsioa.setVisible(false);\r\n\t\tgetContentPane().add(lblPentsioa);\r\n\r\n\t\tcboxPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tcboxPentsioa.addItem(\"Pentsiorik ez\");\r\n\t\tcboxPentsioa.addItem(\"Erdia\");\r\n\t\tcboxPentsioa.addItem(\"Osoa\");\r\n\t\tcboxPentsioa.setBounds(285, 162, 111, 20);\r\n\t\tgetContentPane().add(cboxPentsioa);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tcboxPentsioa.setVisible(false);\r\n\r\n\t\tcboxPentsioa.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\r\n\t\t\t\tif (cboxPentsioa.getSelectedItem().equals(\"Pentsiorik ez\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 0;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Erdia\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 5 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Osoa\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 10 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tchckbxGosaria.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxGosaria.setBounds(245, 201, 97, 23);\r\n\t\tchckbxGosaria.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\t\t\t\tdouble gosariPrezioa = 3 * gauak;\r\n\t\t\t\tif (chckbxGosaria.isSelected()) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + gosariPrezioa;\r\n\t\t\t\t\tgosaria = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgosaria = false;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - gosariPrezioa;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxGosaria);\r\n\r\n\t\tlblZerbitzuak.setFont(new Font(\"Verdana\", Font.BOLD, 16));\r\n\t\tlblZerbitzuak.setBounds(51, 244, 230, 25);\r\n\t\tgetContentPane().add(lblZerbitzuak);\r\n\r\n\t\t// gehigarriak\r\n\t\tzerbitzuArray = MetodoakKontsultak.zerbitzuakOstatuanMet(hartutakoOstatua);\r\n\r\n\t\tmodelo.addColumn(\"Izena:\");\r\n\t\tmodelo.addColumn(\"Prezio gehigarria:\");\r\n\t\tmodelo.addColumn(\"Hartuta:\");\r\n\r\n\t\t// tabla datuak\r\n\t\ttable = new JTable(modelo);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\ttable.setFont(new Font(\"Verdana\", Font.PLAIN, 14));\r\n\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\r\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable.getTableHeader().setResizingAllowed(false);\r\n\t\ttable.setRowHeight(32);\r\n\t\ttable.setBackground(Color.LIGHT_GRAY);\r\n\t\ttable.setBounds(24, 152, 544, 42);\r\n\t\ttable.getTableHeader().setFont(new Font(\"Verdana\", Font.BOLD, 15));\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\tgetContentPane().add(table);\r\n\r\n\t\ttable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent me) {\r\n\t\t\t\tif (me.getClickCount() == 1) {\r\n\t\t\t\t\ti = 1;\r\n\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tscrollPane = new JScrollPane(table);\r\n\t\tscrollPane.setViewportBorder(null);\r\n\t\tscrollPane.setBounds(20, 282, 562, 188);\r\n\r\n\t\tgetContentPane().add(scrollPane);\r\n\r\n\t\tfor (HartutakoOstatuarenZerbitzuak zerb : zerbitzuArray) {\r\n\t\t\tarray[0] = zerb.getIzena();\r\n\t\t\tarray[1] = zerb.getPrezioa() + \" €\";\r\n\t\t\tarray[2] = \"Ez\";\r\n\t\t\tmodelo.addRow(array);\r\n\t\t}\r\n\t\ttable.setModel(modelo);\r\n\r\n\t\tlblPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrezioa.setBounds(210, 72, 63, 14);\r\n\t\tgetContentPane().add(lblPrezioa);\r\n\r\n\t\ttxtPrezioa = new JTextField();\r\n\t\ttxtPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\ttxtPrezioa.setEditable(false);\r\n\t\ttxtPrezioa.setBounds(274, 70, 136, 20);\r\n\t\ttxtPrezioa.setColumns(10);\r\n\t\tgetContentPane().add(txtPrezioa);\r\n\r\n\t}", "public void setBunga(int tipeBunga){\n }", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "private void load_buku() {\n Object header[] = {\"ID BUKU\", \"JUDUL BUKU\", \"PENGARANG\", \"PENERBIT\", \"TAHUN TERBIT\"};\n DefaultTableModel data = new DefaultTableModel(null, header);\n bookTable.setModel(data);\n String sql_data = \"SELECT * FROM tbl_buku\";\n try {\n Connection kon = koneksi.getConnection();\n Statement st = kon.createStatement();\n ResultSet rs = st.executeQuery(sql_data);\n while (rs.next()) {\n String d1 = rs.getString(1);\n String d2 = rs.getString(2);\n String d3 = rs.getString(3);\n String d4 = rs.getString(4);\n String d5 = rs.getString(5);\n\n String d[] = {d1, d2, d3, d4, d5};\n data.addRow(d);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public void aapne() {\n trykketPaa = true;\n setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n if (bombe) {\n setText(\"x\");\n Color moerkeregroenn = Color.rgb(86, 130, 3, 0.5);\n setBackground(new Background(new BackgroundFill(moerkeregroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n } else if (bombeNaboer == 0) {\n setText(\" \");\n } else {\n setText(bombeNaboer + \"\");\n if (bombeNaboer == 1) {\n setTextFill(Color.BLUE);\n } else if (bombeNaboer == 2) {\n setTextFill(Color.GREEN);\n } else if (bombeNaboer == 3) {\n setTextFill(Color.RED);\n } else if (bombeNaboer == 4) {\n setTextFill(Color.DARKBLUE);\n } else if (bombeNaboer == 5) {\n setTextFill(Color.BROWN);\n } else if (bombeNaboer == 6) {\n setTextFill(Color.DARKCYAN);\n }\n }\n }", "public static void MostrarPerroSegunEstadia(Perro BaseDeDatosPerros[], int codPerro){\n String razaDeceada, razaPerro;\r\n int diasDeEstadia; \r\n razaDeceada=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerro=BaseDeDatosPerros[i].getRaza();\r\n diasDeEstadia=BaseDeDatosPerros[i].getCantDias();\r\n if (razaDeceada.equalsIgnoreCase(razaPerro)&&(diasDeEstadia>20)) {\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(BaseDeDatosPerros[i].toString());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }\r\n }\r\n \r\n }", "public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }", "public void bajarBloque() {\n\t\tif (piezaActual != null) {\n\t\t\tif (Mapa.getInstance().estaLibre(piezaActual.getBloque3().getX(),\n\t\t\t\t\tpiezaActual.getBloque3().getY() + 1)) {\n\t\t\t\tpiezaActual.getBloque3().bajar(); // Dejar en ese orden\n\t\t\t\tpiezaActual.getBloque2().bajar();\n\t\t\t\tpiezaActual.getBloque1().bajar();\n\t\t\t} else {\n\t\t\t\tthis.piezaNueva();\n\t\t\t}\n\t\t}\n\t}", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "private void cekKecepatanBatas(double cepatKMHbatas, double cepatKMHSkrg) {\n\t\t\n\t\t\n\t\tif (cepatKMHSkrg < cepatKMHbatas) {\n\t\t\t\n\t\t\t//matikan alarm jika menyala\n\t\t\tmatikanAlarm();\n\t\t\t\n\t\t\t//ubah warna grafis jadi hijau\n\t\t\tlayoutbar.setBackgroundColor(Kecepatan.this.getResources().getColor(R.color.hijaunow));\n\t\t\t\t\t\t\n\t\t\t//ubah gambar bahaya jadi aman\n\t\t\tgambarstatus.setImageDrawable(Kecepatan.this.getResources().getDrawable(R.drawable.ikonaman));\n\t\t\t\n\t\t\t//ganti teks bahaya jadi aman\n\t\t\tteksstatus.setText(TAG_AMAN);\n\t\t\tteksstatus.setTextColor(Kecepatan.this.getResources().getColor(R.color.hijaunow));\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\t//nyalakan alarm tanda bahaya\n\t\t\tnyalakanAlarm();\n\t\t\t\n\t\t\t//ubah warna grafis jadi merah\n\t\t\tlayoutbar.setBackgroundColor(Kecepatan.this.getResources().getColor(R.color.merahnow));\n\t\t\t\n\t\t\t//ubah gambar aman jadi bahaya\n\t\t\tgambarstatus.setImageDrawable(Kecepatan.this.getResources().getDrawable(R.drawable.ikonbahaya));\n\t\t\t\n\t\t\t//ganti teks aman jadi bahaya\n\t\t\tteksstatus.setText(TAG_BAHAYA);\n\t\t\tteksstatus.setTextColor(Kecepatan.this.getResources().getColor(R.color.merahnow));\n\t\t}\n\t}", "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 String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "private void botol() {\n if (liter==0){\n\n wliter.setText(\"1L\");\n wbattery.setImageResource(R.drawable.ic_battery_20);\n Toast.makeText(this,\"Air Sedikit\", Toast.LENGTH_SHORT).show();\n }\n else if (liter==1){\n wliter.setText(\"2L\");\n wbattery.setImageResource(R.drawable.ic_battery_50);\n\n }\n else if (liter==2){\n wliter.setText(\"3L\");\n wbattery.setImageResource(R.drawable.ic_battery_60);\n\n }\n else if (liter==3){\n wliter.setText(\"4L\");\n wbattery.setImageResource(R.drawable.ic_battery_80);\n ;\n }\n else if (liter==4){\n wliter.setText(\"5L\");\n wbattery.setImageResource(R.drawable.ic_battery_90);\n\n }\n else if (liter==5){\n wliter.setText(\"6L\");\n wbattery.setImageResource(R.drawable.ic_battery_full);\n Toast.makeText(this,\"Air Sudah Penuh\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "private BarData generateDataBar() {\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n ArrayList<BarEntry> entries = new ArrayList<>();\n ArrayList<TransactionBeans> transactionBeans = transactionDB.getTransactionRecordsMonth(month1,year);\n for (int i = 0; i < transactionBeans.size(); i++) {\n TransactionBeans beans = transactionBeans.get(i);\n entries.add(new BarEntry(i, (int) (Double.parseDouble(beans.getIncome()))));\n }\n\n BarDataSet d = new BarDataSet(entries, \"\");\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n cd.setDrawValues(false);\n return cd;\n }", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "public void tampilkanKamarKosongHarga (int hargaMaks) {\n for (Kamar k:daftarKamar.values()) {\n if (k.isKosong && k.harga<= hargaMaks) {\n k.print();\n }\n }\n }", "private void loadCarga(String NroGuia){\r\n log_CGuias[] log_cguias_carga = Ln.getInstance().find_log_CGuias(NroGuia, \"\", \"nguia\", Integer.parseInt(rows));\r\n \r\n tf_pcarga.setText(String.valueOf(log_cguias_carga[0].getNumpuerta()));\r\n tf_chofer.setText(log_cguias_carga[0].getChofer());\r\n tf_veh1.setText(log_cguias_carga[0].getVeh1());\r\n tf_veh2.setText(log_cguias_carga[0].getVeh2());\r\n if (log_cguias_carga[0].getAyud1() != null)\r\n tf_ayud1.setText(log_cguias_carga[0].getAyud1());\r\n else\r\n tf_ayud1.setText(\"\");\r\n if (log_cguias_carga[0].getAyud2() != null)\r\n tf_ayud2.setText(log_cguias_carga[0].getAyud2());\r\n else\r\n tf_ayud2.setText(\"\");\r\n tf_cheqp.setText(log_cguias_carga[0].getCheq_pta());\r\n if (log_cguias_carga[0].getIdsupruta() != null)\r\n tf_supruta.setText(log_cguias_carga[0].getIdsupruta());\r\n else\r\n tf_supruta.setText(\"\");\r\n\r\n lb_chofer.setText(log_cguias_carga[0].getSchofer());\r\n lb_ayud1.setText(log_cguias_carga[0].getSayud1());\r\n lb_cheqp.setText(log_cguias_carga[0].getScheq_pta());\r\n lb_supruta.setText(log_cguias_carga[0].getSsup_ruta());\r\n \r\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "public void billeBarre() { \t\t\t\t\t\t\t\t\t\t\t\n\t\tint contact = 0;\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Étude des contacts avec les 8 points de la bille\n\t\t// Contact GaucheHaut de la bille\n\n\t\t// Contact haut de la bille\n\t\tint[] p = billeEnCours.MH();\n\t\tif (p[1] <= barreEnCours.bas() && p[1] >= barreEnCours.haut() && p[0] <= barreEnCours.droite() && p[0] >= barreEnCours.gauche()) {\n\t\t\tcontact = 3;\n\t\t}\n\n\t\t// Contact bas de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.MB();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 7;\n\t\t\t}\n\t\t}\n\n\t\t// Contact droite de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.DM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 5;\n\t\t\t}\n\t\t}\n\n\t\t// Contact gauche de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.GM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 1;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 2;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 4;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 8;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 6;\n\t\t\t}\n\t\t}\n\n\t\t// Mise à jour de la vitesse \n\n\t\t// Rencontre d'un coin\n\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\tbilleEnCours.demiTour();\n\t\t}\n\n\t\t// Contact Classique\n\t\t// Gauche - Droite\n\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t\t// Haut - Bas : Déviation de la balle\n\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\tint[] nv = new int[] {1,1};\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4 && billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] - 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] + 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\t\t\t\n\n\n\t}", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "public boolean tieneRepresentacionGrafica();", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }", "public static void dodavanjeBicikl() {\n\t\tString vrstaVozila = \"Bicikl\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = Main.nista;\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = 0;\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 700;\n\t\tdouble cenaServisa = 5000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tint brSedist = 1;\n\t\tint brVrata = 0;\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tBicikl vozilo = new Bicikl(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}", "public int getVelocidadBala() {\n return velocidadBala;\n }", "public void balayer()\r\n {\r\n int tot=0;\r\n for (int i=0;i<LONGUEUR;i++ )\r\n {\r\n for (int j=0; j<LARGEUR; j++ )\r\n {\r\n tot=0;\r\n Haut = lignesHor[i][j];\r\n Droite = lignesVert[i+1][j];\r\n Bas = lignesHor[i][j+1];\r\n Gauche = lignesVert[i][j];\r\n\r\n if (Haut)\r\n {\r\n tot++;\r\n Vision[i][j][1]=1;\r\n }\r\n\r\n if (Droite)\r\n {\r\n tot++;\r\n Vision[i][j][2]=1;\r\n }\r\n\r\n if (Bas)\r\n {\r\n tot++;\r\n Vision[i][j][3]=1;\r\n }\r\n\r\n\r\n if (Gauche)\r\n {\r\n tot++;\r\n Vision[i][j][4]=1;\r\n }\r\n\r\n Vision[i][j][0]=Vision[i][j][1]+Vision[i][j][2]+Vision[i][j][3]+Vision[i][j][4];\r\n }\r\n }\r\n }", "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "private static Bala tipoBala(int idPj, Vector2 posicionRelativaRecibido, int tamanoBala) {\n Bala bala;\n Array<TextureRegion> arrayTexturas = Util.ficherosEnDirectorio(Gdx.files.internal(\"Balas/\" + idPj));\n switch (idPj) {\n //Balas con forma rectangular\n case 1:\n case 4:\n case 7:\n bala = new BalaRect(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n //Balas con forma circular\n case 2:\n bala = new BalaCirc(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n //Balas con forma poligonal\n case 3:\n case 5:\n case 6:\n case 8:\n case 9:\n case 10:\n bala = new BalaPol(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n default:\n arrayTexturas = Util.ficherosEnDirectorio(Gdx.files.internal(\"Balas/1\"));\n bala = new BalaRect(posicionRelativaRecibido, velocidadBalas, arrayTexturas, idPj, tamanoBala);\n break;\n }\n return bala;\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public static ArrayList<Krediti> rascetOtricBalans() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Krediti vkla : kred) {\r\n\r\n\t\t\tt = t + vkla.getDolg();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Otrictelni balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundKrediti;\r\n\t}", "@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }", "public void ocultarBarraTitulo() {\r\n barra = ((javax.swing.plaf.basic.BasicInternalFrameUI) getUI()).getNorthPane();\r\n dimensionBarra = barra.getPreferredSize();\r\n barra.setSize(0, 0);\r\n barra.setPreferredSize(new Dimension(0, 0));\r\n repaint();\r\n }", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n btn_stat.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n ReclamationService rs=new ReclamationService();\r\n int a=0;int b=0;int c=0;\r\n try {\r\n a=rs.getNombre(\"traitee\");\r\n b= rs.getNombre(\" en cours \");\r\n // c= rs.getNombre(\"En maintenance\");\r\n } catch (SQLException ex) {\r\n Logger.getLogger(StatisquereclamationController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n DefaultCategoryDataset dataset=new DefaultCategoryDataset();\r\n dataset.setValue(a, \"statut\", \"traitee\");\r\n dataset.setValue(b, \"statut\", \" en cours\");\r\n // dataset.setValue(c, \"equipements\", \"en maintenance\");\r\n JFreeChart chart=ChartFactory.createBarChart3D(\"statut de reclamation \", \"etat\", \"nombres\", dataset);\r\n chart.setBackgroundPaint(Color.YELLOW);\r\n chart.getTitle().setPaint(Color.red);\r\n CategoryPlot p=chart.getCategoryPlot();\r\n p.setRangeGridlinePaint(Color.BLUE);\r\n ChartFrame frame=new ChartFrame(\"bar de reclamation\",chart);\r\n frame.setVisible(true);\r\n frame.setSize(450, 350);\r\n System.out.println(a);\r\n System.out.println(b);\r\n\r\n }\r\n });\r\n btn_stat1.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n ReclamationService rs=new ReclamationService();\r\n int a=0;int b=0;int c =0;\r\n try {\r\n \r\n a=rs.Afficher_listcat(Integer.parseInt(tx_id_patissier.getText()));\r\n b=rs.NombreRec();\r\n c=a/b;\r\n // c= rs.getNombre(\"En maintenance\");tx_id_patissier.getText()\r\n } catch (SQLException ex) {\r\n Logger.getLogger(StatisquereclamationController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n DefaultCategoryDataset dataset=new DefaultCategoryDataset();\r\n dataset.setValue(a, \"taux de reclamation\", \"Patissier n°\"+tx_id_patissier.getText());\r\n \r\n // dataset.setValue(c, \"equipements\", \"en maintenance\");\r\n JFreeChart chart=ChartFactory.createBarChart3D(\"Statistique de patissier\", \"patissier\", \"nombres\", dataset);\r\n chart.setBackgroundPaint(Color.YELLOW);\r\n chart.getTitle().setPaint(Color.red);\r\n CategoryPlot p=chart.getCategoryPlot();\r\n p.setRangeGridlinePaint(Color.BLUE);\r\n ChartFrame frame=new ChartFrame(\"bar de reclamation\",chart);\r\n frame.setVisible(true);\r\n frame.setSize(450, 350);\r\n System.out.println(a);\r\n \r\n }\r\n });\r\n\r\n }", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public Form_Barang() {\n initComponents();\n model = new DefaultTableModel();\n \n barang.setModel(model);\n model.addColumn(\"KODE PRODUK\");\n model.addColumn(\"NAMA PRODUK\");\n model.addColumn(\"MERK BARANG\");\n model.addColumn(\"JUMLAH STOK\");\n model.addColumn(\"HARGA\");\n getDataProduk();\n \n }", "public Mazo()\n {\n cartasBaraja = new ArrayList<>();\n for(Palo paloActual: Palo.values()){ \n String palo = paloActual.toString().toLowerCase();\n for(int i = 1; i < 13; i ++){\n\n if(i > 7 && i < 10){\n i = 10;\n }\n Carta carta = new Carta(i, paloActual);\n cartasBaraja.add(carta);\n }\n }\n }", "@Override\n public void onResponse(JSONObject response) {\n try {\n NumberFormat rupiah = NumberFormat.getInstance(Locale.GERMANY);\n textBalancep.setText(rupiah.format(response.getDouble(\"aset\")));\n\n JSONArray jsonArray = response.getJSONArray(\"hasil1\");\n for (int i=0; i <2;i++){\n JSONObject jsonObject;\n jsonObject = jsonArray.getJSONObject(i);\n HashMap<String, String> map = new HashMap<>();\n map.put(\"id1\", jsonObject.getString(\"id1\"));\n map.put(\"status1\", jsonObject.getString(\"status1\"));\n map.put(\"jumlah1\", jsonObject.getString(\"jumlah1\"));\n map.put(\"nama1\", jsonObject.getString(\"nama1\"));\n map.put(\"tanggal1\", jsonObject.getString(\"tanggal1\"));\n map.put(\"tanggal21\", jsonObject.getString(\"tanggal21\"));\n\n arusPiutang.add(map);\n }\n adapterReadP();\n }catch (JSONException e){\n e.printStackTrace();\n }\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public static String TiposDeRaza(int razaPerro) {\n String tipoRaza;\r\n String[] razas = {\"Bulldog\", \"Husky siberiano\", \"Labrador\", \"Golden retriever\", \"Beagle\", \"Bóxer\", \"Dogo\", \"Gran danés\", \"Scooby-Doo\", \"Bolt\", \"Ovejero\", \"Pitbull\"};\r\n tipoRaza = razas[razaPerro];\r\n return tipoRaza;\r\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }", "public void kurang(){\n hitung--;\n count.setText(Integer.toString(hitung));\n }", "public void getRegionalDistrictData(final String mRegion,final String mWeek){\n mSTKCStockOutBarRegional = new STKCStockOutBarRegional() {\n @Override\n protected void onPostExecute(String results) {\n //dialog.dismiss();\n if (!results.equalsIgnoreCase(\"error\")) {\n try {\n JSONObject obj = new JSONObject(results);\n if(obj.getString(\"status\").equalsIgnoreCase(\"ok\")) {\n\n Log.e(\"District GraphData\", \"\"+results);\n\n JSONArray res = obj.getJSONArray(\"results\");\n\n String[] drugs = new String[res.length()];\n\n for(int i= 0; i< res.length();i++){\n JSONArray array = res.getJSONArray(i);\n barEntries.add(new BarEntry(i+1, (float) array.getDouble(2)));\n barEntries1.add(new BarEntry(i+1, (float) array.getDouble(1)));\n drugs[i] = array.getString(3);\n }\n // [\"UcOzqLVFJVo\",0,0,\"Kyotera District\"]\n\n BarDataSet barDataSet = new BarDataSet(barEntries,\"Stockouts\");\n barDataSet.setColor(Color.parseColor(\"#7CB5EC\"));\n Collections.sort(barEntries, new EntryXComparator());\n BarDataSet barDataSet1 = new BarDataSet(barEntries1,\"Clients at risk(*100) -Paediatrics\");\n barDataSet1.setColors(Color.parseColor(\"#000000\"));\n Collections.sort(barEntries1, new EntryXComparator());\n\n\n BarData data = new BarData(barDataSet,barDataSet1);\n barChart.setData(data);\n\n barProg.setVisibility(View.GONE);\n\n XAxis xAxisB = barChart.getXAxis();\n xAxisB.setValueFormatter(new IndexAxisValueFormatter(drugs));\n barChart.getAxisLeft().setAxisMinimum(0);\n xAxisB.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxisB.setGranularity(1);\n xAxisB.setLabelRotationAngle(45);\n xAxisB.setCenterAxisLabels(true);\n xAxisB.setGranularityEnabled(true);\n\n barChart.setFitBars(true);\n\n float barSpace = 0.01f;\n float groupSpace = 0.1f;\n int groupCount = 12;\n\n //IMPORTANT *****\n data.setBarWidth(0.15f);\n barChart.getXAxis().setAxisMinimum(0);\n barChart.getXAxis().setAxisMaximum(0 + barChart.getBarData().getGroupWidth(groupSpace, barSpace) * groupCount);\n barChart.groupBars(0, groupSpace, barSpace); // perform the \"explicit\" grouping\n //***** IMPORTANT\n\n Log.e(\"here GraphData 2\", \"\"+res.length());\n\n\n\n }else{\n Toast.makeText(getActivity(), \"message failed!\", Toast.LENGTH_SHORT).show();\n if(dialog.isShowing()){\n dialog.dismiss();\n }\n }\n } catch (JSONException localJSONException) {\n Log.e(\"gettingjson\", localJSONException.toString());\n localJSONException.printStackTrace();\n if(dialog.isShowing()){\n dialog.dismiss();\n }\n }\n }\n }\n @Override\n protected void onPreExecute()\n {\n //dialog = ProgressDialog.show(getActivity(), \"\", \"Loading Data...\", true);\n //dialog.setCancelable(true);\n }\n\n };\n mSTKCStockOutBarRegional.execute(mRegion, mWeek);\n\n }", "private void ubicarBarco(MouseEvent e) throws NullPointerException{\n\t\t\t\tif (e.getButton() == 1) {\n\t\t\t\t\tfor (int i = 0; i < barcosJugadores.get(0).get(0).getSize(); i++) {\n\t\t\t\t\t\tCasilla casilla = grilla.casillas.get(posicionX + \"\" + (posicionY + (grilla.sizeCasilla * i)));\n\t\t\t\t\t\tcasilla.setBackground(new Color(220, 0, 0));\n\t\t\t\t\t}\n\t\t\t\t\tsetBackground(new Color(220, 0, 0));\n\t\t\t\t\tbarcosJugadores.get(0).remove(0);\n\t\t\t\t\tif (barcosJugadores.get(0).size() == 0) {\n\t\t\t\t\t\tdebeColocar1 = false;\n\t\t\t\t\t}\n\t\t\t\t} else if (e.getButton() == 3) {\n\t\t\t\t\tfor (int i = 0; i < barcosJugadores.get(0).get(0).getSize(); i++) {\n\t\t\t\t\t\tCasilla casilla = grilla.casillas.get((posicionX + (grilla.sizeCasilla * i)) + \"\" + posicionY);\n\t\t\t\t\t\tcasilla.setBackground(new Color(220, 0, 0));\n\t\t\t\t\t}\n\t\t\t\t\tsetBackground(new Color(220, 0, 0));\n\t\t\t\t\tbarcosJugadores.get(0).remove(0);\n\t\t\t\t\tif (barcosJugadores.get(0).size() == 0) {\n\t\t\t\t\t\tdebeColocar1 = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t}", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public void Showbarang_gudang() {\n initComponents();\n setHeader();\n }", "public int hapus() {\r\n return elemen[--ukuran];\r\n }", "@Override\n public void paint(Graphics g){\n GraficasEstatus cantidad=new GraficasEstatus();\n super.paint(g);\n if(bandera==true){\n \n int nuevoingreso=cantidad.nuevoIngreso();\n int noreparado=cantidad.noReparado();\n int enrevision=cantidad.enRevision();\n int reparado=cantidad.reparado();\n int entregado=cantidad.entregado();\n int otro=cantidad.otro();\n \n int valormayor=mayorValor(nuevoingreso, noreparado, enrevision, reparado, entregado, otro);\n \n int ningreso=nuevoingreso*400/valormayor;\n int nreparados=noreparado*400/valormayor;\n int erevision=enrevision*400/valormayor;\n int reparados=reparado*400/valormayor;\n int entregados=entregado*400/valormayor;\n int otros=otro*400/valormayor;\n \n g.setColor(new Color(255,170,0));\n g.fillRect(100, 100, ningreso, 40);\n g.drawString(\"Nuevo ingreso\", 10, 118);\n g.drawString(\"Cantida \"+nuevoingreso, 10, 133);\n \n g.setColor(new Color(255,0,0));\n g.fillRect(100, 150, nreparados, 40);\n g.drawString(\"No reparados\", 10, 168);\n g.drawString(\"Cantida \"+noreparado, 10, 180);\n \n g.setColor(new Color(0,0,255));\n g.fillRect(100, 200, erevision, 40);\n g.drawString(\"En revision\", 10, 218);\n g.drawString(\"Cantida \"+enrevision, 10, 233);\n \n g.setColor(new Color(0,150,255));\n g.fillRect(100, 250, reparados, 40);\n g.drawString(\"Reparados\", 10, 268);\n g.drawString(\"Cantida \"+reparado, 10, 280);\n \n g.setColor(new Color(0,130,0));\n g.fillRect(100, 300, entregados, 40);\n g.drawString(\"Entregados\", 10, 318);\n g.drawString(\"Cantida \"+entregado, 10, 333);\n \n g.setColor(new Color(150,100,100));\n g.fillRect(100, 350, otros, 40);\n g.drawString(\"Otro\", 10, 368);\n g.drawString(\"Cantida \"+otro, 10, 380);\n \n }\n }", "public void controlla_bersaglio() {\n\n if ((x[0] == bersaglio_x) && (y[0] == bersaglio_y)) {\n punti++;\n posiziona_bersaglio();\n }\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "@Override\n public void onResponse(JSONObject response) {\n try {\n NumberFormat rupiah = NumberFormat.getInstance(Locale.GERMANY);\n textBalance.setText(rupiah.format(response.getDouble(\"masuk\")-response.getDouble(\"keluar\")));\n\n JSONArray jsonArray = response.getJSONArray(\"hasil\");\n for (int i=0; i <2;i++) {\n JSONObject jsonObject;\n jsonObject = jsonArray.getJSONObject(i);\n HashMap<String, String> map = new HashMap<>();\n map.put(\"id\", jsonObject.getString(\"id\"));\n map.put(\"status\", jsonObject.getString(\"status\"));\n map.put(\"jumlah\", jsonObject.getString(\"jumlah\"));\n map.put(\"keterangan\", jsonObject.getString(\"keterangan\"));\n map.put(\"tanggal\", jsonObject.getString(\"tanggal\"));\n map.put(\"tanggal2\", jsonObject.getString(\"tanggal2\"));\n\n arusuang.add(map);\n }\n adapterRead();\n }catch (JSONException e){\n e.printStackTrace();\n }\n }", "public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "private void Proses() {\n ti = Double.valueOf(ktinggi.getText());\n bt = Double.valueOf(kberat.getText());\n \n if(jRadioButton1.isSelected()){\n h1 = (ti - 100) * 1;\n } else if (jRadioButton2.isSelected()){\n h1 = (ti - 104) * 1;\n }\n temp = Double.toString(h1.intValue());\n \n if (h1 < bt) {\n kideal.setText(temp);\n hasil.setText(\"Maaf \" + knama.getText() + \" , Sepertinya anda Overweight :( \");\n saran.setText(\"Banyaklah berolahraga dan hindari makanan berkolesterol\");\n } else if (h1 > bt) {\n kideal.setText(temp);\n hasil.setText(\"Maaf \" + knama.getText() + \" , Sepertinya anda Underweight :(\");\n saran.setText(\"Banyaklah mengkonsumsi makanan yang berkarbohidrat\");\n } else {\n kideal.setText(temp);\n hasil.setText(\"Hallo \" + knama.getText() + \" , Berat badan anda sudah ideal :)\");\n saran.setText(\"Lanjutkan pola makan teratur dan gaya hidup sehat :)\");\n }\n \n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "private void mostrarPregunta() {\n inicializarColorBoton();\n\n preguntaActual=trivia.get(idPregunta);\n txtPregunta.setText(preguntaActual.getPregunta());\n\n\n if (preguntaActual.getImgPregunta()!=null)\n {\n\n Log.e(TAG,preguntaActual.getImgPregunta() );\n Glide.with(getApplicationContext())\n .load(preguntaActual.getImgPregunta())\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imgPregunta);\n imgPregunta.setVisibility(View.VISIBLE);\n }\n else\n {\n imgPregunta.setVisibility(View.GONE);\n }\n\n switch(preguntaActual.getOpciones().size())\n {\n case 2:\n btn1.setText(preguntaActual.getOpciones().get(0));\n btn2.setText(preguntaActual.getOpciones().get(1));\n btn3.setVisibility(View.GONE);\n btn4.setVisibility(View.GONE);\n break;\n case 4:\n btn1.setText(preguntaActual.getOpciones().get(0));\n btn2.setText(preguntaActual.getOpciones().get(1));\n btn3.setText(preguntaActual.getOpciones().get(2));\n btn4.setText(preguntaActual.getOpciones().get(3));\n btn3.setVisibility(View.VISIBLE);\n btn4.setVisibility(View.VISIBLE);\n break;\n }\n idPregunta++;\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "@Override\n public int getTotalBarangById(String idTransaksi) {\n int totalBarang = 0;\n\n try {\n String query = \"SELECT SUM(b.jml_barang) AS \\\"total_barang\\\" FROM transaksi a INNER JOIN detail_transaksi b ON a.id = b.id_transaksi\";\n query += \" WHERE a.id = ?\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ps.setString(1, idTransaksi);\n ResultSet rs = ps.executeQuery();\n\n if (rs.next()) {\n totalBarang = rs.getInt(1);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return totalBarang;\n }", "private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// O BOTAO FOR VISIVEL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected int maakTrein(int positie){\r\n for (int i = 0; i <= treinaantal; i++){\r\n if (treinlijst[i] == null){\r\n treinlijst[i] = new Trein(positie, treinaantal++);\r\n baan.addTrein(treinlijst[i].getId());\r\n //update naar gui\r\n int trein[] = new int[1];\r\n trein[0] = treinlijst[i].getId();\r\n int[] arg = new int[1];\r\n arg[0] = positie;\r\n main.updateGui(\"trein\", trein, arg);\r\n return treinlijst[i].getId();\r\n }\r\n }\r\n return 0;\r\n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }", "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "private void btBayar1ActionPerformed(java.awt.event.ActionEvent evt) {\nString b = \"\" ;\n for (int i = 0; i < berhasil.length; i++) {\n \n for ( int x = 0 ; x < 1; x ++){\n if (!berhasil[i].equals(\" \")){\n b = b + berhasil[i];\n b = b + \"\\n\";\n break; \n }\n \n }\n System.out.println(\" \");\n \n }\n \n \n JOptionPane.showMessageDialog(this,\"NOTA PEMBELIAN\\n\" + \"Nama : \" + nama + \"\\n\\nRincian:\\n\" + b + \n \"\\n====================================\" + \"\\n TOTAL = \" + total);\n \n int jawab = JOptionPane.showOptionDialog(this, \n \"Apakah Anda Ingin Menggunakan Gopay Untuk Pembayaran Anda? Cashback 30%\", \n \"Gopay Page\", \n JOptionPane.YES_NO_OPTION, \n JOptionPane.QUESTION_MESSAGE, null, null, null); \n int bayar;\n switch(jawab){\n case JOptionPane.YES_OPTION: \n int diskon = (total * 30)/100;\n int total1 = total - diskon;\n JOptionPane.showMessageDialog(null, \"Total Pembayaran Anda Adalah \" + total1 + \"\\nTerima Kasih, Pak/Ibu \" +nama);\n break;\n case JOptionPane.NO_OPTION:\n do {\n String inputan = JOptionPane.showInputDialog(\"Jumlah Uang Yang Akan Dibayarkan\");\n bayar = Integer.parseInt(inputan);\n total1 = bayar - total;\n if (bayar >= total) {\n x = 1;\n } else if (bayar < total) {\n JOptionPane.showMessageDialog(null, \"Uang Yang Anda Bayarkan Tidak Sesuai, Silahkan Masukan Kembali\");\n x = 0;\n }\n } while( x == 0);\n if ( bayar == total ) {\n JOptionPane.showMessageDialog(null, \"Uang Anda Pas\" + \"\\nTerima Kasih, Pak/Ibu \" + nama);\n } \n else {\n JOptionPane.showMessageDialog(null, \"Kembalian Anda Adalah \" + total1 + \"\\nTerima Kasih, Pak/Ibu \" + nama);\n break; \n }\n }\n this.dispose();\n }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "@Override\r\n public int getCount() {\n return gambar_makanan.length;\r\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "private BarData generateDataBar() {\n\n ArrayList<BarEntry> entries = new ArrayList<>();\n\n for (int i = 0; i < 12; i++) {\n entries.add(new BarEntry(i, (int) (Math.random() * 70) + 30));\n }\n\n BarDataSet d = new BarDataSet(entries, \"New DataSet 1\");\n // 设置相邻的柱状图之间的距离\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n // 设置高亮的透明度\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n return cd;\n }", "public String draaiGangkaart()\n {\n if (vrijeGangkaart.getOrientatie() == 4)\n {\n vrijeGangkaart.setOrientatie(1);\n } else\n {\n vrijeGangkaart.setOrientatie((vrijeGangkaart.getOrientatie() + 1));\n }\n\n return vrijeGangkaart.toString();\n }", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "private void getnumber_Fourgroup6_xuan_big() {\n\t\tbtn_Fourgroup6_xuan_0.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_0.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_1.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_1.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_2.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_2.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_3.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_3.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_4.setBackgroundResource(R.drawable.round);\r\n\t\ttext_Fourgroup6_xuan_4.setTextColor(0xffdedede);\r\n\t\tbtn_Fourgroup6_xuan_5.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_5.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_6.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_6.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_7.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_7.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_8.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_8.setTextColor(0xffffffff);\r\n\t\tbtn_Fourgroup6_xuan_9.setBackgroundResource(R.drawable.big_num_on);\r\n\t\ttext_Fourgroup6_xuan_9.setTextColor(0xffffffff);\r\n\t\tmyriabit[5] = \"1\";\r\n\t\tmyriabit[6] = \"1\";\r\n\t\tmyriabit[7] = \"1\";\r\n\t\tmyriabit[8] = \"1\";\r\n\t\tmyriabit[9] = \"1\";\r\n\t\tmyriabit[0] = \"0\";\r\n\t\tmyriabit[1] = \"0\";\r\n\t\tmyriabit[2] = \"0\";\r\n\t\tmyriabit[3] = \"0\";\r\n\t\tmyriabit[4] = \"0\";\r\n\r\n\t\tbtn_Fourgroup6_xuan_0_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_1_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_2_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_3_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_4_int = 1;\r\n\t\tbtn_Fourgroup6_xuan_5_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_6_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_7_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_8_int = -1;\r\n\t\tbtn_Fourgroup6_xuan_9_int = -1;\r\n\t\tshow(myriabit);\r\n\t}" ]
[ "0.657854", "0.64396334", "0.63852", "0.62752575", "0.6191511", "0.6106471", "0.59001696", "0.5893223", "0.5863403", "0.58374286", "0.58213073", "0.5803374", "0.58017874", "0.579197", "0.5791181", "0.57766336", "0.5749767", "0.5745919", "0.5738243", "0.5732386", "0.5729752", "0.5728806", "0.57235914", "0.5697461", "0.5696819", "0.56891686", "0.56809014", "0.5680282", "0.56633645", "0.564743", "0.56398827", "0.563927", "0.5636368", "0.5634866", "0.5632219", "0.56283754", "0.5626974", "0.56266505", "0.56252587", "0.56252265", "0.56163013", "0.5609094", "0.5608042", "0.560733", "0.5600626", "0.5595089", "0.55882376", "0.5586469", "0.55842024", "0.5578623", "0.55727375", "0.55689484", "0.5567729", "0.5567469", "0.5542551", "0.55413264", "0.5540098", "0.5537364", "0.5534709", "0.5528296", "0.5526572", "0.552236", "0.55192685", "0.55187863", "0.5516831", "0.5504337", "0.5495628", "0.5492803", "0.549091", "0.5485339", "0.5482047", "0.5481491", "0.5481115", "0.54803616", "0.5479684", "0.5474056", "0.5474002", "0.5473617", "0.54704636", "0.54652476", "0.5464473", "0.5464067", "0.54621893", "0.5438962", "0.5438946", "0.5438717", "0.5438507", "0.543405", "0.5433893", "0.5433007", "0.54310817", "0.54292244", "0.5427379", "0.54233235", "0.5422848", "0.5417034", "0.5409806", "0.5409727", "0.54049265", "0.54048926", "0.53992563" ]
0.0
-1
/ mencari determinan dengan ekspansi kofaktor
float DetCofactor(Matrix m){ int a,b; double sum=0; Matrix mtemp; if(m.rows==2){ sum = ((m.M[0][0])*(m.M[1][1])) - (((m.M[0][1])*(m.M[1][0]))); } else{ for(int i=0; i<m.cols; i++){ mtemp = new Matrix(m.rows-1,m.cols-1); a = 0; for(int j=1; j<m.cols; j++){ b = 0; for(int k=0; k<m.rows; k++){ if(k!=i){ mtemp.M[a][b] = m.M[j][k]; b++; } } a++; } if((i+1)%2==0){ sum += m.M[0][i] * DetGauss(mtemp)* (-1); }else{ sum += m.M[0][i] * DetGauss(mtemp); } } } return (float) sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String dohvatiKontakt();", "void tampilKarakterA();", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public String kalkulatu() {\n\t\tString emaitza = \"\";\n\t\tDouble d = 0.0;\n\t\ttry {\n\t\t\td = Double.parseDouble(et_sarrera.getText().toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tet_sarrera.setText(\"0\");\n\t\t}\n\t\tif (st_in.compareTo(\"m\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609.344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"km\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100000.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1.609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0000254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"cm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 10.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 160934.4);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 2.54);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"mm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 10.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 25.4);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"ml\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1.609344);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609.344);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 160934.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.000015782828);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"inch\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0000254);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0254);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 2.54);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 25.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.000015782828);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t}\n\t\t}\n\t\treturn emaitza;\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "float getMonatl_kosten();", "double kalkuliereZeit();", "String getVorlesungKennung();", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "private void getK(){\r\n if(txtK.getText() != \"\"){\r\n interpretador.setK(Integer.parseInt(txtK.getText()));\r\n in.setK(Integer.parseInt(txtK.getText()));\r\n }\r\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public static synchronized void el() {\n synchronized (la.class) {\n int i;\n int i2;\n long currentTimeMillis = System.currentTimeMillis() / 1000;\n Context applicaionContext = TMSDKContext.getApplicaionContext();\n boolean hm = i.hm();\n boolean K = i.K(applicaionContext);\n ky aJ = kz.aJ(141);\n if (aJ != null) {\n if (aJ.xZ && hm) {\n i = 0;\n try {\n i = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th) {\n }\n if (i <= 0) {\n i = SmsCheckResult.ESCT_168;\n }\n if ((currentTimeMillis - kz.dV() <= ((long) i) * 3600 ? 1 : null) == null) {\n lb.en();\n }\n }\n }\n aJ = kz.aJ(SmsCheckResult.ESCT_146);\n if (aJ != null) {\n if (aJ.xZ) {\n i = 0;\n try {\n i = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th2) {\n }\n if (i <= 0) {\n i = 24;\n }\n if ((kz.dX() > 0 ? 1 : null) == null) {\n kz.l(currentTimeMillis);\n } else {\n if (K) {\n }\n if (hm) {\n }\n }\n }\n }\n aJ = kz.aJ(150);\n if (aJ != null && aJ.xZ) {\n i = 0;\n i2 = 0;\n try {\n i = aJ.ya;\n i2 = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th3) {\n }\n if (i <= 0) {\n i = 24;\n }\n if (i2 <= 0) {\n i2 = 24;\n }\n if ((kz.eb() > 0 ? 1 : null) == null) {\n kz.m((currentTimeMillis - 86400) - 1);\n }\n if ((currentTimeMillis - kz.eb() < ((long) i) * 3600 ? 1 : null) == null) {\n le.ep();\n }\n if ((kz.ec() > 0 ? 1 : null) == null) {\n kz.n(currentTimeMillis);\n } else {\n if (K) {\n }\n if (hm) {\n }\n }\n }\n aJ = kz.aJ(151);\n if (aJ != null && aJ.xZ) {\n i = 0;\n i2 = 0;\n try {\n i = aJ.ya;\n i2 = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th4) {\n }\n if (i <= 0) {\n i = 24;\n }\n if (i2 <= 0) {\n i2 = 24;\n }\n if ((kz.ee() <= 0 ? 1 : null) == null) {\n }\n ld.ep();\n if ((kz.ef() > 0 ? 1 : null) == null) {\n kz.p(currentTimeMillis);\n } else {\n if (K) {\n }\n if (hm) {\n }\n }\n }\n aJ = kz.aJ(SmsCheckResult.ESCT_163);\n if (aJ != null && aJ.xZ) {\n i = 0;\n i2 = 0;\n try {\n i = aJ.ya;\n i2 = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th5) {\n }\n if (i <= 0) {\n i = 4;\n }\n if (i2 <= 0) {\n i2 = 24;\n }\n if ((kz.eh() <= 0 ? 1 : null) == null) {\n }\n lc.ep();\n if ((kz.ei() > 0 ? 1 : null) == null) {\n kz.r(currentTimeMillis);\n } else if (hm) {\n if ((currentTimeMillis - kz.ei() <= ((long) i2) * 3600 ? 1 : null) == null) {\n lc.eq();\n }\n }\n }\n }\n }", "@Test\r\n\tpublic void testGetErabBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 5);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "private String getDuzMetinSozlukForm(Kok kok) {\n String icerik = kok.icerik();\r\n if (kok.asil() != null)\r\n icerik = kok.asil();\r\n\r\n StringBuilder res = new StringBuilder(icerik).append(\" \");\r\n\r\n // Tipi ekleyelim.\r\n if (kok.tip() == null) {\r\n System.out.println(\"tipsiz kok:\" + kok);\r\n return res.toString();\r\n }\r\n\r\n if (!tipAdlari.containsKey(kok.tip())) {\r\n System.out.println(\"tip icin dile ozel kisa ad bulunamadi.:\" + kok.tip().name());\r\n return \"#\" + kok.icerik();\r\n }\r\n\r\n res.append(tipAdlari.get(kok.tip()))\r\n .append(\" \")\r\n .append(getOzellikString(kok.ozelDurumDizisi()));\r\n return res.toString();\r\n }", "private int bestandOperationen(int artikelNr, int menge) {\n Validator.check(artikelNr < 1000 || artikelNr > 9999, MSG_ARTIKELNR);\n Validator.check(menge < 0, MSG_MENGE);\n int stelle = -1;\n for (int i = 0; i < key; i++){\n if(getArtikel(i).getArtikelNr() == artikelNr){\n stelle = i;\n }\n }\n Validator.check(stelle == -1, MSG_NICHTGEFUNDEN);\n return stelle;\n }", "public Farbe fuehrendesKamel();", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "void rozpiszKontraktyPart2EV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\t//wektor z ostatecznie ustalona cena\n\t\t//rozpiszKontrakty() - wrzuca jako ostatnia cene cene obowiazujaa na lokalnym rynku \n\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\n\t\t\n\t\t//ograniczenia handlu prosumenta\n\t\tArrayList<DayData> constrainMarkerList = new ArrayList<DayData>();\n\t\t\n\t\t//ograniczenia handlu EV\n\t\tArrayList<DayData> constrainMarkerListEV = new ArrayList<DayData>();\n\t\t\n\t\t//print(listaFunkcjiUzytecznosci.size());\n\t\t//getInput(\"rozpiszKontraktyPart2EV first stop\");\n\t\t\n\t\tint i=0;\n\t\twhile(i<listaFunkcjiUzytecznosci.size())\n\t\t{\n\t\t\t\n\t\t\t//lista funkcji uzytecznosci o indeksie i\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(i);\n\t\t\t\n\t\t\t//point z cena = cena rynkowa\n\t\t\tPoint point = L1.get(index);\n\t\t\t\n\t\t\t\n\t\t\tDayData d =rozpiszKontraktyPointToConstrainMarker(point, wolumenHandlu, sumaKupna, sumaSprzedazy, i);\n\t\t\t\n\t\t\tif (i<Stale.liczbaProsumentow)\n\t\t\t{\n\t\t\t\tconstrainMarkerList.add(d);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconstrainMarkerListEV.add(d);\n\t\t\t\t\n\t\t\t\t/*print(d.getKupuj());\n\t\t\t\tprint(d.getConsumption());\n\t\t\t\tprint(d.getGeneration());\n\t\t\t\t\n\t\t\t\tgetInput(\"rozpiszKontraktyPart2EV - Ostatni kontrakt\");*/\n\t\t\t}\n\n\t\t\t\n\t\t\t//print(\"rozpiszKontraktyPart2EV \"+i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tArrayList<Prosument> listaProsumentow =listaProsumentowWrap.getListaProsumentow();\n\n\t\t//wyywolaj pobranie ontraktu\n\t\ti=0;\n\t\twhile (i<Stale.liczbaProsumentow)\n\t\t{\n\t\t\tif (i<constrainMarkerListEV.size())\n\t\t\t{\n\t\t\t\t((ProsumentEV)listaProsumentow.get(i)).getKontrakt(priceVector,constrainMarkerList.get(i),constrainMarkerListEV.get(i));\n\t\t\t\t//print(\"constrainMarkerListEV \"+i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlistaProsumentow.get(i).getKontrakt(priceVector,constrainMarkerList.get(i));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//getInput(\"rozpiszKontraktyPart2EV -end\");\n\t}", "public int getArtikelAnzahl(){\n return key;\n }", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}", "public void testKumulatifIstatistikCercevesiEkle() {\n System.out.println(\"kumulatifIstatistikCercevesiEkle\");\n IstatistikAlici istatistikAlici = null;\n Yakalayici instance = new Yakalayici();\n instance.kumulatifIstatistikCercevesiEkle(istatistikAlici);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public String Km() throws Exception {\n int x = 0;\n System.out.println(x+\" hlikiaaaaaa\");\n ΑrffCreator gen = new ΑrffCreator();\n\t\t\tgen.ArffGenerator();\n\t\t\t\n\t\t\tSimpleKMeans kmeans = new SimpleKMeans();\n\t \n\t\t\tkmeans.setSeed(2);\n\t \n\t\t\t//important parameter to set: preserver order, number of cluster.\n\t\t\tkmeans.setPreserveInstancesOrder(true);\n\t\t\tkmeans.setNumClusters(2);\n\t \n\t\t\tBufferedReader datafile = readDataFile(\"E:\\\\Users\\\\Filippos\\\\Documents\\\\NetBeansProjects\\\\MapsCopy\\\\mytext.arff\"); \n\t\t\tInstances data = new Instances(datafile);\n\t \n\t \n\t\t\tkmeans.buildClusterer(data);\n\t \n\t\t\t// This array returns the cluster number (starting with 0) for each instance\n\t\t\t// The array has as many elements as the number of instances\n\t\t\tint[] assignments = kmeans.getAssignments();\n int noNoobs=-1;\n\t\t\t//int i=0;\n\t\t\tint g = assignments.length;\n String studentsLvl = \"\";\n String quizAns = \"\";\n int clusterResult;\n\t\t\t/*----------------------------------------->xeirokinitos upologismos<----------------------------------------\n \n /*for(int clusterNum : assignments) {\n if(i==x){\n noNoobs = assignments[i];\n System.out.println(\"to \"+g+\"o einai \"+ clusterNum+\"= \"+x+\" o cluster EINAI PROXORIMENOS\");\n\t\t\t\t}\t\n if(i==g-1) {\n \n if(assignments[i] == noNoobs){\n studentsLvl = \"advanced\";\n System.out.println(\"MPAINEI STOUS PROXORIMENOUS\"+assignments[i]);\n \n }\n else{\n studentsLvl = \"beginner\";\n System.out.println(\"DEN PAEI POY8ENA ETSI\") ; \n }\n \n\t\t\t i++;\n\t\t\t}\n ---------------------------------------------------------------------------------------------------------*/\n /*upologizw thn euklideia apostash twn telikwn cluster cendroids apo to shmeio 0,0 \n auto pou apexei perissotero apo to kentro twn a3onwn , 8a einai to cluster advanced epeidi oso megaluterh hlikia \n kai kalutero scor sto preliminary test , toso pio advanced. Ka8w h logiki einai oti enas pio megalos kai diavasmenos ma8hths\n kaluteros apo enan pio pio mikro kai e3isou diavasmeno ma8hth h enan sunmoliko alla ligotero diavasmeno\n ----------------------------------------------------------------------------------------------------------*/\n \n //1 vazw ta teleutaia clusterCendroids se ena instance\t\t\t\n\t\t\tInstances clusterCendroid = kmeans.getClusterCentroids();\n //ta metatrepw se string\n\t\t\tString cluster0 = (clusterCendroid.firstInstance()).toString();\n\t\t\tString cluster1 = (clusterCendroid.lastInstance()).toString();\n\t\t\tSystem.out.println(cluster0+\"++++++++++++++++\"+cluster1);\n\t\t\t\n //2 spaw to ka8e string sto \",\" gt einai tis morfhs cluster0=\"x0,y0\" cluster1=\"x1,y1\"\n\t\t\tString[] parts = cluster0.split(\",\");\n\t\t\tString partx0 = parts[0]; // 004\n\t\t\tString party0 = parts[1]; // 034556\n\t\n\t\t\tSystem.out.println(partx0+\" || \"+party0);\n \n //3 Metatrepw ta String se double metavlites gia na epitrepontai oi pra3eis\n\t\t\tdouble clusterDx0 = Double.parseDouble(partx0);\n\t\t\tdouble clusterDy0 = Double.parseDouble(party0);\n\t\t\tSystem.out.println(clusterDx0+clusterDy0);\n\t\t\t\n //epanalamvanoume thn diadikasia apo to vhma 2\n\t\t\tString[] parts1 = cluster1.split(\",\");\n\t\t\tString partx1 = parts1[0]; // 004\n\t\t\tString party1 = parts1[1]; // 034556\n\t\t\t\n\t\t\tSystem.out.println(partx1+\" || \"+party1);\n\t\t\t\n \n double clusterDx1 = Double.parseDouble(partx1);\n\t\t\tdouble clusterDy1 = Double.parseDouble(party1);\n\t\t\t//System.out.println(clusterDx1+clusterDy2);\n //ypologizw thn euklidia apostasi twn 2 shmeivn ws pros to 0,0\n\t\t\tdouble popo = Math.sqrt((Math.pow(clusterDx0,2)+Math.pow(clusterDy0,2)));\n\t\t\tdouble popo2 = Math.sqrt((Math.pow(clusterDx1,2)+Math.pow(clusterDy1,2)));\n \n\t\t\tif (Math.max(popo, popo2)==popo) {\n \n clusterResult=0;\n\t\t\t\tSystem.out.println(\"0=advanced -- \"+popo+\"--1=begginer \"+popo2);\n\t\t\t}\n\t\t\telse {\n clusterResult=1;\n\t\t\t\tSystem.out.println(\"1=advanced -- \"+popo2+\"--0=begginer \"+popo);\n\t\t\t}\n\t\t\tSystem.out.println(popo+\"||\"+popo2+\"||\");\n \n if (assignments[data.numInstances()-1]==clusterResult){\n studentsLvl = \"advanced\";\n quizAns = \"yes\";\n System.out.println(\"MPAINEI STOUS PROXORIMENOUS \"+assignments[data.numInstances()-1]);\n }\n else{\n quizAns = \"no\";\n studentsLvl = \"beginner\";\n System.out.println(\"MPAINEI STOUS MH PROXORIMENOUS \"+assignments[data.numInstances()-1]) ; \n }\n \n coursequizs lev = new coursequizs();\n lev.studentLevel(studentsLvl,quizAns);\n \n System.out.println(Arrays.toString(assignments));\n return \"home.jsf\";\n\t\t}", "public static String euklid(int a, int b, int c)\n {\n int[] rk = new int[20];\n rk[0] = a;\n rk[1] = b;\n int k = -1;\n int qk = 0;\n int[] sk = new int[20];\n sk[0] = 1;\n sk[1] = 0;\n int[] tk = new int[20];\n tk[0] = 0;\n tk[1] = 1;\n int i = 0;\n String d = null;\n String konstant = d;\n\n if (b == 0)\n {\n return Integer.toString(a);\n }\n\n System.out.println(\"\\n k | qk rk sk tk\");\n System.out.println(\"-----|------------------------\");\n System.out.println(\" \"+k+\" | -\"+\" \"+rk[0]+\" \"+\"1\"+\" \"+\"0\"); k++;\n System.out.println(\" \"+k+\" | -\"+\" \"+rk[1]+\" 0\"+\" \"+\"1\"); k++;\n System.out.println(\"-----|------------------------\");\n\n for (i = 2; i < rk.length; i++)\n {\n try\n {\n rk[i] = Math.abs(rk[i-2]%rk[i-1]);\n }\n catch (Exception e)\n {\n break;\n }\n\n qk = Math.floorDiv(rk[i-2], rk[i-1]);\n\n System.out.print(\" \"+k+\" | \"+qk+\" \"+rk[i]+\" \");\n\n if (rk[i]!=0)\n {\n sk[i] = sk[i-2]-(qk*sk[i-1]);\n\n tk[i] = tk[i-2]-(qk*tk[i-1]);\n System.out.println(+sk[i]+\" \"+tk[i]);\n }\n\n k++;\n }\n\n System.out.println(\"\\n\");\n\n boolean test = (sk[i-2]*a+tk[i-2]*b == c);\n\n System.out.println(\"sfd(\"+a+\",\"+b+\") = \"+c+\" = \"+sk[i-2]+\"*\"+a+\"+(\"+tk[i-2]+\"*\"+b+\") \"+test);\n\n System.out.println(\"\");\n\n return Arrays.toString(rk);\n\n }", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "@Override\n\tpublic void hasznaljak(Karakter karakter, Jegtabla hol) throws Exception{\n if(karakter.vizben_van) return;\n\t\tkarakter.takarit(2);\n tartossag--;\n if(tartossag<=0) karakter.targy_elhasznalasa(this);\n\t}", "public void peluangKelasterhadapFitur() {\n fakultas[0]=gaussFK[0]*gaussFK[1]*gaussFK[2]*gaussFK[3]*gaussFK[4]*gaussFK[5]*gaussFK[6]*gaussFK[7]*gaussFK[8]*gaussFK[9];\n fakultas[1]=gaussFILKOM[0]*gaussFILKOM[1]*gaussFILKOM[2]*gaussFILKOM[3]*gaussFILKOM[4]*gaussFILKOM[5]*gaussFILKOM[6]*gaussFILKOM[7]*gaussFILKOM[8]*gaussFILKOM[9];\n fakultas[2]=gaussFT[0]*gaussFT[1]*gaussFT[2]*gaussFT[3]*gaussFT[4]*gaussFT[5]*gaussFT[6]*gaussFT[7]*gaussFT[8]*gaussFT[9];\n fakultas[3]=gaussFMIPA[0]*gaussFMIPA[1]*gaussFMIPA[2]*gaussFMIPA[3]*gaussFMIPA[4]*gaussFMIPA[5]*gaussFMIPA[6]*gaussFMIPA[7]*gaussFMIPA[8]*gaussFMIPA[9];\n fakultas[4]=gaussFP[0]*gaussFP[1]*gaussFP[2]*gaussFP[3]*gaussFP[4]*gaussFP[5]*gaussFP[6]*gaussFP[7]*gaussFP[8]*gaussFP[9];\n fakultas[5]=gaussFPT[0]*gaussFPT[1]*gaussFPT[2]*gaussFPT[3]*gaussFPT[4]*gaussFPT[5]*gaussFPT[6]*gaussFPT[7]*gaussFPT[8]*gaussFPT[9];\n fakultas[6]=gaussFTP[0]*gaussFTP[1]*gaussFTP[2]*gaussFTP[3]*gaussFTP[4]*gaussFTP[5]*gaussFTP[6]*gaussFTP[7]*gaussFTP[8]*gaussFTP[9];\n fakultas[7]=gaussFPIK[0]*gaussFPIK[1]*gaussFPIK[2]*gaussFPIK[3]*gaussFPIK[4]*gaussFPIK[5]*gaussFPIK[6]*gaussFPIK[7]*gaussFPIK[8]*gaussFPIK[9];\n fakultas[8]=gaussNon[0]*gaussNon[1]*gaussNon[2]*gaussNon[3]*gaussNon[4]*gaussNon[5]*gaussNon[6]*gaussNon[7]*gaussNon[8]*gaussNon[9];\n }", "@Test\n void mostraTutti() {\n EAMese[] matrice = EAMese.values();\n assertNotNull(matrice);\n assertEquals(12, matrice.length);\n\n System.out.println();\n String sep = \" - \";\n int k=0;\n for (EAMese mese : matrice) {\n System.out.println(++k+sep+mese.getLungo() + sep + mese.getBreve() + sep + mese.getGiorni());\n }// end of for cycle\n\n }", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "private int obliczDowoz() {\n int x=this.klient.getX();\n int y=this.klient.getY();\n double odl=Math.sqrt((Math.pow((x-189),2))+(Math.pow((y-189),2)));\n int kilometry=(int)(odl*0.5); //50 gr za kilometr\n return kilometry;\n }", "public void asetaTeksti(){\n }", "private Kontakt ZeigeEinenKontakt(Kontakt k) throws Exception {\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tk = service.getKontakt(k);\r\n\r\n\t\tSystem.out.println(\"ID: \" + k.getcId());\r\n\t\tSystem.out.println(\"Nachname: \" + k.getcNName());\r\n\t\tSystem.out.println(\"Vorname: \" + k.getcVName());\r\n\t\t// Restliche Felder ausgeben\t\r\n\t\treturn k;\r\n\t\t\r\n\t}", "@Test\n public void testGetYhteensa() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getYhteensa();\n\n assertEquals(\"Sanan tarkastus ei toimi\", 2, virheita);\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public static void calcularPromedioSemanal() {\n }", "public Ficha_epidemiologia_n13 obtenerFichaEpidemiologia() {\n\t\t\t\t\n\t\t\t\tFicha_epidemiologia_n13 ficha_epidemiologia_n13 = new Ficha_epidemiologia_n13();\n\t\t\t\tficha_epidemiologia_n13.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_ficha(tbxCodigo_ficha.getValue());\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion(tbxIdentificacion.getValue());\n\t\t\t\tficha_epidemiologia_n13.setFecha_creacion(new Timestamp(dtbxFecha_creacion.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n13.setCodigo_diagnostico(\"Z000\");\n\t\t\t\tficha_epidemiologia_n13.setFiebre(chbFiebre.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMialgias(chbMialgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCefalea(chbCefalea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setArtralgias(chbArtralgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVomito(chbVomito.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNausea(chbNausea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_retrocular(chbDolor_retrocular.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHiperemia_conjuntival(chbHiperemia_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSecrecion_conjuntival(chbSecrecion_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_pantorrillas(chbDolor_pantorrillas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDiarrea(chbDiarrea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_abdominal(chbDolor_abdominal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoptisis(chbHemoptisis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMelenas(chbMelenas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEpistaxis(chbEpistaxis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setErupcion(chbErupcion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHematuria(chbHematuria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTomiquete_postiva(chbTomiquete_postiva.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEsplenomegalia(chbEsplenomegalia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSignos_meningeos(chbSignos_meningeos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDisnea(chbDisnea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTos(chbTos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_respiratoria(chbInsuficiencia_respiratoria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHepatomeglia(chbHepatomeglia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setIctericia(chbIctericia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_hepatica(chbInsuficiencia_hepatica.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_renal(chbInsuficiencia_renal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVacuna_fiebre_amarilla(rdbVacuna_fiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_fiebre_amarilla(ibxDosis_fiebre_amarilla.getValue()!=null ? ibxDosis_fiebre_amarilla.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_a(rdbVacuna_hepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_a(ibxDosis_hepatitis_a.getValue()!=null?ibxDosis_hepatitis_a.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_b(rdbVacuna_hepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_b(ibxDosis_hepatitis_b.getValue()!=null?ibxDosis_hepatitis_b.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_leptospirosis(rdbVacuna_leptospirosis.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_leptospirosis(ibxDosis_leptospirosis.getValue()!=null?ibxDosis_leptospirosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setPerros(chbPerros.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setGatos(chbGatos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setBovinos(chbBovinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEquinos(chbEquinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPorcions(chbPorcions.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNinguno(chbNinguno.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setOtros_animal(chbOtros_animal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCual_otro(tbxCual_otro.getValue());\n\t\t\t\tficha_epidemiologia_n13.setContacto_animales(rdbContacto_animales.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_domicilio(rdbRatas_domicilio.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_trabajo(rdbRatas_trabajo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAcueducto(chbAcueducto.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPozo(chbPozo.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setRio(chbRio.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTanque_almacenamiento(chbTanque_almacenamiento.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlcantarillas(rdbAlcantarillas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setInundaciones(rdbInundaciones.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setContacto_aguas_estancadas(rdbContacto_aguas_estancadas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAntecedentes_deportivos(rdbAntecedentes_deportivos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDisposicion_residuos(rdbDisposicion_residuos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTiempo_almacenamiento(rdbTiempo_almacenamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPersonas_sintomatologia(rdbPersonas_sintomatologia.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setLeucocitosis(chbLeucocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLeucopenia(chbLeucopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutrofilia(chbNeutrofilia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutropenia(chbNeutropenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLinfocitocis(chbLinfocitocis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitosis(chbTrombocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitopenia(chbTrombocitopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoconcentracion(chbHemoconcentracion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_trasaminasas(chbAlteracion_trasaminasas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bilirrubinas(chbAlteracion_bilirrubinas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bun(chbAlteracion_bun.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_creatinina(chbAlteracion_creatinina.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCpk_elevada(chbCpk_elevada.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDengue(rdbDengue.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMalaria(rdbMalaria.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_a(rdbHepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_b(rdbHepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_c(rdbHepatitis_c.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setFiebre_amarilla(rdbFiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTipo_muestra(rdbTipo_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDestino_muestra(rdbDestino_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setOtra_muestra(tbxOtra_muestra.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCultivo(rdbCultivo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHistoquimica(rdbHistoquimica.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPcr(rdbPcr.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setElisa(rdbElisa.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMicroaglutinacion(rdbMicroaglutinacion.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPareadas(rdbPareadas.getSelectedItem().getValue().toString());\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra1.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(new Timestamp(dtbxFecha_muestra1.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(null);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra2.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(new Timestamp(dtbxFecha_muestra2.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(null);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion_serogrupos(rdbIdentificacion_serogrupos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra1(tbxTitulo_muestra1.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra2(tbxTitulo_muestra2.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento(rdbTratamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setCual_tratamiento(tbxCual_tratamiento.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento_antibiotico(tbxTratamiento_antibiotico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setDosis(ibxDosis.getValue()!=null?ibxDosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setTiempo(ibxTiempo.getValue()!=null?ibxTiempo.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setCodigo_medico(tbxCodigo_medico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCreacion_date(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setUltimo_update(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setCreacion_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n13.setUltimo_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n13.setOtro_serogrupo(tbxOtro_serogrupo.getValue());\n\n\t\t\t\treturn ficha_epidemiologia_n13;\n\t\t\t \n\t}", "public FaseDescartes faseJuego();", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "abstract float getKeliling();", "public double getPeluangFK(){\n return fakultas[0];\n }", "public final void beK() {\n AppMethodBeat.i(88975);\n if (this.kaS.aZV().vTW != null && this.kaS.aZV().vTW.size() > 0) {\n tm tmVar = (tm) this.kaS.aZV().vTW.get(0);\n if (this.iPD != null) {\n this.iPD.setText(tmVar.title);\n }\n if (this.ksp != null) {\n if (TextUtils.isEmpty(tmVar.kbW)) {\n this.ksp.setVisibility(8);\n } else {\n this.ksp.setText(tmVar.kbW);\n }\n }\n if (this.ksq != null) {\n if (TextUtils.isEmpty(tmVar.kbX)) {\n this.ksq.setVisibility(8);\n } else {\n this.ksq.setText(tmVar.kbX);\n AppMethodBeat.o(88975);\n return;\n }\n }\n }\n AppMethodBeat.o(88975);\n }", "public Farbe letztesKamel();", "public static Resultado Def_MSGD(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n int inicio=0, fin=0,cont; \n int demandaColocada=0;\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres 1=libre 0=ocupado\n /*for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n */\n \n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres POR CADA CAMINO 1=libre 0=ocupado\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n\n /*Calcular la ocupacion del espectro para cada camino k*/\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n\n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n demandaColocada=1;\n break;\n }\n }\n }\n if(demandaColocada==1){\n break;\n }\n }\n k++;\n }\n \n if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }\n /*Bloque contiguoo encontrado, asignamos los indices del espectro a utilizar \n * y retornamos el resultado. r fin e inicio son los indices del FS a usar\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }", "private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}", "public int elimiarAlInicio(){\n int edad = inicio.edad;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n }\n return edad;\n }", "public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }", "public String getKazeikbn() {\r\n return kazeikbn;\r\n }", "public java.lang.Integer getHariKe() {\n return hari_ke;\n }", "public boolean fHalamanPelanggan(HttpSession vFSesi) {\n boolean vKeluaran = false;\n \n try{\n String vID = vFSesi.getAttribute(\"sesIDPub\").toString();\n String vSandi = vFSesi.getAttribute(\"sesSandiPUb\").toString();\n String vEmailDB = \"\";\n String vSandiDB = \"\";\n\n //String vKeluaran = \"fHalamanAdmin -> ID: \" + vID + \" & sandi: \" + vSandi;\n /* mencocokkan data session dengan basisdata */\n /* mengambil data nama dan sandi */\n ClsOperasiBasisdataOri oOpsBasisdata = new ClsOperasiBasisdataOri();\n\n /* \n String vFNamaBerkasKonf,\n String vFNamaBd,\n String vFNamaTabel,\n String[] vFArrNamaKolom,\n String vFKolomUrut,\n String vFJenisUrut,\n String[] vFOffset\n */\n\n ResultSet vHasil = oOpsBasisdata.fArrAmbilDataDbKondisi(\"\",\"\", \n \"tb_pelanggan\", \n new String[]{\"email\",\"sandi\"}, \n new String[]{\"email\"},\n \"nomor\", \n \"\", new String[]{\"0\",\"1\"},\"=\");\n\n /* keluaran permintaan */\n while(vHasil.next()){\n vEmailDB = vHasil.getString(\"email\");\n vSandiDB = vHasil.getString(\"sandi\");\n }\t\t\t\n \n System.out.println(vID + \"#\" + vEmailDB + \"#\" + \"#\" + vSandi + \"#\" + vSandiDB);\n /* mencocokkan data */\n if (vID != null && vEmailDB !=null && vSandi != null && vSandiDB != null) {\n \n /* sebelum divalidasi */\n /* apabila data POST sesuai dgn data dalam tabel basisdata: lupa password jadi di NOT */\n if(vID.equals(vEmailDB) && vSandi.equals(vSandiDB)){\n vKeluaran = true;\n }\n }\n }catch(SQLException | DOMException e){\n /* pencatatan sistem */\n if(ClsKonf.vKonfCatatSistem == true){\n String vNamaKelas = \"ClsPelanggan.java\";\n String vNamaMetode = \"fHalamanPelanggan\";\n String vCatatan = vNamaKelas + \"#\" + vNamaMetode + \"#\" + e.toString();\n /* obyek catat */\n ClsCatat oCatat = new ClsCatat();\n oCatat.fCatatSistem(ClsKonf.vKonfCatatKeOutput, \n ClsKonf.vKonfCatatKeBD, \n ClsKonf.vKonfCatatKeBerkas, \n vCatatan);\n }\n }\n \n /* debug nilai id dan password */\n //System.out.println(\"Belum divalidasi : \" + vID + \" = \" + vNamaDB + \" & \" + vSandi + \" = \" + vSandiDB);\n /* nilai keluaran */\n return vKeluaran;\n }", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "public Ficha_epidemiologia_n3 obtenerFichaEpidemiologia() {\n\t\t\n\t\t\t\tFicha_epidemiologia_n3 ficha_epidemiologia_n3 = new Ficha_epidemiologia_n3();\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n3.setCodigo(\"Z000\");\n\t\t\t\tficha_epidemiologia_n3.setCodigo_ficha(tbxCodigo_ficha\n\t\t\t\t\t\t.getValue());\n\t\t\t\tficha_epidemiologia_n3.setFecha_ficha(new Timestamp(dtbxFecha_ficha.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n3.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\n\t\t\t\t//ficha_epidemiologia_n3\n\t\t\t\t\t//\t.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConoce_y_o_ha_sido_picado_por_pito(rdbConoce_y_o_ha_sido_picado_por_pito\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTransfuciones_sanguineas(rdbTransfuciones_sanguineas\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSometido_transplante(rdbSometido_transplante\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHijo_de_madre_cero_positiva(rdbHijo_de_madre_cero_positiva\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEmbarazo_actual(rdbEmbarazo_actual\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHa_sido_donante(rdbHa_sido_donante\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_techo(rdbTipo_techo\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_paredes(rdbTipo_paredes\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEstrato_socio_economico(rdbEstrato_socio_economico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEstado_clinico(rdbEstado_clinico\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setClasificacion_de_caso(rdbClasificacion_de_caso\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setFiebre(chbFiebre.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_cronico(chbDolor_toracico_cronico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setDisnea(chbDisnea.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setPalpitaciones(chbPalpitaciones\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMialgias(chbMialgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setArtralgias(chbArtralgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setEdema_facial(chbEdema_facial\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEdema_miembros_inferiores(chbEdema_miembros_inferiores\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDerrame_pericardico(chbDerrame_pericardico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHepatoesplenomegalia(chbHepatoesplenomegalia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setAdenopatias(chbAdenopatias\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setChagoma(chbChagoma.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setFalla_cardiaca(chbFalla_cardiaca\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPalpitacion_taquicardia(chbPalpitacion_taquicardia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_agudo(chbDolor_toracico_agudo\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setBrandicardia(chbBrandicardia\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSincope_o_presincope(chbSincope_o_presincope\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setHipotension(chbHipotension\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDisfagia(chbDisfagia.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setGota_gruesa_frotis_de_sangre_periferica(rdbGota_gruesa_frotis_de_sangre_periferica\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMicrohematocrito_examen_fresco(rdbMicrohematocrito_examen_fresco\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setStrout(rdbStrout.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setElisa_igg_chagas(rdbElisa_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setIfi_igg_chagas(rdbIfi_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHai_chagas(rdbHai_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setElectrocardiograma(rdbElectrocardiograma\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEcocardiograma(rdbEcocardiograma\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setRayos_x_de_torax_indice_toracico(rdbRayos_x_de_torax_indice_toracico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHolter(rdbHolter.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_etiologico(rdbTratamiento_etiologico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_sintomatico(rdbTratamiento_sintomatico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPosible_via_transmision(rdbPosible_via_transmision\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setRomana(chbRomana.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa\n\t\t\t\t\t\t.getCodigo_empresa());\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal\n\t\t\t\t\t\t.getCodigo_sucursal());\n\t\t\t\t// ficha_epidemiologia_n3.setCodigo(tbxCodigo.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado1(tbxResultado1.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado2(tbxResultado2.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSemanas_de_embarazo((ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setNumero_familiares_con_changa((ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConstipacion_cronica(chbConstipacion_cronica\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setCreacion_date(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setUltimo_update(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setCreacion_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n3.setUltimo_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n3.setOtro_tipo_techo(tbxotro_tipo_techo.getValue());\n\n\t\t\t\t\n\t\treturn ficha_epidemiologia_n3;\n\t\t}", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public void reserveer() {\n System.out.println(\"de eigenaar van de auto is: \" + i.eigenaar());\n\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "public int extraer ()\n {\n if (raiz!=null)\n {\n int informacion = raiz.edad;\n raiz = raiz.sig;\n return informacion;\n }\n else\n {\n System.out.println(\"La lista se encuentra vacia\");\n return 0;\n }\n }", "public boolean kosong() {\r\n return ukuran == 0;\r\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public int getKMSelanjutnya(){\n\t\treturn (getDistance() - N * 1000) * costPerKm / 1000;\n\t}", "public java.lang.Integer getHariKe() {\n return hari_ke;\n }", "private void ZeigeAlleKontakte() throws Exception {\n\t\r\n\t\tList<Kontakt> kontaktarray = new ArrayList<Kontakt>();\r\n\t\r\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tkontaktarray = service.getKontakte();\r\n\t\r\n\t\tKontakt k = new Kontakt();\r\n\t\t\r\n\t\tString xAusgabe = \"\"; \r\n\t\tIterator<Kontakt> iterator = kontaktarray.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\t\r\n\t\t\tk = iterator.next();\r\n\t\t\t\r\n\t\t\txAusgabe = Objects.toString(k.getcId());\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcNName();\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcVName();\r\n\t\t\t// TODO: Restliche Felder ausgeben\r\n\t\t\t\r\n\t\t\tSystem.out.println(xAusgabe);\t\t\t\t\r\n\t\t\t}\r\n\t}", "@Override\r\n\tpublic int getErreserba_kop() {\n\t\treturn super.getErreserba_kop();\r\n\t}", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "private Ente gestioneEnte() {\n\t\tList<Ente> enti = enteDad.getEntiByCodiceAndCodiceSistemaEsterno(req.getCodiceEnte(), SistemaEsterno.FEL);\n\t\tif(enti == null || enti.isEmpty()) {\n\t\t\tthrow new UnmappedEnteException(ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Ente\", \"codice \" + req.getCodiceEnte()));\n\t\t}\n\t\t// Dovrebbe essercene solo uno. Per sicurezza prendo solo il primo\n\t\treturn enti.get(0);\n\t}", "public static int getLicznikTur() { return LicznikTur; }", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "protected void FileTartKiir()\r\n {\n String sSzoveg = null ;\r\n \r\n sSzoveg = m_cHRMFile.GetDatum() + \"\\n\" ;\r\n sSzoveg = sSzoveg + m_cHRMFile.GetMegjegyzes() + \"\\n\" ;\r\n \r\n sSzoveg = sSzoveg + IKonstansok.sVanSpeedAdat + m_cHRMFile.VanSpeedAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sVanCadenceAdat + m_cHRMFile.VanCadenceAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sVanHeartRateAdat + m_cHRMFile.VanHeartRateAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sVanAltitudeAdat + m_cHRMFile.VanAltitudeAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sGetInterval + m_cHRMFile.GetInterval() ;\r\n \r\n// m_jFileTartTxtArea.append( sSzoveg) ;\r\n m_jFileTartTxtArea.setText( sSzoveg) ;\r\n }", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public ECPunkt oblKluczaPublicznego()\n\t{\n\t\tkluczPubliczny = new ECPunkt( G.wielokrotnoscPunktu(G, new BigInteger(kluczPrywatny.toString()) ) );\n\t\treturn kluczPubliczny;\n\t}", "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 }", "public static String seuraavaArvaus(HashMap<String, Integer> muisti, String viimeisimmat, String kaikki) {\n if (kaikki.length() < 3) {\n return \"k\";\n }\n\n String viimKivi = viimeisimmat + \"k\";\n String viimPaperi = viimeisimmat + \"p\";\n String viimSakset = viimeisimmat + \"s\";\n \n int viimKiviLkm = 0;\n int viimPaperiLkm = 0;\n int viimSaksetLkm = 0;\n String arvaus = \"k\";\n int viimValueMax = 0;\n /*\n Sopivan valinnan etsiminen tehdään tarkastelemalla käyttäjän kahta viimeistä\n syötettä ja vertailemalla niitä koko historiaan. Mikäli historian mukaan\n kahta viimeistä syötettä seuraa useimmin kivi, tekoälyn tulee pelata paperi.\n Mikäli kahta viimeistä syötettä seuraa useimmin paperi, tekoälyn tulee \n pelata sakset. Mikäli taas kahta viimeistä syötettä seuraa useimmin sakset, \n tekoälyn tulee pelata kivi. Muissa tapauksissa pelataan kivi.\n */\n if (muisti.containsKey(viimKivi)) {\n viimKiviLkm = muisti.get(viimKivi);\n }\n if (muisti.containsKey(viimPaperi)) {\n viimPaperiLkm = muisti.get(viimPaperi);\n }\n if (muisti.containsKey(viimSakset)) {\n viimSaksetLkm = muisti.get(viimSakset);\n }\n\n if (viimKiviLkm > viimPaperiLkm && viimKiviLkm > viimSaksetLkm) {\n return \"p\";\n }\n if (viimPaperiLkm > viimKiviLkm && viimPaperiLkm > viimSaksetLkm) {\n return \"s\";\n }\n if (viimSaksetLkm > viimKiviLkm && viimSaksetLkm > viimPaperiLkm) {\n return \"k\";\n }\n\n return arvaus;\n }", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "@Test\n public void getMese() {\n EAMese eaMesePrevisto;\n EAMese eaMeseOttenuto;\n\n eaMesePrevisto = EAMese.maggio;\n sorgente = \"maggio\";\n eaMeseOttenuto = EAMese.getMese(sorgente);\n assertNotNull(eaMeseOttenuto);\n assertEquals(eaMesePrevisto, eaMeseOttenuto);\n\n eaMesePrevisto = EAMese.ottobre;\n sorgente = \"ott\";\n eaMeseOttenuto = EAMese.getMese(sorgente);\n assertNotNull(eaMeseOttenuto);\n assertEquals(eaMesePrevisto, eaMeseOttenuto);\n }", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public String ordainketaKudeatu(String ordainketa) {\r\n\t\tString dirua;\r\n\t\tdouble dirua1;\r\n\t\tdouble ordainketa1;\r\n\t\tdirua = deuda();\r\n\t\tordainketa = ordaindu();\r\n\t\tdirua1 = Double.parseDouble(dirua);\r\n\t\tordainketa1 = Double.parseDouble(ordainketa);\r\n\t\tkenketa = kenketa_dirua(dirua1, ordainketa1);\r\n\r\n\t\tSystem.out.println(kenketa);\r\n\t\tif (kenketa == 0.0) {\r\n\t\t\tbtnAurrera.setEnabled(true);\r\n\t\t\ttextField.setText(\"0.00\");\r\n\r\n\t\t}\r\n\t\tif (kenketa < 0) {\r\n\t\t\ttextField_2.setText(\"Itzulerak: \" + Math.abs(kenketa));\r\n\t\t\tbtnAurrera.setEnabled(true);\r\n\t\t}\r\n\t\tif (kenketa > 0) {\r\n\t\t\tkenketa = Math.abs(kenketa);\r\n\t\t\ttextField.setText(String.valueOf(kenketa));\r\n\t\t}\r\n\t\treturn ordainketa;\r\n\t}" ]
[ "0.62324995", "0.6172935", "0.6144738", "0.6134466", "0.6093376", "0.60246766", "0.60167605", "0.59666586", "0.59661263", "0.59581184", "0.59565634", "0.5949175", "0.594563", "0.5941732", "0.59409386", "0.5930756", "0.59149855", "0.58855253", "0.5884177", "0.58695406", "0.58461785", "0.58346903", "0.58343124", "0.58226126", "0.5812842", "0.58096796", "0.5807817", "0.5807684", "0.5786288", "0.57847774", "0.57730263", "0.57692575", "0.5765026", "0.57632244", "0.5761592", "0.57541955", "0.5752378", "0.57523715", "0.5738626", "0.5729229", "0.5722309", "0.5720537", "0.5695294", "0.56929946", "0.56923443", "0.56891775", "0.5686123", "0.56848365", "0.56688434", "0.5657661", "0.56452984", "0.56435645", "0.56399715", "0.56358945", "0.5625726", "0.5622393", "0.561806", "0.56173813", "0.5615589", "0.5615518", "0.5609249", "0.56077677", "0.56034106", "0.56018054", "0.5599664", "0.55976117", "0.5592617", "0.55889934", "0.55793", "0.55784893", "0.5576807", "0.55683273", "0.5567448", "0.5565528", "0.5561631", "0.5554525", "0.55518246", "0.55484426", "0.55421734", "0.5541114", "0.5539607", "0.55284506", "0.5526315", "0.5523158", "0.5520723", "0.5519869", "0.55075943", "0.55033976", "0.5503013", "0.55024916", "0.5499717", "0.54980075", "0.54887724", "0.5484609", "0.5483664", "0.5482261", "0.5481795", "0.5477143", "0.5477083", "0.5476861", "0.547575" ]
0.0
-1
/ mencari matriks balikan menggunakan reduksi baris dan matriks identitas
Matrix inverse(Matrix m){ Matrix mtemp = new Matrix(m.M); Matrix miden = new Matrix(m.rows,m.cols); miden = miden.identity(); for(int i=0;i<mtemp.rows-1;i++){ for(int j=i+1; j<mtemp.rows; j++){ if(mtemp.M[i][i]<mtemp.M[j][i]){ swapRow(mtemp,i,j); swapRow(miden,i,j); } } for(int k=i+1; k<mtemp.rows; k++){ double ratio = mtemp.M[k][i]/mtemp.M[i][i]; for(int j=0;j<mtemp.cols;j++){ mtemp.M[k][j] -= ratio*mtemp.M[i][j]; miden.M[k][j] -= ratio*miden.M[i][j]; } } } for(int i=mtemp.rows-1;i>0;i--){ for(int k=i-1; k>-1; k--){ double ratio = mtemp.M[k][i]/mtemp.M[i][i]; for(int j=mtemp.cols-1;j>-1;j--){ mtemp.M[k][j] -= ratio*mtemp.M[i][j]; miden.M[k][j] -= ratio*miden.M[i][j]; } } } for(int i=0; i<mtemp.rows; i++){ for(int j=0; j<mtemp.cols; j++){ miden.M[i][j] /= mtemp.M[i][i]; } } return miden; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void idGrupos() {\n\t\tmyHorizontalListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tURL_BOOKS = \"http://tutoriapps.herokuapp.com/api/v1/groups/\"\n\t\t\t\t\t\t+ gid[position].toString() + \"/books.json?auth_token=\";\n\t\t\t\tposicionId = gid[position].toString();\n\t\t\t\tvalorUltimo = 0;\n\t\t\t\tnuevo = 0;\n\t\t\t\taa.clear();\n\t\t\t\tgetData();\n\t\t\t}\n\t\t});\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); // yang anda ingin kan\n \n while(res.next()){\n Object[] ob = new Object[6];\n ob[0] = res.getString(1);\n \n comboId.addItem(ob[0]); // fungsi ini bertugas menampung isi dari database\n }\n res.close(); stt.close();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "void populate() {\n daftarNotifikasi.add(new DaftarNotifikasi(\"Ludfi Ika P\", \"Hari ini mau gathering dimana?\", 2, R.drawable.profil_2));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Erinda\", \"Ada pagelaran di kota\", 6, R.drawable.profil_3));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Aleq\", \"Saya punya solusi untuk itu\", 10, R.drawable.profil_1));\n }", "public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }", "private void showSelectedBatik(Batik batik){\n Toast.makeText(this, \"detail to : \" + batik.getName(), Toast.LENGTH_SHORT).show();\n\n // Cara 1\n Batik mBatik = new Batik();\n mBatik.setName(batik.getName());\n mBatik.setFrom(batik.getFrom());\n mBatik.setContent(batik.getContent());\n mBatik.setPhoto(batik.getPhoto());\n\n // Cara 2 dengan parcelable\n Intent intentDetailBatik = new Intent(MainActivity.this, DetailBatikActivity.class);\n intentDetailBatik.putExtra(DetailBatikActivity.EXTRA_DETAIL, mBatik);\n startActivity(intentDetailBatik);\n\n }", "public void BacaIsi(int masalah){\r\n\t\t// KAMUS LOKAL\r\n\t\tint metode;\r\n\t\tint nbBrs;\r\n\t\tint nbKol;\r\n\r\n\t\tMatriks tempM;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t// ALGORITMA\r\n\t\tSystem.out.printf(\"Pilih metode pembacaan matriks \\n1. Input Keyboard \\n2. File \\n\");\r\n\r\n\t\tmetode = sc.nextInt();\r\n\r\n\t\tif (metode == 1) {\r\n\r\n\t\t\t// Menerima Masukan dari keyboard untuk SPL\r\n\t\t\tif (masalah == 1) {\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang baris:\");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang kolom:\");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t// Menerima Masukan untuk Interpolasi Linier dari Keyboard\r\n\t\t\telse if (masalah == 2) {\r\n\t\t\t\tString titik;\r\n\t\t\t\tScanner scanner = new Scanner(System.in).useDelimiter(\"line.separator\");\r\n\t\t\t\tScanner s;\r\n\r\n\t\t\t\tSystem.out.printf(\"Input N: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,2);\r\n\r\n\t\t\t\tSystem.out.println(\"Titik:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs+1; i++) {\r\n\t\t\t\t\ttitik = scanner.nextLine();\r\n\t\t\t\t\ttitik = titik.substring(1, titik.length()-1);\r\n\r\n\t\t\t\t\ts = new Scanner(titik).useDelimiter(\", \");\r\n\r\n\t\t\t\t\ttempM.Elmt[i][0] = s.nextDouble();\r\n\t\t\t\t\ttempM.Elmt[i][1] = s.nextDouble();\r\n\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tscanner.close();\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t//Menerima Masukan untuk Regresi Linier berganda\r\n\t\t\telse if (masalah == 3) {\r\n\t\t\t\tSystem.out.printf(\"Jumlah data: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Jumlah peubah: \");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol+1);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t// Menerima Masukan input untuk persoalan matriks inverse dan determinan\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Ukuran Matriks: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\t\t\t\ttempM = new Matriks(nbBrs, nbBrs);\r\n\t\t\t\tSystem.out.println(\"Elemen Matriks: \");\r\n\r\n\t\t\t\tfor(int i=0; i<nbBrs; i++){\r\n\t\t\t\t\tfor(int j=0; j<nbBrs; j++){\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menerima masukan dari file eksternal\r\n\t\telse if (metode == 2) {\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tdouble tempI;\r\n\r\n\t\t\tString b;\r\n\t\t\tString[] baris;\r\n\r\n\t\t\tSystem.out.printf(\"Masukkan alamat file: \");\r\n\t\t\tString alamat = sc.next();\r\n\r\n\t\t\tFile file = new File(alamat);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(file);\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tb = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\tbaris = new String[i];\r\n\t\t\t\ts = new Scanner(file);\r\n\t\t\t\tnbBrs = i;\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tbaris[i] = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\ts = new Scanner(baris[0]);\r\n\r\n\t\t\t\twhile (s.hasNextDouble()) {\r\n\t\t\t\t\ttempI = s.nextDouble();\r\n\t\t\t\t\tj = j + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\tnbKol = j;\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tfor (i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tsc = new Scanner(baris[i]);\r\n\r\n\t\t\t\t\tfor (j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tsc.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t} catch(FileNotFoundException e) {\r\n\t\t\t\tSystem.out.println(\"An error occured.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }", "@Override\n public void onBindViewHolder(@NonNull CustomRecyclerAdapter.MyViewHolder myViewHolder, int i) {\n myViewHolder.txtnamamakanan.setText(data_namaMakanan[i]);\n myViewHolder.imgmakanan.setImageResource(data_gambarMakanan[i]);\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "private String insertarCartaNaturalSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 2,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n true,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "public String ingresarUbigeo24() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo);\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento24)) {\r\n\t\t\tubigeoDefecto24 = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto24);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia24)) {\r\n\t\t\tubigeoDefecto24 += \"- \" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto24);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo+\"\")) {\r\n\t\t\tubigeoDefecto24 += \"- \" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto24);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t\treturn getViewMant();\r\n\t\t}", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "void tampilKarakterA();", "private String insertarCartaNaturalHelp() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 2,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void setItem() {\n DatabaseReference dr_item = database.getReference();\n dr_item.child(\"User\").child(user.getUid()).child(\"Keranjang\").child(\"Item\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int hartot = 0;\n if(id_barang!=null){\n id_barang.clear();\n }\n if(quantity!=null){\n quantity.clear();\n }\n if(harga_barang!=null){\n harga_barang.clear();\n }\n if(id_item!=null){\n id_item.clear();\n }\n\n for (DataSnapshot data : dataSnapshot.getChildren()) {\n IdBarang id = data.getValue(IdBarang.class);\n\n id_barang.add(id);\n }\n\n for (int i = 0; i < id_barang.size(); i++) {\n int qty = id_barang.get(i).getQuantity();\n int hrg = id_barang.get(i).getHarga();\n String id = id_barang.get(i).getId();\n hartot = hartot + hrg;\n\n id_item.add(id);\n quantity.add(qty);\n harga_barang.add(hrg);\n\n tv_harga_total.setText(\"Rp. \" + String.valueOf(hartot));\n }\n setBarang();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "private String insertarCartaMysticalSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\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\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}", "public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "private String insertarCartaVitalTransfusion() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 3,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "public void setInfor() {\n\t\t\t\tidJLabel.setSize(200,30);\n\t\t\t\tidJLabel.setLocation(100,20);\n\t\t\t\tadd(idJLabel);\n\t\t\t\tidField.setSize(200, 30);\n\t\t\t\tidField.setLocation(300,20);\n\t\t\t\tadd(idField);\n\t\t\t\t\n\t\t\t\t//set thong tin cho title label\n\t\t\t\ttitleJLabel.setSize(200,30);\n\t\t\t\ttitleJLabel.setLocation(100,60);\n\t\t\t\tadd(titleJLabel);\n\t\t\t\ttitleField.setSize(200, 30);\n\t\t\t\ttitleField.setLocation(300,60);\n\t\t\t\tadd(titleField);\n\t\t\t\t\n\t\t\t\t//set thong tin cho category label\n\t\t\t\tcategoryJLabel.setSize(200,30);\n\t\t\t\tcategoryJLabel.setLocation(100,100);\n\t\t\t\tadd(categoryJLabel);\n\t\t\t\tcateField.setSize(200, 30);\n\t\t\t\tcateField.setLocation(300,100);\n\t\t\t\tadd(cateField);\n\t\t\t\t\n\t\t\t\t// set thong tin cho cost label\n\t\t\t\tcostJLabel.setSize(200,30);\n\t\t\t\tcostJLabel.setLocation(100,140);\n\t\t\t\tadd(costJLabel);\n\t\t\t\tcostField.setSize(200, 30);\n\t\t\t\tcostField.setLocation(300,140);\n\t\t\t\tadd(costField);\n\t\t\t\t\n\t\t\t\t// set thong tin cho nut 'ok'\t\n\t\t\t\tokJButton.setSize(100,30);\n\t\t\t\tokJButton.setLocation(250,330);\n\t\t\t\tokJButton.setFocusPainted(false);\n\t\t\t\tadd(okJButton);\n \n\t}", "public static void setUpGenres(Context context){\n SharedPreferences mSetting = context.getSharedPreferences(StaticVars.GENRE_SHARED_PREFERENCES,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSetting.edit();\n //putting genre name and its id on shikimori\n\n\n editor.putInt(\"Drama\",8);\n editor.putInt(\"Драма\",8);\n editor.putInt(\"Game\",11);\n editor.putInt(\"Игры\",11);\n editor.putInt(\"Psychological\",40);\n editor.putInt(\"Психологическое\",40);\n editor.putInt(\"Adventure\",2);\n editor.putInt(\"Приключения\",2);\n editor.putInt(\"Music\",19);\n editor.putInt(\"Музыка\",19);\n editor.putInt(\"Action\",1);\n editor.putInt(\"Экшен\",1);\n editor.putInt(\"Comedy\",4);\n editor.putInt(\"Комедия\",4);\n editor.putInt(\"Demons\",6);\n editor.putInt(\"Демоны\",6);\n editor.putInt(\"Police\",39);\n editor.putInt(\"Полиция\",39);\n editor.putInt(\"Space\",29);\n editor.putInt(\"Космос\",29);\n editor.putInt(\"Ecchi\",9);\n editor.putInt(\"Этти\",9);\n editor.putInt(\"Fantasy\",10);\n editor.putInt(\"Фэнтези\",10);\n editor.putInt(\"Historical\",13);\n editor.putInt(\"Исторический\",13);\n editor.putInt(\"Horror\",14);\n editor.putInt(\"Ужасы\",14);\n editor.putInt(\"Magic\",16);\n editor.putInt(\"Магия\",16);\n editor.putInt(\"Mecha\",18);\n editor.putInt(\"Меха\",18);\n editor.putInt(\"Parody\",20);\n editor.putInt(\"Пародия\",20);\n editor.putInt(\"Samurai\",21);\n editor.putInt(\"Самураи\",21);\n editor.putInt(\"Romance\",22);\n editor.putInt(\"Романтика\",22);\n editor.putInt(\"School\",23);\n editor.putInt(\"Школа\",23);\n editor.putInt(\"Shoujo\",25);\n editor.putInt(\"Сёдзе\",25);\n editor.putInt(\"Shounen\",27);\n editor.putInt(\"Сёнен\",27);\n editor.putInt(\"Shounen Ai\",28);\n editor.putInt(\"Сёнен Ай\",28);\n editor.putInt(\"Sports\",30);\n editor.putInt(\"Спорт\",30);\n editor.putInt(\"Vampire\",32);\n editor.putInt(\"Вампиры\",32);\n editor.putInt(\"Harem\",35);\n editor.putInt(\"Гарем\",35);\n editor.putInt(\"Slice of Life\",36);\n editor.putInt(\"Повседневность\",36);\n editor.putInt(\"Seinen\",42);\n editor.putInt(\"Сейнен\",42);\n editor.putInt(\"Josei\",43);\n editor.putInt(\"Дзёсей\",43);\n editor.putInt(\"Supernatural\",37);\n editor.putInt(\"Сверхъестественное\",37);\n editor.putInt(\"Thriller\",41);\n editor.putInt(\"Триллер\",41);\n editor.putInt(\"Shoujo Ai\",26);\n editor.putInt(\"Сёдзе Ай\",26);\n editor.putInt(\"Sci-Fi\",24);\n editor.putInt(\"Фантастика\",24);\n editor.putInt(\"Super Power\",31);\n editor.putInt(\"Супер сила\",31);\n editor.putInt(\"Military\",38);\n editor.putInt(\"Военное\",38);\n editor.putInt(\"Mystery\",7);\n editor.putInt(\"Детектив\",7);\n editor.putInt(\"Kids\",15);\n editor.putInt(\"Детское\",15);\n editor.putInt(\"Cars\",3);\n editor.putInt(\"Машины\",3);\n editor.putInt(\"Martial Arts\",17);\n editor.putInt(\"Боевые искусства\",17);\n editor.putInt(\"Dementia\",5);\n editor.putInt(\"Безумие\",5);\n\n editor.apply();\n\n\n\n }", "public void cargaInfo(){\n InfoFragment.txtCanton.setText(sitio[4]);\n InfoFragment.txtDesc.setText(sitio[2]);\n InfoFragment.txtDirec.setText(sitiosInfo[2]);\n InfoFragment.txtFono.setText(sitiosInfo[5]);\n InfoFragment.txtWeb.setText(sitiosInfo[7]);\n InfoFragment.txtHorario.setText(sitiosInfo[6]);\n InfoFragment.ratingBarTotal.setRating(Float.parseFloat(sitio[5]));\n if(bcoment_ind){\n InfoFragment.ratingUsuario.setRating(Float.parseFloat(comentario_ind[1]));\n }\n if(!LugaresContainer.id_favorito.equals(\"0\")){\n InfoFragment.checkBoxFav.setChecked(true);\n }\n }", "private void remplirPrestaraireData() {\n\t}", "private String insertarCartaLightning() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 2,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\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 }", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}", "public static void jawaban1() {\n int cari;\r\n boolean ditemukan = true;\r\n int a=0;\r\n\r\n //membentuk array yang berisi data\r\n int[] angka = new int[]{74, 98, 72, 74, 72, 90, 81, 72};\r\n \r\n //mengeluarkan array\r\n for (int i = 0; i < angka.length; i++) {\r\n System.out.print(angka [i]+\"\\t\");\r\n\r\n \r\n }\r\n\r\n\r\n //meminta user memasukkan angka yang hendak dicari\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"\\nMasukkan angka yang ingin anda cari dibawah sini\");\r\n cari = keyboard.nextInt();\r\n\r\n //proses pencarian atau pencocokan data pada array\r\n for (int i = 0; i < angka.length; i++) {\r\n if (cari == angka[i]) {\r\n ditemukan = true;\r\n \r\n System.out.println(\"Angka yang anda masukkan ada didalam data ini\");\r\n \r\n break;\r\n }\r\n\r\n }\r\n //proses hitung data\r\n if (ditemukan == true) {\r\n \r\n for (int i = 0; i < angka.length; i++) {\r\n if (angka[i]== cari){\r\n a++;\r\n }\r\n \r\n }\r\n\r\n }\r\n \r\n System.out.println(\"Selamat data anda dengan angka \"+cari+ \" ditemukan sebanyak \"+a);\r\n }", "@Override\n public void order_OnButtonClicked(byte kom1_kom2_kanchele, int mast, String order) {\n//--------------\n this.kom1_kom2_kanchele = kom1_kom2_kanchele;\n this.mast = mast;//tvysl oyini mastn e\n this.order = order;//tvyal oyini xosacac tivn e\n int imageResurce;\n//kaxvac vor mastn e @ntrel usern ayd masti nkarn enq dnum ekrani vra\n switch (mast) {\n case 0:\n imageResurce = R.drawable.x_24;\n //new CreateHashivAsyncTask().execute(new BloteNote(0, \"0\", \"0\",R.drawable.x_24, order));\n break;\n case 1:\n imageResurce = R.drawable.s_24;\n break;\n case 2:\n imageResurce = R.drawable.xar_24;\n break;\n case 3:\n imageResurce = R.drawable.q_24;\n break;\n default:\n imageResurce = R.drawable.t_24;\n break;\n }\n\n//ete sexmel e 3 syan vra, apa ayd syan vra popoxutyun enq anum\n if (position % 3 == 2) {\n recyclerViewItem_ArrayList.get(position).setZakaz(order);\n recyclerViewItem_ArrayList.get(position).setImageResource(imageResurce);\n }\n//ete derevs xoz chxosacac toxi vra sexmel e syun1 kam syun2-i vra eli bacum e xoz xosalun@\n else {\n recyclerViewItem_ArrayList.get(recyclerViewItem_ArrayList.size() - 1).setZakaz(order);\n recyclerViewItem_ArrayList.get(recyclerViewItem_ArrayList.size() - 1).setImageResource(imageResurce);\n }\n\n//tarmacnum enq adaptern, vor useri katarac popoxutyunnern erevan\n adapter.notifyDataSetChanged();\n }", "private String insertarCartaRitual() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 1,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }", "@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }", "public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }", "public void setNomNiveles (String IdNivel, String Contador, String IdCategoria){\n nivelesId = getNivelId( IdNivel );\n if ( nivelesId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelNivel.setText( nivelesId.getString(1) + \" - Preguntas : \" + Contador + \" / \" + getPreguntasTotal(IdCategoria, IdNivel ) );\n }\n\n }", "@Override\n public void onClick(View view) {\n List<DataQuestion>listAnswer = adapter.getAllAnswer();\n\n int nilai = 0;\n //looping untuk nilai\n for (int i = 0; i <listAnswer.size() ; i++) {\n //cek jawaban sama atau tidak dengan kunci jawaban\n if(listAnswer.get(i).getJawaban().equals(listAnswer.get(i).getDipilih())){\n //jika jawaban betul maka nilai + 1\n nilai = nilai + 1;\n }\n }\n //tampilkan nilai di toast\n Toast.makeText(getApplicationContext(),\"Nilai anda: \"+nilai,Toast.LENGTH_LONG).show();\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "public int getArtikelAnzahl(){\n return key;\n }", "private JMenuItem getMiKimlikNumarasindanKisiBilgisiSorgula() {\n\t\tif (miKimlikNumarasindanKisiBilgisiSorgula == null) {\n\t\t\tmiKimlikNumarasindanKisiBilgisiSorgula = new JMenuItem();\n\t\t\tmiKimlikNumarasindanKisiBilgisiSorgula.setText(\"T.C. Kimlik Numaras�ndan Kisi Sorgula\");\n\t\t\tmiKimlikNumarasindanKisiBilgisiSorgula.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tnew DlgKimlikNodanKisiSorgula(MainFrame.this).setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn miKimlikNumarasindanKisiBilgisiSorgula;\n\t}", "public void editHashiv(final int position) {\n int mnacord, temp;\n\n//sa nshanakum e usern sexmel e toxi (=positioni) vra ev uzum e hashivnern xmbagri\n // kom1_kom2=1-i kom1-n e sexmvac, kom1_kom2=2 kom2- e sexmvac\n\n this.position = position;\n// Log.d(\"qqq\", \"\"+position/3);\n//---------\n//3 syunic axyusak enq stanum, vortex 3-i bajanelis mnacordum\n// 1-in syunin mnum e mnacord= 0, 2-rd syunin mnacord=1, isk 3-rdin mnacord=2\n mnacord = position % 3;\n//New Game rejimn e, xaxi skzbum erb voch mek der chi xosacel\n //{\n if (mnacord == 2)//bacel xoz xosalu texn\n {\n try {\n ExtraOrderBtnDialog bottomSheet = new ExtraOrderBtnDialog();\n bottomSheet.show(getSupportFragmentManager(), \"exampleBottomSheet\");\n } catch (ClassCastException e) {\n throw new ClassCastException();\n }\n }//bacel hashiv grelu dashtn (1-in syunn)\n else if (mnacord == 0) {\n//isk ete derevs xoz xosalu dashtn datark e, apa eli bacel miayn xoz xosalu texn\n if (recyclerViewItem_ArrayList.get(position + 2).getZakaz().equals(\"0\")) {\n try {\n ExtraOrderBtnDialog bottomSheet = new ExtraOrderBtnDialog();\n bottomSheet.show(getSupportFragmentManager(), \"exampleBottomSheet\");\n } catch (ClassCastException e) {\n throw new ClassCastException();\n }\n } else {//tvyal toxi xozn arden xosacel en\n kom1_kom2 = 1;\n if (recyclerViewItem_ArrayList.get(position).getZakaz() == null) {\n temp = 0;\n mejtex_Nor_Tox = true;//ete true e nor tox e, ete false mejtexi\n } else {\n temp = hashiv_Zangvac_kom1.get((position / 3));\n mejtex_Nor_Tox = false;//ete true e nor tox e, ete false mejtexi\n //xalastoy rejim, miayn xmbagrel tmeric meki hashivn\n kom1_kom2_kanchele = 0;\n }\n//mer sarqac interfeysi ekzempliar\n ExtraButtonDialog bottomSheet = new ExtraButtonDialog(\n temp,\n // recyclerViewItem_ArrayList.get(position).getZakaz(),\n kom1_kom2, kom1_kom2_kanchele, mast, order);\n bottomSheet.show(getSupportFragmentManager(), \"exampleBottomSheet\");\n }\n } else if (mnacord == 1) {//bacel hashiv grelu dashtn (2-in syunn)\n//isk ete derevs xoz xosalu dashtn datark e ayd toxi vra,\n// apa eli bacel miayn xoz xosalu texn\n if (recyclerViewItem_ArrayList.get(position + 1).getZakaz().equals(\"0\")) {\n try {\n ExtraOrderBtnDialog bottomSheet = new ExtraOrderBtnDialog();\n bottomSheet.show(getSupportFragmentManager(), \"exampleBottomSheet\");\n } catch (ClassCastException e) {\n throw new ClassCastException();\n }\n } else {//tvyal toxi xozn arden xosacel en\n kom1_kom2 = 2;\n if (recyclerViewItem_ArrayList.get(position).getZakaz() == null) {\n temp = 0;\n mejtex_Nor_Tox = true;//ete true e nor tox e, ete false mejtexi\n } else {\n temp = hashiv_Zangvac_kom2.get((position / 3));\n mejtex_Nor_Tox = false;//ete true e nor tox e, ete false mejtexi\n //xalastoy rejim, miayn xmbagrel tmeric meki hashivn\n kom1_kom2_kanchele = 0;\n }\n//mer sarqac interfeysi ekzempliar\n ExtraButtonDialog bottomSheet = new ExtraButtonDialog(\n temp,\n // recyclerViewItem_ArrayList.get(position).getZakaz(),\n kom1_kom2, kom1_kom2_kanchele, mast, order);\n bottomSheet.show(getSupportFragmentManager(), \"exampleBottomSheet\");\n\n }\n }\n }", "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 boolean iliskiMutfakEkleme(int kullanici_no, int urun_kodu) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"insert into iliski_mutfak (kullanici_no, urun_kodu) values (\" + kullanici_no + \", \" + urun_kodu + \")\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n ps.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "public String getIdKlinik() {\n return idKlinik;\r\n }", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "private String insertarCartaBurningSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 2,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void setDataTambahPresensi(int idPbm) {\n BeritaAcara beritaAcaraTambahPresensi = new DaoBeritaAcara().getBeritaAcaraTambahPresensi(idPbm);\n int pertemuanSaatIni = beritaAcaraTambahPresensi.getTotalPertemuan() + 1;\n framePresensi.setIdMapel(beritaAcaraTambahPresensi.getIdMapel());\n framePresensi.setIdKelas(beritaAcaraTambahPresensi.getIdKelas());\n framePresensi.setPertemuan(pertemuanSaatIni);\n }", "public void simpanDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"INSERT INTO tbl_kembali(nm_kategori, ala_kategori, no_kategori, kame_kategori, kd_kategori, sewa_kategori, kembali_kategori, lambat_kategori)\" + \"VALUES('\"+ nmKategori +\"','\"+ alaKategori +\"','\"+ noKategori +\"','\"+ kameKategori +\"','\"+ kdKategori +\"','\"+ sewaKategori +\"','\"+ lamKategori +\"','\"+ lambatKategori +\"')\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "private String insertarCartaHealingSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n true,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private static void Iptal(ArrayList<Oda> odalar,Kullanici kullanici)\n {\n Oda oda=odaSec(odalar);\n if(oda.getMisafir().equals(\"0\"))\n {\n System.out.print(\"Sectiginiz oda rezerve iptali icin musait degil.\");\n }\n else\n {\n System.out.print(oda.getOdaNo()+\" numarali odanin rezerve islemi iptal edilecek.\");\n oda.setMisafir(\"0\");\n dosyaYazici(kullanici.getAd()+\", \"+oda.getMisafir()+\" adina \"+oda.getOdaNo()+\" numarali odayi rezerve islemini iptal etti.\");\n }\n }", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "public int getIdenti() {\r\n return identi;\r\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public void leerPacientes (int id_nutricionista);", "protected void podesiIDPredstave(String nazivPredstave) {\n\t\tfor (Predstave p:Kontroler.getInstanca().vratiRepertoar())\r\n\t\t\tif(p.getNazivPredstave().equals(nazivPredstave))\r\n\t\t\t\tID_Pred=p.getId();\r\n\t}", "public Matriu() {\n \t/** <p><b>Pre:</b></p> <Ul>Cert.</Ul>\n\t\t * <p><b>Post:</b></p> <Ul> S'inicialitza una matriu esparsa buida. </Ul>\n\t\t * \n\t\t*/\n this.M = new HashMap<>(0);\n this.MatriuTF_IDF = new HashMap<>(0);\n this.IDFJ = new TreeMap<>();\n }", "public void setIdKlinik(String idKlinik) {\n this.idKlinik = idKlinik;\r\n }", "@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void setDishInfo(final HashMap<String, ArrayList<String>> dishNames,\n final HashMap<String, ArrayList<Integer>> dishPrices,\n final HashMap<String, ArrayList<String>> dishImgs,\n final String type) {\n ArrayList<Integer> dishPrice = dishPrices.get(type);\n ArrayList<String> dishName = dishNames.get(type);\n final ArrayList<String> dishImg = dishImgs.get(type);\n for (int i = 0; i < dishName.size() && i < 15; i++) {\n final int finalI = i;\n final Bitmap[] bm = {null};\n final int m = i / DISH_WIDTH, n = i % DISH_WIDTH;\n final int dsPrice = dishPrice.get(i);\n final String dsName = dishName.get(i);\n final SubsamplingScaleImageView iv = imgs[m][n];\n TextView tv = names[m][n];\n tv.setTextColor(Color.DKGRAY);\n tv.setTextSize(12f);\n tv.setText(dsName + RMB + dsPrice);\n new Thread() {\n @Override\n public void run() {\n bm[0] = StormImg.getBm(a, dishImg.get(finalI));\n Handler handler = new Handler(a.getMainLooper()) {\n @Override\n public void handleMessage(android.os.Message msg) {\n super.handleMessage(msg);\n if (bm[0] != null)\n iv.setImage(ImageSource.bitmap(bm[0]));\n }\n };\n handler.sendMessage(handler.obtainMessage());\n }\n }.start();\n\n View.OnClickListener listener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addDishToList(dsName, 1, dsPrice, type);\n }\n };\n View.OnLongClickListener ll = new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n String title = \"Input the amount of \" + dsName + \" you want: \";\n final EditText et = new EditText(v.getContext());\n et.setInputType(InputType.TYPE_CLASS_NUMBER);\n et.setKeyListener(DigitsKeyListener.getInstance(\"0123456789\"));\n et.setFilters(new InputFilter[]{new InputFilter.LengthFilter(2)});\n new AlertDialog.Builder(v.getContext()).setTitle(title).setView(et).setPositiveButton(\"okay\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (et.getText().length() > 0) {\n int amt = Integer.valueOf(et.getText().toString());\n if (amt > 0)\n addDishToList(dsName, amt, dsPrice, type);\n dialog.dismiss();\n }\n }\n }).setNegativeButton(\"cancel\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n return true;\n }\n };\n // click to add dishes to the dish list\n tv.setOnClickListener(listener);\n iv.setOnClickListener(listener);\n tv.setOnLongClickListener(ll);\n iv.setOnLongClickListener(ll);\n }\n }", "public OldOntwikkelingskaartoverzicht(int idspel, int idspeler1, int idspeler2, int idspeler3) {\n\t\tdc = DatabaseCommunicator.getInstance();\n\n\t\t\n\t\tthis.idspel = idspel;\n\t\tthis.idspeler1 = idspeler1;\n\t\tthis.idspeler2 = idspeler2;\n\t\tthis.idspeler3 = idspeler3;\n\n\t\tspelerids = new ArrayList<Integer>();\n\t\tcards = new ArrayList<Integer>();\n\t\tlabels = new ArrayList<JLabel>();\n\t\t\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tlabels.add(new JLabel());\n\t\t}\n\t\t\n\t\t\n\t\tsetLabelText();\n\n\t\t// Syso's can be removed later\n\t\tSystem.out.println(labels.get(0).getText());\n\t\tSystem.out.println(labels.get(1).getText());\n\t\tSystem.out.println(labels.get(2).getText());\n\n\t}", "private String insertarCartaNightmare() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 15,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public String getMetaversalID();", "public void cambiarIdioma(Jugador jugador, Button btnNoExit, Button btnSiExit,\n TextView logoBocadilloIntroExit) {\n\n int idioma = jugador.getIdioma();\n\n if (idioma == 0) { //CAT\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Si\");\n logoBocadilloIntroExit.setText(R.string.exitCAT);\n } else if (idioma == 1) { //ESP\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Si\");\n logoBocadilloIntroExit.setText(R.string.exitESP);\n } else { //ENG\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Yes\");\n logoBocadilloIntroExit.setText(R.string.exitENG);\n }\n }", "public void baseLandID(){ \n Log1_AssetCountModel assetCount = new Log1_AssetCountModel();\n List count = assetCount.get();\n\n count.stream().forEach(row -> {\n HashMap hash = (HashMap) row;\n AssetLandCount_txt.setText((String.valueOf(hash.get(\"AssetLand\"))));\n });\n }", "public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }", "private void dameTodoAlbum(int id) {\n List<AlbumCancion> miListaAlbumCancion = miCancionDao.dameTodoPorId(id);\n modeloTabla = (DefaultTableModel) tablaAlbumCancion.getModel();\n Object[] o = new Object[6];\n for (int i = 0; i < miListaAlbumCancion.size(); i++) {\n o[0] = miListaAlbumCancion.get(i).getCancion_id();\n o[1] = miListaAlbumCancion.get(i).getNombre_cancion();\n o[2] = miListaAlbumCancion.get(i).getDescripcion();\n o[3] = miListaAlbumCancion.get(i).getGrupo_musical();\n o[4] = miListaAlbumCancion.get(i).getNombre();\n o[5] = miListaAlbumCancion.get(i).getAnno();\n modeloTabla.addRow(o);\n }\n tablaAlbumCancion.setModel(modeloTabla);\n\n }", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }", "public void loadDataProduk(){\n kode_barang = txtKodeBarang.getText();\n nama_barang = txtNamaBarang.getText();\n merk_barang = txtMerkBarang.getText();\n jumlah_stok = Integer.parseInt(txtJumlahStok.getText());\n harga = Integer.parseInt(txtHarga.getText());\n \n }", "public int MasalarmasaEkle(String masa_adi) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n int masa_no = 0;\r\n // masalar tablosundaki en son id ye gore masa_no yu getirir\r\n String sorgu = \"select masa_no from masalar where idmasalar= (select idmasalar from masalar order by idmasalar desc limit 0, 1)\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masa_no = rs.getInt(1);\r\n }\r\n masa_no = masa_no + 1;\r\n String sorgu2 = \"insert into masalar (masa_no, masa_adi) values (\" + masa_no + \", '\" + masa_adi + \"')\";\r\n ps = vb.con.prepareStatement(sorgu2);\r\n ps.executeUpdate();\r\n String sorgu3 = \"insert into masa_durum (masa_no, durum) values (\" + masa_no + \", 0)\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n return masa_no;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "public void srediFormuPremaSK(){\n int aktivanSK = Komunikacija.getInstance().getAktivan_sk();\n \n if(aktivanSK == Konstante.SK_DODAVANJE){\n srediFormu();\n this.setTitle(\"Unos nove vezbe\");\n }\n if(aktivanSK == Konstante.SK_IZMENA){\n srediFormu();\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Izmena vezbe\");\n } \n \n if(aktivanSK == Konstante.SK_PRIKAZ){\n jTextFieldNaziv.setEnabled(false);\n jTextFieldFokus.setEnabled(false);\n jTextFieldVremeTrajanja.setEnabled(false);\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Detalji vezbe\");\n }\n}", "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "@Transactional\n\t@Override\n\tpublic String addMeubleDansPanier12(int furnitureId, int quantity, long panierId) {\n\t\t\n\t\t\t\tligneCommandeRepository.setPannier(furnitureId,quantity, panierId);\n\t\t\t\t\n//\t\t\t\tLigneCommande card = ligneCommandeRepository.findById(panierId).get();\n//\t\t\t\tFurniture furniture = furnitureRepository.findById(furnitureId).get();\n\t\t\t\t\n\t\t\t\treturn \"product added\";\n\t}", "public int getIdfilial(){\r\n return idfilial;\r\n }" ]
[ "0.6030397", "0.58275735", "0.5762984", "0.5705561", "0.5699085", "0.5665107", "0.56042045", "0.5569961", "0.5567978", "0.5567941", "0.5516675", "0.5511873", "0.55047464", "0.5501817", "0.5493431", "0.5492301", "0.54815084", "0.54642457", "0.545465", "0.54434985", "0.54151464", "0.54083353", "0.53968894", "0.5396203", "0.5387516", "0.5386866", "0.5381727", "0.5379202", "0.5377152", "0.53644073", "0.5353433", "0.5352769", "0.5333598", "0.5328396", "0.53229064", "0.53218824", "0.53185594", "0.5313455", "0.52973646", "0.52961105", "0.5295935", "0.52945256", "0.5291066", "0.52910084", "0.52890956", "0.52888376", "0.52761286", "0.527485", "0.5273762", "0.52699715", "0.52684206", "0.52577066", "0.52570873", "0.5241653", "0.5237012", "0.52369547", "0.5236109", "0.5219874", "0.52180177", "0.52144194", "0.5205915", "0.5200909", "0.5196904", "0.5195301", "0.5190631", "0.5187829", "0.5180646", "0.5175912", "0.51745427", "0.5174528", "0.51721674", "0.51715994", "0.51653826", "0.516474", "0.51626843", "0.51509976", "0.51497483", "0.51489913", "0.51485395", "0.5142441", "0.51418847", "0.5139844", "0.5138264", "0.5137216", "0.5127554", "0.5127502", "0.5127364", "0.51269704", "0.51267564", "0.5123963", "0.51230276", "0.5110931", "0.51077795", "0.5106035", "0.51060283", "0.51045185", "0.51036197", "0.5103092", "0.51016563", "0.5100632", "0.50978506" ]
0.0
-1
dispose of the object
void closeSessionFactory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dispose() {\n\t\t\t\r\n\t\t}", "@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t}", "public void dispose() {\n\t\t}", "@Override\n\t\tpublic void dispose() {\n\t\t \n\t\t}", "private void dispose() {\n\n\t}", "@Override\n\t\t\tpublic void dispose() {\n\t\t\t}", "@Override\n \t\t\tpublic void dispose() {\n \n \t\t\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "public void dispose() {\r\n\t\tclose();\r\n\t}", "@Override\n\tpublic void dispose() {\n\t\tdestroy();\n\t}", "@Override\n public void dispose() {\n \n }", "public void dispose() {\r\n\t\t// Nothing to dispose\r\n\t}", "public void dispose() {\n\t\t\n\t}", "public void dispose() {\n\n\t}", "public void dispose() {\n\n\t}", "public void dispose() {\n\n\t}", "@Override\n public void dispose() {\n\n }", "@Override\r\n\tpublic void dispose() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public void dispose() {\n\t\t// Nothing to dispose\n\t}", "public void dispose() {\n\t}", "public void dispose() {\n\t}", "public void dispose() {\n\t}", "public void dispose() {\n\t}", "public void dispose( );", "public void dispose() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose()\r\n\t{}", "public void dispose() ;", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "public void dispose() {\n\t\tsuper.dispose();\n\t}", "@Override\r\n\tprotected void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\r\n\t}", "public void dispose() {\n\r\n\t}", "public void dispose() {\n\r\n\t}", "public void dispose()\n\t{\n\t}", "@Override\r\n\tpublic void dispose() {\n\t}", "@Override\r\n\tpublic void dispose() {\n\t}", "@Override\n public void dispose() {\n\n }", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\t\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\r\n\t}", "@Override\n\tpublic void dispose()\n\t{\n\t\t\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\tsuper.dispose();\r\n\t}", "public void dispose()\n\t{\n\t\tsuper.dispose();\n\t}", "@Override\n\tpublic void dispose () {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}", "@Override\n\tpublic void dispose() {\n\n\t}" ]
[ "0.81694204", "0.8134302", "0.80706674", "0.80706674", "0.80706674", "0.802286", "0.802286", "0.7989313", "0.7920221", "0.7919203", "0.79022986", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78624135", "0.78615576", "0.7855017", "0.7841492", "0.7840758", "0.7836872", "0.7836872", "0.7836872", "0.7811862", "0.7794559", "0.7780629", "0.77649504", "0.77649504", "0.77649504", "0.77649504", "0.77614814", "0.7759081", "0.7752907", "0.77303576", "0.77272344", "0.77272344", "0.77272344", "0.77272344", "0.77272344", "0.77029824", "0.77012104", "0.7687695", "0.7687695", "0.7687695", "0.76830655", "0.76721203", "0.76721203", "0.7642037", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76387036", "0.76374876", "0.76374876", "0.76374876", "0.76374876", "0.76374876", "0.76374876", "0.76374876", "0.76374876", "0.76353335", "0.7618341", "0.76178044", "0.76177865", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847", "0.760847" ]
0.0
-1
creates a new hibernate session and transaction.
IDAOSession createNewSession();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void open() {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n }", "public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}", "@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "public Session createTransactionAwareSession() throws TopLinkException {\n\t\tthrow new UnsupportedOperationException(\"SingleSessionFactory does not support transaction-aware Sessions\");\n\t}", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "@Override\n public Session getSession() throws SQLException {\n // If we don't yet have a live transaction, start a new one\n // NOTE: a Session cannot be used until a Transaction is started.\n if (!isTransActionAlive()) {\n sessionFactory.getCurrentSession().beginTransaction();\n configureDatabaseMode();\n }\n // Return the current Hibernate Session object (Hibernate will create one if it doesn't yet exist)\n return sessionFactory.getCurrentSession();\n }", "private void getHibernateSession() {\n try {\n session = em.unwrap(Session.class)\n .getSessionFactory().openSession();\n\n } catch(Exception ex) {\n logger.error(\"Failed to invoke the getter to obtain the hibernate session \" + ex.getMessage());\n ex.printStackTrace();\n }\n\n if(session == null) {\n logger.error(\"Failed to find hibernate session from \" + em.toString());\n }\n }", "@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}", "private Session openSession() {\n return sessionFactory.getCurrentSession();\n }", "public static Session createSession(SessionFactory factory){\n Session s;\n\n if((s = (Session) _sessionRef.get()) == null) {\n s = factory.openSession();\n _sessionRef.set(s);\n }\n else{\n if(!s.isConnected())s.reconnect();\n }\n\n return s; \n }", "public Session createSession() {\n\t\treturn this.session;\n\t}", "@Override\n public Session getSession() throws HibernateException {\n Session session = threadLocal.get();\n\n if (session == null || !session.isOpen()) {\n session = (sessionFactory != null) ? sessionFactory.openSession()\n : null;\n threadLocal.set(session);\n }\n return session;\n }", "private static void createSessionFactory() {\n\t\ttry {\n\t\t\tif (sessionFactory == null) {\n\n\t\t\t\tProperties properties = new Properties();\n\t\t\t\tproperties.load(ClassLoader.getSystemResourceAsStream(\"hibernate.properties\"));\n\n\t\t\t\tConfiguration configuration = new Configuration();\n\t\t\t\tEntityScanner.scanPackages(\"musala.schoolapp.model\").addTo(configuration);\n\t\t\t\tconfiguration.mergeProperties(properties).configure();\n\t\t\t\tStandardServiceRegistry builder = new StandardServiceRegistryBuilder()\n\t\t\t\t\t\t.applySettings(configuration.getProperties()).build();\n\t\t\t\tsessionFactory = configuration.buildSessionFactory(builder);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Failed to create session factory object.\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public synchronized static SessionFactory createSessionFactory() {\r\n\r\n if (sessionFactory == null) {\r\n LOG.debug(MODULE + \"in createSessionFactory\");\r\n sessionFactory = new Configuration().configure().buildSessionFactory();\r\n// ApplicationContext appcontext = ApplicationContextProvider.getApplicationContext();\r\n// sessionFactory = (SessionFactory) appcontext.getBean(\"sessionFactory\");\r\n LOG.debug(MODULE + \"sessionFactory created\");\r\n }\r\n\r\n return sessionFactory;\r\n }", "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}", "public void addCourseSession(CourseSession cs){\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n try{\r\n session.beginTransaction();\r\n session.persist(cs);\r\n session.getTransaction().commit();\r\n }\r\n catch(HibernateException e){\r\n System.err.println(\"Initial SessionFactory creation failed.\");\r\n if(session.getTransaction() != null){\r\n try{\r\n session.getTransaction().rollback();\r\n }\r\n catch(HibernateException e2){\r\n e2.printStackTrace();\r\n }\r\n }\r\n }\r\n finally{\r\n if(session != null){\r\n try{\r\n session.close();\r\n }\r\n catch(HibernateException e3){\r\n e3.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "private Session getHibernateSession() throws AuditException {\r\n return this.session;\r\n }", "Session begin();", "DatabaseSession openSession();", "public void iniciaOperacion() throws HibernateException\r\n\t{\r\n\t\t\r\n\t\t//Creamos conexión BBDD e inicamos una sesion\r\n\t sesion = HibernateUtil.getSessionFactory().openSession();\r\n\t //iniciamos transaccion\r\n\t tx = sesion.beginTransaction();\r\n\t}", "private Session fetchSession()\n\t{\n\t\t\tlog.info (\"******Fetching Hibernate Session\");\n\n\t\t\tSession session = HibernateFactory.currentSession();\n\n\t\t\treturn session;\n\t \n\t}", "Session createSession(Long courseId, Long studentId, Session session);", "public void closeAndReopenSession() {\n\n\t\ttry {\n\t\t\tif (getHSession() != null) {\n\t\t\t\tgetHSession().close();\n\t\t\t}\n\t\t\tsetHSession(HibernateUtil.getNewSession());\n\t\t} catch (HibernateException he) {\n\t\t\tgetLog().error(he);\n\t\t}\n\t}", "@Test\n public void testsaveUser(){\n \tSession session=myHibernateUtil.getSessionFactory().getCurrentSession();\n \t\n \tTransaction ts=session.beginTransaction();\n \tUsers u=new Users();\n \tu.setUsername(\"zhangsan\");\n \tu.setPassword(\"123456\");\n \tsession.save(u);\n \tts.commit();\n }", "HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }", "DefaultSession createSession(String id);", "public Session getSession(boolean create) throws LeaseException {\n return entity.getSession(create);\n }", "public interface HibSession extends Serializable {\n /** Set up for a hibernate interaction. Throw the object away on exception.\n *\n * @param sessFactory\n * @throws HibException\n */\n public void init(SessionFactory sessFactory) throws HibException;\n\n /**\n * @return Session\n * @throws HibException\n */\n public Session getSession() throws HibException;\n\n /**\n * @return boolean true if open\n * @throws HibException\n */\n public boolean isOpen() throws HibException;\n\n /** Clear a session\n *\n * @throws HibException\n */\n public void clear() throws HibException;\n\n /** Disconnect a session\n *\n * @throws HibException\n */\n public void disconnect() throws HibException;\n\n /** set the flushmode\n *\n * @param val\n * @throws HibException\n */\n public void setFlushMode(FlushMode val) throws HibException;\n\n /** Begin a transaction\n *\n * @throws HibException\n */\n public void beginTransaction() throws HibException;\n\n /** Return true if we have a transaction started\n *\n * @return boolean\n */\n public boolean transactionStarted();\n\n /** Commit a transaction\n *\n * @throws HibException\n */\n public void commit() throws HibException;\n\n /** Rollback a transaction\n *\n * @throws HibException\n */\n public void rollback() throws HibException;\n\n /** Did we rollback the transaction?\n *\n * @return boolean\n * @throws HibException\n */\n public boolean rolledback() throws HibException;\n\n /** Create a Criteria ready for the additon of Criterion.\n *\n * @param cl Class for criteria\n * @return Criteria created Criteria\n * @throws HibException\n */\n public Criteria createCriteria(Class<?> cl) throws HibException;\n\n /** Evict an object from the session.\n *\n * @param val Object to evict\n * @throws HibException\n */\n public void evict(Object val) throws HibException;\n\n /** Create a query ready for parameter replacement or execution.\n *\n * @param s String hibernate query\n * @throws HibException\n */\n public void createQuery(String s) throws HibException;\n\n /** Create a query ready for parameter replacement or execution and flag it\n * for no flush. This assumes that any queued changes will not affect the\n * result of the query.\n *\n * @param s String hibernate query\n * @throws HibException\n */\n public void createNoFlushQuery(String s) throws HibException;\n\n /**\n * @return query string\n * @throws HibException\n */\n public String getQueryString() throws HibException;\n\n /** Create a sql query ready for parameter replacement or execution.\n *\n * @param s String hibernate query\n * @param returnAlias\n * @param returnClass\n * @throws HibException\n */\n public void createSQLQuery(String s, String returnAlias, Class<?> returnClass)\n throws HibException;\n\n /** Create a named query ready for parameter replacement or execution.\n *\n * @param name String named query name\n * @throws HibException\n */\n public void namedQuery(String name) throws HibException;\n\n /** Mark the query as cacheable\n *\n * @throws HibException\n */\n public void cacheableQuery() throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal String parameter value\n * @throws HibException\n */\n public void setString(String parName, String parVal) throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal Date parameter value\n * @throws HibException\n */\n public void setDate(String parName, Date parVal) throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal boolean parameter value\n * @throws HibException\n */\n public void setBool(String parName, boolean parVal) throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal int parameter value\n * @throws HibException\n */\n public void setInt(String parName, int parVal) throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal long parameter value\n * @throws HibException\n */\n public void setLong(String parName, long parVal) throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal Object parameter value\n * @throws HibException\n */\n public void setEntity(String parName, Object parVal) throws HibException;\n\n /** Set the named parameter with the given value\n *\n * @param parName String parameter name\n * @param parVal Object parameter value\n * @throws HibException\n */\n public void setParameter(String parName, Object parVal) throws HibException ;\n\n /** Set the named parameter with the given Collection\n *\n * @param parName String parameter name\n * @param parVal Collection parameter value\n * @throws HibException\n */\n public void setParameterList(String parName,\n Collection<?> parVal) throws HibException ;\n\n /** Set the first result for a paged batch\n *\n * @param val int first index\n * @throws HibException\n */\n public void setFirstResult(int val) throws HibException;\n\n /** Set the max number of results for a paged batch\n *\n * @param val int max number\n * @throws HibException\n */\n public void setMaxResults(int val) throws HibException;\n\n /** Return the single object resulting from the query.\n *\n * @return Object retrieved object or null\n * @throws HibException\n */\n public Object getUnique() throws HibException;\n\n /** Return a list resulting from the query.\n *\n * @return List list from query\n * @throws HibException\n */\n public List getList() throws HibException;\n\n /**\n * @return int number updated\n * @throws HibException\n */\n public int executeUpdate() throws HibException;\n\n /** Update an object which may have been loaded in a previous hibernate\n * session\n *\n * @param obj\n * @throws HibException\n */\n public void update(Object obj) throws HibException;\n\n /** Merge and update an object which may have been loaded in a previous hibernate\n * session\n *\n * @param obj\n * @return Object the persiatent object\n * @throws HibException\n */\n public Object merge(Object obj) throws HibException;\n\n /** Save a new object or update an object which may have been loaded in a\n * previous hibernate session\n *\n * @param obj\n * @throws HibException\n */\n public void saveOrUpdate(Object obj) throws HibException;\n\n /** Copy the state of the given object onto the persistent object with the\n * same identifier. If there is no persistent instance currently associated\n * with the session, it will be loaded. Return the persistent instance.\n * If the given instance is unsaved or does not exist in the database,\n * save it and return it as a newly persistent instance. Otherwise, the\n * given instance does not become associated with the session.\n *\n * @param obj\n * @return Object\n * @throws HibException\n */\n public Object saveOrUpdateCopy(Object obj) throws HibException;\n\n /** Return an object of the given class with the given id if it is\n * already associated with this session. This must be called for specific\n * key queries or we can get a NonUniqueObjectException later.\n *\n * @param cl Class of the instance\n * @param id A serializable key\n * @return Object\n * @throws HibException\n */\n public Object get(Class cl, Serializable id) throws HibException;\n\n /** Return an object of the given class with the given id if it is\n * already associated with this session. This must be called for specific\n * key queries or we can get a NonUniqueObjectException later.\n *\n * @param cl Class of the instance\n * @param id int key\n * @return Object\n * @throws HibException\n */\n public Object get(Class cl, int id) throws HibException;\n\n /** Save a new object.\n *\n * @param obj\n * @throws HibException\n */\n public void save(Object obj) throws HibException;\n\n /** Delete an object\n *\n * @param obj\n * @throws HibException\n */\n public void delete(Object obj) throws HibException;\n\n /** Save a new object with the given id. This should only be used for\n * restoring the db from a save.\n *\n * @param obj\n * @throws HibException\n */\n public void restore(Object obj) throws HibException;\n\n /**\n * @param val\n * @throws HibException\n */\n public void reAttach(UnversionedDbentity<?, ?> val) throws HibException;\n\n /**\n * @param o\n * @throws HibException\n */\n public void lockRead(Object o) throws HibException;\n\n /**\n * @param o\n * @throws HibException\n */\n public void lockUpdate(Object o) throws HibException;\n\n /**\n * @throws HibException\n */\n public void flush() throws HibException;\n\n /**\n * @throws HibException\n */\n public void close() throws HibException;\n}", "public Session openSession() {\r\n //Interceptor interceptor= new Interceptor();\r\n //Session regresar = sessionFactory.withOptions().interceptor(interceptor).openSession();\r\n Session regresar = sessionFactory.openSession();\r\n //interceptor.setSession(regresar);\r\n return regresar;\r\n }", "public static Session getSession() throws HException {\r\n\t\tSession s = (Session) threadSession.get();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (s == null) {\r\n\t\t\t\tlog.debug(\"Opening new Session for this thread.\");\r\n\t\t\t\tif (getInterceptor() != null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\ts = getSessionFactory().withOptions().interceptor(getInterceptor()).openSession();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ts = getSessionFactory().openSession();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthreadSession.set(s);\r\n\t\t\t\tsetConnections(1);\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tthrow new HException(ex);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public Session openSession() {\r\n return sessionFactory.openSession();\r\n }", "public HibernateTransactionTemplate getHibernateTransactionTemplate() {\n return new HibernateTransactionTemplate();\n }", "public /*static*/ Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "Session getSession();", "Session getSession();", "Transaction createTransaction();", "public interface SessionTransactionManager {\n /**\n * Flush the current ORM session.\n */\n void flushSession();\n \n /**\n * Clear the first-level cache of the current ORM session.\n */ \n void clearSession();\n \n /**\n * Start a new transaction.\n */ \n void beginTransaction();\n \n /**\n * Commit the current transaction.\n */ \n void commitTransaction();\n \n /**\n * Roll back the current transaction.\n */ \n void rollbackTransaction();\n}", "public SingleSessionFactory(Session session) {\n\t\tthis.session = session;\n\t}", "public static Session openSession(SessionFactory sessionFactory)\r\n\t\t\tthrows HibernateException {\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\treturn session;\r\n\t}", "public Session getSession(){\n\t\treturn sessionFactory.openSession();\n\t}", "DatastoreSession createSession();", "public Session createEmptySession();", "public Session getHibernateSession() throws EvolizerException {\n return getEvolizerSession().getHibernateSession();\n }", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "protected Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "public static void addBook(Book book) throws HibernateException{\r\n session=sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n //Insert detail of the book to the database\r\n session.save(book);\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n }", "private static SessionFactory buildSessionFact() {\n try {\n\n return new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\n \n } catch (Throwable ex) {\n \n System.err.println(\"Initial SessionFactory creation failed.\" + ex);\n throw new ExceptionInInitializerError(ex);\n }\n }", "public Session openSession() {\r\n\t\treturn sessionFactory.openSession();\r\n\t}", "public static Session currentSession() throws HibernateException {\n Session s = (Session) threadLocal.get();\n\n if (s == null) {\n try {\n\t\t\t\tif (getInterceptor() != null) {\n\t\t\t\t\tlog.debug(\"Using Interceptor: \" + getInterceptor().getClass());\n\t\t\t\t\ts = sessionFactory.openSession(getInterceptor());\n\t\t\t\t} else {\n\t\t\t\t\ts = sessionFactory.openSession();\n\t\t\t\t}\n }\n catch (HibernateException he) {\n System.err.println(\"%%%% Error Creating SessionFactory %%%%\");\n throw new RuntimeException(he);\n }\n }\n return s;\n }", "public interface IHibernatePersistenceModule extends IPersistenceModule {\r\n\t/**\r\n\t * Retorna a sessao do hibernate\r\n\t * \r\n\t * @return a sessao\r\n\t */\r\n\tSession getSession();\r\n}", "public void createAgenda(Agenda agenda){\n Session session = HibernateUtil.getSessionFactory().openSession(); \n Transaction transaction = session.beginTransaction();\n session.save(agenda);\n transaction.commit();\n session.close();\n }", "@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public Session create(@RequestBody final Session session) {\n return sessionRepository.saveAndFlush(session);\n }", "public Session getSession() throws DAOException {\n // Injection fails for this non-managed class.\n DAOException ex = null;\n String pu = PERSISTENCE_UNIT;\n if(session == null || !em.isOpen()) {\n session = null;\n try {\n em = (EntityManager)new InitialContext().lookup(pu);\n } catch(Exception loopEx) {\n ex = new DAOException(loopEx);\n logger.error(\"Persistence unit JNDI name \" + pu + \" failed.\");\n }\n }\n\n getHibernateSession();\n if(ex != null) {\n ex.printStackTrace();\n }\n return session;\n }", "protected abstract SESSION newSessionObject() throws EX;", "public SessionFactory getHibernateSessionFactory() {\n if (_hibernateTemplate == null) {\n return null;\n }\n return _hibernateTemplate.getSessionFactory();\n }", "public void insert1(login uv) {\n\t\ttry\n {\n SessionFactory sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();\n \t\n Session session = sessionFactory.openSession();\n \n Transaction transaction=session.beginTransaction();\n \n session.save(uv);\n \n transaction.commit();\n \n session.close();\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n\t\t\n\t}", "protected abstract SessionFactory buildSessionFactory() throws Exception;", "public static SessionFactory getSessionFactory() {\n\n if(sessionFactory == null) {\n try {\n MetadataSources metadataSources = new MetadataSources(configureServiceRegistry());\n\n addEntityClasses(metadataSources);\n\n sessionFactory = metadataSources.buildMetadata()\n .getSessionFactoryBuilder()\n .build();\n\n } catch (Exception e) {\n e.printStackTrace();\n if(registry != null)\n StandardServiceRegistryBuilder.destroy(registry);\n }\n }\n\n return sessionFactory;\n }", "private static synchronized void lazyinit()\n {\n try\n {\n if (sessionFactory == null)\n {\n System.out.println(\"Going to create SessionFactory \");\n sessionFactory = new Configuration().configure().buildSessionFactory();\n// sessionFactory.openSession();\n System.out.println(\"Hibernate could create SessionFactory\");\n }\n } catch (Throwable t)\n {\n System.out.println(\"Hibernate could not create SessionFactory\");\n t.printStackTrace();\n }\n }", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "public SessionDao(Configuration configuration) {\n super(Session.SESSION, com.scratch.database.mysql.jv.tables.pojos.Session.class, configuration);\n }", "public Session getSession() {\n\t\treturn sessionFactory.getCurrentSession();\r\n\t}", "synchronized public Session newSysSession() {\n\n Session session = new Session(sysSession.database,\n sysSession.getUser(), false, false,\n sessionIdCount, null, 0);\n\n session.currentSchema =\n sysSession.database.schemaManager.getDefaultSchemaHsqlName();\n\n sessionMap.put(sessionIdCount, session);\n\n sessionIdCount++;\n\n return session;\n }", "public static SessionFactory getSessionFactory() {\n\t\tConfiguration configObj = new Configuration();\n\t\tconfigObj.addAnnotatedClass(com.training.org.User.class);\n\t\tconfigObj.configure(\"hibernate.cfg.xml\");\n\t\t\n\t\t\n\t\n\n\t\t// Since Hibernate Version 4.x, Service Registry Is Being Used\n\t\tServiceRegistry serviceRegistryObj = new StandardServiceRegistryBuilder().applySettings(configObj.getProperties()).build(); \n\n\t\t// Creating Hibernate Session Factory Instance\n\t\tSessionFactory factoryObj = configObj.buildSessionFactory(serviceRegistryObj);\t\t\n\t\treturn factoryObj;\n\t}", "private static SessionFactory buildSessionFactory() {\n Configuration configObj = new Configuration();\n configObj.configure(\"hibernate.cfg.xml\");\n\n ServiceRegistry serviceRegistryObj = new StandardServiceRegistryBuilder().applySettings(configObj.getProperties()).build();\n\n // Creating Hibernate SessionFactory Instance\n sessionFactoryObj = configObj.buildSessionFactory(serviceRegistryObj);\n return sessionFactoryObj;\n }", "public Session getSession();", "private SessionFactoryUtil() {\r\n try {\r\n LOG.info(\"Configurando hibernate.cfg.xml\");\r\n CfgFile cfgFile = new CfgFile();\r\n Configuration configure = new Configuration().configure(new File(cfgFile.getPathFile()));\r\n cfgFile.toBuildMetaData(configure);\r\n ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configure.getProperties()).build();\r\n sessionFactory = configure.buildSessionFactory(serviceRegistry);\r\n LOG.info(\"Configuracion se cargo a memoria de forma correcta\");\r\n } // try\r\n catch (Exception e) {\r\n Error.mensaje(e);\r\n } // catch\r\n }", "public Session createSession(String id)\n\t{\n\t\tif (id == null)\n\t\t\tid = generateSessionId();\n\t\tSession session = new SessionImpl(id);\n\t\t_sessions.put(id, session);\n\t\treturn session;\n\t}", "public static SessionStrategyBuilder usingHibernate() {\r\n return new PersistenceServiceBuilderImpl(PersistenceFlavor.HIBERNATE, persistenceModuleVisitor);\r\n }", "protected\r\n JpaDaoFactory()\r\n {\r\n ISessionStrategy mySessionStrategy = new JpaSessionStrategy();\r\n ITransactionStrategy myTransactionStrategy = \r\n new JpaTransactionStrategy(mySessionStrategy);\r\n\r\n setSessionStrategy(mySessionStrategy);\r\n setTransactionStrategy(myTransactionStrategy);\r\n }", "void commit(Session session);", "@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }", "@Autowired\n\tpublic HibernateAccountManager(SessionFactory sessionFactory) {\n\t\tthis.sessionFactory = sessionFactory;\n\t\tthis.hibernateTemplate = new HibernateTemplate(sessionFactory);\n\t}", "public Session getSession() {\n if (this.session == null) {\n this.logger.error(\"Sessão não iniciada.\");\n throw new IllegalStateException(\"A sessão não foi criada antes do uso do DAO\");\n }\n return this.session;\n }", "SessionManagerImpl() {\n }", "public PaymentDAOImpl(SessionFactory sessionfactory)\n\t{\n\tthis.sessionFactory=sessionfactory; \n\tlog.debug(\"Successfully estblished connection\");\n\t}", "private static SessionFactory buildSessionFactory() {\n\t\ttry {\r\n\t\t\tConfiguration config=new Configuration();\r\n\t\t\tconfig.addClass(Customer.class);\r\n\t\t\treturn config\r\n\t\t\t\t\t.buildSessionFactory(new StandardServiceRegistryBuilder().build());\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(\"error building sessions\");\r\n\t\t}\r\n\t}", "InternalSession createEmptySession();", "public static void beginTransaction() throws HException {\r\n\t\t\r\n\t\tTransaction tx = (Transaction) threadTransaction.get();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (tx == null) {\r\n\t\t\t\t// log.debug(\"Starting new database transaction in this\r\n\t\t\t\t// thread.\");\r\n\t\t\t\t//Session =getSession();\r\n\t\t\t\ttx = getSession().beginTransaction();\r\n\t\t\t\tthreadTransaction.set(tx);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tthrow new HException(ex);\r\n\t\t}\r\n\t}", "public void setSessionFactory(SessionFactory sessionFactory) {\r\n template = new HibernateTemplate(sessionFactory);\r\n }", "public FuncaoCasoDAOImpl() {\n\t\tsetSession(HibernateUtil.getSessionFactory());\n\t}", "public Session(){\n\t\tdb = ALiteOrmBuilder.getInstance().openWritableDatabase();\n\t\texternalsCallbacks = new ArrayList<EntityListener>();\n\t}", "@Override\n\tprotected Serializable doCreate(Session session) {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n SessionFactory factory = new Configuration()\n .configure(\"hibernate.cfg.xml\")\n .addAnnotatedClass(Student.class)\n .buildSessionFactory();\n\n// create session\n Session session = factory.getCurrentSession();\n\n try {\n// create a Course object\n System.out.println(\"Creating instructor object...\");\n Course tempCourse = new Course(\"History of Magic\");\n\n// start a transaction\n session.beginTransaction();\n\n// save the Course object\n System.out.println(\"Saving the Course...\");\n System.out.println(tempCourse);\n session.save(tempCourse);\n\n// commit transaction\n session.getTransaction().commit();\n\n// MY NEW CODE\n\n// find out the Course's id: primary key\n System.out.println(\"Saved Course. Generated id: \" + tempCourse.getId());\n\n// now get a new session and start transaction\n session = factory.getCurrentSession();\n session.beginTransaction();\n\n// retrieve Course based on the id: primary key\n System.out.println(\"\\nGetting Course with id: \" + tempCourse.getId());\n\n Course myCourse = session.get(Course.class, tempCourse.getId());\n\n System.out.println(\"Get complete: \" + myCourse);\n\n// commit the transaction\n session.getTransaction().commit();\n\n System.out.println(\"Done!\");\n }\n finally {\n factory.close();\n }\n\n\n }", "@Override\n public synchronized SessionImpl getConnection() {\n if (Framework.getRuntime().isShuttingDown()) {\n throw new IllegalStateException(\"Cannot open connection, runtime is shutting down\");\n }\n SessionPathResolver pathResolver = new SessionPathResolver();\n Mapper mapper = newMapper(pathResolver, true);\n SessionImpl session = newSession(model, mapper);\n pathResolver.setSession(session);\n sessions.add(session);\n sessionCount.inc();\n return session;\n }", "Transaction beginTx();", "public static void closeSession() throws HibernateException {\n\t\tSession session = (Session) threadLocal.get();\n threadLocal.set(null);\n\n if (session != null && session.isOpen()) {\n session.close();\n }\n }", "public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}", "public Session getSession() {\n\t\tSession session = this.session;\r\n\t\tif (session == null) {\r\n\t\t\t// 2. altrimenti genera una nuova sessione utilizzando la factory (e.g. Spring MVC)\r\n\t\t\tsession = this.sessionFactory.getCurrentSession();\r\n\t\t}\r\n\t\treturn session;\r\n\t}", "void storeSession() {\n retrieveSessionIfNeeded(false);\n\n if (session != null) {\n try {\n session.commit();\n } catch (Exception e) { // NOSONAR - some error occured, log it\n logger.warn(\"cannot store session: {}\", session, e);\n throw e;\n }\n } else {\n logger.debug(\"session was null, nothing to commit\");\n }\n }", "private Session getCurrentSession() {\n return sessionFactory.getCurrentSession();\n }", "@Transactional(isolation=Isolation.READ_COMMITTED, \n\t\t\tpropagation=Propagation.REQUIRED,\n\t\t\trollbackFor=Exception.class)\n\tpublic void create(Object object) {\n\t\tsessionFactory.getCurrentSession().save(object);\n\t}", "private static SessionFactory buildSessionFactory() {\n\t\t// Creating Configuration Instance & Passing Hibernate Configuration File\n\t\tConfiguration configObj = new Configuration();\n\t\tconfigObj.configure(\"hibernate.cfg.xml\");\n\n\t\t// Since Hibernate Version 4.x, ServiceRegistry Is Being Used\n\t\tServiceRegistry serviceRegistryObj = new StandardServiceRegistryBuilder()\n\t\t\t\t.applySettings(configObj.getProperties()).build();\n\n\t\t// Creating Hibernate SessionFactory Instance\n\t\tsessionFactoryObj = configObj.buildSessionFactory(serviceRegistryObj);\n\t\treturn sessionFactoryObj;\n\t}", "protected Session getSession() {\r\n if (session == null || !session.isOpen()) {\r\n LOG.debug(\"Session is null or not open...\");\r\n return HibernateUtil.getCurrentSession();\r\n }\r\n LOG.debug(\"Session is current...\");\r\n return session;\r\n }", "public static Session register(SessionFactory factory) throws IllegalStateException {\n if(_sessionRef.get() != null) {\n throw new IllegalStateException(\n \"Thread already registered with a session\");\n }\n\n Session s = factory.openSession();\n _sessionRef.set(s);\n return s;\n }", "public static Map<SessionFactory, Session> getSession() {\n\t\tSessionFactory sf = new Configuration().configure(Constants.ONE_TO_MANY).addAnnotatedClass(Instructor.class)\n\t\t\t\t.addAnnotatedClass(InstructorDetail.class).addAnnotatedClass(Course.class).buildSessionFactory();\n\t\tSession s = sf.openSession();\n\n\t\tMap<SessionFactory, Session> tmp = new HashMap<SessionFactory, Session>();\n\t\ttmp.put(sf, s);\n\n\t\treturn tmp;\n\t}", "public Session createManagedClientSession() {\n\t\tthrow new UnsupportedOperationException(\"SingleSessionFactory does not support managed client Sessions\");\n\t}", "protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;" ]
[ "0.736572", "0.7005818", "0.6817611", "0.67892003", "0.6735229", "0.6704372", "0.65962267", "0.6526055", "0.65213037", "0.64718115", "0.64436674", "0.64228004", "0.64012766", "0.6327793", "0.6280543", "0.6275146", "0.6267901", "0.6250715", "0.6226042", "0.62191015", "0.6217307", "0.6212406", "0.61984366", "0.6193469", "0.61732394", "0.61662316", "0.6140296", "0.6126152", "0.61018705", "0.6088343", "0.6083127", "0.6078664", "0.60342914", "0.6020383", "0.6011375", "0.60018945", "0.59908617", "0.59908617", "0.59844065", "0.5979139", "0.5976306", "0.5973872", "0.5957745", "0.59519523", "0.59404325", "0.5939805", "0.5924201", "0.59036875", "0.5903234", "0.58578736", "0.5850769", "0.5825807", "0.58135724", "0.5807089", "0.57972854", "0.57773304", "0.5762153", "0.5754209", "0.5743401", "0.5738214", "0.57250094", "0.57237804", "0.57226", "0.57208943", "0.57130164", "0.57017344", "0.56904614", "0.5678093", "0.5677562", "0.567491", "0.56737554", "0.5668021", "0.5656395", "0.56545275", "0.56488276", "0.56445265", "0.56350535", "0.56307083", "0.5628665", "0.5626838", "0.55983365", "0.55945873", "0.55937153", "0.55903834", "0.55868", "0.5585094", "0.55728453", "0.5556369", "0.55505323", "0.55416095", "0.5541587", "0.55303466", "0.55286497", "0.5505308", "0.55044526", "0.5497838", "0.5492228", "0.548624", "0.5451507", "0.54484034", "0.54465705" ]
0.0
-1
add a new item to the specific session.
Item addItem(IDAOSession session, String title, String description, int userId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Session session);", "void add(InternalSession session);", "@Override\n\tpublic void addItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"+++++++++++Add 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, name, price and quantity\n\t\t\tSystem.out.print(\"Enter Item Id: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\tSystem.out.print(\"Enter Item Name without space: \");\n\t\t\tString itemName = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Type without space: \");\n\t\t\tString itemType = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Price: \");\n\t\t\tString itemPrice = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Quantity: \");\n\t\t\tint itemQuantity = scanner.nextInt();\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.addItems(session,itemId,itemName,itemType,itemPrice,itemQuantity);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "protected void addSession(ItemSession session, String configurationId) {\r\n synchronized (sessions) {\r\n Vector<ItemSession> configurationSessions = sessions.get(configurationId);\r\n if (configurationSessions == null) {\r\n configurationSessions = new Vector<ItemSession>();\r\n \r\n }\r\n configurationSessions.add(session);\r\n sessions.put(configurationId, configurationSessions);\r\n }\r\n }", "public void AddSession(String session, Long id){ validSessions.put(session, id); }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public static void addSession(Session _session) {\r\n\t\tsessions.add(_session);\r\n\t}", "public void addItem(Item item) {\n inventory.add(item);\n Thread updateUserThread = userController.new UpdateUserThread(LoginActivity.USERLOGIN);\n updateUserThread.start();\n synchronized (updateUserThread) {\n try {\n updateUserThread.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public void addOrderLineToOrderInSession(CartItem item, HttpServletRequest request) {\n\t\tShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"shoppingCart\");\n\t\tcart.getOrderLines().add(item);\n\t}", "public String[] addItem(Session session) throws RemoteException{\n\t\tSystem.out.println(\"Server model invokes addItem() method\");\n\t\treturn null;\n\t\t\n\t}", "void add(Item item);", "public void addNewSession(Session s)\r\n\t{\r\n\t\tif(activeSessions.size() == 0)\r\n\t\t{\r\n\t\t\tsetFocusOnSession(s);\r\n\t\t}\r\n\t\tactiveSessions.add(s);\r\n\t\t\r\n\t}", "public void addToSession(String attribute, Object value)\n {\n \n }", "public void addNewSession() {\n //Create an explicit intent for RecordingIntentService\n Intent saveSessionIntent = new Intent(this, RecordingIntentService.class);\n //Set the action of the intent to ACTION_SAVE_SESSION\n saveSessionIntent.setAction(RecordLapTasks.ACTION_SAVE_SESSION);\n\n //add the current session object info to the intent so it can be retrieved\n saveSessionIntent.putExtra(\"session_driver\", mySession.getDriver());\n saveSessionIntent.putExtra(\"session_track\", mySession.getTrackName());\n saveSessionIntent.putExtra(\"session_bestLap\", mySession.getBestLapString());\n saveSessionIntent.putExtra(\"session_laptimes\", mySession.getLaptimesAsString());\n saveSessionIntent.putExtra(\"session_numLaps\", mySession.getNumberOfLaps());\n\n //Call startService and pass the explicit intent\n startService(saveSessionIntent);\n }", "public static synchronized void addSession(SessionState session, int expLength) {\n session.expDate = new Date((new Date()).getTime() + expLength);\n statemap.put(session.getSessionId(), session);\n }", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}", "public abstract void addItem(AbstractItemAPI item);", "public void store(Item item) {\n this.items.add(item);\n }", "public static void addItem(int id,int quantity){\n\t\tif(userCart.containsKey(id)){\n\t\t\tint newQuantity = userCart.get(id).getQuantity() + quantity;\n\t\t\tuserCart.get(id).setQuantity(newQuantity);\n\t\t\tSystem.out.println(CartMessage.ALREADY_ADDED + newQuantity);\n\t\t}\n\t\telse{\n\t\t\tproducts.get(id).setQuantity(quantity);\n\t\t\tuserCart.put(id,products.get(id));\n\t\t\tSystem.out.println(CartMessage.ITEM_ADDED);\n\t\t}\n\t}", "public void additem(String item){\n\t\trep.takeitem(\"take \" + item);\n\t}", "public Result addingToSession(Http.Request request, String key, String value) {\n Map<String, String> newValues = new HashMap<>(1);\n newValues.put(key, value);\n return addingToSession(request, newValues);\n }", "@RequestMapping(\"/addcart\")\n\tpublic String doAddCart(@RequestParam(\"id\") int id, HttpSession session) {\n\t\tPrice ip = menuService.fetchPrice(id);\n\t\t// add it into a list in session.\n\t\tList<Price> cart = (List<Price>) session.getAttribute(\"cart\");\n\t\tif(cart == null) {\n\t\t\tcart = new ArrayList<>();\n\t\t\tsession.setAttribute(\"cart\", cart);\n\t\t}\n\t\tcart.add(ip);\n\t\tSystem.out.println(cart);\n\t\treturn \"redirect:menu\";\n\t}", "private void addItem(UndoItem item, RefactoringSession session) {\n if (wasUndo) {\n LinkedList<UndoItem> redo = redoList.get(session);\n redo.addFirst(item);\n } else {\n if (transactionStart) {\n undoList.put(session, new LinkedList<UndoItem>());\n descriptionMap.put(undoList.get(session), description);\n transactionStart = false;\n }\n LinkedList<UndoItem> undo = this.undoList.get(session);\n undo.addFirst(item);\n }\n if (!(wasUndo || wasRedo)) {\n redoList.clear();\n }\n }", "@Override\r\n\tpublic void addItem(Items item) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t List<Items> allItems = new ArrayList<Items>();\r\n\t\t int flag=0;\r\n\t\t try\r\n\t\t {\r\n\t\t\t allItems = session.createQuery(\"from Items\").list();\r\n\t\t\t for (Items item1 : allItems) {\r\n\t\t\t\t\tif(item1.getUserName().equals(item.getUserName()) && item1.getItemName().equals(item.getItemName())){\r\n\t\t\t\t\t\tflag=1;\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You need to choose other name for this task\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t break;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t} \r\n\t\t\t if(flag==0)\r\n\t\t\t {\r\n\t\t\t\t session.beginTransaction();\r\n\t\t\t\t session.save(item);\r\n\t\t\t\t session.getTransaction().commit();\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t }\t\r\n\t}", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public void addItem(Item item) {\n items.add(item);\n }", "public void addItem(Item item) {\n items.add(item);\n }", "public void addProduct(Product item)\n {\n stock.add(item);\n }", "public void adicionar(ItemProduto item) {\n\t\titens.add(item);\n\t}", "@RequestMapping(path=\"/shoppingCart/addToCart\", method=RequestMethod.POST)\n\tpublic String addToCart(@RequestParam(\"id\") Long id, @RequestParam(\"quantity\") Integer quantity, HttpSession session) {\n\t\tProduct selectedProduct = productDao.getProductById(id);\n\t\t\n\t\tMap<Product, Integer> shoppingCart = new HashMap<>();\n\t\t\n\t\tif(session.getAttribute(\"shoppingCart\") != null) {\n\t\t\tshoppingCart = (Map<Product, Integer>)session.getAttribute(\"shoppingCart\");\n\t\t} else {\n\t\t\tshoppingCart = new HashMap<>();\n\t\t}\n\t\t\n\t\tif(shoppingCart.containsKey(selectedProduct)) {\n\t\t\tint cartQuantity = shoppingCart.get(selectedProduct);\n\t\t\tcartQuantity += quantity;\n\t\t\tshoppingCart.put(selectedProduct, cartQuantity);\n\t\t} else {\n\t\t\tshoppingCart.put(selectedProduct, quantity);\n\t\t}\n\t\t\n\t\tsession.setAttribute(\"shoppingCart\", shoppingCart);\n\t\t\n\t\treturn \"redirect:/shoppingCart/view\";\n\t}", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}", "public int addTask(Item item) {\n try (Session session = this.factory.openSession()) {\n session.beginTransaction();\n session.save(item);\n session.getTransaction().commit();\n } catch (Exception e) {\n this.factory.getCurrentSession().getTransaction().rollback();\n }\n return item.getId();\n }", "public void addItem(Item item) {\n\t\thashOperations.put(KEY, item.getId(), item);\n\t\t//valueOperations.set(KEY + item.getId(), item);\n\t}", "public void addItem(Item item) {\r\n\t\titems.add(item);\r\n\t}", "public void addItemInCart(Item anItem, Integer aQuantity,boolean fromServer){\n if(!fromServer){\n postItemOnServer(new Pair<Item, Integer>(anItem,aQuantity));\n }\n boolean alreadyInCart = false;\n for(Pair<Item,Integer> itemInCart : itemsInCart){\n if(itemInCart.first.getId()== anItem.getId()){\n alreadyInCart = true;\n }\n }\n if(alreadyInCart){\n updateItemInCart(anItem,aQuantity,fromServer);\n }\n else{\n itemsInCart.add(Pair.create(anItem, aQuantity));\n }\n }", "public void addItem(Item item) {\n _items.add(item);\n }", "public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}", "public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }", "public int add(Item item) {\r\n Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n int id = 0;\r\n\r\n try {\r\n trans = session.beginTransaction();\r\n\r\n id = (int) session.save(item);\r\n\r\n trans.commit();\r\n } catch (HibernateException e) {\r\n if (trans != null) {\r\n trans.rollback();\r\n }\r\n e.printStackTrace();\r\n } finally {\r\n session.close();\r\n }\r\n return id;\r\n }", "public boolean addItem(Object pItem, boolean pCloseSession) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tsession.persist(pItem);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null){\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void addToSale(ItemDTO item, int quantity){\n this.saleInfo.addItem(item, quantity);\n }", "@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 addItem(Item item) {\n\t\titems.add(item);\n\t}", "public static void add(MemberSession ms) {\n//\t\taddMemberSession(ms, GPortalExecutionContext.getRequest().getSessionContext().getId());\n\t\tadd(ms, GPortalExecutionContext.getRequest().getSessionContext().getId());\n\t}", "public void addToCart(String userId ,ShoppingCartItem item) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, userId);\r\n\t\t\tcartdb.addItem(item);\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ item);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ item);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "protected static void addSession (HTTPSession aSession)\n\t{\n\t\tString theSessionID = aSession.getSessionID ();\n\t\tif (!sessionHashtable.containsKey (theSessionID))\n\t\t{\n\t\t\tsessionHashtable.put (theSessionID, aSession);\n\t\t\tnotifySessionListeners (aSession, null, true);\n\t\t}\n\t}", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "void addCpItem(ICpItem item);", "@RequestMapping(method=RequestMethod.POST, value = \"/item/{id}\", produces = \"application/json\")\n public void addItem(@RequestBody Item itemToAdd)\n {\n this.itemRepository.addItem(itemToAdd);\n }", "public void addItem( Item anItem) {\n currentItems.add(anItem);\n }", "@PostMapping(\"/addToCart\")\n @PermissionStoreItemRead\n public String addToCart(@RequestParam long id,\n @RequestParam(required = false) int numberOfItems,\n HttpSession session,\n HttpServletRequest request,\n Model model,\n RedirectAttributes redirectAttributes,\n HttpServletRequest httpServletRequest) {\n String previousPage = PageUtilities.getPreviousPageByRequest(httpServletRequest).orElseThrow(() -> new RuntimeException(\"Previous page not found\"));\n ShoppingCart cart = (ShoppingCart) session.getAttribute(\"cart\");\n var item = itemService.findById(id).orElseThrow(() -> new RuntimeException(\"Item not found\"));\n if ( item.getStock() < numberOfItems ||\n item.getStock() < cart.getItemQuantity(item) + numberOfItems) {\n redirectAttributes.addFlashAttribute(\"error\", \"Not enough items\");\n return previousPage;\n //return \"redirect:/item/\" + id + \"/show\";\n }\n cart.addItem(item, numberOfItems);\n redirectAttributes.addFlashAttribute(\"success\", \"Item added to cart successfully\");\n log.debug(\"Total size of cart : \" + cart.numberOfItems());\n //return \"redirect:/item/\" + id + \"/show\";\n return previousPage;\n\n }", "public int addItem(Item i);", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "public boolean add(Type item);", "void add(T item);", "public Item addItem(Item item) {\r\n uniqueCounter++;\r\n items.add(item);\r\n return item;\r\n }", "public void addItem(Item e) {\n\t\tItem o = new Item(e);\n\t\titems.add(o);\n\t}", "public void addItem(LibraryItem item){\r\n\t\t// use add method of list.class\r\n\t\tthis.inverntory.add(item);\r\n\t}", "public void addItem(Item theItem) {\n\t\tif (inventory != null) {\n\t\t\tif (!isAuctionAtMaxCapacity()) {\n\t\t\t\t// Check item doesn't already exist as key in map\n\t\t\t\tif (inventory.containsKey(theItem)) {\n\t\t\t\t\t//ERROR CODE: ITEM ALREADY EXISTS\n\t\t\t\t\tSystem.out.println(\"That item already exists in the inventory.\");\n\t\t\t\t} else\n\t\t\t\t\tinventory.put(theItem, new ArrayList<Bid>());\n\t\t\t} else if (isAuctionAtMaxCapacity()) {\n\t\t\t\t//ERROR CODE: AUCTION AT MAX CAPACITY\n\t\t\t\tSystem.out.println(\"\\nYour auction is at maximum capacity\");\n\t\t\t} \n\t\t} else {\n\t\t\tinventory = new HashMap<Item, ArrayList<Bid>>();\n\t\t\tinventory.put(theItem, new ArrayList<Bid>());\t\t\t\t\n\t\t} \t\t\t\t\t\t\n\t}", "public void addItem(Item i) {\n this.items.add(i);\n }", "CatalogItem addCatalogItem(CatalogItem catalogItem);", "public final void addSession(MediaSession2 mediaSession2) {\n if (mediaSession2 == null) {\n throw new IllegalArgumentException(\"session shouldn't be null\");\n }\n if (mediaSession2.isClosed()) {\n throw new IllegalArgumentException(\"session is already closed\");\n }\n Object object = this.mLock;\n synchronized (object) {\n MediaSession2 mediaSession22 = this.mSessions.get(mediaSession2.getId());\n if (mediaSession22 == null) {\n this.mSessions.put(mediaSession2.getId(), mediaSession2);\n mediaSession2.setForegroundServiceEventCallback(this.mForegroundServiceEventCallback);\n return;\n }\n if (mediaSession22 != mediaSession2) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Session ID should be unique, ID=\");\n stringBuilder.append(mediaSession2.getId());\n stringBuilder.append(\", previous=\");\n stringBuilder.append(mediaSession22);\n stringBuilder.append(\", session=\");\n stringBuilder.append(mediaSession2);\n Log.w((String)TAG, (String)stringBuilder.toString());\n }\n return;\n }\n }", "public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}", "public void addItem(Carryable g) {\r\n if (numItems < MAX_CART_ITEMS)\r\n cart[numItems++] = g;\r\n }", "public void addItem(String item){\n adapter.add(item);\n }", "public void addItem(final Item item) {\n\t\tnumberOfItems++;\n\t}", "public void addItem(Item item) {\n\t\tObjects.requireNonNull(item);\n\t\titems.add(item);\n\t}", "void addItem(DataRecord record);", "public Item add(Item item) {\n Item existing = getItem(item.getItemId());\n if (existing != null) {\n return existing.incrementQuantity(item.getQuantity());\n }\n else {\n items.add(item.setCart(this));\n return item;\n }\n }", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "@Override\r\n\tpublic void insertEncoreItem(Item item) {\n\t\tint i = sqlSession.insert(ns+\".insertEncoreItem\", item);\r\n\t\tif(i>0) System.out.println(\"insert Encore item1\");\r\n\t}", "void addToCart(String user, long id) throws MovieNotFoundException;", "public void addItem(Object item) {\r\n\t\tlistModel.addElement(item);\r\n\t}", "public void addItem(Collectable item){\n \tif (!(item instanceof Token)) {\n \t\titems.add(item);\n \t}\n }", "@Override\n public void addItem(P_CK t) {\n \n }", "public void addItemToRoom(Item item) {\n this.ItemsInRoom.put(item.getName(), item);\n }", "public void addToShoppingCart(BarcodedItem item, int quantity) {\n\t\t\n\t\tBarcodedProduct prod = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(item.getBarcode());\n\t\ttry {\n\t\t\t\n\t\t\tSHOPPING_CART_ARRAY[i][0] = prod.getDescription();\n\t\t\tSHOPPING_CART_ARRAY[i][1] = Integer.toString(quantity);\n\t\t\tBARCODEDITEM_ARRAY[i] = item;\n\t\t\tBARCODE_ARRAY[i] = prod.getBarcode();\n\t\t\tupdateTotalPayment(item, quantity);\n\t\t\t\n\t\t\ttotalNumOfItems += quantity;\n\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new SimulationException(e);\n\t\t}\n\t\t\n\t\ti++;\n\n\t}", "public synchronized void addItem(Product product){\n \n ShoppingCartItem item = carrito.get(product.getId());\n int new_quantity;\n \n if(item==null){\n carrito.set(product.getId(), new ShoppingCartItem(product));\n new_quantity = 1;\n }else{\n new_quantity = item.getQuantity()+1;\n }\n //even if it's added or not, we call update method to update the quantity of the product\n this.update(product,Integer.toString(new_quantity));\n }", "public void insert(KeyedItem newItem);", "public void addTodoItem(TodoItem item) {\n todoItems.add(item);\n }", "Cart addToCart(String productCode, Long quantity, String userId);", "public boolean addPlayerItem(PlayerItem playerItem);", "public void add(E item);", "void updateItem(IDAOSession session, Item item);", "public void addItemToCart(Item item) {\n itemList.add(item);\n this.totalTaxes = totalTaxes.add(item.getTaxes());\n this.totalPrices = totalPrices.add(item.getTtcPrice());\n }", "public synchronized void addItem(IJABXAdvertisementItem item) {\n\t\tidMap.put(item.getSerialNo(), item);\n\t\titemList.add(item);\n\t}", "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "void add(E item);", "void add(E item);", "void add(E item);", "public void addItem() {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tif (itemInvoice.getQuantidade() <= itemPO.getQuantidadeSaldo()) {\r\n\t\t\tBigDecimal total = itemInvoice.getPrecoUnit().multiply(\r\n\t\t\t\t\tnew BigDecimal(itemInvoice.getQuantidade()));\r\n\t\t\titemInvoice.setTotal(total);\r\n\t\t\tif (!editarItem) {\r\n\r\n\t\t\t\tif (itemInvoice.getPrecoUnit() == null) {\r\n\t\t\t\t\titemInvoice.setPrecoUnit(new BigDecimal(0.0));\r\n\t\t\t\t}\r\n\t\t\t\tif (itemInvoice.getQuantidade() == null) {\r\n\t\t\t\t\titemInvoice.setQuantidade(0);\r\n\t\t\t\t}\r\n\t\t\t\titemInvoice.setInvoice(invoice);\r\n\r\n\t\t\t\tinvoice.getItensInvoice().add(itemInvoice);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tinvoice.getItensInvoice().set(\r\n\t\t\t\t\t\tinvoice.getItensInvoice().indexOf(itemInvoice),\r\n\t\t\t\t\t\titemInvoice);\r\n\t\t\t}\r\n\t\t\tcarregarTotais();\r\n\t\t\tinicializarItemInvoice();\r\n\t\t\trequired = false;\r\n\t\t} else {\r\n\r\n\t\t\tMessages.adicionaMensagemDeInfo(TemplateMessageHelper.getMessage(\r\n\t\t\t\t\tMensagensSistema.INVOICE, \"lblQtdMaioSaldo\", fc\r\n\t\t\t\t\t\t\t.getViewRoot().getLocale()));\r\n\t\t}\r\n\t}", "public synchronized void addUser(String user, HttpSession session) {\n\t\tif (!userSessions.containsKey(user))\n\t\t\tuserSessions.put(user, session);\n\t}", "public void addItem(ToDoList item) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(TITLE, item.getTitle());\n values.put(DETAILS, item.getDetails());\n\n db.insert(TABLE_NAME, null, values); //Insert query to store the record in the database\n db.close();\n\n }", "public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }" ]
[ "0.7854425", "0.77764016", "0.73590565", "0.72629935", "0.704036", "0.6883372", "0.6855052", "0.68393326", "0.6808924", "0.67770034", "0.67754716", "0.66893417", "0.6672635", "0.66604114", "0.6618581", "0.659875", "0.6534188", "0.65316796", "0.650338", "0.6452781", "0.6451162", "0.6443739", "0.64334494", "0.64055854", "0.6402008", "0.63827854", "0.6379181", "0.6379181", "0.63573486", "0.6341409", "0.62748706", "0.6264795", "0.6221407", "0.6218855", "0.6208099", "0.620522", "0.6205073", "0.6201093", "0.6182194", "0.61801934", "0.61735743", "0.6159116", "0.6153706", "0.6139655", "0.6134236", "0.6130713", "0.61227524", "0.61196893", "0.61051923", "0.6060394", "0.60583776", "0.6057025", "0.6038846", "0.60321325", "0.6030463", "0.60204357", "0.60185885", "0.60125595", "0.6010067", "0.6004009", "0.59869564", "0.5986696", "0.59839994", "0.5965676", "0.5961761", "0.5955622", "0.59464306", "0.5941045", "0.59393334", "0.59118897", "0.5909047", "0.5908414", "0.5907273", "0.59050715", "0.5902503", "0.58867675", "0.58805907", "0.5878852", "0.5871615", "0.5868951", "0.5864054", "0.58530766", "0.58504516", "0.5845817", "0.58457524", "0.58406144", "0.5839866", "0.5834137", "0.5825921", "0.58239853", "0.58237326", "0.5819337", "0.58080894", "0.5805764", "0.5805764", "0.5805764", "0.58035946", "0.57996744", "0.5797082", "0.5793534" ]
0.72129256
4
delete an item for a specific hibernate session
void deleteItem(IDAOSession session, int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doDelete(Session session) {\n\n\t}", "public void remove(Session session);", "@Override\r\n\tpublic void delete(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().delete(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "void remove(InternalSession session);", "@Override\n\tpublic void delete(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.delete(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "@RequestMapping(value =\"{id}\", method =RequestMethod.DELETE)\r\n public void delete(@PathVariable Long id){\n sessionRepository.delete(id);\r\n }", "public void delete(int id){\n \n SqlSession session = sqlSessionFactory.openSession();\n \n try {\n session.delete(\"Subject.delete\", id);\n } finally {\n session.commit();\n session.close();\n }\n System.out.println(\"delete(\"+id+\")\");\n\n }", "@Override\r\n\tpublic void remove(Long id) {\n\t \tT t=findById(id);\r\n\t \tif(t!=null){\r\n\t \r\n\t \t\tSystem.out.println(\"============\"+getSession().isOpen());\r\n\t \t\tgetSession().delete(t);\t \t\t\r\n\t \t\tSystem.out.println(\"============delete end\");\r\n\t \t}\r\n\t \t\t\r\n\t}", "public void deleteItem(String itemName) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSession session = factory.openSession();\r\n\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"delete from Items where itemName = :itemName\");\r\n\t\t query.setParameter(\"itemName\", itemName);\r\n\t\t int id1= query.executeUpdate();\r\n\t\t if(id1==0)\r\n\t\t {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The Item Name isn't correct, you didn't delete anything\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t }\r\n\t\t session.getTransaction().commit();\r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t}\r\n\t\t } \r\n\t}", "@Override\n\tpublic void delete(Session sess, int id) {\n\t\tsess.delete(this.get(sess, id));\n\t}", "public int deleteSession(Session session) {\n\t\treturn (int)sqlSession.delete(\"sessionMapper.deleteSession\", session);\r\n\t}", "public void delete( T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\t\n\t\tsession.delete(obj);\n\t}", "public static int deleteBook(String itemCode) throws HibernateException{\r\n session=sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_deleteBook\").setString(\"itemCode\", itemCode);\r\n \r\n //Execute the query which delete the detail of the book from the database\r\n int res=query.executeUpdate();\r\n \r\n //check whether transaction is correctly done\r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return res;\r\n \r\n }", "@Override\n public void delete(Long id) {\n\n Session session = getSessionFactory().openSession();\n\n try{\n session.beginTransaction();\n Person p = findByID(id);\n session.delete(p);\n session.getTransaction().commit();\n LOGGER.log(Level.INFO, \"Successfully deleted \" + p.toString());\n }\n catch (Exception e){\n if (session.getTransaction() != null){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion failed\");\n }\n }\n finally {\n session.close();\n }\n }", "public void remove(Session session, boolean update);", "public void delete(login vo) {\n\t\ttry {\n\t\t\tSessionFactory sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\t Transaction transaction = session.beginTransaction();\n\t\t\t \n\t\t\t session.delete(vo);\n\t\t\t transaction.commit();\n\t\t\t session.close();\n\t\t} catch (HibernateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void delete(Long obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tSystem.out.println(\"根据id进行删除\");\n\t\tT object = (T) session.get(target, obj);\n\t\tsession.delete(object);\n\t}", "@Override\r\n \t\t\tpublic void deleteSession(long sessionId) throws SSessionNotFoundException {\n \t\t\t\t\r\n \t\t\t}", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "@Override\r\n\tpublic void delete(Integer id) {\r\n\r\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\ttry {\r\n\t\t\tAssesmentQuestion assesmentQuestion = (AssesmentQuestion) session.get(AssesmentQuestion.class, id);\r\n\t\t\tsession.delete(assesmentQuestion);\r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void delete(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().delete(entity);\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"删除\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}", "void remove(InternalSession session, boolean update);", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "public void deleteAway(Away a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void deleteaccItem(String acc_no, String library_id, String sub_library_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n //Object acqdocentry = null;\n\n try {\n tx = session.beginTransaction();\n \n Query query = session.createQuery(\"DELETE FROM AccessionRegister WHERE accessionNo = :accessionNo and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId\");\n\n query.setString(\"accessionNo\", acc_no);\n query.setString(\"libraryId\", library_id);\n query.setString(\"subLibraryId\", sub_library_id);\n query.executeUpdate();\n tx.commit();\n \n }catch (RuntimeException e) {\n\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "public void delete(ItemsPk pk) throws ItemsDaoException;", "void delete(int entityId);", "@Override\n\tpublic void deleteSession(String sessionId) {\n\t\t\n\t}", "public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}", "public void eliminar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //eliminamos el Dia\n session.delete(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n }\n finally {\n //cerramos siempre la sesion\n session.close();\n }\n }", "@Override\r\n\tpublic void deleteAd(int tid) {\n\t\tQuery query = (Query) session.createQuery(\"delete EP where pid=:id\");\r\n\t\tquery.setParameter(\"id\", tid);\r\n\t\tquery.executeUpdate();//删除\r\n\t\ttr.commit();//提交事务\r\n\t}", "@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}", "void deleteEntityById(Long id);", "@Modifying \n\t@Transactional\n\t@Query(value = \"DELETE FROM item_user WHERE item_id=?1\", nativeQuery = true)\n\tvoid deleteByIdItem(Long itemId);", "@Override\n\tpublic boolean delete(Item obj) {\n\t\ttry{\n\t\t\tString query=\"DELETE FROM items WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setInt(1, obj.getIndex());\n\t\t\tint nb_rows = state.executeUpdate();\n\t\t\tSystem.out.println(\"Deleted \"+nb_rows+\" lines\");\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.delete -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t}", "public void deleteAgenda(Agenda agenda){\n Session sessao = HibernateUtil.getSessionFactory().openSession();\n Transaction transactio = sessao.beginTransaction(); \n sessao.delete(agenda);\n transactio.commit();\n sessao.close();\n }", "public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }", "public void delete(Calificar c){\n Session session = sessionFactory.openSession();\n \n Transaction tx = null;\n \n try{\n tx = session.beginTransaction();\n \n session.delete(c);\n tx.commit();\n }\n catch(Exception e){\n if(tx != null){ tx.rollback(); }\n e.printStackTrace();\n }\n finally { session.close(); }\n }", "@RequestMapping(path = \"{id}\", method =RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.ACCEPTED)\n public void deleteSession(@PathVariable Long id){\n sessionRepository.deleteById(id);\n }", "@Override\r\n\tpublic void deleteUser(String userName) throws ToDoListDAOException{\r\n\t\tSession session = factory.openSession();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t session.beginTransaction();\r\n\t \t Query query = session.createQuery(\"delete from User where userName = :user\");\r\n\t \t query.setParameter(\"user\", userName);\r\n\t \t int id= query.executeUpdate();\r\n\t \t System.out.println(id);\r\n\r\n\t \t session.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tif(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "void delete( Integer id );", "@RequestMapping(value = \"{id}\", method = RequestMethod.DELETE)\n public void delete(@PathVariable Long id) {\n //Also need to check for children records before deleting.\n sessionRepository.deleteById(id);\n }", "@Override\n public void delete(Comment comment) {\n Session session = sessionFactory.getCurrentSession();\n session.delete(comment);\n }", "public void deleteGestionStock(Map criteria);", "public boolean delete(String className, String column, String value) {\n Session session = HibernateUtil.getInstance().getFactory().openSession();\r\n System.out.println(\"\" + className + \"\\n\" + column + \"\\n\" + value);\r\n Transaction transaction = session.beginTransaction();\r\n try {\r\n // your code\r\n// String hql = \"delete from Vote where uid= :uid AND pid= :pid\";\r\n String hql = \"delete \" + className + \" where \" + column + \" ='\" + value + \"'\";\r\n Query query = session.createQuery(hql);\r\n// System.out.println(user.getUid() + \" and pid: \" + pid);\r\n\r\n System.out.println(query.executeUpdate());\r\n // your code end\r\n\r\n transaction.commit();\r\n session.close();\r\n return true;\r\n } catch (Throwable t) {\r\n transaction.rollback();\r\n session.close();\r\n return false;\r\n\r\n }\r\n\r\n }", "public void deleteEliminarGestionStock(Map criteria);", "@Override\n\tpublic void delete(T t) {\n\t\thibernateTemplate.delete(t);\n\t}", "public void delete(E entity) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n session.delete(entity);\n\n trans.commit();\n }", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "void delete( Long id );", "void delete(Object entity);", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "public void delete(RutaPk pk) throws RutaDaoException;", "public void delete(SgfensBancoPk pk) throws SgfensBancoDaoException;", "@Override\n\tpublic void delete(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().delete(um);\n\t}", "public JavapurchaseModel deletepurchase(JavapurchaseModel oJavapurchaseModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing purchase from the database*/\n oJavapurchaseModel = (JavapurchaseModel) hibernateSession.get(JavapurchaseModel.class, oJavapurchaseModel.getpurchaseId());\n\n\n /* Delete the existing purchase from the database*/\n hibernateSession.delete(oJavapurchaseModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavapurchaseModel;\n }", "public void deleteDepartment(Department a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void delete(CbmCItemFininceItem entity);", "@Override\n\t public void deleteCountry(Country country){\n\t Session session = factory.openSession();\n\t Transaction tx = null;\n\t \n\t try {\n\t tx = session.beginTransaction();\n\t session.delete(country); \n\t tx.commit();\n\t } catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t } finally {\n\t session.close(); \n\t }\n\t }", "void delete(E entity);", "void delete(E entity);", "public void deleteSession(int uid);", "public void deleteDepartmentUser(DepartmentUser a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void deletePrivilege(Privilege p) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(p);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "void deleteById(Integer id);", "void deleteById(Integer id);", "@Override\r\n\tpublic void delete(int id) {\n\t\tthis.getHibernateTemplate().delete(this.get(id));\r\n\t}", "@Override\n\tpublic void delete(Session sess, Subject sub) {\n\t\tsess.delete(sub);\n\t}", "@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\tgetHibernateTemplate().delete(get(id));\n\t}", "@Override\n\t@Transactional\n\tpublic void delete(int theId) {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Student where id=:studentId\");\n\t\ttheQuery.setParameter(\"studentId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}", "public void delete1(int biblio_id, String library_id, String sub_library_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n \n\n try {\n tx = session.beginTransaction();\n \n Query query = session.createQuery(\"DELETE FROM DocumentDetails WHERE biblioId = :biblioId and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId\");\n\n query.setInteger(\"biblioId\", biblio_id);\n query.setString(\"libraryId\", library_id);\n query.setString(\"subLibraryId\", sub_library_id);\n query.executeUpdate();\n tx.commit();\n \n } catch (RuntimeException e) {\n\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "public void delById(Serializable id) ;", "void delete(Integer id);", "void delete(Integer id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "public void deleteTraining(Training a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "void delete(Entity entity);", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Override\n\tpublic void deleteById(int bid) {\n\t\tString hql=\"delete from basesalary where bid='\"+bid+\"'\";\n\t\tgetSession().createQuery(hql).executeUpdate();\n\t}", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);" ]
[ "0.7556648", "0.75001574", "0.73053026", "0.72714835", "0.688676", "0.6834048", "0.6833697", "0.6786299", "0.6782448", "0.6777444", "0.6769148", "0.6768628", "0.67105055", "0.6700852", "0.6690293", "0.66804606", "0.66585755", "0.65979916", "0.6590976", "0.6590192", "0.65751636", "0.65625113", "0.6539263", "0.6534465", "0.65165305", "0.651639", "0.6490903", "0.6479743", "0.64779335", "0.64642394", "0.6464049", "0.64620364", "0.6461771", "0.64429134", "0.6437639", "0.6430461", "0.6430022", "0.6404308", "0.640044", "0.63967884", "0.63964444", "0.639517", "0.6388224", "0.6383995", "0.63733447", "0.6364974", "0.63625354", "0.63570327", "0.63226146", "0.63067216", "0.63025045", "0.62954783", "0.6290415", "0.6289272", "0.6289194", "0.62890375", "0.6287094", "0.62748766", "0.6258956", "0.6253737", "0.6248424", "0.6248424", "0.6239111", "0.6236847", "0.62302685", "0.62238735", "0.62238735", "0.6223346", "0.6219756", "0.62183106", "0.6216484", "0.6211327", "0.6206169", "0.6202199", "0.6198753", "0.6198753", "0.6198746", "0.6198746", "0.6198746", "0.6198746", "0.619796", "0.6196462", "0.6195045", "0.6189708", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444", "0.61800444" ]
0.77260035
0
gets all items from the database, for a specific session
List<Item> getItems(IDAOSession session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Item> getAll() {\r\n List<Item> list = new ArrayList<Item>();\r\n //Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n //trans = session.beginTransaction();\r\n\r\n list = session.createQuery(\"from Item\").list();\r\n\r\n //trans.commit();\r\n } catch (HibernateException e) {\r\n //if (trans != null) { trans.rollback(); }\r\n e.printStackTrace();\r\n } finally {\r\n //session.flush();\r\n session.close();\r\n }\r\n return list;\r\n }", "List<T> fetch(Session session);", "List<Session> getAllSessions();", "public List showAll() {\n\t\tSession session = null;\n\t\tList temp = new ArrayList();\n\t\ttry {\n\n\t\t\tsession = MyUtility.getSession();// Static Method which makes only\n\t\t\t\t\t\t\t\t\t\t\t\t// one object as method is\n\t\t\t\t\t\t\t\t\t\t\t\t// static\n\n\t\t\tQuery q = session.createQuery(\"FROM AuctionVO \");\n\n\t\t\ttemp = q.list();\n\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t//session.close();\n\t\t}\n\t\treturn temp;\n\t}", "public ResultSet getItemList() throws IllegalStateException{\n\t \n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try{\n\t \t stmt = con.createStatement();\n String queryString = \"SELECT INUMBER , INAME , CATEG, auc_start, auc_end_date , startbid , currentbid,status \" \n \t\t+ \"FROM ITEM \"\n + \" WHERE SELLERNO = '\" + this.id +\"' \";\n\n result = stmt.executeQuery(queryString);\n \n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t }\n\t return result; \n\t }", "public ArrayList<Session> getSessionList(){\n \n ArrayList<Session> sessionList= new ArrayList<Session>(); \n Connection connection=getConnection();\n \n String studentGroup = combo_studentGroup.getSelectedItem().toString();\n\n String query= \"SELECT `SessionId`,`Tag`,`StudentGroup`,`Subject`,`NoOfStudents`,`SessionDuration` FROM `sessions` WHERE StudentGroup='\"+studentGroup+\"' \";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n Session session;\n while(rs.next()){\n session = new Session(rs.getInt(\"SessionId\"),rs.getString(\"Tag\"),rs.getString(\"StudentGroup\"),rs.getString(\"Subject\"),rs.getInt(\"NoOfStudents\"),rs.getInt(\"SessionDuration\"));\n sessionList.add(session);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }", "public Items[] findAll() throws ItemsDaoException;", "public static List getAllSessions() {\n\t\tsynchronized (FQN) {\n\t\t\tList<MemberSession> msList = new ArrayList<MemberSession>();\n//\t\t\tObject object = cache.getValues(FQN);\n\t\t\tObject object = null;\n\t\t\tif (object != null) {\n\t\t\t\tmsList = (List<MemberSession>) object;\n\t\t\t\treturn new ArrayList(msList);\n\t\t\t} else {\n\t\t\t\tCollection list = new ArrayList();\n\t\t\t\tobject = cache.getValues(FQN);\n\t\t\t\tif(object != null){\n\t\t\t\t\tlist = (Collection) object;\n\t\t\t\t}\n\t\t\t\tmsList = new ArrayList(list);\n//\t\t\t\tfor (MemberSession ms : msList) {\n//\t\t\t\t\tcache.add(FQN, ms.getSessionId(), ms);\n//\t\t\t\t}\n\t\t\t\treturn msList;\n\t\t\t}\n\n\t\t}\n\t}", "private void read(Session session) {\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Aluno> AlunoList = session.createQuery(\"FROM Aluno\").getResultList();\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Reading Aluno records...\");\n\t\tSystem.out.printf(\"%-30.30s %-30.30s%n\", \"Model\", \"Price\");\n\t\tfor (Aluno al : AlunoList) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.printf(\"%-30.30s %-30.30s%n\", al.getNome(), al.getRa());\n\t\t}\n\t}", "public static List get_all(Session session){\n\t\tQuery query = session.createSQLQuery(\"select * from impu\")\n\t\t.addEntity(IMPU.class);\n\t\treturn query.list();\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<Item> getListOfTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item\").list();\n session.close();\n return list;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Items> getAllItems() throws ToDoListDAOException{\r\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\t\r\n\t\tList<Items> allDoList = new ArrayList<Items>();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tallDoList = session.createQuery(\"from Items\").list();\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn allDoList;\r\n\t}", "@Override\n public Iterator<Item> findAll(Context context) throws SQLException\n {\n return itemDAO.findAll(context, true);\n }", "List<StockList> fetchAll();", "public List<Book> findAll()\r\n\t{\r\n\t\tList<Book> booklist= null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSession();\r\n\t\t booklist=bookdao.findAll();\r\n\t\t\tbookdao.closeCurrentSession();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn booklist;\r\n\t}", "public abstract String getSessionList();", "public static ArrayList<Item> find()\n {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ArrayList<Item> items=new ArrayList<Item>();\n items=null;\n \n String query = \"select * from item\";\n try\n { \n ps = connection.prepareStatement(query);\n ResultSet rs = null;\n\t rs = ps.executeQuery();\n while(rs.next()){\n Item item = new Item();\n\t\titem.setAttribute(rs.getString(2));\n\t\titem.setItemname(rs.getString(3));\n\t\titem.setDescription(rs.getString(4));\n\t\titem.setPrice(rs.getDouble(5));\n items.add(item);\n }\n return items;\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n return null;\n }\n finally\n {\n DButil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n } \n }", "@Override\n\tpublic <T, S> List<T> getRecords(S session) {\n\t\treturn null;\n\t}", "@GetMapping\n public List<Session> list() {\n return sessionRepository.findAll();\n }", "public static ResultSet getAllItem() {\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"SELECT itemID, ownerID, Name, status, description,category,image1,image2,image3,image4 FROM iteminformation\");\n return rs;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@GET\n public List<Session> getAllSessions() {\n log.debug(\"REST request to get all Sessions\");\n List<Session> sessions = sessionRepository.findAll();\n return sessions;\n }", "public List<CourseSession> getAllCourseSession(){\r\n List<CourseSession> lstSession = new ArrayList<CourseSession>(); \r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n try{\r\n session.beginTransaction();\r\n List allSession = session.createQuery(\"from CourseSession\").list();\r\n for(Iterator i = allSession.iterator(); i.hasNext();){\r\n CourseSession cSession = (CourseSession) i.next(); \r\n \r\n Course c = new Course();\r\n c.setCode(cSession.getCourse().getCode());\r\n c.setTitle(cSession.getCourse().getTitle());\r\n \r\n Location l = new Location();\r\n l.setId(cSession.getLocation().getId());\r\n l.setCity(cSession.getLocation().getCity());\r\n \r\n CourseSession cs = new CourseSession();\r\n cs.setId(cSession.getId());\r\n cs.setStartDate(cSession.getStartDate());\r\n cs.setEndDate(cSession.getEndDate());\r\n cs.setCourse(c);\r\n cs.setLocation(l);\r\n \r\n lstSession.add(cs);\r\n }\r\n session.getTransaction().commit();\r\n }\r\n catch(HibernateException e){\r\n System.err.println(\"Initial SessionFactory creation failed.\");\r\n if(session.getTransaction() != null){\r\n try{\r\n session.getTransaction().rollback();\r\n }\r\n catch(HibernateException e2){\r\n e2.printStackTrace();\r\n }\r\n }\r\n }\r\n finally{\r\n if(session != null){\r\n try{\r\n session.close();\r\n }\r\n catch(HibernateException e3){\r\n e3.printStackTrace();\r\n }\r\n }\r\n } \r\n return lstSession;\r\n }", "public Map<Long, Session> list() throws DAOException {\n\t\tHashMap<Long, Session> result = new HashMap<Long, Session>();\n\t\tTypedQuery<Session> query = em.createQuery(SQL_SELECT, Session.class);\n\t\ttry {\n\t\t\tList<Session> sessions = query.getResultList();\n\t\t\tfor (Session session : sessions)\n\t\t\t\tresult.put(session.getId(), session);\n\t\t} catch (NoResultException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DAOException(e);\n\t\t}\n\n\t\treturn result;\n\t}", "public java.util.List findStudentBySession(java.lang.Integer session) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.session like :session \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"session\", session);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentBySession(java.lang.Integer session)\");\n }\n }", "public ResultSet getItemsOnAuction() throws IllegalStateException{\n\t \n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try{\n\t \t stmt = con.createStatement();\n String queryString = \"SELECT INUMBER , INAME , CATEG, auc_start, auc_end_date , startbid , currentbid \" \n \t\t+ \"FROM ITEM \"\n + \" WHERE status = 'ON AUCTION'\";\n\n result = stmt.executeQuery(queryString);\n \n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t }\n\t return result; \n\t }", "@GetMapping(\"/retrieve\")\n public ResponseEntity<List<Product>> getProdAll(final HttpSession session) {\n log.info(session.getId() + \" : Retrieving all products\");\n return ResponseEntity.status(HttpStatus.OK).body(prodService.getAll());\n }", "public static List<Item> getItems() {\n\n HttpRequest request = HttpRequest.newBuilder().GET().uri(URI.create(\"http://localhost:8080/item/all\")).setHeader(\"Cookie\", Authenticator.SESSION_COOKIE).build();\n HttpResponse<String> response = null;\n try {\n response = client.send(request, HttpResponse.BodyHandlers.ofString());\n } catch (Exception e) {\n e.printStackTrace();\n //return \"Communication with server failed\";\n }\n if (response.statusCode() != 200) {\n System.out.println(\"Status: \" + response.statusCode());\n }\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new JavaTimeModule());\n List<Item> items = null;\n // TODO handle exception\n try {\n items = mapper.readValue(response.body(), new TypeReference<List<Item>>(){});\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}", "@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}", "List<Joined> findBySession(Long Session);", "public static void items(){\n\t\ttry{\n\t\t\tConnection conn = DriverManager.getConnection(url,username,password);\n\t\t\tStatement query = conn.createStatement();\n\t\t\tResultSet re = query.executeQuery(\"select * from item\");\n\t\t\tString spc = \" \";\n\t\t\twhile (re.next()){\n\t\t\t\tSystem.out.println(re.getInt(\"itemid\")+spc+re.getString(\"title\")+spc+re.getDouble(\"price\"));\n\t\t\t}\n\t\t}catch(Exception ecx){\n\t\t\tecx.printStackTrace();\n\t\t}\n\t}", "public Session[] findSessions();", "public List getAllSessionList(){\n \tList l=null;\n try {\n Criteria crit=new Criteria();\n l=LecturePeer.doSelect(crit);\n } catch(Exception e) { ServerLog.log(\"Exception in Lecture select \"+e.getMessage());}\n \treturn l;\n }", "@Override\n\tpublic List<Object> getAll(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\n\t\tList<Object> list = new ArrayList<Object>();\n\t\tlist = session.createQuery(hql).list();\n\t\tts.commit();\n\t\tsession.close();\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Order> readAll() {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders\");) {\n\t\t\tList<Order> orderList = new ArrayList<>();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\torderList.add(modelFromResultSet(resultSet));\n\t\t\t}\n\t\t\treturn orderList;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn new ArrayList<>();\n\t}", "com.rpg.framework.database.Protocol.Item getItems(int index);", "List<ItemStockDO> selectAll();", "public Session getSession();", "protected Session getSession() { return session; }", "public static ArrayList<OrderItems> findAll() {\r\n\t\tOrderItems toReturn = null;\r\n ArrayList<OrderItems> list = new ArrayList<OrderItems>();\r\n\t\tConnection dbConnection = ConnectionFactory.getConnection();\r\n\t\tPreparedStatement findStatement = null;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tfindStatement = dbConnection.prepareStatement(findAllStatementString);\r\n\t\t\trs = findStatement.executeQuery();\r\n\t\t\twhile(rs.next()) {\r\n int orderId = rs.getInt(\"id\");\r\n\t\t\tString name = rs.getString(\"nume\");\r\n\t\t\tString den = rs.getString(\"denumire\");\r\n\t\t\tint cant = rs.getInt(\"cantitate\");\r\n\t\t\ttoReturn = new OrderItems(orderId, name, den, cant);\r\n\t\t\tlist.add(toReturn);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"OrderItemsDAO:findAll \" + e.getMessage());\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.close(rs);\r\n\t\t\tConnectionFactory.close(findStatement);\r\n\t\t\tConnectionFactory.close(dbConnection);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public static List<Item> loadItems(Statement st) {\n\t\tList<Item> items = new ArrayList<>();\n\t\tString sentSQL = \"\";\n\t\ttry {\n\t\t\tsentSQL = \"select * from items\";\n\t\t\tResultSet rs = st.executeQuery(sentSQL);\n\t\t\t// Iteramos sobre la tabla result set\n\t\t\t// El metodo next() pasa a la siguiente fila, y devuelve true si hay más filas\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tfloat timePerUnit = rs.getFloat(\"timeperunit\");\n\t\t\t\tItem item = new Item(id, name, timePerUnit);\n\t\t\t\titems.add(item);\n\t\t\t\tlog(Level.INFO,\"Fila leida: \" + item, null);\n\t\t\t}\n\t\t\tlog(Level.INFO, \"BD consultada: \" + sentSQL, null);\n\t\t} catch (SQLException e) {\n\t\t\tlog(Level.SEVERE, \"Error en BD\\t\" + sentSQL, e);\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn items;\n\t}", "@GetMapping\n public List<Recipe> get(HttpSession httpSession){\n List<Recipe> recipes = new ArrayList<>();\n String username = (String) httpSession.getAttribute(\"username\");\n\n //recipeRepository.findByAcess(\"PUBLIC\").iterator().forEachRemaining(x -> recipes.add(x));\n\n if(username != null){\n recipeRepository.findByEmail(username).iterator().forEachRemaining(x -> recipes.add(x));\n }\n System.out.println(recipes);\n return recipes;\n }", "public OrderList findOrders(){\n sql=\"SELECT * FROM Order\";\n Order order;\n try{\n ResultSet resultSet = db.SelectDB(sql);\n \n while(resultSet.next()){\n order = new Order();\n order.setOrderID(resultSet.getString(\"OrderID\"));\n order.setCustomerID(resultSet.getString(\"CustomerID\"));\n order.setStatus(resultSet.getString(\"Status\"));\n ordersList.addItem(order);\n }\n }\n catch(SQLException e){\n System.out.println(\"Crash finding all orders\" + e);\n }\n return ordersList;\n }", "public List<Playlist> findAll() {\n String sql = \"SELECT * FROM Playlists\";\n List<Playlist> list = new ArrayList();\n Connection connection = DatabaseConnection.getDatabaseConnection();\n\n try {\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n list.add(processRow(resultSet));\n }\n } catch (SQLException ex) {\n System.out.println(\"PlaylistDAO - findAll Exception: \" + ex);\n }\n\n DatabaseConnection.closeConnection(connection);\n return list;\n }", "@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "DatabaseSession openSession();", "Session getSession();", "Session getSession();", "public static List<Item> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByData(String... values) {\n return fetch(Session.SESSION.DATA, values);\n }", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "@Override\n\tpublic List<Item> findItemList() {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\tCriteriaQuery<Item> query = cb.createQuery(Item.class); \n // Root<Item> item = query.from(Item.class);\n List<Item> itemList= entityManager.createQuery(query).getResultList();\n\t\treturn itemList;\n\t}", "public ResultSet getItemListForSold() throws IllegalStateException{\n\t \n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try{\n\t \t stmt = con.createStatement();\n String queryString = \"SELECT INUMBER , INAME , auc_start, auc_end_date , startbid , currentbid , CURRENTBID-STARTBID \" \n \t\t+ \"FROM ITEM \"\n + \" WHERE SELLERNO = '\" + this.id +\"' AND STATUS = 'SOLD' \"\n \t+\"GROUP BY SELLERNO, INUMBER, INAME, auc_start, auc_end_date,\"+ \n \t\t\" startbid, currentbid, CURRENTBID-STARTBID\";\n\n result = stmt.executeQuery(queryString);\n \n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t }\n\t return result; \n\t }", "@Override\r\n\tpublic List<Shop> findAllShop() {\n\t\tSystem.out.println(\"-------ShopDaoImp.findAll-----------\");\r\n\t\tString hql = \"from Shop\";\r\n\t\tQuery mQuery = getSession().createQuery(hql);\r\n\t\treturn mQuery.list();\r\n\t}", "public ArrayList<Reponce> getAllReponces() {\n\t\tArrayList<Reponce> listReponces = new ArrayList<Reponce>();\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t// start a transaction\n\t\t//Transaction transaction = session.beginTransaction();\n\t\tQuery en = session.createQuery(\"FROM Reponce\", Reponce.class);\n\t\tlistReponces = (ArrayList<Reponce>) en.getResultList();\n\t\treturn listReponces;\n\t}", "public List<Stockitem> getItem() {\n\t\treturn (ArrayList<Stockitem>) stockitemDAO.findAllStockitem();\n\t}", "@Override\n\tpublic List<Estadoitem> listar() {\n\t\treturn estaitemdao.listar();\n\t}", "public static void loadSessions() {\n try (Connection con = getConnection()) {\n String query = \"SELECT `usermask`,`username` FROM \" + mysql_db + \".`sessions`\";\n try (PreparedStatement pst = con.prepareStatement(query)) {\n ResultSet r = pst.executeQuery();\n while (r.next()) {\n Bot.addUserSession(r.getString(\"usermask\"), r.getString(\"username\"));\n }\n pst.close();\n con.close();\n }\n con.close();\n } catch (SQLException e) {\n Logger.logMessage(LOGLEVEL_IMPORTANT, \"SQL Error in 'loadSessions()': \" + e.getMessage());\n }\n }", "@Override\r\n\tpublic List<Order> readAll() {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT o.customer_id, oi.order_id, \"\r\n\t\t\t\t\t\t+ \"GROUP_CONCAT(i.item_id, ',', i.name, ',', i.value, ',', oi.quantity SEPARATOR ';') items \"\r\n\t\t\t\t\t\t+ \"FROM orders o \"\r\n\t\t\t\t\t\t+ \"INNER JOIN orders_items oi \"\r\n\t\t\t\t\t\t+ \"ON o.order_id = oi.order_id \"\r\n\t\t\t\t\t\t+ \"INNER JOIN items i \"\r\n\t\t\t\t\t\t+ \"ON oi.item_id = i.item_id \"\r\n\t\t\t\t\t\t+ \"GROUP BY oi.order_id\");) {\r\n\t\t\tList<Order> orders = new ArrayList<>();\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\torders.add(modelFromResultSet(resultSet));\r\n\t\t\t}\r\n\t\t\treturn orders;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn new ArrayList<>();\r\n\t}", "@Override\n public List getAllSharingProduct() {\n \n List sharingProducts = new ArrayList();\n SharingProduct sharingProduct = null;\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet result = null;\n try {\n connection = MySQLDAOFactory.createConnection();\n preparedStatement = connection.prepareStatement(Read_All_Query);\n preparedStatement.execute();\n result = preparedStatement.getResultSet();\n \n while (result.next()) {\n sharingProduct = new SharingProduct(result.getString(1), result.getInt(2) );\n sharingProducts.add(sharingProduct);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n result.close();\n } catch (Exception rse) {\n rse.printStackTrace();\n }\n try {\n preparedStatement.close();\n } catch (Exception sse) {\n sse.printStackTrace();\n }\n try {\n connection.close();\n } catch (Exception cse) {\n cse.printStackTrace();\n }\n }\n \n return sharingProducts;\n }", "public static ArrayList<Song> getAll() {\n ArrayList<Song> songs = new ArrayList<>();\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\"jdbc:mysql://\" + host + \"/\" + db + \"?\" + \"user=\" + user + \"&password=\" + psw );\n\n songStatement = conn.createStatement();\n songResultSet = songStatement.executeQuery(\"SELECT * FROM spotify.track WHERE annotated = 0 LIMIT 0, 25\");\n\n songs = createSongs(songResultSet);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close();\n }\n\n return songs;\n }", "@Override\n\tpublic List<Object[]> getObjectData(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(hql);\n\t\tList<Object[]> lists = query.list();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\treturn lists;\n\t}", "public void getWorkouts()\n {\n db.open();\n Cursor cursor =db.getAllWorkouts(); //get the data form the database\n if(cursor.isAfterLast()) //check for empty table then just return\n {\n return;\n }\n cursor.moveToFirst(); //move to first position\n WorkoutSession obSession = new WorkoutSession(cursor.getLong(0), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4), cursor.getString(5)); //create workout session from first row in db\n sessionList.add(obSession); //add to sessionList\n while(cursor.moveToNext()) //move to next row each loop\n {\n obSession = new WorkoutSession(cursor.getLong(0), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4), cursor.getString(5)); //create anew WorkoutSession from the new row in the table\n sessionList.add(obSession); //add to sessionList\n }\n }", "public Session getSession() { return session; }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Items> getAllItemsPerUser(String userName) throws ToDoListDAOException{\r\n\tSession session = factory.openSession();\r\n\t\t\r\n\t\tList<Items> allDoList = new ArrayList<Items>();\r\n\t\tList<Items> userItemList = new ArrayList<Items>();\r\n\t\t\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tallDoList = session.createQuery(\"from Items\").list();\r\n\t\t\tfor (Items item : allDoList) {\r\n\t\t\t\tif(item.getUserName().equals(userName))\r\n\t\t\t\t\tuserItemList.add(item);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn userItemList;\r\n\t}", "@Transactional\r\n\tpublic List<Menu> getMenu() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\t// create a query\r\n\t\tQuery<Menu> theQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> m = theQuery.getResultList();\r\n\t\t// return the results\r\n\t\treturn m;\r\n\r\n\t}", "ArrayList<Bet> selectAllBetsOfAccount(String login) throws DAOException;", "public List<OrderItem> findAllOrderItem(){\n List<OrderItem> orderItems=findAll();\n return orderItems;\n }", "public List<Item> getAll()\r\n {\r\n\r\n CriteriaQuery<Item> criteria = this.entityManager\r\n .getCriteriaBuilder().createQuery(Item.class);\r\n return this.entityManager.createQuery(\r\n criteria.select(criteria.from(Item.class))).getResultList();\r\n }", "public List<NewsItem> getNewsItemDataFromDB() throws SQLException;", "public synchronized Session[] getVisibleSessions(Session session) {\n return session.isAdmin() ? getAllSessions()\n : new Session[]{ session };\n }", "@Override\n public List<Seq> getAll() {\n Connection conn = null;\n Statement stmt = null;\n List<Seq> listSeqs = new ArrayList<>();\n\n try {\n String url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n conn = DriverManager.getConnection(url);\n stmt = conn.createStatement();\n ProcessesDAO pdao = new ProcessesDAO();\n String sql = \"select * from seq;\";\n ResultSet rs = stmt.executeQuery(sql);\n\n while (rs.next()) {\n\n Seq seq = new Seq(rs.getInt(\"id\"), pdao.getbyidentifier(rs.getString(\"identifier\")), rs.getInt(\"seq_number\"));\n listSeqs.add(seq);\n }\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n try {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n return listSeqs;\n }", "@Override\r\n\tpublic List<Food> queryFoods() {\n\t\tString sql=\"select * from food\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class);\r\n\t\treturn list;\r\n\t}", "Session getCurrentSession();", "Session getCurrentSession();", "public List<CartItem> getAllcartitem();", "public ResultSet getItemInfo(int ino) throws IllegalStateException{\n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try {\n\t\t con = openDBConnection();\n\t String queryString = \"SELECT * \" \n \t\t+ \"FROM ITEM \"\n\t\t\t + \" where INUMBER = '\"+ino+\"'\";\n\t stmt = con.createStatement();\n\t result = stmt.executeQuery(queryString);\n\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t }\n\t return result;\n}", "public void recuperoListeUtenteloggato(HttpServletRequest request, HttpServletResponse response){\n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n HttpSession session = request.getSession();\n \n ShoppingListDAO shoppingListDAO = new MySQLShoppingListDAOImpl();\n SharingDAO sharingDAO = new MySQLSharingDAOImpl();\n ShoppingListCategoryDAO shoppingListCategoryDAO = new MySQLShoppingListCategoryDAOImpl();\n \n //elimino shopping list anonime scadute\n shoppingListDAO.deleteExpiredShoppingLists();\n \n if(session.getAttribute(\"emailSession\") != null){\n \n // START: recupero delle liste che appartengono all'utente loggato\n \n List lists = shoppingListDAO.getShoppingListsByOwner((String)session.getAttribute(\"emailSession\"));\n String[][] searchListResult = new String[lists.size()][4];\n\n for(int i=0; i<lists.size(); i++){\n searchListResult[i][0] = ((ShoppingList)(lists.get(i))).getName();\n searchListResult[i][1] = Integer.toString(((ShoppingList)(lists.get(i))).getLID());\n searchListResult[i][2] = ((ShoppingListCategory)(shoppingListCategoryDAO.getShoppingListCategory(((ShoppingList)(lists.get(i))).getLCID()))).getName();\n List listaCondivisa = sharingDAO.getAllEmailsbyList(Integer.parseInt(searchListResult[i][1]));\n if (listaCondivisa.isEmpty()){\n searchListResult[i][3] = Integer.toString(0);\n } else {\n searchListResult[i][3] = Integer.toString(1);\n }\n }\n\n session.setAttribute(\"ListUserSession\", searchListResult);\n session.setAttribute(\"ListUserSessionSize\", lists.size());\n\n // END: recupero delle liste che appartengono all'utente loggato\n \n // START: recupero delle liste condivise dell'utente loggato\n \n List sharingLists = sharingDAO.getAllListByEmail((String)session.getAttribute(\"emailSession\"));\n ShoppingList tmp = null;\n String[][] sharingListResult = new String[sharingLists.size()][3];\n\n for(int i=0; i<sharingLists.size(); i++){\n\n tmp = shoppingListDAO.getShoppingList(((Sharing)(sharingLists.get(i))).getLID());\n\n sharingListResult[i][0] = tmp.getName();\n sharingListResult[i][1] = Integer.toString(tmp.getLID());\n sharingListResult[i][2] = (shoppingListCategoryDAO.getShoppingListCategory(tmp.getLCID())).getName();\n } \n\n session.setAttribute(\"SharingListUserSession\", sharingListResult);\n session.setAttribute(\"SharingListUserSessionSize\", sharingLists.size());\n \n // END: recupero delle liste condivise dell'utente loggato \n \n } else {\n \n int cookieID;\n \n if(session.getAttribute(\"cookieIDSession\") == null){\n\n MyCookieDAO riverCookieDAO = mySqlFactory.getMyCookieDAO();\n MyCookieDAO myCookieDAO = new MySQLMyCookieDAOImpl();\n\n //cancello eventuali cookie scaduti\n List<MyCookie> cookieScaduti = myCookieDAO.deleteDBExpiredCookies();\n for(int i=0; i<cookieScaduti.size(); i++){\n myCookieDAO.deleteCookieByCookieID(cookieScaduti.get(i).getCookieID());\n }\n\n //Creo cookie\n Cookie cookie = new Cookie(\"FridayAnonymous\", Integer.toString(LastEntryTable(\"cookieID\", \"cookies\")));\n cookie.setMaxAge(-1);\n cookieID = Integer.parseInt((String)cookie.getValue());\n\n Long Deadline = new Timestamp(System.currentTimeMillis()).getTime()+1800*1000;\n\n myCookieDAO.createCookie(new MyCookie(LastEntryTable(\"cookieID\", \"cookies\"), 0, null, Deadline));\n session.setAttribute(\"cookieIDSession\", Integer.parseInt(cookie.getValue()));\n response.addCookie(cookie);\n \n } else {\n cookieID = (int)session.getAttribute(\"cookieIDSession\");\n }\n \n ShoppingList shoppingList = shoppingListDAO.getAnonymusShoppingList(cookieID);\n String[][] ListResult = null;\n\n if(shoppingList != null){\n\n ListResult = new String[1][3];\n ListResult[0][0] = shoppingList.getName();\n ListResult[0][1] = Integer.toString(shoppingList.getLID());\n ListResult[0][2] = (shoppingListCategoryDAO.getShoppingListCategory(shoppingList.getLCID())).getName();\n session.setAttribute(\"ListUserSessionSize\", 1);\n\n } else {\n ListResult = new String[0][3];\n session.setAttribute(\"ListUserSessionSize\", 0);\n }\n \n session.setAttribute(\"ListUserSession\", ListResult);\n \n }\n \n \n }", "public List<String> getSessionList(){\r\n \t\r\n \tList<String> sessionIds = new ArrayList<String>();\r\n \tfor (Entry<String, AccessDetailVO> curPage : pageAccess.entrySet()) {\r\n \t\tAccessDetailVO currLock = curPage.getValue();\r\n \t\tif(!sessionIds.contains(currLock.getSessionId())){\r\n \t\t\tsessionIds.add(currLock.getSessionId());\r\n \t\t}\t\r\n \t}\r\n \t\r\n \treturn sessionIds;\r\n }", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchById(String... values) {\n return fetch(Session.SESSION.ID, values);\n }", "public Session getSession() {\n return session;\n }", "List fetchAll() throws AdaptorException ;", "public Session getSession(){\n\t\treturn sessionFactory.openSession();\n\t}", "@Override\n public List list() throws TransactionException {\n return hibernateQuery.list();\n }", "public List<Items> list() {\n\t\treturn itemDao.list();\r\n\t}", "public interface SessionDao {\n\n /**\n * Returns list of sessions\n *\n * @return List<Session>\n */\n List<Session> getAllSessions();\n\n /**\n * Returns session by its id\n *\n * @param id Session\n * @return Session\n */\n Session get(int id);\n}", "public static ArrayList<Session> getSessions() {\r\n\t\treturn sessions;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }", "public /*static*/ Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "public ArrayList<UserSessionInfo> getAllSessionInfo() throws SessionManagementException {\n ArrayList<UserSessionInfo> userSessionInfoList = null;\n try {\n userSessionInfoList = SessionContextCache.getInstance(0).getSessionDetails();\n } catch (Exception e) {\n String errorMsg = \"Error is occurred while getting session details \";\n log.error(errorMsg, e);\n throw new SessionManagementException(errorMsg, e);\n }\n return userSessionInfoList;\n }", "public abstract I_SessionInfo[] getSessions();", "public List<Shop> getListShop(){\r\n\t\tSession session = getSessionFactory().openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tString sql = \"select s from \" + Shop.class.getName() + \" s\";\r\n\t\tList<Shop> listShop = (List<Shop>)session.createQuery(sql).list(); \r\n\t\tif(null != listShop && shopCache.size() == 0){\r\n\t\t\tfor(Shop shop : listShop){\r\n\t\t\t\tif(!shopCache.containsKey(shop.getId())){\r\n\t\t\t\t\tShopView shopView = parseShopView(shop);\r\n\t\t\t\t\tshopCache.put(shop.getId(), shopView);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ttx.commit();\r\n\t\tsession.close();\r\n\t\treturn listShop;\r\n\t}", "protected Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByName(String... values) {\n return fetch(Session.SESSION.NAME, values);\n }", "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}", "public static ArrayList<Meal> findAll() throws ServletException {\n try{\n //Connect to Database\n Connection con = DatabaseAccess.getConnection();\n //Get all data from exercise Table \n PreparedStatement ps = con.prepareStatement(\n \"SELECT * FROM meal\");\n \n ResultSet result = ps.executeQuery();//Run statement\n ArrayList<Meal> mealList = new ArrayList<>(); \n //If we find Meal set create a new Meal using returned values\n while(result.next()){\n Meal meal = new Meal(result.getInt(\"id\"),\n result.getString(\"name\"),\n result.getInt(\"calperUnit\"));\n mealList.add(meal);\n }\n \n con.close(); //Close Connection\n return mealList;\n }catch (SQLException ex) {\n throw new ServletException(\"Find Problem: Searching for Meal \", ex);\n }\n }", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByLifetime(Integer... values) {\n return fetch(Session.SESSION.LIFETIME, values);\n }" ]
[ "0.71704763", "0.7088821", "0.6894705", "0.6756345", "0.6675839", "0.65349865", "0.6409996", "0.63759834", "0.63649607", "0.6361792", "0.6360889", "0.63222486", "0.63098705", "0.62834513", "0.6263585", "0.6246348", "0.62423414", "0.62252396", "0.6202327", "0.6201736", "0.6185907", "0.61770654", "0.61764884", "0.6168246", "0.6120965", "0.6098786", "0.60968935", "0.6096066", "0.6065451", "0.60595286", "0.6056267", "0.604193", "0.6029648", "0.6011123", "0.5974585", "0.59690267", "0.59651047", "0.5963296", "0.59591466", "0.59577703", "0.5955404", "0.59515303", "0.5948008", "0.59427136", "0.5936171", "0.59275156", "0.59245807", "0.5923106", "0.5923106", "0.5898366", "0.58895314", "0.58881253", "0.58741313", "0.5872278", "0.58649486", "0.58614236", "0.58611935", "0.5856046", "0.5855169", "0.58479863", "0.5829216", "0.58238864", "0.58223563", "0.58087134", "0.58065885", "0.58047396", "0.58011365", "0.57988685", "0.57947457", "0.57933533", "0.5791711", "0.5782983", "0.57781136", "0.5768074", "0.576718", "0.57659674", "0.57659674", "0.57628834", "0.57623106", "0.5758772", "0.5753969", "0.575329", "0.57475287", "0.57475144", "0.5741821", "0.57396996", "0.57396907", "0.57366854", "0.57341045", "0.5729678", "0.572562", "0.572524", "0.57165915", "0.57133305", "0.5712963", "0.5712737", "0.570838", "0.570248", "0.5701168", "0.5695861" ]
0.7372672
0
updates/edit a given item, for a specific session
void updateItem(IDAOSession session, Item item);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"++++------++++Update 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, (name, price or quantity)-whichever field is to be updated\n\t\t\tSystem.out.print(\"Enter Item Id to update: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\tSystem.out.println(\"----Enter Item attribute to be updated----\");\n\t\t\tSystem.out.println(\"Any of the attributes either: price or quantity or desc::\");\n\t\t\tString itemAttribute = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item attribute Value: \");\n\t\t\tString attributeValue = scanner.next();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.updateItems(session,itemId,itemAttribute,attributeValue);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void update(Item item) {\r\n Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n trans = session.beginTransaction();\r\n\r\n session.update(item);\r\n\r\n trans.commit();\r\n } catch (HibernateException e) {\r\n if (trans != null) {\r\n trans.rollback();\r\n }\r\n e.printStackTrace();\r\n } finally {\r\n session.close();\r\n }\r\n }", "@Override\n\tprotected void doUpdate(Session session) {\n\n\t}", "@Override\r\n\tpublic void updateItem(Items updateItem, String itemNameToUpdate) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"from Items where userName = :user AND ItemName = :item\");\r\n\t\t query.setParameter(\"user\", updateItem.getUserName());\r\n\t\t Items ifItemExist =(Items) query.setParameter(\"item\", itemNameToUpdate).uniqueResult();\r\n\t\t \r\n\t\t long id=0;\r\n\t\t if(ifItemExist != null){\r\n\t\t \tid = ifItemExist.getId();\r\n\t\t }\r\n\t\t System.out.println(id + \" \" + ifItemExist );\r\n\t\t Query query2 = session.createQuery(\"UPDATE Items SET status = :stat , itemName = :item , userName= :user , priority= :prio , dueDate= :date , note= :note\" +\r\n\t\t \" where id = :d\");\r\n\t\t query2.setParameter(\"stat\", updateItem.getStatus());\r\n\t\t query2.setParameter(\"item\", updateItem.getItemName());\r\n\t\t query2.setParameter(\"user\", updateItem.getUserName());\r\n\t\t query2.setParameter(\"prio\", updateItem.getPriority());\r\n\t\t query2.setParameter(\"date\", updateItem.getDueDate());\r\n\t\t query2.setParameter(\"note\", updateItem.getNote());\r\n\t\t query2.setParameter(\"d\", id);\r\n\t\t query2.executeUpdate();\r\n\t\t session.getTransaction().commit();\r\n\t\t \r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t}\r\n\t\t } \r\n\r\n\t}", "protected void update(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.update(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute update\");\n\t\t}\n\t}", "Item update(Item item);", "protected abstract void editItem();", "public String[] updateItem(Session session) throws RemoteException {\n\t\tSystem.out.println(\"Server model invokes updateItem() method\");\n\t\treturn null;\n\t}", "public boolean updateItem(Object pItem, boolean pCloseSession) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tsession.update(pItem);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null){\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\tpublic void update(T t) {\n\t\tgetSession().update(t);\r\n\t}", "public void update(ItemsPk pk, Items dto) throws ItemsDaoException;", "public void updateItem(Item item) {\n if (LoginActivity.USERLOGIN.getInventory().contains(item)) {\n Thread updateUserThread = userController.new UpdateUserThread(LoginActivity.USERLOGIN);\n updateUserThread.start();\n synchronized (updateUserThread) {\n try {\n updateUserThread.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n Thread getUserLoginThread = userController.new GetUserLoginThread(LoginActivity.USERLOGIN.getUsername());\n getUserLoginThread.start();\n synchronized (getUserLoginThread) {\n try {\n getUserLoginThread.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n } else {\n addItem(item);\n }\n }", "@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size you wish to update\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Change price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Change amount in stock\");\n\t\tlong stock = util.getLong();\n\t\tLOGGER.info(\"\\n\");\n\t\treturn itemDAO.update(new Item(name,size,price,stock));\n\t\t\n\t\t\n\t\t\n\t}", "public static void editItem(int id,int quantity){\n\t\tif(!userCart.containsKey(id)){\n\t\t\tSystem.out.println(CartMessage.ITEM_NOT_IN_CART);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(CartMessage.ITEM_EDITED);\n\t\t\tuserCart.get(id).setQuantity(quantity);\n\t\t}\n\t}", "public void update(AuctionVO auctionVO) {\n\t\tSession session = null;\n\t\t\n\t\t try{\n\t\t \n\t\t\t session = MyUtility.getSession();// Static Method which makes only one object as method is static\n\t\t\n\t\t\t Transaction tr = session.beginTransaction();\n\t\t \n\t\t\t session.update(auctionVO);\n\t\t \n\t\t\t tr.commit();\n\t\t \n\t\t }catch(Exception e)\n\t\t { \t\t\t\t\n\t\t\tSystem.out.println(e.getMessage());\n\t\t }\n\t\t finally\n\t\t {\n\t\t session.close();\n\t\t }\n\t\n\t}", "@GetMapping(\"/update_to_cart\")\n\t@ResponseBody\n\tpublic String updateQuantity(@RequestParam(name = \"productId\") int id, @RequestParam(name = \"qty\", required = false) Integer qty, HttpSession session) {\n\t\tObject obj = session.getAttribute(Constant.CART_INFOR);\n\t\tMap<Integer, OrderItem> map;\n\t\tif(obj!=null) {\n\t\t\tmap = (Map<Integer, OrderItem>) obj;\n\t\t\tOrderItem orderItem = map.get(id);\n\t\t\torderItem.setQuantity(qty);\n\t\t\tsession.setAttribute(Constant.CART_INFOR, map);\n\t\t}\n\t\treturn \"\";\n\t}", "public void setEditedItem(Object item) {editedItem = item;}", "@RequestMapping(value = \"{id}\", method = RequestMethod.PUT)\n public Session update(@PathVariable Long id, @RequestBody Session session) {\n //TODO: Add validation that all attributes are passed in, otherwise return a 400 bad payload\n Session existingSession = sessionRepository.getOne(id);\n // The third field in the below function allows us to ignore\n // a passed in attribute that we don't want overwritten.\n // In this case, session_id because it's our primary key and it'll\n // copy over null if we don't ignore it.\n BeanUtils.copyProperties(session, existingSession, \"session_id\");\n return sessionRepository.saveAndFlush(existingSession);\n }", "private void updateSessionDetailsInDB(GlusterGeoRepSession session) {\n for (GlusterGeoRepSessionDetails sessDetails : session.getSessionDetails()) {\n sessDetails.setSessionId(session.getId());\n }\n getGeoRepDao().saveOrUpdateDetailsInBatch(session.getSessionDetails());\n }", "int updateByPrimaryKey(ItemStockDO record);", "int updateByPrimaryKey(ItemStockDO record);", "@Override\n public void update(long id) {\n try (Session session = createSessionFactory().openSession()) {\n\n Transaction transaction = session.getTransaction();\n transaction.begin();\n\n File findItem = (File) findById(id);\n findItem.setName(\"new_novel\");\n findItem.setSize(10);\n //action\n session.update(findItem);\n //close session/tr\n transaction.commit();\n throw new IOException();\n } catch (HibernateException e) {\n System.out.println(\"Nothing update!\" + e.getMessage());\n }\n catch (IOException e){\n System.out.println(\"Something wrong in File update method\");\n e.printStackTrace();\n }\n\n }", "@Override\n public Item updateItem(Item item) throws VendingMachinePersistenceException {\n loadItemFile();\n Item updatedItem = itemMap.put(item.getItemID(), item);\n writeItemFile();\n return itemMap.get(updatedItem.getItemID());\n }", "public void editItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tString queryString = \"Update team1.GABES_ITEM Set ITEM_CATEGORY=?, DESCRIPTION=?, ITEM_NAME=?\";\n\t\tqueryString += \"Where ITEM_ID='\" + this.item_id + \"'\";\n\t\t/** Clears parameters and then sets new values */\n\t\tPreparedStatement p_stmt = con.prepareCall(queryString);\n\t\t/** Set new attribute values */\n\t\tp_stmt.clearParameters();\n\t\tp_stmt.setString(1, this.item_category);\n\t\tp_stmt.setString(2, this.description);\n\t\tp_stmt.setString(3, this.item_name);\n\t\t/* Executes the Prepared Statement query */\n\t\tp_stmt.executeQuery();\n\t\tp_stmt.close();\n\t}", "@Override\n public void updateItem(P_CK t) {\n \n }", "@Override\r\n\tpublic void update(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().update(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "private void updateItemScreen(long rowId) {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tintent.putExtra(INTENT_ID_KEY, rowId);\n \tstartActivity(intent);\n }", "@Override\n\tpublic boolean update(Item obj) {\n\t\ttry{\n\t\t\tString query=\"UPDATE items SET title = ?, start_date = ?, end_date = ?, type = ? WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setString(1, obj.getTitle());\n\t\t\tstate.setDate(2, obj.getStartDate());\n\t\t\tstate.setDate(3, obj.getEndDate());\n\t\t\tstate.setInt(4, obj.getItemType().getIndex());\n\t\t\tstate.setInt(5, obj.getIndex());\n\t\t\t\n\t\t\t// Run the query\n\t\t\tstate.executeUpdate();\n\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.update -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public abstract int update(T item) throws RepositoryException;", "public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}", "private void updateItemInStoreList(Item item, String operation) {\n if (item != null) {\n String storeId = item.getItemStoreId();\n if (!TextUtils.isEmpty(storeId)) {\n int storeObjIndex = getIndexIfStoreObjWithIdAlreadyExists(storeId, storeList);\n if (storeObjIndex != -1) {\n Store storeObj = storeList.get(storeObjIndex);\n List<Item> itemList = storeObj.getItems();\n int itemObjIndex = getIndexIfItemObjAlreadyExists(item.getItemId(), itemList);\n if (itemObjIndex != -1) {\n if (operation.equals(EDIT_ITEM_OP))\n itemList.set(itemObjIndex, item);\n else {\n // Delete item\n itemList.remove(itemObjIndex);\n // If itemList gets empty, remove store from the store-list\n if (itemList.isEmpty())\n storeList.remove(storeObjIndex);\n }\n }\n }\n }\n }\n }", "@RequestMapping(value = \"/updateQuantity\", method = RequestMethod.POST)\n public String updateQuantity(HttpSession session, HttpServletRequest request) {\n List<Cart> listCart = (List<Cart>) session.getAttribute(\"listCart\");\n // lay mang so luong cua tung hoa don chi tiet trong request\n String[] arrQuantity = request.getParameterValues(\"quantity\");\n // cap nhap so luong cua cac don hang chi tiet\n for (int i = 0; i < listCart.size(); i++) {\n listCart.get(i).setQuantity(Integer.parseInt(arrQuantity[i]));\n }\n // add listCart vao session\n session.setAttribute(\"listCart\", listCart);\n // tinh lai tong tien rooi add vao session\n session.setAttribute(\"tongTien\", sumAmout(listCart));\n return \"ShoppingCart\";\n }", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"updateItem\")\n\tpublic ZuelResult updateItem(TbItem item) throws Exception {\n\t\treturn service.updateItem(item);\n\t}", "@Override\n\tpublic void update(Session sess, Subject sub) {\n\t\tsess.update(sub);\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t\n\t\tHttpSession session = request.getSession(false);\n\t\t\n\t\tresponse.setHeader(\"Cache-Control\", \"no-cache,no-store,must-revalidate\");\n\t\tif (session.getAttribute(\"usersession\") == null) {\n\t\t\tresponse.sendRedirect(\"login.jsp\");\n\t\t}\n\t\t\n\t\tString preItem =(String) session.getAttribute(\"preitem\");\n\t\tString editedItem = request.getParameter(\"editedItem\");\n\t\tString name =(String)session.getAttribute(\"usersession\");\n\t//\tSystem.out.print(preItem);\n\t//\tSystem.out.print(request.getParameter(\"editedItem\"));\n\t\t\n\t\t\n\t\tresponse.setHeader(\"Cache-Control\", \"no-cache,no-store,must-revalidate\");\n\t\tif(session.getAttribute(\"usersession\")==null)\n\t\t response.sendRedirect(\"login.jsp\");\n\n\t\n\t\t\n\t\t\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tConnection con = DataBaseConnection.getInstance().connect2Db();\n\t\t\tPreparedStatement ps = con.prepareStatement(\"update todo set items=? where items=? and name=?\");\n\t\t\tps.setString(1, editedItem);\n\t\t\tps.setString(2, preItem);\n\t\t\tps.setString(3, name);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tsession.removeAttribute(\"preitem\");\n\t\t//\tSystem.out.print(preItem);\n\t\t\tresponse.sendRedirect(\"welcome.jsp?msg=Item Updated Successfully\");\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} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t}", "@Override\n\tpublic void updateSession(CacheHttpSession httpSession) {\n\t\t\n\t}", "@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}", "@RequestMapping(\"edit\")\n\tpublic String edit(ModelMap model, HttpSession httpSession) {\n\t\tCustomer user = (Customer) httpSession.getAttribute(\"user\");\n\t\tmodel.addAttribute(\"user\", user);\n\t\treturn \"user/account/edit\";\n\t}", "public String update()\r\n {\r\n this.conversation.end();\r\n\r\n try\r\n {\r\n \t \r\n \t createUpdateImage(this.item);\r\n createUpdateSound(this.item);\r\n \t \r\n \t \r\n if (this.id == null)\r\n {\r\n this.entityManager.persist(this.item);\r\n return \"search?faces-redirect=true\";\r\n }\r\n else\r\n {\r\n this.entityManager.merge(this.item);\r\n return \"view?faces-redirect=true&id=\" + this.item.getId();\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.getMessage()));\r\n return null;\r\n }\r\n }", "void update( ExperimentDTO item );", "public void updateRoomItem(RoomItem item)\r\n\t{\r\n\t\ttheGridView.updateRoomItem(item);\r\n\t}", "protected void edit(HttpServletRequest request, HttpServletResponse response, CleanerServiceItemForm _CleanerServiceItemForm, CleanerServiceItem _CleanerServiceItem) throws Exception{\n\r\n m_logger.debug(\"Before update \" + CleanerServiceItemDS.objectToString(_CleanerServiceItem));\r\n\r\n _CleanerServiceItem.setServiceId(WebParamUtil.getLongValue(_CleanerServiceItemForm.getServiceId()));\r\n\r\n\r\n _CleanerServiceItem.setServiceItemId(WebParamUtil.getLongValue(_CleanerServiceItemForm.getServiceItemId()));\r\n\r\n\r\n _CleanerServiceItem.setItemType(WebParamUtil.getIntegerValue(_CleanerServiceItemForm.getItemType()));\r\n\r\n\r\n _CleanerServiceItem.setTitle(WebParamUtil.getStringValue(_CleanerServiceItemForm.getTitle()));\r\n\r\n\r\n _CleanerServiceItem.setImagePath(WebParamUtil.getStringValue(_CleanerServiceItemForm.getImagePath()));\r\n\r\n\r\n _CleanerServiceItem.setImagePathLocal(WebParamUtil.getStringValue(_CleanerServiceItemForm.getImagePathLocal()));\r\n\r\n\r\n _CleanerServiceItem.setBasePrice(WebParamUtil.getDoubleValue(_CleanerServiceItemForm.getBasePrice()));\r\n\r\n\r\n _CleanerServiceItem.setNote(WebParamUtil.getStringValue(_CleanerServiceItemForm.getNote()));\r\n\r\n\r\n\r\n m_actionExtent.beforeUpdate(request, response, _CleanerServiceItem);\r\n m_ds.update(_CleanerServiceItem);\r\n m_actionExtent.afterUpdate(request, response, _CleanerServiceItem);\r\n m_logger.debug(\"After update \" + CleanerServiceItemDS.objectToString(_CleanerServiceItem));\r\n }", "public T update(T item)\n {\n if (item instanceof User)\n {\n User user = (User) item;\n if (user.getId() == 1)\n {\n return item;\n }\n }\n return (T) this.entityManager.merge(item);\n\n }", "@Override\n @Transactional\n public void update(Item item) {\n Produto produto = item.getProduto();\n produtoDao.updateEstoqueProduto(produto.getQuantidade() - item.getQuantidade(), produto.getId());\n }", "public ProductWithStockItemTO updateStockItem(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "public Inventory inventoryUpdate (TheGroceryStore g, LinkedList<Inventory> updater) throws ItemNotFoundException;", "public CbmCItemFininceItem update(CbmCItemFininceItem entity);", "public void editDisplayedItem(String key, String fieldToChange, Object newValue){}", "public HrCStatitem update(HrCStatitem entity);", "@Override\r\n\tpublic void addItem(Items item) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t List<Items> allItems = new ArrayList<Items>();\r\n\t\t int flag=0;\r\n\t\t try\r\n\t\t {\r\n\t\t\t allItems = session.createQuery(\"from Items\").list();\r\n\t\t\t for (Items item1 : allItems) {\r\n\t\t\t\t\tif(item1.getUserName().equals(item.getUserName()) && item1.getItemName().equals(item.getItemName())){\r\n\t\t\t\t\t\tflag=1;\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You need to choose other name for this task\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t break;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t} \r\n\t\t\t if(flag==0)\r\n\t\t\t {\r\n\t\t\t\t session.beginTransaction();\r\n\t\t\t\t session.save(item);\r\n\t\t\t\t session.getTransaction().commit();\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t }\t\r\n\t}", "public void updateShoppingCart(ShoppingCart cart) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, cart.getUserId());\r\n\t\t\tcartdb.addItems(cart.getItems());\r\n\t\t\tcartdb.retainItems(cart.getItems());\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ cart);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ cart);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "public int updateItem(ToDoList item) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(TITLE, item.getTitle());\n values.put(DETAILS, item.getDetails());\n // updating record\n return db.update(TABLE_NAME, values, KEY_ID + \" = ?\", // update query to make changes to the existing record\n new String[]{String.valueOf(item.getId())});\n }", "void updateInventory(String busNumber, String tripDate, int inventory) throws NotFoundException;", "public void updateByEntity(Paciente paciente) {\n\t\n}", "public void updateItem(){\n\n System.out.println(\"Update item with ID: \");\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n System.out.println(\"Enter new characteristics: \");\n System.out.println(\"Name: \");\n String newName = bufferRead.readLine();\n System.out.println(\"Designer: \");\n String newDesigner = bufferRead.readLine();\n System.out.println(\"Price: \");\n int newPrice = Integer.parseInt(bufferRead.readLine());\n ClothingItem newCI = new ClothingItem(newName, newDesigner, newPrice);\n newCI.setId(id);\n this.ctrl.updateItem(newCI);\n\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "private void updateItem(Item item) throws SQLException\n {\n int itemId = item.getId();\n logger.debug(\"Updating Item with id \" + itemId + \"...\");\n try(Statement statement = connection.createStatement())\n {\n String sql = MessageFormat.format(\"UPDATE Items SET (title, description, price) = ({0}, {1}, {2}) WHERE id = {3}\",\n escapeStringValue(item.getTitle()), escapeStringValue(item.getDescription()), item.getPrice(), itemId);\n statement.addBatch(sql);\n statement.addBatch(\"DELETE FROM Items_Locations WHERE item_id = \" + itemId);\n statement.executeBatch();\n addItemQuantitiesPerLocation(item);\n }\n logger.debug(\"Updated Item successfully.\");\n }", "@RequestMapping(value = \"/admin/update_admin__account\")\r\n public String adminUpdateAccountPage(@ModelAttribute(\"AdminEditCommand\") AdminEditCommand cmd, HttpSession session) {\r\n System.out.println(\"form data: \" + cmd.getA());\r\n \r\n Admin current_admin = (Admin) session.getAttribute(\"admin\");\r\n Admin a = cmd.getA();\r\n a.setId(current_admin.getId());\r\n a.setImage(\"default.png\");\r\n Admin admin = adminService.updateAdminDetails(a);\r\n System.out.println(\"new admin : \" + admin);\r\n if(admin != null ) {\r\n addAdminInSession(admin, session);\r\n return \"redirect:/admin/admin_profile?Account Updated\";\r\n } else {\r\n return \"redirect:/admin/admin_edit_account?Upload failed\";\r\n }\r\n\r\n \r\n }", "public boolean updatePlayerItem(PlayerItem playerItem);", "@PutMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> updateItem(@PathVariable(value=\"item_id\") Long item_id, @Valid @RequestBody Item itemDetails){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\titem.setItem_id(itemDetails.getItem_id());\n\t\titem.setItem_name(itemDetails.getItem_name());\n\t\titem.setItem_discription(itemDetails.getItem_discription());\n\t\titem.setCategory(itemDetails.getCategory());\n\t\titem.setPrice(itemDetails.getPrice());\n\t\t\n\t\tItem upItem = itemDAO.save(item);\n\t\t\n\t\treturn ResponseEntity.ok().body(upItem);\n\t\t\n\t}", "@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 update(T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t}", "public boolean updateQuantity(int prodID, String distCentre, int quantity, int sessionID) {\r\n\t\tboolean cID = false;\r\n\t\tfor (int i=0;i<sessions.size();i++) {\r\n\t\t\tSession s = sessions.get(i);\r\n\t\t\tif (s.getID() == sessionID && s.getUser() instanceof Administrator) {\r\n\t\t\t\tAdministrator ad = (Administrator)(s.getUser());\r\n\t\t\t\tcID = ad.updateQuantity(prodID, distCentre, quantity);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cID;\r\n\t}", "private void updateBookItem(HttpServletRequest request, HttpServletResponse response, HttpSession session, RequestDispatcher dispatcher) throws ServletException, IOException {\n\t\t\n\t\tString[] dataInput = new String[BookItem.BOOK_ITEM_SIZE_PROPERTES];\n\t\t//Initialize value for dataInput array\n\t\t\n\t\tfor(int i = 0; i < BookItem.BOOK_ITEM_SIZE_PROPERTES; i ++) {\n\t\t\tdataInput[i] = new String(\"\");\n\t\t}\n\t\t//Get value of parameters from client\n\t\t\n\t\tdataInput[BookItem.BOOK_ITEM_TITLE] = request.getParameter(\"n_titleUpdateBookManager\");\n\t\tdataInput[BookItem.BOOK_ITEM_AUTHOR] = request.getParameter(\"n_authorEditBookUpdateManager\");\n\t\tdataInput[BookItem.BOOK_ITEM_DAY_PUBPLICATION] = request.getParameter(\"n_dayPublicationDateUpdateManager\");\n\t\tdataInput[BookItem.BOOK_ITEM_PUBLISHER] = request.getParameter(\"n_newPublisherEditBookManager\");\n\t\tdataInput[BookItem.BOOK_ITEM_SUMMARY] = request.getParameter(\"n_summaryEditPartBookManager\");\n\t\t//Update information of book item\n\t\t\n\t\tthis.bookItem.updateBookItem(dataInput);\n\t\t//Update display again\n\t\t\n\t\tthis.bookItem.getValueInformations(this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_ID], BookItem.BOOK_ITEM_ID);\n\t\t\n\t\tsession.setAttribute(\"imageBookResultLinkEditBookManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_IMAGE]);\n\t\tsession.setAttribute(\"nameEditBookUpdateManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_TITLE]);\n\t\tsession.setAttribute(\"codeEditBookUpdateManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_CODE]);\n\t\tsession.setAttribute(\"authorEditBookUpdateManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_AUTHOR]);\n\t\tsession.setAttribute(\"dayPublisherEditBookUpdateManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_DAY_PUBPLICATION]);\n\t\tsession.setAttribute(\"publisherEditUpdateBookManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_PUBLISHER]);\n\t\tsession.setAttribute(\"summaryEditUpdateBookManager\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_SUMMARY]);\n\t\t\n\t\tsession.setAttribute(\"bookItemIdFromBookItemController\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_ID]);\n\t\tsession.setAttribute(\"requestFromBookItem\", \"updateCountBookTitleInformation\");\n\t\tsession.setAttribute(\"n_numItemEditBookManager\", request.getParameter(\"n_numItemEditBookManager\"));\n\t\t//Create redirect to BookTitleController\n\t\t\n\t\tresponse.sendRedirect(\"BookTitleController\");\n\t\t\n\t\treturn;\n\t}", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "E update(ID id, E entity, RequestContext context);", "@Override\r\n\tpublic SweetItem updateSweetItem(SweetItem SweetItem) throws SweetItemNotFoundException {\n\t\treturn null;\r\n\t}", "public void update(Product item) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, item.getName());\n values.put(KEY_URL, item.getURL());\n values.put(KEY_CURRENT, item.getCurrentPrice());\n values.put(KEY_CHANGE, item.getChange());\n values.put(KEY_DATE, item.getDate());\n values.put(KEY_INITIAL, item.getInitialPrice());\n database.update(PRODUCT_TABLE, values, KEY_ID + \" = ?\", new String[]{String.valueOf(item.getId())});\n database.close();\n }", "public OrderItem updateOrderItem(OrderItem orderItem)\n\t{\n\t\tif(findOrderItemById(orderItem.getId())==null)\n\t\t{\n\t\t\tSystem.out.println(\"Produsul comandat care se incearca updatat nu exista\");\n\t\t\treturn null;\n\t\t}\n\t\tOrderItem orderIt=orderItemDAO.update(orderItem);\n\t\treturn orderIt;\n\t}", "public void updateActionItem() throws SQLException {\n actionItemClass obj = new actionItemClass();\n obj.updateActionItem(this);\n \n }", "int updateByPrimaryKey(HpItemParamItem record);", "public int updateOrderItem(OrderItem u) {\n int ok = 0;\n try {\n String query = \"UPDATE order_Item SET amount = ?, product_id_Product = ?, order_id_Order = ? WHERE id_Order_Item = ? ;\";\n\n PreparedStatement st = con.prepareStatement(query); //Prepared the query\n //Select id informated \n List<OrderItem> l = new OrderItemDao().searchOrderItem(u.getIdOrderItem());\n \n for (OrderItem lc : l) {\n st.setInt(4, lc.getIdOrderItem());\n }\n st.setInt(1, u.getAmount());\n st.setInt(2, u.getProductIdProduct());\n st.setInt(3, u.getOrderIdItem());\n\n ok = st.executeUpdate(); //Execute the update\n st.close(); //Close the Statment\n con.close(); //Close the connection\n\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ok;\n }", "public Item update(Item item) {\n Item existing = getItem(item.getItemId());\n if (existing != null) {\n return existing.setQuantity(item.getQuantity());\n }\n else {\n items.add(item.setCart(this));\n return item;\n }\n }", "public Task update(Task item) {\n\t\t// set the user id (not sure this is where we should be doing this)\n\t\titem.setUserId(getUserId());\n\t\titem.setEmailAddress(getUserEmail());\n\t\tif (item.getDueDate() == null) {\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tc.set(2011, 5, 11);\n\t\t\titem.setDueDate(c.getTime());\n\t\t}\n\t\tPersistenceManager pm = PMF.get().getPersistenceManager();\n\t\ttry {\n\t\t\tpm.makePersistent(item);\n\t\t\treturn item;\n\t\t} finally {\n\t\t\tpm.close();\n\t\t}\n\t}", "public void setSession(Session value);", "@Override\n\t\tpublic void updateRawitem(Rawitem Rawitem) {\n\t\t\tString sql=\"UPDATE Rawitem \"\n\t\t\t\t\t+ \"set suppliedby= :suppliedby,rquantity=:rquantity,riprice=:riprice,rstock=:rstock\"\n\t\t\t\t\t+ \" where rid=:rid\";\n\t\t\tnamedParameterJdbcTemplate.update(sql,getSqlParameterByModel(Rawitem));\n\t\t\t \n\t\t}", "@Transactional\n public static Result updateListItem(String listId, String itemId){\n Item item = Item.findById(Long.parseLong(itemId));\n ItemList list = ItemList.findById(Long.parseLong(listId));\n if(list.containsItem(item)){\n \n }\n return ok(toJson(item));\n }", "@PostMapping(\"/updateToDoItem\")\n\tpublic String updateItem(@ModelAttribute(\"toDoListUpdateForm\") ToDoList toDoListUpdateForm) {\t\t\n\t\t\n\t\tloggedUser = userService.findLoggedUser(); // Access the logged user.\n\t\t\n\t\ttoDoListUpdateForm.setUser(loggedUser);\t\n\t\t\n\t\ttoDoListUpdateForm.setLastUpdate(getDateTime()); // Set the current date and time to the to do list record.\n\t\t\n\t\ttoDoListService.update(toDoListUpdateForm); // Update the to do list item. \n\t\t\n\t\treturn \"redirect:/welcome\";\n\t}", "@RequestMapping(\"/item/{id}/update\")\n\tpublic ModelAndView showEditForm(@PathVariable(\"id\")Long id) {\n\t\tModelAndView mv = new ModelAndView(\"item-form\");\n\t\tmv.addObject(\"title\", \"Edit item!\"); //1st var is name we wanna call it\n\t\tmv.addObject(\"item\", itemDao.findById(id).orElse(null)); //2nd is data we use over and over again\n\t\t\t\t\n\t\t\t\treturn mv;\n\t\t\n\t}", "public CartOrder updateOrder(CartOrder order) throws Exception;", "@Override\n\tpublic void addItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"+++++++++++Add 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, name, price and quantity\n\t\t\tSystem.out.print(\"Enter Item Id: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\tSystem.out.print(\"Enter Item Name without space: \");\n\t\t\tString itemName = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Type without space: \");\n\t\t\tString itemType = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Price: \");\n\t\t\tString itemPrice = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Quantity: \");\n\t\t\tint itemQuantity = scanner.nextInt();\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.addItems(session,itemId,itemName,itemType,itemPrice,itemQuantity);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "private void updateDB(final Item item) {\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n TodoApplication.getDbHelper().writeItemToList(item);\n return null;\n }\n }.execute();\n }", "public Equipamento editar(Equipamento eq) {\r\n\t\t\tthis.conexao.abrirConexao();\r\n\t\t\tString sqlUpdate = \"UPDATE equipamentos SET nome=?,descricao=?, id_usuario=? WHERE id_equipamentos=?\";\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement statement = (PreparedStatement) this.conexao.getConexao().prepareStatement(sqlUpdate);\r\n\t\t\t\tstatement.setString(1, eq.getNome());\r\n\t\t\t\tstatement.setString(2, eq.getDescricao());\r\n\t\t\t\tstatement.setLong(3, eq.getUsuario().getId());\r\n\t\t\t\tstatement.setLong(4, eq.getId());\r\n\t\t\t\t/*int linhasAfetadas = */statement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tthis.conexao.fecharConexao();\r\n\t\t\t}\r\n\t\t\treturn eq;\r\n\t\t}", "public void updateItem(int id, String desc, String family, float price, int stock) {\n ContentValues values = new ContentValues();\n values.put(\"description\", desc);\n values.put(\"family\", family);\n values.put(\"price\", price);\n\n dbW.update(\"store\", values, \"_id=?\", new String[] { String.valueOf(id) });\n }", "@Override\n\tpublic void updatePais(Pais elemento) {\n\t\tgetSession().update(elemento);\n\t\t\n\t}", "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "@Then(\"^: update the cart$\")\r\n\tpublic void update_the_cart() throws Throwable {\n\t\tobj.search2();\r\n\t}", "protected void saveOrUpdate(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.saveOrUpdate(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save or update\");\n\t\t}\n\t}", "public void updateItemInList(Item item, ShoppingList list) {\r\n \t\tif (item == null || item.getId() == null || list == null)\r\n \t\t\tthrow new IllegalArgumentException(\"null is not allowed\");\r\n \r\n \t\tList<Item> items = persistenceManager.getItems(list);\r\n\t\tif (!items.contains(item))\r\n \t\t\treturn;\r\n \t\t\r\n \t\tpersistenceManager.save(item, list);\r\n \t}", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "public void setSession(Map<String, Object> session) {\n\t\t\n\t}", "@RequestMapping(value = \"/admin/admin_edit_account\")\r\n public String adminEdtitAccountPage(Model m, HttpSession session) {\r\n \r\n AdminEditCommand adminEditCommand = new AdminEditCommand();\r\n Admin a = (Admin) session.getAttribute(\"admin\");\r\n adminEditCommand.setA(a);\r\n System.out.println(\"admin in edit account method :\" + a);\r\n m.addAttribute(\"AdminEditCommand\", adminEditCommand);\r\n return \"admin/admin_edit_account\";\r\n\r\n }", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "Product editProduct(Product product);", "public int updateItem(Item item) {\n SQLiteDatabase db = DataBaseManager.getInstance().openDatabase();\n Log.d(\"ItemDbAdapter\", \"Update item: \" + item.getName() + \" \" + item.getId());\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, item.getName());\n values.put(KEY_ARRAY_ID, item.getArrayId());\n values.put(KEY_DESCRIPTION, item.getDescription());\n\n int rowcount = db.update(TABLE_ITEMS, values, KEY_ID + \" = ?\",\n new String[]{String.valueOf(item.getId())});\n DataBaseManager.getInstance().closeDatabase();\n // updating row\n return rowcount;\n }", "public void update(T ob) throws ToDoListException;", "int updateByPrimaryKeySelective(ItemStockDO record);", "int updateByPrimaryKey(Sequipment record);", "public void setCurrentSession(Session session){\n if(currentSession == null){\n currentSession = new MutableLiveData<>();\n }\n Log.i(\"VIewModelSessions\", \"setting current session\");\n currentSession.setValue(session);\n Log.i(\"ViewModelSessions\", \"current session: \"+session.toString());\n }" ]
[ "0.73905563", "0.670471", "0.66353476", "0.6520354", "0.64265716", "0.6421292", "0.6379992", "0.6319996", "0.61887944", "0.61654", "0.6111781", "0.61007965", "0.60488033", "0.6043964", "0.60409796", "0.5989633", "0.5975946", "0.5969679", "0.5956093", "0.5931047", "0.5931047", "0.59239775", "0.5920283", "0.5919408", "0.5895014", "0.5884577", "0.5864533", "0.58518696", "0.58510834", "0.5842979", "0.58159244", "0.58126795", "0.58090085", "0.5808741", "0.58086234", "0.57882696", "0.57744485", "0.57711166", "0.57564056", "0.57501006", "0.57492584", "0.5734978", "0.5722601", "0.5707338", "0.5706181", "0.5676908", "0.5666724", "0.5663011", "0.5656665", "0.5654326", "0.5648532", "0.56482404", "0.56379867", "0.5632235", "0.5630105", "0.56245184", "0.5615789", "0.5611446", "0.56038773", "0.5596334", "0.55928606", "0.5587753", "0.55859673", "0.55830604", "0.55827564", "0.55803037", "0.557264", "0.5563311", "0.5563082", "0.5561881", "0.55594414", "0.55577415", "0.5555117", "0.5551842", "0.5542179", "0.55406344", "0.55374026", "0.5530769", "0.5522011", "0.5520598", "0.5507953", "0.5507681", "0.5490152", "0.54834795", "0.5480007", "0.54779625", "0.54746914", "0.5461468", "0.5458253", "0.5454441", "0.54543614", "0.5452064", "0.5445557", "0.5441626", "0.5435231", "0.5434293", "0.54333484", "0.54316527", "0.543023", "0.5424548" ]
0.7861957
0
add a new user to the database, for a specific session
User addUser(IDAOSession session, String fullName, String userName, String password);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=\"/add-new-user\", method=RequestMethod.GET)\n\tpublic String addNewUser(HttpSession session) {\n\t\ttry {\n\t\t\tString userRole = UserDatabaseTemplate.getRoleWithId(session, connection());\n\t\t\t\n\t\t\tif(userRole.equals(ADMIN)) {\n\t\t\t\treturn \"redirect:manage-users\";\n\t\t\t}else if(userRole.equals(EDITOR)) {\n\t\t\t\treturn \"unauthorized-ed\";\n\t\t\t}else {\n\t\t\t\treturn \"unauthorized-rp\";\n\t\t\t}\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn \"redirect:login\";\n\t\t}\n\t}", "@Override\r\n\tpublic void add(User1 user) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(user);\r\n\t}", "void add(User user) throws SQLException;", "void addUser(User user);", "void addUser(User user);", "public void addUser(User user) {\n\t\t\r\n\t}", "public void addUser(User user);", "@Override\n public synchronized void addUser(String sessID, String user, char[] pass, UserLevel level) throws SQLException, SessionExpiredException {\n PooledConnection conn = ConnectionController.connectPooled(sessID);\n try {\n if (user.startsWith(DATABASE_USER_KEY_PREFIX)) {\n throw new SQLException(\"Can't create user \" + user + \" -- illegal username\");\n }\n // TODO: Transactions aren't supported for MyISAM, so this has no effect.\n conn.setAutoCommit(false);\n\n conn.executePreparedUpdate(\"CREATE USER ?@'%' IDENTIFIED BY ?\", user, new String(pass));\n grantPrivileges(sessID, user, level);\n conn.commit();\n } catch (SQLException sqlx) {\n conn.rollback();\n throw sqlx;\n } finally {\n for (int i = 0; i < pass.length; i++) {\n pass[i] = 0;\n }\n conn.setAutoCommit(true);\n conn.close();\n }\n }", "public synchronized void addUser(String user, HttpSession session) {\n\t\tif (!userSessions.containsKey(user))\n\t\t\tuserSessions.put(user, session);\n\t}", "String registerUserWithGetCurrentSession(User user);", "public void addUser(User user){\n loginDAO.saveUser(user.getId(),user.getName(),user.getPassword());\n }", "public void insertUser() {}", "public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "void addNewUser(User user, int roleId) throws DAOException;", "public void addUser(String username, String password, Session session) {\n\t\tif (username == null || password == null) {\n\t\t\tthrow new IllegalArgumentException(\"Please check the credentials\");\n\t\t}\n\t\tString encryptedPassword = Utils.encrypt(password);\n\t\tUser user = new User(username, encryptedPassword);\n\t\ttry {\n\t\t\tsession.save(user);\n\t\t\tsession.getTransaction().commit();\n\t\t} catch (SQLGrammarException e) {\n\t\t\tsession.getTransaction().rollback();\n\t\t\tLOG.error(\"Cannot save user\", e);\n\t\t}\n\t}", "@Override\n public void addUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.persist(u);\n logger.info(\"User saved successfully, User Details=\"+u);\n }", "@Override\n\tpublic void addUsers(Session session){\n\t\ttry{\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\n\t\t\tSystem.out.print(\"+++++++++++Add Customer/Admin here+++++++++++\\n\");\n\n\t\t\tSystem.out.println(\"Enter 'Admin' to add a new admin to database\");\n\t\t\tSystem.out.println(\"Enter 'Customer' to add a new admin to database\");\n\t\t\tSystem.out.println(\"--------------Enter one from above------------------\");\n\t\t\tString accType = scanner.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter First Name:\");\n\t\t\tString firstName = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter Last Name:\");\n\t\t\tString lastName = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter UserId:\");\n\t\t\tString inputLoginId = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter Password:\");\n\t\t\tString inputLoginPwd = scanner.nextLine();\n\n\t\t\t//pass these input fields to client controller\n\t\t\tsamp=mvc.addUsers(session,accType,firstName,lastName,inputLoginId,inputLoginPwd);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Users Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void add(Session session);", "public void addUser(String username, String password) {\n\t\t// Connect to database\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\t\n\t\t// Create new entry\n\t\tString newEntryString = \"INSERT INTO User (username, password, winNum, loseNum) VALUES (?, ?, 0, 0)\";\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(newEntryString);\n\t\t\tps.setString(1, username);\n\t\t\tps.setString(2, password);\n\t\t\tps.executeUpdate();\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\t// Close connections\n\t\t\ttry {\n\t\t\t\tif(rs != null)\n\t\t\t\t{\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif(ps != null)\n\t\t\t\t{\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(SQLException sqle)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sqle: \" + sqle.getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void addUser(){\r\n\t\ttry{\r\n\t\t\tSystem.out.println(\"Adding a new user\");\r\n\r\n\t\t\tfor(int i = 0; i < commandList.size(); i++){//go through command list\r\n\t\t\t\tSystem.out.print(commandList.get(i) + \"\\t\");//print out the command and params\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t\t\t//build SQL statement\r\n\t\t\tString sqlCmd = \"INSERT INTO users VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(4) + \"', '\" + commandList.get(5) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(6) + \"');\";\r\n\t\t\tSystem.out.println(\"sending command:\" + sqlCmd);//print SQL command to console\r\n\t\t\tstmt.executeUpdate(sqlCmd);//send command\r\n\r\n\t\t} catch(SQLException se){\r\n\t\t\t//Handle errors for JDBC\r\n\t\t\terror = true;\r\n\t\t\tse.printStackTrace();\r\n\t\t\tout.println(se.getMessage());//return error message\r\n\t\t} catch(Exception e){\r\n\t\t\t//general error case, Class.forName\r\n\t\t\terror = true;\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(e.getMessage());\r\n\t\t} \r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");//end try\r\n\t}", "void registerUser(User newUser);", "public void addAccount(String user, String password);", "Boolean registerNewUser(User user);", "boolean addUser(int employeeId, String name, String password, String role);", "public Boolean addUser(User user) throws ApplicationException;", "@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void addUser(UserModel user);", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "public User add(User u) {\n LOGGER.debug(\"adding user to db\");\n getSession().save(u);\n return u;\n }", "public void newUser(User user) {\n users.add(user);\n }", "private void addNewUser(User user) {\n\t\tSystem.out.println(\"BirdersRepo. Adding new user to DB: \" + user.getUsername());\n\t\tDocument document = Document.parse(gson.toJson(user));\n\t\tcollection.insertOne(document);\n\t}", "public int insertUser(final User user);", "public void addUser(User user){\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(USER_NAME,user.getName());\n values.put(USER_PASSWORD,user.getPassword());\n db.insert(TABLE_USER,null,values);\n db.close();\n }", "public void addUser() {\n\t\tthis.users++;\n\t}", "@Override\r\n\tpublic Admin addUser(String id, String password) {\n\t\t\r\n\t\tSession session=sessionFactory.openSession();\r\n\r\n\t\tAdmin admin = (Admin) session.get(Admin.class, id);\r\n\t\t\r\n\t\t\r\n\t\treturn admin;\r\n\t}", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "@Override\n\tpublic User addUser(User user) {\n\t\treturn userDatabase.put(user.getEmail(), user);\n\t}", "public int addUser(HttpServletRequest request) {\n\t\tHashMap<String, Object> parameters = buildUserInsertCondition(request);\n\n\t\tSimpleJdbcInsert insert = new SimpleJdbcInsert(jt).withTableName(\"sys_user\").usingGeneratedKeyColumns(\"userId\");\n\n\t\tNumber id = insert.executeAndReturnKey(parameters);\n\n\t\tint pk = id.intValue();\n\n\t\treturn pk;\n\t}", "public void addUserCredentials(String login, String password) throws SQLException;", "public void addUser(User user) {\n try (PreparedStatement pst = this.conn.prepareStatement(\"INSERT INTO users (name, login, email, createDate)\"\n + \"VALUES (?, ?, ?, ?)\")) {\n pst.setString(1, user.getName());\n pst.setString(2, user.getLogin());\n pst.setString(3, user.getEmail());\n pst.setTimestamp(4, user.getCreateDate());\n pst.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void addUser(HttpServletRequest req) throws PolygonException {\n //int id = Integer.parseInt(req.getParameter(\"id\"));\n String username = (String) req.getParameter(\"username\");\n String password = (String) req.getParameter(\"password\");\n String password2 = (String) req.getParameter(\"password2\");\n String email = (String) req.getParameter(\"email\");\n String type = (String) req.getParameter(\"type\");\n if (username.length() > 0 && password.length() > 0 && password.equals(password2) && type.length() > 0) {\n User user = new User(username, password, email, type);\n UsersMapper.insertUser(user);\n } else {\n String msg = \"Udfyld alle krævede felter\";\n throw new PolygonException(msg);\n }\n }", "public void addUser(String name,String password) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_USERNAME, name); // UserName\n values.put(KEY_PASSWORD,password);\n // Inserting Row\n long id = db.insert(TABLE_USER, null, values);\n //db.close(); // Closing database connection\n\n Log.d(TAG, \"New user inserted into sqlite: \" + id);\n }", "void addUser(BlogUser user) throws DAOException;", "void addUser(Username username) throws UserAlreadyExistsException;", "public void addUser(SPUser user, String tableName) { // tar inn user-tabellen\n\t try {\n\t myCon.execute(\"INSERT INTO \"+tableName+\" VALUES ('\"+ user.getUsername() +\"', '\"+ user.getPassword()+\"');\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "public void Adduser(User u1) {\n\t\tUserDao ua=new UserDao();\n\t\tua.adduser(u1);\n\t\t\n\t}", "public void registerUser(User1 u1) {\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\t\t\n\t\t\n \tsession.save(u1);\t\t\n \t \n \ttx.commit();\n \tsession.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "public void addNewUser(User user) throws SQLException {\n PreparedStatement pr = connection.prepareStatement(Queries.insertNewUser);\n pr.setString(1, user.getUserFullName());\n pr.setString(2, user.getUserEmail());\n pr.setInt(3, user.getPhoneNumber());\n pr.setString(4, user.getUserLoginName());\n pr.setString(5, user.getUserPassword());\n pr.execute();\n pr.close();\n }", "public Boolean addUser( User user){\n\t\tConnection connection = db.getConnection();\n\t\tPreparedStatement stmt = null;\n\t\ttry { \n\t\t\tString sql = \"INSERT INTO USER\" +\n\t\t\t\t\t\"(username, password, firstname, lastname, email, recordsindexed, batchid)\" + \n\t\t\t\t\t\"\t\t\t\t\t\tVALUES (?, ?, ?, ?, ?, ?, ?)\";\n\t\t\tstmt = connection.prepareStatement(sql); \n\t\t\tstmt.setString(1, user.getUsername()); \n\t\t\tstmt.setString(2, user.getPassword()); \n\t\t\tstmt.setString(3, user.getFirstname()); \n\t\t\tstmt.setString(4, user.getLastname()); \n\t\t\tstmt.setString(5, user.getEmail());\n\t\t\tstmt.setInt(6, user.getNumIndexedRecords());\n\t\t\tstmt.setInt(7, user.getCurBatchId());\n\n\t\t\tstmt.executeUpdate();\t\n\t\t\tstmt.close();\n\t\t} \n\t\tcatch (SQLException e) { \n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} \n\t\treturn true;\n\t}", "@Override\r\n\tpublic void add(User user) {\n\r\n\t}", "public void addUser(){\r\n //gets entered username and password\r\n String user = signup.getUsername();\r\n String pass = signup.getFirstPassword();\r\n try{\r\n \r\n //connects to database\r\n \r\n //creates statement\r\n Connection myConn = DriverManager.getConnection(Main.URL);\r\n //adds username and password into database\r\n PreparedStatement myStmt = myConn.prepareStatement(\"insert into LISTOFUSERS(USERNAME, PASSWORD)values(?,?)\");\r\n myStmt.setString(1,user);\r\n myStmt.setString(2,pass);\r\n int a = myStmt.executeUpdate();\r\n \r\n if(a>0){\r\n System.out.println(\"Row Update\");\r\n }\r\n myConn.close();\r\n } catch (Exception e){\r\n System.err.println(e.getMessage());\r\n }\r\n }", "@Override\n\tpublic int insertUser(String username, String password) {\n\t\treturn userMapper.insertUser(username, password);\n\t}", "public boolean addNewUser(UserDetails ud) {\n try {\n con = (Connection) DriverManager.getConnection(url, this.usernamel, this.passwordl);\n String query = \"INSERT INTO user VALUES(?,?,?,?,?,?,?,?)\";\n pst = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(query);\n pst.setInt(1, ud.getEmpID());\n pst.setString(2, ud.getEmployeeType());\n pst.setString(3, ud.getName());\n pst.setString(4, ud.getAddress());\n pst.setInt(5, ud.getMobile());\n pst.setString(6, ud.getNic());\n pst.setString(7, ud.getUsername());\n pst.setString(8, ud.getPassword());\n pst.executeUpdate();\n return true;\n } catch (Exception ex) {\n //System.out.print(ex);\n return false;\n } finally {\n try {\n if (pst != null) {\n pst.close();\n }\n if (con != null) {\n con.close();\n }\n } catch (Exception e) {\n }\n }\n }", "public void addUser(User user){\r\n users.add(user);\r\n }", "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "public void AddSession(String session, Long id){ validSessions.put(session, id); }", "@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}", "public boolean addUser(User someUser){\n\t\tArrayList<Integer> ai = someUser.getActiveSessionIDList();\n\t\t\n\t\tSystem.out.println(\"SESSION: Adding User: \"+someUser.getUsername()+\" to session: \"+this.sessionID);\n\t\t\n\t\t/* add this session id */\n\t\t\n\t\tif(ai==null){\n\t\t\t// create new array list\n\t\t\tai = new ArrayList<Integer> ();\n\t\t\tai.add(this.sessionID);\n\t\t}\n\t\telse{\n\t\t\t// check if user is already in this session\n\t\t\tif (!someUser.containsSession(this.sessionID))\n\t\t\t\tai.add(this.sessionID);\n\t\t}\n\t\t\n\t\t/* store list of session ids back */\n\t\tsomeUser.setActiveSessionIDList(ai);\n\t\t\n\t\t/* add user object to this session */\n\t\treturn this.userList.add(someUser);\n\t}", "@Override public void registerNewUser(String username, String password)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.registerNewUser(username, password);\r\n }", "public void addUser(User user) {\n\t\tuserDao.addUser(user);\r\n\r\n\t}", "public Long addUser(User transientUser) throws Exception;", "public static void createMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"CREATE USER '\" + e.getAbreviation() + \"'@'%' IDENTIFIED BY '\" + e.getPwd() + \"'; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }", "public void insert(User user);", "public void newUser(User user);", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "void addUser(String uid, String firstname, String lastname, String pseudo);", "@Override\n\tpublic void regist(User user) {\n\t\tdao.addUser(user);\n\t}", "public static boolean addUser(UserDetailspojo user) throws SQLException {\n Connection conn=DBConnection.getConnection();\n String qry=\"insert into users1 values(?,?,?,?,?)\";\n System.out.println(user);\n PreparedStatement ps=conn.prepareStatement(qry);\n ps.setString(1,user.getUserid());\n ps.setString(4,user.getPassword());\n ps.setString(5,user.getUserType());\n ps.setString(3,user.getEmpid());\n ps.setString(2,user.getUserName());\n //ResultSet rs=ps.executeQuery();\n int rs=ps.executeUpdate();\n return rs==1;\n //String username=null;\n }", "@Override\r\n\tpublic void addUser(User user) throws ToDoListDAOException{\r\n\t\tSession session = factory.openSession();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tsession.save(user);\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tif(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\r\n\t}", "void add(InternalSession session);", "public void addUserData(HttpServletRequest request) {\n\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"userPassword\");\n String address = request.getParameter(\"userAddress\");\n String phone = request.getParameter(\"userPhone\");\n String email = request.getParameter(\"userEmail\");\n\n userDao = new UserDao();\n //user = new User(0, userName, password, address, phone, email);\n //userDao.addUser(user);\n\n log.info(user.toString());\n }", "public boolean addUser(String username, String password) throws SQLException {\n\t\tString querystring = \"INSERT INTO user(username, password) \" + \"VALUES(?,?)\";\n\t\tPreparedStatement preparedStmt = conn.prepareStatement(querystring);\n\t\tpreparedStmt.setString(1, username);\n\t\tpreparedStmt.setString(2, password);\n\t\tint count = preparedStmt.executeUpdate();\n\t\tif (count > 0) {\n System.out.println(\"True\");\n\t\t\treturn true;\n\t\t}\n\t\telse {\n System.out.println(\"False\");\n\t\t\treturn false;\n\t\t}\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void addUser(IndividualUser u) {\n try {\n PreparedStatement s = sql.prepareStatement(\"INSERT INTO Users (userName, firstName, lastName, friends) VALUES (?,?,?,?);\");\n s.setString(1, u.getId());\n s.setString(2, u.getFirstName());\n s.setString(3, u.getLastName());\n s.setString(4, u.getFriends().toString());\n s.execute();\n s.close();\n\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "@Override\n\tpublic void addUser(ERSUser user) {\n\t\tuserDao.insertUser(user);\n\t}", "public void createUser(User user) {\n\n\t}", "public void addToUsers(Users users) {\n Connection connection = connectionDB.openConnection();\n PreparedStatement preparedStatement;\n try {\n preparedStatement = connection.prepareStatement(WP_USERS_ADD_USER);\n preparedStatement.setString(1, users.getUser_login());\n preparedStatement.setString(2, users.getUser_pass());\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n connectionDB.closeConnection(connection);\n }\n }", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "@Override\r\n\tpublic boolean addUser(user user) {\n\t\tif(userdao.insert(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static int addUser(String token, String email, String pass, String userName)\n\t\t\tthrows SQLException, ClassNotFoundException {\n\t\tString sql = \"INSERT INTO `RubykoDb`.`user` (`password`, `email`, `token`, `name`, `createTime`) VALUES ('111', '11', '11', '1', '1');\";\n\t\ttry (Connection conn = Database.getInstance().connect();\n\t\t\t\tPreparedStatement statement = conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);) {\n\n\t\t\tint affectedRows = statement.executeUpdate();\n\t\t\tif (affectedRows == 0) {\n\t\t\t\tthrow new SQLException(\"Creating user failed, no rows affected.\");\n\t\t\t}\n\n\t\t\ttry (ResultSet generatedKeys = statement.getGeneratedKeys()) {\n\t\t\t\tif (generatedKeys.next()) {\n\t\t\t\t\treturn generatedKeys.getInt(1);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new SQLException(\"Creating user failed, no ID obtained.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean addUser(User user) {\n\t\t\r\n\t\tuser.setEnabled(true);\r\n\t\tuser.setAuthority(\"user\");\r\n\t\tuser.setPassword(new BCryptPasswordEncoder().encode(user.getPassword()));\r\n\t\t\r\n\tsessionFactory.getCurrentSession().save(user);\r\n\treturn true;\r\n \r\n\t}", "public boolean addUser(User newUser) {\n boolean addResult = false;\n\tString sql = \"INSERT INTO users\"\n + \"(user_name, hashed_password, email, hashed_answer, is_activated, pubkey) VALUES\"\n + \"(? , ? , ? , ? , ?, ?)\";\n \ttry {\t\t\t\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, newUser.getUserName());\n this.statement.setString(2, newUser.getHashedPassword());\n this.statement.setString(3, newUser.getEmail()); \n this.statement.setString(4, newUser.getHashedAnswer()); \n this.statement.setInt(5, newUser.getIsActivated()); \n this.statement.setString(6, \"\");\n this.statement.executeUpdate();\n addResult = true;\n this.statement.close();\n\t}\n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return addResult; \n }", "@Override\r\n\tpublic boolean addNewUser(User user) {\n\t\treturn false;\r\n\t}", "public long addUser(User user) {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tlong id = (long) session.save(user);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\t\n\t\treturn id;\n\t\t\n\t}", "@Transactional\r\n\tpublic void addUser(){\r\n\t}", "private static void saveNewUserTest(Connection conn) {\n\n\t\tUser user1 = new User();\n\t\tuser1.setUsername(\"john\");\n\t\tuser1.setPassword(\"123\");\n\t\tuser1.setEmail(\"john@wp.pl\");\n\t\ttry {\n\t\t\tuser1.saveToDB(conn);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void addUser(Customer user) {}", "public void addData(String User, String password) throws SQLException\n {\n }", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "public void addUser(User tmpUser, User user) {\n\t\t\n\t}", "public void createUser(User user);", "@Override\r\n\t\tpublic boolean addDev(Dev_User user) {\n\t\t int flag= session.insert(\"com.app.dao.AppMapper.insDev\", user); \r\n\t\t if(flag>0){\r\n\t\t\t return true;\r\n\t\t }\r\n\t\t else{\r\n\t\t\treturn false;\r\n\t\t }\r\n\t\t}", "@RequestMapping(value = \"/addUser\", method = RequestMethod.POST)\n\tpublic String addNewUser(@RequestParam(\"userName\") String userName, @RequestParam(\"password\") String password,\n\t\t\t@RequestParam(\"password1\") String password1, Model model) {\n\t\tUser user = userDao.getUser(userName);\n\t\tif (user == null) {\n\t\t\t// passwords need to be equal\n\t\t\tif (password.equals(password1)) {\n\n\t\t\t\tuser = new User(userName, password);\n\t\t\t\tuser.encryptPassword();\n\n\t\t\t\tUserRole userRole = userRoleDao.getRole(\"ROLE_USER\");\n\n\t\t\t\tuser.addUserRole(userRole);\n\t\t\t\tuserDao.merge(user);\n\t\t\t\tmodel.addAttribute(\"message\", \"Welcome \" + user.getUserName() + \", we hope you'll have fun.\");\n\n\t\t\t} else {\n\t\t\t\tmodel.addAttribute(\"errorMessage\", \"Error: Passwords do not match!\");\n\t\t\t\treturn \"signUp\";\n\t\t\t}\n\n\t\t} else {\n\t\t\tmodel.addAttribute(\"errorMessage\", \"Error: User already exists!\");\n\t\t\treturn \"signUp\";\n\t\t}\n\n\t\treturn \"login\";\n\t}", "@Override\r\n\tpublic int register(User user) {\n\t\treturn dao.addUser(user);\r\n\t}", "public void addUser(User user) {\n\t\tSystem.out.println(\"adding user :\"+user.toString());\n\t\tuserList.add(user);\n\t}", "public void addUser(String u, String p) {\n \t//users.put(\"admin\",\"12345\");\n users.put(u, p);\n }", "@Override\n\tpublic User add(String name, String pwd, String phone) {\n\t\tSystem.out.println(\"OracleDao is add\");\n\t\treturn null;\n\t}" ]
[ "0.72379506", "0.7195642", "0.7135936", "0.70628893", "0.70628893", "0.70052344", "0.6998487", "0.6998469", "0.6989007", "0.6972318", "0.69352025", "0.69296056", "0.6926026", "0.6921418", "0.68929946", "0.6865836", "0.6838056", "0.681968", "0.67794657", "0.6749064", "0.6736339", "0.6707366", "0.66783047", "0.6666525", "0.66655225", "0.66562766", "0.6656128", "0.6653346", "0.66364676", "0.662491", "0.6615628", "0.66132355", "0.66025287", "0.6559078", "0.65404755", "0.65391284", "0.6516641", "0.64976037", "0.64955294", "0.64937204", "0.64873284", "0.64863855", "0.64766836", "0.6472761", "0.64629024", "0.6461584", "0.64600605", "0.6458235", "0.64558005", "0.64445525", "0.6438613", "0.64353853", "0.6434752", "0.6433482", "0.64249825", "0.6420194", "0.64081335", "0.6405953", "0.63984114", "0.63983804", "0.63804615", "0.6373213", "0.63654834", "0.6361852", "0.63600194", "0.63584757", "0.63574666", "0.6350655", "0.63471407", "0.6345759", "0.6340526", "0.6337567", "0.6333315", "0.6333088", "0.6329223", "0.63291055", "0.63247377", "0.63197434", "0.63183707", "0.63162655", "0.6298807", "0.6296075", "0.6291243", "0.6290864", "0.62907666", "0.62882775", "0.6282613", "0.6279339", "0.62778205", "0.62760276", "0.6275638", "0.6274705", "0.6269729", "0.6268956", "0.6266394", "0.6266226", "0.6260463", "0.62583965", "0.6256298", "0.6252039" ]
0.7755944
0
authenticates the given user and password, for a specific session.
int authenticateUser(IDAOSession session, String userName, String password);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void login(String user, String password);", "User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;", "public void logIn(String username, String password) {\n\t\t// Validate input\n\t\tif (username == null) throw new IllegalArgumentException(\"Username cannot be null\");\n\t\tif (password == null) throw new IllegalArgumentException(\"Password cannot be null\");\n\t\t\n\t\t// Keep these at bay\n\t\tthis.username = username;\n\t\tthis.password = password;\n\t\tthis.temporarySession = new SessionImpl();\n\t\tthis.temporarySession.setDB(new ConnectDB());\n\t\tthis.temporarySession.setLoggedIn(true);\n\t\tthis.session = new SessionImpl();\n\t\t\n\t\t// Lets load the user data.. maybe there is no user...\n\t\tloadUser();\n\n\t\t// The generated hash for the given username and password, including the new salt\n\t\tgeneratedHash = generateNewHash();\n\n\t\t// Set the session logging status to the outcome of this action.\n\t\tthis.session.setLoggedIn(isSamePass(user.getPassword()));\n\n\t\t// Grant DB access only if logged in.\n if ( this.session.isLoggedIn() ) {\n \t// Grant DB access\n \tthis.session.setDB(new ConnectDB());\n \t\n \t// Set the user to the session.\n \tthis.session.setUser(user);\n \t\n \t// Load all user privileges.\n \t\tloadUserPrivileges();\n \t\tthis.session.setUserPrivileges(userPrivilege);\n }\n\t}", "public User doAuthentication(String account, String password);", "private void authenticate(String user, String pass) {\n }", "LoginContext login(String username, String password) throws LoginException;", "public User logInUser(final String login, final String password);", "private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "User login(String username, String password);", "public void authenticateWithCredentials(String username, String password, Session session)\n throws WebsocketAuthenticationException {\n logger.credentialsBasedAuth(username);\n authenticate(CREDENTIALS, session, null, null, username, password);\n }", "public void signIn(String userName, String password) {\n\t}", "public void login(User user);", "User signIn(String login, String password);", "protected void authenticate(String session)\n\t{\n\t\tif( !Check.isEmpty(session) )\n\t\t{\n\t\t\tUserState state = CurrentUser.getUserState();\n\n\t\t\t// they have supplied a session id which they got from login()\n\t\t\t// but it doesn't match the current user's session id\n\t\t\t// therefore user doesn't have cookies turned on. Need to tell them.\n\t\t\tString userSession = state.getSessionID();\n\t\t\tif( !userSession.equals(session) )\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(CurrentLocale.get(\"com.tle.web.remoting.soap.error.nocookies\", userSession)); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t}", "User login(String email, String password) throws AuthenticationException;", "public static boolean login(Context ctx) {\n\t\t\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\t\n\t\tSystem.out.println(username);\n\t\tSystem.out.println(password);\n\t\t\n\t\tif(username.equals(\"user\") && password.equals(\"pass\")) {\n\t\t\tctx.res.setStatus(204);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"McBobby\",true));\n\t\t\treturn true;\n\t\t}else {\n\t\t\t\n\t\t\tctx.res.setStatus(400);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"fake\",false));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n//\t\tctx.queryParam(password); /authenticate?password=value\n//\t\tctx.pathParam(password); /authenticate/{password}\n\t}", "public boolean loginUser(String sessionID, String username, String password) {\r\n \t\tboolean loginValid = this.dataLayer.validateUser(username, password);\r\n \r\n \t\t// Login valid -> set Username\r\n \t\tif (loginValid) {\r\n \t\t\tboolean isAdmin = this.dataLayer.isAdmin(username);\r\n \t\t\tRoMClient loggedInClient = this.clients.getClientBySessionID(sessionID);\r\n \t\t\tloggedInClient.setUsername(username);\r\n \t\t\tloggedInClient.setIsAdmin(isAdmin);\r\n \r\n \t\t\t// Fire event\r\n \t\t\tthis.notifyUserLoggedInListener(new UserLoggedInEvent(this, username));\r\n \t\t}\r\n \r\n \t\treturn loginValid;\r\n \t}", "public static int logIn(String userName, String password, String token) throws ClassNotFoundException, SQLException { \n String[] name = {userName};\n String[] pk = {userPK};\n List<user> tempU = selectUser(pk, name);\n if(tempU.isEmpty()) {\n return -2;\n }\n else if(tempU.get(0).getPassWord().equals(encytp(password))) {\n String[] temp = {token, userName};\n String[] restriction = {VERTIFY};\n updateUser(restriction, temp);\n return 0;\n }\n else {\n return -1;\n }\n }", "public abstract void login(String userName, String password) throws RemoteException;", "String signIn(String userName, String password) throws UserNotFoundException;", "public void authenticate() {\n LOGGER.info(\"Authenticating user: {}\", this.name);\n WebSession result = null;\n try {\n result =\n getContext()\n .getAuthenticationMethod()\n .authenticate(\n getContext().getSessionManagementMethod(),\n this.authenticationCredentials,\n this);\n } catch (UnsupportedAuthenticationCredentialsException e) {\n LOGGER.error(\"User does not have the expected type of credentials:\", e);\n } catch (Exception e) {\n LOGGER.error(\"An error occurred while authenticating:\", e);\n return;\n }\n // no issues appear if a simultaneous call to #queueAuthentication() is made\n synchronized (this) {\n this.getAuthenticationState().setLastSuccessfulAuthTime(System.currentTimeMillis());\n this.authenticatedSession = result;\n }\n }", "@Override\n\tpublic UtenteBase login(String username, String password) {\n\t\t\n\t\tUtenteBase user = getUtente(username);\n\t\tif(user != null) {\n\t\t\tif(user.getPassword().equals(Utils.MD5(password))) {\n\t\t\t\tgetThreadLocalRequest().getSession().setAttribute(\"user\", user);\n\t\t\t\treturn user;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn null;\n\t\t} else\n\t\t\treturn null;\n\t}", "private void login(String username,String password){\n\n }", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "User authenticate(String username, String password);", "boolean authenticate(String userName, String password);", "public void authenticate(LoginCredentials credentials) throws LoginException;", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "void loginAttempt(String email, String password);", "public void login(String username, String password, Context context) {\n\t\tUserVO userVO = new UserVO();\n\t\tuserVO.setId(username);\n\t\tuserVO.setPassword(password);\n\t\t\n\t\tLoginTask loginTask = new LoginTask();\n\t\tloginTask.setContext(context);\n\t\tloginTask.execute(userVO);\n\t}", "public String signIn(String username, String password);", "@Override\n\tpublic SmbmsUser login(String userCode, String userPassword) {\n\t\treturn sud.login(userCode, userPassword);\n\t}", "@WebMethod public boolean logIn(String userName, String password);", "public final Session tryToAuthenticate(final String user, final String password)\r\n {\n return null;\r\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Override public User login(String username, String password)\r\n throws RemoteException, SQLException {\r\n this.username = username;\r\n this.password = password;\r\n user = gameListClientModel.login(username, password);\r\n return gameListClientModel.login(username, password);\r\n }", "public User logIn(String username, String password) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tTypedQuery<User> query = em.createNamedQuery(\"User.findByCredentials\", User.class);\n\t\t\tquery.setParameter(\"inUsername\", username);\n\t\t\tquery.setParameter(\"inPassword\", password);\n\t\t\tuser = query.getSingleResult();\n\t\t\tif (user != null) {\n\t\t\t\tuser.setToken(generateToken());\n\t\t\t\tem.merge(user);\n\t\t\t}\n\t\t\treturn user;\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.WARNING, \"User not found\", e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }", "@Override\n\tpublic boolean login(String username, String password) {\n\t\treturn userProviderService.login(username, password);\n\t}", "public User login(Credentials creds) throws InvalidCredentialsException, MultipleLoginException, UserInactiveException {\r\n//\t\tLogManager.getLogger().info( \"Current sessions: \" + irpSessionRepository.count() );\r\n//\t\tLogManager.getLogger().info( \"Current Locks: \" + irpLockRepository.count() );\r\n\r\n \tString md5password = passwordManager.hashMC( creds.getPassword() );\r\n\t\tString schema = dhh.getSchema();\r\n\r\n//\t\ttry {\r\n//\t\t\tInteger uc = getDataSource().queryForObject(\"select usercode from \" + schema + \".USERACCOUNT where username = ? and password = ?\", Integer.class, creds.getUsername(), md5password);\r\n//\t\t\tAppSession is = irpSessionRepository.find( uc );\r\n//\r\n//\t\t\tif ( is == null ) {\r\n//\t\t\t\tApplicationParameter ap = apr.findParam(ApplicationParameterType.GENERAL, 1, 6); // EVALUATOR param\r\n//\t\t\t\tUser u = userRepository.find( uc );\r\n//\r\n//\t\t\t\tif ( ap.getParameterValueInt() == 0 ) {\r\n//\t\t\t\t\tif ( u.getUserAccount().hasRole( 7 ) ) {\r\n//\t\t\t\t\t\t// Evaluators should not login!\r\n//\t\t\t\t\t\tLogManager.getLogger().warn(\"Evaluator Cannot login. Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif ( u.getPosition() > 0 &&\r\n//\t\t\t\t\t\t\t( u.getUserAccount().hasRole( 3 ) || u.getUserAccount().hasRole( 4 ) || u.getUserAccount().hasRole( 5 ) )) {\r\n//\t\t\t\t\t\tLogManager.getLogger().warn(\"Branch User Cannot login. Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t}\r\n//\t\t\t\t} else {\r\n//\t\t\t\t\tif ( ap.getFailCode() != 1 ) {\r\n//\t\t\t\t\t\tif ( u.getPosition() > 0 &&\r\n//\t\t\t\t\t\t\t\t( u.getUserAccount().hasRole( 3 ) || u.getUserAccount().hasRole( 4 ) || u.getUserAccount().hasRole( 5 ) )) {\r\n//\t\t\t\t\t\t\tLogManager.getLogger().warn(\"Branch User Cannot login. Branches in Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\t\tthrow new UserInactiveException( creds );\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\tirpSessionRepository.create(creds.getFromIp(), uc);\r\n//\t\t\t\tu.getUserAccount().setLastlogin( new Date() );\r\n//\t\t\t\tuserAccountRepository.persist( u.getUserAccount() );\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"AUTHENTICATION_SUCCEEDED\", null, null, null, null);\r\n//\t\t\t\treturn u;\r\n//\t\t\t} else {\r\n//\t\t\t\tthrow new MultipleLoginException();\r\n//\t\t\t}\r\n//\t\t} catch (Exception e) {\r\n//\t\t\tif ( e instanceof UserInactiveException) {\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"USER_INACTIVE\", null, null, null, null);\r\n//\t\t\t\tthrow e;\r\n//\t\t\t}\r\n//\t\t\tif ( e instanceof MultipleLoginException) {\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"ALREADY_LOGGED_IN\", null, null, null, null);\r\n//\t\t\t\tthrow e;\r\n//\t\t\t}\r\n//\t\t\tdhh.logLogin(creds.getUsername(), \"AUTHENTICATION_FAILED\", null, null, null, null);\r\n//\t\t\tthrow new InvalidCredentialsException(creds);\r\n//\t\t}\r\n\t\treturn null;\r\n\t}", "public void login(String sessionId)\n\t\tthrows NoPermissionException, Exception\n\t{\n\n\t\t// Connect to the authentication server\n\t\t// and validate this session id\n\t\tWebiceLogger.info(\"in Client logging in with sessionId: \" + sessionId);\n\t\tAuthGatewayBean gate = new AuthGatewayBean();\n\t\tgate.initialize(sessionId, ServerConfig.getAuthAppName(), \n\t\t\t\tServerConfig.getAuthServletHost());\n\t\t\n\t\tlogin(gate);\n\t\tWebiceLogger.info(\"in Client logged in with sessionId: \" + sessionId + \" \" + getUser());\n\t}", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "public void login(String username, String password)\n \t\t\tthrows IllegalStateException, IOException, JHGDException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\t// Set SSL if necessary\n \n \t\t// Reset the authentication flag.\n \t\tauthenticated = false;\n \n \t\t// Check received parameters\n \t\tif (username == null || username.isEmpty()) {\n \t\t\tthrow new JHGDException(\"Null or empty username\");\n \t\t}\n \t\tif (password == null) {\n \t\t\tthrow new JHGDException(\"Null password\");\n \t\t}\n \n \t\t// send the command: \"user|%s|%s\"\n \t\tsendLineCommand(\"user|\" + username + \"|\" + password);\n \n \t\tString returnMessage = (String) input.readLine();\n \t\t// check server response\n \t\tif (checkServerResponse(returnMessage) == HGDConsts.SUCCESS) {\n \t\t\t// set the flags\n \t\t\tthis.authenticated = true;\n \t\t\tthis.username = username;\n \t\t\tthis.password = password;\n \t\t} else {\n \t\t\tthrow new JHGDException(returnMessage.substring(returnMessage\n \t\t\t\t\t.indexOf('|') + 1));\n \t\t}\n \n \t}", "@Override\n\tpublic UserDetailsBean login(UserDetailsBean userDetailsBean) {\n\t\treturn userDao.login(userDetailsBean);\n\t}", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "String registerUserWithGetCurrentSession(User user);", "@RequestMapping(path = \"/login\")\n public String loginUser(@RequestBody User userSubmittedViaForm, HttpSession userSession) throws Exception {\n User checkUserValidity = userRepository.findByusername(userSubmittedViaForm.getUsername().toLowerCase());\n\n //Checks for username submission for null or empty string.\n if (userSubmittedViaForm.getUsername() == null || userSubmittedViaForm.getUsername().trim().length() == 0) {\n throw new Exception(\"Invalid username input\");\n }\n //Checks for password submission for null or empty string.\n else if (userSubmittedViaForm.getPassword() == null || userSubmittedViaForm.getPassword().trim().length() == 0) {\n throw new Exception(\"Invalid password input\");\n }\n //Checks if uses exists.\n else if (checkUserValidity == null) {\n throw new Exception(\"User does not exist\");\n }\n //Checks for password equality.\n else if (!PasswordStorage.verifyPassword(userSubmittedViaForm.getPassword(), checkUserValidity.getPassword())) {\n throw new Exception(\"Incorrect Password\");\n }\n //If all checks are passed will log user to session, again maybe shouldn't be an \"else\".\n else {\n //Saves session by valid username.\n userSession.setAttribute(\"username\", checkUserValidity.getUsername());\n System.out.println(\"User \" + checkUserValidity.getUsername() + \" authenticated!\");\n return \"User authenticated!\";\n }\n }", "void login(String cuid, String pass)\n throws RemoteException;", "public synchronized void login(String uid, String session_id) {\r\n if((uid != null) && (session_id != null)) {\r\n SignOnUser user = new SignOnUser();\r\n user.userID = uid;\r\n user.sessionID = session_id;\r\n try {\r\n dao.insertUser(user);\r\n } catch (DataAccessException e) {\r\n ExceptionBroadcast.print(e);\r\n }\r\n\r\n }\r\n }", "public User login(String loginName, String password) throws UserBlockedException;", "public static void logIn(String user, String password) {\n clear(USERNAME_FIELD);\n type(USERNAME_FIELD, user);\n clear(PASSWORD_FIELD);\n type(PASSWORD_FIELD, password);\n click(LOGIN_BUTTON);\n }", "public void propagateCredentials( User user, String password );", "public String login(String username, String password){\n return login.login(username, password);\n }", "@Override\n\tpublic boolean login(String username, String password)\n\t{\n\t\ttry\n\t\t{\n\t\t\tpassword = resolve(Hasher.class).hash(password);\n\t\t\tList<User> users = this.getRepository().findByFields(new String[]{\"username\", username}, new String[]{\"password\", password});\n\t\t\tif (!users.isEmpty())\n\t\t\t{\n\t\t\t\tthis.user = users.get(0);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tresolve(EventBus.class).fire(new ErrorEvent(e));\n\t\t}\n\n\t\treturn false;\n\t}", "private void authenticate(String username, String password) throws Exception {\n\t\tboolean autenticated = false;\n\t\tEntityManagerFactory factory = Persistence.createEntityManagerFactory(\"ForumApp\");\n\t\tEntityManager em = factory.createEntityManager();\n\n\t\tTypedQuery<User> q = em.createQuery(\"SELECT u FROM User u WHERE u.username = '\" + username + \"'\", User.class);\n\t\tUser user = q.getSingleResult();\n\n\t\tif (user != null) {\n\n\t\t\tif (user.getPassword().equals(password)) {\n\t\t\t\tautenticated = true;\n\t\t\t}\n\t\t}\n\n\t\t// Close the entity manager\n\t\tem.close();\n\t\tfactory.close();\n\n\t\t// Throw an Exception if the credentials are invalid\n\t\tif (!autenticated) {\n\t\t\tthrow new Exception();\n\t\t}\n\t}", "public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "UserToken login(String username, String password) throws WorkspaceException;", "@When(\"^The user logs in \\\"([^\\\"]*)\\\" and \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void the_user_logs_in(String username, String password) throws Throwable {\n\t\tfaceAgile.login(username, password);\r\n\t}", "public abstract User login(User data);", "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void login(String userCredentials, String pass) {\r\n driver.findElement(loginTab).click();\r\n driver.findElement(username).sendKeys(userCredentials);\r\n driver.findElement(password).sendKeys(pass);\r\n driver.findElement(loginBtn).click();\r\n }", "Document login(String username, String password);", "@RequestMapping(path = \"/login\", method = RequestMethod.POST)\n public ResponseEntity login(@RequestBody User user, HttpSession session) throws Exception {\n User userFromDatabase = users.findFirstByUsername(user.getUsername());\n\n if (userFromDatabase == null) {\n user.setPassword(PasswordStorage.createHash(user.getPassword()));\n user.setUsername(user.getUsername());\n user.setKarma(0);\n users.save(user);\n }\n else if (!PasswordStorage.verifyPassword(user.getPassword(), userFromDatabase.getPassword())) {\n return new ResponseEntity<>(\"BAD PASS\", HttpStatus.FORBIDDEN);\n }\n\n session.setAttribute(\"username\", user.getUsername());\n\n return new ResponseEntity<>(user, HttpStatus.OK);\n }", "@Override\n\tpublic boolean login(String userName, String password) {\n\t\tuk.ac.glasgow.internman.users.User user = users.getUser(userName, password);\n\t\tif (user != null){\n\t\t\tcurrentUser = user;\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t}", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "EmployeeMaster authenticateUser(int employeeId, String password);", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "@Override\n public boolean login(String userName, String password) throws WrongCredentialsException, UserDatabaseNotFoundException, WrongUserDatabase {\n actualUser = userRepository.authenticate(userName, password);\n lastUserName = userName;\n return true;\n }", "@RequestMapping(value = \"/session\", method = RequestMethod.POST)\n public String session(@Valid @ModelAttribute(\"loginDto\") LoginDto loginDto,\n BindingResult bindingResult, Map<String, Object> model, HttpSession session, HttpServletRequest request)\n {\n if (UserEntity.getPrincipal(session) != null)\n {\n UserEntity userEntity = (UserEntity) UserEntity.getPrincipal(session);\n message.info(\"\\n\\n Name: \"+userEntity.getName()+\"\\n\\n\");\n message.info(\"\\n\\n Id: \"+userEntity.getId()+\"\\n\\n\");\n\n return \"redirect:/app/daily/list\";\n }\n\n if (bindingResult.hasErrors())\n {\n model.put(\"loginDto\", loginDto);\n return \"login/session\";\n }\n\n Principal principal ;\n try\n {\n principal = this.userAndProfileServiceDao.login(loginDto);\n }catch (ConstraintViolationException e )\n {\n loginDto.setPassword(\"\");\n model.put(\"loginDto\", loginDto);\n model.put(\"loginFail\", true);\n return \"login/session\";\n }\n if(principal == null)\n {\n loginDto.setPassword(\"\");\n model.put(\"loginFail\", true);\n return \"login/session\";\n }\n UserEntity.setPrincipal(session, principal);\n request.changeSessionId();\n return \"redirect:/app/daily/list\";\n\n\n }", "@When(\"^User login into the app with username and password$\")\n\tpublic void user_login_to_the_app_with_username_and_password() {\n\t\tSystem.out.println(\"User is logged\");\n\t}", "public void login(String username, String password) {\n User user = new User(username, password);\r\n String paramBodyJsonStr = new Gson().toJson(user);\r\n Logger.d(\"paramBodyJsonStr=\" + paramBodyJsonStr);\r\n // handle login\r\n AndroidNetworking.post()\r\n .setContentType(\"application/json; charset=utf-8\")\r\n .setTag(this)\r\n .setUrl(Constants.URL_LOGIN)\r\n .build()\r\n .setApplicationJsonString(paramBodyJsonStr)\r\n .setAnalyticsListener(analyticsListener)\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject result) {\r\n Logger.d(\"response result=\" + result.toString());\r\n Result<LoggedInUser> defultResult = loginRepository.getDataSource().login(username, password);\r\n LoggedInUser data = ((Result.Success<LoggedInUser>) defultResult).getData();\r\n loginResult.setValue(new LoginResult(new LoggedInUserView(data.getDisplayName())));\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n loginResult.setValue(new LoginResult(new Result.Error(anError)));\r\n Logger.d(\"anError=\" + anError.toString());\r\n if (!TextUtils.isEmpty(anError.getErrorDetail())) {\r\n Logger.d(\"getMessage=\" + anError.getMessage() + \" getErrorDetail=\" + anError.getErrorDetail());\r\n }\r\n }\r\n });\r\n\r\n }", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "protected void login() {\n\t\t\r\n\t}", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "public String signin() {\n \t//System.out.print(share);\n \tSystem.out.println(username+\"&&\"+password);\n String sqlForsignin = \"select password from User where username=?\";\n Matcher matcher = pattern.matcher(sqlForsignin);\n String sql1 = matcher.replaceFirst(\"'\"+username+\"'\");//要到数据库中查询的语句\n select();\n DBConnection connect = new DBConnection();\n List<String> result = connect.select(sql1);//查询结果\n if (result.size() == 0) return \"Fail1\";\n \n if (result.get(0).equals(password)){\n \tsession.setAttribute( \"username\", username);\n \treturn \"Success\";\n }\n else return \"Fail\";\n }", "@PostMapping(\"/user/login\")\n public ResponseVo<User> login(@Valid @RequestBody UserLoginForm userLoginForm,\n HttpSession session) {\n\n// if (bindingResult.hasErrors()) {\n// log.info(\"params inconsistent for login, {} {}\",\n// Objects.requireNonNull(bindingResult.getFieldError()).getField(),\n// bindingResult.getFieldError().getDefaultMessage());\n// return ResponseVo.error(ResponseEnum.PARAM_ERROR, bindingResult);\n// }\n\n ResponseVo<User> userResponseVo = userService.login(userLoginForm.getUsername(), userLoginForm.getPassword());\n\n session.setAttribute(MallConst.CURRENT_USER, userResponseVo.getData());\n log.info(\"/login sessionId={}\", session.getId());\n\n return userResponseVo;\n }", "public User loginApp(String username, String password) throws LoginFailedException{\r\n\t\t\ttry {\r\n\t\t\t\tthis.user = this.service.login(username, password);\r\n\t\t\t\treturn this.user;\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\tthrow new LoginFailedException();\r\n\t\t\t}\t\r\n\t}", "public void authenticate( )\n\t{\n\t\t\n\t\t try\n\t\t {\n\t\t\t SessionFactory sessionFactory=new Configuration().configure\n\n().buildSessionFactory();\n\t\t\t Session session=sessionFactory.openSession();\n\t\t\t \n\t\t\t Transaction tr=session.beginTransaction();\n\t\t\t\n\t\t\t tr.commit();\n\t\t\t \n\t\t\t \n\t\t }\n\t\t catch(Exception e)\n\t\t {\n\t\t\t e.printStackTrace();\n\t\t }\n\n\t}", "public boolean login(String username, String password) {\n\n if (userMap.containsKey(username)) {\n if (password.equals(userMap.get(username).getPassword())) {\n currentUser = userMap.get(username);\n return true;\n }\n }\n return false;\n }", "protected void login (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n // invoke userService.login()\n User loginUser = userService.login(new User(null, username, password, null));\n // if null, then fail\n if (loginUser == null) {\n // save information to request domain\n req.setAttribute(\"msg\", \"Username or Password incorrect !\");\n req.setAttribute(\"username\", username);\n // jump to login page dispatcher share the same request information\n req.getRequestDispatcher(\"/pages/user/login.jsp\").forward(req, resp);\n }\n else {\n\n // save user information to Session domain\n req.getSession().setAttribute(\"user\", loginUser);\n req.getRequestDispatcher(\"/pages/user/login_success.jsp\").forward(req, resp);\n }\n\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public boolean login(String username, String password) {\n return userDAO.login(username, password);\n }", "public boolean authenticate(String username, String password, HttpServletRequest request){\n try {\n MySQLService sql = new MySQLService();\n String digest = DigestUtils.md5Hex(password);\n boolean isMatched = sql.checkMatch(username, digest);\n System.out.println(isMatched);\n if (isMatched) {\n request.getSession().setAttribute(\"username\", username);\n return true;\n } else {\n return false;\n }\n }catch (Exception e){\n System.out.println(e);\n\n }\n return false;\n }", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "public void doLogin(String username, String password) {\n typeUsername(username);\n typePassword(password);\n clickLoginButton();\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public Person login(String username, String password);", "public ResultSet doLogin(String username, String password)\n\t{\n\t\tResultSet rset = null;\n\t\tString sql = null;\n\t\ttry {\n\t\t\t\n\t\t\tsql = \"SELECT id \" + \n\t\t\t\t\t\"FROM User \" + \n\t\t\t\t\t\"WHERE pw_hash = sha2(concat(sha2(?,256),pw_salt),256) AND id = ?;\";\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.clearParameters();\n\t\t\tpstmt.setString(1, password);\n\t\t\tpstmt.setString(2, username);\n\t\t\trset = pstmt.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"createStatement \" + e.getMessage() + sql);\n\t\t}\n\t\treturn rset;\n\t}", "public void login(String username, String password) {\n\t\t// store values in case we need to attempt to update to the salted hashes\n\t\tthis.lastUsername = username;\n\t\tthis.lastPassword = password;\n\t\tchar language = '0';\n\t\tif(GameClient.getLanguage().equalsIgnoreCase(\"english\")) {\n\t\t\tlanguage = '0';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"portuguese\")) {\n\t\t\tlanguage = '1';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"italian\")) {\n\t\t\tlanguage = '2';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"french\")) {\n\t\t\tlanguage = '3';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"finnish\")) {\n\t\t\tlanguage = '4';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"spanish\")) {\n\t\t\tlanguage = '5';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"dutch\")) {\n\t\t\tlanguage = '6';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"german\")) {\n\t\t\tlanguage = '7';\n\t\t}\n\t\tm_tcpSession.write(\"l\" + language + username + \",\" + (getPasswordHash(username, password)));\n\t\t\n\t\tif(GameClient.getInstance().getPacketGenerator().m_chatSession != null)\n\t\t\tm_chatSession.write(\"l\" + language + username + \",\" + (getPasswordHash(username, password)));\n\t}", "@Override\n\tpublic User login(String user, String pass) {\n\t\treturn null;\n\t}", "public String login(String userName, String userPassword){\n BCryptPasswordEncoder pass = new BCryptPasswordEncoder();\n Users users = new Users();\n Users userFromdb = userRepository.findByUserName(userName);\n if (userFromdb != null){\n if (!userFromdb.getPassword().equals(userPassword)){\n// if (!(pass.matches(userPassword, userFromdb.getPassword()))){\n throw new UsernameNotFoundException(\"kata sandi salah\");\n }else{\n UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(userFromdb.getUsername(),\n userFromdb.getPassword(), userFromdb.getAuthorities());\n// Authentication authentication = authenticationManager.authenticate(authToken);\n SecurityContextHolder.getContext().setAuthentication(authToken);\n System.out.println(\"Session Created\");\n }\n return userFromdb.getUsername();\n }else{\n throw new UsernameNotFoundException(\"username tidak ditemukan\");\n }\n }" ]
[ "0.7050792", "0.699894", "0.68599105", "0.6725428", "0.66692907", "0.666441", "0.6641647", "0.6520994", "0.6439491", "0.6417129", "0.64045465", "0.6394728", "0.6383981", "0.63530546", "0.63523245", "0.6312231", "0.62978506", "0.6287176", "0.62728244", "0.62608534", "0.6259399", "0.62325424", "0.62262195", "0.62216276", "0.6213114", "0.6206922", "0.6180025", "0.6175442", "0.6165133", "0.6144522", "0.61431736", "0.61364365", "0.6132134", "0.6120729", "0.6116893", "0.61086816", "0.61043936", "0.6089945", "0.60728693", "0.6071741", "0.6055149", "0.60483813", "0.60325927", "0.6029199", "0.6026572", "0.6024341", "0.6011548", "0.60094756", "0.5998976", "0.59970176", "0.59876585", "0.59820753", "0.5980848", "0.5980109", "0.5969863", "0.5960755", "0.5946291", "0.5944325", "0.59393156", "0.59382623", "0.5935436", "0.5935058", "0.5918038", "0.591092", "0.59051406", "0.5893398", "0.58891594", "0.58867717", "0.5880666", "0.58772063", "0.5873125", "0.58730245", "0.5852343", "0.5844597", "0.5842597", "0.58361083", "0.5835123", "0.58339655", "0.58294076", "0.58157206", "0.5807493", "0.5805076", "0.5802625", "0.5801506", "0.58003265", "0.57995933", "0.5795358", "0.57946664", "0.57925844", "0.5788814", "0.57886654", "0.57784927", "0.5772133", "0.5764336", "0.5763931", "0.5762401", "0.5744518", "0.5738613", "0.57320666", "0.57312274" ]
0.74528784
0
TODO: make monster movement less retarded
public void move() { super.move(DIRECTION.getRandom()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "@Override\n //Movement of a smallMonster\n public void movement(Canvas canvas) {\n if(zero == 0){\n ammountOfRandom = (int)(Math.random() * 50 + 1);\n randomMove = (int )(Math.random() * 8 + 1);\n }\n zero++;\n if(zero > ammountOfRandom){\n zero = 0;\n }\n if(checkBounds(canvas)){\n switch (EnumMovement.values()[randomMove]){\n case UP:\n mY--;\n break;\n case DOWN:\n mY++;\n break;\n case LEFT:\n mX--;\n break;\n case RIGHT:\n mX++;\n break;\n case UPRIGHT:\n mY--;\n mX++;\n break;\n case UPLEFT:\n mY--;\n mX--;\n break;\n case DOWNRIGHT:\n mY++;\n mX++;\n break;\n case DOWNLEFT:\n mY++;\n mX--;\n break;\n case NONE:\n break;\n }\n }\n }", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n double moveSpeed = this.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue();\n if (timetopee-- < 0 && !bumgave)\n {\n isJumping = false;\n\n if (bumrotation == 999F)\n {\n bumrotation = rotationYaw;\n }\n\n rotationYaw = bumrotation;\n moveSpeed = 0.0F;\n\n if (!onGround)\n {\n motionY -= 0.5D;\n }\n \n /* TODO\n if(worldObj.isRemote)\n {\n \tMCW.proxy.pee(worldObj, posX, posY, posZ, rotationYaw, modelsize);\n } */\n\n if (timetopee < -200)\n {\n timetopee = rand.nextInt(600) + 600;\n bumrotation = 999F;\n int j = MathHelper.floor_double(posX);\n int k = MathHelper.floor_double(posY);\n int l = MathHelper.floor_double(posZ);\n\n for (int i1 = -1; i1 < 2; i1++)\n {\n for (int j1 = -1; j1 < 2; j1++)\n {\n if (rand.nextInt(3) != 0)\n {\n continue;\n }\n\n Block k1 = worldObj.getBlockState(new BlockPos(j + j1, k - 1, l - i1)).getBlock();\n Block l1 = worldObj.getBlockState(new BlockPos(j + j1, k, l - i1)).getBlock();\n\n if (rand.nextInt(2) == 0)\n {\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n worldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.YELLOW_FLOWER.getDefaultState());\n }\n\n continue;\n }\n\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n \tworldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.RED_FLOWER.getDefaultState());\n }\n }\n }\n }\n }\n }", "private void moveMonsters() {\r\n\t\tfor (AreaOrMonster obj : areas) {\r\n\t\t\tif(obj.getLeftRight()) {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()+1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()+1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()-1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()-1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void monsterComportement(float delta){\n\t\theroApproachLeft();\n\t\theroApproachRight();\n\t\theroVuRight();\n\t\theroVuLeft();\n\t\theroHoreZone();\n\t\theroHoreZoneMFix();\n\t\t\n\t\toldMonsterX = monster.getBX();\n\t\t\n\t\t\n\t\tif(heroHoreZone){\n\t\t\tif (monster.getBX()>=1200/conf.PPM){\n\t\t\t\tmonster.moveLeft(delta);\n\t }else if (monster.getBX()<=1000/conf.PPM ){\n\t\t\t\tmonster.moveRight(delta);\n\t }\n\t\t\tif(heroHoreZoneMFix){\n\t\t\t\tmonster.moveRight(delta);\n\t\t\t}\n\t\t}else{\n\t\t\t\n\t\t\tif(heroVuLeft || heroVuRight){\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(heroVuLeft){\n\t\t\t\t\tif (monster.getBX()>=1000/conf.PPM){\n\t\t\t\t\t\tmonster.moveLeft(delta);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmonster.stopX();\n\t\t\t\t\t}\n\t\t\t\t\tif((System.currentTimeMillis() - lastFire>conf.fireDephasage/delta)){\n\t\t\t\t\t\tmonster.fire();\n\t\t\t\t\t\tlastFire = System.currentTimeMillis();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(heroVuRight){\n\t\t\t\t\tif (monster.getBX()<=1675/conf.PPM){\n\t\t\t\t\t\tmonster.moveRight(delta);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmonster.stopX();\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tif((System.currentTimeMillis() - lastFire>conf.fireDephasage/delta)){\n\t\t\t\t\t\tmonster.fire();\n\t\t\t\t\t\tlastFire = System.currentTimeMillis();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif(hero.getBX()<monster.getBX() && i==1){\n\t\t\t\t\tmonster.moveLeft(delta);\n\t\t\t\t\ti=0;\n\t\t\t\t}\n\t\t\t\tif(hero.getBX()>monster.getBX() && i==0){\n\t\t\t\t\tmonster.moveRight(delta);\n\t\t\t\t\ti=1;\n\t\t\t\t}\n\t\t\t\tmonster.stopX();\n\t\t\t\tif((System.currentTimeMillis() - lastFire>conf.fireDephasage/delta)){\n\t\t\t\t\tmonster.fire();\n\t\t\t\t\tlastFire = System.currentTimeMillis();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tmonster.stopShooting();\n\t\t\n\t}", "public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\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 move() {\n health -= 2; //health decrement\n age++; //age increment\n if (yPos > 300) {\n speed += 3;\n }\n boolean canMove = false;\n int distancex = (int) (Math.random() * speed);\n int distancey = (int) (Math.random() * speed);\n int counterx = r.nextInt(2);\n int countery = r.nextInt(2);\n while (!canMove) {\n distancex = (int) (Math.random() * speed);\n distancey = (int) (Math.random() * speed);\n counterx = r.nextInt(2);\n countery = r.nextInt(2);\n if (counterx == 0 && this.xPos - distancex > 0\n && countery == 0 && this.yPos - distancey > 0) {\n canMove = true;\n } else if (counterx == 1 && this.xPos + distancex < 510\n && countery == 1 && this.yPos + distancey < 530) {\n canMove = true;\n }\n }\n if (counterx == 0 && countery == 0) {\n xPos -= distancex;\n yPos -= distancey;\n } else if (counterx == 0 && countery == 1) {\n xPos -= distancex;\n yPos += distancey;\n } else if (counterx == 1 && countery == 0) {\n xPos += distancex;\n yPos -= distancey;\n } else if (counterx == 1 && countery == 1) {\n xPos += distancex;\n yPos += distancey;\n }\n }", "public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }", "@Override\n\tpublic void update(Monster monster) {\n\t\t\n\t}", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "P applyMovement(M move);", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "private void checkMovement()\n {\n if (frames % 600 == 0)\n {\n \n ifAllowedToMove = true;\n \n \n }\n \n }", "public void movement()\n\t{\n\t\tballoonY = balloonY + speedBalloonY1;\n\t\tif(balloonY > 700)\n\t\t{\n\t\t\tballoonY = -50;\n\t\t\tballoonX = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon2Y = balloon2Y + speedBalloonY2;\n\t\tif(balloon2Y > 700)\n\t\t{\n\t\t\tballoon2Y = -50;\n\t\t\tballoon2X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon3Y = balloon3Y + speedBalloonY3;\n\t\tif(balloon3Y > 700)\n\t\t{\n\t\t\tballoon3Y = -50;\n\t\t\tballoon3X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon4Y = balloon4Y + speedBalloonY4;\n\t\tif(balloon4Y > 700)\n\t\t{\n\t\t\tballoon4Y = -50;\n\t\t\tballoon4X = (gen.nextInt(900)-75);\n\t\t}\n\t\t\n\t\tballoon5Y = balloon5Y + speedBalloonY5;\n\t\tif(balloon5Y > 700)\n\t\t{\n\t\t\tballoon5Y = -50;\n\t\t\tballoon5X = (gen.nextInt(900)-75);\n\t\t}\n\t}", "private void enemyMove() {\n\t\tArrayList<EnemySprite> enemylist = this.model.getEnemy();\n\t\tfor(EnemySprite sp :enemylist) {\n\t\t\tif(sp instanceof NormalEnemySprite) {\n\t\t\t\t\n\t\t\t\t((NormalEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if(sp instanceof PatrollingEnemySprite) {\n\t\t\t\t\n\t\t\t\t((PatrollingEnemySprite) sp).move();\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\telse if (sp instanceof BigEnemySprite) {\n\t\t\t\t((BigEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if (sp instanceof PatrollingBigEnemySprite) {\n\t\t\t\t((PatrollingBigEnemySprite) sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if (sp instanceof CircleBigEnemySprite) {\n\t\t\t\t((CircleBigEnemySprite) sp).move();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\n\t}", "private void moveMower(final char movement) {\n int nextYPosition = this.getPosition().getPositionY();\n int nextXPosition = this.getPosition().getPositionX();\n switch (this.getPosition().getOrientation()) {\n case N:\n nextYPosition++;\n break;\n case S:\n nextYPosition--;\n break;\n case W:\n nextXPosition--;\n break;\n case E:\n default:\n nextXPosition++;\n break;\n }\n if (garden.isPositionAvailable(nextXPosition, nextYPosition)) {\n logger.debug(\"Moving mower : ({}, {}) -> ({}, {})\",\n this.position.getPositionX(), this.position.getPositionY(),\n nextXPosition, nextYPosition);\n this.getPosition().setPositionX(nextXPosition);\n this.getPosition().setPositionY(nextYPosition);\n } else {\n logger.debug(\"Cannot move mower : ({}, {}) -> ({}, {})\",\n this.position.getPositionX(), this.position.getPositionY(),\n this.position.getPositionX(), this.position.getPositionY());\n }\n }", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "private void randomMove() {\n }", "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "public void move(int moveDirection) {\n //if same or opposite direction, check if movable\n if ((direction - moveDirection) % 6 == 0) {\n this.direction = moveDirection;\n if (moveable()) {\n if (direction == 12) {\n this.setLocation(new Point(this.getX(),\n this.getY() - speed));\n }\n //move right\n if (direction == 3) {\n this.setLocation(new Point(this.getX() + speed,\n this.getY()));\n\n }\n //move down\n if (direction == 6) {\n this.setLocation(new Point(this.getX(),\n this.getY() + speed));\n }\n //move left\n if (direction == 9) {\n this.setLocation(new Point(this.getX() - speed,\n this.getY()));\n }\n\n }\n } // if it is turning, check if can turn or not. If can turn then turn and move according to the direction before turn, otherwise, just leave the monster there\n else {\n Point snapToGridPoint = GameUtility.GameUtility.snapToGrid(\n this.getLocation());\n Point gridPoint = GameUtility.GameUtility.toGridCordinate(\n this.getLocation());\n Point nextPoint = new Point(gridPoint.x, gridPoint.y);\n //if the distance is acceptable\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 2.5) {\n\n if (moveDirection == 3) {\n int x = Math.max(0, gridPoint.x + 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 6) {\n int y = Math.max(0, gridPoint.y + 1);\n nextPoint = new Point(gridPoint.x, y);\n } else if (moveDirection == 9) {\n int x = Math.min(19, gridPoint.x - 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 12) {\n int y = Math.min(19, gridPoint.y - 1);\n nextPoint = new Point(gridPoint.x, y);\n }\n // if the turn is empty, then snap the monster to the grid location\n if (!(GameManager.getGameMap().getFromMap(nextPoint) instanceof Wall) && !(GameManager.getGameMap().getFromMap(\n nextPoint) instanceof Bomb)) {\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 10) {\n this.setLocation(snapToGridPoint);\n this.direction = moveDirection;\n } else {\n if (direction == 9 || direction == 3) {\n int directionOfMovement = (snapToGridPoint.x - getX());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX() + directionOfMovement * speed,\n this.getY()));\n } else if (direction == 12 || direction == 6) {\n int directionOfMovement = (snapToGridPoint.y - getY());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX(),\n this.getY() + directionOfMovement * speed));\n }\n }\n }\n }\n }\n }", "@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }", "public void movement(){\n\t\t\n\t\tdelayCounter++;\n\t\t\n\t\tif(direction == Direction.RIGHT){\n\t\t\txCoor += 1;\n\t\t\tbound.x = xCoor+30;\n\t\t\t\n\t\t\tif ( image == Assets.enemySprite[0] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[1];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[1] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[2];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[2] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[0];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == Direction.LEFT){\n\t\t\txCoor -= 1;\n\t\t\tbound.x = xCoor+30;\n\t\t\t\n\t\t\tif ( image == Assets.enemySprite[3] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[4];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[4] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[5];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[5] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[3];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\telse if(direction == Direction.UPWARD){\n\t\t\tyCoor += 1;\n\t\t\tbound.y = yCoor+30;\n\t\t\t\n\t\t\tif ( image == Assets.enemySprite[10] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[11];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[11] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[10];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\telse if(direction == Direction.DOWNWARD){\n\t\t\tyCoor -= 1;\n\t\t\tbound.y = yCoor+30;\n\t\t\t\n\n\t\t\tif ( image == Assets.enemySprite[6] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[7];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[7] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[8];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t\telse if ( image == Assets.enemySprite[8] && delayCounter >= delay ){\n\t\t\t\timage = Assets.enemySprite[6];\n\t\t\t\tdelayCounter = 0;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tenemyWalk += 1;\n\t\t\n\t\t//This parts checks to see if the enemy has to turn or not.\n\t\tif(enemyWalk == screen.maps[screen.currentMap].path.getTileWidth()){\n\t\t\tint x = xCoor;\n\t\t\tint y = yCoor;\n\t\t\t\n\t\t\tif(direction == Direction.RIGHT){\n\t\t\t\tx = xCoor + 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\tif(direction == Direction.LEFT){\n\t\t\t\tx = xCoor - 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\tif(direction == Direction.UPWARD){\n\t\t\t\ty = yCoor + 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\tif(direction == Direction.DOWNWARD){\n\t\t\t\ty = yCoor - 1;\n\t\t\t\tprevious = direction;\n\t\t\t}\n\t\t\t\n\t\t\tint tileBlockX = (int) (x/screen.maps[screen.currentMap].path.getTileWidth());\n\t\t\tint tileBlockY = (int) (y/screen.maps[screen.currentMap].path.getTileHeight());\n\t\t\t\n\t\t\t//As long as the enemy has not gone the opposite direction, the enemy will continue to move in the direction is was going originally.\n\t\t\tif(tileBlockX < screen.maps[screen.currentMap].path.getWidth()-1 && tileBlockX > 0){\n\t\t\t\tif(tileBlockY < screen.maps[screen.currentMap].path.getHeight()-1 && tileBlockY > 0){\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX, tileBlockY + 1).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.DOWNWARD){\n\t\t\t\t\t\tdirection = Direction.UPWARD;\n\t\t\t\t\t\timage = Assets.enemySprite[10];\n\t\t\t\t\t}\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX, tileBlockY - 1).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.UPWARD){\n\t\t\t\t\t\tdirection = Direction.DOWNWARD;\n\t\t\t\t\t\timage = Assets.enemySprite[6];\n\t\t\t\t\t}\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX + 1, tileBlockY).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.LEFT){\n\t\t\t\t\t\tdirection = Direction.RIGHT;\n\t\t\t\t\t\timage = Assets.enemySprite[0];\n\t\t\t\t\t}\n\t\t\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX - 1, tileBlockY).getTile().getProperties().containsKey(\"ground\") == true && previous != Direction.RIGHT){\n\t\t\t\t\t\tdirection = Direction.LEFT;\n\t\t\t\t\t\timage = Assets.enemySprite[3];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If the enemy makes it to the end, it is no longer in game.\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(tileBlockX, tileBlockY).getTile().getProperties().containsKey(\"finish\") == true){\n\t\t\t\tinGame = false;\n\t\t\t\tscreen.playerHealth--;\n\t\t\t}\n\t\t\t\n\t\t\tenemyWalk = 0;\n\t\t}\n\t}", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "void killPlayerByMonsterMove()\n {\n moveMonsterToCell(getPlayerCell());\n }", "@Override\n\tpublic void moveCharacter(){\n\t\tif (leftBlocked || rightBlocked) {\n\t\t\txSpeed = 0;\n\t\t}\n\t\t\n\t\t/* Applies gravity if falling */\n\t\tif ( isFalling() && this.getCurrentAnimation().isLastFrame() ) {\n\t\t\tfallingSpeed = fallingSpeed + gravity;\n\t\t\tint newySpeed = fallSpeed + fallingSpeed;\n\t\t\t\n//\t\t\tSystem.out.println(\"newySpeed: \" + newySpeed);\n\t\t\t\n\t\t\tif (newySpeed > maxySpeed) {\n\t\t\t\tnewySpeed = maxySpeed;\n\t\t\t}\n\t\t\tySpeed = newySpeed;\n\t\t\t\n\t\t\t// Applies horizontal speed to the fall\n\t\t\tif ( !isStraightFall() && (!isFallCollided() && !isDeadlyFall()) ) {\n\t\t\t\t\n\t\t\t\tif ( isSafeFall() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (this.getOrientation().equals(\"left\")) {\n\t\t\t\t\t\txFrameOffset = -fallxSpeed;\n\t\t\t\t\t}\n\t\t\t\t\telse if (this.getOrientation().equals(\"right\")) {\n\t\t\t\t\t\txFrameOffset = fallxSpeed;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ( isRiskyFall() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (this.getOrientation().equals(\"left\")) {\n\t\t\t\t\t\txFrameOffset = -fallxSpeed/2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (this.getOrientation().equals(\"right\")) {\n\t\t\t\t\t\txFrameOffset = fallxSpeed/2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( isFallCollided() ) {\n\t\t\t\txFrameOffset = 0;\n\t\t\t}\n\t\t}\n\t\telse if ( isGrounded() && !this.getCurrentAnimation().getId().equals(\"stairs\")) {\n\n\t\t\t/* Character is on the ground */\n\t\t\tySpeed = 0;\n\t\t\tyFrameOffset = 0;\n\t\t\tfallingSpeed = 0;\n\t\t}\n\t\t\n\t\t/* Moves the character and its bounding box if he is not at the edge*/\n\t\tif (!this.isBlocked()) {\n\t\t\tsetX(x + xSpeed + xFrameOffset);\n\t\t\tsetY(y + ySpeed + yFrameOffset);\n\t\t\tboundingBox.translate(xSpeed + xFrameOffset, ySpeed + yFrameOffset);\n\t\t}\n\t\t\n\t\t/* Play music */\n\t\tif(!sound.equals(\"\")){\n\t\t\tloader.getSound(sound).play();;\n\t\t}\n\t}", "private void move(){\n \n currentAnimation = idleDown;\n \n if(playerKeyInput.allKeys[VK_W]){\n int ty = (int) (objectCoordinateY - speed + bounds.y) / 16;\n \n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY -= speed;\n currentAnimation = upWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_S]){\n int ty = (int) (objectCoordinateY + speed + bounds.y + bounds.height) / 16;\n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY += speed;\n currentAnimation = downWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_A]){\n int tx = (int) (objectCoordinateX - speed + bounds.x) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX -= speed;\n currentAnimation = sideWalkLeft;\n }\n } \n \n if(playerKeyInput.allKeys[VK_D]){\n int tx = (int) (objectCoordinateX + speed + bounds.x + bounds.width) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX += speed;\n currentAnimation = sideWalkRight;\n }\n } \n \n if(playerKeyInput.allKeys[VK_E]){\n currentAnimation = pickUp;\n } \n }", "@Override\n\tpublic boolean updatePos(Physical_passive map) {\n\t\tupdate_animSpeed();\n\t\t// if (!map.getPhysicalRectangle().contains(getPhysicalShape()))\n\t\t// return false;\n\t\tif (!isDead()) {\n\t\t\tResolveUnreleasedMovements();\n\t\t\tgetWeapon().update();\n\t\t\tupdatePush();\n\t\t\t/*\n\t\t\t * if (!isBlock_down()) { // Por lo visto esto controla el salto if\n\t\t\t * (getJumpTTL() != 0) { moveJump(); } else // Y este 3 es la\n\t\t\t * gravedad., lo paso a un metodo de actor // para decirle q empiece\n\t\t\t * a caer fall(); // ; }\n\t\t\t */\n\t\t\t// Aqui es donde realmente cambiamos la posicion una vez calculado\n\t\t\t// donde va a ir.\n\t\t\t// updateLegsRotation(getSpeed().add(getPosition()));\n\t\t\tgetLegs().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\tsetPosition(getPosition().add(getSpeed().add(getPush())));\n\t\t\tgetTorax().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\t// setPosition(getPosition().add(getSpeed().add(getPush()))); //\n\t\t\t// CAmbiado;\n\t\t\tLine2D line = new Line2D.Float((float) getKillTracer().getTrace().getLine().getX1(),\n\t\t\t\t\t(float) getKillTracer().getTrace().getLine().getY1(), (float) getSpeed().x(),\n\t\t\t\t\t(float) getSpeed().y());\n\t\t\tgetKillTracer().getTrace().setLine(line);\n\t\t\tArrayList<Entity> hits = getKillTracer().getCollision(getMap());\n\t\t\tfor (Entity ent : hits) {\n\t\t\t\tif (ent instanceof Player && ent != this) {\n\t\t\t\t\tPlayer plent = (Player) ent;\n\t\t\t\t\tplent.die();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "void move() throws IOException, InterruptedException{\r\n \r\n // if current position and velocity are greater than 0 and less than the right edge of the screen\r\n if (x + xa > 0 && x + xa < 1280-w){\r\n // increase the character position by velocity\r\n x = x + xa;\r\n }\r\n \r\n // if current height and velocity are greater than zero and less than the floor of the game\r\n if (y + ya > 0 && y + ya < 500){\r\n // if jumping up\r\n if (y > 300){\r\n y = y + ya;\r\n } else{ // if falling down, increase velocity to 3\r\n ya = 3;\r\n y = y + ya;\r\n }\r\n }\r\n \r\n // if a collision is detected increase life counter\r\n if (game.collision()){\r\n // increase life counter\r\n count++;\r\n // call game over to load next image or to close game\r\n game.gameOver(count);\r\n } \r\n }", "@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}", "public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}", "public void movement2()\n\t{\n\t\tballoon6Y = balloon6Y + speedBalloonY1;\n\t\tif(balloon6Y > 700)\n\t\t{\n\t\t\tballoon6Y = -100;\n\t\t\tballoon6X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon7Y = balloon7Y + speedBalloonY2;\n\t\tif(balloon7Y > 700)\n\t\t{\n\t\t\tballoon7Y = -100;\n\t\t\tballoon7X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon8Y = balloon8Y + speedBalloonY3;\n\t\tif(balloon8Y > 700)\n\t\t{\n\t\t\tballoon8Y = -100;\n\t\t\tballoon8X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon9Y = balloon9Y + speedBalloonY4;\n\t\tif(balloon9Y > 700)\n\t\t{\n\t\t\tballoon9Y = -100;\n\t\t\tballoon9X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon10Y = balloon10Y + speedBalloonY5;\n\t\tif(balloon10Y > 700)\n\t\t{\n\t\t\tballoon10Y = -100;\n\t\t\tballoon10X = (gen.nextInt(900)-75);\n\t\t}\n\t}", "@Override\n public void action(){\n\n Position move=this.findWeed();\n if(move.getX()==0 && move.getY()==0){\n super.action();\n }\n else{\n System.out.println(this.getClass().getSimpleName());\n int actualX = this.position.getX();\n int actualY = this.position.getY();\n int xAction = actualX+move.getX();\n int yAction = actualY+move.getY();\n Organism tmpOrganism = this.WORLD.getOrganism(xAction, yAction);\n if(tmpOrganism==null){\n this.move(move.getX(), move.getY());\n this.WORLD.erasePosition(actualX,actualY);\n }\n else{\n tmpOrganism.collision(this, actualX, actualY, move);\n }\n }\n }", "public void move() {\n int direction;\n int energy = maxEnergy;\n while (energy > 0) {\n energy -= speed;\n direction = (int) (4 * Math.random());\n for (int i = 0; i < speed; i++) {\n if (foodDetection()) {\n ArrayList<Creature> creatures = world.getCreatureList();\n //System.out.println(\"Moving to food, My Location: \" + x + \",\" + y);\n for (Creature c : creatures) {\n if (c.isStealth()) break;\n else if (c.getX() - x == - 1) { x--; break; }\n else if (c.getX() - x == 1) { x++; break; }\n else if (c.getY() - y == -1) { y--; break; }\n else if (c.getY() - y == 1) { y++; break; }\n }\n foodLocated();\n } else {\n if (direction == 0 && paths(\"up\")) { y++; }\n else if (direction == 1 && paths(\"down\")) { y--; }\n else if (direction == 2 && paths(\"left\")) { x--; }\n else if (direction == 3 && paths(\"right\")) { x++; }\n else direction = (int) (4 * Math.random());\n }\n }\n }\n }", "public static void makeEnemyMove() { //all players after index 1 are enemies\n if (gameMode == EARTH_INVADERS) {//find leftmost and rightmost vehicle columns to see if we need to move down\n int leftMost = board[0].length;\n int rightMost = 0;\n int lowest = 0;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {//find left-most, right-most and lowest most vehicles (non aircraft/train) to determine how formation should move\n Player curr = players[i];\n if (curr == null)\n continue;\n String name = curr.getName();\n if (name.equals(\"NONE\") || curr.isFlying() || name.startsWith(\"TRAIN\") || (curr instanceof Monster))\n continue;\n if (curr.getCol() < leftMost)\n leftMost = curr.getCol();\n if (curr.getCol() > rightMost)\n rightMost = curr.getCol();\n if (curr.getRow() > lowest)\n lowest = curr.getRow();\n curr.setHeadDirection(DOWN);\n }\n for (int i = FIRST_VEHICLE; i < players.length; i++) {//***move aircraft and trains\n Player curr = players[i];\n if (curr == null)\n continue;\n String name = curr.getName();\n if (name.equals(\"NONE\") || curr.isFlying() || name.startsWith(\"TRAIN\") || (curr instanceof Monster)) {\n if (curr.isMoving())\n continue;\n ArrayList<Integer> dirs = new ArrayList(); //array of preferred directions - everything but the reverse of their body position\n int bodyDir = curr.getBodyDirection();\n curr.clearDirections();\n int r = curr.getRow();\n int c = curr.getCol();\n if (bodyDir == UP) {\n if (isValidMove(curr, r - 1, c))\n dirs.add(UP);\n if (isValidMove(curr, r, c + 1))\n dirs.add(RIGHT);\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c - 1))\n dirs.add(LEFT);\n }\n } else if (bodyDir == RIGHT) {\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r - 1, c))\n dirs.add(UP);\n }\n if (isValidMove(curr, r, c + 1))\n dirs.add(RIGHT);\n if (isValidMove(curr, r + 1, c))\n dirs.add(DOWN);\n } else if (bodyDir == DOWN) {\n if (isValidMove(curr, r + 1, c))\n dirs.add(DOWN);\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c + 1))\n dirs.add(RIGHT);\n }\n if (isValidMove(curr, r, c - 1))\n dirs.add(LEFT);\n } else //if(curr.getBodyDirection()==LEFT)\n {\n if (isValidMove(curr, r - 1, c))\n dirs.add(UP);\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r + 1, c))\n dirs.add(DOWN);\n }\n if (isValidMove(curr, r, c - 1))\n dirs.add(LEFT);\n }\n int rand = 0;\n if (dirs.size() > 0)\n rand = dirs.get((int) (Math.random() * dirs.size()));\n if (curr.isFlying()) { //if aircraft is flying in the visible board, don't change direction\n if (r == 1 && (c == 0 || c == board[0].length - 1)) //we are in the first row but behind a border\n { //we only want aircraft to appear in row 1 in EARTH INVADERS (like the UFO in space invaders)\n if (bodyDir == LEFT || bodyDir == RIGHT) {\n rand = UP;\n if (Math.random() < .5)\n rand = DOWN;\n } else if (c == 0)\n rand = RIGHT;\n else if (c == board[0].length - 1)\n rand = LEFT;\n else\n //if(dirs.contains(bodyDir))\n rand = bodyDir;\n } else if (r == 0 || c == 0 || r == board.length - 1 || c == board[0].length - 1) {\n rand = bodyDir;\n if (r == 0 && c == 0) {\n rand = RIGHT;\n if (Math.random() < .5)\n rand = DOWN;\n } else if (r == 0 && c == board[0].length - 1) {\n rand = LEFT;\n if (Math.random() < .5)\n rand = DOWN;\n } else if (r == board.length - 1 && c == 0) {\n rand = RIGHT;\n if (Math.random() < .5)\n rand = UP;\n } else if (r == board.length - 1 && c == board[0].length - 1) {\n rand = LEFT;\n if (Math.random() < .5)\n rand = UP;\n }\n } else if (/*dirs.contains(bodyDir) && */(r > 0 && c > 0 && r < board.length - 1 && c < board[0].length - 1))\n rand = bodyDir; //make it so aircraft prefer to keep going the same direciton\n\n } else if (name.startsWith(\"TRAIN\")) {//make it so trains prefer to follow the right wall\n for (int j = 0; j < dirs.size(); j++)\n if (dirs.get(j) != bodyDir) {\n rand = dirs.get(j);\n break;\n }\n }\n curr.setDirection(rand);\n curr.setBodyDirection(rand);\n }\n }//***end aircraft/train movement\n if (leftMost == 1) //move vehicles down and start them moving right\n {\n if (EI_moving == LEFT) {\n EI_moving = DOWN;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (lowest < board.length - 3 && !curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setRow(curr.getRow() + 1);\n }\n } else if (EI_moving == DOWN) {\n EI_moving = RIGHT;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\")) {\n curr.setDirection(RIGHT);\n curr.setBodyDirection(RIGHT);\n }\n }\n } else if (EI_moving == RIGHT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(RIGHT);\n }\n }//***end leftmost is first col\n else if (rightMost == board[0].length - 2) //move vehicles down and start them moving left\n {\n if (EI_moving == RIGHT) {\n EI_moving = DOWN;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (lowest < board.length - 3 && !curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setRow(curr.getRow() + 1);\n }\n } else if (EI_moving == DOWN) {\n EI_moving = LEFT;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\")) {\n curr.setDirection(LEFT);\n curr.setBodyDirection(LEFT);\n }\n }\n } else if (EI_moving == LEFT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(LEFT);\n }\n }//***end rightmost is last col\n else if (EI_moving == LEFT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(LEFT);\n }\n else if (EI_moving == RIGHT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(RIGHT);\n }\n return;\n }//***end EARTH INVADERS enemy movements\n for (int i = 2; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n String name = curr.getName();\n int r = curr.getRow();\n int c = curr.getCol();\n if (r > 0 && c > 0 && r < board.length - 1 && c < board[0].length - 1 && (curr instanceof Vehicle))\n ((Vehicle) (curr)).setOnField(true);\n\n if (curr.isFlying() && webs[panel].size() > 0) {\n int x = curr.findX(cellSize);\n int y = curr.findY(cellSize);\n for (int p = 0; p < webs[panel].size(); p++) {\n int[] ray = webs[panel].get(p);\n if (Utilities.isPointOnRay(x, y, ray[0], ray[1], ray[2], ray[3])) {\n explosions.add(new Explosion(\"BIG\", x, y, explosionImages, animation_delay));\n Ordinance.radiusDamage(-1, x, y, 25, panel, .5);\n Spawner.resetEnemy(i);\n webs[panel].remove(p);\n p--;\n Structure str1 = structures[ray[4]][ray[5]][panel];\n Structure str2 = structures[ray[6]][ray[7]][panel];\n if (str1 != null)\n str1.setWebValue(0);\n if (str2 != null)\n str2.setWebValue(0);\n Utilities.updateKillStats(curr);\n break;\n }\n }\n }\n //reset any ground vehicle that ended up in the water\n //reset any train not on tracks - we need this because a player might change panels as a vehicle spawns\n if (name.startsWith(\"TRAIN\")) {\n Structure str = structures[r][c][panel];\n if (str != null && str.getName().equals(\"hole\") && str.getHealth() != 0) {\n explosions.add(new Explosion(\"BIG\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Utilities.updateKillStats(curr);\n Spawner.resetEnemy(i);\n continue;\n } else if (board[r][c][panel].startsWith(\"~\")) {\n explosions.add(new Explosion(\"BIG\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n } else if (!board[r][c][panel].startsWith(\"T\")) {\n explosions.add(new Explosion(\"SMALL\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n }\n } else //ground vehicles\n if (!curr.isFlying() && !curr.getName().startsWith(\"BOAT\") && (curr instanceof Vehicle)) {\n\n if (((Vehicle) (curr)).getStunTime() > numFrames) //ground unit might be stunned by WoeMantis shriek\n continue;\n if (board[r][c][panel].startsWith(\"~\")) {\n explosions.add(new Explosion(\"SMALL\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n }\n } else //reset any water vehicle that ended up on land\n if (name.startsWith(\"BOAT\")) {\n if (!board[r][c][panel].startsWith(\"~\")) {\n explosions.add(new Explosion(\"SMALL\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n }\n } else if (curr.getHealth() <= 0) {\n Spawner.resetEnemy(i);\n continue;\n }\n\n //if a ground unit has been on the playable field and leaves it, respawn them\n if (!curr.isFlying() && !name.startsWith(\"TRAIN\") && (curr instanceof Vehicle)) {\n if ((r == 0 || c == 0 || r == board.length - 1 || c == board[0].length - 1) && ((Vehicle) (curr)).getOnField()) {\n ((Vehicle) (curr)).setOnField(false);\n Spawner.resetEnemy(i);\n continue;\n }\n }\n if (name.endsWith(\"nukebomber\")) {//for the nukebomber, set the detonation coordinates so nuke fires when the plane exits the field\n int dr = curr.getDetRow();\n int dc = curr.getDetCol();\n int bd = curr.getBodyDirection();\n int dd = curr.getDetDir();\n if (bd == dd && (((bd == LEFT || bd == RIGHT) && c == dc) || (bd == UP || bd == DOWN) && r == dr)) {\n Ordinance.nuke();\n curr.setDetRow(-1);\n curr.setDetCol(-1);\n }\n }\n\n if (curr.isMoving())\n continue;\n int bodyDir = curr.getBodyDirection();\n curr.clearDirections();\n int[] target = isMonsterInSight(curr);\n int mDir = target[0]; //direction of the monster, -1 if none\n int monsterIndex = target[1]; //index of the monster in the players array, -1 if none\n ArrayList<Integer> dirs = new ArrayList(); //array of preferred directions - everything but the reverse of their body position\n if (bodyDir == UP) {\n if (isValidMove(curr, r - 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == UP) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(UP);\n }\n if (isValidMove(curr, r, c + 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == RIGHT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(RIGHT);\n }\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c - 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == LEFT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(LEFT);\n }\n }\n } else if (bodyDir == RIGHT) {\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r - 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == UP) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(UP);\n }\n }\n if (isValidMove(curr, r, c + 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == RIGHT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(RIGHT);\n }\n if (isValidMove(curr, r + 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == DOWN) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(DOWN);\n }\n } else if (bodyDir == DOWN) {\n if (isValidMove(curr, r + 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == DOWN) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(DOWN);\n }\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c + 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == RIGHT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(RIGHT);\n }\n }\n if (isValidMove(curr, r, c - 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == LEFT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(LEFT);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n\n if (isValidMove(curr, r - 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == UP) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(UP);\n }\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r + 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == DOWN) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(DOWN);\n }\n }\n if (isValidMove(curr, r, c - 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == LEFT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(LEFT);\n }\n }\n\n if (dirs.size() > 0) {\n if (curr instanceof Monster) {//***MONSTER AI*******************\n double headTurnProb = 0.25;\n double stompProb = 0.5;\n int vDir = isVehicleInSight(curr);\n if (vDir >= 0) {\n boolean airShot = false;\n int vD = vDir;\n if (vD >= 10) {\n airShot = true;\n vD -= 10;\n }\n if (curr.head360() || !Utilities.oppositeDirections(vD, curr.getHeadDirection())) {\n curr.setHeadDirection(vD);\n if ((curr.getName().startsWith(\"Gob\") || curr.getName().startsWith(\"Boo\")) && numFrames >= curr.getLastShotTime() + curr.getReloadTime()) {\n Bullet temp = null;\n if (curr.getName().startsWith(\"Boo\")) {\n temp = new Bullet(curr.getName() + vD, curr.getX(), curr.getY(), 50, beamImages, SPEED, \"BEAM\", SPEED * 10, airShot, i, -1, -1);\n } else if (curr.getName().startsWith(\"Gob\")) {\n temp = new Bullet(\"flame\" + vD, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", SPEED * 4, airShot, i, -1, -1);\n }\n if (temp != null) {\n temp.setDirection(vD);\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n continue;\n }\n }\n }\n } else if (Math.random() < headTurnProb) {\n String hd = \"right\";\n if (Math.random() < .5)\n hd = \"left\";\n Utilities.turnHead(curr, hd);\n }\n Structure str = structures[r][c][panel];\n if (str != null && str.getHealth() > 0 && str.isDestroyable() && !str.getName().startsWith(\"FUEL\") && Math.random() < stompProb)\n playerMove(KeyEvent.VK_SPACE, i);\n else {\n int dir = dirs.get((int) (Math.random() * dirs.size()));\n if (dir == UP) {\n if (curr.getBodyDirection() != UP) {\n curr.setBodyDirection(UP);\n curr.setHeadDirection(UP);\n } else {\n if (!curr.isSwimmer() && board[r - 1][c][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (r - 1 >= 1) {\n str = structures[r - 1][c][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_UP, i);\n }\n } else if (dir == DOWN) {\n if (curr.getBodyDirection() != DOWN) {\n curr.setBodyDirection(DOWN);\n curr.setHeadDirection(DOWN);\n } else {\n if (!curr.isSwimmer() && board[r + 1][c][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (r + 1 <= structures.length - 1) {\n str = structures[r + 1][c][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_DOWN, i);\n }\n } else if (dir == LEFT) {\n if (curr.getBodyDirection() != LEFT) {\n curr.setBodyDirection(LEFT);\n curr.setHeadDirection(LEFT);\n } else {\n if (!curr.isSwimmer() && board[r][c - 1][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (c - 1 >= 1) {\n str = structures[r][c - 1][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_LEFT, i);\n }\n } else if (dir == RIGHT) {\n if (curr.getBodyDirection() != RIGHT) {\n curr.setBodyDirection(RIGHT);\n curr.setHeadDirection(RIGHT);\n } else {\n if (!curr.isSwimmer() && board[r][c + 1][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (c + 1 <= board[0].length - 1) {\n str = structures[r][c + 1][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_RIGHT, i);\n }\n }\n }\n continue;\n }//end monster AI movement\n else //shoot at a target\n if (name.endsWith(\"troops\") || name.endsWith(\"jeep\") || name.endsWith(\"police\") || name.startsWith(\"TANK\") || name.endsWith(\"coastguard\") || name.endsWith(\"destroyer\") || name.endsWith(\"fighter\") || name.equals(\"AIR bomber\")) {\n boolean airShot = false;\n if (gameMode == EARTH_INVADERS) //we don't want vehicles to shoot each other\n {\n airShot = true;\n curr.setHeadDirection(DOWN);\n }\n if (monsterIndex >= 0 && monsterIndex < players.length && players[monsterIndex].isFlying())\n airShot = true;\n if (curr.getName().endsWith(\"fighter\"))\n curr.setDirection(bodyDir); //keep moving while shooting\n if (mDir != -1 && curr.getRow() > 0 && curr.getCol() > 0 && curr.getRow() < board.length - 1 && curr.getCol() < board[0].length - 1) { //don't shoot from off the visible board\n if ((mDir == bodyDir || ((curr.getName().startsWith(\"TANK\") || curr.getName().endsWith(\"jeep\") || name.equals(\"AIR bomber\")) && (mDir == curr.getHeadDirection() || name.equals(\"AIR bomber\")))) && numFrames >= curr.getLastShotTime() + curr.getReloadTime()) { //AIR bomber needs to be able to drop bombs if they see the monster in front of them or behind them, so we need to check the name in two conditions\n Bullet temp;\n if (name.endsWith(\"jeep\") || name.endsWith(\"coastguard\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 65, (int) (Math.random() * 10) + 30);\n temp = new Bullet(\"jeep\" + mDir, curr.getX(), curr.getY(), 5, machBulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, i, -1, -1);\n } else if (name.endsWith(\"troops\") || name.endsWith(\"police\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 70, (int) (Math.random() * 10) + 20);\n temp = new Bullet(\"troops\" + mDir, curr.getX(), curr.getY(), 3, bulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, i, -1, -1);\n } else if (name.endsWith(\"destroyer\") || name.endsWith(\"artillery\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n temp = new Bullet(\"destroyer\" + mDir, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", SPEED * 3, true, i, players[monsterIndex].findX(cellSize), players[monsterIndex].findY(cellSize));\n } else if (name.endsWith(\"fighter\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n temp = new Bullet(\"fighter\" + mDir, curr.getX(), curr.getY(), 30, rocketImages, SPEED, \"SHELL\", SPEED * 8, true, i, players[monsterIndex].findX(cellSize), players[monsterIndex].findY(cellSize));\n } else if (name.endsWith(\"missile\")) {\n temp = new Bullet(\"missile\" + mDir, curr.getX(), curr.getY(), 50, rocketImages, SPEED, \"SHELL\", SPEED * 3, true, i, players[monsterIndex].findX(cellSize), players[monsterIndex].findY(cellSize));\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n } else if (name.endsWith(\"flame\")) {\n temp = new Bullet(\"flame\" + mDir, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", SPEED * 4, airShot, i, -1, -1);\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n } else if (name.equals(\"AIR bomber\")) {\n temp = null;\n if (!DISABLE_BOMBERS) {\n int mR = players[PLAYER1].getRow(); //main player row & col\n int mC = players[PLAYER1].getCol();\n int mR2 = -99; //possible 2nd monster row & col\n int mC2 = -99;\n if (p1partner) {\n mR2 = players[PLAYER2].getRow();\n mC2 = players[PLAYER2].getCol();\n }\n if (players[PLAYER1].getHealth() > 0 && (Math.abs(r - mR) <= 2 || Math.abs(c - mC) <= 2 || Math.abs(r - mR2) <= 2 || Math.abs(c - mC2) <= 2)) {//our bomber is in the same row & col as a monster + or - 1\n if (bodyDir == UP && r < board.length - 1) {\n Ordinance.bigExplosion(curr.getX(), curr.getY() + (cellSize * 2), panel);\n Ordinance.radiusDamage(-1, curr.getX(), curr.getY() + (cellSize * 2), 50, panel, .25);\n } else if (bodyDir == DOWN && r > 1) {\n Ordinance.bigExplosion(curr.getX(), curr.getY() - (cellSize * 2), panel);\n Ordinance.radiusDamage(-1, curr.getX(), curr.getY() - (cellSize * 2), 50, panel, .25);\n } else if (bodyDir == RIGHT && c < board[0].length - 1) {\n Ordinance.bigExplosion(curr.getX() - (cellSize * 2), curr.getY(), panel);\n Ordinance.radiusDamage(-1, curr.getX() - (cellSize * 2), curr.getY(), 50, panel, .25);\n } else if (bodyDir == LEFT && c > 1) {\n Ordinance.bigExplosion(curr.getX() + (cellSize * 2), curr.getY(), panel);\n Ordinance.radiusDamage(-1, curr.getX() + (cellSize * 2), curr.getY(), 50, panel, .25);\n }\n }\n }\n } else {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n temp = new Bullet(\"\" + mDir, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", SPEED * 5, airShot, i, -1, -1);\n }\n if (temp != null)\n temp.setDirection(mDir);\n\n if (name.endsWith(\"troops\") || name.endsWith(\"police\") && Math.random() < .5) //make the police move towards the monster half the time\n {\n if (mDir == UP && isValidMove(curr, curr.getRow() - 1, curr.getCol()))\n curr.setDirection(UP);\n else if (mDir == DOWN && isValidMove(curr, curr.getRow() + 1, curr.getCol()))\n curr.setDirection(DOWN);\n else if (mDir == LEFT && isValidMove(curr, curr.getRow(), curr.getCol() - 1))\n curr.setDirection(LEFT);\n else if (mDir == RIGHT && isValidMove(curr, curr.getRow(), curr.getCol() + 1))\n curr.setDirection(RIGHT);\n else\n curr.setDirection(-1);\n }\n if (temp != null && players[PLAYER1].getHealth() > 0) {\n if (gameMode == EARTH_INVADERS && !curr.isFlying()) {\n } else {\n if (numFrames >= ceaseFireTime + ceaseFireDuration || gameMode == EARTH_INVADERS) {\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n continue;\n }\n }\n }\n } else //change to face the monster to line up a shot\n {\n if (name.endsWith(\"troops\") || name.endsWith(\"police\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.endsWith(\"artillery\")) {\n curr.setDirection(-1); //stop to shoot\n curr.setBodyDirection(mDir);\n } else if (curr.getName().startsWith(\"TANK\") || curr.getName().endsWith(\"jeep\"))\n curr.setHeadDirection(mDir);\n continue;\n }\n }\n }\n int rand = dirs.get((int) (Math.random() * dirs.size()));\n if (curr.isFlying() && (r > 0 && c > 0 && r < board.length - 1 && c < board[0].length - 1)) {\n rand = bodyDir; //make it so aircraft prefer to keep going the same direciton\n } else if (name.startsWith(\"TRAIN\")) {//make it so trains prefer to follow the right wall\n for (int j = 0; j < dirs.size(); j++)\n if (dirs.get(j) != bodyDir) {\n rand = dirs.get(j);\n break;\n }\n }\n curr.setDirection(rand);\n curr.setBodyDirection(rand);\n\n continue;\n }\n //if no preferred direction, include the option to turn around\n //civilians should prefer to turn around rather than approach the monster\n if (name.endsWith(\"civilian\") || name.endsWith(\"bus\")) {\n if (bodyDir == mDir) //if we are facing the same direction as the monster, turn around\n {\n if (bodyDir == UP && isValidMove(curr, curr.getRow() + 1, curr.getCol())) {\n curr.setDirection(DOWN);\n curr.setBodyDirection(DOWN);\n continue;\n } else if (bodyDir == DOWN && isValidMove(curr, curr.getRow() - 1, curr.getCol())) {\n curr.setDirection(UP);\n curr.setBodyDirection(UP);\n continue;\n } else if (bodyDir == LEFT && isValidMove(curr, curr.getRow(), curr.getCol() + 1)) {\n curr.setDirection(RIGHT);\n curr.setBodyDirection(RIGHT);\n continue;\n } else if (bodyDir == RIGHT && isValidMove(curr, curr.getRow(), curr.getCol() - 1)) {\n curr.setDirection(LEFT);\n curr.setBodyDirection(LEFT);\n continue;\n }\n }\n }\n int rand = (int) (Math.random() * 4);\n if (rand == UP && isValidMove(curr, curr.getRow() - 1, curr.getCol())) {\n curr.setDirection(UP);\n curr.setBodyDirection(UP);\n continue;\n }\n if (rand == DOWN && isValidMove(curr, curr.getRow() + 1, curr.getCol())) {\n curr.setDirection(DOWN);\n curr.setBodyDirection(DOWN);\n continue;\n }\n if (rand == LEFT && isValidMove(curr, curr.getRow(), curr.getCol() - 1)) {\n curr.setDirection(LEFT);\n curr.setBodyDirection(LEFT);\n continue;\n }\n if (rand == RIGHT && isValidMove(curr, curr.getRow(), curr.getCol() + 1)) {\n curr.setDirection(RIGHT);\n curr.setBodyDirection(RIGHT);\n continue;\n }\n\n }\n }", "protected void wander() {\n\t\tfor(int i=3;i>0;){\n\t\t\tfindChest();\n\t\t\tint num = ((int) (Math.random()*100)) % 4;\n\t\t\tswitch (num+1){\n\t\t\t\tcase 1 :\n\t\t\t\t\tif(!(character.xOfFighter-1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())\n\t\t\t\t\t\t\t&&game.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter-1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter-1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter-1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tif(!(character.xOfFighter+1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter+1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter+1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter+1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfindChest();\n\t}", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}", "protected int getMove() \t\t\t\t{\treturn move;\t\t}", "public void calcNewPos() {\n if (!this.isDying) {\n //super.calcNewPos();\n //this.velY+=gravity;\n this.velY = 5;\n newX = posX + velX;\n newY = posY + velY;\n this.animState = monster.getNext(action, direction);\n\n collBottom = false;\n collLeftRight = false;\n } else {\n // We're dying, let's fall through the ground..\n this.newY += this.velY;\n if (deadCycleCount < 2) {\n this.animState = monster.getNext(action, direction);\n }\n }\n }", "public void doAction()\n {\n \n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n \n //Basic action:\n //Grab Gold if we can.\n if (w.hasGlitter(cX, cY))\n {\n w.doAction(World.A_GRAB);\n return;\n }\n \n //Basic action:\n //We are in a pit. Climb up.\n if (w.isInPit())\n {\n w.doAction(World.A_CLIMB);\n return;\n }\n //Test the environment\n /*if (w.hasBreeze(cX, cY))\n {\n System.out.println(\"I am in a Breeze\");\n }\n if (w.hasStench(cX, cY))\n {\n System.out.println(\"I am in a Stench\");\n }\n if (w.hasPit(cX, cY))\n {\n System.out.println(\"I am in a Pit\");\n }\n if (w.getDirection() == World.DIR_RIGHT)\n {\n System.out.println(\"I am facing Right\");\n }\n if (w.getDirection() == World.DIR_LEFT)\n {\n System.out.println(\"I am facing Left\");\n }\n if (w.getDirection() == World.DIR_UP)\n {\n System.out.println(\"I am facing Up\");\n }\n if (w.getDirection() == World.DIR_DOWN)\n {\n System.out.println(\"I am facing Down\");\n }\n */\n \n //decide next move\n if(w.hasStench(cX, cY)&&w.hasArrow())//Wumpus can be shot if located\n {\n if((w.hasStench(cX, cY+2))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX+2, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX, cY-1))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX, cY+1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX, cY-2))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX-2, cY))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX, cY+1))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX, cY-1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n else if(cX==1&&cY==1) //First tile. Shoot North. If wumpus still alive, store its location as (2,1) to avoid it\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n if(w.hasStench(cX, cY))\n {\n wumpusLoc[0] = 2;\n wumpusLoc[1] = 1;\n }\n }\n else if(cX==1&&cY==4) //Condition for corner\n {\n if(w.isVisited(1, 3))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(2, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==1) //Condition for corner\n {\n if(w.isVisited(3, 1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 2))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==4) //Condition for corner\n {\n if(w.isVisited(3, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 3))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if((cX==1)&&(w.isVisited(cX+1, cY-1))) //Condition for edge\n {\n \n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cX==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==1)&&(w.isVisited(cX-1, cY+1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else //Can't locate wumpus, go back to safe location\n {\n turnTo((w.getDirection()+2)%4);\n w.doAction(World.A_MOVE);\n }\n }\n else // No stench. Explore \n {\n if(w.isValidPosition(cX, cY-1)&&!w.isVisited(cX, cY-1)&&isSafe(cX, cY-1)) \n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY)&&!w.isVisited(cX+1, cY)&&isSafe(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY)&&!w.isVisited(cX-1, cY)&&isSafe(cX-1,cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n else\n {\n if(w.isValidPosition(cX, cY+1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n }\n }\n \n }", "@Override\n protected void generateMonsters()\n {\n generateWeakEnemies(2);\n generateStrongEnemies(12);\n generateElites(10);\n }", "public int move () {\n intMoveState = 0;\r\n int pixel1;\r\n int pixel2;\r\n \r\n if (blnUp) {\r\n pixel1 = getPixelRGB (X - 25, Y + 10, \"r\");\r\n pixel2 = getPixelRGB (X + 25, Y + 10, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n Y -= intSpeed;\r\n intMoveState -= 1;\r\n }\r\n }\r\n if (blnDown) {\r\n pixel1 = getPixelRGB (X - 25, Y + 46, \"r\");\r\n pixel2 = getPixelRGB (X + 25, Y + 46, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n Y += intSpeed;\r\n intMoveState += 1;\r\n }\r\n }\r\n if (blnLeft) {\r\n pixel1 = getPixelRGB (X - 30, Y + 15, \"r\");\r\n pixel2 = getPixelRGB (X - 30, Y + 30, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n X -= intSpeed;\r\n intMoveState -= 2;\r\n }\r\n }\r\n if (blnRight) {\r\n pixel1 = getPixelRGB (X + 30, Y + 15, \"r\");\r\n pixel2 = getPixelRGB (X + 30, Y + 30, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n X += intSpeed;\r\n intMoveState += 2;\r\n }\r\n }\r\n \r\n try {\r\n dblAngle = Math.atan2((MouseY - Y),(MouseX - X));\r\n if (dblAngle < - Math.PI/4) {\r\n dblAngle = 2 * Math.PI + dblAngle;\r\n }\r\n }catch (ArithmeticException e) {\r\n if (MouseY < Y) {\r\n dblAngle = 3 * Math.PI/2;\r\n }else {\r\n dblAngle = Math.PI/2;\r\n }\r\n }\r\n degreesAngle = (int) (Math.toDegrees(dblAngle)); \r\n \r\n if(intHealth < 0 && !UserInterface.deathScreenVisible){\r\n UserInterface.deathScreenVisible = true;\r\n deathTime = System.nanoTime();\r\n ClientMain.ssm.sendText(\"player,\" + ClientMain.intPlayerNumber + \",iamdeadlol\");\r\n }\r\n \r\n return getPixelRGB (X, Y + 46, \"g\");\r\n }", "private void move()\n\t{\n\t\tif(moveRight)\n\t\t{\n\t\t\tif(position.getX() + speedMovement <= width)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() +speedMovement+speedBoost);\n\t\t\t\tmoveRight = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(moveLeft)\n\t\t{\n\t\t\tif(position.getX() - speedMovement > 0)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() -speedMovement - speedBoost + gravitationalMovement);\n\t\t\t\tmoveLeft = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If a gravitational field is pushing the ship, set the movement accordingly\n\t\t */\n\t\tif(gravitationalMovement>0)\n\t\t{\n\t\t\tif(position.getX()+gravitationalMovement <= width)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(position.getX() + gravitationalMovement > 0)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t}", "public void move()\n {\n if (!alive) {\n return;\n }\n\n if (speedTimer > 0) {\n speedTimer --;\n } else if (speedTimer == 0 && speed != DEFAULT_SPEED) {\n speed = DEFAULT_SPEED;\n }\n\n Location last = playerLocations.get(playerLocations.size()-1);\n Location next = null;\n\n // For the speed, iterate x blocks between last and next\n\n if (direction == UPKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() - speed * getPixelSize()));\n } else if (direction == DOWNKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() + speed * getPixelSize()));\n } else if (direction == LEFTKEY)\n {\n next = getLocation((int)(last.getX() - speed * getPixelSize()), last.getY());\n } else if (direction == RIGHTKEY)\n {\n next = getLocation((int)(last.getX() + speed * getPixelSize()), last.getY());\n }\n\n ArrayList<Location> line = getLine(last, next);\n\n if (line.size() == 0) {\n gameOver();\n return;\n }\n\n for (Location loc : line) {\n if (checkCrash (loc)) {\n gameOver();\n return;\n } else {\n // Former bug: For some reason when a player eats a powerup a hole appears in the line where the powerup was.\n Location l2 = getLocation(loc.getX(), loc.getY());\n l2.setType(LocationType.PLAYER);\n l2.setColor(this.col);\n\n playerLocations.add(l2);\n getGridCache().add(l2);\n }\n }\n }", "public void move() {\n\tupdateSwapTime();\n\tupdateAttackTime();\n\n\tif (enemyNear) {\n\t if (moved) {\n\t\tstopMove();\n\t\tmoved = false;\n\t }\n\t} else {\n\t if (!moved) {\n\t\tcontinueMove();\n\t\tmoved = true;\n\t }\n\n\t x += dx;\n\t y += dy;\n\n\t if (x < speed) {\n\t\tx = speed;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y < speed) {\n\t\ty = speed;\n\t\tdy = (-1) * dy;\n\t }\n\n\t if (x > MapSize.getSIZE().getWidth() - 40) {\n\t\tx = MapSize.getSIZE().getWidth() - 40;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y > MapSize.getSIZE().getHeight() - 40) {\n\t\ty = MapSize.getSIZE().getHeight() - 40;\n\t\tdy = (-1) * dy;\n\t }\n\t}\n }", "public void enemymoveGarret(){\n\t\tint YEG = 0;\n\t\tint XEG = 0;\n\t\tint[] turns = new int[]{0,0,0,0,0,2,1,1,1,1,1,3};//dependign on the placement garret will move a certain way\n\t\tfor(int i = 0 ; i < this.Garret.length;i++){//this grabs garrets current locations\n\t\t\tfor(int p = 0; p < this.Garret.length;p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tYEG = i;\n\t\t\t\t\tXEG = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint move = turns[count];\n\t\tswitch(move){//first block is up and down second block is left and right\n\t\t\tcase 0:\n\t\t\t\tif(this.area[YEG][XEG-1] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG][XEG-1] = 1;//to turn left\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\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\tif(this.area[YEG][XEG+1] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG][XEG+1] = 1;//to turn right\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\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\tif(this.area[YEG-1][XEG] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG-1][XEG] = 1;//to turn up\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\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\tif(this.area[YEG+1][XEG] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG+1][XEG] = 1;//to turn down\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}//end of switch\t\n\t}", "private void intelligentDecideMove() {\n\t\tMonster target=nearestEnemy();\r\n\t\tif(target!=null){\t\t\t\t//FIRST PRIORITY: pursue the target if it can be seen.\r\n\t\t\tswitchStates(PURSUIT);\r\n\t\t\ttargetTile=new Tile(target.currentTile);\r\n\t\t\t//saveMove();\r\n\t\t\tmonster.moveTowards(target);\r\n\t\t}\r\n\t\t\t\r\n\t\telse{\r\n\t\t\ttargetLostResponse();\r\n\t\t\t}\r\n\t}", "public void update() {\n\t\t// shooting and moving! This results in a slower movement, and unit self-targeting.\n\t\tif (action == 3 && !(this instanceof Grenadier) && !(this instanceof Sniper)) { // can't be a tank\n\t\t\tif (stop()) { // the method stop detects if we have arrived at correct position or reached max distance\n\t\t\t\txa = 0;\n\t\t\t\tya = 0;\n\t\t\t} else move(xa - xa / 8 * 5, ya - ya / 8 * 5); // SLOWS DOWN MOVEMENT\n\n\t\t\tUnit u = target(); // this is the enemy unit it is targeting.\n\t\t\tif (u != null) {\n\t\t\t\tdir = Math.atan2(u.getY() - y, u.getX() - x);\n\t\t\t\tupdateShooting();\n\t\t\t}\n\t\t}\n\n\t\t// shooting only\n\t\telse if (action == 2) {\n\t\t\tupdateShooting();\n\t\t}\n\t\t\n\t\t// moving only\n\t\telse if (action == 1) {\n\t\t\tif (unitType.equals(\"Assassin\") || unitType.equals(\"Zombie\")) { // these are units that deal with collisions!\n\t\t\t\tunitCollision(); // these three units have methods that specialize in collision\n\t\t\t}\n\n\t\t\tif (stop()) { // the method stop detects if we have arrived at correct position!\n\t\t\t\txa = 0;\n\t\t\t\tya = 0;\n\t\t\t\taction = 0;\n\t\t\t} else move(xa, ya); // YOU MUST ROUND TO A CERTAIN NUMBER OF DECIMAL PLACES IN ORDER TO REDUCE CHOPPINESS OF MOVEMENT\n\t\t}\n\t\tupdateAnimation();\n\n\t}", "public void updatemove() {\n\t\tmove = new Movement(getX(), getY(),dungeon,this);\n\t\t//System.out.println(\"Updated\");\n\t\tnotifys();\n\t\tif(this.getInvincible()) {\n\t\t\tsteptracer++;\n\t\t}\n\t\tdungeon.checkGoal();\n\t}", "@Override\n public void tick() {\n x += dirX * speed;\n y += dirY * speed;\n \n //Enemy berjalan sendiri (memantul)\n if(x >= Game.WIDTH - 60){\n dirX = -1;\n } else if(y >= Game.HEIGHT - 80){\n dirY = -1;\n } else if(x <= 5){\n dirX = 1;\n } else if(y <= 5){\n dirY = 1;\n }\n\n }", "public Command run() {\n Worm enemyWormSpecial = getFirstWormInRangeSpecial();\n if (enemyWormSpecial != null) {\n if (gameState.myPlayer.worms[1].id == gameState.currentWormId) {\n if (gameState.myPlayer.worms[1].bananaBombs.count > 0) {\n return new BananaBombCommand(enemyWormSpecial.position.x, enemyWormSpecial.position.y);\n }\n }\n if (gameState.myPlayer.worms[2].snowballs.count > 0) {\n return new SnowballCommand(enemyWormSpecial.position.x, enemyWormSpecial.position.y);\n }\n }\n\n //PRIORITAS 2: NORMAL ATTACK (Shoot)\n Worm enemyWorm = getFirstWormInRange();\n if (enemyWorm != null) {\n Direction direction = resolveDirection(currentWorm.position, enemyWorm.position);\n return new ShootCommand(direction);\n }\n\n //PRIORITAS 3: MOVE (Karena sudah opsi serang tidak memungkinkan)\n\n //Ambil semua koordinat di cell Worm saat ini selain current cell\n List<Cell> surroundingBlocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n \n\n //Kalau Worm saat ini adalah Commander, masuk ke algoritma move khusus Commander\n if(gameState.currentWormId == 1){\n\n //Commander akan memprioritaskan untuk bergerak menuju Technician (Worm yang memiliki Snowball)\n Worm technicianWorm = gameState.myPlayer.worms[2];\n\n\n //Mencari cell yang akan menghasilkan jarak terpendek menuju Worm tujuan\n Cell shortestCellToTechnician = getShortestPath(surroundingBlocks, technicianWorm.position.x, technicianWorm.position.y);\n \n //Commander akan bergerak mendekati Technician sampai dengan jarak dia dan Technician paling dekat adalah 3 satuan\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, technicianWorm.position.x, technicianWorm.position.y) > 3) {\n if(shortestCellToTechnician.type == CellType.AIR) {\n return new MoveCommand(shortestCellToTechnician.x, shortestCellToTechnician.y);\n }else if (shortestCellToTechnician.type == CellType.DIRT) {\n return new DigCommand(shortestCellToTechnician.x, shortestCellToTechnician.y);\n }\n }\n\n //Apabila Commander dan Technician sudah berdekatan, maka Commander akan bergerak mencari musuh terdekat untuk melancarkan serangan\n int min = 10000000;\n Worm wormMusuhTerdekat = opponent.worms[0];\n for (Worm calonMusuh : opponent.worms) {\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, calonMusuh.position.x, calonMusuh.position.y) < min) {\n min = euclideanDistance(currentWorm.position.x, currentWorm.position.y, calonMusuh.position.x, calonMusuh.position.y);\n wormMusuhTerdekat = calonMusuh;\n }\n }\n\n //Mencari cell yang paling dekat ke musuh yang sudah ditemukan\n Cell shortestCellToEnemy = getShortestPath(surroundingBlocks, wormMusuhTerdekat.position.x, wormMusuhTerdekat.position.y);\n if(shortestCellToEnemy.type == CellType.AIR) {\n return new MoveCommand(shortestCellToEnemy.x, shortestCellToEnemy.y);\n }else if (shortestCellToEnemy.type == CellType.DIRT) {\n return new DigCommand(shortestCellToEnemy.x, shortestCellToEnemy.y);\n }\n }\n\n //Command move untuk worm selain Commando. Worm selain commando akan mendekat menuju posisi worm Commando\n Worm commandoWorm = gameState.myPlayer.worms[0];\n \n //Selama Commando masih hidup, maka Worm lainnya akan mendekat menuju Commando\n if (commandoWorm.health > 0) {\n //Cell cellCommandoWorm = surroundingBlocks.get(0);\n\n //Mencari cell yang membuat jarak menuju Commando paling dekat\n Cell shortestCellToCommander = getShortestPath(surroundingBlocks, commandoWorm.position.x, commandoWorm.position.y);\n\n if(shortestCellToCommander.type == CellType.AIR) {\n return new MoveCommand(shortestCellToCommander.x, shortestCellToCommander.y);\n }else if (shortestCellToCommander.type == CellType.DIRT) {\n return new DigCommand(shortestCellToCommander.x, shortestCellToCommander.y);\n }\n }\n\n // PRIORITAS 4: Bergerak secara acak untuk memancing musuh mendekat\n int cellIdx = random.nextInt(surroundingBlocks.size());\n Cell block = surroundingBlocks.get(cellIdx);\n if (block.type == CellType.AIR) {\n return new MoveCommand(block.x, block.y);\n } else if (block.type == CellType.DIRT) {\n return new DigCommand(block.x, block.y);\n }\n // Kalau udah enggak bisa ngapa-ngapain.\n return new DoNothingCommand();\n \n }", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "public void preyMovement(WallBuilding wb, int x1, int x2, int y1, int y2){\r\n int b1 = wb.block.get(wb.block.stx(x1), wb.block.sty(y1));//one away\r\n int b2 = wb.block.get(wb.block.stx(x2), wb.block.sty(y2));//two away\r\n if(b1 == 0){//if there are no blocks, we can move normally\r\n if(wb.food.getObjectsAtLocation(x1, y1) == null){//if there is no food in that space\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b1 == 1){//if there is one block\r\n if(b2 == 0){//if the space after is empty, we can move too!\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b2 < 3){//there is space to move the block\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }else{//if there are 2 or 3 blocks\r\n if(b2 < 3){//there is space to move the block\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }\r\n }\r\n }", "private void checkMovement() {\n\n if (getYVelocity() < 0) state = PlayerState.JUMPING;\n if (getYVelocity() == 0) /*|| getXVelocity() == 0)*/ state = PlayerState.STANDING;\n if (Keyboard.isKeyDown(Keyboard.KEY_W)) {\n\n if (!falling && !floating()) {\n\n if (getYVelocity() >= 0) {\n this.addY(-72);\n }\n\n }\n }\n\n if (Keyboard.isKeyDown(Keyboard.KEY_A)) {\n this.addX((float) -5);\n state = PlayerState.WALKLEFT;\n }\n if (Keyboard.isKeyDown(Keyboard.KEY_D)) {\n this.addX((float) 5);\n state = PlayerState.WALKRIGHT;\n }\n if (getYVelocity() > 0) state = PlayerState.FALLING;\n }", "public void GuardMove(Map m){\r\n\t\tchar map[][]=m.getMap(); int random=-1; Random rand = new Random();\r\n\t\tmap[guard[guardpos][0]][guard[guardpos][1]]=' ';\r\n\t\tswitch(type){\r\n\t\tcase 1:\r\n\t\t\tif((sleep<=0)&&(random=rand.nextInt(5))==0){sleep=5; }\r\n\t\t\tif(sleep>0){ map[guard[guardpos][0]][guard[guardpos][1]]='g'; sleep=sleep-1; return; }\r\n\t\t\telse if(sleep==0){\r\n\t\t\t\t\trandom=rand.nextInt(2); if(random==0){direction=0-direction;}\r\n\t\t\t\t\tsleep=sleep-1; } break;\r\n\t\tcase 2: random=rand.nextInt(5); if(random==0){direction=0-direction; } }\r\n\t\tguardpos=guardpos+direction;\r\n\t\tif((guardpos==guard.length)){guardpos=0; }\r\n\t\telse if((guardpos==-1)){guardpos=guard.length-1; }\r\n\t\tmap[guard[guardpos][0]][guard[guardpos][1]]='G';}", "public void move(){\n\t\t\n\t}", "void move()\n {\n Random rand = new Random();\n int moveOrNot = rand.nextInt(2);//50% chance\n if(moveOrNot == 1)\n super.move();\n }", "public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }", "void moveMonsterToCell(Cell target)\n {\n theEngine.moveMonster(getTheMonster(),\n target.getX() - getTheMonster().getLocation().getX(),\n target.getY() - getTheMonster().getLocation().getY());\n }", "public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}", "public void move(FightCell cell);", "public void getMovements()\n {\n if(\n Greenfoot.isKeyDown(\"Up\")||Greenfoot.isKeyDown(\"W\")||\n Greenfoot.isKeyDown(\"Down\")||Greenfoot.isKeyDown(\"S\")||\n Greenfoot.isKeyDown(\"Right\")||Greenfoot.isKeyDown(\"D\")||\n Greenfoot.isKeyDown(\"Left\") ||Greenfoot.isKeyDown(\"A\")||\n getWorld().getObjects(Traps.class).isEmpty() == false //car trap engendre un mouvement sans les touches directionnelles\n )\n {\n isMoved = true;\n }\n else{isMoved = false;}\n }", "public abstract void handleMovement();", "@Override\n public void update() {\n if (!myNPC.isAlive()) {\n myNPC.setState(MovingState.DEATH);\n }\n\n if (isAttacking()) {\n if (attackCounter > 300) {\n myNPC.setState(MovingState.IDLE);\n attackCounter = 0;\n } else {\n attackCounter++;\n }\n return;\n }\n\n// randomMove();\n }", "public static int[] isMonsterInSight(Player curr) {\n int[] ans = {-1, -1};\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n String name = curr.getName();\n if (bodyDir == UP) {\n dirs.add(UP);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(DOWN);\n }\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(LEFT);\n }\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(UP);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(RIGHT);\n }\n }\n\n if (dirs == null || dirs.size() == 0)\n return ans; //{-1,-1}\n for (int m = 0; m < players.length; m++) { //skip player if Vehicle is not mind controlled and the player is not a monster\n //skip player if Vehicle is mind controlled and the player is a monster\n if (players[m] == null || players[m].getName().equals(\"NONE\") || curr == players[m] ||\n ((curr instanceof Vehicle && !((Vehicle) (curr)).isMindControlled()) && !(players[m] instanceof Monster)) ||\n ((curr instanceof Vehicle && ((Vehicle) (curr)).isMindControlled()) && (players[m] instanceof Monster)))\n continue;\n int mR = players[m].getRow();\n int mC = players[m].getCol();\n\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 0; r--) { //coastguard, destroyer, fighter planes and artillery have the monsters position known - the monster is not hidden by structures\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length; c++) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 0; c--) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n }\n if (skip)\n continue;\n }\n }\n return ans;\n }", "private void movement()\n {\n if(gameOverBool==false)\n {\n if(Greenfoot.isKeyDown(\"up\"))\n {\n setLocation(getX(), getY()-6);\n setRotation(2);\n } else if (Greenfoot.isKeyDown(\"down\")){\n setLocation(getX(), getY()+6); \n setRotation(8);\n } else{\n setRotation(5);\n } \n }\n }", "public void ApplyMovement() {\n long currTime = SystemClock.uptimeMillis();\n if(currTime - lastUpdateTime < 16){\n return;\n }\n lastUpdateTime = currTime;\n\n\n double tl_power_raw = movement_y-movement_turn+movement_x*1.5;\n double bl_power_raw = movement_y-movement_turn- movement_x*1.5;\n double br_power_raw = -movement_y-movement_turn-movement_x*1.5;\n double tr_power_raw = -movement_y-movement_turn+movement_x*1.5;\n\n\n\n\n //find the maximum of the powers\n double maxRawPower = Math.abs(tl_power_raw);\n if(Math.abs(bl_power_raw) > maxRawPower){ maxRawPower = Math.abs(bl_power_raw);}\n if(Math.abs(br_power_raw) > maxRawPower){ maxRawPower = Math.abs(br_power_raw);}\n if(Math.abs(tr_power_raw) > maxRawPower){ maxRawPower = Math.abs(tr_power_raw);}\n\n //if the maximum is greater than 1, scale all the powers down to preserve the shape\n double scaleDownAmount = 1.0;\n if(maxRawPower > 1.0){\n //when max power is multiplied by this ratio, it will be 1.0, and others less\n scaleDownAmount = 1.0/maxRawPower;\n }\n tl_power_raw *= scaleDownAmount;\n bl_power_raw *= scaleDownAmount;\n br_power_raw *= scaleDownAmount;\n tr_power_raw *= scaleDownAmount;\n\n\n //now we can set the powers ONLY IF THEY HAVE CHANGED TO AVOID SPAMMING USB COMMUNICATIONS\n topLeft.setPower(tl_power_raw);\n bottomLeft.setPower(bl_power_raw);\n bottomRight.setPower(br_power_raw);\n topRight.setPower(tr_power_raw);\n }", "public void move(Mob mob) {\n double x = mob.getxPos() - xPos;\n double y = mob.getyPos() - yPos;\n if (x < 18 && x > -18 && y < 18 && y > -18) {\n mob.reduceHealth(damage);\n hasHit = true;\n } else {\n double distancesq = x * x + y * y;\n double distance = Math.sqrt(distancesq);\n xPos += speed * x / distance;\n yPos += speed * y / distance;\n }\n }", "public void prisonerUpdate(){\r\n\t\t//check if a enemy has been spotted\r\n\t\tif (checkSight()){\r\n\t\t\tseen = true;\r\n\t\t} if (seen) {\r\n\t\t\tcreature.setSpeed(1.5);\r\n\t\t\tchaseEnemy(seenEnemy, 5);\r\n\t\t\treturn; //if player has been spotted end method here\r\n\t\t}\r\n\t\t//if no enemy has been spotted\r\n\t\tcreature.setSpeed(1);\r\n\t\tcreature.setAttacking(false);\r\n\t\troamArea();\r\n\t\tif (!checkCollision(x, y)) {\r\n\t\tgoToLocation(x, y);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Direction getMove() {\n if (ticks < MAX_TICKS_PER_ROUND - 100) {\n Direction[] dirs = Direction.values();\n return dirs[random.nextInt(dirs.length)];\n } else {\n // Move towards boat\n int deltaX = 0;\n int deltaY = 0;\n if (currentLocation.getX() < 0)\n deltaX = 1;\n else if (currentLocation.getX() > 0)\n deltaX = -1;\n\n if (currentLocation.getY() < 0)\n deltaY = 1;\n else if (currentLocation.getY() > 0)\n deltaY = -1;\n\n if (deltaX > 0 && deltaY == 0) {\n return Direction.E;\n } else if (deltaX > 0 && deltaY > 0) {\n return Direction.NE;\n } else if (deltaX > 0 && deltaY < 0) {\n return Direction.SE;\n } else if (deltaX == 0 && deltaY == 0) {\n return Direction.STAYPUT;\n } else if (deltaX == 0 && deltaY < 0) {\n return Direction.N;\n } else if (deltaX == 0 && deltaY > 0) {\n return Direction.S;\n } else if (deltaX < 0 && deltaY == 0) {\n return Direction.W;\n } else if (deltaX < 0 && deltaY > 0) {\n return Direction.NW;\n } else if (deltaX < 0 && deltaY < 0) {\n return Direction.NE;\n } else {\n throw new RuntimeException(\"I HAVE NO IDEA\");\n }\n }\n\t}", "@Override\r\n\tpublic void onLivingUpdate() {\r\n\t\tsuper.onLivingUpdate();\r\n\t\tthis.field_70888_h = this.field_70886_e;\r\n\t\tthis.field_70884_g = this.destPos;\r\n\t\tthis.destPos = (float)((double)this.destPos + (double)(this.onGround ? -1 : 4) * 0.3D);\r\n\t\t\r\n\t\tif(this.destPos < 0.0F) {\r\n\t\t\tthis.destPos = 0.0F;\r\n\t\t}\r\n\t\t\r\n\t\tif(this.destPos > 1.0F) {\r\n\t\t\tthis.destPos = 1.0F;\r\n\t\t}\r\n\t\t\r\n\t\tif(!this.onGround && this.field_70889_i < 1.0F) {\r\n\t\t\tthis.field_70889_i = 1.0F;\r\n\t\t}\r\n\t\t\r\n\t\tthis.field_70889_i = (float)((double)this.field_70889_i * 0.9D);\r\n\t\t\r\n\t\tif(!this.onGround && this.motionY < 0.0D) {\r\n\t\t\tthis.motionY *= 0.6D;\r\n\t\t}\r\n\t\t\r\n\t\tthis.field_70886_e += this.field_70889_i * 2.0F;\r\n\t\t\r\n\t\tif(!this.isChild() && !this.worldObj.isRemote && --this.timeUntilNextEgg <= 0) {\r\n\t\t\tthis.worldObj.playSoundAtEntity(this, \"mob.chickenplop\", 1.0F, (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);\r\n\t\t\tthis.dropItem(SorceryItems.goldegg, 1);\r\n\t\t\tthis.timeUntilNextEgg = this.rand.nextInt(6000) + 6000;\r\n\t\t}\r\n\t}", "private void startGame() {\n\t\tfor (int j = 0; j< this.game_.getSaveBaby().size();j++){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n this.object_batch.begin();\n this.object_batch.draw(img_baby,b.getPosition().y,b.getPosition().x,150,150);\n this.object_batch.end();\n\t\t\tthis.pos=b.getPosition();\n\t\t}\n\n/**\n * Apparition du loup et mv\n * et reset de position quand il va trop loin\n */\n\t\tif ((this.game_.getNbBunnies()%10) == 0 && this.game_.getNbBunnies()!= 0 ){\n\t\t\tthis.game_.hunt(this.pos);\n this.object_batch.begin();\n this.object_batch.draw(wolf,this.game_.getWolf().getPosition().y,this.game_.getWolf().getPosition().x,150,150);\n this.object_batch.end();\n\t\t\tthis.game_.getWolf().move(this.game_.getNbBunnies()/10);\n Gdx.app.log(\"wolf\",\"pos lapon \"+this.game_.getSaveBaby().get(0).getPosition());\n Gdx.app.log(\"wolf\",\"pos du loup \"+this.game_.getWolf().getPosition());\n\t\t}\n\t\tif (this.game_.getWolf().getPosition().y>=width || this.game_.getWolf().getPosition().y<0){\n\t\t\tthis.game_.getWolf().restPost();\n\t\t}\n\n/**\n * Check + mv accelerometre\n */\n\t\tif (this.isOnAccelerometer) {\n\t\t\tif (this.mvX < 0 ){\n this.mvX=height;\n\t\t\t}\n\t\t\tif (this.mvY < 0) {\n this.mvY = width;\n\t\t\t}\n\t\t\tif (this.mvX >height){\n this.mvX=0;\n\t\t\t}\n\t\t\tif (this.mvY> width){\n this.mvY = 0;\n\t\t\t}\n\n this.mvX +=-Gdx.input.getAccelerometerX()*1.50;\n this.mvY += Gdx.input.getAccelerometerY()*2.50;\n\t\t\tthis.game_.getBunnyHood().setPosition((int)(mvX),(int)(mvY));\n\t\t\tcollision();\n this.player_batch.begin();\n this.player_batch.draw(this.img_bunnyHood,this.game_.getBunnyHood().getPosition().y,this.game_.getBunnyHood().getPosition().x,200,200);\n this.player_batch.end();\n\n\t\t\tGdx.app.log(\"Score\",Integer.toString(this.game_.getNbBunnies()));\n\n\t\t}\n\t}", "public void makeMove(Move m){\n int oldTurn = turn;\n turn = -turn;\n moves++;\n enPassant = -1;\n if (m.toY == 0){ // white rook space\n if (m.toX == 0){\n castles &= nWHITE_LONG;\n //castles[1] = false;\n }else if (m.toX == 7){\n castles &= nWHITE_SHORT;\n //castles[0] = false;\n }\n } else if (m.toY == 7){ // black rook space\n if (m.toX == 0){\n castles &= nBLACK_LONG;\n //castles[3] = false;\n }else if (m.toX == 7){\n castles &= nBLACK_SHORT;\n //castles[2] = false;\n }\n }\n if (m.piece == WHITE_ROOK && m.fromY == 0){\n if (m.fromX == 0){castles &= nWHITE_LONG;} //castles[1] = false;}\n else if (m.fromX == 7){castles &= nWHITE_SHORT;} //castles[0] = false;}\n } else if (m.piece == BLACK_ROOK && m.fromY == 7){\n if (m.fromX == 0){castles &= nBLACK_LONG;} //castles[3] = false;}\n else if (m.fromX == 7){castles &= nBLACK_SHORT;} //castles[2] = false;}\n }\n // castling\n if (m.piece % 6 == 0){\n if (oldTurn == WHITE){\n castles &= 0b1100;\n //castles[0] = false; castles[1] = false;\n } else {\n castles &= 0b11;\n //castles[2] = false; castles[3] = false;\n }\n if (m.toX - m.fromX == 2){ // short\n board[m.fromY][m.fromX] = 0;\n board[m.toY][m.toX] = m.piece;\n // rook\n board[m.fromY][5] = board[m.fromY][7];\n board[m.fromY][7] = 0;\n return;\n } else if (m.toX - m.fromX == -2){ // long\n board[m.fromY][m.fromX] = 0;\n board[m.toY][m.toX] = m.piece;\n // rook\n board[m.fromY][3] = board[m.fromY][0];\n board[m.fromY][0] = 0;\n return;\n }\n } else if (m.piece % 6 == 1) { // pawn move\n stalemateCountdown = 0; // resets on a pawn move\n // promotion\n if (m.toY % 7 == 0){\n board[m.toY][m.toX] = m.promoteTo;\n board[m.fromY][m.fromX] = 0;\n return;\n }\n // en passant\n else if (m.fromX != m.toX && board[m.toY][m.toX] == 0){\n board[m.fromY][m.fromX] = 0;\n board[m.toY][m.toX] = m.piece;\n if (oldTurn == WHITE){\n board[4][m.toX] = 0;\n }else{\n board[3][m.toX] = 0;\n }\n return;\n } else if (m.toY - m.fromY == 2*oldTurn){\n enPassant = m.fromX;\n }\n }\n // regular\n if (board[m.toY][m.toX] != 0){\n stalemateCountdown = 0; // resets on a capture\n }\n board[m.fromY][m.fromX] = 0;\n board[m.toY][m.toX] = m.piece;\n }", "public void playerAttack() {\n if (playerTurn==true) {\n myMonster.enemHealth=myMonster.enemHealth-battlePlayer.str;\n }\n playerTurn=false;\n enemyMove();\n }", "private void handleMovement() {\n if (movements.isEmpty()) return;\n try {\n switch (movements.peek()) {\n case MOVE_UP:\n game.movePlayer(Direction.N);\n break;\n case MOVE_LEFT:\n game.movePlayer(Direction.W);\n break;\n case MOVE_DOWN:\n game.movePlayer(Direction.S);\n break;\n case MOVE_RIGHT:\n game.movePlayer(Direction.E);\n break;\n }\n } catch (Exception ignored) { }\n }", "public synchronized void monsterMove(int x, int y, Monster monster)\n\t{\n\t\t// Can't attempt to move off board\n\t\tif ((x < 0) || (y < 0) || (x >= width) || ( y >= height))\n\t\t\treturn;\n\t\t\n\t\t// Dead monsters tell no tales\n\t\tif (monster.getHitPoints() <= 0)\n\t\t return;\n\t\t\n\t\t// See if we can't actually move there\n\t\tif (!tiles[x][y].isPassable())\n\t\t\treturn;\n\t\t\n\t\t// Check if avatar is in this location\n\t\tif ((avatar.getX() == x) && (avatar.getY() == y))\n\t\t{\n\t\t\tavatar.incurDamage(monster.getDamage());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check no other monsters are in this spot\n\t\tfor (Monster m : monsters)\n\t\t{\n\t\t\tif ((m != monster) && (m.getX() == x) && (m.getY() == y))\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Make sure monsters get hurt by lava\n\t\tint damage = tiles[x][y].getDamage();\n\t\tif (damage > 0)\n\t\t\tmonster.incurDamage(damage);\n\t\t\n\t\tmonster.setLocation(x, y);\n\t}", "private float getPlayerMove() {\r\n\t\treturn 1.0f / 5;\r\n\t}", "@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }", "public void advanceCycle() {\n if (DEBUG) {\n System.out.println(\"velX before advanceCycle: \" + velX);\n }\n if (!isDying) {\n if (collBottom) {\n if (collLeftRight) {\n this.velX = -velX;\n if (velX > 0) {\n this.direction = LEFT;\n } else {\n this.direction = RIGHT;\n } // Make sure we're facing the direction we're walking.\n if (!onGroundPrevCycle) {\n if (this.direction == LEFT) {\n this.velX = monsterSpeed;\n } else {\n this.velX = -monsterSpeed;\n }\n }\n } else {\n if (DEBUG) {\n System.out.println(\"newX=\" + newX);\n }\n if (!onGroundPrevCycle) {\n if (this.direction == LEFT) {\n this.velX = monsterSpeed;\n } else {\n this.velX = -monsterSpeed;\n }\n }\n }\n onGroundPrevCycle = true;\n } else {\n if (collLeftRight) {\n // The monster is not standing on the ground, but it has\n // collided with a wall. Make it turn around:\n this.velX = -velX;\n if (velX > 0) {\n this.direction = LEFT;\n } else {\n this.direction = RIGHT;\n } // Make sure we're facing the direction we're walking.\n\n if (!onGroundPrevCycle) {\n if (this.direction == LEFT) {\n this.velX = monsterSpeed;\n } else {\n this.velX = -monsterSpeed;\n }\n }\n } else {\n // The monster is about to fall, or falling.\n if (onGroundPrevCycle) {\n this.velX = -velX;\n } else {\n // The monster is falling..\n\n\t\t\t\t\t\t/* Should be taken care of in public void collide(StaticCollEvent sce)\n this.action = FALLING;\n\t\t\t\t\t\t*/\n }\n }\n onGroundPrevCycle = false;\n }\n this.setPosition(newX, newY);\n\n if (velX > 0) {\n this.direction = LEFT;\n } else {\n this.direction = RIGHT;\n }\n\n if (DEBUG) {\n if (this == this.getReferrer().getObjects()[9]) {\n System.out.println(\"Monster Action=\" + action);\n System.out.println(\"Monster velX=\" + velX);\n }\n }\n } else {\n // Dying monster..\n this.setPosition(newX, newY);\n this.deadCycleCount++;\n if (this.deadCycleCount > 20) {\n super.terminate();\n }\n }\n }", "public boolean movePlayer(MazePlayer p, Direction d) {\n//\t System.out.println(\"Player \"+p.name+\" requests to move in direction \"+d);\n// players can move through walls with some small probability!\n\t\t // calculate the new position after the move \n\t\t MazePosition oldPos = playerPosition.get(p.name);\n\t\t MazePosition newPos = theBoard.tryMove(oldPos,d);\n\n\t\t \n\t\t //make sure there is no other player at that position\n\t\t // and if there is someone there then just return without moving\n\t\t if (playerPosition.containsValue(newPos)){\n\t\t\t if (!newPos.equals(oldPos))\n\t\t\t\t if (debugging) System.out.println(\"player \"+p.name+\" tried to move into an occupied space.\");\n\t\t\t else\n\t\t\t\t if (debugging) System.out.println(p.name+\" stays at \"+oldPos);\n\t\t\t return false;\n\t\t }\n\t\t \n\t\t //otherwise, make the move\n\t\t playerPosition.put(p.name,newPos);\n\t\t if (debugging) System.out.println(p.name+\": \"+oldPos+\" -> \"+newPos);\n\t\t \n\t\t //take off points if you moved through a wall\n\t\t if (!theBoard.canMove(oldPos,d)){\n\t\t\t score.put(p.name,score.get(p.name)-2);\n\t\t\t if (debugging) System.out.println(p.name+\" moved through a wall\");\n\t\t }\n\t\t \n\t\t // mark that old space as \"free space\"\n\t\t freeSpace.add(0,oldPos);\n\t\t \n\t\t // check to see if there is a jewel in the new position.\n\t\t int i = jewelPosition.indexOf(newPos);\n\t\t if (i > -1) {\n\t\t\t // add 5 to the score\n\t\t\t score.put(p.name,score.get(p.name)+5);\n\t\t\t // remove the jewel\n\t\t\t jewelPosition.remove(i);\n\t\t\t if (debugging) System.out.println(\"and lands on a jewel!, score is now \" +score.get(p.name));\n\t\t\t // add another jewel\n\t\t\t MazePosition q = getEmptySpace();\n\t\t\t jewelPosition.add(q);\n\t\t\t if (debugging) System.out.println(\"adding a new jewel at \"+q);\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t // if no jewel, then remove the space from the freeSpace list\n\t\t\t freeSpace.remove(newPos);\n\t\t }\n\t\t return true;\n\n }", "private void move()\r\n {\r\n int num = Game.random(4);\r\n String direction;\r\n if (num == 0)\r\n direction = \"north\";\r\n else if (num == 1)\r\n direction = \"east\";\r\n else if (num == 2)\r\n direction = \"south\";\r\n else //num == 3\r\n direction = \"west\";\r\n Room nextRoom = room.nextRoom(direction);\r\n if (nextRoom != null)\r\n {\r\n changeRoom(nextRoom);\r\n \r\n //Monster or Robot greets everyone was already in the room\r\n ArrayList<Person> peopleList = new ArrayList<Person>();\r\n \r\n peopleList = nextRoom.getPeople();\r\n peopleList.remove(name);\r\n \r\n String greetings =\"Hey \";\r\n for (int i=0; i<peopleList.size(); i++)\r\n \tgreetings += peopleList.get(i).getName() + \", \";\r\n\r\n if (!(peopleList.size()==0))\r\n \tsay(greetings);\r\n } \r\n \r\n }", "public abstract void calculateMovement();", "public void move() {\n\t\tsuper.move();\n\t\t\n\t\t// if the slime hit the ground\n\t\tif (y >= 64*2) {\n\t\t\t// begin sliding (only needed for the first time he falls)\n\t\t\tif (accel_x != .25 && accel_x != duck_accel_x) accel_x = .25;\n\t\t\t\n\t\t\t// allow player to jump, since vel_y = 0 stops the jump\n\t\t\tif (jumping)\n\t\t\t\tjumping = false;\n\t\t\telse\n\t\t\t\tvel_y = 0;\n\t\t\t\n\t\t\t// slime is slightly lower while ducking\n\t\t\tif (ducking)\n\t\t\t\ty = 64*2+20;\n\t\t\telse\n\t\t\t\ty = 64*2;\n\t\t}\n\t\t\n\t\t// bounce if the slime hit the top\n\t\tif (y < 0) vel_y *= -1;\n\t}", "public void act() \n {\n movement();\n }", "public void changeActiveMonster(){\n //todo\n }", "private void saveMove(){\n\t\tpreviousTile=monster.currentTile;\r\n\t}", "public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }", "public final void processMovement() {\r\n\t\tif (isMoving()) {\r\n\t\t\tlong elapsed = System.currentTimeMillis() - moveStart;\r\n\t\t\tmovementPercent = (((float) elapsed) / ((float) movementTime));\r\n\t\t\tif (movementPercent < 1f) {\r\n\t\t\t\txOff = -getWrappedEntity().getDir().getXOff()\r\n\t\t\t\t\t\t* Math.round((1f - movementPercent)\r\n\t\t\t\t\t\t\t\t* TileConstants.TILE_WIDTH);\r\n\t\t\t\tzOff = -getWrappedEntity().getDir().getZOff()\r\n\t\t\t\t\t\t* Math.round((1f - movementPercent)\r\n\t\t\t\t\t\t\t\t* TileConstants.TILE_HEIGHT);\r\n\t\t\t} else {\r\n\t\t\t\tmovementPercent = 0f;\r\n\t\t\t\tmoveStart = -1;\r\n\t\t\t\txOff = 0;\r\n\t\t\t\tzOff = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void move1(Pokemon enemy){\n int randCrit = (int)(22 * Math.random()+1);\n boolean crit = false;\n boolean superEffective = false;\n boolean reduced = false;\n boolean moveHit = true;\n\n //CHANGE ATTACK TO FALSE IF MOVE DOES NO DAMAGE<<<<<<<<<<<<<\n boolean attack = true;\n //CHANGE TYPE TO TYPE OF MOVE POWER AND ACCURACY<<<<<<<<<<<<<\n String type = \"Dark\";\n int power = 70;\n int accuracy = 100;\n\n //DO NOT CHANGE BELOW THIS\n int damage = ((CONSTANT * power * ( getAtt() / enemy.getDef() )) /50);\n if(randCrit == CONSTANT){\n damage = damage * 2;\n crit = true;\n }\n if(checkSE(type,enemy.getType())){\n damage = damage * 2;\n superEffective = true;\n }\n if(checkNVE(type, enemy.getType())){\n damage = damage / 2;\n reduced = true;\n }\n if(attack && hit(accuracy)){\n enemy.lowerHp(damage);\n }\n else{\n if(hit(accuracy)){\n //DO STATUS EFFECT STUFF HERE (ill figure out later)\n }\n\n }\n lowerM1PP();\n }", "public void autosimulateCombat() {\n\n int monstersRemainingHealth = monster.getHealth() - player.getPower();\n int playersRemainingHealth = player.getHealth() - monster.getPower();\n\n while (player.getHealth() > 0 && monster.getHealth() > 0) {\n\n monster.setHealth(monstersRemainingHealth);\n monstersRemainingHealth = monster.getHealth() - player.getPower();\n\n\n player.setHealth(playersRemainingHealth);\n playersRemainingHealth = player.getHealth() - monster.getPower();\n\n }\n isPlayerDefeated();\n return;\n }", "public void updateMonster(LeveledMonster monster){\n if (enabled){\n for (LeveledMonster m : allMonsters){\n if (m.getName().equals(monster.getName())){\n m.setSpawnWeight(monster.getSpawnWeight());\n m.setLootTables(monster.getLootTables());\n m.setKarmaInfluence(monster.getKarmaInfluence());\n m.setExpDropped(monster.getExpDropped());\n m.setEnabled(monster.isEnabled());\n m.setDropsDefaultLootTable(monster.isDropsDefaultLootTable());\n m.setEquipment(monster.getHelmet(), monster.getChestPlate(), monster.getLeggings(), monster.getBoots(), monster.getMainHand(), monster.getOffHand());\n m.setBaseHealth(monster.getBaseHealth());\n m.setWorldFilter(monster.getWorldFilter());\n m.setMaxYRange(monster.getMaxYRange());\n m.setMinYRange(monster.getMinYRange());\n m.setBiomeFilter(monster.getBiomeFilter());\n m.setDisplayNameVisible(monster.isDisplayNameVisible());\n m.setBoss(monster.isBoss());\n m.setAbilities(monster.getAbilities());\n m.setHelmetDropChance(monster.getHelmetDropChance());\n m.setChestplateDropChance(monster.getChestplateDropChance());\n m.setLeggingsDropChance(monster.getLeggingsDropChance());\n m.setBootsDropChance(monster.getBootsDropChance());\n m.setMainHandDropChance(monster.getMainHandDropChance());\n m.setOffHandDropChance(monster.getOffHandDropChance());\n m.setBiomeFilter(monster.getBiomeFilter());\n break;\n }\n }\n }\n }", "public interface IMonster {\n\n /**\n * Checks surrounding grid locations for spots\n * Then makes corresponding moves based upon the locations\n */\n void act();\n\n /**\n * Gets the actors currently on the grid.\n * Looks for grid locations that are surrounding the area for open spots\n * @return List of actor\n */\n ArrayList<Actor> getActors();\n\n /**\n * Gets the actors currently on the grid\n * Watches to see if a current monster can eat a human or food\n * Once the Human or food as been ate it is removed from the grid\n * @param actors\n */\n void processActors(ArrayList<Actor> actors);\n\n /**\n * Locates moves available on the grid\n * @return location\n */\n ArrayList<Location> getMoveLocations();\n\n /**\n * Selects an available move that can be made\n * @param locs\n * @return location of r\n */\n Location selectMoveLocation(ArrayList<Location> locs);\n\n /**\n * Checks whether a monster can move to the next grid spot\n * @return true or false\n */\n boolean canMove();\n\n /**\n * Moves the Monster to a location of the grid\n * If the location is null the Monster is removed from the grid\n * Also over writes other Monsters of the grid spot if needed\n * @param loc\n */\n void makeMove(Location loc);\n}", "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "public void update(){\n if (bossMoveTime > 10){\n if(random(0,16) <= 8){\n dir = 1;\n }else{\n dir = -1;\n }\n velX *= dir;\n bossMoveTime = 0;\n }\n posY *= 0.8f;\n posX += velX;\n posY += velY;\n angle += 0.04f;\n bossMoveTime++;\n }", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "int getRightMonster();" ]
[ "0.77358514", "0.729655", "0.7139258", "0.7111118", "0.70716494", "0.70466554", "0.70428914", "0.70095706", "0.7007319", "0.6897133", "0.6802624", "0.679546", "0.67729956", "0.6735546", "0.67220473", "0.6711622", "0.66770107", "0.66719514", "0.6669595", "0.6653526", "0.6640414", "0.6637085", "0.6634466", "0.6619515", "0.6599152", "0.65965396", "0.6592317", "0.658826", "0.6584052", "0.6583549", "0.65628576", "0.6558732", "0.6552673", "0.6547237", "0.65443945", "0.6541101", "0.65327", "0.65297", "0.6526062", "0.6519177", "0.6510613", "0.64943725", "0.6491087", "0.6490424", "0.64773595", "0.64681345", "0.6465126", "0.64649254", "0.64575815", "0.6455792", "0.64509267", "0.6448187", "0.6448164", "0.64426094", "0.64387816", "0.64277506", "0.6425021", "0.64230984", "0.64156115", "0.64138347", "0.64090884", "0.63974106", "0.6394141", "0.63924265", "0.6391947", "0.6387931", "0.6387283", "0.6384019", "0.63815945", "0.6371284", "0.6371178", "0.63677335", "0.63647896", "0.636355", "0.6360483", "0.63601094", "0.6353257", "0.6352062", "0.63371164", "0.63370335", "0.63353443", "0.6330523", "0.6330322", "0.6329828", "0.63252664", "0.63222706", "0.6315821", "0.63140535", "0.63138777", "0.6313868", "0.6312327", "0.63122743", "0.63121724", "0.6312078", "0.63109374", "0.6302716", "0.6299959", "0.629612", "0.62950796", "0.62928957" ]
0.6358196
76
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(); Imagen = new javax.swing.JButton(); Salir = new javax.swing.JLabel(); Inicio = new javax.swing.JLabel(); Perfil = new javax.swing.JLabel(); Trabajos = new javax.swing.JLabel(); Materias = new javax.swing.JLabel(); Salud = new javax.swing.JLabel(); Clase = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); Minimizar = new javax.swing.JButton(); Cerrar = new javax.swing.JButton(); Notas = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jLabel9 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); Tabla_Trabajos = new javax.swing.JTable(); jLabel28 = new javax.swing.JLabel(); txtBuscar = new javax.swing.JTextField(); Buscar = new javax.swing.JButton(); jLabel13 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setIconImage(getIconImage()); setMinimumSize(new java.awt.Dimension(1050, 575)); setUndecorated(true); setResizable(false); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(168, 201, 255)); jPanel1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jPanel1MouseMoved(evt); } }); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); Imagen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/imagen.png"))); // NOI18N Imagen.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ImagenActionPerformed(evt); } }); jPanel1.add(Imagen, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, -1, -1)); Salir.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Salir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cerrar-sesion.png"))); // NOI18N Salir.setText("Cerrar sesión"); Salir.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { SalirMouseMoved(evt); } }); Salir.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { SalirMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { SalirMouseExited(evt); } }); jPanel1.add(Salir, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 520, -1, -1)); Inicio.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Inicio.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/casa.png"))); // NOI18N Inicio.setText("Inicio"); Inicio.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { InicioMouseMoved(evt); } }); Inicio.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { InicioMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { InicioMouseExited(evt); } }); jPanel1.add(Inicio, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 210, 150, -1)); Perfil.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Perfil.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/usuario (1).png"))); // NOI18N Perfil.setText("Perfil"); Perfil.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { PerfilMouseMoved(evt); } }); Perfil.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { PerfilMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { PerfilMouseExited(evt); } }); jPanel1.add(Perfil, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 260, 140, -1)); Trabajos.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Trabajos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/estudiar.png"))); // NOI18N Trabajos.setText("Trabajos"); Trabajos.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { TrabajosMouseMoved(evt); } }); Trabajos.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { TrabajosMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { TrabajosMouseExited(evt); } }); jPanel1.add(Trabajos, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 310, 140, -1)); Materias.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Materias.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/educacion.png"))); // NOI18N Materias.setText("Materias"); Materias.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { MateriasMouseMoved(evt); } }); Materias.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { MateriasMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { MateriasMouseExited(evt); } }); jPanel1.add(Materias, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 360, 120, 40)); Salud.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Salud.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/corazon.png"))); // NOI18N Salud.setText("Salud/Deporte"); Salud.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { SaludMouseMoved(evt); } }); Salud.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { SaludMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { SaludMouseExited(evt); } }); jPanel1.add(Salud, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 470, -1, -1)); Clase.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Clase.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/presentacion.png"))); // NOI18N Clase.setText("Hacer una entrega"); Clase.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { ClaseMouseMoved(evt); } }); Clase.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ClaseMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { ClaseMouseExited(evt); } }); jPanel1.add(Clase, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 420, -1, -1)); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 250, 580)); jPanel3.setBackground(new java.awt.Color(255, 255, 255)); jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); Minimizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/minimizar.png"))); // NOI18N Minimizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MinimizarActionPerformed(evt); } }); jPanel3.add(Minimizar, new org.netbeans.lib.awtextra.AbsoluteConstraints(980, 0, 40, 40)); Cerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cerrar.png"))); // NOI18N Cerrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CerrarActionPerformed(evt); } }); jPanel3.add(Cerrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(1020, 0, 40, 40)); Notas.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Notas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/editar.png"))); // NOI18N Notas.setText("Notas"); Notas.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NotasActionPerformed(evt); } }); jPanel3.add(Notas, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); getContentPane().add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 0, 1060, 50)); jPanel2.setBackground(new java.awt.Color(255, 255, 255)); jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel4.setBackground(new java.awt.Color(143, 170, 220)); jLabel9.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N jLabel9.setText("Trabajos pendientes"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(396, 396, 396) .addComponent(jLabel9) .addContainerGap(422, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel9) .addContainerGap()) ); jPanel2.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1060, -1)); Tabla_Trabajos.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N Tabla_Trabajos.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "ID_Asig", "Grupo", "Materia ", "Nombre", "Descripción", "Fecha y hora de incio", "Fecha y hora de cierre", "Archivo" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); Tabla_Trabajos.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { Tabla_TrabajosMouseClicked(evt); } }); jScrollPane1.setViewportView(Tabla_Trabajos); if (Tabla_Trabajos.getColumnModel().getColumnCount() > 0) { Tabla_Trabajos.getColumnModel().getColumn(0).setMinWidth(50); Tabla_Trabajos.getColumnModel().getColumn(0).setPreferredWidth(50); Tabla_Trabajos.getColumnModel().getColumn(0).setMaxWidth(50); Tabla_Trabajos.getColumnModel().getColumn(1).setMinWidth(50); Tabla_Trabajos.getColumnModel().getColumn(1).setPreferredWidth(50); Tabla_Trabajos.getColumnModel().getColumn(1).setMaxWidth(50); Tabla_Trabajos.getColumnModel().getColumn(2).setMinWidth(80); Tabla_Trabajos.getColumnModel().getColumn(2).setPreferredWidth(80); Tabla_Trabajos.getColumnModel().getColumn(2).setMaxWidth(80); Tabla_Trabajos.getColumnModel().getColumn(5).setMinWidth(165); Tabla_Trabajos.getColumnModel().getColumn(5).setPreferredWidth(165); Tabla_Trabajos.getColumnModel().getColumn(5).setMaxWidth(165); Tabla_Trabajos.getColumnModel().getColumn(6).setMinWidth(165); Tabla_Trabajos.getColumnModel().getColumn(6).setPreferredWidth(165); Tabla_Trabajos.getColumnModel().getColumn(6).setMaxWidth(165); } jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 190, 1010, 320)); jLabel28.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N jLabel28.setText("Estudiante para visualizar mejor tus trabajos pendientes, busca el grupo al que perteneces"); jPanel2.add(jLabel28, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1)); jPanel2.add(txtBuscar, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 150, 540, 30)); Buscar.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N Buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Buscar.png"))); // NOI18N Buscar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BuscarActionPerformed(evt); } }); jPanel2.add(Buscar, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 140, -1, -1)); jLabel13.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel13.setText("Buscar:"); jLabel13.setToolTipText(""); jPanel2.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 150, -1, -1)); getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 50, 1060, 530)); 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 BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\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 intrebarea() {\n initComponents();\n }", "public Magasin() {\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}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@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 MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\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 Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\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 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 EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\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 Carrera() {\n initComponents();\n }", "public POS1() {\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.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.69452274", "0.6942602", "0.6935845", "0.6931919", "0.6928187", "0.6925288", "0.69251484", "0.69117147", "0.6911646", "0.6892842", "0.68927234", "0.6891408", "0.68907607", "0.68894386", "0.68836755", "0.688209", "0.6881168", "0.68787616", "0.68757504", "0.68741524", "0.68721044", "0.685922", "0.68570775", "0.6855737", "0.6855207", "0.68546575", "0.6853559", "0.6852262", "0.6852262", "0.68443567", "0.6837038", "0.6836797", "0.68291426", "0.6828922", "0.68269444", "0.6824652", "0.682331", "0.68175536", "0.68167555", "0.6810103", "0.6809546", "0.68085015", "0.68083894", "0.6807979", "0.68027437", "0.67950374", "0.67937446", "0.67921823", "0.67911226", "0.67900467", "0.6788873", "0.67881", "0.6781613", "0.67669237", "0.67660683", "0.6765841", "0.6756988", "0.675558", "0.6752552", "0.6752146", "0.6742482", "0.67395985", "0.673791", "0.6736197", "0.6733452", "0.67277217", "0.6726687", "0.67204696", "0.67168", "0.6714824", "0.6714823", "0.6708782", "0.67071444", "0.670462", "0.67010295", "0.67004406", "0.6699407", "0.6698219", "0.669522", "0.66916007", "0.6689694" ]
0.0
-1
End of variables declaration//GENEND:variables
private Object String(char[] password) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mappedBy);", "Builder addMainEntity(String value);", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "@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 }", "Builder addMainEntity(Thing value);", "private void addFieldToBook(String config_id, GOlrField field) {\n if (!unique_fields.containsKey(field.id)) {\n unique_fields.put(field.id, field);\n } else {\n // check if defined fields are equivalent\n if (!unique_fields.get(field.id).equals(field)) {\n throw new IllegalStateException(field.id + \" is defined twice with different properties.\\n\"\n + unique_fields.get(field.id) + \"\\n\" + field);\n }\n }\n // Ensure presence of comments (description) list.\n if (!collected_comments.containsKey(field.id)) {\n collected_comments.put(field.id, new ArrayList<String>());\n }\n // And add to it if there is an available description.\n if (field.description != null) {\n ArrayList<String> comments = collected_comments.get(field.id);\n comments.add(\" \" + config_id + \": \" + field.description + \" \");\n collected_comments.put(field.id, comments);\n }\n }", "public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public PimsSysReqFieldDaoHibernate() {\n super(PimsSysReqField.class);\n }", "FieldDefinition createFieldDefinition();", "protected void addField(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) {\n MetaClass metaClass = container.getEntityMetaClass();\n Range range = metaProperty.getRange();\n\n boolean isRequired = isRequired(metaProperty);\n\n UiEntityAttributeContext attributeContext = new UiEntityAttributeContext(metaClass, metaProperty.getName());\n accessManager.applyRegisteredConstraints(attributeContext);\n\n if (!attributeContext.canView())\n return;\n\n if (range.isClass()) {\n UiEntityContext entityContext = new UiEntityContext(range.asClass());\n accessManager.applyRegisteredConstraints(entityContext);\n if (!entityContext.isViewPermitted()) {\n return;\n }\n }\n\n ValueSource valueSource = new ContainerValueSource<>(container, metaProperty.getName());\n\n ComponentGenerationContext componentContext =\n new ComponentGenerationContext(metaClass, metaProperty.getName());\n componentContext.setValueSource(valueSource);\n\n Field field = (Field) uiComponentsGenerator.generate(componentContext);\n\n if (requireTextArea(metaProperty, getItem(), MAX_TEXTFIELD_STRING_LENGTH)) {\n field = uiComponents.create(TextArea.NAME);\n }\n\n if (isBoolean(metaProperty)) {\n field = createBooleanField();\n }\n\n if (range.isClass()) {\n EntityPicker pickerField = uiComponents.create(EntityPicker.class);\n\n EntityLookupAction lookupAction = actions.create(EntityLookupAction.class);\n lookupAction.setScreenClass(EntityInspectorBrowser.class);\n lookupAction.setScreenOptionsSupplier(() -> new MapScreenOptions(\n ParamsMap.of(\"entity\", metaProperty.getRange().asClass().getName())));\n lookupAction.setOpenMode(OpenMode.THIS_TAB);\n\n pickerField.addAction(lookupAction);\n pickerField.addAction(actions.create(EntityClearAction.class));\n\n field = pickerField;\n }\n\n field.setValueSource(valueSource);\n field.setCaption(getPropertyCaption(metaClass, metaProperty));\n field.setRequired(isRequired);\n\n isReadonly = isReadonly || (disabledProperties != null && disabledProperties.contains(metaProperty.getName()));\n if (range.isClass() && !metadataTools.isEmbedded(metaProperty)) {\n field.setEditable(metadataTools.isOwningSide(metaProperty) && !isReadonly);\n } else {\n field.setEditable(!isReadonly);\n }\n\n field.setWidth(fieldWidth);\n\n if (isRequired) {\n field.setRequiredMessage(messageTools.getDefaultRequiredMessage(metaClass, metaProperty.getName()));\n }\n form.add(field);\n }", "public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}", "public interface JdlFieldView extends JdlField, JdlCommentView {\n //TODO This validation should be handled in JdlService\n default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }\n\n default String constraints() {\n List<String> constraints = new ArrayList<>();\n if (renderRequired()) constraints.add(requiredConstraint());\n if (isUnique()) constraints.add(uniqueConstraint());\n getMin().ifPresent(min -> constraints.add(minConstraint(min)));\n getMax().ifPresent(max -> constraints.add(maxConstraint(max)));\n getPattern().ifPresent(pattern -> constraints.add(patternConstraint(pattern)));\n return (!constraints.isEmpty()) ? \" \".concat(Joiner.on(\" \").join(constraints)) : null;\n }\n\n // TODO do not write required when field is primary key\n default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }\n\n @NotNull\n default String requiredConstraint() {\n return \"required\";\n }\n\n @NotNull\n default String uniqueConstraint() {\n return \"unique\";\n }\n\n default String minConstraint(int min) {\n return switch (getType()) {\n case STRING -> validationMinLength(min);\n default -> validationMin(min);\n };\n }\n\n default String maxConstraint(int max) {\n return switch (getType()) {\n case STRING -> validationMaxLength(max);\n default -> validationMax(max);\n };\n }\n\n //TODO This validation should be handled in JdlService\n default String patternConstraint(String pattern) {\n return switch (getType()) {\n case STRING -> validationPattern(pattern);\n default -> throw new RuntimeException(\"Only String can have a pattern\");\n };\n }\n\n @NotNull\n default String validationMax(final int max) {\n return \"max(\" + max + \")\";\n }\n\n @NotNull\n default String validationMin(final int min) {\n return \"min(\" + min + \")\";\n }\n\n default String validationMaxLength(final int max) {\n return \"maxlength(\" + max + \")\";\n }\n\n @NotNull\n default String validationMinLength(final int min) {\n return \"minlength(\" + min + \")\";\n }\n\n @NotNull\n default String validationPattern(final String pattern) {\n return \"pattern(/\" + pattern + \"/)\";\n }\n}", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "@Override\r\n\tpublic void addField(Field field) \r\n\t{\r\n\t\tif(this.fields == null)\r\n\t\t{\r\n\t\t\tthis.fields = new ArrayList<>();\r\n\t\t}\r\n\t\tthis.fields.add(field);\r\n\t}", "void SaveBudgetKeyAdditional(BudgetKeyAdditionalEntity budgetKeyAdditionalEntity);", "public void createField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.CreateField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n String body = field.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating field\");\n } finally {\n span.finish();\n }\n }", "@Test\n\tpublic void testFieldCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal String entityInputTypeName = Entity6.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityInputType = getFullType(introspection, entityInputTypeName);\n\t\tfinal String entity6TypeName = Entity6.class.getSimpleName();\n\t\tfinal IntrospectionFullType entityType = getFullType(introspection, entity6TypeName);\n\t\t// Check field attr1 is not readable\n\t\tfinal Optional<IntrospectionTypeField> attr1Field = getOptionalField(entityType, \"attr1\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a readable field [{}] in [{}].\", \"typeField\", entity6TypeName),\n\t\t\t\tattr1Field.isPresent());\n\t\t// Check field attr2 is not saveable\n\t\tfinal Optional<IntrospectionInputValue> attr2InputField = getOptionalInputField(entityInputType, \"attr2\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a not saveable field [{}] in [{}].\", \"attr2\", entityInputTypeName),\n\t\t\t\tattr2InputField.isPresent());\n\t\t// Check field attr3 is not nullable\n\t\tassertInputField(entityInputType, \"attr3\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr4 is not nullableForCreate\n\t\tassertInputField(entityInputType, \"attr4\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr5 is not nullableForUpdate\n\t\tassertInputField(entityInputType, \"attr5\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr6 is not filterable\n\t\tfinal String entityFilterTypeName = Entity6.class.getSimpleName()\n\t\t\t\t+ schemaConfig.getQueryGetListFilterEntityTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityFilterInputType = getFullType(introspection, entityFilterTypeName);\n\t\tfinal Optional<IntrospectionInputValue> attr4IinputField = getOptionalInputField(entityFilterInputType,\n\t\t\t\t\"attr6\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a filterable field [{}] in [{}].\", \"attr6\", entityFilterTypeName),\n\t\t\t\tattr4IinputField.isPresent());\n\t\t// Check field attr7 is mandatory\n\t\t// Check field attr8 is mandatory for update\n\t\t// Check field attr9 is mandatory for create\n\n\t\t// Check field attr10 is not readable for ROLE1\n\t\t// Check field attr10 is not readable for ROLE1\n\n\t\t// Check field attr11 is not saveable for ROLE1\n\n\t\t// Check field attr12 is not nullable for ROLE1\n\n\t\t// Check field attr13 is not nullable for update for ROLE1\n\n\t\t// Check field attr14 is not nullable for create for ROLE1\n\n\t\t// Check field attr15 is mandatory for ROLE1\n\n\t\t// Check field attr16 is mandatory for update for ROLE1\n\n\t\t// Check field attr17 is mandatory for create for ROLE1\n\n\t\t// Check field attr18 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr19 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr20 is not readable for ROLE1 and not saveable ROLE2\n\n\t\t// Check field attr21 is not readable and not nullable for ROLE1 and\n\t\t// ROLE2\n\n\t\t// Check field attr21 is readable and nullable for other roles than ROLE\n\t\t// 1 and ROLE2\n\n\t\t// Check field attr22 is readable for ROLE1\n\n\t\t// Check field attr22 is not readable for everybody except ROLE1\n\t}", "public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }", "Builder addMainEntity(Thing.Builder value);", "public interface FieldPopulator\n{\n List<String> getCoreFields();\n\n List<String> getSupportedFields();\n\n String getUriTemplate();\n}", "void addFieldBinding( FieldBinding binding );", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void setEntityAddDate(String entityAddDate);", "@Test\n public void createCustomFieldTest() throws ApiException {\n CustomFieldDefinitionJsonBean body = null;\n FieldDetails response = api.createCustomField(body);\n\n // TODO: test validations\n }", "private void addField(JField jfield) {\n\n // Check for storage ID conflict; note we can get this legitimately when a field is declared only\n // in supertypes, where two of the supertypes are mutually unassignable from each other. In that\n // case, verify that the generated field is the same.\n JField other = this.jfields.get(jfield.storageId);\n if (other != null) {\n\n // If the descriptions differ, no need to give any more details\n if (!other.toString().equals(jfield.toString())) {\n throw new IllegalArgumentException(\"illegal duplicate use of storage ID \"\n + jfield.storageId + \" for both \" + other + \" and \" + jfield);\n }\n\n // Check whether the fields are exactly the same; if not, there is a conflict\n if (!other.isSameAs(jfield)) {\n throw new IllegalArgumentException(\"two or more methods defining \" + jfield + \" conflict: \"\n + other.getter + \" and \" + jfield.getter);\n }\n\n // OK - they are the same thing\n return;\n }\n this.jfields.put(jfield.storageId, jfield);\n\n // Check for name conflict\n if ((other = this.jfieldsByName.get(jfield.name)) != null)\n throw new IllegalArgumentException(\"illegal duplicate use of field name `\" + jfield.name + \"' in \" + this);\n this.jfieldsByName.put(jfield.name, jfield);\n jfield.parent = this;\n\n // Logging\n if (this.log.isTraceEnabled())\n this.log.trace(\"added {} to object type `{}'\", jfield, this.name);\n }", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "@Override\n public Field<?> createField(Container container, Object itemId,\n Object propertyId, Component uiContext) {\n Field<?> field = super.createField(container, itemId,\n propertyId, uiContext);\n\n // ...and just set them as immediate\n ((AbstractField<?>) field).setImmediate(true);\n\n // Also modify the width of TextFields\n if (field instanceof TextField)\n field.setWidth(\"100%\");\n field.setRequired(true);\n ((TextField) field).setInputPrompt(\"Введите назначение\");\n field.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);\n field.focus();\n\n return field;\n }", "private void setNewField(String fieldName) {\n setNewField(fieldName, DBCreator.STRING_TYPE, null);\n }", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "private void handleIdFields(JFieldVar field, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.IS_ID_COLUMN) && propertyNode.get(JpaConstants.IS_ID_COLUMN).asBoolean(true)) {\n field.annotate(Id.class);\n }\n\n if (propertyNode.has(JpaConstants.GENERATED_VALUE)) {\n JsonNode generatedValueNode = propertyNode.get(JpaConstants.GENERATED_VALUE);\n JAnnotationUse jAnnotationUse = field.annotate(GeneratedValue.class);\n if (generatedValueNode.has(JpaConstants.STRATEGY)) {\n jAnnotationUse.param(JpaConstants.STRATEGY, GenerationType.valueOf(generatedValueNode.get(JpaConstants.STRATEGY).asText()));\n }\n }\n }", "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className\n );", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "@Test\n @Transactional\n void createCommonTableFieldWithExistingId() throws Exception {\n commonTableField.setId(1L);\n CommonTableFieldDTO commonTableFieldDTO = commonTableFieldMapper.toDto(commonTableField);\n\n int databaseSizeBeforeCreate = commonTableFieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCommonTableFieldMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(commonTableFieldDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CommonTableField in the database\n List<CommonTableField> commonTableFieldList = commonTableFieldRepository.findAll();\n assertThat(commonTableFieldList).hasSize(databaseSizeBeforeCreate);\n }", "HxField createField(final String fieldType,\n final String fieldName);", "public static CommonTableField createUpdatedEntity() {\n CommonTableField commonTableField = new CommonTableField()\n .title(UPDATED_TITLE)\n .entityFieldName(UPDATED_ENTITY_FIELD_NAME)\n .type(UPDATED_TYPE)\n .tableColumnName(UPDATED_TABLE_COLUMN_NAME)\n .columnWidth(UPDATED_COLUMN_WIDTH)\n .order(UPDATED_ORDER)\n .editInList(UPDATED_EDIT_IN_LIST)\n .hideInList(UPDATED_HIDE_IN_LIST)\n .hideInForm(UPDATED_HIDE_IN_FORM)\n .enableFilter(UPDATED_ENABLE_FILTER)\n .validateRules(UPDATED_VALIDATE_RULES)\n .showInFilterTree(UPDATED_SHOW_IN_FILTER_TREE)\n .fixed(UPDATED_FIXED)\n .sortable(UPDATED_SORTABLE)\n .treeIndicator(UPDATED_TREE_INDICATOR)\n .clientReadOnly(UPDATED_CLIENT_READ_ONLY)\n .fieldValues(UPDATED_FIELD_VALUES)\n .notNull(UPDATED_NOT_NULL)\n .system(UPDATED_SYSTEM)\n .help(UPDATED_HELP)\n .fontColor(UPDATED_FONT_COLOR)\n .backgroundColor(UPDATED_BACKGROUND_COLOR)\n .nullHideInForm(UPDATED_NULL_HIDE_IN_FORM)\n .endUsed(UPDATED_END_USED)\n .options(UPDATED_OPTIONS);\n return commonTableField;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "protected synchronized void addFieldEntity(int fld_i, String entity) {\r\n // System.err.println(\"addFieldEntity(\" + fld_i + \",\\\"\" + entity + \"\\\")\");\r\n //\r\n // fld_i is used to indicate if this is a second iteration of addFieldEntity() to prevent\r\n // infinite recursion... not sure if it's correct... for example, what happens when\r\n // a post-processor transform converts a domain to an ip address - shouldn't that IP\r\n // address then be further decomposed?\r\n //\r\n if (fld_i != -1 && entity.equals(BundlesDT.NOTSET)) {\r\n ent_2_i.put(BundlesDT.NOTSET, -1); \r\n fld_dts.get(fld_i).add(BundlesDT.DT.NOTSET);\r\n\r\n //\r\n // Decompose a tag into it's basic elements\r\n //\r\n } else if (fld_i != -1 && fieldHeader(fld_i).equals(BundlesDT.TAGS)) {\r\n addFieldEntity(-1,entity); // Add the tag itself\r\n Iterator<String> it = Utils.tokenizeTags(entity).iterator();\r\n while (it.hasNext()) {\r\n String tag = it.next(); addFieldEntity(-1, tag);\r\n\tif (Utils.tagIsHierarchical(tag)) {\r\n String sep[] = Utils.tagDecomposeHierarchical(tag);\r\n\t for (int i=0;i<sep.length;i++) addFieldEntity(-1, sep[i]);\r\n\t} else if (Utils.tagIsTypeValue(tag)) {\r\n String sep[] = Utils.separateTypeValueTag(tag);\r\n\t tag_types.add(sep[0]);\r\n\t addFieldEntity(-1,sep[1]);\r\n\t}\r\n }\r\n\r\n //\r\n // Otherwise, keep track of the datatype to field correlation and run post\r\n // processors on the item to have those lookups handy.\r\n //\r\n } else {\r\n // System.err.println(\"determining datatype for \\\"\" + entity + \"\\\"\"); // DEBUG\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(entity); if (dt_count_lu.containsKey(datatype) == false) dt_count_lu.put(datatype,0);\r\n // System.err.println(\"datatype for \\\"\" + entity + \"\\\" ==> \" + datatype); // DEBUG\r\n if (datatype != null) {\r\n// System.err.println(\"390:fld_i = \" + fld_i + \" (\" + fld_dts.containsKey(fld_i) + \")\"); // abc DEBUG\r\n// try { System.err.println(\" \" + fieldHeader(fld_i)); } catch (Throwable t) { } // abc DEBUG\r\n if (fld_i != -1) fld_dts.get(fld_i).add(datatype);\r\n if (ent_2_i.containsKey(entity) == false) {\r\n\t // Use special rules to set integer correspondance\r\n\t switch (datatype) {\r\n\t case IPv4: ent_2_i.put(entity, Utils.ipAddrToInt(entity)); break;\r\n\t case IPv4CIDR: ent_2_i.put(entity, Utils.ipAddrToInt((new StringTokenizer(entity, \"/\")).nextToken())); break;\r\n\t case INTEGER: ent_2_i.put(entity, Integer.parseInt(entity)); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n\t break;\r\n case FLOAT: ent_2_i.put(entity, Float.floatToIntBits(Float.parseFloat(entity))); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n break;\r\n\t case DOMAIN: ent_2_i.put(entity, Utils.ipAddrToInt(\"127.0.0.2\") + dt_count_lu.get(datatype)); // Put Domains In Unused IPv4 Space\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n\r\n\t // Pray that these don't collide - otherwise x/y scatters will be off...\r\n\t default: ent_2_i.put(entity, dt_count_lu.get(datatype));\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n }\r\n\t}\r\n\t// Map out the derivatives so that they will have values int the lookups\r\n\t// - Create the post processors\r\n\tif (post_processors == null) {\r\n\t String post_proc_strs[] = BundlesDT.listEnabledPostProcessors();\r\n\t post_processors = new PostProc[post_proc_strs.length];\r\n\t for (int i=0;i<post_processors.length;i++) post_processors[i] = BundlesDT.createPostProcessor(post_proc_strs[i], this);\r\n\t}\r\n\t// - Run all of the post procs against their correct types\r\n if (fld_i != -1) for (int i=0;i<post_processors.length;i++) {\r\n if (post_processors[i].type() == datatype) {\r\n\t String strs[] = post_processors[i].postProcess(entity);\r\n\t for (int j=0;j<strs.length;j++) {\r\n if (entity.equals(strs[j]) == false) addFieldEntity(-1, strs[j]);\r\n\t }\r\n }\r\n\t}\r\n } else if (ent_2_i.containsKey(entity) == false) {\r\n ent_2_i.put(entity, not_assoc.size());\r\n\tnot_assoc.add(entity);\r\n }\r\n }\r\n }", "void add(E entity) throws ValidationException, RepositoryException;", "private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}", "@Label(\"Organization存储\")\npublic interface OrganizationRepository extends ModelQueryAndBatchUpdateRepository<Organization, EOrganization, Integer> {\n\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "public void setUWCompany(entity.UWCompany value);", "@PrePersist()\r\n\tpublic void initEntity(){\r\n\t\tthis.name = WordUtils.capitalizeFully(this.name);\r\n\t}", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "public ChangeFieldEf( EAdField<?> field,\r\n\t\t\tEAdOperation operation) {\r\n\t\tsuper();\r\n\t\tsetId(\"changeField\");\r\n\t\tthis.fields = new EAdListImpl<EAdField<?>>(EAdField.class);\r\n\t\tif (field != null)\r\n\t\t\tfields.add(field);\r\n\t\tthis.operation = operation;\r\n\t}", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "public void addEntityMetadata() throws Exception {\n\n\t\tEntityMetadata entity = new EntityMetadata(entityType, false);\n\t\tentity.setRepositoryInstance(\"OperationalDB\");\n\t\tentity.setProviderType(\"RDBMSDataProvider\");\n\n\t\tMap<String, List<String>> providerParams = new HashMap<String, List<String>>();\n\t\tproviderParams.put(\"table\",\n\t\t\t\tArrays.asList(new String[] { \"APPLICATION_OBJECT\" }));\n\t\tproviderParams.put(\"id_column\", Arrays.asList(new String[] { \"ID\" }));\n\t\tproviderParams.put(\"id_type\", Arrays.asList(new String[] { \"guid\" }));\n\t\tproviderParams.put(\"optimistic_locking\",\n\t\t\t\tArrays.asList(new String[] { \"false\" }));\n\t\tproviderParams.put(\"flex_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_VC\" }));\n\t\tproviderParams.put(\"flex_non_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_VC\" }));\n\t\tproviderParams.put(\"flex_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_DT\" }));\n\t\tproviderParams.put(\"flex_non_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_DT\" }));\n\t\tproviderParams.put(\"flex_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_NUM\" }));\n\t\tproviderParams.put(\"flex_non_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_NUM\" }));\n\t\tproviderParams.put(\"flex_blob_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_BLOB\" }));\n\n\t\tentity.setProviderParameters(providerParams);\n\t\tentity.setContainer(false);\n\n\t\tHashMap<String, Map<String, String>> metadataAttachments = new HashMap<String, Map<String, String>>();\n\t\tMap<String, String> prop = new HashMap<String, String>();\n\t\tprop.put(\"isEncrypted\", \"false\");\n\t\tmetadataAttachments.put(\"properties\", prop);\n\t\tAttributeDefinition attrDef = null;\n\t\tFieldDefinition fieldDef = null;\n\n\t\t// parameters: name, type, description, isRequired, isSearchable, isMLS,\n\t\t// defaultValue, groupName, metadataAttachments\n\n\t\tattrDef = new AttributeDefinition(\"givenName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"lastName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"email\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"startDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"endDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"employeeNo\", \"number\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\n\n\t\tattrDef = new AttributeDefinition(\"__UID__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_UID\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__UID__\", \"AO_UID\");\n\t\t\n\t\tattrDef = new AttributeDefinition(\"__NAME__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_NAME\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__NAME__\", \"AO_NAME\");\n\n\t\t/*\n\t\t * attrDef = new AttributeDefinition(childEntityType, childEntityType,\n\t\t * null, false, true, false, null, \"Basic\", metadataAttachments);\n\t\t * entity.addChildEntityAttribute(attrDef);\n\t\t */\n\n\t\tString xmlString = getStringfromDoc(entity);\n\n\t\ttry {\n\t\t\tmgrConfig.createEntityMetadata(entity);\n\t\t\tSystem.out.println(\"Created entity type: \" + entityType);\n\n\t\t} catch (Exception e) {\n\t\t\t//fail(\"Unexpected exception: \" + getStackTrace(e));\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "public void createFieldEditors()\n\t{\n\t}", "private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "public interface FieldDAO extends CrudRepository<Field, Integer> {\n\n}", "protected Component constructCustomField(EntityModel<U> entityModel, AttributeModel attributeModel) {\n // override in subclasses\n return null;\n }", "public EsIndexPropertyBuilder addField(String fieldName, AllowableFieldEntry field) {\n this.fieldMap.put(fieldName, field);\n return this;\n }", "public AttributeField(Field field){\n this.field = field;\n }", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}", "@Override\r\n protected void addAdditionalFormFields(AssayDomainIdForm domainIdForm, DataRegion rgn)\r\n {\n rgn.addHiddenFormField(\"providerName\", domainIdForm.getProviderName());\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "void addEntity(IViewEntity entity);", "private void createListFields(SGTable table) {\n\t\t\t\n\t\t ListGridField LIST_COLUMN_FIELD = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145); \n\t\t LIST_COLUMN_FIELD.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105); \n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\",Util.TI18N.LIST_COLUMN_WIDTH(),40); \n\t\t ListGridField LIST_SHOW_FLAG = new ListGridField(\"SHOW_FLAG\",Util.TI18N.LIST_SHOW_FLAG(),50);\n\t\t LIST_SHOW_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t ListGridField MODIFY_FLAG=new ListGridField(\"MODIFY_FLAG\",\"\",50);\n\t\t MODIFY_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t MODIFY_FLAG.setHidden(true);\n\t\t table.setFields(LIST_COLUMN_FIELD, LIST_COLUMN_CNAME, LIST_COLUMN_WIDTH, LIST_SHOW_FLAG,MODIFY_FLAG);\n\t}", "public void addField(String fieldName, Object fieldValue, boolean forceAdd) {\n if (forceAdd\n || (this.beanMap.containsKey(fieldName)\n && this.beanMap.get(fieldName) == null && !this.deferredDescriptions\n .containsKey(fieldName))) {\n this.beanMap.put(fieldName, fieldValue);\n }\n }", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "ObjectField createObjectField();", "public JsonField() {\n }", "public void buildMetaFields() {\n for (AtreusMetaEntity metaEntity : environment.getMetaManager().getEntities()) {\n Class<?> entityType = metaEntity.getEntityType();\n\n // Build the fields\n for (Field field : entityType.getDeclaredFields()) {\n\n // Execute the meta property builder rule bindValue\n for (BaseEntityMetaComponentBuilder propertyBuilder : fieldPropertyBuilders) {\n if (!propertyBuilder.acceptsField((MetaEntityImpl) metaEntity, field)) {\n continue;\n }\n propertyBuilder.validateField((MetaEntityImpl) metaEntity, field);\n if (propertyBuilder.handleField((MetaEntityImpl) metaEntity, field)) {\n break;\n }\n }\n\n }\n }\n }", "@Test(enabled = false) //ExSkip\n public void insertMergeField(final DocumentBuilder builder, final String fieldName, final String textBefore, final String textAfter) throws Exception {\n FieldMergeField field = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n field.setFieldName(fieldName);\n field.setTextBefore(textBefore);\n field.setTextAfter(textAfter);\n }", "protected abstract void createFieldEditors();", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "private void exposeExposedFieldsToJs() {\n if (fieldsWithNameExposed.isEmpty()) {\n return;\n }\n\n MethodSpec.Builder exposeFieldMethod = MethodSpec\n .methodBuilder(\"vg$ef\")\n .addAnnotation(JsMethod.class);\n\n fieldsWithNameExposed\n .forEach(field -> exposeFieldMethod\n .addStatement(\"this.$L = $T.v()\",\n field.getName(),\n FieldsExposer.class)\n );\n\n exposeFieldMethod\n .addStatement(\n \"$T.e($L)\",\n FieldsExposer.class,\n fieldsWithNameExposed.stream()\n .map(ExposedField::getName)\n .collect(Collectors.joining(\",\"))\n );\n componentExposedTypeBuilder.addMethod(exposeFieldMethod.build());\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void addField (String label, String field) {\n addField (label, field, \"\");\n }", "@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "@Data\npublic class <XXX>ModelInfo extends AbstractModelInfo {\n private <Field1DataType> <Field1>;\n /**\n * @return an corresponding {@link <XXX>Transformer} for this model info\n */\n @Override\n public Transformer getTransformer() {\n return new <XXX>Transformer(this);\n }", "Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "EntityBeanDescriptor createEntityBeanDescriptor();", "private void addFields(StringBuilder xml) {\n\t\tfor(FieldRequest field : fields) {\n\t\t\tstartElementWithAttributes(xml, \"Delta\");\n\t\t\taddStringAttribute(xml, \"id\", field.getId());\n\t\t\taddBooleanAttribute(xml, \"masked\", field.getMasked());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t}", "private void createUserListFields(SGTable table) {\n\t\t ListGridField LIST_COLUMN_ID = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145);\n\t\t LIST_COLUMN_ID.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\", Util.TI18N.LIST_COLUMN_WIDTH(), 40);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t table.setFields(LIST_COLUMN_ID, LIST_COLUMN_CNAME, COLUMN_WIDTH);\n }", "Builder addMainEntityOfPage(String value);", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addCharField(CharField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "public static void providePOJOsFieldAndGetterSetter(\n final FileWriterWrapper writer,\n final Field field)\n throws IOException {\n String javaType = mapType(field.getOriginalDataType());\n\n writer.write(\" private \" + javaType + \" \" + field.getJavaName()\n + \" = null;\\n\\n\");\n\n writer.write(\" public \" + javaType + \" \" + field.getGetterName()\n + \"() {\\n\");\n writer.write(\" return \" + field.getJavaName() + \";\\n\");\n writer.write(\" }\\n\\n\");\n\n writer.write(\" public void \" + field.getSetterName() + \"(\"\n + javaType + \" newValue) {\\n\");\n writer.write(\" \" + field.getJavaName() + \" = newValue\"\n + \";\\n\");\n writer.write(\" }\\n\\n\");\n }", "@Override\n public boolean isDisableMetadataField() {\n return false;\n }", "@SuppressWarnings(\"all\")\n public AField create(IAPresenter source, Field reflectedJavaField, AEntity entityBean) {\n AField algosField = null;\n List items = null;\n boolean nuovaEntity = text.isEmpty(entityBean.id);\n EAFieldType type = annotation.getFormType(reflectedJavaField);\n String caption = annotation.getFormFieldName(reflectedJavaField);\n AIField fieldAnnotation = annotation.getAIField(reflectedJavaField);\n String width = annotation.getWidthEM(reflectedJavaField);\n boolean required = annotation.isRequired(reflectedJavaField);\n boolean focus = annotation.isFocus(reflectedJavaField);\n boolean enabled = annotation.isFieldEnabled(reflectedJavaField, nuovaEntity);\n Class targetClazz = annotation.getComboClass(reflectedJavaField);\n// boolean visible = annotation.isFieldVisibile(reflectedJavaField, nuovaEntity);\n Object bean;\n\n //@todo RIMETTERE\n// int rows = annotation.getNumRows(reflectionJavaField);\n// boolean nullSelection = annotation.isNullSelectionAllowed(reflectionJavaField);\n// boolean newItems = annotation.isNewItemsAllowed(reflectionJavaField);\n\n if (type == EAFieldType.text.noone) {\n return null;\n }// end of if cycle\n\n //@todo RIMETTERE\n// //--non riesco (per ora) a leggere le Annotation da una classe diversa (AEntity)\n// if (fieldAnnotation == null && reflectionJavaField.getName().equals(Cost.PROPERTY_ID)) {\n// type = EAFieldType.id;\n// }// end of if cycle\n\n if (type != null) {\n algosField = fieldFactory.crea(source, type, reflectedJavaField, entityBean);\n }// end of if cycle\n\n if (type == EAFieldType.combo && targetClazz != null && algosField != null) {\n bean = context.getBean(targetClazz);\n\n if (bean instanceof AService) {\n items = ((AService) bean).findAll();\n }// end of if cycle\n\n if (array.isValid(items)) {\n ((AComboField) algosField).fixCombo(items, false, false);\n }// end of if cycle\n }// end of if cycle\n\n\n //@todo RIMETTERE\n// if (type == EAFieldType.enumeration && targetClazz != null && algosField != null) {\n// if (targetClazz.isEnum()) {\n// items = new ArrayList(Arrays.asList(targetClazz.getEnumConstants()));\n// }// end of if cycle\n//\n// if (algosField != null && algosField instanceof AComboField && items != null) {\n// ((AComboField) algosField).fixCombo(items, false, false);\n// }// end of if cycle\n// }// end of if cycle\n\n //@todo RIMETTERE\n// if (type == EAFieldType.radio && targetClazz != null && algosField != null) {\n// //@todo PATCH - PATCH - PATCH\n// if (reflectionJavaField.getName().equals(\"attivazione\") && entityBean.getClass().getName().equals(Preferenza.class.getName())) {\n// items = new ArrayList(Arrays.asList(PrefEffect.values()));\n// }// end of if cycle\n// //@todo PATCH - PATCH - PATCH\n//\n// if (items != null) {\n// ((ARadioField) algosField).fixRadio(items);\n// }// end of if cycle\n// }// end of if cycle\n\n //@todo RIMETTERE\n// if (type == EAFieldType.link && targetClazz != null && algosField != null) {\n// String lowerName = text.primaMinuscola(targetClazz.getSimpleName());\n// Object bean = context.getBean(lowerName);\n// algosField.setTarget((ApplicationListener) bean);\n// }// end of if cycle\n//\n if (algosField != null && fieldAnnotation != null) {\n// algosField.setVisible(visible);\n algosField.setEnabled(enabled);\n algosField.setRequiredIndicatorVisible(required);\n algosField.setCaption(caption);\n// if (text.isValid(width)) {\n algosField.setWidth(width);\n// }// end of if cycle\n// if (rows > 0) {\n// algosField.setRows(rows);\n// }// end of if cycle\n algosField.setFocus(focus);\n//\n// if (LibParams.displayToolTips()) {\n// algosField.setDescription(fieldAnnotation.help());\n// }// end of if cycle\n//\n// if (type == EAFieldType.dateNotEnabled) {\n// algosField.setEnabled(false);\n// }// end of if cycle\n }// end of if cycle\n\n return algosField;\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "private void addDescriptorFields (XmlDescriptor new_desc, Vector fields) {\n\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\tJField jf = (JField)fields.elementAt(i);\n\t\t\tif (!jf._noMarshal) {\t\t\t\t\n\t\t\t\tif (jf.isXmlAttribute())\n\t\t\t\t\tnew_desc.addAttribute (jf);\n\t\t\t\telse\n\t\t\t\t\tnew_desc.addElement (jf);\n\t\t\t} else {\n\t\t\t\t//System.out.println (\"not adding unmarshal field..\" + jf.getJavaName ());\n\t\t\t}\n\t\t}\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "public EntityPropertyBean() {}", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }" ]
[ "0.6293893", "0.5986822", "0.59341836", "0.5806106", "0.56999904", "0.5624687", "0.5621564", "0.56039053", "0.55890507", "0.5526677", "0.55266404", "0.5502451", "0.5450132", "0.54496264", "0.54482853", "0.543936", "0.54213905", "0.5396499", "0.53930473", "0.53853625", "0.5378492", "0.53671306", "0.536533", "0.53547287", "0.5354212", "0.53195524", "0.5300295", "0.5280779", "0.52764636", "0.52764046", "0.52719384", "0.52609193", "0.5251819", "0.5238033", "0.52328295", "0.52262783", "0.5223781", "0.5219756", "0.5208838", "0.5208573", "0.52064323", "0.52047396", "0.5190941", "0.5188286", "0.51827544", "0.5145176", "0.51374054", "0.51359516", "0.51327676", "0.51326823", "0.5132345", "0.51301134", "0.5122782", "0.51194996", "0.511581", "0.51108897", "0.5097939", "0.50859654", "0.5077357", "0.5076853", "0.5073358", "0.5070846", "0.5066717", "0.5065334", "0.5062277", "0.5058402", "0.5054099", "0.50533867", "0.5053044", "0.50530195", "0.50525886", "0.5049903", "0.5048631", "0.5044779", "0.50403583", "0.5031316", "0.5029985", "0.5023854", "0.5020852", "0.50099134", "0.5006935", "0.50052017", "0.5003575", "0.49987835", "0.49885505", "0.49714342", "0.4958237", "0.4957674", "0.49548337", "0.49544907", "0.4949461", "0.49298587", "0.49280858", "0.4927795", "0.49250588", "0.49232006", "0.4913229", "0.4908593", "0.49069068", "0.49068713", "0.4900917" ]
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Image image = (Image) o; if (image.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), image.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }", "public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}", "public interface ResourceEntityMapperExt {\n\n List<ResourceEntity> getAllResource();\n\n Set<ResourceEntity> selectRoleResourcesByRoleId(@Param(\"roleId\") String roleId);\n\n void disable(@Param(\"resourceId\") String resourceId);\n\n void enable(@Param(\"resourceId\") String resourceId);\n\n List<Map> getParentMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getChildrenMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getAllParentMenus();\n\n List<Map> getAllChildrenMenus();\n\n List<Map> queryResourceList();\n\n void deleteByResourceId(@Param(\"resourceId\")String resourceId);\n\n List<String> resourcesByRoleId(@Param(\"roleId\") String roleId);\n\n List<Map> getAllChildrenMenusBySourceId(@Param(\"sourceId\")String sourceId);\n}", "@Mapper(componentModel = \"spring\", uses = {SabegheMapper.class, NoeSabegheMapper.class})\npublic interface AdamKhesaratMapper extends EntityMapper<AdamKhesaratDTO, AdamKhesarat> {\n\n @Mapping(source = \"sabeghe.id\", target = \"sabegheId\")\n @Mapping(source = \"sabeghe.name\", target = \"sabegheName\")\n @Mapping(source = \"noeSabeghe.id\", target = \"noeSabegheId\")\n @Mapping(source = \"noeSabeghe.name\", target = \"noeSabegheName\")\n AdamKhesaratDTO toDto(AdamKhesarat adamKhesarat);\n\n @Mapping(source = \"sabegheId\", target = \"sabeghe\")\n @Mapping(source = \"noeSabegheId\", target = \"noeSabeghe\")\n AdamKhesarat toEntity(AdamKhesaratDTO adamKhesaratDTO);\n\n default AdamKhesarat fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdamKhesarat adamKhesarat = new AdamKhesarat();\n adamKhesarat.setId(id);\n return adamKhesarat;\n }\n}", "public void toEntity(){\n\n }", "public interface EmployeeMapper extends BaseMapper<Employee> {\n\n @Override\n @Select(\"select * from employee\")\n List<Employee> findAll();\n\n @Override\n int save(Employee employee);\n}", "public interface RepositoryJpaMetadataProvider extends\n ItdTriggerBasedMetadataProvider {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "@ProviderType\npublic interface LichChiTietModel\n\textends BaseModel<LichChiTiet>, GroupedModel, ShardedModel {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a lich chi tiet model instance should use the {@link LichChiTiet} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this lich chi tiet.\n\t *\n\t * @return the primary key of this lich chi tiet\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this lich chi tiet.\n\t *\n\t * @param primaryKey the primary key of this lich chi tiet\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @return the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic long getLichChiTietId();\n\n\t/**\n\t * Sets the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @param lichChiTietId the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic void setLichChiTietId(long lichChiTietId);\n\n\t/**\n\t * Returns the group ID of this lich chi tiet.\n\t *\n\t * @return the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getGroupId();\n\n\t/**\n\t * Sets the group ID of this lich chi tiet.\n\t *\n\t * @param groupId the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setGroupId(long groupId);\n\n\t/**\n\t * Returns the language of this lich chi tiet.\n\t *\n\t * @return the language of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLanguage();\n\n\t/**\n\t * Sets the language of this lich chi tiet.\n\t *\n\t * @param language the language of this lich chi tiet\n\t */\n\tpublic void setLanguage(String language);\n\n\t/**\n\t * Returns the company ID of this lich chi tiet.\n\t *\n\t * @return the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getCompanyId();\n\n\t/**\n\t * Sets the company ID of this lich chi tiet.\n\t *\n\t * @param companyId the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCompanyId(long companyId);\n\n\t/**\n\t * Returns the user ID of this lich chi tiet.\n\t *\n\t * @return the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getUserId();\n\n\t/**\n\t * Sets the user ID of this lich chi tiet.\n\t *\n\t * @param userId the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserId(long userId);\n\n\t/**\n\t * Returns the user uuid of this lich chi tiet.\n\t *\n\t * @return the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic String getUserUuid();\n\n\t/**\n\t * Sets the user uuid of this lich chi tiet.\n\t *\n\t * @param userUuid the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserUuid(String userUuid);\n\n\t/**\n\t * Returns the user name of this lich chi tiet.\n\t *\n\t * @return the user name of this lich chi tiet\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUserName();\n\n\t/**\n\t * Sets the user name of this lich chi tiet.\n\t *\n\t * @param userName the user name of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserName(String userName);\n\n\t/**\n\t * Returns the create date of this lich chi tiet.\n\t *\n\t * @return the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getCreateDate();\n\n\t/**\n\t * Sets the create date of this lich chi tiet.\n\t *\n\t * @param createDate the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCreateDate(Date createDate);\n\n\t/**\n\t * Returns the created by user of this lich chi tiet.\n\t *\n\t * @return the created by user of this lich chi tiet\n\t */\n\tpublic long getCreatedByUser();\n\n\t/**\n\t * Sets the created by user of this lich chi tiet.\n\t *\n\t * @param createdByUser the created by user of this lich chi tiet\n\t */\n\tpublic void setCreatedByUser(long createdByUser);\n\n\t/**\n\t * Returns the modified date of this lich chi tiet.\n\t *\n\t * @return the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getModifiedDate();\n\n\t/**\n\t * Sets the modified date of this lich chi tiet.\n\t *\n\t * @param modifiedDate the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setModifiedDate(Date modifiedDate);\n\n\t/**\n\t * Returns the modified by user of this lich chi tiet.\n\t *\n\t * @return the modified by user of this lich chi tiet\n\t */\n\tpublic long getModifiedByUser();\n\n\t/**\n\t * Sets the modified by user of this lich chi tiet.\n\t *\n\t * @param modifiedByUser the modified by user of this lich chi tiet\n\t */\n\tpublic void setModifiedByUser(long modifiedByUser);\n\n\t/**\n\t * Returns the gio bat dau of this lich chi tiet.\n\t *\n\t * @return the gio bat dau of this lich chi tiet\n\t */\n\tpublic Date getGioBatDau();\n\n\t/**\n\t * Sets the gio bat dau of this lich chi tiet.\n\t *\n\t * @param gioBatDau the gio bat dau of this lich chi tiet\n\t */\n\tpublic void setGioBatDau(Date gioBatDau);\n\n\t/**\n\t * Returns the mo ta of this lich chi tiet.\n\t *\n\t * @return the mo ta of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getMoTa();\n\n\t/**\n\t * Sets the mo ta of this lich chi tiet.\n\t *\n\t * @param moTa the mo ta of this lich chi tiet\n\t */\n\tpublic void setMoTa(String moTa);\n\n\t/**\n\t * Returns the nguoi tham du of this lich chi tiet.\n\t *\n\t * @return the nguoi tham du of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiThamDu();\n\n\t/**\n\t * Sets the nguoi tham du of this lich chi tiet.\n\t *\n\t * @param nguoiThamDu the nguoi tham du of this lich chi tiet\n\t */\n\tpublic void setNguoiThamDu(String nguoiThamDu);\n\n\t/**\n\t * Returns the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @return the nguoi chu tri of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiChuTri();\n\n\t/**\n\t * Sets the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @param nguoiChuTri the nguoi chu tri of this lich chi tiet\n\t */\n\tpublic void setNguoiChuTri(String nguoiChuTri);\n\n\t/**\n\t * Returns the selected date of this lich chi tiet.\n\t *\n\t * @return the selected date of this lich chi tiet\n\t */\n\tpublic Date getSelectedDate();\n\n\t/**\n\t * Sets the selected date of this lich chi tiet.\n\t *\n\t * @param selectedDate the selected date of this lich chi tiet\n\t */\n\tpublic void setSelectedDate(Date selectedDate);\n\n\t/**\n\t * Returns the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @return the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic int getTrangthaiChiTiet();\n\n\t/**\n\t * Sets the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @param trangthaiChiTiet the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic void setTrangthaiChiTiet(int trangthaiChiTiet);\n\n\t/**\n\t * Returns the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @return the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic long getLichCongTacId();\n\n\t/**\n\t * Sets the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @param lichCongTacId the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic void setLichCongTacId(long lichCongTacId);\n\n\t/**\n\t * Returns the address of this lich chi tiet.\n\t *\n\t * @return the address of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getAddress();\n\n\t/**\n\t * Sets the address of this lich chi tiet.\n\t *\n\t * @param address the address of this lich chi tiet\n\t */\n\tpublic void setAddress(String address);\n\n\t/**\n\t * Returns the note of this lich chi tiet.\n\t *\n\t * @return the note of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNote();\n\n\t/**\n\t * Sets the note of this lich chi tiet.\n\t *\n\t * @param note the note of this lich chi tiet\n\t */\n\tpublic void setNote(String note);\n\n\t/**\n\t * Returns the lydo tra ve of this lich chi tiet.\n\t *\n\t * @return the lydo tra ve of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLydoTraVe();\n\n\t/**\n\t * Sets the lydo tra ve of this lich chi tiet.\n\t *\n\t * @param lydoTraVe the lydo tra ve of this lich chi tiet\n\t */\n\tpublic void setLydoTraVe(String lydoTraVe);\n\n\t/**\n\t * Returns the organization ID of this lich chi tiet.\n\t *\n\t * @return the organization ID of this lich chi tiet\n\t */\n\tpublic long getOrganizationId();\n\n\t/**\n\t * Sets the organization ID of this lich chi tiet.\n\t *\n\t * @param organizationId the organization ID of this lich chi tiet\n\t */\n\tpublic void setOrganizationId(long organizationId);\n\n}", "private GetProperty(Builder builder) {\n super(builder);\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "public interface CreateEntityView<E extends SerializableEntity> extends EntityView {\r\n\r\n\t/**\r\n\t * Make save handler enabled\r\n\t * \r\n\t * @param enabled\r\n\t */\r\n\tvoid setSaveHandlerEnabled(boolean enabled);\r\n\t\r\n}", "public interface IGQLDynamicAttributeGetterSetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE, SETTER_ATTRIBUTE_TYPE>\n\t\textends\n\t\t\tIGQLDynamicAttributeGetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE>,\n\t\t\tIGQLDynamicAttributeSetter<ENTITY_TYPE, SETTER_ATTRIBUTE_TYPE> {\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "public interface SaleRowDTOProperties {\n\n Vehicle.KapschVehicle getVehicle();\n\n void setVehicle(Vehicle.KapschVehicle vehicle);\n\n}", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MisteriosoMapper extends EntityMapper<MisteriosoDTO, Misterioso> {\n\n \n\n \n\n default Misterioso fromId(Long id) {\n if (id == null) {\n return null;\n }\n Misterioso misterioso = new Misterioso();\n misterioso.setId(id);\n return misterioso;\n }\n}", "@ProviderType\npublic interface PersonModel extends BaseModel<Person> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a person model instance should use the {@link Person} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this person.\n\t *\n\t * @return the primary key of this person\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this person.\n\t *\n\t * @param primaryKey the primary key of this person\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this person.\n\t *\n\t * @return the uuid of this person\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this person.\n\t *\n\t * @param uuid the uuid of this person\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the person ID of this person.\n\t *\n\t * @return the person ID of this person\n\t */\n\tpublic long getPersonId();\n\n\t/**\n\t * Sets the person ID of this person.\n\t *\n\t * @param personId the person ID of this person\n\t */\n\tpublic void setPersonId(long personId);\n\n\t/**\n\t * Returns the name of this person.\n\t *\n\t * @return the name of this person\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this person.\n\t *\n\t * @param name the name of this person\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the age of this person.\n\t *\n\t * @return the age of this person\n\t */\n\tpublic int getAge();\n\n\t/**\n\t * Sets the age of this person.\n\t *\n\t * @param age the age of this person\n\t */\n\tpublic void setAge(int age);\n\n\t/**\n\t * Returns the gender of this person.\n\t *\n\t * @return the gender of this person\n\t */\n\t@AutoEscape\n\tpublic String getGender();\n\n\t/**\n\t * Sets the gender of this person.\n\t *\n\t * @param gender the gender of this person\n\t */\n\tpublic void setGender(String gender);\n\n\t/**\n\t * Returns the email ID of this person.\n\t *\n\t * @return the email ID of this person\n\t */\n\t@AutoEscape\n\tpublic String getEmailId();\n\n\t/**\n\t * Sets the email ID of this person.\n\t *\n\t * @param emailId the email ID of this person\n\t */\n\tpublic void setEmailId(String emailId);\n\n\t/**\n\t * Returns the nationality of this person.\n\t *\n\t * @return the nationality of this person\n\t */\n\t@AutoEscape\n\tpublic String getNationality();\n\n\t/**\n\t * Sets the nationality of this person.\n\t *\n\t * @param nationality the nationality of this person\n\t */\n\tpublic void setNationality(String nationality);\n\n\t/**\n\t * Returns the occupation of this person.\n\t *\n\t * @return the occupation of this person\n\t */\n\t@AutoEscape\n\tpublic String getOccupation();\n\n\t/**\n\t * Sets the occupation of this person.\n\t *\n\t * @param occupation the occupation of this person\n\t */\n\tpublic void setOccupation(String occupation);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface GradeMapper extends EntityMapper<GradeDTO, Grade> {\n\n\n @Mapping(target = \"subjects\", ignore = true)\n @Mapping(target = \"contents\", ignore = true)\n Grade toEntity(GradeDTO gradeDTO);\n\n default Grade fromId(Long id) {\n if (id == null) {\n return null;\n }\n Grade grade = new Grade();\n grade.setId(id);\n return grade;\n }\n}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "public void setUWCompany(entity.UWCompany value);", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EightydMapper extends EntityMapper<EightydDTO, Eightyd> {\n\n\n\n default Eightyd fromId(Long id) {\n if (id == null) {\n return null;\n }\n Eightyd eightyd = new Eightyd();\n eightyd.setId(id);\n return eightyd;\n }\n}", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "public interface RoleMapper {\n\n @Insert(\"insert into role values (role,desc) values (#{model.role},#{model.desc})\")\n @Options(useGeneratedKeys = true,keyProperty = \"model.id\")\n int insertRole(@Param(\"model\") RoleModel model);\n\n\n /**\n * 获取所有角色信息\n * @return\n */\n @Select(\"select id,role,desc,data_added,last_modified from role\")\n List<RoleModel> getAllRoles();\n\n\n /**\n * 获取角色Id\n * @param role\n * @return\n */\n @Select(\"select id from role where role=#{role}\")\n int getRoleId(String role);\n}", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@DSDerby\n@Repository\npublic interface HillMapper extends BaseMapper<Hill> {\n\n}", "@MapperScan\npublic interface AdminMapper{\n //------------------Add your code here---------------------\n\n //------------------以下代码自动生成-----------------------\n\n /**\n * 根据条件查询全部\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为查询的条件,默认为等于\n * 要改动sql请修改 *Mapper 类里的 _query() 方法\n */\n @SelectProvider(type = AdminSql.class,method = \"_queryAll\")\n List<AdminEntity> _queryAll(Map pagerParam);\n\n /**\n * 检验账号密码\n * @param account\n * @param password\n * @return\n */\n @SelectProvider(type = AdminSql.class,method = \"check\")\n List<AdminEntity> check(@Param(\"account\") String account, @Param(\"password\") String password);\n\n /**\n * 按id查询\n * 参数:\n * id : 要查询的记录的id\n */\n @SelectProvider(type = AdminSql.class,method = \"_get\")\n AdminEntity _get(String id);\n\n /**\n * 删除(逻辑)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_delete\")\n int _delete(String id);\n\n /**\n * 删除(物理)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_deleteForce\")\n int _deleteForce(String id);\n\n /**\n * 新增\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为要插入的key值\n */\n @InsertProvider(type = AdminSql.class,method = \"_add\")\n int _add(Map params);\n\n /**\n * 按实体类新增\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_addEntity\")\n int _addEntity(AdminEntity bean);\n\n /**\n * 更新\n * 参数:\n * id : 要更新的记录的id\n * 其他map里的参数,key为属性名(字段首字母小写)\n * value为要更新成的值\n */\n @InsertProvider(type = AdminSql.class,method = \"_update\")\n int _update(Map params);\n\n /**\n * 按实体类更新\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_updateEntity\")\n int _updateEntity(AdminEntity bean);\n\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CountryMapper extends EntityMapper<CountryDTO, Country> {\n\n\n @Mapping(target = \"cities\", ignore = true)\n @Mapping(target = \"countryLanguages\", ignore = true)\n Country toEntity(CountryDTO countryDTO);\n\n default Country fromId(Long id) {\n if (id == null) {\n return null;\n }\n Country country = new Country();\n country.setId(id);\n return country;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {TravauxMapper.class, ChantierMapper.class, EmployeMapper.class})\npublic interface AffectationMapper extends EntityMapper<AffectationDTO, Affectation> {\n\n @Mapping(source = \"travaux.id\", target = \"travauxId\")\n @Mapping(source = \"travaux.nomTrav\", target = \"travauxNomTrav\")\n @Mapping(source = \"chantier.id\", target = \"chantierId\")\n @Mapping(source = \"chantier.nomChantier\", target = \"chantierNomChantier\")\n AffectationDTO toDto(Affectation affectation);\n\n @Mapping(source = \"travauxId\", target = \"travaux\")\n @Mapping(source = \"chantierId\", target = \"chantier\")\n Affectation toEntity(AffectationDTO affectationDTO);\n\n default Affectation fromId(Long id) {\n if (id == null) {\n return null;\n }\n Affectation affectation = new Affectation();\n affectation.setId(id);\n return affectation;\n }\n}", "public interface AllergyModelProperties extends PropertyAccess<AllergyModel> {\n ModelKeyProvider<AllergyModel> id();\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "EntityDefinitionVisitor getEntityDefinitionStateSetterVisitor();", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public sealed interface EntityMapper<D, E>permits CarMapper,\n ModelMapper, ModelOptionMapper, PricingClassMapper, UserInfoMapper,\n TownMapper, AddressMapper, RoleMapper, BookingMapper, RentMapper {\n\n E toEntity(D dto);\n\n D toDto(E entity);\n\n Collection<E> toEntity(Collection<D> dtoList);\n\n Collection<D> toDto(Collection<E> entityList);\n\n @Named(\"partialUpdate\")\n @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\n void partialUpdate(@MappingTarget E entity, D dto);\n}", "@Bean\n\t@Lazy(false)\n\tAdditionalModelsConverter additionalModelsConverter() {\n\t\treturn new AdditionalModelsConverter();\n\t}", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}", "@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}", "void generateWriteProperty2ContentValues(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = \"type\";\n\n /** The \"reportPath\" name. */\n public static final String REPORT_PATH = \"reportPath\";\n \n /**\n * Gets the type attribute.\n * @return the type attribute\n */\n public String getTransformType();\n\n /**\n * Sets the type attribute.\n * @param type the type attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setTransformType(String type);\n\n /**\n * Gets the config attribute.\n * @return the config attribute\n */\n public String getConfig();\n\n\n /**\n * Sets the config attribute.\n * @param config the config attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setConfig(String config);\n\n /**\n * Gets the reportPath attribute.\n * @return the reportPath attribute\n */\n public String getReportPath();\n\n /**\n * Sets the reportPath attribute.\n * @param reportPath the reportPath attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setReportPath(String reportPath);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifLineMapper extends EntityMapper <TarifLineDTO, TarifLine> {\n \n \n default TarifLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n TarifLine tarifLine = new TarifLine();\n tarifLine.setId(id);\n return tarifLine;\n }\n}", "@Bean\n\tpublic ExtendedMetadata extendedMetadata() {\n\t\tExtendedMetadata extendedMetadata = new ExtendedMetadata();\n\t\textendedMetadata.setIdpDiscoveryEnabled(true);\n\t\textendedMetadata.setSignMetadata(false);\n\t\textendedMetadata.setEcpEnabled(true);\n\t\treturn extendedMetadata;\n\t}", "public EntityPropertyBean() {}", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "EntityBeanDescriptor createEntityBeanDescriptor();", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "@Mapper\npublic interface UserMapper {\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return int\n */\n int registerAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param baseUser\n * @return int\n */\n int registerBaseUser(BaseUser baseUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return com.example.app.entity.BaseUser\n */\n AppUser loginAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param\n * @return java.util.List<com.example.app.entity.College>\n */\n @Select(\"select * from col\")\n List<College> allCollege();\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param user\n * @return int\n */\n int hasUser(BaseUser user);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param col_id\n * @return int\n */\n int hasCol(int col_id);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param sms\n * @return int\n */\n int registerCode(SMS sms);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param code\n * @return int\n */\n int getCode(@Param(\"code\") Integer code);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrder(Order order);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrderCount(Order order);\n\n}", "public interface TdHtFuncroleRelRepository {\n\n /**\n * @Purpose 根据id查找角色id和功能id\n * @version 4.0\n * @author lizhun\n * @param map\n * @return TdHtFuncroleRelDto\n */\n public TdHtFuncroleRelDto findFuncroleRelByRoleIdAndFuncId(Map<String,Integer> map);\n\n /**\n * @Purpose 根据权限id查找角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @param role_id\n * @return List<TdHtFuncroleRelDto>\n */\n public List<TdHtFuncroleRelDto> findFuncroleRelsByRoleId(int role_id);\n /**\n * @Purpose 添加角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void insertFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色所有功能不可用\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRelByRoleId(int role_id);\n}", "public interface AEntityProperty {\n}", "public interface EntitySource extends IdentifiableTypeSource, ToolingHintContextContainer, EntityNamingSourceContributor {\n\t/**\n\t * Obtain the primary table for this entity.\n\t *\n\t * @return The primary table.\n\t */\n\tpublic TableSpecificationSource getPrimaryTable();\n\n\t/**\n\t * Obtain the secondary tables for this entity\n\t *\n\t * @return returns an iterator over the secondary tables for this entity\n\t */\n\tpublic Map<String,SecondaryTableSource> getSecondaryTableMap();\n\n\tpublic String getXmlNodeName();\n\n\t/**\n\t * Obtain the named custom tuplizer classes to be used.\n\t *\n\t * @return The custom tuplizer class names\n\t */\n\tpublic Map<EntityMode,String> getTuplizerClassMap();\n\n\t/**\n\t * Obtain the name of a custom persister class to be used.\n\t *\n\t * @return The custom persister class name\n\t */\n\tpublic String getCustomPersisterClassName();\n\n\t/**\n\t * Is this entity lazy (proxyable)?\n\t *\n\t * @return {@code true} indicates the entity is lazy; {@code false} non-lazy.\n\t */\n\tpublic boolean isLazy();\n\n\t/**\n\t * For {@link #isLazy() lazy} entities, obtain the interface to use in constructing its proxies.\n\t *\n\t * @return The proxy interface name\n\t */\n\tpublic String getProxy();\n\n\t/**\n\t * Obtain the batch-size to be applied when initializing proxies of this entity.\n\t *\n\t * @return returns the the batch-size.\n\t */\n\tpublic int getBatchSize();\n\n\t/**\n\t * Is the entity abstract?\n\t * <p/>\n\t * The implication is whether the entity maps to a database table.\n\t *\n\t * @return {@code true} indicates the entity is abstract; {@code false} non-abstract; {@code null}\n\t * indicates that a reflection check should be done when building the persister.\n\t */\n\tpublic Boolean isAbstract();\n\n\t/**\n\t * Did the source specify dynamic inserts?\n\t *\n\t * @return {@code true} indicates dynamic inserts will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicInsert();\n\n\t/**\n\t * Did the source specify dynamic updates?\n\t *\n\t * @return {@code true} indicates dynamic updates will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicUpdate();\n\n\t/**\n\t * Did the source specify to perform selects to decide whether to perform (detached) updates?\n\t *\n\t * @return {@code true} indicates selects will be done; {@code false} otherwise.\n\t */\n\tpublic boolean isSelectBeforeUpdate();\n\n\t/**\n\t * Obtain the name of a named-query that will be used for loading this entity\n\t *\n\t * @return THe custom loader query name\n\t */\n\tpublic String getCustomLoaderName();\n\n\t/**\n\t * Obtain the custom SQL to be used for inserts for this entity\n\t *\n\t * @return The custom insert SQL\n\t */\n\tpublic CustomSql getCustomSqlInsert();\n\n\t/**\n\t * Obtain the custom SQL to be used for updates for this entity\n\t *\n\t * @return The custom update SQL\n\t */\n\tpublic CustomSql getCustomSqlUpdate();\n\n\t/**\n\t * Obtain the custom SQL to be used for deletes for this entity\n\t *\n\t * @return The custom delete SQL\n\t */\n\tpublic CustomSql getCustomSqlDelete();\n\n\t/**\n\t * Obtain any additional table names on which to synchronize (auto flushing) this entity.\n\t *\n\t * @return Additional synchronized table names or 0 sized String array, never return null.\n\t */\n\tpublic String[] getSynchronizedTableNames();\n\n\t/**\n\t * Get the actual discriminator value in case of a single table inheritance\n\t *\n\t * @return the actual discriminator value in case of a single table inheritance or {@code null} in case there is no\n\t * explicit value or a different inheritance scheme\n\t */\n\tpublic String getDiscriminatorMatchValue();\n\n\t/**\n\t * @return returns the source information for constraints defined on the table\n\t */\n\tpublic Collection<ConstraintSource> getConstraints();\n\n\t/**\n\t * Obtain the filters for this entity.\n\t *\n\t * @return returns an array of the filters for this entity.\n\t */\n\tpublic FilterSource[] getFilterSources();\n\n\tpublic List<JaxbHbmNamedQueryType> getNamedQueries();\n\n\tpublic List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries();\n\n\tpublic TruthValue quoteIdentifiersLocalToEntity();\n\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface PerformerMapper extends EntityMapper<PerformerDTO, Performer> {\n\n\n\n default Performer fromId(Long id) {\n if (id == null) {\n return null;\n }\n Performer performer = new Performer();\n performer.setId(id);\n return performer;\n }\n}", "@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}", "@Api(tags = \"Address Entity\")\n@RepositoryRestResource(collectionResourceRel = \"taxInformation\", path =\"taxInformation\")\npublic interface TaxInformationRepository extends PagingAndSortingRepository<TaxInformation,Integer> {\n}", "public interface EmployeeRepository extends ArangoRepository<Employee, String> {}", "@Mapper\n@Repository\npublic interface StockMapper {\n\n @Insert(\"insert into product_stock(valued,product_id) values(#{valued},#{product_id})\")\n public void insertProductStock(ProductStock ProductStock);\n @Update(\"update product_stock set valued=#{valued},product_id=#{product_id} where id=#{id}\")\n public void updateProductStock(ProductStock ProductStock);\n @Delete(\"delete from product_stock where id=#{id}\")\n public void deleteProductStock(Integer id);\n @Select(\"select * from product_stock\")\n public List<ProductStock> selectAll();\n @Select(\"select * from product_stock where id=#{id}\")\n ProductStock selectById(Integer id);\n @Select(\"select * from product_stock where product_id=#{id}\")\n ProductStock findStockByProductId(Integer id);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TemplateFormulaireMapper extends EntityMapper<TemplateFormulaireDTO, TemplateFormulaire> {\n\n\n @Mapping(target = \"questions\", ignore = true)\n TemplateFormulaire toEntity(TemplateFormulaireDTO templateFormulaireDTO);\n\n default TemplateFormulaire fromId(Long id) {\n if (id == null) {\n return null;\n }\n TemplateFormulaire templateFormulaire = new TemplateFormulaire();\n templateFormulaire.setId(id);\n return templateFormulaire;\n }\n}", "public void setupEntities() {\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrderPaymentMapper extends EntityMapper<OrderPaymentDTO, OrderPayment> {\n\n\n\n default OrderPayment fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrderPayment orderPayment = new OrderPayment();\n orderPayment.setId(id);\n return orderPayment;\n }\n}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(ShortestPathOutput.class, configuration);\n\t}", "@Repository\n@Mapper\npublic interface AppInfoMapper extends BaseMapper<AppInfoEntity> {\n}", "public interface LevelClearRecordService {\n\n /**\n * description: 根据传入bean查询挑战记录 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:34 <br>\n * author: zhengzhiqiang <br>\n *\n * @param selectParam\n * @return siyi.game.dao.entity.LevelClearRecord\n */\n LevelClearRecord selectByBean(LevelClearRecord selectParam);\n\n /**\n * description: 插入挑战记录信息 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:37 <br>\n * author: zhengzhiqiang <br>\n *\n * @param insertRecord\n * @return void\n */\n void insertSelective(LevelClearRecord insertRecord);\n\n /**\n * description: 根据主键更新挑战记录信息 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:39 <br>\n * author: zhengzhiqiang <br>\n *\n * @param levelClearRecord\n * @return void\n */\n void updateByIdSelective(LevelClearRecord levelClearRecord);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }", "public interface HealthBlockRecordsDataService extends MotechDataService<HealthBlock> {\n\n /**\n * finds the Health Block details by its parent code\n *\n * @param stateCode\n * @param districtCode\n * @param talukaCode\n * @param healthBlockCode\n * @return HealthBlock\n */\n @Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Owner3Mapper extends EntityMapper <Owner3DTO, Owner3> {\n \n @Mapping(target = \"car3S\", ignore = true)\n Owner3 toEntity(Owner3DTO owner3DTO); \n default Owner3 fromId(Long id) {\n if (id == null) {\n return null;\n }\n Owner3 owner3 = new Owner3();\n owner3.setId(id);\n return owner3;\n }\n}", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public interface ApiBaseUserRolePostSwitchPoService extends feihua.jdbc.api.service.ApiBaseService<BaseUserRolePostSwitchPo, BaseUserRolePostSwitchDto, String> {\n\n /**\n * 根据用户查询\n * @param userId\n * @return\n */\n BaseUserRolePostSwitchPo selectByUserId(String userId);\n}", "@JsonGetter(\"price_money\")\r\n public Money getPriceMoney() {\r\n return priceMoney;\r\n }", "public interface BaseService<Kiruvchi, Chiquvchi, ID> {\n\n //Create Entity\n ApiResponse addEntity(Kiruvchi kiruvchi);\n\n //Get Page<Entity>\n Page<Chiquvchi> getEntiyPageBySort(Optional<Integer> page, Optional<Integer> size, Optional<String> sortBy);\n\n //Get by id Optional<Entity> Sababi Http Status kodini tog'ri jo'natish uchun\n Optional<Chiquvchi> getEntityById(ID id);\n\n //Update Entity by id\n ApiResponse editState(ID id, Kiruvchi kiruvchi);\n\n //Delete Entity by id\n ApiResponse deleteEntityById(Integer id);\n}", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public interface ApplyOrderMapper extends CrudRepository<OrderEntity, Long> {\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, CustomerMapper.class})\npublic interface WorkDayMapper extends EntityMapper<WorkDayDTO, WorkDay> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n @Mapping(source = \"customer.id\", target = \"customerId\")\n WorkDayDTO toDto(WorkDay workDay);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(source = \"customerId\", target = \"customer\")\n WorkDay toEntity(WorkDayDTO workDayDTO);\n\n default WorkDay fromId(Long id) {\n if (id == null) {\n return null;\n }\n WorkDay workDay = new WorkDay();\n workDay.setId(id);\n return workDay;\n }\n}", "@RepositoryRestResource\npublic interface WebsiteRepository extends JpaRepository<WebsiteEntity, Long> {\n\n}", "@Mapper\npublic interface BCategoriesMapper {\n\n @Select(\"select * from t_categories\")\n List<CategoriesPo> findAll();\n\n @Select(\"select id,categoriesName,cAbbreviate from t_categories where id=#{id}\")\n CategoriesPo getById(@Param(\"id\") int id);\n\n @Insert(\"insert ignore into t_categories(categoriesName,cAbbreviate) values(#{categoriesName},#{cAbbreviate})\")\n boolean save(@Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Update(\"update t_categories set categoriesName=#{categoriesName},cAbbreviate=#{cAbbreviate} where id=#{id}\")\n boolean edit(@Param(\"id\") int id, @Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Delete(\"delete from t_categories where id=#{id}\")\n boolean deleteById(@Param(\"id\") int id);\n}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "@Repository(\"productTypeMapper\")\npublic interface ProductTypeMapper extends CommonMapper<ProductTypeInfo> {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "@JsonIgnoreProperties({\"ezdUmg\"})\npublic interface BigretUsersFilter {\n}", "@SuppressWarnings(\"deprecation\")\npublic interface SyntheticModelProviderPlugin extends Plugin<ModelContext> {\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n springfox.documentation.schema.Model create(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);\n\n\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n ModelSpecification createModelSpecification(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<PropertySpecification> propertySpecifications(ModelContext context);\n\n /**\n * Creates a dependencies for the synthetic model\n *\n * @param context - context to create the model dependencies from\n * @return model - when the plugin indicates it supports it, it may return dependent model types.\n */\n Set<ResolvedType> dependencies(ModelContext context);\n}", "@Override\n public void updateClassDescriptor(ClassDescriptor desc) {\n desc.getters = List.of();\n desc.setters = List.of();\n\n for (Iterator<Binding> iterator = desc.fields.iterator(); iterator.hasNext(); ) {\n Binding binding = iterator.next();\n \n if (!Modifier.isPublic(binding.field.getModifiers())) {\n iterator.remove();\n } else {\n Property property = getProperty(binding.annotations);\n if (property != null) {\n binding.fromNames = new String[]{property.name()};\n binding.toNames = new String[]{property.name()};\n } else {\n iterator.remove();\n }\n }\n }\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifMapper extends EntityMapper <TarifDTO, Tarif> {\n \n \n default Tarif fromId(Long id) {\n if (id == null) {\n return null;\n }\n Tarif tarif = new Tarif();\n tarif.setId(id);\n return tarif;\n }\n}", "@Bean\n public ModelMapper modelMapper() {\n ModelMapper mapper = new ModelMapper();\n\n mapper.addMappings(new PropertyMap<Permit, PermitDto>() {\n @Override\n protected void configure() {\n Converter<List<Code>, List<Integer>> codeConverter = mappingContext -> {\n List<Integer> result = new ArrayList<>();\n mappingContext.getSource().forEach(code -> result.add(code.getId()));\n return result;\n };\n\n using(codeConverter).map(source.getCodes()).setCodeIds(null);\n }\n });\n return mapper;\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChipsAdminRepository extends JpaRepository<ChipsAdmin, Long> {}", "@Bean\n public ExtendedMetadata extendedMetadata() {\n return new ExtendedMetadata();\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MedicoCalendarioMapper extends EntityMapper<MedicoCalendarioDTO, MedicoCalendario> {\n\n\n\n default MedicoCalendario fromId(Long id) {\n if (id == null) {\n return null;\n }\n MedicoCalendario medicoCalendario = new MedicoCalendario();\n medicoCalendario.setId(id);\n return medicoCalendario;\n }\n}", "@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }" ]
[ "0.6330276", "0.61092085", "0.5661362", "0.5651382", "0.5533474", "0.54645836", "0.5463423", "0.5449911", "0.54352325", "0.5415033", "0.53884166", "0.53799725", "0.53515357", "0.53424025", "0.5336392", "0.5330025", "0.5324882", "0.53230155", "0.5317087", "0.53032845", "0.52941155", "0.5278585", "0.5270743", "0.52643186", "0.5243084", "0.5241479", "0.52409506", "0.5226405", "0.5226128", "0.52085793", "0.52036023", "0.51990134", "0.51972896", "0.51944524", "0.518532", "0.5177614", "0.5171424", "0.5167412", "0.51637155", "0.51580054", "0.5156883", "0.5150814", "0.5147044", "0.51444966", "0.514189", "0.5131873", "0.51283526", "0.5125612", "0.512357", "0.5121363", "0.51137066", "0.5105386", "0.5102823", "0.5095968", "0.50949526", "0.50933033", "0.50921303", "0.5090408", "0.5074378", "0.5069843", "0.5061391", "0.50561446", "0.50525445", "0.50523937", "0.5049593", "0.504805", "0.5038728", "0.5038632", "0.5035859", "0.50290775", "0.5027934", "0.50251687", "0.5024947", "0.5021134", "0.501859", "0.5013184", "0.50127107", "0.5012577", "0.50117266", "0.5001887", "0.49941862", "0.49926683", "0.49846607", "0.49839705", "0.49820495", "0.49800733", "0.49776062", "0.49765527", "0.4973297", "0.49717644", "0.4969116", "0.4968955", "0.49659356", "0.49659333", "0.49657127", "0.49647185", "0.49641407", "0.49606064", "0.49573594", "0.49510297", "0.4949186" ]
0.0
-1
TODO: inflate a fragment view
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = super.onCreateView(inflater, container, savedInstanceState); unbinder = ButterKnife.bind(this, rootView); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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, @Nullable Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.call_fragment, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bookmark, container, false);\n context = getActivity();\n init(view);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_buy, container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_upload_new, container, false);\n findViewByIds(view);\n return view;\n }", "@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 container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.customer_book_fragment, container, false);\n inti(view);\n //clicks\n clicks();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_playlist, container, false);\n\n instView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_find, container, false);\n initView(view);\n initSend();\n getXgimi();\n return view;\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 }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wo_de, container, false);\n initView(view);\n return view;\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 view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my, container, false);\n initView(view);\n return view;\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 View inflate = inflater.inflate(R.layout.fragment_me, container, false);\n activity = getActivity();\n initView(inflate);\n return inflate;\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 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 view = inflater.inflate(R.layout.fragment_fan, container, false);\n initilizeViews();\n setListeners();\n\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_opening, 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 View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\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\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 public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_random_hf, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n return inflater.inflate(R.layout.fragment_blank, container, false);\n\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\r\n\t\tView view = inflater.inflate(R.layout.frag_main_pak, container, false);\r\n\r\n\t\tinit(view);\r\n\t\t\r\n\t\t\r\n\t\treturn view;\r\n\r\n\t}", "@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 return inflater.inflate(R.layout.fragment_my, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mainfragment, container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myFragment = inflater.inflate(R.layout.fragment_favourite, container, false);\n\n initComponent();\n\n return myFragment;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my, container, false);\n return view;\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_offer, container, false);\n context = getActivity();\n initView(view);\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_vicky, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_main4, container, false);\n return view;\n }", "@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_near_peoples, container, false);\n getActivity().setTitle(\"Share Card\");\n initUI();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_blank, container, false);\n initView(view);\n return view;\n }", "@Override\n\tprotected View initView(LayoutInflater arg0, ViewGroup arg1, Bundle arg2) {\n\t\treturn arg0.inflate(R.layout.fragment_find, arg1, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater\n .inflate(R.layout.static_fragment, container, false);\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 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\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_reception_home, container, false);\r\n\r\n Hello(view);\r\n return view;\r\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 }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_start, container, false);\n\n mLvAps = (ListView) view.findViewById(R.id.lvAps);\n mScanResults = new ArrayList<ScanResult>();\n mApAdapter = new ApAdapter(mActivity, mScanResults);\n mLvAps.setAdapter(mApAdapter);\n\n mBtnSend = (Button) view.findViewById(R.id.btnSend);\n mBtnSend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ((MyActivity) mActivity).getSupportFragmentManager().beginTransaction().replace(R\n .id.container, FileFragment.newInstance(\"arg\",\n \"arg\")).addToBackStack(\"FileFragment\").commit();\n }\n });\n mBtnReceive = (Button) view.findViewById(R.id.btnReceive);\n mBtnReceive.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_today, container, false);\n initComponent(view);\n return view;\n\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 parent = inflater.inflate(R.layout.frag_file, container, false);\n initViews();\n setListeners();\n return parent;\n }", "@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,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_list, container, false);\n initiate(view);\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_tab_tracking_sovilocation, container, false);\r\n\r\n setup(mView);\r\n GetData(true,\"\");\r\n\r\n return mView;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_display, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_guan_lxswei_shen, container, false);\n ButterKnife.bind(this, view);\n init();\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_who_working, 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 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,\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_porishongkhan, container, false);\n\n\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_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_viewer, container, false);\n initComponents(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_elearning, container, false);\n initView(view);\n return view;\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_blank, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_gank_fuli, 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(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_selection, container, false);\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_stockout, container, false);\n\n initView();\n initListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jogar, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_find, container, false);\n initView(view);\n getData(page,userId,token);\n setLister();\n return view;\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_firmy, container, false);\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 View view = inflater.inflate(R.layout.fragment_student_profile, container, false);\n\n findView(view);\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\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 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 View view = inflater.inflate(R.layout.fragment_favorites, null);\n initUi(view);\n setListener();\n callingServiceFavorites();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_maps, parent, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_overview, container, false);\n \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\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\treturn inflater.inflate(R.layout.fragment3, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return super.onCreateView(inflater, (ViewGroup) inflater.inflate(R.layout.fragment_display_good_detial, container, false), savedInstanceState);\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 view = inflater.inflate(R.layout.pickupboy_booking_fragment, container, false);\n mActivity = getActivity();\n userBookingFragment = this;\n initViews();\n getBundle();\n // manageHeaderView();\n setupTabIcons();\n setListener();\n setFragment(new FragementPickUpNewBooking());\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_explore, container, false);\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 view = inflater.inflate(R.layout.fragment_main, container, false);\n initUI(view);\n initData();\n setEventBus(this, true);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_downloaded, container, false);\n\n ButterKnife.bind(this, view);\n\n new LoadLocalFiles().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_start, container, false);\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 View view = inflater.inflate(R.layout.fragment_submit_problem, container, false);\n ButterKnife.bind(this, view);\n this.context = getActivity();\n init();\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle state) {\n view = inflater.inflate(R.layout.fragment_scan, null);\n\n view.findViewById(R.id.txtTest)\n .setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(getActivity(), \"Contents = \", Toast.LENGTH_SHORT).show();\n loadFragment(new PoleIdFragment());\n }\n }\n );\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register, container, false);\n initiate(view);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_show, container, false);\n findViews(view);\n initView();\n\n setListener();\n return view;\n }", "@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 view= inflater.inflate(R.layout.fragment_votevents, container, false);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_explore, container, false);\n return view;\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 }" ]
[ "0.7521221", "0.7492381", "0.748727", "0.747935", "0.74779373", "0.74665123", "0.7466305", "0.74525577", "0.74525565", "0.74439466", "0.7438845", "0.7434395", "0.7428372", "0.7417974", "0.7409175", "0.74005073", "0.73949224", "0.73864675", "0.7384268", "0.73831", "0.73830247", "0.7378957", "0.7376185", "0.73686284", "0.7355517", "0.7352409", "0.73503685", "0.7349216", "0.73464674", "0.7336475", "0.7336475", "0.73334754", "0.73325497", "0.7332127", "0.73260105", "0.73252606", "0.7307033", "0.73064065", "0.73052967", "0.7302716", "0.73017526", "0.72940457", "0.7293902", "0.7290436", "0.72823817", "0.7282097", "0.72813356", "0.72807795", "0.7277055", "0.72769284", "0.72741634", "0.72714263", "0.72702587", "0.7269974", "0.7268826", "0.7263715", "0.72636867", "0.72628677", "0.72623515", "0.726178", "0.7256535", "0.72537094", "0.7252952", "0.72528696", "0.7252545", "0.72514844", "0.72510177", "0.72479784", "0.72459865", "0.72458667", "0.72416735", "0.7240412", "0.723843", "0.7237236", "0.72347164", "0.72329366", "0.7231883", "0.7231151", "0.72307146", "0.7230605", "0.7228031", "0.72264725", "0.7224975", "0.722314", "0.721922", "0.7217247", "0.7215222", "0.72126096", "0.7212392", "0.72117215", "0.72106254", "0.7210242", "0.72096384", "0.72091645", "0.7208615", "0.72079444", "0.7207494", "0.7205623", "0.7205373", "0.72046053", "0.72027206" ]
0.0
-1
private static final Logger logger = LoggerFactory.getLogger("hee.com.controller.HomeController");
@GetMapping(value = "/") public String home(Locale locale, HttpServletRequest request) { // DEBUG level 이므로 trace는 출력안됨 logger.trace("trace level: Welcome home! The client locale is {}", locale); logger.debug("debug level: Welcome home! The client locale is {}", locale); logger.info("info level: Welcome home! The client locale is {}", locale); logger.warn("warn level: Welcome home! The client locale is {}", locale); logger.error("error level: Welcome home! The client locale is {}", locale); // 사용자 추적 String url = request.getRequestURL().toString(); String clientIPAddress = request.getRemoteAddr(); logger.info("Request URL: " + url); logger.info("Client IP: " + clientIPAddress); return "index"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HomeController() {\n }", "public HomeController() {\n }", "public interface IndexController {\n\n @LoggerInfo(Method = \"/sys/index\",Name = \"系统模块首页\")\n String index(Model model);\n}", "@RequestMapping(\"/\")\n String hello(){\n logger.debug(\"Debug message\");\n logger.info(\"Info message\");\n logger.warn(\"Warn message\");\n logger.error(\"Error message\");\n return \"Done\";\n }", "public LogMessageController() {\n\t}", "@Controller\n/*public class HomeController {\n\t\n\tprivate static final Logger logger = LoggerFactory.getLogger(HomeController.class);\n\t\n\t/**\n\t * Simply selects the home view to render by returning its name.\n\t */\n\t@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\t\n\t\tDate date = new Date();\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);\n\t\t\n\t\tString formattedDate = dateFormat.format(date);\n\t\t\n\t\tmodel.addAttribute(\"serverTime\", formattedDate );\n\t\t\n\t\treturn \"home\";\n\t}", "@RequestMapping(\"/home\")\n\tpublic String home() throws FileNotFoundException, IOException {\n\t\tlog.info(\"accessed info\");\n\t\tlog.warn(\"accessed warn\");\n\t\tlog.error(\"accessed error\");\n\t\tlog.debug(\"accessed debug\");\n\t\tlog.trace(\"accessed trace\");\n\t\treturn \"home\";\n\n\t}", "@GetMapping(\"/log-test\")\n public String logTest(){\n String name = \"Spring\";\n // System.out.println(\"name = \" + name);\n\n // 로그 레벨 낮은 레벨 --> 높은 레벨\n log.trace(\"trace log={}\", name);\n log.debug(\"debug log={}\", name);\n log.info(\"info log={}\", name);\n log.warn(\"warn log={}\", name);\n log.error(\"error log={}\", name);\n return \"ok\";\n }", "public LoginController() {\r\n\r\n }", "public AboutController(){\n }", "@Override\n public void logs() {\n \n }", "public LoginController() {\r\n }", "public EmployeeLoginController() {\n }", "public Controller()\n\t{\n\n\t}", "private HibernateController(){}", "public PersonLoginController() {\n }", "public void viewLogs() {\n\t}", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "@RequestMapping(value=\"/\", method=RequestMethod.GET)\n\tpublic String home() {\n\t\tlogger.info(\"Welcome home!\");\n\t\treturn \"home\";\n\t}", "private MissaJpaController() {\r\n }", "public HomeController(Application application){\r\n mApplication = application;\r\n homeRepositories = new HomeRepositories(mApplication);\r\n }", "public HelloControllerSession() {\n }", "@RequestMapping(\"/\")\n public String home(){\n return \"Hello World\";\n }", "@Test\n public void testHomePage() throws Exception{\n System.out.println(\"home\");\n HomeController controller = new HomeController();\n MockMvc mockMvc = standaloneSetup(controller).build();\n mockMvc.perform(get(\"/\")).andExpect(view().name(\"home\"));\n assertEquals(\"home\", controller.home());\n \n }", "@RequestMapping(method = RequestMethod.GET)\r\n public String home(ModelMap model) throws Exception\r\n {\t\t\r\n return \"Home\";\r\n }", "private ClientController(){\n\n }", "@RequestMapping(value = \"/index\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\tlogger.info(\"Welcome home!\");\n\t\tmodel.addAttribute(\"controllerMessage\",\n\t\t\t\t\"This is the message from the controller!\");\n\t\treturn \"index\";\n\t}", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "@RequestMapping(\"/log-test\")\n public String logTest() {\n String name = \"Spring\";\n\n /**\n * log.trace(\" trace log= \" + name); +로 사용 하면 안 되는 이유\n * 현재 로그 레벨은 debug 상태 출력시 나오지 그래서 trace는 출력 되지 않음\n * 그럼에도 불구하고, +를 사용하여 연산이 일어남\n * 연산이 일어나도 그 뒤에 trace 파라미터 넘길려니 확인 후 안 넘김\n * 연산은 곧 리소스 사용 그래서 리소스 낭비가 일어난다.\n *\n * log.trace(\" trace log={}\", name); 경우\n * trace에 파라미터를 넘기는 형식이라\n * 실행 시 trace 메소드를 보고 로그 중지\n * 리소스 낭비 될 일이 없다.\n */\n log.trace(\" trace log= \" + name);\n log.trace(\" trace log={}\", name);\n\n log.debug(\" debug log={}\", name);\n log.info(\" info log={}\", name);\n log.warn(\" warn log={}\", name);\n log.error(\" error log={}\", name);\n\n\n return \"ok\";\n }", "@RequestMapping(\"/\")\r\n String Adminhome() {\r\n return \"Welcome to Admin Home Page\";\r\n }", "@Test\n void getGreeting() {\n System.out.println(controller.getGreeting());\n }", "public ListaSEController() {\n }", "public ControllerEnfermaria() {\n }", "public LogController logController() {\r\n\t\treturn logsController;\r\n\t}", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "public LoggingPage(ClientController controller )\n\t{\n\t\tthis.controller = controller;\n\t\tinitComponents();\n\t}", "@RequestMapping(value = \"home.do\", method = RequestMethod.GET)\n public String getHome(HttpServletRequest request, Model model) {\n logger.debug(\"Home page Controller:\");\n return \"common/home\";\n }", "@Test\n public void testHome() {\n GenericServiceMockup<Person> personService = new GenericServiceMockup<Person>();\n homeController.setPrivilegeEvaluator(mockup);\n homeController.setPersonBean(personService);\n ModelAndView result = homeController.home();\n assertEquals(\"Wrong view name for exception page\", HomeController.HOME_VIEW, result.getViewName());\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\tlogger.info(\"Welcome home!\");\n\t\tmodel.addAttribute(\"controllerMessage\",\n\t\t\t\t\"This is the message from the controller!\");\n\t\t\n\t\tAuthor author = new Author();\n\t\tauthor.setFirstName(\"fisseha\");\n\t\tauthor.setLastName(\"chari\");\n\t\treturn \"home\";\n\t}", "@ResponseBody\n @RequestMapping(\"/hello\")\n public String hello() throws MyException {\n logger.debug(\"Logger Level : DEBUG\");\n logger.info(\"Logger Level : INFO\");\n logger.error(\"Logger Level : ERROR\");\n return \"hello\";\n }", "private Log getLog() {\n if (controller != null) {\n log = controller.getLog();\n } \n return log ;\n }", "@RequestMapping(\"/\")\n\tString home() {\n\t\treturn \"Hello World!\";\n\t}", "public PlantillaController() {\n }", "@RequestMapping(\"/\")\r\n\t\r\n\tpublic String home()\r\n\t{\n\t\t \r\n\t\treturn \"index\";\r\n\t}", "public ControllerTest()\r\n {\r\n }", "public GenericController() {\n }", "@Test\n public void testHelloWorldController() throws Exception {\n }", "public DashboardController() {\n }", "@RequestMapping(\"/\")\n //Because of rest controller annotation spring renders resulting string directly back to the caller.\n // In this case caller is home method and string is returned.\n public String home(){\n return \"Hello Comma World!\";\n }", "public reporteController() {\n }", "public FoodLogViewController() {\n }", "@Test\n\t public void testGetHomePage() throws Exception{ \n HomeController controller = new HomeController();\n /* We don't have to pass any valid values here because all it does is to send the user to the home page*/\n ModelAndView modelAndView = controller.getHomePage(null, null, null); \n assertEquals(\"home\", modelAndView.getViewName());\n }", "@GetMapping(\"/\")\r\npublic String index(Model model) {\n\r\n return \"index\";\r\n}", "@RequestMapping(value=\"/\")\r\npublic ModelAndView homePage(ModelAndView model) throws IOException\r\n{\r\n\tmodel.setViewName(\"home\");\r\n\treturn model;\r\n}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\t// logger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\treturn \"home\";\n\t}", "private HeaderBrandingTest()\n\t{\n\t\tBaseTest.classLogger = LoggerFactory.getLogger( HeaderBrandingTest.class );\n\t}", "private ClientController() {\n }", "public LoginPageController() {\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "@Test\n @Ignore\n public void testShowHomePage() throws Exception {\n System.out.println(\"showHomePage\");\n HttpServletResponse response = null;\n HomeController instance = new HomeController();\n ModelAndView expResult = null;\n ModelAndView result = instance.showHomePage(response);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private UtilityDatabaseController() \n { \n }", "public EstadoProyectoController() {\n \n }", "public interface LoggerUtil {\n\t/**\n\t * Set the logger for the controller\n\t * \n\t * @param logName\n\t * @param filePath\n\t * @param logLevel\n\t * @return\n\t */\n\tLogger loggerArrangement(String logName, String filePath, LogeLevel logLevel);\n}", "public static void main(String[] args) {\n LogInController logInController = new LogInController();\n logInController.initController();\n \n }", "public UserController() {\n\n }", "@RequestMapping(\"/home\")\n\tpublic String showHome() {\n\t\treturn \"home\";\n\t}", "public PersonasController() {\r\n }", "public EmployeeServlet()\n {\n logger = Logger.getLogger(getClass().getName());\n }", "public ClientController() {\n }", "@GetMapping(\"/home\")\n\t//@ResponseBody\n\tpublic String home()\n\t{\n\t\treturn\"/first/home\";\n\t}", "public SessionController() {\n }", "public WfController()\n {\n }", "IAnjaroController getController();", "@GetMapping(\"/\")\n\tpublic String showHomePage() {\n\t\treturn \"home\";\n\t}", "@RequestMapping(value = \"/homed\", method = RequestMethod.GET)\r\n public String homeDebug(HttpServletRequest request, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"home\", null, null, null, true)); \r\n }", "@RequestMapping({\"\", \"/\", \"/index\"})\n public String getIndexPage() {\n System.out.println(\"Some message to say...1234e\");\n return \"index\";\n }", "public ProductOverviewController() {\n }", "public void home_index()\n {\n Home.index(homer);\n }", "@GetMapping(\"/\")\n public String index()\n {\n return \"index\";\n }", "private Log() {\r\n\t}", "@RequestMapping(value = \"/home\")\n\tpublic String home() {\t\n\t\treturn \"index\";\n\t}", "public ServicioLogger() {\n }", "@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String openhomePage() {\n/*\t\tlogger.debug(\"Inside Instruction page\");\n*/\t\treturn \"home\";\n\t}", "public ABTemaPropioController(){\n }", "@RequestMapping(\"/\")\n\t@ResponseBody\n\tpublic String home() {\n\t\treturn \"Hi Spring Boot!!\";\n\t}", "@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }", "public MyLogs() {\n }", "@Pointcut(\"execution(public * com.ac.reserve..*.*Controller.*(..))\")\n public void apiLog() {\n }", "private StoreController(){}", "public TipoInformazioniController() {\n\n\t}", "public ControllerException() {\n super();\n }", "public ProductCategoryController() {\n }", "@Override\n public void log()\n {\n }", "@RequestMapping(\"/\")\n\tpublic String homePage() {\n\t\tlogger.info(\"Index Page Loaded\");\n\t\treturn \"index\";\n\t}", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public HelloController() \n\t{\n\t //configure our pool connection\n\t //pool = new JedisPool(redisHost, redisPort);\n\t\t\n\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Locale locale, Model model)\n {\n System.out.println(\"Home \" + service.getName());\n model.addAttribute(\"name\", service.getName());\n return \"home\";\n }", "@RequestMapping(\"goeasy\")\n public void goeasy(){\n }" ]
[ "0.71918774", "0.71918774", "0.67351997", "0.66062474", "0.6475156", "0.6457372", "0.64225507", "0.6320028", "0.62775844", "0.6229974", "0.6190498", "0.61837345", "0.6159446", "0.61368036", "0.612363", "0.6098507", "0.6051007", "0.6025336", "0.6023844", "0.59955364", "0.5985184", "0.5976046", "0.5972693", "0.5967962", "0.5965458", "0.59630114", "0.59616536", "0.59578997", "0.59578997", "0.59567857", "0.59497786", "0.5938059", "0.5911275", "0.58884954", "0.58883446", "0.5884279", "0.588142", "0.58703864", "0.5867001", "0.58340365", "0.5833372", "0.58199775", "0.581919", "0.5817335", "0.58162874", "0.58141965", "0.5813058", "0.57972753", "0.5783725", "0.5776707", "0.5753665", "0.57495564", "0.5745394", "0.57368743", "0.5733789", "0.5725772", "0.5715281", "0.57143086", "0.57135785", "0.57119995", "0.57002807", "0.5695828", "0.5689629", "0.56838447", "0.56810987", "0.5670642", "0.56678903", "0.5667774", "0.5665214", "0.56646115", "0.5658983", "0.5652555", "0.5652348", "0.5650771", "0.5646287", "0.5642334", "0.56391233", "0.56385416", "0.5631195", "0.56285095", "0.5627838", "0.56270826", "0.5625118", "0.5622856", "0.5620192", "0.5619831", "0.55920446", "0.5584643", "0.5574315", "0.5572787", "0.55663437", "0.55617446", "0.5539261", "0.55389315", "0.5529786", "0.5505899", "0.5501565", "0.54999554", "0.54997706", "0.5497516" ]
0.5782088
49
/ Write a program to print only vowel (a,e,o,i,u) in given string String word = "CybertekSchool"; Output:e,e,o,o
public static void main(String[] args) { String bio = "AY was born in Germany, studied in Turkey, and worked in various countries as an educator and peace activist."; char a = 'a'; char e = 'e'; char i = 'i'; char o = 'o'; char u = 'u'; for(int j = 0; j < bio.length(); j++) { if(bio.charAt(j) == a || bio.charAt(j) == e || bio.charAt(j) == i || bio.charAt(j) == o || bio.charAt(j) == u) { System.out.print(bio.charAt(j)); if(j < bio.length()-1) { System.out.print(",") } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String convertVowels(String word) {\n StringBuffer sb = new StringBuffer();\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (((c == 'a') || (c == 'e') || (c == 'i') || (c == 'o') || (c == 'u'))){\n sb.append(\"*\");\n } else {\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public static String allVowels( String w ) \n {\n String rtrnStr = \"\";\n String currLetter = \"\";\n int origLength = w.length();\n for (int i = 0; i < origLength; i++){\n currLetter = w.substring(i,i+1);\n if (isAVowel(currLetter)){\n rtrnStr += currLetter; //if it is a vowel, add the letter to the string of vowels \n }\n }\n return rtrnStr;\n }", "public static String allVowels( String w ) \r\n {String vowels = \"\";\r\n\tfor (int x = 0; x < w.length(); x +=1) {\r\n\t if (isAVowel(w.substring(x,x+1))) {//if the letter is a vowel...\r\n\t\tvowels += w.substring(x,x+1); //add that vowel to the string\r\n\t }//end if\r\n\t}//end for\r\n\treturn vowels;\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the String:\");\r\n\t\tString word=sc.next();\r\n\t\tchar ch[]=word.toCharArray();\r\n\t\t\r\n\t\tfor(int i=0;i<word.length();i++)\r\n\t\t{\r\n\t\t\tif(ch[i]=='a'||ch[i]=='e'||ch[i]=='i'||ch[i]=='o'||ch[i]=='u')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"remove vowels is:\"+ch[i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\n Scanner vowelconsonent =new Scanner(System.in);\n char ch;\n System.out.print(\"Enter your word = \");\n\n ch = vowelconsonent.next().charAt(0);\n\n\n if(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U'||ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'){\n\n System.out.print(\"vowel \"+ch);\n\n }else {\n\n System.out.print(\"consonent \");\n\n }\n\n }", "public static void main(String[] args) {\n String word;\n Scanner in = new Scanner(System.in);\n int count = 0;\n\n System.out.println(\"Enter the string\");\n word = in.nextLine().toLowerCase().replaceAll(\"[^a-z]\", \"\");\n\n for (int i = 0;i<word.length();i++)\n {\n if (word.charAt(i)=='a'||word.charAt(i)=='e'||word.charAt(i)=='i'\n ||word.charAt(i)=='o'||word.charAt(i)=='u'||word.charAt(i)=='y')\n {\n count++;\n System.out.println(word.charAt(i));\n }\n }\n System.out.println(\"The number of vowels is: \"+count);\n\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n //Ask\n System.out.print(\"Enter a word:\");\n //assign\n String word = scanner.next();\n\n int l = word.length();\n System.out.println(\"Length:\" + l);\n int i = 0;\n boolean shouldContinue = true;\n\n while (shouldContinue == true) {\n\n if (word.charAt(i) == 'a') {\n System.out.println(\"The First vowel was:\" + \"a\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'e') {\n System.out.println(\"The First vowel was:\" + \"e\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'i') {\n System.out.println(\"The First vowel was:\" + \"i\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'o') {\n System.out.println(\"The First vowel was:\" + \"o\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'u') {\n System.out.println(\"The First vowel was:\" + \"u\");\n shouldContinue = false;\n }\n i++;\n\n }\n\n System.out.println(\"Your word was:\" + word);\n }", "String searchVowel();", "public static boolean containsVowel( String s ) {\n String s2 = s.toLowerCase();\n //s2 = s.toLowerCase(); -- dont fuck with the original param\n\n for (int i = 0; i < s2.length(); i++) {\n if (s2.charAt(i) == 'a' || s2.charAt(i) == 'e' || s2.charAt(i) == 'i' ||\n s2.charAt(i) == 'o' || s2.charAt(i) == 'u' || s2.charAt(i) == 'y') {\n return true;\n }\n }\n return false;\n//use the s2 so you dont have to check the cap letters\n\n // return !(s.indexOf('a') < 0 && s.indexOf('e') && s.indexOf('i') < 0 && s.indexOf('o') < 0 && s.indexOf('u') < 0 && s.indexOf('y') < 0);\n }", "public static int index_of_first_vowel(String word) {\r\n // Iterate over each letter of the word from the start\r\n for (int i = 0; i < word.length(); i++) {\r\n // True when the index i of the string is a vowel\r\n if(Main.VOWELS.indexOf(word.charAt(i)) > -1){\r\n return i;\r\n }\r\n }\r\n\r\n return -1; // Condition when the word contains no vowels, program will just add ay to the end in this case\r\n }", "private static String removeVowels(String s){\n \tif(s.toLowerCase().indexOf(\"a\")>=0){\n \t\ts=s.substring(0, s.toLowerCase().indexOf(\"a\"))+s.substring(s.toLowerCase().indexOf(\"a\")+1);\n \t\ts=removeVowels(s);\n \t}else if(s.toLowerCase().indexOf(\"e\")>=0){\n \t\ts=s.substring(0, s.toLowerCase().indexOf(\"e\"))+s.substring(s.toLowerCase().indexOf(\"e\")+1);\n \t\ts=removeVowels(s);\n \t}else if(s.toLowerCase().indexOf(\"i\")>=0){\n \t\ts=s.substring(0, s.toLowerCase().indexOf(\"i\"))+s.substring(s.toLowerCase().indexOf(\"i\")+1);\n \t\ts=removeVowels(s);\n \t}else if(s.toLowerCase().indexOf(\"o\")>=0){\n \t\ts=s.substring(0, s.toLowerCase().indexOf(\"o\"))+s.substring(s.toLowerCase().indexOf(\"o\")+1);\n \t\ts=removeVowels(s);\n \t}else if(s.toLowerCase().indexOf(\"u\")>=0){\n \t\ts=s.substring(0, s.toLowerCase().indexOf(\"u\"))+s.substring(s.toLowerCase().indexOf(\"u\")+1);\n \t\ts=removeVowels(s);\n \t}\n \treturn s;\n }", "public static String removeVowel(String words) {\n words = words.replaceAll(\"[AEIOUaeiou]\", \"\");\n return words;\n }", "public static boolean isAVowel( String letter ) \n {\n return hasA(VOWELS, letter); //is the letter in string VOWELS?\n }", "private boolean isVowel(char ch) {\r\n ch = Character.toLowerCase(ch);\r\n return (ch == 'a') || (ch == 'e') || (ch == 'i') || (ch == 'o') || (ch == 'u');\r\n }", "public static void main(String[] args) {\n\t\tString thecat = new String(\"The cat needs a nap\"); \n\t\tSystem.out.println(\"Prints out the vowels in \\\"The cat needs a nap\\\"\");\n\t\tfor ( int i = 0; i < thecat.length() ; i++) {\n\t\t\t// check for the capital and lower case vowels\n\t\t\tif ( (thecat.charAt(i)=='A') ||\n\t\t\t\t(thecat.charAt(i)=='E') ||\n\t\t\t\t(thecat.charAt(i)=='I') ||\n\t\t\t\t(thecat.charAt(i)=='O') ||\n\t\t\t\t(thecat.charAt(i)=='U') ||\n\t\t\t\t(thecat.charAt(i)=='a') ||\n\t\t\t\t(thecat.charAt(i)=='e') ||\n\t\t\t\t(thecat.charAt(i)=='i') ||\n\t\t\t\t(thecat.charAt(i)=='o') ||\n\t\t\t\t(thecat.charAt(i)=='u') ) {\n\t\t\t\t\t// Prints the vowel\n\t\t\t\t\tSystem.out.print(thecat.charAt(i) + \" \");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// print a new line\n\t\tSystem.out.println(\" \");\n\n\t\tString [] words =thecat.split(\" \");\n\t\tfor ( int j = 0; j < words.length ; j++) {\n\t\t\tint numofvowels = countVowels( words[j] );\n\t\t\tif (numofvowels == 1) {\n\t\t\t\tSystem.out.println(\"[\" + j +\"] \" + words[j] + \" : \" + numofvowels + \" vowel\");\n\t\t\t}\n\t\t\telse if (numofvowels>1) {\n\t\t\t\tSystem.out.println(\"[\" + j +\"] \" + words[j] + \" : \" + numofvowels + \" vowels\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"[\" + j +\"] \" + words[j] + \" : \" + \" no vowels\");\n\t\t\t}\n\t\n\t\t}\n\t}", "private static boolean isvowel(char i) {\n\t\tif(i=='a' || i=='e' || i=='i' || i=='o' || i=='u' || i=='A' || i=='E' || i=='I' || i=='O' || i=='U')\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public static String firstVowel(String w){\n if (hasAVowel(w)) {\n return allVowels(w).substring(0,1); }//looks for the first vowel in the string of all vowels only if the string has vowels\n else {\n return \"\"; } //nothing if the string has no vowels\n }", "public static boolean hasAVowel( String w ) \n {\n return countVowels(w) > 0; //if there is more than 1 vowel, the string has a vowel\n }", "public static boolean isAVowel( String letter ) \r\n { return VOWELS.indexOf(letter) != -1;\r\n }", "public static String translateWord(String word) {\n\n if (word.length() < 1) return word;\n int[] vowelArray = word.chars().filter(c -> vowels.contains((char) c)).toArray();\n if (vowelArray.length == 0) return word.charAt(0) + word.substring(1).toLowerCase() + \"ay\";\n\n char first = Character.isUpperCase(word.charAt(0))\n ? Character.toUpperCase((char) vowelArray[0]) : (char) vowelArray[0];\n if (vowels.contains(word.charAt(0)))\n word = first + word.substring(1).toLowerCase() + \"yay\";\n else\n word = first + word.substring(word.indexOf(vowelArray[0]) + 1).toLowerCase()\n + word.substring(0, word.indexOf(vowelArray[0])).toLowerCase() + \"ay\";\n return word;\n }", "public static String firstVowel( String w )\r\n {String vowels = allVowels(w); //extracting all vowels from w\r\n\tif (vowels.length() != 0) { //if there are vowels in w...\r\n\t return vowels.substring(0,1); //return the first vowel\r\n\t}//end if\r\n\treturn \"\"; //if there are no vowels in w\r\n }", "public static String disemvowel(String originStr){\r\n return originStr.replaceAll(\"[AaEeIiOoUu]\",\"\");\r\n }", "public boolean isVowel(Character c){\n\t String strvowel = \"aeiouAEIOU\";\n\t \n\t if(strvowel.indexOf(c)!=-1){\n\t return true;\n\t }\n\t \n\t return false; \n\t }", "private boolean isVowel(char c){\n boolean flag;\n switch (c){\n case 'A':\n case 'E':\n case 'I':\n case 'O':\n case 'U': flag = true; break;\n default: flag = false;\n }\n return flag;\n }", "public static int countVowels( String w ) \n {\n int total = 0;\n int origLength = w.length();\n for (int i = 0; i < origLength; i++){\n if (isAVowel(w.substring(i,i+1))){\n total += 1;\n }\n }\n return total;\n }", "public static int countVowels( String w ) \r\n { int count = 0;\r\n\tfor (int x = 0; x < w.length(); x +=1) {\r\n\t if (isAVowel(w.substring(x,x+1))) {//if that letter is a vowel...\r\n\t\tcount += 1;//add one to the count\r\n\t } //end if\r\n\t}//end for\r\n\treturn count;\r\n }", "public static int main(String[] args) {\n\n System.out.println(\"Input the string: \");\n\n Scanner scn = new Scanner(System.in);\n\n String word = scn.nextLine();\n\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' || word.charAt(i) == 'e' || word.charAt(i) == 'i' ||\n word.charAt(i) == 'o' || word.charAt(i) == 'u' || word.charAt(i) == 'A' ||\n word.charAt(i) == 'E' || word.charAt(i) == 'I' || word.charAt(i) == 'O' || word.charAt(i) == 'U') {\n count++;\n }\n }\n return count;\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tString st= \"AnkurVora\";\n\t\tint vowels=0;\n\t\tint consonants = 0;\n\t\t//char[] vowel = {'a','e','i','o','u'};\n\t\t//char[] word = st.toLowerCase().toCharArray();\n\t\tfor(int i=0;i<st.length();i++) {\n\t\t\tchar c = st.charAt(i);\n\t\t\tif( c=='a' || c=='e' || c=='i' || c=='o' || c=='u' ||\n\t\t\t\t\tc=='A' || c=='E' || c=='I' || c=='O' || c=='U') {\n\t\t\t\tvowels++;\n\t\t\t} else {\n\t\t\t\tconsonants++;\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tSystem.out.println(\"Vowels \" +vowels);\n\t\tSystem.out.println(\"Consonants \" +consonants);\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String word = \"Tenet\";\n String word3 = \"tenet\";\n System.out.println(\"word \" + word);\n word.toLowerCase(); //porównanie bez wielkosci znakow\n //charAt(0) - zero,\n String[] Tablica = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n Tablica[i] = String.valueOf(word.charAt(i));\n }\n String word2 = \"\";\n\n for (int i = (word.length() - 1); i >= 0; i--) {\n //System.out.print(Tablica[i]);\n word2 = word2 + Tablica[i];\n }\n //System.out.println();\n System.out.println(\"word 2 \" + word2);\n System.out.println(\"word 3 \" + word3);\n\n System.out.print(\"word 3 i word 2 \");\n if (word3.toLowerCase().equals(word2.toLowerCase())) {\n System.out.println(\"jest palidronem\");\n } else {\n System.out.println(\"nie jest palidronem\");\n }\n\n//koniec\n\n }", "String getWordIn(String schar, String echar);", "public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n StringBuilder sb = new StringBuilder(str);\n int len = sb.length();\n StringBuilder temp = new StringBuilder(\"\");\n for(int id = 0;id<=len-1;id++)\n {\n if((str.charAt(id)!='a')&&(str.charAt(id)!='e')&&(str.charAt(id)!='i')&&(str.charAt(id)!='o')&&(str.charAt(id)!='u')||(str.charAt(id)==' '))\n {\n temp.append(str.charAt(id));\n }\n }\n System.out.println(temp);\n \n\n }", "public static String engToPig(String w) { \n String rtrstr =\"\"; //final string to return\n \n if (beginsWithVowel(w)) { //checks if beginsWithVowel(check above)\n rtrstr = w + \"way\"; //adds \"way\"\n }\n else if (hasAVowel(w)) { //if it has a vowel at all\n rtrstr = w.substring(w.indexOf(firstVowel(w))) + w.substring(0, w.indexOf(firstVowel(w))) + \"ay\" ; //adds substring from first vowel onwards + substring of beginning to first vowel + \"ay\"\n }\n else {\n VOWELS += \"yY\"; \n rtrstr = engToPig(w); //does engtopig again but this time counting \"y\" as a vowel\n VOWELS = VOWELS.substring(0,9); //removes y from VOWELS\n }\n return punct(cap(rtrstr)); //adjusts proper capitalization, and then punctuation\n }", "public String removeVowels(String s) {\n if (s == null) {\n return null;\n }\n String vowels = \"aeiou\";\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (vowels.indexOf(c) == -1) {\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public static String removeVowels(String s) {\n\n return s.replaceAll(\"[aeiouAEIOU]\", \"\");\n\n }", "public static void oneLetter () {\n System.out.println(\"Type in a letter\");\n Scanner input = new Scanner(System.in);\n String userInput = input.nextLine();\n if ((userInput.equals( \"a\")) || (userInput.equals(\"e\")) || (userInput.equals(\"i\")) || (userInput.equals(\"o\")) || (userInput.equals(\"u\"))) {\n System.out.println(\"That is a vowel!\");\n\n }\n else {\n System.out.println(\"That is a consonant\");\n\n }\n }", "static void test_containsVowel() {\n\n String park = new String( \"I went to the park\" );\n String capConsonants = new String( \"QWRTYPLKJHGFDSZXCVBNM\" );\n String lowerConsonants = new String( \"qwrtyplkjhgfdszxcvbnm\" );\n\n\n System.out.println( \"\\nTESTS FOR containsVowel() :\" );\n\n System.out.print( \"Test for string 'I went to the park' : \" );\n try { System.out.println( StringStuff.containsVowel( park ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'QWRTYPLKJHGFDSZXCVBNM' : \" );\n try { System.out.println( StringStuff.containsVowel( capConsonants ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'qwrtyplkjhgfdszxcvbnm' : \" );\n try { System.out.println( StringStuff.containsVowel( lowerConsonants ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n\n }", "public static String Rule2(String para_word) {\n\t\tint last = para_word.length();\r\n\r\n\t\t// if it ends in y and there is a vowel in steam change it to i\r\n\t\tif ((para_word.charAt(last - 1) == 'y') && wordSteamHasVowel(para_word)) {\r\n\t\t\tpara_word = para_word.substring(0, last - 1) + \"i\";\r\n\t\t}\r\n\r\n\t\treturn para_word;\r\n\t}", "public static boolean isVog(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n flag = (s.charAt(i) == 'a' || s.charAt(i) == 'A' ||\n s.charAt(i) == 'e' || s.charAt(i) == 'E' ||\n s.charAt(i) == 'i' || s.charAt(i) == 'I' ||\n s.charAt(i) == 'o' || s.charAt(i) == 'O' ||\n s.charAt(i) == 'u' || s.charAt(i) == 'U' );\n i++;\n }\n return flag;\n }", "public static boolean beginsWithVowel(String w){\n return isAVowel(w.substring(0,1)); //is the first letter a vowel?\n }", "public static void main(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a string\");\n String input = scan.nextLine();\n int aCount = 0, eCount = 0, iCount = 0, oCount = 0, uCount = 0, \n nonVowel = 0;\n\n for (int count = 0; count < input.length(); count++)\n {\n char letter = input.charAt(count);\n switch ( letter )\n {\n case 'a':\n aCount++;\n break;\n\n case 'e':\n eCount++;\n break;\n\n case 'i':\n iCount++;\n break;\n\n case 'o':\n oCount++;\n break;\n\n case 'u':\n uCount++;\n break;\n\n case ' ':\n break;\n\n default:\n nonVowel++;\n }\n }\n System.out.println(\"There are: \" + aCount + \" a's, \\t\" + eCount \n + \" e's, \\t \" + iCount + \" i's, \\t\" + oCount \n + \" o's, \\t\" + uCount + \" u's.\");\n System.out.println(\"There are \" + nonVowel + \" non-vowel letters.\");\n }", "private String validateWord (String word) {\r\n String chars = \"\";\r\n for (int i = 0; i < word.length (); ++i) {\r\n if (!Character.isLetter (word.charAt (i))) {\r\n chars += \"\\\"\" + word.charAt (i) + \"\\\" \";\r\n }\r\n }\r\n return chars;\r\n }", "private static void printLatinWord(String s) {\n\t\tif (s.length() < 2|| !s.matches(\"\\\\w*\")) {\n\t\t\tSystem.out.print(s+\" \");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.print(s.replaceAll(\"(\\\\w)(\\\\w*)\", \"$2$1ay \"));\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter your word :\");\n String word = scanner.nextLine();\n word = word.toUpperCase();\n// word = Character.toString((char)(word.charAt(0)-32));\n String word1 =Character.toString(word.charAt(0));\n word = word.toLowerCase();\n for (int i = 1; i <word.length() ; i++) {\n word1 += Character.toString(word.charAt(i));\n }\n System.out.println(word1);\n }", "public static void main(String[] args) {\nString word = \"aabbaaaccbbaacc\";\n String result = \"\";\n\n for (int i = 0; i <=word.length()-1 ; i++) {\n\n if(!result.contains(\"\"+word.charAt(i))){ //if the character is not contained in the result yet\n result+=word.charAt(i); //then add the character to the result\n }\n\n }\n System.out.println(result);\n\n\n\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the string\");\r\n\t\tString a = s.nextLine().toLowerCase();\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < a.length(); i++) {\r\n\t\t\tif (a.charAt(i) == 'a' || a.charAt(i) == 'e' || a.charAt(i) == 'i' || a.charAt(i) == 'o'\r\n\t\t\t\t\t|| a.charAt(i) == 'u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t}System.out.println(count);\r\n\t}", "public static boolean hasAVowel( String w ) \r\n {return countVowels(w) != 0;\r\n }", "public static boolean isVowel(char c) {\r\n \tswitch(c)\r\n \t{\r\n \tcase 'A': return true;\r\n \tcase 'a': return true;\r\n \tcase 'E': return true;\r\n \tcase 'e': return true;\r\n \tcase 'I': return true;\r\n \tcase 'i': return true;\r\n \tcase 'O': return true;\r\n \tcase 'o': return true;\r\n \tcase 'U': return true;\r\n \tcase 'u': return true;\r\n \tcase 'Y': return true;\r\n \tcase 'y': return true;\r\n \tdefault: return false;\r\n \t}\r\n\r\n }", "public static void main(String[] args) {\n\n\n String ad=\"erdogan\";\n String soyad= \"HOZAN\";\n\n System.out.println(\"ad: \"+ ad.toUpperCase());\n System.out.println(\"soyad:\" + soyad.toLowerCase());\n\n }", "public static String newWord(String strw) {\n String value = \"Encyclopedia\";\n for (int i = 1; i < value.length(); i++) {\n char letter = 1;\n if (i % 2 != 0) {\n letter = value.charAt(i);\n }\n System.out.print(letter);\n }\n return value;\n }", "public static String reducedWord(String word) {\n String lcWord = word.toLowerCase();\n String redVowels = convertVowels(lcWord);\n String noDuplicates = removeDuplicate(redVowels);\n return noDuplicates;\n }", "public boolean isVowel(int charCode);", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "private boolean isVowels(char c) {\n\t\tc = Character.toLowerCase(c);\n\n\t\tif (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "public static String translate(String word) {\n\t\t// Method variables.\n\t\tint vowelIndex = 0;\n\t\tint wordLength = word.length();\n\t\tString pigLatin = \"\";\n\n\t\t// Loop through the word marking at what point the first vowel is.\n\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t// Gets the char at i and sets it to lower case for comparing to vowels.\n\t\t\tchar letter = Character.toLowerCase(word.charAt(i));\n\n\t\t\t// If a letter of a word equals a vowel break loop\n\t\t\tif (letter == 'a' || letter == 'e' || letter == 'i' || letter == 'o' || letter == 'u') {\n\t\t\t\tvowelIndex = i; // Set the value of firstVowel the index of the character in the word.\n\t\t\t\tbreak; // Exit loops\n\t\t\t}\n\n\t\t}\n\n\t\t// Rearrange word into Pig Latin.\n\t\t// First test if it starts with a vowel\n\t\tif (vowelIndex == 0) {\n\t\t\tpigLatin = word + \"way\"; // Put way on end of any word starting with a vowel.\n\t\t} else {\n\t\t\t// Create substring of characters to add to the end of the word.\n\t\t\tString toEnd = word.substring(0, vowelIndex);\n\t\t\t\n\t\t\t// Create a substring of the new start of the word.\n\t\t\tString newStart = word.substring(vowelIndex, wordLength);\n\n\t\t\t// Combine both substrings together and add ay.\n\t\t\tpigLatin = newStart + toEnd + \"ay\";\n\t\t}\n\n\t\treturn pigLatin.toUpperCase(); // returns the word translated into Pig Latin\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter String::\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString str = sc.next().toLowerCase();\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<str.length();i++) {\r\n\t\t\tif(str.charAt(i)=='a' || str.charAt(i)=='e' || str.charAt(i)=='i' ||str.charAt(i)=='o' || str.charAt(i)=='u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"No of vovels:: \"+count);\r\n\r\n\t}", "static void printWord(String propozitie) {\n System.out.println(propozitie);\n\n\n }", "public static boolean beginsWithVowel( String w ) {\r\n\treturn isAVowel(w.substring(0,1));\r\n }", "public String convertToUpperCase(String word);", "private boolean isUpperCase(String word) {\n boolean ucase = true;\n char[] chars = word.toCharArray();\n for (char ch : chars) {\n if (Character.isLowerCase(ch)) {\n ucase = false;\n break;\n }\n }\n return ucase;\n }", "public static String getRandomVowel()\n\t{\n\t\tint randNum = getRandomBetween(1,4);\n\n\t\tswitch(randNum)\n\t\t{\n\t\tcase 1:\n\t\t\treturn \"a\";\n\t\tcase 2:\n\t\t\treturn \"e\";\n\t\tcase 3:\n\t\t\treturn \"i\";\n\t\tcase 4:\n\t\t\treturn \"o\";\n\t\t}\n\n\t\treturn \"u\";\n\t}", "public String removeVowels(String str) {\n\t\t// base cases\n\t\tif (str == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (str.equals(\"\")) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\t// recursive case\n\n\t\t// Make a recursive call to remove vowels from the\n\t\t// rest of the string.\n\t\tString removedFromRest = removeVowels(str.substring(1));\n\n\t\t// If the first character in str is a vowel,\n\t\t// we don't include it in the return value.\n\t\t// If it isn't a vowel, we do include it.\n\t\tchar first = Character.toLowerCase(str.charAt(0));\n\t\tif (first == 'a' || first == 'e' || first == 'i' || first == 'o'\n\t\t\t\t|| first == 'u') {\n\t\t\treturn removedFromRest;\n\t\t} else {\n\t\t\treturn first + removedFromRest;\n\t\t}\n\t}", "public static String engToPig( String w ) {\r\n\tString result = \"\";\r\n\tif (w.substring(0,1).equals(\"y\")) {// if w begins with 'y'\r\n\t result = w.substring(1) + \"yay\";\r\n\t} \r\n\telse if (beginsWithVowel(w)) { //if w begins with a vowel\r\n\t result = w + \"way\"; //append way to w\r\n\t}\r\n else { //if w begins with consonant(s)\r\n\t result = w.substring(w.indexOf(firstVowel(w))) + w.substring(0,w.indexOf(firstVowel(w))) + \"ay\"; //take the first occurrence of a vowel, then the consonant(s) before that vowel, and add ay\r\n\t}\r\n if (beginsWithCapital(w)) {\r\n\t result = result.substring(0,1).toUpperCase() + result.substring(1).toLowerCase();\r\n\t}\r\n\tif (hasA(w,\".\")) {\r\n\t result = result.substring(0,result.indexOf(\".\")) + result.substring(result.indexOf(\".\") + 1) + \".\";\r\n\t }\r\n\tif (hasA(w,\",\")) {\r\n\t result = result.substring(0,result.indexOf(\",\")) + result.substring(result.indexOf(\",\") + 1) + \",\";\r\n\t }if (hasA(w,\"?\")) {\r\n\t result = result.substring(0,result.indexOf(\"?\")) + result.substring(result.indexOf(\"?\") + 1) + \"?\";\r\n\t }if (hasA(w,\"!\")) {\r\n\t result = result.substring(0,result.indexOf(\"!\")) + result.substring(result.indexOf(\"!\") + 1) + \"!\";\r\n\t }\r\n\treturn result;\r\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a word\");\n\t\tString a=scan.nextLine();\n\n\t\tint sayac=0;\n\t\tint sayac1=0;\n\t\tint sayac2=0;\n\t\tint sayac3=0;\n\t\tint sayac4=0;\n\t\tint sayac5=0;\n\t\tint sayac6=0;\n\t\tint sayac7=0;\n\t\tint sayac8=0;\n\t\tint sayac9=0;\n\t\n\t\n\tint b=a.toLowerCase().length();\n\t\nchar[] alphabet= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','u','p','r','s','t','u','z','w','x','v'};\n\t\n\t\n\t\t\n\tfor(int i=0; i<=b-1; i++) {\n\t\tfor(int j=0; j<alphabet.length; j++) {\n\t\tif(a.charAt(i)==alphabet[j] ) {\n\t\t\tSystem.out.println(\"a harfi \"+(i+1)+\". siradadir\");\n\t\t\tsayac++;\n\t\t\tSystem.out.println(sayac+\"tane a.charAt(i) harfi vardir\");\n\t\t}\n\t\t\n\t\t\n\t\n\t\t}}\n\n\n\t}", "public static String turnIntoCV(String para_word) {\n\t\tString temp = \"\";\r\n\t\tfor (int i = 0; i < para_word.length() - 1; i++) {\r\n\r\n\t\t\t// beginning special cases\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tif (para_word.charAt(i) == 'y'\r\n\t\t\t\t\t\t&& !checkIfVowel(para_word.charAt(i + 1)))\r\n\t\t\t\t\ttemp = temp + \"V\";\r\n\t\t\t}\r\n\r\n\t\t\tif (i > 0) {\r\n\t\t\t\tif (para_word.charAt(i) == 'y'\r\n\t\t\t\t\t\t&& !checkIfVowel(para_word.charAt(i + 1))\r\n\t\t\t\t\t\t&& !(checkIfVowel(para_word.charAt(i + -1)))) {\r\n\t\t\t\t\ttemp = temp + \"V\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// normal cases\r\n\t\t\tif ((checkIfVowel(para_word.charAt(i)))\r\n\t\t\t\t\t&& !checkIfVowel(para_word.charAt(i + 1))) {\r\n\t\t\t\ttemp = temp + \"V\";\r\n\t\t\t} else if (!checkIfVowel(para_word.charAt(i))\r\n\t\t\t\t\t&& (para_word.charAt(i + 1) == 'y' || checkIfVowel(para_word\r\n\t\t\t\t\t\t\t.charAt(i + 1)))) {\r\n\t\t\t\ttemp = temp + \"C\";\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// ending special cases\r\n\t\t\tif (para_word.length() >= 3) {\r\n\t\t\t\tif (i == para_word.length() - 2) {\r\n\t\t\t\t\tif (para_word.charAt(i + 1) == 'y'\r\n\t\t\t\t\t\t\t&& !checkIfVowel(para_word.charAt(i - 1)))\r\n\t\t\t\t\t\ttemp = temp + \"V\";\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (para_word.length() >= 2) {\r\n\t\t\t\tif (i == para_word.length() - 2) {\r\n\t\t\t\t\tif (checkIfVowel(para_word.charAt(i + 1)))\r\n\t\t\t\t\t\ttemp = temp + \"V\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ttemp = temp + \"C\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn temp;\r\n\t}", "public static boolean isVowel(char ch) {\r\n\t\treturn ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' || ch == 'y';\r\n\t}", "static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public String upperCase(String word){\n return word.toUpperCase();\n }", "public static boolean isVowel(String endChar){\n\t\tif(endChar.equalsIgnoreCase(\"a\") || endChar.equalsIgnoreCase(\"c\") || endChar.equalsIgnoreCase(\"s\") || endChar.equalsIgnoreCase(\"l\")){\n\t\t\t//If the word ends in a vowel\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//If the word ends in a consonant\n\t\t\treturn false;\n\t\t}\n\t}", "public static void main(String[] args) {\n CharacterTypeFinder characterTypeFinder = new CharacterTypeFinder();\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter a alphabet\");\n String character = scanner.next();\n if (character.length() == 1 && characterTypeFinder.isAlphabet(character)) {\n if(characterTypeFinder.isVowel(character)){\n System.out.println(\"Entered string is a vowel!\");\n }else{\n System.out.println(\"Entered String is a consonant\");\n }\n }else{\n scanner.nextLine();\n System.out.println(\"invalid string\");\n }\n }", "public static void main(String[] args) {\n\t\tString s=\"supraja\";\n\t\tint vowels=0;\n\t\tint consonants=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)=='a' || s.charAt(i)=='e' || s.charAt(i)=='i'||s.charAt(i)=='o'||s.charAt(i)=='u')\n\t\t\t{\n\t\t\t\tvowels++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconsonants++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"vowels:\"+\" \"+vowels+\" \"+\"consonants\"+\" \"+consonants);\n\t}", "public boolean isVowel(char ch) {\n\n\t\tif (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'o' || ch == 'O' || ch == 'u' || ch == 'U'\n\t\t\t\t|| ch == 'i' || ch == 'I') {\n\t\t\treturn true;\n\t\t}\n\t\t// TO DO\n\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tString str=in.nextLine();\n\t\tContainsVowels cv=new ContainsVowels();\n\t\tSystem.out.println(cv.ifContainsVowels(str));\n\t\tin.close();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString name = sc.nextLine();\n\t\tString withoutVo = \"\";\n\t\t\n\t\tfor(int i=0; i<name.length(); i++) {\n\t\t\n\t\tint count = 0; \n\t\t\t\n\t\tif(name.substring(i, i+1).contentEquals(\"A\")) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tif(name.substring(i, i+1).contentEquals(\"E\")) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tif(name.substring(i, i+1).contentEquals(\"I\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"O\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"U\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"a\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"e\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"i\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"o\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(name.substring(i, i+1).contentEquals(\"u\")) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\twithoutVo = withoutVo+name.substring(i, i+1);\n\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(withoutVo);\n\n\t}", "static int countVowelConsonantSolution1(String str) {\n int result = 0;\n for(int i=0; i<str.length(); i++) {\n char letter = str.toLowerCase().charAt(i);\n\n if(letter>= 'a' && letter <= 'z'){\n if(letter == 'a' || letter == 'e' || letter == 'u' || letter == 'i' || letter == 'o'){\n result += 1;\n }else {\n result += 2;\n }\n }\n\n }\n return result;\n }", "public static String translate_word_to_pig_latin(String word) {\r\n String new_word = word;\r\n int vowel_index = index_of_first_vowel(word);\r\n // Put starting consonant(s), if any, at the end of the word\r\n if(vowel_index > 0){\r\n new_word = word.substring(vowel_index) + word.substring(0, vowel_index);\r\n }\r\n\r\n // Add the ay to the end of all words\r\n new_word = new_word.concat(\"ay\");\r\n return new_word;\r\n }", "public static int countVowels(String str) {\r\n int count = 0;\r\n final String VOWELS = \"aeiou\";\r\n for (int i = 0; i < str.length(); i++) {\r\n count += VOWELS.contains(Character.toString(str.charAt(i))) ? 1 : 0;\r\n }\r\n return count;\r\n }", "public static void main(String[] args) {\n\r\n\t\tString word=\"On dönüm bostan, yan gel Osman\";\r\n\t\t\r\n\t\tSystem.out.println(\"Today's Word-Of-The-Day is : \" +word );\r\n\t}", "public String decrypt(String word){\n\tString result = \"\";\n\tString wordLower = word.toLowerCase(); \n\tfor(int i=0; i<wordLower.length(); i++){\n\t if(wordLower.charAt(i)<97 || wordLower.charAt(i)>122)\n\t\tthrow new IllegalArgumentException();\n\t int a = (wordLower.charAt(i)-97);\n\t int b = (int)Math.pow(a,privateD);\n\t int k = (b%26)+97;\n\t result += Character.toString((char)k);\n\t}\n\treturn result;\n }", "boolean containsUtilize(String word)\n {\n return word.contains(\"utilize\");\n }", "private static String convert(String word) {\n\n char[] charArray = word.toCharArray();\n\n for (int letter = 0; letter < word.length(); letter++) {\n // Finding the first letter of a word.\n if (letter == 0 && charArray[letter] != ' ' || charArray[letter] != ' ' && charArray[letter - 1] == ' ') {\n // Checking if the first letter is lower case.\n if (charArray[letter] >= 'a' && charArray[letter] <= 'z') {\n // Converting first letter to upper case\n charArray[letter] = (char)(charArray[letter] - 'a' + 'A');\n }\n }\n // Checking if the letters other than the first letter are capital\n else if (charArray[letter] >= 'A' && charArray[letter] <= 'Z')\n // Converting uppercase other letters to lower case.\n charArray[letter] = (char)(charArray[letter] + 'a' - 'A');\n }\n // Returning a Title cased String.\n return new String(charArray);\n }", "public static void main(String[] args) {\nString s = \"HElLo WoRlD WelCOMe To JaVa\";\nSystem.out.println(s.toLowerCase());\n\t}", "public static void main(String[] args) {\n\t\tString s = \"malala got nobel price for peace, in swiz.\";\r\n\t\ts = s.toLowerCase();\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') && \r\n\t\t\t\t\t!(s.charAt(i) == 'a' || s.charAt(i) == 'e'\r\n\t\t\t\t\t|| s.charAt(i) == 'i' || s.charAt(i) == 'o' || s.charAt(i) == 'u')) {\r\n\t\t\t\tcount = count + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of consonants \" + count);\r\n\t}", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n System.out.println(\"Enter your word\");\n String word=scan.nextLine();\n //index num=01234\n String result=\"\"; // all below characters will be concatenated one by one- knalB\n if (word.length()>5){\n result=\"Too long\";\n }else if (word.length()<5){\n result=\"Too short\";\n }else {\n /* result+=word.charAt(4);\n result+=word.charAt(3);\n result+=word.charAt(2);\n result+=word.charAt(1);\n result+=word.charAt(0);\n\n */\n result=\"\" + word.charAt(4) + word.charAt(3) + word.charAt(2) + word.charAt(1) + word.charAt(0);\n } // e l c n u\n System.out.println(\"result = \" + result);\n\n\n\n }", "public void printWord(){\n\t\tint length = word.length;\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tSystem.out.print(word[i]);\n\t\t}\n\t}", "public String reverseVowels(String s) {\n if(s == null || s.length() < 2) {\n return s;\n }\n char[] chars = s.toCharArray();\n int front = 0;\n int back = chars.length - 1;\n while (front < back) {\n if(isVowel(chars[front]) && isVowel(chars[back])) {\n char tmp = chars[front];\n chars[front] = chars[back];\n chars[back] = tmp;\n front++;\n back--;\n } else if(isVowel(chars[front])) {\n back--;\n } else if(isVowel(chars[back])) {\n front++;\n } else {\n front++;\n back--;\n }\n }\n return new String(chars);\n }", "public static Boolean Word(String arg){\n\t\tif(arg.matches(\"^[a-zA-ZåÅäÄöÖüÜéÉèÈ]*\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\n\t}", "public static void letra(){\n\t\tScanner sc=new Scanner(System.in);\n\t\tchar letra;\n\t\tSystem.out.println(\"Introduzca una letra: \");\n\t\tletra=sc.next().charAt(0);\n\t\t\n\t\tswitch(letra){\n\t\t\tcase 'a': case 'A':\n\t\t\tcase 'e':case 'E':\n\t\t\tcase 'i':case'I':\n\t\t\tcase 'o': case'O':\n\t\t\tcase'u': case 'U':\n\t\t\t\tSystem.out.println(\"Es una vocal\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Es una consonante.\");\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\nScanner scan = new Scanner(System.in);\n\nString name = \"Batyr\";\n\n\n// 1. length();\n\n\nSystem.out.println(name.length());\n\n// 2. toUpperCase();\n\n\nSystem.out.println(name.toUpperCase());\n\n// 3. toLoweCase();\n\n\nSystem.out.println(name.toLowerCase());\n\n// 4. charAt(index);\n\nSystem.out.println(name.charAt(0));\nSystem.out.println(name.charAt(1));\nSystem.out.println(name.charAt(2));\nSystem.out.println(name.charAt(3));\nSystem.out.println(name.charAt(4));\n\n// 4. ******OR*****\n\nchar c1= name.charAt(0);\nchar c2= name.charAt(1);\nchar c3= name.charAt(2);\nchar c4= name.charAt(3);\nchar c5= name.charAt(4);\n\nSystem.out.println(c1);\nSystem.out.println(c2);\nSystem.out.println(c3);\nSystem.out.println(c4);\nSystem.out.println(c5);\n\n// 5. str.equal(\"value\")\n\nSystem.out.println(name.equals(\"Batyr\"));\nSystem.out.println(name.equalsIgnoreCase(\"Batyr\"));\n\n// 6. contains\n\nSystem.out.println(name.contains(\"at\"));\n\n// 6. ******OR******\n\nboolean containsOrNot = name.contains(\"at\");\n\nSystem.out.println(containsOrNot);\n\n// 7. indexOf\n\nSystem.out.println(name.indexOf(\"a\"));\n\n// will show you the first letter's index only\n\nSystem.out.println(name.indexOf(\"ty\"));\n\n//will show -1 when the char which entered is abcent\n\nSystem.out.println(name.indexOf(\"wty\"));\n\nString uName=name.toUpperCase();\n\nSystem.out.println(uName.indexOf(\"BATYR\"));\n\nSystem.out.println(name.toUpperCase().indexOf(\"BA\"));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nscan.close();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tIsVowel str=new IsVowel();\n\t\tboolean result1=str.vowel('e');\n\t\tSystem.out.println(\"the vowel is \"+result1);\n\t\tif(result1) {\n\t\t\tint counter=0;\n\t\t\tScanner scan=new \tScanner(System.in);\n\t\t\tSystem.out.println(\"Enter a string\");\n\t\t\tString str1=scan.nextLine();\n\t\t\tfor(int i=0; i<str1.length();i++) {\n\t\t\t\tif(str1.charAt(i)=='e') {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"number of e is \"+counter);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(disemvowel(\"No offense but,\\nYour writing is among the worst I've ever read\"));\r\n\t\tSystem.out.println(\"N ffns bt,\\nYr wrtng s mng th wrst 'v vr rd: is answer\");\r\n\t}", "private static Object countVowels(String blah) {\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n Scanner input= new Scanner(System.in);\n System.out.println(\" Enter a string value: \");\n String word=input.nextLine();\n String newWord=word.charAt(0)+\"\";\n for (int i = 1; i <word.length() ; i++) {\n if(word.charAt(i)>=65 && word.charAt(i)<=90){\n newWord+=\" \"+word.charAt(i);\n }else{\n newWord+=word.charAt(i);\n }\n\n }\n System.out.println(newWord);\n }", "public static String removeNonWord(String message)\r\n {\r\n int start = getLetterIndex(message, head); //get the fist index that contain English letter\r\n int end = getLetterIndex(message, tail); //get the last index that contain English letter\r\n if (start == end) // if only contain one letter\r\n return String.valueOf(message.charAt(start)); // return the letter\r\n return message.substring(start, end + 1); // return the content that contain English letter\r\n }", "public static void main(String[] args) {\n\t\tString s=\"abcdef\";\n\t\tStringBuilder sb=new StringBuilder(s);\n\t\tfor(int i=0,j=s.length()-1;i<j;)\n\t\t{\n\t\t\tif(!isvowel(sb.charAt(i))) \n\t\t\t\t{\t\n\t\t\t\t\ti++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\tif(!isvowel(sb.charAt(j)))\n\t\t\t\t{\n\t\t\t\tj--;\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\tchar c=sb.charAt(i);\n\t\t\t\tsb.replace(i,i+1, sb.charAt(j)+\"\");\n\t\t\t\tsb.replace(j,j+1,c+\"\");\t\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t\n\t\t\n\t\t}\n\t\tSystem.out.println(sb);\n\t}", "public static void main(String[] args) {\n System.out.println(censorLetter(\"computer science\", 'e')); //\"comput*r sci*nc*\"\n System.out.println(censorLetter(\"trick or treat\", 't')); //\"*rick or *rea*\"\n }", "private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(i)) < 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "public static void main(String[] args) {\n\n\t\tString s = \"P@$$w!rd\";\n\n\t\tString specialCharacters = s.replaceAll(\"[^@#$%^&*()!_+\\\\-=\\\\[\\\\]{};':\\\"\\\\\\\\|,.<>\\\\/? 0-9]\", \"\");\n\t\tString alphabets = s.replaceAll(\"[^a-zA-Z]\", \"\");\n\n\t\tSystem.out.println(specialCharacters);\n\t\tSystem.out.println(alphabets);\n\n\t\tint a = 0, b = alphabets.length() - 1;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\n\t\t\tif (Character.isAlphabetic(s.charAt(i))) {\n\t\t\t\tSystem.out.print(alphabets.charAt(b));\n\t\t\t\tb--;\n\t\t\t} else {\n\t\t\t\tSystem.out.print(specialCharacters.charAt(a));\n\t\t\t\ta++;\n\t\t\t}\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tString word = \"Amazon\";\n\t\t//print each character one by one in separate lines\n\t\tint idx = 0;\n\t\t\n\t\twhile (idx < word.length()) {\n\t\t\tSystem.out.println(word.charAt(idx++));\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(); //empty line\n\t\t\n\t\t// print the word back to front Amazon --> nozamA\n\t\tint idx2 = word.length()-1; //5\n\t\t\n\t\twhile (idx2 >= 0) {\n\t\t\tSystem.out.println(word.charAt(idx2--));\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/*int idx = 0;\n\t\tSystem.out.println(word.charAt(idx));\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t*/\n\t}", "private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor (int i = 0;i<word.length();++i){\r\n\t\t\tstemmer.add(lword.charAt(i));\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}", "public static String decrypt(String word) {\n\t\tif(word==null || word.trim().length()<1){\n\t\t\treturn word;\n\t\t}\n\t\tint[] asciivals = new int[word.length()];\n\t\tchar[] orgchars = word.toCharArray();\n\t\t//convert to ascii val\n\t\tfor(int i=0;i<orgchars.length; i++){\n\t\t\tasciivals[i] = getASCII(orgchars[i]);\n\t\t}\n\t\t\n\t\t//subtract the value of previous element\n\t\tfor(int i=asciivals.length-1; i>0;i--){\n\t\t\tasciivals[i]-=asciivals[i-1];\n\t\t}\n\t\t//subtract 1 from the first char\n\t\tasciivals[0]-=1;\n\t\t//now keep on adding 26 until all values are in the range of a-z\n\t\tfor(int i=0;i<asciivals.length;i++){\n\t\t\twhile(asciivals[i]<getASCII('a')){\n\t\t\t\tasciivals[i]+=26;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//convert ascii vals to char\n\t\tfor(int i=0;i<asciivals.length; i++){\n\t\t\torgchars[i] = (char)asciivals[i];\n\t\t}\n\t\treturn String.valueOf(orgchars);\n\t}", "private static String convertToLatin(String word)\n {\n return word.substring(1) + word.substring(0,1) + \"ay\";\n }" ]
[ "0.7577029", "0.7407392", "0.7366443", "0.72724444", "0.725793", "0.7070867", "0.70030046", "0.7001866", "0.673604", "0.6720127", "0.6613379", "0.652312", "0.6409654", "0.63605946", "0.6355286", "0.6353047", "0.6323406", "0.6279396", "0.62760216", "0.6254948", "0.6249999", "0.62083423", "0.61986077", "0.61851203", "0.6168612", "0.6123619", "0.6121801", "0.60990137", "0.607451", "0.60596335", "0.60536855", "0.6052312", "0.5983307", "0.5954218", "0.5927742", "0.5915649", "0.5891206", "0.5884885", "0.58685374", "0.5865922", "0.58592516", "0.5827447", "0.58049315", "0.5787524", "0.57670987", "0.5754566", "0.57521176", "0.57478684", "0.5745483", "0.57403725", "0.57389635", "0.57383454", "0.5714421", "0.57038116", "0.5691172", "0.56911284", "0.56823", "0.5674407", "0.56642425", "0.5663058", "0.56547254", "0.5652076", "0.5630947", "0.56084687", "0.5595773", "0.5581874", "0.5558609", "0.5552222", "0.5547007", "0.5539575", "0.55165255", "0.55013496", "0.5489952", "0.54827875", "0.5478624", "0.5471435", "0.5467129", "0.5456792", "0.5438717", "0.5410224", "0.5408958", "0.5398953", "0.5396073", "0.53860134", "0.5383937", "0.5382676", "0.5382512", "0.53818506", "0.5380577", "0.5373275", "0.5372851", "0.53716445", "0.53709406", "0.5366819", "0.5365221", "0.5360756", "0.53430563", "0.53371006", "0.5333874", "0.5329046", "0.5328206" ]
0.0
-1
/ access modifiers changed from: public
ErrorType(@StringRes int i, @StringRes int i2) { this.mTitleResourceId = i; this.mMessageResourceId = i2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void grabar() {\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}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void func_104112_b() {\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}", "@Override\n public void init() {\n\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private MApi() {}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "@Override\n protected void getExras() {\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}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "private Singletion3() {}", "private Infer() {\n\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\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\tprotected void getData() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected Doodler() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract Object mo1771a();", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "protected boolean func_70814_o() { return true; }", "@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 Get() {}", "private Get() {}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void m50366E() {\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\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}", "protected void mo6255a() {\n }", "@Override\n public void init() {\n }", "protected abstract Set method_1559();", "@Override\n public void get() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void m23075a() {\n }", "public void mo21779D() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public void mo21825b() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public abstract void mo27386d();", "public void myPublicMethod() {\n\t\t\n\t}" ]
[ "0.7046954", "0.6840786", "0.6732438", "0.66625404", "0.6642832", "0.66361874", "0.661149", "0.6526749", "0.63912535", "0.6354607", "0.6341408", "0.6341408", "0.6285121", "0.6281917", "0.6281917", "0.6271172", "0.6264127", "0.62395954", "0.62393844", "0.62390846", "0.6238553", "0.6226511", "0.62183136", "0.618826", "0.6174672", "0.61745244", "0.6174151", "0.61677605", "0.6165423", "0.61594623", "0.61594623", "0.6157007", "0.61513454", "0.61446357", "0.613367", "0.612459", "0.6121691", "0.6115942", "0.61126405", "0.6106001", "0.6101274", "0.60895264", "0.60895264", "0.60895264", "0.60895264", "0.60895264", "0.60895264", "0.6084211", "0.6079115", "0.60722077", "0.6066694", "0.6066694", "0.6066694", "0.6066694", "0.6066694", "0.60648996", "0.60644895", "0.60620904", "0.60620904", "0.605335", "0.6042082", "0.6038364", "0.6025909", "0.6025609", "0.60242355", "0.6016455", "0.60051244", "0.5987807", "0.5985923", "0.5985923", "0.5985923", "0.5984364", "0.5984364", "0.5977293", "0.5970498", "0.59682643", "0.5967285", "0.59571844", "0.59571844", "0.59571844", "0.5952838", "0.5951183", "0.59494215", "0.5927989", "0.592648", "0.59251", "0.592102", "0.5913638", "0.59131765", "0.5912635", "0.5912345", "0.59117395", "0.59117395", "0.59117395", "0.5911449", "0.5910859", "0.5909292", "0.59080994", "0.59080994", "0.59067225", "0.5905689" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7247938", "0.7202959", "0.7196692", "0.71785426", "0.7108701", "0.70417315", "0.70402646", "0.70132303", "0.7011096", "0.69826573", "0.6946997", "0.69409776", "0.6935366", "0.69191027", "0.69191027", "0.6893088", "0.6885528", "0.6877815", "0.68763673", "0.686437", "0.686437", "0.686437", "0.686437", "0.68540627", "0.68493474", "0.68218297", "0.68192774", "0.68153644", "0.68153644", "0.6815331", "0.6808357", "0.680292", "0.68001926", "0.6793566", "0.6790724", "0.6790344", "0.67855906", "0.67613244", "0.67596716", "0.67503935", "0.674636", "0.674636", "0.6743352", "0.6741959", "0.6728363", "0.6725486", "0.67250663", "0.67250663", "0.67230934", "0.67131525", "0.67084885", "0.67067933", "0.6701798", "0.6700826", "0.6699366", "0.6696747", "0.66889644", "0.6685846", "0.6685846", "0.6684866", "0.6682888", "0.66810936", "0.6679739", "0.6670028", "0.6669299", "0.6664124", "0.6659152", "0.6659152", "0.6659152", "0.6658369", "0.66567385", "0.66567385", "0.66567385", "0.66540265", "0.6653653", "0.66526854", "0.66509074", "0.66492856", "0.6648748", "0.6648541", "0.6648053", "0.66467965", "0.66467464", "0.66459095", "0.66453874", "0.66439164", "0.6641125", "0.66372454", "0.663597", "0.6634331", "0.6634331", "0.6634331", "0.66339976", "0.6631227", "0.6630643", "0.6628774", "0.66286343", "0.66267", "0.6621867", "0.6620775", "0.6620775" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.790433", "0.78052884", "0.7766116", "0.77269244", "0.7631314", "0.76214564", "0.75844425", "0.7530182", "0.748751", "0.7457498", "0.7457498", "0.7438209", "0.74215984", "0.74033666", "0.7391367", "0.7386547", "0.7378906", "0.73700386", "0.73624307", "0.73555857", "0.734534", "0.7341001", "0.7329573", "0.7328464", "0.732542", "0.73187584", "0.73161364", "0.73133296", "0.730374", "0.730374", "0.7301578", "0.7297925", "0.72935253", "0.7286381", "0.728296", "0.7280917", "0.7278273", "0.72595716", "0.72595716", "0.72595716", "0.72594506", "0.7258975", "0.7249544", "0.7224888", "0.7219197", "0.7216406", "0.72040117", "0.7201528", "0.72002995", "0.71931463", "0.7184822", "0.7177731", "0.7168134", "0.71670145", "0.71535766", "0.7152848", "0.71356684", "0.7134476", "0.7134476", "0.7128907", "0.7128605", "0.7123538", "0.7122872", "0.7122704", "0.7121557", "0.71169186", "0.71169186", "0.71169186", "0.71169186", "0.7116654", "0.71165264", "0.71160054", "0.71144056", "0.71118295", "0.71092284", "0.7108203", "0.7104891", "0.7099518", "0.7097655", "0.7095719", "0.7093119", "0.7093119", "0.7085876", "0.70827055", "0.70806557", "0.7079835", "0.7073702", "0.70676506", "0.706124", "0.70596653", "0.7059546", "0.70508295", "0.7037259", "0.7037259", "0.70355344", "0.70347226", "0.70347226", "0.70325696", "0.7030457", "0.70290285", "0.7018263" ]
0.0
-1
initialise heap from inverse heap
public void initialise() { heap = new ArrayList<>(inverseHeap.keySet()); inverseHeap = null; //null inverse heap to save space }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeHeap() {\r\n\t\t//for (int i = (theHeap.size() >> 1) - 1; i >= 0; i--) {\r\n\t\tfor (int i = (theHeap.size() - 1) >> 1; i >= 0; i--) {\r\n\t\t\tsiftDown(i);\r\n\t\t}\r\n\t}", "void buildHeap() {\n\tfor(int i=parent(size-1); i>=0; i--) {\n\t percolateDown(i);\n\t}\n }", "void buildHeap() {\n for (int i = parent(size - 1); i >= 0; i--) {\n percolateDown(i);\n }\n }", "public Heap() {\n heap = new Vector<E>();\n }", "public Heap() {\n this.arr = new ArrayList<>();\n this.isMax = false;\n }", "public BinHeap()\n {\n // allocate heap to hold 100 items\n arr = (T[]) new Comparable[100];\n // set size of heap to 0\n size = 0;\n }", "public LeftistHeap() {\n root = null;\n }", "public MinHeap() {\n// contents = new HashMap<>();\n contents= new ArrayList<>();\n backwards = new HashMap<>();\n contents = new ArrayList<>();\n contents.add(null);\n\n// contents.put(0, null);\n backwards.put(null, 0);\n// setContents = new HashSet<>();\n }", "public void buildHeap() {\n\t\tthis.makeComplete();\n\t\tfor(int i = this.size/2; i >= 1; i--)\n\t\t\tthis.heapify(i);\n\t}", "private void heapify() {\n for (int i=N/2; i>=1; i--)\n sink(i);\n }", "public Heap(int maxSize, int[] _dist, int[] _hPos) \r\n {\r\n N = 0;\r\n h = new int[maxSize + 1];\r\n dist = _dist;\r\n hPos = _hPos;\r\n }", "public Heap(){\n super();\n }", "public Heap(){\n data = new Vector();\n }", "public Heap() {\r\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\r\n\t}", "private static <T> void heapify (HeapSet<T> heap) {\r\n\t\tfor (int i = heap.size () - 1; i >= 0; --i) {\r\n\t\t\tsiftDown (heap, i, heap.size ());\r\n\t\t}\r\n\t}", "private static void restoreHeapProperties(Node newNode, HeapNode heap) {\r\n\t\tVector<Edge> edges = newNode.edges;\r\n\t\t\r\n\t\t//I need to analize all nodes that share an edge with newNode and only them. \r\n\t\tfor(Edge e : edges){\r\n\t\t\tNode otherNode = (e.n1 == newNode) ? e.n2 : e.n1;\r\n\t\t\t\r\n\t\t\tif(!belongsToX[otherNode.number]){ //newNode in X and otherNode in V-X. \r\n\t\t\t\tif(heap.getNodeInfo(otherNode) == -1){ //node didn't exist on heap. Add it.\r\n\t\t\t\t\theap.setNodeMinEdge(otherNode, e);\r\n\t\t\t\t\theap.add(otherNode);\r\n\t\t\t\t}else{ \t\t\t\t\t\t\t\t\t\t\t\t //node already exists on heap\r\n\t\t\t\t\tif(heap.getNodeMinEdge(otherNode).cost > e.cost){ //new edge costs less then previous. Delete and re-add the node.\r\n\t\t\t\t\t\theap.delete(otherNode);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\theap.setNodeMinEdge(otherNode, e);\r\n\t\t\t\t\t\theap.add(otherNode);\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 NodeHeap () {\n // Stupid Java doesn't allow init generic arrays\n heap = new Node[DEFAULT_SIZE];\n size = 0;\n }", "private static void restoreHeapProperties(Node newNode, Heap<Edge> heap) {\r\n\t\tVector<Edge> edges = newNode.edges;\r\n\t\t\r\n\t\t//I need to analize all edges with newNode and only them. \r\n\t\tfor(Edge e : edges){\r\n\t\t\tif((e.n1 == newNode && belongsToX[e.n2.number]) || (e.n2 == newNode && belongsToX[e.n1.number])){\r\n\t\t\t\t//both edges in X. need to delete it from heap because it is not a crossing edge.\r\n\t\t\t\theap.delete(e);\r\n\t\t\t}else {\r\n\t\t\t\t//one node in X and other in V-X. put it in the heap because it is a crossing edge.\r\n\t\t\t\theap.add(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayHeapMinPQ() {\n heapArray = new ArrayList<>();\n itemMap = new HashMap<>();\n heapArray.add(null); //alway set index 0 null and heap starts from index 1.\n nextIndex = 1;\n }", "Heap(int[] arr){\n\t\tthis.heap = new int[arr.length+1];\n\t\tfor(int i=1; i<arr.length+1; i++) {\n\t\t\tthis.heap[i] = arr[i-1];\n\t\t}\n\t}", "public PriorityQueue(int size){\n heap = new Element[size];\n }", "private void heapify(int idx) {\r\n // TODO\r\n }", "public VectorHeapb()\n\t// post: constructs a new priority queue\n\t{\n\t\tdata = new Vector<E>();\n\t}", "public BinaryHeap(int maxCapacity) {\n\tpq = new Comparable[maxCapacity];\n\tsize = 0;\n }", "public PriorityQueue() {\n\t\theap = new ArrayList<Pair<Integer, Integer>>();\n\t\tlocation = new HashMap<Integer, Integer>();\n\t}", "private static <T extends Comparable<T>> void buildHeap(T[] table)\n {\n int n = 1;\n while (n < table.length)\n {\n n++;\n int child = n-1;\n int parent = (child - 1) / 2;\n while (parent >=0 && table[parent].compareTo(table[child]) < 0)\n {\n swap (table, parent, child);\n child = parent;\n parent = (child - 1) / 2;\n }//end while\n }//end while\n }", "private Heap() { }", "private Heap() { }", "public BinaryHeap() {\n }", "public HeapImp() {\n\t\tthis(10000);\n\t}", "public static void heapify() {\n //배열을 heap 자료형으로 만든다.\n // 1d 2d 2d 3d 3d 3d 3d 4d\n// int[] numbers = {9, 12, 1, 3, 6, 2, 8, 4};\n // 1depth의 자식노드 numbers[2i], numbers[2i+1]\n int[] numbers = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};\n int i = 1;\n while (true) {\n int target = numbers[i-1];\n int left = numbers[2*i-1];\n\n if (2*i == numbers.length) {\n if (left > target){\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n print(numbers);\n break;\n }\n int right =numbers[2*i];\n\n if (left > right) {\n if(left > target) {\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n }else if (right > left) {\n if (right > target) {\n numbers[i-1] = right;\n numbers[2*i] = target;\n }\n }\n i++;\n\n print(numbers);\n }\n\n }", "public BinHeap(int maxSize)\n {\n // allocate heap to hold maxSize elements\n arr = (T[]) new Comparable[maxSize];\n // set size of heap to 0\n size = 0;\n }", "GenericHeap() { // default\r\n\r\n\t}", "protected void heapify(int i) {\n \tE temp;\n\t\tE left = null;\n\t\tE right = null;\n\t\tE current = internal[i];\n\n\t\tif(left(i) < heapSize) left = internal[left(i)];\n\t\tif(right(i) < heapSize ) right = internal[right(i)];\n\n\t\tif(left != null && right != null){\n\t\t\tif(compy.compare(current, right) < 0 && compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tif(compy.compare(right, left) < 0){\n\t\t\t\t\tinternal[i] = left;\n\t\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\t\theapify(left(i));\n\t\t\t\t}else{\n\t\t\t\t\tinternal[i] = right;\n\t\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\t\theapify(right(i));\n\t\t\t\t}\n\t\t\t}else if(compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[left(i)];\n\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\theapify(left(i));\n\t\t\t}else if(compy.compare(current, right) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[right(i)];\n\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\theapify(right(i));\n\t\t\t}\n\t\t}else if(left != null){\n\t\t\tif(compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[left(i)];\n\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\theapify(left(i));\n\t\t\t}\n\t\t}else if(right != null){\n\t\t\tif(compy.compare(current, right) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[right(i)];\n\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\theapify(right(i));\n\t\t\t}\n\t\t}\n }", "public ArrayHeap() {\r\n capacity = 10;\r\n length = 0;\r\n heap = makeArrayOfT(capacity);\r\n }", "public PriorityQueue()\n {\n // initialise instance variables\n heap = new PriorityCustomer[100];\n size = 0;\n }", "public BinaryHeap(int maxCapacity) {\n pq = new Comparable[maxCapacity];\n size = 0;\n }", "public MinHeap() {\n\tdata = new ArrayList<Integer>();\n\t}", "public static void buildHeap(int[]data){\n for (int i = data.length-1; i>=0; i--){\n pushDown(data, data.length, i);\n }\n }", "public FibonacciHeap() {}", "public MaxHeap() {\n this.heap = new ArrayList<E>();\n }", "public Heap12()\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = false;\n cap = 5;\n }", "public HeapIntPriorityQueue() {\n elementData = new int[10];\n size = 0;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic MinHeap() { \r\n\t\theap = new MinHeapNode[1]; \r\n\t }", "private void heapify(final int i) {\n assert(valid(i));\n if (leaf(i)) return;\n final int v = H[i];\n final int left_child = ls(i);\n final int right_child = rs(i);\n int largest = (v >= H[left_child]) ? i : left_child;\n if (right_child != n && H[largest] < H[right_child])\n largest = right_child;\n assert(valid(largest));\n if (largest != i) {\n H[i] = H[largest]; H[largest] = v;\n heapify(largest);\n }\n }", "private void heapifyRemove() {\n // this is called after the item at the bottom-left has been put at the root\n // we need to see if this item should swap down\n int node = 0;\n int left = 1;\n int right = 2;\n int next;\n\n // store the item at the root in temp\n T temp = heap[node];\n\n // find out where we might want to swap root \n if ((heap[left] == null) && (heap[right] == null)) {\n next = count; // no children, so no swapping\n return;\n } else if (heap[right] == null) {\n next = left; // we will check left child\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) { // figure out which is the biggest of the two children\n next = left; // left is bigger than right, so check left child\n } else {\n next = right; // check right child\n }\n\n // compare heap[next] to item temp, if bigger, swap, and then repeat process\n while ((next < count) && (((Comparable) heap[next]).compareTo(temp) > 0)) {\n heap[node] = heap[next];\n node = next;\n left = 2 * node + 1; // left child of current node\n right = 2 * (node + 1); // right child of current node\n if ((heap[left] == null) && (heap[right] == null)) {\n next = count;\n } else if (heap[right] == null) {\n next = left;\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) {\n next = left;\n } else {\n next = right;\n }\n }\n heap[node] = temp;\n\n }", "public Heap(int capacity) {\n\t\t this.capacity = capacity;\n\t\t data = new Integer[this.capacity];\t\n\t\t size = 0;\n\t }", "private boolean buildHeap(int numPerRun){ \n\t\tTuple temp;\n\t\tint i = 0;\n\t\twhile(i < numPerRun && (temp = child.getNextTuple()) != null) {\n\t\t\tinternal.offer(temp);\n\t\t\ti++;\n\t\t}\n//\t\tSystem.out.println(\"internal heap has: \" + i + \"tuples\");\n\t\tif(i != numPerRun || i == 0) { // i == 0, heap is empty!\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void meld(BinomialHeap heap2) {\r\n\t\tthis.size = this.size + heap2.size;\r\n\t\tif (heap2.min != null && this.min != null && heap2.min.value < this.min.value) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t}\r\n\t\tif (heap2.min != null && this.min == null) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t}\r\n\t\tHeapNode[] heap2Arr = heap2.HeapTreesArray;\r\n\t\tif (this.empty() && !heap2.empty()) {\r\n\t\t\tthis.min = heap2.min;\r\n\t\t\tthis.empty = false;\r\n\t\t}\r\n\t\tfor (int i = 0; i < heap2Arr.length; i++) {\r\n\t\t\tif (heap2Arr[i] != null && this.HeapTreesArray[i] == null) {\r\n\t\t\t\tthis.HeapTreesArray[i] = heap2Arr[i];\r\n\t\t\t} else if (heap2Arr[i] != null && this.HeapTreesArray[i] != null) {\r\n\t\t\t\tHeapNode hN = merge(heap2Arr[i], this.HeapTreesArray[i]);\r\n\t\t\t\tHeapTreesArray[i] = null;\r\n\t\t\t\tint j = i + 1;\r\n\t\t\t\twhile (this.HeapTreesArray[j] != null) {\r\n\t\t\t\t\thN = merge(hN, this.HeapTreesArray[j]);\r\n\t\t\t\t\tHeapTreesArray[j] = null;\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\tHeapTreesArray[j] = hN;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public Heap(int initialCapacity) {\r\n\t\tthis(initialCapacity, null);\r\n\t}", "public HeapPriorityQueue () \n\t{\n\t\tthis(DEFAULT_SIZE);\n\t}", "public void heapify(int parent) { \t\n \tint largest = parent;\n \tint lchild = 2*parent;\n int rchild = 2*parent + 1;\n if (lchild <= this.size && this.heap[lchild] > this.heap[largest]) \n largest = lchild; \n \n if (rchild <= this.size && this.heap[rchild] > this.heap[largest]) \n largest = rchild; \n \n if (largest != parent) \n { \n int temp = this.heap[parent]; \n this.heap[parent] = this.heap[largest]; \n this.heap[largest] = temp;\n this.heapify(largest);\n } \n }", "public WBLeftistHeapPriorityQueueFIFO() {\n\t\theap = new WBLeftistHeap<>();\n\t}", "public ArrayHeapMinPQ() {\n aHeap.add(null);\n }", "private void heapSort() {\n\n\t\tint queueSize = priorityQueue.size();\n\n\t\tfor (int j = 0; j < queueSize; j++) {\n\n\t\t\theapified[j] = binaryHeap.top(priorityQueue);\n\t\t\tbinaryHeap.outHeap(priorityQueue);\n\n\t\t}\n\n\t}", "public AssistantsHeap(int assistants)\n\t{\t\t\n\t\tthis.assistants = assistants;\n\t}", "public void buildHeap(int[] arr) {\n int size = arr.length;\n\n for (int i = getParentIndex(size); i >= 0; i--) {\n minHeapify(i);\n }\n }", "void Minheap()\n {\n for(int i= (size-2)/2;i>=0;i--)\n {\n minHeapify(i);\n }\n }", "private void setMinHeap() {\n // parentIndex is the last leaf node parentIndex\n int parentIndex = (array.length - 2) / 2;\n // from last parentIndex down on the depth path to the root\n // convert to minHeap\n while (parentIndex >= 0) { // when parentIndex = 0, the root\n minHeapify(parentIndex, array.length);\n // go to next index(parentIndex) on that level\n parentIndex--;\n }\n }", "public void buildMaxHeap(){\n\t\tfor(int i = (n-2)/2 ; i >= 0; i--){\n\t\t\tmaxHeapfy(i);\n\t\t}\n\t}", "public static void makeHeap(char[] heap, int size, CharComparator c) {\n/* 124 */ int i = size >>> 1;\n/* 125 */ while (i-- != 0)\n/* 126 */ downHeap(heap, size, i, c); \n/* */ }", "private void heapifyAdd() {\n // TODO. The general idea of this method is that we are checking whether the \n // most recently added item, which has been put at the end of the array, \n //needs to be swapped with its parent. We do this in a loop, until a swap isn’t needed or we reach the root. This is not recursive.\n\n // Pseudocode:\n // assign newly added item to a temp var.\n // use an index variable to keep track of the index where that value was added\n // while the index isn’t pointing at the root, and while the node at this index is greater than the node at its parent:\n // copy the parent node to the index location (move parent node down the heap)\n // set the index to the parent index\n // when we are at the root, or the parent of current index isn’t bigger, we are done\n // copy the temp variable to the location of the current index. \n T temp;\n int next = count - 1;\n\n temp = heap[next];\n\n while ((next != 0) && (((Comparable) temp).compareTo(heap[(next - 1) / 2]) > 0)) {\n heap[next] = heap[(next - 1) / 2];\n next = (next - 1) / 2;\n }\n heap[next] = temp;\n }", "public static void heapify(Integer arr[])\n {\n N = arr.length-1;\n for (int i = N/2; i >= 0; i--)\n maxheap(arr, i);\n }", "protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 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\tchild = parent;\r\n\t\t}\r\n\t}", "public Heap(Vector v){\n int i;\n data = new Vector(v.size()); //we know ultimate size\n for (i = 0; i < v.size(); i++){\n //add elements to heap\n add((Bloque)v.get(i));\n }\n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "public void balanceHeaps(){\n \n //If max heap size is greater than min heap then pop the first element and put int min heap\n if(maxHeap.size() > minHeap.size())\n minHeap.add(maxHeap.pollFirst());\n\n }", "public Heap(int mx) // constructor\n{\nmaxSize = mx;\ncurrentSize = 0;\nheapArray = new Node[maxSize]; // create array\n}", "private static <T> void siftUp (HeapSet<T> heap, int start) {\r\n\t\tint child = start;\r\n\t\twhile (child > 0) {\r\n\t\t\tint remainder = (child - 1) % 2;\r\n\t\t\tint root = ((child - 1) - remainder) / 2;\r\n\t\t\tif (((Comparable<? super T>) heap._list.get (root)).compareTo (heap._list.get (child)) < 0) {\r\n\t\t\t\tCollections.swap (heap._list, root, child);\r\n\t\t\t\tHeapSet.fireEvent (heap, root, child);\r\n\t\t\t\tchild = root;\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Before\n public void setUpBinaryMinHeaps() {\n empty = new BinaryMinHeap<>();\n emptyArr = new ArrayList<>();\n \n multipleElements = new BinaryMinHeap<>();\n multipleElements.insert(7);\n multipleElements.insert(8);\n multipleElements.insert(5);\n multipleElements.insert(3);\n multipleElements.insert(2);\n multipleElements.insert(6);\n \n multiArr = new ArrayList<>();\n multiArr.add(2);\n multiArr.add(3);\n multiArr.add(6);\n multiArr.add(8);\n multiArr.add(5);\n multiArr.add(7);\n \n }", "public PriorityQueue(HeapType type) {\n this(-1, type);\n }", "public HeapPriorityQueue(int size)\n\t{\n\t\tstorage = new Comparable[size + 1];\n\t\tcurrentSize = 0;\n\t}", "public MaxHeap() {\n this(64);\n }", "public static void heapify(int arr[]) {\n N = arr.length - 1;\n for (int i = N / 2; i >= 0; i--)\n maxheap(arr, i);\n }", "public Heap12 (Heap12<E> toCopy)\n {\n arrayList = new ArrayList<E>(toCopy.getCap());\n isMax = toCopy.getIsMax();\n size = toCopy.size();\n cap = toCopy.getCap();\n ArrayList<E> copyList = toCopy.getAL();\n for(int i = 0; i < copyList.size(); i++)\n {\n arrayList.add(copyList.get(i));\n }\n }", "@Test\n\tpublic void testHeapify() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.heapify(0);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(3, 5, 33, 36, 15, 70, 24, 47, 7, 27, 38, 48, 53, 32, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}", "private static void buildHeap(int arr[], int n) \n\t\t{\n\t\t\tfor(int i=n;i>=0;i++)\n\t\t\t\theapify(arr,n,i);\n\t\t\t\n\t\t}", "public FibonacciHeap()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Constructor-Constructs a FibonacciHeap object that contains no elements.\r\n {\r\n }", "private void upheap(int pos) {\n\t\t// implement this method\n\t\twhile (pos > 1) {\n\t\t\tint pos2 = (pos) / 2;\n\t\t\tif (pos < 0)\n\t\t\t\tpos = 0;\n\t\t\tif ((comparator.compare(apq.get(pos), apq.get(pos2)) >= 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tswap(pos, pos2);\n\t\t\tpos = pos2;\n\n\t\t}\n\t\tlocator.set(apq.get(pos), pos);\n\t}", "private void heapify(int i) {\n if (!hasLeft(i))\n return;\n int max = i;\n if (this.heap.get(max).compareTo(this.heap.get(leftIndex(i))) < 0)\n max = leftIndex(i);\n if (hasRight(i) && this.heap.get(max)\n .compareTo(this.heap.get(rightIndex(i))) < 0)\n max = rightIndex(i);\n if (max == i)\n return; // ho finito\n // scambio i con max e richiamo la funzione ricorsivamente sull'indice\n // del nodo figlio uguale a max\n E app = this.heap.get(i);\n this.heap.set(i, this.heap.get(max));\n this.heap.set(max, app);\n heapify(max);\n }", "static void heapSort(int[] input){\n int len = input.length;\n for(int i=(len/2)-1;i>=0;i--){\n heapify(input,i,len);\n }\n for(int i = len-1;i>=0;i--){\n int temp = input[0];\n input[0] = input[i];\n input[i] = temp;\n heapify(input,0,i);\n }\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}", "private void heapify(int left, int right) {\r\n\t\tint k = 2 * left;\r\n\r\n\t\tif (k > right)\r\n\t\t\treturn;\r\n\r\n\t\tif ((k + 1) > right) {\r\n\t\t\tif (c[k - 1].compareTo(c[left - 1]) > 0)\r\n\t\t\t\tswitchElements(left - 1, k - 1);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (c[k - 1].compareTo(c[k]) < 0)\r\n\t\t\tk++;\r\n\r\n\t\tif (c[left - 1].compareTo(c[k - 1]) < 0) {\r\n\t\t\tswitchElements(left - 1, k - 1);\r\n\t\t\theapify(k, right);\r\n\t\t}\r\n\t}", "public static void heapify(int[] ints) {\n\t\tfor (int si = ints.length / 2 - 1; si >= 0; si--)\n\t\t\tpushDown(ints, si, ints.length);\n\t}", "public void binomialHeapInsert(Node x) {\n\t\tBinomialHeap h = new BinomialHeap();\n\t\th.head = x;\n\t\tBinomialHeap hPrime = this.binomialHeapUnion(h);\n\t\tthis.head = hPrime.head;\t\t\n\t}", "private void upHeap(int pos) throws NoSuchElementException\r\n {\r\n if (pos <= 0 || pos > size)\r\n throw new NoSuchElementException();\r\n\r\n int cur = pos;\r\n while (cur != 1) // si llega a uno esta en la raiz.\r\n {\r\n // [TODO] rompe el loop si llegamos a la raiz\r\n\r\n int par = cur/2; // [TODO] indice del padre\r\n\r\n // [TODO] Comparamos los elementos en las posiciones cur y par\r\n // Si la condicion del heap se cumple para esos elementos,\r\n // no hay mas que hacer y detenemos el loop\r\n\r\n if (heap[par].compareTo(heap[cur]) > 0)\r\n break;\r\n\r\n // [TODO] Intercambiamos los elementos en los indices cur y par\r\n Item p = heap[par];\r\n Item c = heap[cur];\r\n heap[par] = c;\r\n heap[cur] = p;\r\n\r\n // [TODO] Sube en el arbol hacia el padre\r\n cur = par;\r\n }\r\n }", "public Heap12( boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = isMaxHeap;\n cap = 5;\n }", "public Heap(boolean isMin) {\r\n // TODO\r\n }", "public Sorter()\n {\n this.largestSize = largestSize;\n this.size = 0;\n this.heap = new ArrayList<Node>();\n\n }", "public PriorityQueue(int initialCapacity, HeapType type) {\n super(PriorityQueueElement.class, initialCapacity, type);\n elementsMap = new HashMap<V, PriorityQueueElement<P, V>>();\n }", "public MaxHeap(int capacity) {\n heap = (Item[]) new Comparable[capacity];\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "public void makeComplete() { \n\t\tthis.size = 0;\n\t\tint index = 1;\n\t\tfor(int i=1; i<this.heap.length; i++) {\n\t\t\tif(this.heap[i] != -1) {\n\t\t\t\tint temp = this.heap[index];\n\t\t\t\tthis.heap[index] = this.heap[i];\n\t\t\t\tthis.heap[i] = temp;\n\t\t\t\tindex++;\n\t\t\t\tthis.size++;\n\t\t\t}\n\t\t}\n\t\tthis.heap[0] = this.size;\n\t}", "public HeapIterator<E> heapIterator(){\n return new HeapIter();\n }", "private <E extends Comparable<E>> void heapify(E[] array){\n\t\tif(array.length > 0){\n\t\t\tint n = 1;\n\t\t\twhile( n < array.length){\t//for each value in the array\n\t\t\t\tn++;\n\t\t\t\t\n\t\t\t\tint child = n-1;\n\t\t\t\tint parent = (child-1)/2;\n\t\t\t\twhile(parent >= 0 && array[parent].compareTo(array[child]) < 0){\t//if the heap property isn't observed between the parent and child, swap them and readjust parent/child values until it is\n\t\t\t\t\tabstractSorter.swap(array, parent, child);\n\t\t\t\t\tchild = parent;\n\t\t\t\t\tparent = (child-1)/2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void heapify(int[] arr, int i, int end){\n \n int largest = i;\n int left = 2 * i + 1;\n int right = 2 * i + 2;\n \n if(left < end && arr[left] > arr[largest]){ // check bounds and compare values\n largest = left;\n }\n \n if(right < end && arr[right] > arr[largest]){\n largest = right;\n }\n \n if(largest != i){\n // perform swap arr[i] and arr[largest]\n swap(arr,largest,i);\n //recursively fix the tree using heapify()\n heapify(arr,largest,end);\n }\n \n }", "public MinHeap(){\r\n nextAvail = 1;\r\n }", "@Test\n\tpublic void testHeap() {\n\t\t// merely a suggestion \n\t}", "private void grow() {\n int oldCapacity = heap.length;\n // Double size if small; else grow by 50%\n int newCapacity = oldCapacity + ((oldCapacity < 64) ?\n (oldCapacity + 2) :\n (oldCapacity >> 1));\n Object[] newQueue = new Object[newCapacity];\n for (int i = 0; i < heap.length; i++) {\n newQueue[i] = heap[i];\n }\n heap = newQueue;\n }", "public BinaryHeap(E[] objects) {\n for(int i = 0; i < objects.length; i++) {\n add(objects[i]);\n }\n }" ]
[ "0.7259565", "0.69031245", "0.6863625", "0.68169725", "0.67934006", "0.66959864", "0.66709566", "0.6655873", "0.6605544", "0.6593296", "0.65812665", "0.65484697", "0.65456545", "0.6523345", "0.64849716", "0.64817756", "0.6479022", "0.645559", "0.6420997", "0.63419235", "0.6341424", "0.632481", "0.6313925", "0.63062656", "0.63008076", "0.62851334", "0.6269031", "0.6269031", "0.6265691", "0.6255929", "0.6241708", "0.62195444", "0.62141454", "0.6201792", "0.618952", "0.61835223", "0.6172656", "0.6168307", "0.61519444", "0.6138893", "0.61298156", "0.6118333", "0.60946447", "0.6083922", "0.60395277", "0.6035148", "0.6028083", "0.60022444", "0.5988198", "0.5986871", "0.5981018", "0.5980521", "0.5968124", "0.59669936", "0.5962135", "0.59420556", "0.59391147", "0.59385926", "0.59385836", "0.5936994", "0.59369695", "0.5928604", "0.5924295", "0.5909324", "0.5908941", "0.59030586", "0.5893446", "0.5885802", "0.5882616", "0.5862842", "0.58472705", "0.5843706", "0.5832537", "0.58283573", "0.58188033", "0.580896", "0.58033365", "0.5792544", "0.57888496", "0.57713777", "0.5770119", "0.57629883", "0.57562876", "0.5751493", "0.574953", "0.57456475", "0.5738576", "0.57376575", "0.5737308", "0.5728161", "0.57165354", "0.5710188", "0.57094115", "0.57093614", "0.57078475", "0.5702691", "0.56996346", "0.5698052", "0.56969744", "0.5694233" ]
0.8017587
0
/ Read more about Camera2 here
private boolean useCamera2() { return Camera2Enumerator.isSupported(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean useCamera2();", "public void onCamera();", "Camera getCamera();", "public void openCamera() {\n \n\n }", "public void updateCamera() {\n\t}", "void cameraSetup();", "private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance\n mCamera.setPreviewCallbackWithBuffer(this);\n Log.i(TAG, \"Instance created\");\n } catch (Exception e) {\n Log.e(TAG, \"Error getting Camera instance: \" + e.getMessage());\n }\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }", "public void camera360() {\n\n }", "public void onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline r20) {\n /*\n r19 = this;\n r0 = r19\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"onCreateCameraPipeline\"\n r1.d(r2)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r2 = r20\n r1.f73l = r2\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.FileType r1 = r1.getFileType()\n com.arashivision.insta360.basemedia.model.FileType r2 = com.arashivision.insta360.basemedia.model.FileType.FISH_EYE\n r3 = 1\n r4 = 0\n if (r1 != r2) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.viewconstraint.Constraint r1 = r1.getConstraint()\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r2 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r2 = r2.IL1Iii\n int[] r2 = r2.getConstraintRatio()\n if (r1 == 0) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r5 = r0.f577a\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r6 = r5.I11L\n float r5 = r1.getDefaultDistance()\n double r9 = (double) r5\n float r5 = r1.getDefaultFov()\n double r11 = (double) r5\n r5 = r2[r3]\n float r5 = (float) r5\n r2 = r2[r4]\n float r2 = (float) r2\n float r5 = r5 / r2\n double r13 = (double) r5\n float r2 = r1.getXScale()\n double r7 = (double) r2\n float r1 = r1.getYScale()\n double r1 = (double) r1\n r15 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n r17 = r7\n r7 = r15\n r15 = r17\n r17 = r1\n r6.setGyroStabilizerFovDistance2(r7, r9, r11, r13, r15, r17)\n L_0x0059:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r1.setLoading(r4)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n if (r1 == 0) goto L_0x00cf\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r2 = r1.ILil\n if (r2 == 0) goto L_0x006d\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r2 = r2.getCameraRenderSurfaceInfo()\n if (r2 == 0) goto L_0x006d\n r4 = r3\n L_0x006d:\n if (r4 != 0) goto L_0x0077\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Custom surface is null\"\n L_0x0073:\n r1.e(r2)\n goto L_0x00c5\n L_0x0077:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r2 = r1.I11L\n if (r2 != 0) goto L_0x0080\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Render is null\"\n goto L_0x0073\n L_0x0080:\n boolean r2 = r1.llliI\n if (r2 == 0) goto L_0x0089\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Already render surface\"\n goto L_0x0073\n L_0x0089:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo r2 = new com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo\n r2.<init>()\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderWidth\n r2.renderWidth = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderHeight\n r2.renderHeight = r4\n a.a.a.a.e.a.e.l r4 = r1.f60IL\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r5 = r1.ILil\n int r5 = r5.getRenderModelType()\n com.arashivision.graphicpath.render.rendermodel.RenderModelType r4 = r4.a(r5)\n int r4 = r4.getType()\n r2.renderModeType = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n android.view.Surface r4 = r4.mSurface\n r2.mSurface = r4\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r4 = r1.I11L\n r4.startCameraRenderSurface(r2)\n r1.llliI = r3\n L_0x00c5:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.listener.IBasePlayerViewListener r1 = r1.f741\n if (r1 == 0) goto L_0x00ce\n r1.onLoadingFinish()\n L_0x00ce:\n return\n L_0x00cf:\n r1 = 0\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.e.a.f.h.onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline):void\");\n }", "void initializeCamera() {\n camera_linear = (LinearLayout) findViewById(R.id.camera_linear);\n //The preview frame is overlayed on the layout which shows the camera view.\n preview = (FrameLayout) findViewById(R.id.camera_preview);\n //Get an instance of the phone's camera.\n mCamera = cameraRecorder.getCameraInstance();\n //Find content fort the camera preview frame using the instance of the camera initialized.\n mPreview = new CameraPreview(getApplicationContext(), mCamera);\n //Apply the camera previes content from the camera to the preview frame itself.\n preview.addView(mPreview);\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\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\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String cameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n imageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CAMERA_PERMISSION);\n return;\n }\n manager.openCamera(cameraId, stateCallback, null);\n } catch (CameraAccessException e) {\n Toast.makeText(this, \"Camera failed to open.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) \r\n\t{\n\t\t if (mCamera != null)\r\n\t\t {\r\n\t\t\t Parameters params = mCamera.getParameters();\r\n\t mCamera.setParameters(params);\r\n\t Log.i(\"Surface\", \"Created\");\r\n\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t Toast.makeText(getApplicationContext(), \"Camera not available!\",\r\n\t Toast.LENGTH_LONG).show();\r\n\r\n\t finish();\r\n\t }\r\n\t}", "@Override\n public void init() {\n startCamera();\n }", "@Override\n public Camera setupCamera() {\n mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK);\n try {\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setPreviewSize(mWidth, mHeight);\n parameters.setPreviewFormat(mFormat);\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n Log.d(TAG, \"SIZE:\" + size.width + \"x\" + size.height);\n }\n for (Integer format : parameters.getSupportedPreviewFormats()) {\n Log.d(TAG, \"FORMAT:\" + format);\n }\n\n List<int[]> fps = parameters.getSupportedPreviewFpsRange();\n for (int[] count : fps) {\n Log.d(TAG, \"T:\");\n for (int data : count) {\n Log.d(TAG, \"V=\" + data);\n }\n }\n mCamera.setParameters(parameters);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (mCamera != null) {\n mWidth = mCamera.getParameters().getPreviewSize().width;\n mHeight = mCamera.getParameters().getPreviewSize().height;\n }\n return mCamera;\n }", "@Override\n public void onCameraPreviewStopped() {\n }", "private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }", "boolean useCamera2FastBurst();", "private void createCamera() {\n camera = getCameraInstance();\n // Setting the right parameters in the camera\n SetCameraParameters();\n // Create our Preview view and set it as the content of our activity.\n camera_preview = new CameraPreview(this, camera);\n // Adding the camera preview after the FrameLayout and before the mainact_btn_InOutAct\n // as a separated element.\n InOut_cameraLayout.addView(camera_preview, 0);\n }", "public interface CameraPreview {\n\n /**\n * Set the camera system this will act as the preview for.\n * <p/>\n * The preview will update the camera system as necessary for certain events, such as\n * setting the surface holder, or pausing/restarting the preview when reconfiguring the surface.\n *\n * @param cameraSystem the camera system to connect to\n */\n void connectToCameraSystem(@NonNull CameraSystem cameraSystem);\n\n}", "boolean useCamera2FakeFlash();", "@Override\n\tpublic void moveCamera() {\n\n\t}", "public Camera getCam() {\n return this.cam;\n }", "public void initializeCamera(){\n mCamera = Camera.open();\n\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);\n\n List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes();\n // Get the supported preview size closest to the requested dimensions:\n Camera.Size previewSize = previewSizes.get(previewSizes.size() - 1); // getOptimalPreviewSize(previewSizes, width, height);\n width = previewSize.width;\n height = previewSize.height;\n Log.d(TAG, \"width: \" + width + \" , height: \" + height);\n nPixels = width * height;\n pixels = new int[nPixels];\n setSize(width, height);\n parameters.setPreviewSize(width, height);\n\n mCamera.setParameters(parameters);\n\n int dataBufferSize=(int)(height * width * (ImageFormat.getBitsPerPixel(parameters.getPreviewFormat())/8.0));\n\n mCamera.addCallbackBuffer(new byte[dataBufferSize]);\n mCamera.setPreviewCallbackWithBuffer(this);\n }", "public interface ICamera {\n}", "public void startCamera()\n {\n startCamera(null);\n }", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "public static void camDebug(Camera camera) {\n\t}", "public Camera() {\n\t\treset();\n\t}", "@Override\n public void onCameraMoveStarted(int i) {\n\n }", "public static Camera getCameraInstance(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Camera.open(0); // This is the line the error occurs\n } else {\n return Camera.open();\n }\n }", "@Override\n public void onCameraOpenFailed(Exception e) {\n }", "public interface ICamera {\n\n /**\n * Return frame access interface for client usage\n *\n * @param interface_index\n * @return\n */\n public long getFrameAccessIfc(int interface_index);\n\n /**\n * Start the camera stream\n */\n public void start();\n\n /**\n * Stop the camera stream\n */\n public void stop();\n\n public String prepare(final UsbMonitor.UsbConnectionData connectionData);\n\n /**\n * Register json status callback\n *\n * @param callback\n */\n public void setStatusCallback(final IStatusCallback callback);\n\n /**\n * Queries camera for supported mode\n *\n * @return supported video modes String\n */\n public String getSupportedVideoModes();\n\n// /**\n// * Select camera capture mode\n// *\n// * @param width\n// * @param height\n// * @param frameFormat\n// */\n// public void setCaptureMode(final int width, final int height, final int frameFormat);\n\n /**\n * Select camera capture mode\n *\n * @param width\n * @param height\n * @param min_fps\n * @param max_fps\n * @param frameFormat\n */\n public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);\n}", "public interface CameraOpenListener {\n void onCameraError(Exception exc);\n\n void onCameraOpened(CameraController cameraController, int i, int i2);\n}", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.custom_cameraactivity);\r\n mCamera = getCameraInstance();\r\n mCameraPreview = new CameraPreview(this, mCamera);\r\n FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview);\r\n preview.addView(mCameraPreview);\r\n\r\n Bundle extras = getIntent().getExtras();\r\n looc = extras.getString(\"coor\");\r\n\r\n Button captureButton = (Button) findViewById(R.id.button_capture);\r\n captureButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n mCamera.takePicture(null, null, mPicture);\r\n // havent try to use doinbackgroud test first\r\n\r\n }\r\n });\r\n }", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}", "@Override\n protected Camera getCamera() {\n return Camera.createForPositionAndAngles(new ThreeDoubleVector(31.0, 7.0, 5.5), 0.0, 0.7);\n\n // Camera for orientation curve interpolation presentation\n// return Camera.createForPositionAndAngles(new ThreeDoubleVector(54.5, 10.0, 2.5), -0.5, 0.3);\n }", "private native void iniciarCamara(int idCamera);", "void onBind(String cameraId);", "private CameraManager() {\n }", "public void init(Camera cam);", "public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }", "private void onCameraOpened() {\n SurfaceTexture texture = targetView.getSurfaceTexture();\n\n if (texture != null) {\n targetSurface = new Surface(texture);\n onSurfaceReceived();\n }\n else {\n targetView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {\n @Override\n public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i1) {\n targetSurface = new Surface(surfaceTexture);\n onSurfaceReceived();\n }\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {\n return false;\n }\n\n @Override\n public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {\n\n }\n\n @Override\n public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i1) {\n\n }\n });\n }\n }", "public Camera2D getCamera()\r\n\t{\r\n\t\treturn _Camera;\r\n\t}", "public void startFrontCam() {\n }", "public static Camera open() { \n return new Camera(); \n }", "private void createCameraSource() {\n Context ctx = getApplicationContext();\n Point displaySize = new Point();\n getWindowManager().getDefaultDisplay().getRealSize(displaySize);\n\n // dummy detector saving the last frame in order to send it to Microsoft in case of face detection\n ImageFetchingDetector imageFetchingDetector = new ImageFetchingDetector();\n\n // We need to provide at least one detector to the camera :x\n FaceDetector faceDetector = new FaceDetector.Builder(ctx).build();\n faceDetector.setProcessor(\n new LargestFaceFocusingProcessor.Builder(faceDetector, new FaceTracker(imageFetchingDetector))\n .build());\n\n BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(ctx).build();\n //barcodeDetector.setProcessor(new BarcodeDetectionProcessor());\n barcodeDetector.setProcessor(\n new FirstFocusingProcessor<Barcode>(barcodeDetector, new BarcodeTracker())\n );\n\n TextRecognizer textRecognizer = new TextRecognizer.Builder(ctx).build();\n textRecognizer.setProcessor(new OcrDetectionProcessor());\n // TODO: Check if the TextRecognizer is operational.\n\n MultiDetector multiDetector = new MultiDetector.Builder()\n .add(imageFetchingDetector)\n .add(faceDetector)\n .add(barcodeDetector)\n .add(textRecognizer)\n .build();\n\n mCameraSource = new CameraSource.Builder(ctx, multiDetector)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setAutoFocusEnabled(true)\n .setRequestedFps(5.0f)\n .setRequestedPreviewSize(displaySize.y, displaySize.x)\n .build();\n }", "public CameraSet(Controls controls, String devpath1, String devpath2) {\n this.controls = controls;\n this.cam1 = CameraServer.getInstance().startAutomaticCapture(\"Back\", devpath2);\n this.cam2 = CameraServer.getInstance().startAutomaticCapture(\"Front\", devpath1);\n\n// cam1.setResolution((int) (this.multiplier * 160), (int) (this.multiplier * 120));\n// cam2.setResolution((int) (this.multiplier * 160), (int) (this.multiplier * 120));\n\n outputStream = CameraServer.getInstance().putVideo(\"camera_set\", (int) (multiplier * 160), (int) (multiplier * 120));\n source = new Mat();\n\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "private void setupCamera(final int camera) {\n try {\n // mPreview = new CamPreview(this, camera, CamPreview.LayoutMode.NoBlank);// .FitToParent);\n } catch (Exception e) {\n Toast.makeText(this, R.string.cannot_connect_to_camera, Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n\n RelativeLayout.LayoutParams previewLayoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n Display display = getWindowManager().getDefaultDisplay();\n DisplayMetrics outMetrics = new DisplayMetrics();\n display.getMetrics(outMetrics);\n\n int width = outMetrics.widthPixels;\n int height = outMetrics.heightPixels;\n\n previewLayoutParams.height = width;\n previewLayoutParams.width = width;\n\n // Un-comment below line to specify the position.\n // mPreview.setCenterPosition(width / 2, height / 2);\n\n // previewParent.addView(mPreview, 0, previewLayoutParams);\n\n\n }", "public Camera() {\r\n this(1, 1);\r\n }", "void onCameraError();", "public void prepareCamera() {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n autoFocusHandler = new Handler();\n mCamera = getCameraInstance();\n\n /* Instance barcode scanner */\n scanner = new ImageScanner();\n scanner.setConfig(0, Config.X_DENSITY, 3);\n scanner.setConfig(0, Config.Y_DENSITY, 3);\n\n mPreview = new CameraPreview(this, mCamera, previewCb, autoFocusCB);\n\n cameraPreview.addView(mPreview);\n\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n openCamera();\n }", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n openCamera();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "public void openCamera() {\n Toast.makeText(this, \"Coming soon...\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n setContentView(R.layout.activity_preview1);\n\n mOpenCvCameraView = findViewById(R.id.tutorial1_activity_java_surface_view);\n mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE);\n mOpenCvCameraView.setCvCameraViewListener(this);\n\n mOpenCvCameraView.setUseFrontCamera(true);\n mOpenCvCameraView.setDrawSource(false);\n\n\n imageViewPreview = findViewById(R.id.imageViewPreview);\n imageViewPreview2 = findViewById(R.id.imageViewPreview2);\n\n\n }", "public void restoreCamera() {\r\n float mod=1f/10f;\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n p.frustum(-(width/2)*mod, (width/2)*mod,\r\n -(height/2)*mod, (height/2)*mod,\r\n cameraZ*mod, 10000);\r\n }", "@Override\n \t\t\tpublic void onAutoFocus(boolean success, Camera camera) {\n \t\t\t}", "protected Camera interceptCamera (LightProperties lp) {\n\t\treturn lp.camera;\n\t}", "org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera getCamera(int index);", "private void setupCamera(int width, int height) {\n CameraManager cameraManager = (CameraManager) mActivity.getSystemService(Context.CAMERA_SERVICE);\n\n if (cameraManager == null) {\n return;\n }\n\n try {\n for (String cameraId : cameraManager.getCameraIdList()) {\n // get camera characteristics\n CameraCharacteristics cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId);\n\n Integer currentCameraId = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING);\n if (currentCameraId == null) {\n // The return value of that key could be null if the field is not set.\n return;\n }\n if (currentCameraId != mRokidCameraParamCameraId.getParam()) {\n // if not desired Camera ID, skip\n continue;\n }\n int deviceOrientation = mActivity.getWindowManager().getDefaultDisplay().getRotation();\n mTotalRotation = CameraDeviceUtils.sensorToDeviceRotation(cameraCharacteristics, deviceOrientation, ORIENTATIONS);\n\n mImageReader = ImageReader.newInstance(mSizeImageReader.getSize().getWidth(), mSizeImageReader.getSize().getHeight(), mImageFormat, mMaxImages);\n mImageReader.setOnImageAvailableListener(mOnImageAvailableListener, mBackgroundHandler);\n\n // Check if auto focus is supported\n int[] afAvailableModes = cameraCharacteristics.get(\n CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES);\n if (afAvailableModes.length == 0 ||\n (afAvailableModes.length == 1\n && afAvailableModes[0] == CameraMetadata.CONTROL_AF_MODE_OFF)) {\n mAutoFocusSupported = false;\n } else {\n mAutoFocusSupported = true;\n }\n\n mCameraId = cameraId;\n return;\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "private Camera() {\n viewport = new Rectangle();\n dirtyAreas = new ArrayList<Rectangle>();\n renderedAreas = new ArrayList<Rectangle>();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }", "private void openCamera(int desiredWidth, int desiredHeight) {\n if (mCamera != null) {\n throw new RuntimeException(\"camera already initialized\");\n }\n\n android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo();\n\n // Try to find a front-facing camera (e.g. for videoconferencing).\n int numCameras = android.hardware.Camera.getNumberOfCameras();\n for (int i = 0; i < numCameras; i++) {\n android.hardware.Camera.getCameraInfo(i, info);\n if (info.facing == android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK) {\n mCamera = android.hardware.Camera.open(i);\n break;\n }\n }\n if (mCamera == null) {\n// Log.d(TAG, \"No front-facing camera found; opening default\");\n mCamera = android.hardware.Camera.open(); // opens first back-facing camera\n }\n if (mCamera == null) {\n throw new RuntimeException(\"Unable to open camera\");\n }\n\n android.hardware.Camera.Parameters parms = mCamera.getParameters();\n\n CameraUtils.choosePreviewSize(parms, desiredWidth, desiredHeight);\n\n // Give the camera a hint that we're recording video. This can have a big\n // impact on frame rate.\n parms.setRecordingHint(true);\n\n // leave the frame rate set to default\n mCamera.setParameters(parms);\n\n int[] fpsRange = new int[2];\n android.hardware.Camera.Size mCameraPreviewSize = parms.getPreviewSize();\n parms.getPreviewFpsRange(fpsRange);\n String previewFacts = mCameraPreviewSize.width + \"x\" + mCameraPreviewSize.height;\n if (fpsRange[0] == fpsRange[1]) {\n previewFacts += \" @\" + (fpsRange[0] / 1000.0) + \"fps\";\n } else {\n previewFacts += \" @[\" + (fpsRange[0] / 1000.0) +\n \" - \" + (fpsRange[1] / 1000.0) + \"] fps\";\n }\n// TextView text = (TextView) findViewById(R.id.cameraParams_text);\n// text.setText(previewFacts);\n\n mCameraPreviewWidth = mCameraPreviewSize.width;\n mCameraPreviewHeight = mCameraPreviewSize.height;\n\n\n// AspectFrameLayout layout = (AspectFrameLayout) findViewById(R.id.cameraPreview_afl);\n\n Display display = ((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();\n\n if(display.getRotation() == Surface.ROTATION_0) {\n mCamera.setDisplayOrientation(90);\n// layout.setAspectRatio((double) mCameraPreviewHeight / mCameraPreviewWidth);\n } else if(display.getRotation() == Surface.ROTATION_270) {\n// layout.setAspectRatio((double) mCameraPreviewHeight/ mCameraPreviewWidth);\n mCamera.setDisplayOrientation(180);\n } else {\n // Set the preview aspect ratio.\n// layout.setAspectRatio((double) mCameraPreviewWidth / mCameraPreviewHeight);\n }\n }", "void initCameraManager(){\n\t\tcameraManager = new CameraManager(getApplication());\n\t}", "public interface CameraListener {\n void onCameraStart();\n void onCameraStop();\n }", "public Camera(){\n // servoPan = new Servo(PAN);\n servoTilt = new Servo(TILT);\n }", "@Override\n\tpublic void initCameraGlSurfaceView() {\n\t\t\n\t}", "private void setupCamera(int width, int height) {\n CameraManager cameraManager = (CameraManager) getSystemService(CAMERA_SERVICE);\n try {\n if (cameraManager == null) return;\n for (String cameraId : cameraManager.getCameraIdList()) {\n CameraCharacteristics cc = cameraManager.getCameraCharacteristics(cameraId);\n if (cc.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_BACK) {\n continue;\n }\n mCameraId = cameraId;\n\n int deviceOrientation = getWindowManager().getDefaultDisplay().getRotation();\n mTotalRotation = CameraUtils.calculateTotalRotation(cc, deviceOrientation);\n StreamConfigurationMap map = cc.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n\n int finalWidth = width;\n int finalHeight = height;\n boolean swapDimensions = mTotalRotation == 90 || mTotalRotation == 270;\n if (swapDimensions) {\n finalHeight = width;\n finalWidth = height;\n }\n mPreviewSize = CameraUtils.chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), finalWidth, finalHeight);\n mVideoSize = CameraUtils.chooseOptimalSize(map.getOutputSizes(MediaRecorder.class), finalWidth, finalHeight);\n return;\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void startCamera() {\n super.startCamera();\n\n if(cameraListener != null)\n cameraListener.onCameraStart();\n }", "public void chooseCamera() {\n if (cameraFront) {\n int cameraId = findBackFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n } else {\n int cameraId = findFrontFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n }\n }", "protected void setupCameraAndPreview() {\n\n //\n // always release\n //\n releaseImageObjects();\n releaseVideoCapturebjects(true);\n\n // now setup...\n if (isImageButtonSelected) {\n\n //\n // Image Camera can be fetched here\n //\n if (!isBackCameraSelected) {\n mCamera = getCameraInstance(frontCamera);\n } else {\n mCamera = getCameraInstance(backCamera);\n }\n\n if (mImageCapture == null) {\n // Initiate MImageCapture\n mImageCapture = new MImageCapture(MCameraActivity.this);\n }\n\n //\n // Set Orientation\n //\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR);\n // Create our Preview view and set it as the content of our activity.\n // Add the copyright as an overlay...\n if (mImageCapture.mCameraPreview == null) {\n previewView = (LinearLayout) findViewById(R.id.camera_preview);\n mImageCapture.setCameraPreview(this, mCamera);\n previewView.addView(mImageCapture.mCameraPreview);\n }\n } else {\n //\n // Set Orientation\n //\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\n /** handle video here... */\n if (mVideoCapture == null) {\n // now start over\n mVideoCapture = new MVideoCapture(this);\n }\n // Create our Preview view and set it as the content of our activity.\n // Add the copyright as an overlay...\n if (mVideoCapture.mTextureView != null) {\n previewView = (LinearLayout) findViewById(R.id.camera_preview);\n previewView.addView(mVideoCapture.mTextureView);\n }\n }\n\n }", "@Override\n\tpublic void shiftCamera() {\n\t\t\n\t}", "private void openCamera() {\n Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // intent.setAction(Intent.ACTION_PICK);\n // intent.putExtra(MediaStore.EXTRA_OUTPUT,Image_uri);\n startActivityForResult(intent, camera_image_code);\n\n }", "@Override // kotlin.jvm.functions.Function1\n public Unit invoke(Camera.Parameters parameters) {\n Camera.Parameters parameters2 = parameters;\n Intrinsics.checkNotNullParameter(parameters2, \"$receiver\");\n parameters2.setFocusMode(\"continuous-picture\");\n parameters2.setFocusAreas(t6.n.d.listOf(new Camera.Area(this.a, 1000)));\n return Unit.INSTANCE;\n }", "private void configureCamera(int width, int height)\n {\n mCameraId = CAMERA_FACE_BACK;\n ///Configure camera output surfaces\n setupCameraOutputs(mWidth, mHeight);\n }", "protected void createCameraPreview() {\n try {\n SurfaceTexture texture = textureView.getSurfaceTexture();\n assert texture != null;\n texture.setDefaultBufferSize(imageDimension.getWidth(), imageDimension.getHeight());\n Surface surface = new Surface(texture);\n captureRequestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n captureRequestBuilder.addTarget(surface);\n cameraDevice.createCaptureSession(Collections.singletonList(surface), new CameraCaptureSession.StateCallback(){\n @Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == cameraDevice) {\n return;\n }\n cameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }\n @Override\n public void onConfigureFailed(@NonNull CameraCaptureSession cameraCaptureSession) {\n Toast.makeText(MainActivity.this, \"Configuration change\", Toast.LENGTH_SHORT).show();\n }\n }, null);\n } catch (CameraAccessException e) {\n Toast.makeText(MainActivity.this, \"Camera Surface failed to load.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "public void obtainCameraOrFinish() {\n mCamera = getCameraInstance();\n if (mCamera == null) {\n Toast.makeText(VideoCapture.getSelf(), \"Fail to get Camera\", Toast.LENGTH_LONG).show();\n VideoCapture.getSelf().finish();\n }\n }", "@Override\n public void onOpened(@NonNull CameraDevice cam) {\n if (MyDebug.LOG)\n Log.d(TAG, \"camera opened, first_callback? \" + first_callback);\n /*if( true ) // uncomment to test timeout code\n return;*/\n if (first_callback) {\n first_callback = false;\n\n try {\n // we should be able to get characteristics at any time, but Google Camera only does so when camera opened - so do so similarly to be safe\n if (MyDebug.LOG)\n Log.d(TAG, \"try to get camera characteristics\");\n characteristics = manager.getCameraCharacteristics(cameraIdS);\n if (MyDebug.LOG)\n Log.d(TAG, \"successfully obtained camera characteristics\");\n // now read cached values\n characteristics_sensor_orientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);\n characteristics_is_front_facing = characteristics.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_FRONT;\n if (MyDebug.LOG) {\n Log.d(TAG, \"characteristics_sensor_orientation: \" + characteristics_sensor_orientation);\n Log.d(TAG, \"characteristics_is_front_facing: \" + characteristics_is_front_facing);\n }\n\n CameraController2.this.camera = cam;\n\n // note, this won't start the preview yet, but we create the previewBuilder in order to start setting camera parameters\n createPreviewRequest();\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to get camera characteristics\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n // don't throw CameraControllerException here - instead error is handled by setting callback_done to callback_done, and the fact that camera will still be null\n }\n\n if (MyDebug.LOG)\n Log.d(TAG, \"about to synchronize to say callback done\");\n synchronized (open_camera_lock) {\n callback_done = true;\n if (MyDebug.LOG)\n Log.d(TAG, \"callback done, about to notify\");\n open_camera_lock.notifyAll();\n if (MyDebug.LOG)\n Log.d(TAG, \"callback done, notification done\");\n }\n }\n }", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tinitialCamera();\r\n\t}", "protected void startCamera() {\n profileImageCaptured = new File(\n Environment.getExternalStorageDirectory() + \"/\" + \"temp.png\");\n if (profileImageCaptured.exists())\n profileImageCaptured.delete();\n\n outputFileUri = Uri.fromFile(profileImageCaptured);\n Intent intent = new Intent(\n android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n intent.putExtra(\"return-data\", true);\n startActivityForResult(intent, CAMERA_REQUEST);\n\n }", "private void configureCamera() {\n float fHeight = cam.getFrustumTop() - cam.getFrustumBottom();\n float fWidth = cam.getFrustumRight() - cam.getFrustumLeft();\n float fAspect = fWidth / fHeight;\n float yDegrees = 45f;\n float near = 0.02f;\n float far = 20f;\n cam.setFrustumPerspective(yDegrees, fAspect, near, far);\n\n flyCam.setMoveSpeed(5f);\n\n cam.setLocation(new Vector3f(2f, 4.7f, 0.4f));\n cam.setRotation(new Quaternion(0.348f, -0.64f, 0.4f, 0.556f));\n }", "@Override\n public void onClick(View v) {\n int camerasNumber = Camera.getNumberOfCameras();\n if (camerasNumber > 1) {\n //release the old camera instance\n //switch camera, from the front and the back and vice versa\n\n releaseCamera();\n chooseCamera();\n } else {\n\n }\n }", "public void doVideoCapture() {\n /*\n r6 = this;\n r0 = r6.mPaused;\n if (r0 != 0) goto L_0x0043;\n L_0x0004:\n r0 = r6.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0043;\n L_0x0009:\n r0 = r6.mMediaRecorderRecording;\n if (r0 == 0) goto L_0x0042;\n L_0x000d:\n r0 = r6.mNeedGLRender;\n if (r0 == 0) goto L_0x0029;\n L_0x0011:\n r0 = r6.isSupportEffects();\n if (r0 == 0) goto L_0x0029;\n L_0x0017:\n r0 = r6.mCameraDevice;\n r1 = 0;\n r0.enableShutterSound(r1);\n r0 = r6.mAppController;\n r0 = r0.getCameraAppUI();\n r1 = r6.mPictureTaken;\n r0.takePicture(r1);\n goto L_0x0041;\n L_0x0029:\n r0 = r6.mSnapshotInProgress;\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = java.lang.System.currentTimeMillis();\n r2 = r6.mLastTakePictureTime;\n r2 = r0 - r2;\n r4 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 >= 0) goto L_0x003c;\n L_0x003b:\n return;\n L_0x003c:\n r6.mLastTakePictureTime = r0;\n r6.takeASnapshot();\n L_0x0041:\n return;\n L_0x0042:\n return;\n L_0x0043:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.doVideoCapture():void\");\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n mCameraDevice = camera;\n startPreview();\n }", "@Override\n public void onCameraMoveStarted(int reason) {}", "public void startGearCam() {\n }", "public void takePictureFromCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST_CODE);\n\n }", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n openCamera();\n }", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n openCamera();\n }", "public void openCamera() {\n\n Uri photoURI = FileProvider.getUriForFile(this, BuildConfig.APPLICATION_ID + \".provider\", getTempImage());\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n photoURI = Uri.fromFile(getTempImage());\n }\n\n Intent cIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(cIntent, CAPTURE_PHOTO);\n }", "public void setCamera(Camera camera) {\n mCamera = camera;\n }", "public void setCamera(Camera camera) {\r\n\t\tthis.camera = camera;\r\n\t}" ]
[ "0.8292385", "0.76617134", "0.7639758", "0.7327926", "0.7293729", "0.71089697", "0.70516807", "0.7039667", "0.69910085", "0.6908397", "0.6892335", "0.68641406", "0.68407077", "0.6836613", "0.68103194", "0.6790013", "0.6774853", "0.67658645", "0.67541784", "0.6744614", "0.6741553", "0.6711987", "0.66976815", "0.66943926", "0.6671307", "0.6667329", "0.6653276", "0.66270524", "0.6612141", "0.6602487", "0.6599061", "0.65933853", "0.6589302", "0.6587818", "0.6580857", "0.65736735", "0.65704185", "0.6556836", "0.65321654", "0.6517847", "0.6517544", "0.6508185", "0.6508178", "0.6502071", "0.6501633", "0.6496887", "0.6486449", "0.6483957", "0.6476216", "0.6461553", "0.64592576", "0.64592576", "0.64486945", "0.64312714", "0.64059234", "0.64010715", "0.6373658", "0.6373658", "0.63685006", "0.63685006", "0.635231", "0.635231", "0.6344403", "0.6342312", "0.63362676", "0.63306755", "0.6327747", "0.6321345", "0.63118505", "0.63079274", "0.63074213", "0.6303303", "0.6291288", "0.62783915", "0.62689483", "0.6268412", "0.62675285", "0.6262875", "0.6260524", "0.6257365", "0.62572026", "0.625196", "0.6243463", "0.62420714", "0.62410766", "0.6236596", "0.6232983", "0.6229215", "0.6227453", "0.622597", "0.62234426", "0.62194616", "0.62137896", "0.62118775", "0.62089556", "0.6206075", "0.6206075", "0.62053764", "0.6197733", "0.61952466" ]
0.7223694
5
Get the previous readings recorded by this sensor.
public List<Double> getPreviousReadings() { return unmodifiableReadings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }", "public int[] getCurrentReading() {\n\t\tint[] ret = obsMatrix.getSensorReading();\n\t\tif (ret[0] == -1 || ret[1] == -1) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint[] reading = { ret[1], ret[0] };\n\t\treturn reading;\n\t}", "public float[] getCountHistory() {\n return countMonitor.getHistory();\n }", "public SensorBean getLatestReading() {\n return latestReading;\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public int prevRoll() {\n return prevRoll;\n }", "public Integer getPreviousValue() {\n return this.previousValue;\n }", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "public Dice previousDice() {\n if(diceIterator.hasPrevious())\n return diceIterator.previous();\n else\n return null;\n }", "@Nonnull\n @CheckReturnValue\n public SplitString previous() {\n if (offset == 0) {\n throw new IllegalStateException(\"Already at the beginning\");\n }\n return array[--offset];\n }", "public List<Location> getPreviousLocations();", "@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }", "public float[] getByteHistory() {\n return byteMonitor.getHistory();\n }", "public double getPrevCount()\n {\n\n return this.prevCount;\n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "public State getPreviousState()\r\n\t{\r\n\t\treturn previousState;\r\n\t}", "public ArrayList<Reading> getReadingList() {\n return readingList;\n }", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "public AStarNode getPrevious() {\n return previous;\n }", "public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }", "public IndexRecord getIteratorPrev() {\n iter = (iter == 0 ? -1 : iter - 1);\n return (iter == -1 ? null : data[iter]);\n }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public List<AnnotationVertex> getAnnotations() {\n return previousLineAnnotations.get();\n }", "public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }", "public PieceOrientation previous() {\n PieceOrientation[] PieceOrientations = this.values();\n int current = value;\n int previousIndex = (current + PieceOrientations.length - 1) % PieceOrientations.length;\n return PieceOrientations[previousIndex];\n }", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "private Token previous() {\n return tokens.get(current-1);\n }", "public DockableState getPreviousState() {\n\t\treturn previousState;\n\t}", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public List<Sensor> findLatestByNotLookingTraining() {\n\n Pulse pulse = pulseRepository.findFirstByOrderByCreatedDesc();\n pulse = pulseDataCorrection.fix(pulse);\n\n Acceleration acceleration = accelerationRepository.findFirstByOrderByCreatedDesc();\n\n List<Sensor> sensorList = new ArrayList<Sensor>();\n sensorList.add(acceleration);\n sensorList.add(pulse);\n\n return sensorList;\n }", "public int getOldTrack() {\n return oldTrack;\n }", "public static ArrayList<String> getPreviousBillRounds() {\n\n\t\tAppLog.begin();\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<String> previousBillRoundList = new ArrayList<String>();\n\t\ttry {\n\t\t\tString query = QueryContants.getPreviousBillRoundQuery();\n\t\t\tAppLog.info(\"getPreviousBillRoundsQuery::\" + query);\n\t\t\tconn = DBConnector.getConnection();\n\t\t\tps = conn.prepareStatement(query);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tString previousBillRound = rs.getString(\"PREV_BILL_ROUND\");\n\t\t\t\tpreviousBillRoundList.add(previousBillRound);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (IOException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (null != ps) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\tif (null != rs) {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif (null != conn) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLog.error(e);\n\t\t\t}\n\t\t}\n\t\tAppLog.end();\n\t\treturn (ArrayList<String>) previousBillRoundList;\n\t}", "public ArrayList<Recording> getAll() {\r\n synchronized (lastUpdate) {\r\n if (System.currentTimeMillis() - lastUpdate > 60000) {\r\n update();\r\n }\r\n }\r\n return recordings;\r\n }", "public LinkedHashSet<String> getPrevNames(){\r\n\t\treturn prevNames;\r\n\t}", "public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }", "public long getSystemTotalPrevious() {\n\t\t\treturn mSystemPrevious + mIntrPrevious + mSoftIrqPrevious;\n\t\t}", "public ArrayList<int[]> getRoundHistory()\n {\n return this.roundHistory;\n }", "public Node getPrevious() {\n return previous;\n }", "public Position2D getPreviousPosition()\n {\n return previousPosition;\n }", "public IEvent getPreviousEvent();", "public DoublyLinkedNode<E> getPrevious() {\n return prevNode;\n }", "String getPrevious();", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "@NotNull\n @JsonProperty(\"previousValue\")\n public String getPreviousValue();", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "public java.lang.String getBIndPrevAfcars()\r\n {\r\n return this._bIndPrevAfcars;\r\n }", "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}", "public E previous(){\n\t\t\tE e = tail.element;\n\t\t\tcurrent = current.next;\n\t\t\treturn e;\n\t\t}", "public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}", "public void previous();", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public ArrayList<Integer> getPointsHistory() {\n return pointsHistory;\n }", "String getPrevMoves() {\n return this.prevMoves;\n }", "public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }", "public ResourcesHistory resourcesHistory() {\n return this.resourcesHistory;\n }", "List<Sensor> getTempSensors() {\n return Collections.unmodifiableList(this.tempSensors);\n }", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public SwerveMode previousMode() {\n return values()[(this.ordinal() + values().length - 1) % values().length];\n }", "public int getCurrRuptures();", "public double getReading() {\n return this.getDataRef().get();\n }", "public ArrayList<String> getCumulativeRewards() {\r\n\t\treturn cumulativeRewards;\r\n\t}", "public int[] getTempSensorData()\n {\n return tempSensorData;\n }", "public ArrayList<RandomEvent> getKeptRandomEventCards()\n\t{\n\t\treturn keptRandomEventCards;\n\t}", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "private int getPreviousStreamVolume() {\n \tif (this.debugMode){\n \t\treturn QUIET_SOUND_LEVEL;\n \t} else {\n \t\treturn previousStreamVolume;\n \t}\n }", "public int getPreviousScene(){\n\t\treturn _previousScene;\n\t}", "public String getPreviousToken() {\n return previousToken;\n }", "public double getReadingOnce() {\n return this.getDataRef().getOnce();\n }", "public Color getPrevColor(){\n\t\treturn prevColor;\n\t}", "private HashMap< Price, ArrayList<Tradable>> getOldEntries() {\n\t\treturn oldEntries;\n\t}", "public static Previous getPreviousWindow() {\n\t\treturn previousWindow;\n\t}", "public List<BackupInfo> getBackupHistory() throws IOException {\n return systemTable.getBackupHistory();\n }", "public Frame prevFrame(final Frame frame) {\n\t\tif (isInitialFrame(frame))throw new IllegalStateException(\"Invalid Entry\");// input sanitization -- out of bounds when at first frame\n\t\telse return frames.get(frames.indexOf(frame) - 1);\n\t}", "@Override\n public int previousIndex()\n {\n return idx-1;\n }", "public Token getPreviousToken() {\n return previousToken;\n }", "public int getRemainingState() {\r\n\t\tfor (Entry<Integer, State> states : states.entrySet()) {\r\n\t\t\tif(states.getValue().getCurrentState() == global_state.State.states.REC)\r\n\t\t\t\tremainingStates++;\r\n\t\t}\r\n\t\t\r\n\t\treturn remainingStates;\r\n\t}", "@Field(0) \n\tpublic Pointer<uvc_processing_unit > prev() {\n\t\treturn this.io.getPointerField(this, 0);\n\t}", "public int getLatestPressure() {\n int pressure = 0;\n if (readings.size() > 0) {\n pressure = readings.get(readings.size() - 1).pressure;\n }\n return pressure;\n }", "public Node<T> previous() {\r\n return previous;\r\n }", "public SensorData getLastSensorData() {\n if (mSensorData.size() > 0) {\n for (SensorData sensorData : mSensorData) {\n if (sensorData.isDatasetComplete()) {\n return sensorData;\n }\n }\n }\n return null;\n }", "public CellCoord previousRow() {\n return new CellCoord(column, row - 1);\n }", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}", "public int previousBitrate(int bitrate) {\n return bitrateArray[Math.max(0, getIndexbyBitrate(bitrate) - 1)];\n }", "public List<Pair> getStatesSeenSoFar() {\n\t\treturn list;\n\t}", "public String getRecentColors() {\n return (String) data[GENERAL_RECENT_COLORS][PROP_VAL_VALUE];\n }", "public String getHistory () {\n\t\treturn history;\n\t}", "public List<WatchRecord> getWatchList() throws Exception {\r\n List<WatchRecord> watchList = new Vector<WatchRecord>();\r\n List<WatchRecordXML> chilluns = this.getChildren(\"watch\", WatchRecordXML.class);\r\n for (WatchRecordXML wr : chilluns) {\r\n watchList.add(new WatchRecord(wr.getPageKey(), wr.getLastSeen()));\r\n }\r\n return watchList;\r\n }", "public ProgressEvent [] getReceivedEvents() {\n ProgressEvent [] answer = new ProgressEvent[this.receivedEvents.size()];\n return (ProgressEvent []) this.receivedEvents.toArray(answer);\n }", "public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}" ]
[ "0.63234", "0.6141553", "0.5994989", "0.5934755", "0.59150374", "0.58921194", "0.5830622", "0.57747227", "0.5732534", "0.5726061", "0.5713068", "0.56726265", "0.565757", "0.56544435", "0.56279767", "0.55994016", "0.5592232", "0.5586237", "0.55771166", "0.55580807", "0.55450207", "0.5526897", "0.55155617", "0.5505111", "0.54726887", "0.5421565", "0.541583", "0.5405416", "0.53801733", "0.53665924", "0.5352507", "0.5344447", "0.5339425", "0.5333174", "0.5330312", "0.5325374", "0.53199655", "0.5303354", "0.5293942", "0.52918637", "0.5261434", "0.5254693", "0.52153414", "0.52114373", "0.5206816", "0.519325", "0.517976", "0.51723534", "0.51673937", "0.515807", "0.5157917", "0.51420176", "0.51345", "0.51271784", "0.51241535", "0.5121495", "0.51210123", "0.5111997", "0.5108007", "0.50985676", "0.5097616", "0.5096745", "0.5091969", "0.50905144", "0.5089889", "0.50895613", "0.5086185", "0.506891", "0.50657386", "0.5064318", "0.50614214", "0.5055213", "0.50533396", "0.50437844", "0.5041971", "0.50341135", "0.50187624", "0.5018467", "0.50140923", "0.5006682", "0.5005832", "0.49987826", "0.49951726", "0.49947888", "0.4994722", "0.49841234", "0.49726343", "0.49690822", "0.49688137", "0.49626404", "0.49626404", "0.49622694", "0.4960984", "0.49587134", "0.49561694", "0.4954834", "0.494197", "0.4938911", "0.4936593", "0.49360925" ]
0.78717226
0
Decide whether to filter out a given PhysicalObject instance due to some state changing in the object being observed.
protected boolean filterOutObject(PhysicalObject object) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isDiscarded(Object obj) {\n if (obj instanceof Item) {\n return isDiscardedStatus(((Item) obj).getStatus());\n } else if (obj instanceof Container) {\n return isDiscardedStatus(((Container) obj).getStatus());\n } else if (obj instanceof Space) {\n return isDiscardedStatus(((Space) obj).getStatus());\n } else if (obj instanceof MetadataProfile) {\n return isDiscardedStatus(((MetadataProfile) obj).getStatus());\n } else if (obj instanceof Person) {\n return false;\n } else if (obj instanceof Organization) {\n return false;\n }\n return false;\n }", "public boolean filtersChanged(){\n if(startDateChanged || endDateChanged || stationIdChanged || languageChanged){\n return true;\n }\n return false;\n }", "boolean doFilter() { return false; }", "public boolean shouldFilter() {\n return true;\n }", "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "public boolean isObserved()\n {\n return isObserved;\n }", "@VTID(37)\n boolean getFilterCleared();", "@Override\n public boolean shouldFilter() {\n return true;\n }", "public boolean isFiltered() {\n return filtered;\n }", "public abstract boolean isFilterApplicable ();", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "boolean hasFiltered() {\n return filtered;\n }", "public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }", "protected boolean isMovementNoisy() {\n/* 1861 */ return (!this.abilities.flying && (!this.onGround || !isDiscrete()));\n/* */ }", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "public abstract boolean isItemFiltered(pt.keep.oaiextended.AgentItem item);", "Boolean getIsChanged();", "public boolean isSleepingIgnored ( ) {\n\t\treturn extract ( handle -> handle.isSleepingIgnored ( ) );\n\t}", "protected boolean isDiscarded()\n {\n return m_cUnits == -1;\n }", "boolean isPreFiltered();", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "boolean isSetObjectives();", "boolean containsObjectFlowState(ObjectFlowState objectFlowState);", "public boolean isCoveredBy(Filter f);", "@Override\r\n protected boolean excludesAnd(AbstractResourceFilter<T> filter) {\n return this.equals(filter);\r\n }", "public boolean getMayFilter () {\n\treturn mayFilter;\n }", "boolean accept(T filteredObject);", "public boolean opposedTo(Object o);", "public boolean damagable() {\n return !this.state.equals(\"knockedBack\")\n && !this.state.equals(\"dodge\");\n }", "boolean isManipulated();", "public boolean isDontCare(){\n return hasDontCare;\n }", "public interface IFilterObserver {\n\n\t/**\n\t * Indicates that something about the passed filter has changed. This could\n\t * include a change to the set of findings entering the filter, a change to\n\t * the set of values in the filter, and/or a change to the porousness of the\n\t * filter.\n\t * \n\t * @param filter\n\t * a filter.\n\t */\n\tvoid filterChanged(Filter filter);\n\n\t/**\n\t * Indicates that the passed filter is in the process of being disposed by\n\t * its owing selection.\n\t * \n\t * @param filter\n\t * a filter.\n\t */\n\tvoid filterDisposed(Filter filter);\n}", "public StateVariable getRelevantObjects () {\n return relevantObjects;\n }", "public static boolean isControlled(Object object)\n {\n if (!(object instanceof EObject)) return false;\n EObject eObject = (EObject)object;\n EObject container = eObject.eContainer();\n Resource resource = eObject.eResource();\n return resource != null && container != null && resource != container.eResource();\n }", "public boolean takeControl() {\n\t\tif (!sharedState.isFindingObject()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// returns true if the shared state return in 1\r\n\t\treturn sharedState.getCurrentBehaviour()==1; \r\n\t}", "@Override\n public boolean isDirty(Object value) {\n return !(value instanceof ModifyAwareOwner) || ((ModifyAwareOwner) value).isMarkedDirty();\n }", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public boolean unSetDangerous() {\r\n\t\tif(isDangerous && isCovered) {\r\n\t\t\tisDangerous=false;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isStoppingConditionReached() {\n\n\t\tlong currentComputingTime = System.currentTimeMillis() - iterationStartingTime;\n\n\t\tif (Configurator.eINSTANCE.isSearchBudgetByTime()) // byTime\n\t\t\treturn super.isStoppingConditionReached() || currentComputingTime > durationThreshold;\n\t\tif (Configurator.eINSTANCE.isSearchBudgetByPrematureConvergence()) // byPrematureConvergence\n\t\t\treturn super.isStoppingConditionReached() || isStagnantState();\n\t\t// computeStagnantState\n\t\tif (Configurator.eINSTANCE.isSearchBudgetByPrematureConvergenceAndTime()) // byBoth\n\t\t\treturn super.isStoppingConditionReached() || isStagnantState() || currentComputingTime > durationThreshold;\n\t\treturn super.isStoppingConditionReached(); // classic\n\n\t}", "private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}", "public interface ObjectFilter<In, Out> {\n\n\t/**\n\t * Return an object of <code>Out</code> type initialized with the specified <code>In</code> object. \n\t * This object is displayed or is given to the next ObjectFilter of the chain. \n\t * @param value the specified object\n\t * @return an object of <code>Out</code> type or <code>null</code> (in this case, the filter chains ends) \n\t */\n public abstract Out apply(In value);\n \n}", "@Override\n public boolean isSheared() {\n return this.entityData.get(SHEARED);\n }", "public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }", "protected boolean isObjectHeld() { return objHeld; }", "void filterDisposed(Filter filter);", "public boolean uncover() {\r\n\t\tif(isCovered && !isDangerous) {\r\n\t\t\tisCovered=false;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public abstract void filter();", "public abstract boolean shouldObserve(String key);", "boolean removeEffect(Effect effect) {\n/* 2699 */ boolean removed = false;\n/* 2700 */ if (this.effects != null && this.effects.contains(effect)) {\n/* */ \n/* 2702 */ this.effects.remove(effect);\n/* 2703 */ if (this.watchers != null)\n/* */ {\n/* 2705 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();)\n/* 2706 */ ((VirtualZone)it.next()).removeEffect(effect); \n/* */ }\n/* 2708 */ if (this.effects.size() == 0)\n/* 2709 */ this.effects = null; \n/* 2710 */ removed = true;\n/* */ } \n/* */ \n/* 2713 */ return removed;\n/* */ }", "public void testNotApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), false);\n\t\tthis.replayMockObjects();\n\t\tassertFalse(\"Should not be able to apply if one change can not be applied\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}", "public boolean evaluate(P object)\n\t{\n\t\treturn !m_predicate.evaluate(object);\n\t}", "public boolean isCovering(Filter f);", "void filterChanged(Filter filter);", "Boolean filterEnabled();", "public abstract Object getObservedObject();", "@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isWatchableObject(final Object obj) {\n \t\treturn getWatchableObjectClass().isAssignableFrom(obj.getClass());\n \t}", "public boolean isDiscarded() {\r\n return discarded;\r\n }", "public boolean isJustMovedIntoIndustrialKillingWater() {\n return justMovedIntoIndustrialKillingWater;\n }", "public void isChanged()\n\t{\n\t\tchange = true;\n\t}", "public boolean getIsWilted() {return ((Growable)delegate).isWilted;}", "boolean isDrooping();", "public Boolean filter(Entry e) {\n\t\t//TODO you will need to implement this method\n\t\treturn false;\n\t}", "protected boolean processStoppedObserving(int gameNumber){return false;}", "boolean isTransient();", "public abstract boolean getEffectiveBooleanValue();", "public boolean setDangerous() {\r\n\t\tif(!isDangerous && isCovered) {\r\n\t\t\tisDangerous=true;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "PropertiedObjectFilter<O> getFilter();", "public abstract Boolean isImportant();", "@Override\n\tpublic boolean filter(MessageFactory factory) {\n\t\treturn false;\n\t}", "abstract public boolean isMainBusinessObjectApplicable(Object mainBusinessObject);", "@Override\r\n public boolean isKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && (shape != Shape.NOISE);\r\n }", "@Override//判断过滤器是否生效。\r\n\tpublic boolean shouldFilter() {\n\t\treturn false;\r\n\t}", "public abstract boolean canHandle(ObjectInformation objectInformation);", "public boolean hasChanged();", "public boolean hasChanged();", "protected abstract boolean isChannelRelevant( Flow f );", "public boolean isSwimming() {\n/* 1967 */ return (!this.abilities.flying && !isSpectator() && super.isSwimming());\n/* */ }", "public abstract void updateFilter();", "void setFilter(final PropertiedObjectFilter<O> filter);", "protected void processWakeUpObject(VObject inObject) {\n\t\tboolean doXmppStatus = true;\n\t\tfinal boolean isXmppObject = inObject.isXMPP();\n\n\t\t//Special case for xmpp object, we will check the resources\n\t\tString theRessource = null;\n\t\tif (isXmppObject) {\n\t\t\tfinal List<String> resources = inObject.getResources(); //IQResourcesQuery.getClientResources(inObject.getXmppAddress());\n\t\t\tif (resources.isEmpty()) {\n\t\t\t\tinObject.setState(VObject.STATUS_ACTIF);\n\t\t\t} else if (resources.contains(\"idle\") || resources.contains(\"streaming\") || resources.contains(\"itmode\") || resources.contains(\"busy\")) {\n\t\t\t\ttheRessource = resources.get(0);\n\t\t\t\tdoXmppStatus = false;\n\t\t\t}\n\t\t}\n\n\t\tfinal int inState = inObject.getObject_state();\n\t\tCrawlerCheckStatus.LOGGER.info(\"Processing wakeup for \" + inObject.getObject_serial() + \" / \" + inState + \" / \" + theRessource);\n\n\t\t//all STATUS_WILLBE_* are used only for xmpp objects\n\t\tswitch (inState) {\n\t\tcase VObject.STATUS_ACTIF: // special case because cache notification is slow/missing so i override this value in db. \n\t\t\tinObject.overrideState(VObject.STATUS_ACTIF);\n\t\t\tsendXmppStatus(inObject, Message.MODE.ACTIF.getId(), JabberMessageFactory.IQ_STATUS_ASLEEP_MODE);\n\t\t\tbreak;\n\t\tcase VObject.STATUS_VEILLE:\n\t\tcase VObject.STATUS_FORCE_ACTIF:\n\t\tcase VObject.STATUS_WILLBE_VEILLE:\n\t\tcase VObject.STATUS_WILLBE_ACTIF:\n\t\tcase VObject.STATUS_WILLBE_FORCE_ACTIF:\n\t\t\tif (inObject.isXMPP() && doXmppStatus) {\n\t\t\t\tsendXmppStatus(inObject, Message.MODE.ACTIF.getId(), JabberMessageFactory.IQ_STATUS_ASLEEP_MODE);\n\t\t\t} else {\n\t\t\t\tinObject.setState(VObject.STATUS_ACTIF);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase VObject.STATUS_WILLBE_FORCE_VEILLE: //normally, object ping do not enter in this condition\n\t\t\tif (inObject.isXMPP() && !doXmppStatus) {\n\t\t\t\tsendXmppStatus(inObject, Message.MODE.FORCE_VEILLE.getId(), JabberMessageFactory.IQ_STATUS_IDLE_MODE);\n\t\t\t} else {\n\t\t\t\tinObject.setState(VObject.STATUS_FORCE_VEILLE);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "protected boolean filterEvent(Snapshot snapshot) {\n\t\tboolean pass = true;\n\t\tif (filters.size() == 0)\n\t\t\treturn pass;\n\n\t\tfor (SinkEventFilter filter : filters) {\n\t\t\tpass = (pass && filter.filter(this, snapshot));\n\t\t\tif (!pass) {\n\t\t\t\tfilteredCount.incrementAndGet();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn pass;\n\t}", "public boolean isDontCare() {\r\n\t\treturn dontCare;\r\n\t}", "public boolean isMaybeModified() {\n if (Options.get().isModifiedDisabled())\n return !isUnknown(); // if we don't use the modified flag, use the fact that unknown implies non-modified\n return (flags & MODIFIED) != 0;\n }", "public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }", "public boolean doesNotMatch(NakedObject nakedObject);", "public boolean isTypeSpecificChange()\r\n {\r\n return myDTIKey != null;\r\n }", "public boolean equals(Object paramObject)\r\n/* 149: */ {\r\n/* 150:151 */ if (!(paramObject instanceof PotionEffect)) {\r\n/* 151:152 */ return false;\r\n/* 152: */ }\r\n/* 153:154 */ PotionEffect localwq = (PotionEffect)paramObject;\r\n/* 154:155 */ return (this.id == localwq.id) && (this.amplifier == localwq.amplifier) && (this.duration == localwq.duration) && (this.splash == localwq.splash) && (this.ambient == localwq.ambient);\r\n/* 155: */ }", "public void toggleConsumptionHasChanged() {\n\t\tthis.consumptionHasChanged = (this.consumptionHasChanged) ? false : true;\n\t}", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "@Test\n public void testAssertObjectChangedPropertyWithIgnoredType() {\n // setup\n final TierTwoTypeWithIgnoreProperty tierTwoTypeWithIgnoreProperty = new TierTwoTypeWithIgnoreProperty(\n new IgnoredType());\n final ChangedProperty<IgnoredType> jokerProperty = Property.change(TierTwoTypeWithIgnoreProperty.IGNORED_TYPE,\n new IgnoredType());\n\n // method\n assertObject(EMPTY_STRING, tierTwoTypeWithIgnoreProperty, jokerProperty);\n }", "private boolean boulderObstructed(List<Entity> entities) {\r\n for (Entity e : entities) {\r\n if (e instanceof Exit) return true;\r\n if (e instanceof Door) return true;\r\n if (e instanceof Wall) return true;\r\n }\r\n return false;\r\n }", "protected boolean filterEvent(TrackingActivity activity) {\n\t\tboolean pass = true;\n\t\tif (filters.size() == 0)\n\t\t\treturn pass;\n\n\t\tfor (SinkEventFilter filter : filters) {\n\t\t\tpass = (pass && filter.filter(this, activity));\n\t\t\tif (!pass) {\n\t\t\t\tfilteredCount.incrementAndGet();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn pass;\n\t}", "public boolean sameType(FilterCondition fc) {\n return fc.getClass() == getClass();\n }", "public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }", "public boolean getStatus() {\n return (rnd.nextInt(obstructionChanceBound) <= obstructionChance);\n }", "public abstract boolean isConsumed();", "public boolean isNotASummarizedObject() {\n checkNotPolymorphicOrUnknown();\n if (object_labels == null) {\n return true;\n }\n for (ObjectLabel object_label : object_labels) {\n if (!object_label.isSingleton()) {\n return false;\n }\n }\n return true;\n }" ]
[ "0.59941626", "0.57600504", "0.56739885", "0.54530805", "0.54380214", "0.53236985", "0.53211963", "0.53189546", "0.53110486", "0.52784854", "0.5254679", "0.5224874", "0.5206144", "0.5202914", "0.51894885", "0.51788414", "0.5153048", "0.51525253", "0.51486266", "0.5126352", "0.5117785", "0.51087075", "0.5076334", "0.50757504", "0.5065673", "0.5055833", "0.50509244", "0.5046357", "0.5045753", "0.50454605", "0.50262743", "0.5006077", "0.4993307", "0.499201", "0.49897015", "0.49829188", "0.49786663", "0.49786347", "0.4965541", "0.49428904", "0.49402767", "0.49376178", "0.49271747", "0.49063945", "0.49005944", "0.4885385", "0.48703787", "0.4860479", "0.48512363", "0.48439902", "0.48328146", "0.48294348", "0.48261943", "0.48193017", "0.4797644", "0.4797561", "0.47932833", "0.47903308", "0.477671", "0.47752744", "0.47694135", "0.47667515", "0.47645578", "0.47638988", "0.47631946", "0.47563383", "0.47489512", "0.47487724", "0.47422636", "0.47404373", "0.47386655", "0.47352776", "0.47301507", "0.47273675", "0.4726685", "0.47206736", "0.47181064", "0.47181064", "0.4712491", "0.47067553", "0.47049898", "0.47019923", "0.47018728", "0.47009236", "0.47000355", "0.4699166", "0.469524", "0.46925548", "0.46898004", "0.46894413", "0.4686811", "0.46868032", "0.46807966", "0.46797287", "0.46795005", "0.46781054", "0.46773708", "0.4677312", "0.467313", "0.46701023" ]
0.7067099
0
Converts a list of objects that have been determined to fall within the sensor's range into a list of readings in the range [0.0, 1.0].
protected abstract void provideObjectReading(List<SensedObject> objects, List<Double> output);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double readingsInRange (ArrayList<Background> list, int min, int max) {\r\n\t\tint currentMin, currentMax;\r\n\t\tdouble totEvents=0;\r\n\t\tfor (Background bc : list) {\r\n\t\t\tcurrentMin = bc.getMin();\r\n\t\t\tcurrentMax = bc.getMax();\r\n\r\n\t\t\tif (currentMin >= min && currentMax <= max) {\r\n\t\t\t\ttotEvents += bc.getEvents();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn totEvents;\r\n\t}", "@Override\r\n\tpublic float[] getRanges() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample;\r\n\t}", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public double[] getRange();", "private DescriptiveStatistics calculateStatsForRange(List<JsonObject> datapoints, String targetName, Range range) {\n\n return datapoints.stream()\n .filter(js -> targetName.equals(js.getJsonObject(\"t\").getString(\"name\"))\n && range.contains(js.getJsonObject(\"n\").getLong(\"begin\")))\n .map(js -> js.getJsonObject(\"n\").getLong(\"value\"))\n .map(Long::doubleValue)\n .collect(descStatsCollector());\n }", "public HashMap<String, float[]> getAllInRange(float range, float [] obj_pos){\n HashMap<String, float[]> objs = new HashMap<>();\n float [] pos = new float [3];\n String name;\n float distance;\n for (int i = 0; i < field.length; i++){\n //euclidean distance and only add those in range\n //NOTE: could replace with (x<range && y<range && z<range)\n distance = (float)Math.sqrt(((obj_pos[0]-field[i].x)*(obj_pos[0]-field[i].x)) + ((obj_pos[1]-field[i].y)\n *(obj_pos[1]-field[i].y)) + ((obj_pos[2]-field[i].z)*(obj_pos[2]-field[i].z)));\n if (distance <= range) {\n name = \"Asteroid\" + i;\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n objs.put(name, pos);\n }\n }\n return objs;\n }", "public double[] getRange() \n{\n\treturn range;\n}", "@Override\n protected void updateAxisRange(){\n Axis<X> xAxis = getXAxis();\n Axis<Y> yAxis = getYAxis();\n ArrayList<X> xList = null;\n ArrayList<Y> yList = null;\n if(xAxis.isAutoRanging()) { xList = new ArrayList<>(); }\n if(yAxis.isAutoRanging()) { yList = new ArrayList<>(); }\n\n if(xAxis != null || yAxis != null) {\n for (Series<X, Y> series : getData()) {\n for (Data<X, Y> data : series.getData()) {\n if(xList != null) {\n xList.add(data.getXValue());\n xList.add(xAxis.toRealValue(xAxis.toNumericValue(data.getXValue())\n + getLength(data.getExtraValue())));\n }\n if(yList != null) {\n yList.add(data.getYValue());\n }\n }\n }\n if(xList != null) { xAxis.invalidateRange(xList); }\n if(yList != null) { yAxis.invalidateRange(yList); }\n }\n\n }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "private LinkedList<Wind> listSensorWind(){\r\n LinkedList<Wind> aux=new LinkedList<>();\r\n for (Sensor doo:sensors){\r\n if(doo instanceof Wind)\r\n aux.add((Wind)doo);\r\n }\r\n return aux;\r\n }", "public static List<Position> drawRing(Position origin, int range){\n\t\tList<Position> ring = new ArrayList<Position>();\n\n\t\tfor(int i = -range; i <= range; i++){\n\t\t\tfor(int j = -range; j <= range; j++){\n\t\t\t\tPosition pos = new Position(origin.getQ() + i, origin.getR() + j, origin.getH());\n\t\t\t\tif(origin.getDistance(pos) == range){\n\t\t\t\t\tring.add(pos);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn ring;\n\t}", "private synchronized void getRawData (Date begin, Date end, Vector<SensorData> data) {\n for (SensorData sensorData : rawData) {\n if ((sensorData.getDate().before(end) || sensorData.getDate()\n .equals(end))\n && (sensorData.getDate().after(begin) || sensorData\n .getDate().equals(begin))) {\n data.add(sensorData);\n }\n }\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "protected abstract R toRange(D lower, D upper);", "public List<Double> getPreviousReadings() {\n return unmodifiableReadings;\n }", "private int mappingTOArduinoRange(double value) {\n int x = (int) (value * 10); // 0~10 will be 0~100\n double a = 0;\n double b = 100;\n\n double c = 0;\n double d = 200; // actually, is 80. But I want a more smooth throttle\n int mapped = (int) ((x-a)/(b-a) * (d-c) + c);\n\n if(mapped > ARDUINO_PWM_LIMIT){\n // TODO: trigger tilt alert\n mapped = ARDUINO_PWM_LIMIT;\n }\n\n return mapped;\n }", "private List<List<Cell>> constructFireDirectionLines(int range) {\n List<List<Cell>> directionLines = new ArrayList<>();\n for (Direction direction : Direction.values()) {\n List<Cell> directionLine = new ArrayList<>();\n for (int directionMultiplier = 1; directionMultiplier <= range; directionMultiplier++) {\n\n int coordinateX = currentWorm.position.x + (directionMultiplier * direction.x);\n int coordinateY = currentWorm.position.y + (directionMultiplier * direction.y);\n\n if (!isValidCoordinate(coordinateX, coordinateY)) {\n break;\n }\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, coordinateX, coordinateY) > range) {\n break;\n }\n\n Cell cell = gameState.map[coordinateY][coordinateX];\n if (cell.type != CellType.AIR) {\n break;\n }\n\n directionLine.add(cell);\n }\n directionLines.add(directionLine);\n }\n\n return directionLines;\n }", "java.util.List<org.landxml.schema.landXML11.SpeedsDocument.Speeds> getSpeedsList();", "public List<Integer> getRanges(String description) {\n String rangeRegex = \"(\\\\d+) (to|and) (\\\\d+) inches\";\n String upToRegex = \"up to (\\\\d+) inch\";\n Pattern rangePattern = Pattern.compile(rangeRegex);\n Pattern upToPattern = Pattern.compile(upToRegex);\n Matcher rangeMatcher = rangePattern.matcher(description);\n Matcher upToMatcher = upToPattern.matcher(description);\n List<Integer> ranges = new ArrayList<>();\n while (rangeMatcher.find()) {\n int lowerBound = Integer.parseInt(rangeMatcher.group(1));\n int upperBound = Integer.parseInt(rangeMatcher.group(3));\n ranges.add(lowerBound);\n ranges.add(upperBound);\n }\n if (ranges.size() == 0) {\n while (upToMatcher.find()) {\n int upperBound = Integer.parseInt(upToMatcher.group(1));\n ranges.add(0);\n ranges.add(upperBound);\n }\n }\n return ranges;\n }", "Range alarmLimits();", "protected Sensor[] getSensorValues() { return sensors; }", "@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}", "private static List<Integer> getMinMaxAltitude(\n List<ACARSRecord> soundingList) {\n Integer minAlt = Integer.MAX_VALUE;\n Integer maxAlt = Integer.MIN_VALUE;\n\n for (ACARSRecord rec : soundingList) {\n if ((rec != null) && (rec.getFlightLevel() != null)) {\n maxAlt = Math.max(rec.getFlightLevel(), maxAlt);\n minAlt = Math.min(rec.getFlightLevel(), minAlt);\n }\n }\n\n List<Integer> retValue = null;\n if (!maxAlt.equals(Integer.MIN_VALUE)\n && !minAlt.equals(Integer.MAX_VALUE)) {\n retValue = new ArrayList<Integer>();\n retValue.add(minAlt);\n retValue.add(maxAlt);\n }\n return retValue;\n }", "public double getRange(){\r\n\t\t uSensor.ping();\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }", "public List<Equipment> findByPriceRange(int from, int to){\n List<Equipment> foundEquipment = new ArrayList<>();\n for(Equipment e: equipment){\n if (e.getPrice() <= to && e.getPrice() >= from){\n foundEquipment.add(e);\n }\n }\n return foundEquipment;\n }", "public static ArrayList<Background> binnedDataToBackground (HashMap<String, HashMap<Integer, Integer>> frequencyMap, String detector){\r\n\r\n\t\t//get the data of the desired detector\r\n\t\tHashMap<Integer, Integer> frequencyTable = frequencyMap.get(detector);\r\n\r\n\t\t//arraylist of the bin minimums in the map so we can loop through all of them \r\n\t\tArrayList<Integer> binMinimums = new ArrayList<Integer>();\r\n\t\tbinMinimums .addAll(frequencyTable.keySet());\r\n\r\n\r\n\r\n\t\tArrayList<Background> actualReadings = new ArrayList<Background>();\r\n\r\n\t\t//initialise the values that the background object needs\r\n\t\tint currentFrequency;\r\n\t\tint currentMax;\r\n\t\tint currentMin;\r\n\r\n\t\t//loop throuhg the keyset of the frequency table \r\n\t\tfor (int binMin : binMinimums){\r\n\r\n\t\t\t//current frequency/events is the value in the frequency table\r\n\t\t\tcurrentFrequency = frequencyTable.get(binMin);\r\n\r\n\t\t\t//minimum is the key in the frequency table\r\n\t\t\tcurrentMin = binMin;\r\n\r\n\t\t\t//bin width of 1, so max is min +1\r\n\t\t\tcurrentMax = binMin +1;\r\n\r\n\r\n\t\t\t//make a new background object to be added to the arraylist\r\n\t\t\tBackground r = new Background();\r\n\r\n\t\t\t//set the events, min and max found above\r\n\t\t\tr.setEvents(currentFrequency);\r\n\t\t\tr.setMin(currentMin);\r\n\t\t\tr.setMax(currentMax);\r\n\r\n\t\t\t//add to the arraylist\r\n\t\t\tactualReadings.add(r);\r\n\r\n\t\t}\r\n\t\treturn actualReadings;\r\n\r\n\t}", "static List<BitData> getSingletonPulseLengthsOfRanges(Iterable<Range<Long>> ranges) {\n checkNotNull(ranges, \"ranges was null\");\n\n LinkedHashSet<BitData> averages = new LinkedHashSet<>();\n\n for(Range<Long> range : ranges) {\n averages.add(new BitData(range, singletonList(range.lowerEndpoint())));\n }\n return averages.stream().collect(toList());\n }", "static List<Range<Long>> getRangesForSinglePulses(Collection<Long> pulses) {\n checkNotNull(pulses, \"pulses was null\");\n return pulses.stream().filter(Objects::nonNull).sorted().map(Range::singleton).collect(toList());\n }", "public ArrayList<Resource> rollToResource(int roll){\n\t\tArrayList<Resource> res = new ArrayList<Resource>();\n\t\tint count = 0;\n\t\tfor (int num : _rolls) {\n\t\t\tif (num == roll) {\n\t\t\t\tres.add(_resources.get(count));\n\t\t\t}\n\t\t\tcount ++;\n\t\t}\n\t\treturn res;\n\t}", "private void initGeneStatusDistributionRangeVector() {\n\t\tfor (int i = 0; i < GATracker.GENE_STATUS_DISTRIBUTION_SIZE; i++) {\n\t\t\t// Rounding the number off to the 4 significand digits\n\t\t\tgene_status_distribution_range[i] = Math.round(2*Math.abs(Math.sin(i*Math.PI/180)*10000))/10000.0;\n\t\t}\n\t}", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "private void checkReadings(final List<? extends ReadingLocated<P>> readings) {\n mNumRangingReadings = mNumRssiReadings = 0;\n\n if (readings == null) {\n return;\n }\n\n for (final ReadingLocated<P> reading : readings) {\n if (reading instanceof RangingReadingLocated) {\n mNumRangingReadings++;\n\n } else if (reading instanceof RssiReadingLocated) {\n mNumRssiReadings++;\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n mNumRangingReadings++;\n mNumRssiReadings++;\n }\n }\n\n mRssiPositionEnabled = mNumRangingReadings < getMinRangingReadings();\n }", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "Lista<V> valuesInRange(K init, K end);", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "public abstract double[] getLowerBound();", "private LinkedList<Gas> listSensorGas(){\r\n LinkedList<Gas> aux=new LinkedList<>();\r\n for (Sensor doo:sensors){\r\n if(doo instanceof Gas)\r\n aux.add((Gas)doo);\r\n }\r\n return aux;\r\n }", "@Override protected void updateAxisRange() {\n final Axis<X> xa = getXAxis();\n final Axis<Y> ya = getYAxis();\n List<X> xData = null;\n List<Y> yData = null;\n if(xa.isAutoRanging()) xData = new ArrayList<X>();\n if(ya.isAutoRanging()) yData = new ArrayList<Y>();\n if(xData != null || yData != null) {\n for(Series<X,Y> series : getData()) {\n for(Data<X,Y> data: series.getData()) {\n if(xData != null) {\n xData.add(data.getXValue());\n xData.add(xa.toRealValue(xa.toNumericValue(data.getXValue()) + getLength(data.getExtraValue())));\n }\n if(yData != null){\n yData.add(data.getYValue());\n }\n }\n }\n if(xData != null) xa.invalidateRange(xData);\n if(yData != null) ya.invalidateRange(yData);\n }\n }", "private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}", "public cwterm.service.rigctl.xsd.FreqRange[] getRxRangeList() {\n return localRxRangeList;\n }", "public List<Tailor> read();", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\n\t}", "private void generateIntervalArray(){\n BigDecimal maximumValue = this.getTfMaximumInterval();\n BigDecimal minimumValue = this.getTfMinimumInterval();\n BigDecimal stepValue = this.getTfStepInterval();\n \n intervalArray = new ArrayList<BigDecimal>();\n BigDecimal step = maximumValue;\n \n //Adiciona os valores \"inteiros\"\n while(step.doubleValue() >= minimumValue.doubleValue()){\n intervalArray.add(step);\n step = step.subtract(stepValue);\n }\n }", "public Range getAudioPortsRange();", "public LinkedList<NaturaLight> listSensorNaturaLight(){\r\n LinkedList<NaturaLight> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof NaturaLight)\r\n aux.add((NaturaLight)s);\r\n }\r\n return aux;\r\n }", "public native RecordList getRangeAsRecordList(int start, int end) /*-{\r\n var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();\r\n var recordsJS = self.getRange(start, end);\r\n return (recordsJS == null || recordsJS === undefined) ? null :\r\n @com.smartgwt.client.data.RecordList::new(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;", "void calculateRange() {\n //TODO: See Rules\n }", "private LinkedList<Smoke> listSensorSmoke(){\r\n LinkedList<Smoke> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Smoke)\r\n aux.add((Smoke)s);\r\n }\r\n return aux;\r\n }", "public Set<T> getRanges();", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }", "@Override\n\tpublic Sensor[] getAllSensors() {\t\n\t\tArrayList<Sensor> sensorArray = new ArrayList<Sensor>();\n\t\t\n\t\tfor(Entry<String, ArrayList<Sensor>> entry : this.sensors.entrySet()) {\n\t\t\tfor(Sensor thisSensor : entry.getValue()) {\n\t\t\t\tsensorArray.add(thisSensor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ArrayList.toArray() didn't want to play ball.\n\t\tSensor[] sensorRealArray = new Sensor[sensorArray.size()];\n\t\t\n\t\treturn sensorArray.toArray(sensorRealArray);\n\t}", "public LinkedList<Temperature> listSensorTemperature(){\r\n LinkedList<Temperature> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Temperature)\r\n aux.add((Temperature)s);\r\n }\r\n return aux;\r\n }", "public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if (r == null) {\n this.ranges = r = new CopyOnWriteArrayList<Range>();\n }\n }\n }\n return r;\n }", "@Override\n\tpublic Number filteredReading() {\t\n\t// Check we have any readings.\n\tif (buffer.size() == 0) return new Double(0.0);\n\n\tSensorReading reading = null;\n\tdouble sum = 0.0;\n\tdouble avge = 0.0;\n\tint index = 0;\n\n\t// Loop over buffered samples.\n\tIterator it = buffer.iterator();\n\twhile (it.hasNext()) {\n\t reading = (SensorReading)it.next();\n\t avge = avge + reading.getContinuousReading();\n\t index++;\n\t}\n\tlogger.log(2, \"Av-Filter\", name, \"filteredReading\",\"Returned: \"+\n\t\t (avge/index)+\" using \"+index+\" samples.\");\n\treturn new Double(avge / index);\n }", "public ArrayList<Confectionery> FindBySugar(double from, double to) {\n ArrayList<Confectionery> SugarList = new ArrayList<Confectionery>();\n for (int z = 0; z < LastIndex; z++) {\n if (ForChild[z].getSugar() >= from && ForChild[z].getSugar() <= to) {\n SugarList.add(ForChild[z]);\n }\n }\n return SugarList;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "private JsonArray statistics(List<JsonObject> datapoints,\n String targetName,\n List<Range> intervals,\n String statsLabel) {\n\n return intervals.stream()\n .map(range -> {\n\n DescriptiveStatistics stats = calculateStatsForRange(datapoints, targetName, range);\n switch (statsLabel) {\n case \"min\":\n return datapoint(stats.getMin(), range.getStart());\n case \"pcl50\":\n return datapoint(stats.getPercentile(50), range.getStart());\n case \"pcl80\":\n return datapoint(stats.getPercentile(80), range.getStart());\n case \"pcl90\":\n return datapoint(stats.getPercentile(90), range.getStart());\n case \"pcl95\":\n return datapoint(stats.getPercentile(95), range.getStart());\n case \"pcl99\":\n return datapoint(stats.getPercentile(99), range.getStart());\n case \"max\":\n return datapoint(stats.getMax(), range.getStart());\n default:\n return datapoint(0d, 0);\n }\n })\n .filter(a -> !a.isEmpty())\n .collect(toJsonArray());\n }", "public interface TargetRange extends Data {\n\n\t/**\n\t * Control setpoint for the value. This values shall be reached by\n\t * actions of an OGEMA application, no action based on this value is\n\t * performed by the framework itself. If no setpoint is given, an estimate\n\t * may be guessed from taking the center point of the {@link #targetRange()},\n\t * the {@link #controlLimits() } or the {@link #alarmLimits() } (in descending\n\t * order of relevance).\n\t * Models inheriting from this prototype must override\n\t * this with a suitable simple resource to define the meaning and the unit\n\t * of measurement.\n\t */\n\tValueResource setpoint();\n\n\t/**\n\t * Range which the sensor value shall lie as a result of control, if possible. The range is considered as soft\n\t * limits, i.e. contrary to the {@link #controlLimits() controlLimits} the so-defined ambient range may be left. If\n\t * not targetRange is given, the {@link #setpoint() setpoint} may indicate where the range lies.\n\t */\n\tRange targetRange();\n\n\t/**\n\t * Limits for the sensor value that shall be used for the control of the relevant device. Usually the controlLimits\n\t * should be held for sure.\n\t */\n\tRange controlLimits();\n\n\t/**\n\t * The resource shall only be used for limits that shall be integrated into an alarm logging and/or alarm handling\n\t * OGEMA application. It is NOT intended for limits that just trigger control signals.<br>\n\t * Note: No alarm events are generated by the OGEMA framework itself.<br>\n\t * For sensors providing information not represented as float, a resource of the relevant range type named\n\t * <code>alarmLimits</code> can be added as decorator.\n\t */\n\tRange alarmLimits();\n}", "public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if( min > data.get( i ) )\r\n min = data.get( i );\r\n if( max < data.get( i ) )\r\n max = data.get( i );\r\n }\r\n\r\n }", "public LinkedList<Moviment> listSensorMoviment(){\r\n LinkedList<Moviment> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Moviment)\r\n aux.add((Moviment)s);\r\n }\r\n return aux;\r\n }", "void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] getScansArray();", "List<Sensor> getPm10Sensors() {\n return Collections.unmodifiableList(this.pm10Sensors);\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfSource(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.SOURCE, lowerInclusive, upperInclusive);\n }", "public static double mapValueFromRangeToRange(\n double value,\n double fromLow,\n double fromHigh,\n double toLow,\n double toHigh) {\n double fromRangeSize = fromHigh - fromLow;\n double toRangeSize = toHigh - toLow;\n double valueScale = (value - fromLow) / fromRangeSize;\n return toLow + (valueScale * toRangeSize);\n }", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "List<Sensor> getTempSensors() {\n return Collections.unmodifiableList(this.tempSensors);\n }", "public List<SensorResponse> getFilteredList(){\n return filteredList;\n }", "private static float[] getPlanBounds(List<float[]> list) {\n float xStart = Float.MAX_VALUE;\n float yStart = Float.MAX_VALUE;\n float zStart = Float.MAX_VALUE;\n float xEnd = Float.MIN_VALUE;\n float yEnd = Float.MIN_VALUE;\n float zEnd = Float.MIN_VALUE;\n for (float[] point : list) {\n if (point[0] < xStart) {\n xStart = point[0];\n }\n if (point[0] > xEnd) {\n xEnd = point[0];\n }\n if (point[1] < yStart) {\n yStart = point[1];\n }\n if (point[1] > yEnd) {\n yEnd = point[1];\n }\n if (point[2] < zStart) {\n zStart = point[2];\n }\n if (point[2] > zEnd) {\n zEnd = point[2];\n }\n }\n return new float[]{xStart, xEnd, yStart, yEnd, zStart, zEnd};\n }", "public static ArrayList<Journey> getReacheableCellsInRangeWithPath(Cell cell_origin, int range) {\n ArrayList<Journey> journeys = new ArrayList<>();\n ArrayList<Cell> cells = new ArrayList<>();\n LinkedList<Cell> active_queue = new LinkedList<>();\n LinkedList<Cell> inactive_queue = new LinkedList<>();\n int depth = 0;\n journeys.add(new Journey(depth,cell_origin));\n cells.add(cell_origin);\n active_queue.add(cell_origin);\n // Invariant : Distance to all cells in the active queue is depth\n while (depth < range) {\n while (!active_queue.isEmpty()) {\n Cell c = active_queue.poll();\n for (Cell other : c.getAdjacentCells()) {\n if(other!=null){\n if (!cells.contains(other) && other.isWalkable()) {\n inactive_queue.add(other);\n cells.add(other);\n journeys.add(new Journey(depth-1,other));\n }\n }\n }\n }\n depth++;\n\n active_queue = inactive_queue;\n inactive_queue = new LinkedList<>();\n }\n return journeys;\n }", "public List<Long> generatePrimeInRange(long start, long till) {\n final List<Long> primes = new ArrayList<>(); // hold all primes from 1 to 'till'\n final List<Long> rangeList = new ArrayList<>(); // primes only within start and till\n LongStream.rangeClosed(0, till). // linear filtering mechanism\n filter(i -> isPrime(primes, i)).\n forEach(primes::add);\n // filter primes only between start and till\n primes.stream().filter(i -> i > start && i < till + 1).forEach(rangeList::add);\n return rangeList;\n }", "public double getRange(){\n\t\treturn range;\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n\n ArrayList<Locomotive> list = new ArrayList<>();\n for (DataSnapshot d : dataSnapshot.getChildren()) {\n list.add(d.getValue(Locomotive.class));\n }\n reading.setReadings(list);\n //Log.d(\"readings size\",reading.getReadings().size()+\"\");\n //Log.d(\"list:\",list.toString());\n //Log.d(\"reading:\",reading.getReadings().toString());\n }", "public static ArrayList<Cell> getReacheableCellsInRange(Cell cell_origin, int range) {\n ArrayList<Cell> cells = new ArrayList<>();\n LinkedList<Cell> active_queue = new LinkedList<>();\n LinkedList<Cell> inactive_queue = new LinkedList<>();\n int depth = 0;\n cells.add(cell_origin);\n active_queue.add(cell_origin);\n // Invariant : Distance to all cells in the active queue is depth\n while (depth < range) {\n while (!active_queue.isEmpty()) {\n Cell c = active_queue.poll();\n for (Cell other : c.getAdjacentCells()) {\n if(other!=null){\n if (!cells.contains(other) && other.isWalkable()) {\n inactive_queue.add(other);\n cells.add(other);\n }\n }\n }\n }\n depth++;\n\n active_queue = inactive_queue;\n inactive_queue = new LinkedList<>();\n }\n return cells;\n }", "int getRange();", "public List<Velocity> initialBallVelocities() {\n List<Velocity> velocityList = new ArrayList<Velocity>();\n for (int j = -50; j <= 50; j += 10) {\n if (j == 0) {\n continue;\n }\n velocityList.add(Velocity.fromAngleAndSpeed(j, 4));\n }\n return velocityList;\n }", "public static List<PhoneNumberRange> reducePhoneNumberRanges(RoutingInfoList routingInfoList) {\n List<Long> numberList = expandPhoneNumberRanges(routingInfoList);\n \n List<PhoneNumberRange> retRanges = new ArrayList<PhoneNumberRange>();\n PhoneNumberRange curRange = null;\n if (numberList.isEmpty()) {\n return new ArrayList<PhoneNumberRange>();\n }\n // Only necessary if not already sorted\n Collections.sort(numberList);\n\n long start = numberList.get(0);\n long end = numberList.get(0);\n\n for (long rev : numberList) {\n if (rev - end > 1) {\n // break in range\n log.debug(\"Found PhoneNumberRange: [{}, {}]\", start, end);\n curRange = new PhoneNumberRange();\n curRange.setPhoneNumberStart(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(start))));\n curRange.setPhoneNumberEnd(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(end))));\n retRanges.add(curRange);\n start = rev;\n }\n end = rev;\n }\n \n // Add the last range here.\n log.debug(\"Last PhoneNumberRange: [{}, {}]\", start, end);\n curRange = new PhoneNumberRange();\n curRange.setPhoneNumberStart(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(start))));\n curRange.setPhoneNumberEnd(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(end))));\n retRanges.add(curRange);\n \n return retRanges; \n }", "double getRangeDist( RangeName r ) {\n double dis = 0.0;\n double period = 1.0/MAX_RANGE_READ_FREQ ; // dflt 10Hz => one read per 100ms\n last_range_read_failed_ = false;\n switch ( r ) {\n case RGB_RANGE_STONE :\n if( rgb_range_stone_ != null ) {\n if( (last_rgb_range_stone_read_loop_id_ == loop_cnt_) || (last_rgb_range_stone_read_time_>0 && curr_time_-last_rgb_range_stone_read_time_<period) ) {\n dis = rgb_range_stone_dist_;\n } else {\n dis = rgb_range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_rgb_range_stone_read_loop_id_ = loop_cnt_;\n last_rgb_range_stone_read_time_ = curr_time_;\n rgb_range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = rgb_range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_STONE :\n if( range_stone_ != null ) {\n if( (last_range_stone_read_loop_id_ == loop_cnt_) || (last_range_stone_read_time_>0 && curr_time_-last_range_stone_read_time_<period) ) {\n dis = range_stone_dist_;\n } else {\n dis = range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_stone_read_loop_id_ = loop_cnt_;\n last_range_stone_read_time_ = curr_time_;\n range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_RIGHT :\n if( range_right_ != null ) {\n if( (last_range_right_read_loop_id_ == loop_cnt_) || (last_range_right_read_time_>0 && curr_time_-last_range_right_read_time_<period) ) {\n dis = range_right_dist_;\n } else {\n dis = range_right_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_right_read_loop_id_ = loop_cnt_;\n last_range_right_read_time_ = curr_time_;\n range_right_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_right_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_LEFT :\n if( range_left_ != null ) {\n if( (last_range_left_read_loop_id_ == loop_cnt_) || (last_range_left_read_time_>0 && curr_time_-last_range_left_read_time_<period) ) {\n dis = range_left_dist_;\n } else {\n dis = range_left_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_left_read_loop_id_ = loop_cnt_;\n last_range_left_read_time_ = curr_time_;\n range_left_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_left_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n default:\n break;\n }\n return dis;\n }", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints getScansArray(int i);", "private static int mapLuxToBrightness(float lux,\n int[] fromLux, int[] toBrightness) {\n // TODO implement interpolation and possibly range expansion\n int level = 0;\n final int count = fromLux.length;\n while (level < count && lux >= fromLux[level]) {\n level += 1;\n }\n return toBrightness[level];\n }", "public static List<Integer> streamRange(int from, int limit)\r\n\t{\r\n\r\n\t\treturn IntStream.range(from, from + limit)\r\n\t\t\t\t.boxed()\r\n\t\t\t\t.collect(toList());\r\n\t}", "private Filter betweenFilter(String start, Object minValue, Object maxValue) {\n return FF.between(FF.property(start), FF.literal(minValue), FF.literal(maxValue));\n }", "private void getSpeed_values(ArrayList<NewLocation> arrLocations){\n if(arrLocations != null){\n double min,max, sumSpeed = 0, average;\n int count = 0;\n min = arrLocations.get(0).getSpeed();\n max = arrLocations.get(0).getSpeed();\n\n for (int i = 0; i < arrLocations.size(); i++) {\n if(arrLocations.get(i).getSpeed() < min){\n min = arrLocations.get(i).getSpeed();\n }\n\n if(arrLocations.get(i).getSpeed() > max ){\n max = arrLocations.get(i).getSpeed();\n\n }\n sumSpeed += arrLocations.get(i).getSpeed();\n count++;\n }\n\n average = sumSpeed/ count;\n maxSpeedValue = max;\n avgSpeedValue = average;\n //set a new format for the results\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n Log.d(TAG, \"Count_Speeds: \" + count);\n Log.d(TAG, \"MinSpeed: \" + df.format(min) );\n Log.d(TAG, \"MaxSpeed: \" + df.format(max));\n Log.d(TAG, \"AverageSpeed: \" + df.format(average));\n minSpeedView.setText(df.format(min) + \" m/s\");\n maxSpeedView.setText(df.format(max) + \" m/s\");\n avgSpeedView.setText(df.format(average) + \" m/s\");\n\n }else{\n Log.d(TAG, \"array is empty\");\n }\n\n\n }", "public ArrayList<Sighting> filter(ArrayList<Sighting> rawSightings);", "public List<Float> calculatePitches(){\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\tint size = data.size();\n\t\tint maxAmp = 0;\n\t\tint startPos = 0;\n\t\t// get the first pitch in the basic period\n\t\tfor (int i = 0; i < BASE_FRAGMENT; i ++){\n\t\t\tif (maxAmp < data.get(i)){\n\t\t\t\tmaxAmp = data.get(i);\n\t\t\t\t// set this position as the start position\n\t\t\t\tstartPos = i;\n\t\t\t}\n\t\t}\n\t\tLog.v(\"startPos\", String.valueOf(startPos));\n\t\t// find every pitch in all the fragments\n\t\tint pos = startPos + OFFSET; // set current position\n\t\tint posAmpMax;\n\t\twhile(startPos < 1000){\n\t\t\tif(data.get(pos) > 0) { // only read the positive data\n\n\t\t\t\tposAmpMax = 0;\n\t\t\t\tmaxAmp = 0;\n\t\t\t\t// access to all the data in this fragment\n\t\t\t\twhile (pos < startPos + BASE_FRAGMENT) {\n\t\t\t\t\t// find the pitch and mark this position\n\t\t\t\t\tif (maxAmp < data.get(pos)) {\n\t\t\t\t\t\tmaxAmp = data.get(pos);\n\t\t\t\t\t\tposAmpMax = pos;\n\t\t\t\t\t}\n\t\t\t\t\tpos++;\n\t\t\t\t}\n\t\t\t\t// add pitch position into the list\n\t\t\t\tpitchPositions.add(posAmpMax);\n\t\t\t\tres.add(posAmpMax);\n\t\t\t\t// update the start position and the current position\n\t\t\t\tstartPos = posAmpMax;\n\t\t\t\tpos = startPos + OFFSET;\n\t\t\t}else{\n\t\t\t\tpos ++;\n\t\t\t}\n\t\t}\n\n\t\t// calculate all periods and add them into list\n\t\tfor(int i = 0; i < pitchPositions.size() - 1; i++){\n\t\t\tfloat period = (float)(pitchPositions.get(i+1) - pitchPositions.get(i));\n\t\t\tT.add(period);\n\t\t\tpitches.add(PeriodToPitch(period));\n\t\t}\n\t\tpitchPositions.clear();\n\t\treturn pitches;\n\t}", "static List<BitData> getReplacementBitDataOfRanges(Collection<Range<Long>> ranges, Collection<Long> fullBits) {\n checkNotNull(ranges, \"ranges was null\");\n checkNotNull(fullBits, \"fullBits was null\");\n\n List<BitData> averages = new ArrayList<>();\n\n for (Range<Long> range : ranges) {\n Long average = round(fullBits.stream().filter(range::contains).collect(averagingLong(Long::longValue)));\n averages.add(new BitData(range, singletonList(average)));\n }\n return averages;\n }", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n List<Point2D> list = new LinkedList<>();\n range(rect, new RectHV(0.0, 0.0, 1.0, 1.0), list, this.root);\n return list;\n }", "public JsonArray getRangeInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "private List<SpringDelta> buildResizableList(int axis,\n boolean useMin) {\n // First pass, figure out what is resizable\n int size = springs.size();\n List<SpringDelta> sorted = new ArrayList<SpringDelta>(size);\n for (int counter = 0; counter < size; counter++) {\n Spring spring = getSpring(counter);\n int sDelta;\n if (useMin) {\n sDelta = spring.getPreferredSize(axis) -\n spring.getMinimumSize(axis);\n } else {\n sDelta = spring.getMaximumSize(axis) -\n spring.getPreferredSize(axis);\n }\n if (sDelta > 0) {\n sorted.add(new SpringDelta(counter, sDelta));\n }\n }\n Collections.sort(sorted);\n return sorted;\n }", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Iterable<Point2D> range(RectHV rect) \r\n\t{\r\n\t\tStack<Point2D> insiders = new Stack<Point2D>();\r\n\t\trange(insiders, root, rect, new RectHV(0,0,1,1));\r\n\t\treturn insiders;\r\n\t}", "private void findExtremes( Vector<? extends AbstractWirelessDevice> coll )\r\n {\r\n for( AbstractWirelessDevice e: coll )\r\n {\r\n double x = e.getLocation().getX();\r\n double y = e.getLocation().getY();\r\n \r\n if( x < minX )\r\n minX = x;\r\n \r\n if( x > maxX )\r\n maxX = x;\r\n \r\n if( y < minY )\r\n minY = y;\r\n \r\n if( y > maxY )\r\n maxY = y;\r\n }\r\n }" ]
[ "0.5922021", "0.5736906", "0.54872537", "0.5479234", "0.53833777", "0.5327215", "0.52832466", "0.5269828", "0.5235055", "0.5231443", "0.5184775", "0.51840806", "0.5160278", "0.5139454", "0.5097163", "0.50850004", "0.50808567", "0.5064336", "0.5046897", "0.5043255", "0.5038447", "0.5029847", "0.5025252", "0.502406", "0.50108206", "0.5002404", "0.4970005", "0.49494705", "0.49278978", "0.49090976", "0.48898745", "0.4888942", "0.48880944", "0.48844123", "0.48700777", "0.48683095", "0.48579884", "0.48544842", "0.48540926", "0.48401645", "0.48153087", "0.4809926", "0.4805059", "0.4796979", "0.47948185", "0.47934937", "0.47929683", "0.47836572", "0.47749382", "0.47653046", "0.47641367", "0.4763947", "0.4760874", "0.47477764", "0.47423294", "0.47331378", "0.4729378", "0.47285515", "0.4725879", "0.47242436", "0.47154388", "0.4713", "0.47126698", "0.47111246", "0.47059858", "0.470051", "0.4700178", "0.46968466", "0.46888614", "0.46881098", "0.46863243", "0.46828154", "0.4682122", "0.46806395", "0.46775287", "0.4666446", "0.4662447", "0.4658902", "0.46571797", "0.4656561", "0.4645954", "0.46388194", "0.4636352", "0.46316928", "0.4627829", "0.46240458", "0.46234664", "0.46212363", "0.4619139", "0.4611662", "0.4604987", "0.4598347", "0.45897177", "0.45679122", "0.45613194", "0.4561277", "0.45585552", "0.45565033", "0.45475504", "0.45336443" ]
0.5017824
24
Facade simplifies usage of complex system:
public void turnOnCooler() { oilPompController.turnPompsOn(); breakController.turnOff(); mainPowerController.turnOn(); supportPowerController.turnOn(); try { Thread.sleep(1000); } catch (InterruptedException e) { System.out.println("Waiting to stand up was interrupted."); } supportPowerController.turnOff(); System.out.println("System is running."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProjectFacade {\n /**\n * Saving new project\n * @param projectDTO - project object\n */\n ProjectDTO saveProject(ProjectDTO projectDTO);\n\n /**\n * Updating project\n * @param projectDTO - project object\n */\n ProjectDTO updateProject(ProjectDTO projectDTO);\n\n /**\n * Retirieve project by id\n * @param id - project id\n */\n ProjectDTO findProjectById(Long id);\n\n /**\n * Leaving project\n * @param projectId - project id\n */\n void leaveProject(Long projectId);\n\n /**\n * Generating project PDF file.\n * @param projectId - project id\n * @param lang - current language.\n * @throws IOException\n * @throws DocumentException\n */\n ResponseEntity<byte[]> getProjectPDF(Long projectId, String lang) throws IOException, DocumentException;\n\n /**\n * Retrieves user projects from the interval\n * @param pageNumber - page number\n */\n List<ProjectDTO> findLimitProjects(int pageNumber);\n\n /**\n * Checking user access on the project\n * @param id - project id\n * @param username - username\n */\n String checkUserAccessOnProject(Long id, String username);\n}", "public interface PokemonFacade {\n\n /**\n * Save the given pokemon into system.\n *\n * @param pokemon pokemon to be saved\n * @return id of newly created pokemon\n */\n Long createPokemon(PokemonCreateDTO pokemon);\n\n /**\n * Returns pokemon with given id\n *\n * @param id id of pokemon\n * @return pokemon with given id\n */\n PokemonDTO getPokemonById(Long id);\n\n /**\n * Changes the skill of the pokemon\n *\n * @param pokemonId id of pokemon to be updated\n * @param newSkill new skill level of the pokemon\n */\n void changeSkill(Long pokemonId, int newSkill);\n\n /**\n * Changes the pokemon's trainer (owner)\n *\n * @param pokemonId id of pokemon to be updated\n * @param newTrainerId id of pokemon's new trainer\n */\n void changeTrainer(Long pokemonId, Long newTrainerId);\n \n /**\n * Trades pokemons by switching their trainers.\n * @param pokemonId1 id of first pokemon to trade\n * @param pokemonId2 id of second pokemon to trade\n */\n void tradePokemon(Long pokemonId1, Long pokemonId2);\n\n /**\n * Deletes the given pokemon from system.\n *\n * @param pokemonId id of pokemon to be deleted\n */\n void deletePokemon(Long pokemonId);\n\n /**\n * Returns {@link java.util.Collection Collection} of all pokemons present in the\n * systems.\n *\n * @return {@link java.util.Collection Collection} of all pokemons present in the\n * systems\n */\n Collection<PokemonDTO> getAllPokemons();\n\n /**\n * Returns {@link java.util.Collection Collection} of all pokemons that are being\n * trained by the given trainer in the system.\n *\n * @param trainerId the id of common trainer of the pokemons\n * @return {@link java.util.Collection Collection} of all pokemons that are being\n * trained by the given trainer\n */\n Collection<PokemonDTO> getAllPokemonsOfTrainerWithId(Long trainerId);\n\n /**\n * Returns {@link java.util.Collection Collection} of all pokemons that have the given\n * name in the system.\n *\n * @param name name of pokemon\n * @return {@link java.util.Collection Collection} of all pokemons that have the given\n * name\n */\n Collection<PokemonDTO> getAllPokemonsWithName(String name);\n\n /**\n * Returns {@link java.util.Collection Collection} of all pokemons of the given type in\n * the system.\n *\n * @param type type of pokemon\n * @return {@link java.util.Collection Collection} of all pokemons of the given type\n */\n Collection<PokemonDTO> getAllPokemonsWithType(PokemonType type);\n}", "public interface AppFacade {\n\n String test();\n\n DashboardBo getDashboard();\n\n List<AppStatBo> getAppDetailList(String startDate,String endDate);\n\n List<HostStatBo> getHostDetailList(String startDate,String endDate);\n\n List<AppInfoBo> getAppList();\n\n List<AppInfoBo> getAppList(int appType);\n\n List<TopTimeBo> topReq(String startDate,String endDate,String host,String appName,String moduleName,String method,int size);\n\n}", "public interface UsuarioFacade {\n\n\t/**\n\t * Busca funcionários atendendo aos critérios de filtro\n\t * @param filtro Filtro com os critérios\n\t * @return Registros encontrados\n\t */\n\tList<UsuarioVO> obterPorFiltro(FiltroUtil filtro);\n\n}", "public interface OrderFacade {\n}", "public interface CustomerServiceFacade {\n void getCustomerPersonalInfo();\n void getBillingInfo();\n void getShippingInfo();\n}", "public interface UserFacade {\n\n public void addUser();\n\n public void updateUser();\n\n public void delUser();\n\n public String findUser(String username);\n\n}", "public interface EmployeeFacade {\n\n /**\n * Get employee by given ID.\n */\n EmployeeDTO findById(Long employeeId);\n\n /**\n * Get employee by given email.\n */\n EmployeeDTO findByEmail(String email);\n\n /**\n * Register the given employee with the given unencrypted password.\n */\n Long create(EmployeeDTO u, String unencryptedPassword);\n\n /**\n * Get all registered employees\n */\n Collection<EmployeeDTO> getAll();\n\n /**\n * Try to authenticate a employee. Return true only if the hashed password matches the records.\n */\n boolean authenticate(PersonAuthenticateDTO p);\n\n /**\n * Remove employee by given email.\n */\n void delete(Long id);\n\n /**\n * Get all employees with specific name.\n */\n List<EmployeeDTO> findByName(String name);\n}", "public interface UserLoginFacade {\n\n /**\n * 正常登陆接口\n *\n * @param loginParam loginParam\n * @return\n */\n public Result<UserInfoDTO> loginForApp(LoginParam loginParam);\n\n /**\n * 同意协议\n *\n * @param loginParam loginParam\n * @return\n */\n public Result<UserInfoDTO> agreeProtocolForApp(LoginParam loginParam);\n\n /**\n * sam免登陆门店\n *\n * @param userGlobalId\n * @param request\n * @param response\n * @return\n */\n String samAvoidLogin(String userGlobalId, HttpServletRequest request, HttpServletResponse response);\n\n /**\n * 管理后台免登陆门店\n *\n * @param shopId\n * @param request\n * @param response\n * @return\n */\n String legendmAvoidLogin(Long shopId, HttpServletRequest request, HttpServletResponse response);\n\n /**\n * 根据登录账户获取用户信息\n *\n * @param loginAccount\n * @return\n */\n public Result<UserInfoDTO> getUserInfoByLoginAccountForApp(String loginAccount,String password, Long chooseShopId,boolean checkPassword);\n\n /**\n * 二维码登录\n */\n void loginForPCQRCodeLogin(Long shopId, Long userId, String uuid);\n\n /**\n * PC登录\n * @param list\n * @param shopManager\n * @param shop\n * @param response\n */\n void loginForPC(List<FuncF> list,ShopManager shopManager,Shop shop, HttpServletResponse response);\n\n /**\n * 校验登录等级1\n * @param shopId\n * @param userId\n */\n void checkShopLevelOneLogin(Long shopId,Long userId);\n}", "public InversorDosFacade() {\r\n super(InversorDos.class);\r\n }", "public interface EventFacade {\n public void fetchEventList();\n}", "public interface ReservationFacade {\n\n ReservationDTO create(ReservationDTO reservation);\n\n ReservationDTO findById(Long id);\n\n ReservationDTO update(ReservationDTO reservation);\n\n void delete(ReservationDTO reservation);\n\n List<ReservationDTO> getAll();\n\n List<ReservationDTO> getReservations(EmployeeDTO employee);\n}", "public interface VendorProductSearchFacade extends ProductSearchFacade<ProductData>\r\n{\r\n\r\n\t/**\r\n\t * get categories data from facet data for setting to vendor data\r\n\t *\r\n\t * @param vendorCode\r\n\t * the target vendor data to set categories\r\n\t * @return the vendor data contains categories data\r\n\t */\r\n\tVendorData getVendorCategories(String vendorCode);\r\n}", "public interface AppManager {\n /**\n * 根据bizCode获取业务信息\n * @param bizCode\n * @return\n * @throws ItemException\n */\n public BizInfoDTO getBizInfo(String bizCode) throws ItemException;\n\n /**\n * 根据appKey获取应用信息\n * @param appKey\n * @return\n * @throws ItemException\n */\n public AppInfoDTO getAppInfo(String appKey) throws ItemException;\n\n\n public AppInfoDTO getAppInfoByType(String bizCode, AppTypeEnum appTypeEnum) throws ItemException;\n\n\n}", "public interface MayCtaService {\r\n\r\n\t/**\r\n\t * Checks if is valid previous level.\r\n\t *\r\n\t * @param catalog the catalog\r\n\t * @param errorMsg the error msg\r\n\t * @return true, if is valid previous level\r\n\t */\r\n\tboolean isValidPreviousLevel(Maycta catalog, StringBuilder errorMsg);\r\n\r\n\t/**\r\n\t * Find first by cuenta.\r\n\t *\r\n\t * @param cuenta the cuenta\r\n\t * @return the maycta\r\n\t */\r\n\tMaycta findFirstByCuenta(String cuenta);\r\n\r\n}", "public interface LoginScoinFacade {\n// public BaseDataResponse loginScoin(Map<String, Object> dataRequest);\n\n public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);\n}", "private CaibEsbTransformersFacade() {\n\t\ttransformersProperties = CaibEsbTransformersProperties.getTransformersProperties();\n\t\tparserParamsProp = CaibEsbParserParameterProperties.getParserParametersProperties();\n\t}", "public interface RestClient {\n public List<UserDTO> getContracts(String tariffTitle) throws IOException;\n\n public boolean buildPDF(String tariffTitle) throws IOException;\n}", "private MovieFacade() {}", "private MovieFacade() {}", "private MovieFacade() {}", "public interface InsureUnitTrendService {\n\n /**\n * Query insure date list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryInsureDate();\n\n /**\n * Query unit list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryUnit();\n\n /**\n * Query cancel list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryCancel();\n\n\n}", "public interface MessageFacade {\n\n /**\n * Creates a new chat message.\n *\n * @param invoice a chat message invoice.\n * @return the created chat message.\n */\n Message create(MessageInvoice invoice);\n\n /**\n * Retrieves an existing message by its ID.\n *\n * @param id the ID of the message.\n * @return the requested message.\n */\n Message get(String id);\n\n /**\n * Retrieves a search result.\n *\n * @param invoice a search invoice.\n * @return search result.\n */\n MessageSearchResult getSearchResult(MessageSearchInvoice invoice);\n}", "private Delegateur(DBFacade dbFacade) {\r\n\t\tobjetControlleur = new ObjetControlleur(dbFacade);\r\n\t\tpretControlleur = new PretControlleur(dbFacade);\r\n\t\tutilisateurControlleur = new UtilisateurControlleur(dbFacade);\r\n\t}", "public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}", "public interface IFootService {\n\n //添加食品\n public boolean addFoot(Foot foot);\n //查询食品\n public List footList();\n //根据名称查询食品\n public Foot findFootByName(String fname);\n}", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "public interface KaupService {\n public String excute(int length, int weight);\n public String excute(KaupBean kaupBean);\n}", "public interface DistributorManager {\n\n List<DistShopDTO> queryShop(DistShopQTO distShopQTO, String appKey) throws MarketingException;\n \n GainsSetDTO getGainsSet(String appKey) throws MarketingException;\n \n List<ItemSkuDistPlanDTO> getItemSkuDistPlanList(Long itemId , String appKey) throws MarketingException;\n \n}", "public interface StewardFacade {\n\n /**\n * Returns all stewards.\n *\n * @return all stewards\n */\n Set<StewardSimpleDTO> getAllStewards();\n\n /**\n * Creates and saves new steward.\n *\n * @param steward steward to be created\n * @return id of the created steward\n */\n Long createSteward(StewardCreateDTO steward);\n\n /**\n * Returns the specified steward with more detail or null if no steward with specified id exists.\n *\n * @param id id of steward to get detail for\n * @return Steward with all details\n */\n StewardDTO getSteward(Long id);\n\n /**\n * Deletes specified steward.\n *\n * @param id id of steward to be deleted\n */\n void deleteSteward(Long id);\n\n /**\n * Updates the names of the specified steward.\n *\n * @param id id of steward to get updated names\n * @param firstName new first name of the steward\n * @param lastName new last name of the steward\n */\n void updateNames(Long id, String firstName, String lastName);\n\n /**\n * Returns all available stewards in the specified interval\n *\n * @param from start of the interval\n * @param to end of the interval\n * @return set of available stewards\n */\n Set<StewardSimpleDTO> getAllAvailable(Date from, Date to);\n}", "@Local\npublic interface CanalFacade {\n\n public void create(Canal entity);\n\n public void edit(Canal entity);\n\n public void remove(Canal entity);\n\n public Canal find(Object id);\n\n public List<Canal> findAll();\n\n public List<Canal> findRange(int[] range);\n\n public int count();\n}", "public interface ConsultarExpedienteService {\n \n DyctContribuyenteDTO buscarNumcontrol(String numControl); \n \n DeclaracionConsultarExpedienteVO buscarOrigenSaldo(String numControl); \n \n ExpedienteDTO buscarExpedienteNumControl(String noControl);\n \n TramiteCortoDTO buscaNumeroControl(String noControl, String rfc);\n \n TramiteCortoDTO buscaNumeroControl(String noControl);\n \n List<DocumentoReqDTO> buscaDocumentoRequerido (String numControl);\n \n List<SolicitudAdministrarSolVO> selecXNumControlEstAprobado(String numControl);\n\n void actualizarFolioNYVFechaNoti(String numControlDoc, String numControl, String folio, String fecha) throws SIATException;\n \n}", "public interface WebService {\n public void authenticate(User u) throws BaseException;\n\n public Institute getInstituteById(Long id) throws BaseException;\n public List<Institute> getInstitutes() throws BaseException;\n public void addInstitute(Institute i) throws BaseException;\n\n public User register(User u) throws BaseException;\n public User getUserByName(String name);\n public String getNameById(long id) throws BaseException;\n public long getIdByName(User u) throws BaseException;\n public long getInstituteIdByName(User u) throws BaseException;\n\n public List<Subject> getSubjectsByInstitute(Institute i) throws BaseException;\n public Subject getSubjectByName(String name) throws BaseException;\n public void addSubject(Subject s) throws BaseException;\n\n public List<Comment> getCommentsBySubject(Subject s) throws BaseException;\n public void addComment(Comment c) throws BaseException;\n\n\n}", "private Facade() {\n }", "public interface MemberService {\n //public void detail\n public MemberBean detail(String id);\n public List<MemberBean> find(String keyword);//List는 리턴값이 여러개라도 에러가 나지 않음\n public void join(MemberBean param);\n public List<MemberBean> list();\n public boolean login(MemberBean param);\n public void update(MemberBean param);\n public void delete(String id);\n public int count();\n\n\n\n}", "public interface BrowseService {\n\n\n public List callNumberBrowse(CallNumberBrowseForm callNumberBrowseForm);\n\n public List callNumberBrowsePrev(CallNumberBrowseForm callNumberBrowseForm);\n\n public List callNumberBrowseNext(CallNumberBrowseForm callNumberBrowseForm);\n\n public boolean getPreviosFlag();\n\n public boolean getNextFlag();\n\n public String getPageShowEntries();\n\n public List browse(OLESearchForm oleSearchForm);\n\n public List browseOnChange(OLESearchForm oleSearchForm);\n\n public List browsePrev(OLESearchForm oleSearchForm);\n\n public List browseNext(OLESearchForm oleSearchForm);\n\n public String validateLocation(String locationString);\n}", "public interface UserFacade extends Serializable {\n UserFacadeModel getLoginUser(String userName, String password);\n}", "public interface FactorService {\n\n /**\n * Adds the factor.\n *\n * @param factor\n * the factor\n * @param projectId\n * the project id\n * @return the wif factor\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n * @throws InvalidLabelException\n */\n Factor createFactor(Factor factor, String projectId)\n throws WifInvalidInputException, WifInvalidConfigException,\n InvalidLabelException;\n\n /**\n * Gets the factor.\n *\n * @param id\n * the id\n * @return the factor\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n Factor getFactor(String id) throws WifInvalidInputException,\n WifInvalidConfigException;\n\n /**\n * Gets the factor.\n *\n * @param id\n * the id\n * @param projectId\n * the project id\n * @return the factor\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n Factor getFactor(String id, String projectId)\n throws WifInvalidInputException, WifInvalidConfigException;\n\n /**\n * Update factor.\n *\n * @param factor\n * the factor\n * @param projectId\n * the project id\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n void updateFactor(Factor factor, String projectId)\n throws WifInvalidInputException, WifInvalidConfigException;\n\n /**\n * Delete factor.\n *\n * @param id\n * the id\n * @param projectId\n * the project id\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n void deleteFactor(String id, String projectId)\n throws WifInvalidInputException, WifInvalidConfigException;\n\n /**\n * Gets the factors for a given project.\n *\n * @param projectId\n * the project id\n * @return the factors\n * @throws WifInvalidInputException\n * the wif invalid input exception\n */\n List<Factor> getFactors(String projectId) throws WifInvalidInputException;\n\n\n /**\n * Gets the factorTypes for a given factor.\n *\n * @param factorId\n * the factor id\n * @return the factorTypes\n * @throws WifInvalidInputException\n * the wif invalid input exception\n */\n List<FactorType> getFactorTypes(String factorId) throws WifInvalidInputException;\n\n\n /**\n * Gets the factorType.\n *\n * @param projectId\n * the project id\n * @param factorId\n * the factor id\n * @param id\n * the id\n * @return the factorType\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n FactorType getFactorType(String projectId, String factorId, String id )\n throws WifInvalidInputException, WifInvalidConfigException;\n\n\n /**\n * Delete factorType.\n *\n *\n * @param projectId\n * the project id\n * @param factorid\n * the factorid\n * @param id\n * the id\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n void deleteFactorType(String projectId, String factorId, String id)\n throws WifInvalidInputException, WifInvalidConfigException;\n\n\n /**\n * Gets the factorTypeByLabel.\n *\n * @param projectId\n * the project id\n * @param factorId\n * the factor id\n * @param label\n * the label\n * @return the factorType\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n List<FactorType> getFactorTypeByLable(String projectId, String factorId, String lable )\n throws WifInvalidInputException, WifInvalidConfigException;\n\n /**\n * Delete factorTypeExtra.\n *\n *\n * @param projectId\n * the project id\n * @throws WifInvalidInputException\n * the wif invalid input exception\n * @throws WifInvalidConfigException\n * the wif invalid config exception\n */\n void deleteFactorTypesExtra(String projectId)\n throws WifInvalidInputException, WifInvalidConfigException;\n\n\n}", "public interface ConsultParametersBack {\n\t\n \t/**\n *\n * Method consultParametersArmed\n * @return ResponseEntity<?> value as parameter.\n *\n * @param ConsultParametersInDTO beanConsultParametersIn\n * @param HttpServletRequest request\n\t*\n */\n\tpublic ResponseEntity<?> consultParametersArmed(ConsultParametersInDTO beanConsultParametersIn, HttpServletRequest request);\n\n}", "public interface AppManager {\n public AppInfoDTO getAppInfoByDomain(String domainName) throws ServiceException;\n\n public AppInfoDTO getAppInfoByType(String bizCode, AppTypeEnum appTypeEnum) throws ServiceException;\n\n public String getAppDomain(String bizCode, AppTypeEnum appTypeEnum) throws ServiceException;\n\n public BizInfoDTO getBizInfo(String bizCode) throws ServiceException;\n\n public BizInfoDTO getBizInfoByppKey(String appKey) throws ServiceException;\n\n void addAppProperty(AppPropertyDTO appPropertyDTO) throws ServiceException;\n\n void addBizProperty(BizPropertyDTO bizPropertyDTO) throws ServiceException;\n\n public Boolean checkNameEN(String name) throws ServiceException;\n\n BizInfoDTO addBizInfo(BizInfoDTO bizInfoDTO) throws ServiceException;\n\n AppInfoDTO addAppInfo(AppInfoDTO appInfoDTO) throws ServiceException;\n\n void updateBizProperty(String bizCode, String pKey, String value, ValueTypeEnum valueType) throws ServiceException;\n \n String getAppKeyByBizCode(String bizCode,AppTypeEnum appTypeEnum);\n}", "public interface VitaeService {\n boolean addVitae(Vitae vitae);\n boolean deleteVitae(Vitae vitae);\n boolean updateVitae(Vitae vitae);\n List<Vitae> getByUidVitae(Vitae vitae);\n Vitae getByIdVC(Vitae vitae);\n List<Vitae> getPage(Map<String,Object> data);\n}", "public interface DepartmentService {\n public Map<String,Object> departmentList();\n public Map<String,Object> departmentAdd(Map<String,Object> params);\n public Map<String,Object> departmentEdit(Map<String,Object> params);\n public Map<String,Object> departmentDelete(Map<String,Object> params);\n public Map<String,Object> departmentDeleteCascade(Map<String,Object> params);\n public Map<String,Object> departmentNewRoot();\n\n}", "public interface ProductEntryController {\n\n Category addCategory(String categoryName) throws MelanieBusinessException;\n\n Category findCategory(int id,\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n Category findCategory(String categoryName,\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n List<Category> getAllCategories(\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n OperationResult addProduct(String productName, int quantity, double price,\n Category category, String barcode) throws MelanieBusinessException;\n\n OperationResult removeProduct(int productId)\n throws MelanieBusinessException;\n\n List<Product> findAllProducts(\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProduct(int productId,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProductByBarcode(String barcodDigits,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProduct(String productName,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n OperationResult updateProduct(Product product) throws MelanieBusinessException;\n\n void getLastInsertedProductId(OperationCallBack<Integer> operationCallBack) throws MelanieBusinessException;\n\n OperationResult saveCostEntries(List<CostEntry> costEntries) throws MelanieBusinessException;\n\n List<CostEntry> getAllCostEntries(\n OperationCallBack<CostEntry> operationCallBack)\n throws MelanieBusinessException;\n\n List<CostItem> getAllCostItems(\n OperationCallBack<CostItem> operationCallBack)\n throws MelanieBusinessException;\n}", "private FacadeCommandOfService() {\n // We retrieve the UserDao\n this.DAO = CommandOfServiceDAO.getInstance();\n this.userDAO = UserDAO.getInstance();\n }", "public interface AvanceSalaireManager\r\n extends GenericManager<AvanceSalaire, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"AvanceSalaireManager\";\r\n \r\n public AvanceSalaire generereglement(AvanceSalaire entity);\r\n \r\n public AvanceSalaire confirme(AvanceSalaire entity);\r\n \r\n public AvanceSalaire annule(AvanceSalaire entity);\r\n\r\n}", "public interface FenleiView {\n void getFenlei(List<Fenlei.DataBean> data);\n void onFaliure(Call call, IOException e);\n\n}", "public interface IPLMBasicFeeInfoService {\n\n void save(IMetaObjectImpl object);\n\n //费率信息\n\n void delete(int objid);\n void deleteByIds_(String objids);\n void deleteByProductId(int productid);\n\n IMetaDBQuery getSearchList(Map<String, String> map);\n IMetaObjectImpl getInfoById(int objid);\n\n public IMetaDBQuery queryByids(String objids);\n List<Map> getListByProductId(int productid);\n\n //获得管理费统计信息\n\n List<Map> getManageFeeCountList(Map map);\n\n\n\n //利率要素\n IMetaObjectImpl getInfoById_feeRate(int objid);\n void delete_feeRate(int objid);\n void deleteByIds__feeRate(String objids);\n void deleteByProductId_feeRate(int productid);\n\n List<Map> getListByProductId_feeRate(int productid);\n\n\n}", "public interface UseCase {\n\n Observable<ApiResponseLocation> getLocations(String location, int radius, boolean connection);\n\n Observable<ApiResponsePhoto> getLocationPhoto(String locationId, int limit);\n}", "public interface MarketoService\n{\n List<MarketoField> describeLead();\n\n File extractLead(Date startTime, Date endTime, List<String> extractedFields, String filterField, int pollingTimeIntervalSecond, int bulkJobTimeoutSecond);\n\n File extractAllActivity(List<Integer> activityTypeIds, Date startTime, Date endTime, int pollingTimeIntervalSecond, int bulkJobTimeoutSecond, String landingZone);\n\n Iterable<ObjectNode> getAllListLead(List<String> extractFields);\n\n Iterable<ObjectNode> getAllProgramLead(List<String> extractFields);\n\n Iterable<ObjectNode> getCampaign();\n\n Iterable<ObjectNode> getPrograms();\n\n Iterable<ObjectNode> getProgramsByTag(String tagType, String tagValue);\n\n Iterable<ObjectNode> getProgramsByDateRange(Date earliestUpdatedAt, Date latestUpdatedAt, String filterType, List<String> filterValues);\n\n Iterable<ObjectNode> getCustomObject(String customObjectAPIName, String customObjectFilterType, String customObjectFields, Integer fromValue, Integer toValue);\n\n List<MarketoField> describeCustomObject(String customObjectAPIName);\n\n Iterable<ObjectNode> getActivityTypes();\n}", "@WebService\npublic interface BLFacade {\n\n\t/**\n\t * Returns the logged user account\n\t * \n\t * @return Account of the logged user\n\t */\n\n\tpublic String getCurrentUserAccount();\n\n\t/**\n\t * Sets the logged user by the given one\n\t * \n\t * @param currentUserAccount the new logged user account\n\t */\n\tpublic void setCurrentUserAccount(String currentUserAccount);\n\t\n\t\n\t\n\t\n\t/**\n\t * This method invokes the data access to attempt to create an event\n\t * @throws if event already exists\n\t * @param date in which the event is created\n\t * @param des the description about the event\n\t * @return the created event\n\t */\n\t@WebMethod public Event createEvent(Date date, Team a, Team b) throws EventAlreadyExist;\n\n\t/**\n\t * This method finds a specific event \n\t * @param event\n\t * @param date\n\t * @return boolean if\n\t */\n\t@WebMethod public boolean findEvent(String event, Date date);\n\n\n\t/**\n\t * This method retrieves the events of a given date \n\t * \n\t * @param date in which events are retrieved\n\t * @return collection of events\n\t */\n\t@WebMethod public Vector<Event> getEvents(Date date);\n\n\t/**\n\t * This method retrieves from the database the dates a month for which there are events\n\t * \n\t * @param date of the month for which days with events want to be retrieved \n\t * @return collection of dates\n\t */\n\t@WebMethod public Vector<Date> getEventsMonth(Date date);\n\n\t/**\n\t * This method creates a question for an event, with a question text and the minimum bet\n\t * \n\t * @param event to which question is added\n\t * @param question text of the question\n\t * @param betMinimum minimum quantity of the bet\n\t * @return the created question, or null, or an exception\n\t * @throws EventFinished if current data is after data of the event\n\t * @throws QuestionAlreadyExist if the same question already exists for the event\n\t */\n\t@WebMethod Question createQuestion(Event event, String question, float betMinimum) throws EventFinished, QuestionAlreadyExist;\n\n\t/**\n\t * Method to find all questions of an event\n\t * @param ev the event\n\t * @return a vector of question of the event ev\n\t */\n\t@WebMethod public Vector<Question> getQuestions(Event ev);\n\n\t/**\n\t * Method to find all questions of an event\n\t * @param ev the event\n\t * @return a collections of question of the event ev\n\t */\n\t@WebMethod public List<Question> findAllQuestion(Event ev);\n\n\t/**\n\t * This method invokes the data access to create a bet\n\t * @throws if bet already exists\n\t * @param bet a description of the bet\n\t * @param prize the prize multiplier\n\t * @param q the question where the bet is created\n\t * @return the created bet\n\t */\n\t@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;\n\t\n\t/**\n\t * Method to find a specific bet of a question\n\t * @param bet the bet\n\t * @param q the question the bet is related to\n\t * @return boolean, if bet is found then true else false\n\t */\n\t@WebMethod public boolean findBet(String inputQuery, Question q);\n\n\t/**\n\t * Method to Log in to MainGUI\n\t * @param userName the username of the account\n\t * @param password the password of the account\n\t * @return boolean, if log in successful then true else false\n\t */\n\t@WebMethod public boolean logIn(String userName, String password);\n\n\t/**\n\t * Method to check if logged user is admin\n\t * @param user the user to check\n\t * @return boolean if user is admin then true else false\n\t */\n\t@WebMethod public boolean isAdmin(String user);\n\n\t/**\n\t * Method to add user and its information into the database\n\t * @param name the real name\n\t * @param lastName the last name\n\t * @param email the email\n\t * @param nid the dni\n\t * @param user the username\n\t * @param password the password to log in\n\t */\n\t@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);\n\n\t/**\n\t * Method to check if inserted user is a valid user\n\t * @param userName the username inserted\n\t * @param pass the password inserted\n\t * @return boolean if user is valid then true else false\n\t */\n\t@WebMethod public boolean checkUser(String userName);\n\n\t/**\n\t * Method to check if nid is a valid nid\n\t * @param nid the nid\n\t * @param name the real name\n\t * @param lastName the last name\n\t * @param email the email\n\t * @return boolean if nid is valid then true else false\n\t */\n\t@WebMethod public boolean checkNid(String nid);\n\n\t/**\n\t * Method to check if dni has DNI format\n\t * @param nid the nid\n\t * @param name the real name\n\t * @param lastName the last name\n\t * @param email the email\n\t * @return boolean, if dni has dni format then true else false\n\t */\n\t@WebMethod public boolean dniValido(String nid);\n\n\t/**\n\t * This method calls the data access to initialize the database with some events and questions.\n\t * It is invoked only when the option \"initialize\" is declared in the tag dataBaseOpenMode of resources/config.xml file\n\t */\t\n\t@WebMethod public void initializeBD();\n\t\n\t/**\n\t * Method to add a bet made by a user\n\t * @param user the user that made the bet\n\t * @param bet the bet it belongs to\n\t * @param money the money the user gambled\n\t */\n\t@WebMethod public void addBetMade(Account user, Bet bet, float money);\n\n\t/**\n\t * Method to get bet of a question\n\t * @param ev the event\n\t * @param q the question\n\t * @return the bet\n\t */\n\t@WebMethod public Bet getBet(Event ev, Question q);\n\n\t/**\n\t * Method to get an account\n\t * @param user the user name of the account\n\t * @param pass the password of the account\n\t * @return the account\n\t */\n\t@WebMethod public Account getUser(String user);\n\n\t/**\n\t * Method to close event\n\t * @param event the event to close\n\t */\n\t@WebMethod public void closeEvent(Event event);\n\n\t/**\n\t * Method to get all bets of a question\n\t * @param event the event\n\t * @param question the question\n\t * @return a list of bets that belong to the question that belongs to the event\n\t */\n\t@WebMethod public List<Bet> findAllBets(Event event, Question question);\n\n\t/**\n\t * Method to set winner of a bet\n\t * @param bet the bet to set\n\t */\n\t@WebMethod public void setWinnerBet(Bet bet);\n\t\n\t/**\n\t * Method to add a coupon\n\t * @param amount the prize amount of the coupon\n\t */\n\t@WebMethod public Coupon addCoupon(Integer amount, String code);\n\t\n\t/**\n\t * This method finds the given coupon\n\t * @param coupon\n\t * @return boolean\n\t */\n\t@WebMethod public boolean findCoupon(String coupon);\n\t\n\t/**\n\t * If the given method is in the database, it is redeem by the user\n\t * @param coupon\n\t */\n\t@WebMethod public void redeemCoupon(String userName, String coupon);\n\t\n\t/**\n\t * Method to add money to an account from a payment method, if entered a negative amount it will withdraw it.\n\t * @param user The selected account\n\t * @param e The selected payment method\n\t * @param amount the money amount to add\n\t * @throws PaymentMethodNotFound \n\t * @throws NoPaymentMethodException \n\t * @throws UserNotInDBException \n\t * @throws IncorrectPaymentFormatException \n\t * @throws NullParameterException \n\t */\n\t@WebMethod public float addMoney(Account user,String e, float amount) throws NullParameterException, IncorrectPaymentFormatException, UserNotInDBException, NoPaymentMethodException, PaymentMethodNotFound;\n\n\n\t/**\n\t * Method to add a payment method to an account\n\t * @param user The selected account\n\t * @param e the payment method\n\t */\n\t@WebMethod public void addPaymentMethod(Account user,CreditCard e);\n\n\t/**\n\t * Method to remove a payment method from an account\n\t * @param user the account\n\t * @param card the payment method\n\t */\n\t@WebMethod public void removePaymentMethod(Account user,String card);\n\t\n\t/**\n\t * Method to get all the payment methods of an account\n\t * @param user the account\n\t * @return A vector of all the payment methods\n\t */\n\t@WebMethod public LinkedList<CreditCard> getAllPaymentMethods(Account user);\n\t\n\t/**\n\t * Method to get a coupon from the data base\n\t * @param coupon the code of the coupon to search\n\t * @return the coupon\n\t */\n\t@WebMethod public Coupon getCoupon(String coupon);\n\n\t/**\n\t * Method to get all bets made by a user\n\t * @param ac the account to get all bets made\n\t * @return a collection of bets made by the account\n\t */\n\t@WebMethod public List<BetMade> getBetsMade(Account ac);\n\t\n\t/**\n\t * Method to get all active events\n\t * @return a list of all events\n\t */\n\t@WebMethod public List<Event> getAllEvents();\n\t\n\t/**\n\t * Method to get all bets made from an active event\n\t * @param ev the event\n\t * @return a list of bets made\n\t */\n\t@WebMethod public List<BetMade> getBetsFromEvents(Event ev);\n\t\n\t/**\n\t * Method to get all teams\n\t * @return a list of teams\n\t */\n\t@WebMethod public List<Team> getAllTeams();\n\t\n\t/**\n\t * Method to add a team into the database\n\t * @param name the name of the team\n\t * @return the added team\n\t */\n\t@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;\n\n\n}", "public interface ICompteService {\n\t/**\n\t * Declaration des methodes metier\n\t */\n\tpublic void createCompte(Compte compte);\n\n\tpublic List<Compte> getAllCompte();\n\n\tpublic void deleteCompte(Long numeroCompte);\n\n\tpublic void updateCompte(Compte compte);\n\n\tpublic Compte getCompteById(Long numeroCompte);\n\n\tpublic void virement(Long compteEmetteur, Long compteRecepteur, double montant);\n\n\tpublic void versement(long numeroCompte, double montant);\n\n}", "public interface NivelService {\n\n List<Nivel> ListarNivel(String Descripcion, String Estado, String PaginaStart, String PaginaLength, String Orderby);\n Integer CantidadNivel(String Descripcion, String Estado);\n Nivel viewNivel(Integer Codigo);\n RespuestaTransaccion mantenimientoNivel(Nivel nivel, String usuario, Integer operacion);\n\n}", "public interface GitHubService {\n// @GET(\"article/list/1/15/1\")\n// Call<JinXuanBean> getQuamZiData();\n @GET(\"article/list/{page}/15/{type}\")\n Call<JinXuanBean> getQuamZiData(@Path(\"page\") int page, @Path(\"type\") int type);\n\n @GET(\"article/{articleId}\")\n Call<ArticleBean> getArticle(@Path(\"articleId\") int articleId);\n @GET(\"review/article/content/{page}/15/{articleId}\")\n Call<Comment> getComment(@Path(\"page\") int page, @Path(\"articleId\") int articleId);\n}", "public interface BookingFacadeService {\n double getTicketsPrice(Long eventId, LocalDateTime dateTime, Long userId, Set<Integer> seats);\n\n Set<Integer> getAvailableSeats(Long eventId, LocalDateTime dateTime);\n\n Set<Integer> bookTickets(Long eventId, LocalDateTime dateTime, Long userId, Set<Integer> seats);\n\n void refillAccount(Long userId, double sum);\n\n Set<Ticket> getTickets(String userLogin, Long eventId, Long time, boolean onlyMyTickets);\n}", "public interface MasterZipcodeService {\n\n /**\n * Save given zipcode\n * @param mz, zipcode\n * @return saved zipcode\n */\n MasterZipcode save(MasterZipcode mz);\n \n /**\n * Delete given zipcode\n * @param mz, zipcode\n */\n void delete(MasterZipcode mz);\n \n /**\n * Get zipcode by id\n * @param id\n * @return zipcode based on given id\n */\n MasterZipcode getById(int id);\n \n /**\n * Get all zipcode data\n * @return list of all zipcode\n */\n List<MasterZipcode> getAll();\n \n /**\n * Get zipcode data by page\n * Override default behavior\n * @param pageNo, page number to proceed\n * @return list of zipcodes based on given page\n */\n List<MasterZipcode> getByPage(int pageNo);\n \n /**\n * Get zipcode data by range, zipcode code and description pattern/partial\n * @param zipcodeCodePattern\n * @param zipcodeDescPattern\n * @param pageNo, page number to proceed\n * @return list of sipcodes based on given range, zipcode code and description pattern\n */\n List<MasterZipcode> getByRangeZipcodeDesc(String zipcodeCodePattern, String zipcodeDescPattern, int pageNo);\n \n /**\n * Get number of all sipcode data\n * @return list of all sipcodes\n */\n int count();\n \n /**\n * Get number of zipcode data by range, zipcode code and description pattern\n * @param zipcodeCodePattern\n * @param zipcodeDescPattern\n * @return count of zipcodes based on given range, zipcode code and description pattern\n */\n int countByZipcodeDesc(String zipcodeCodePattern, String zipcodeDescPattern);\n \n /**\n * Get column content data by column\n * @param fieldName, the name of specific column to return\n * @return list of column contents based on given column\n */\n List<String> getListInput(String fieldName);\n \n /**\n * Get zipcode by code\n * @param zipcodeCode\n * @return zipcode based on given the code\n */\n MasterZipcode getByZipcodeCode(String zipcodeCode);\n \n /**\n * Get zipcode data by kecamatan\n * @param kecId, kecamatan\n * @return list of zipcodes based on given kecamatan\n */\n List<MasterZipcode> getByKecamatan(int kecId);\n \n /**\n * Get zipcode data by city\n * @param cityId\n * @return list of zipcodes based on given city\n */\n List<MasterZipcode> getByCity(int cityId);\n \n /**\n * Get zipcode data by code pattern/partial\n * @param patternCode\n * @return list of zipcodes based on given code pattern\n */\n List<MasterZipcode> getByPatternCode(String patternCode);\n}", "public interface ICarSupportDAO {\n\n\t/**\n\t * Saving feebdback.\n\t *\n\t * @param feedback the feedback\n\t * @throws Exception the exception\n\t */\n\tpublic void savingFeebdback(FeedbackDetail feedback)throws Exception;\n\t\n\t/**\n\t * Gets the ting booking history.\n\t *\n\t * @return the ${e.g(1).rsfl()}\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<BookingDetail> gettingBookingHistory() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available users.\n\t *\n\t * @return the ting all available users\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available feedbacks.\n\t *\n\t * @return the ting all available feedbacks\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available cars.\n\t *\n\t * @return the ting all available cars\n\t * @throws Exception the void editing car( car detail detail)\n\t */\n\tpublic ArrayList<CarDetail> gettingAllAvailableCars() throws Exception;\n\t\n\n}", "@ImplementedBy(EliteAppExaminationServiceImpl.class)\npublic interface EliteAppExaminationService {\n List<Map<String,Object>> getExaminationOnline(Map<String,Object> params);\n ProEliteExaminationOnline getProBeanByEmployee(Map<String,Object> params);\n}", "public interface SerService {\n\n List<SService> findwithPageInfo(Integer pageNo, Integer pageSize);\n\n PageInfo<SService> getPageInfo(Integer pageSize);\n\n SService findById(Integer id);\n\n void modi(SService sService);\n\n void add(SService sService, String samePasswd);\n\n void setStateS(Integer id);\n\n void delS(Integer id);\n\n\n List<SService> findS(String osUsername, String unixHost, String status, Integer accountId);\n\n void updateCost(SService sService);\n}", "public interface UserFacade {\n\n /**\n * Get data from registration page and validate it.\n * Perform register if user with specified data not exists in datasource.\n * Before register encrypt password for safety.\n *\n * @param data registration data.\n */\n void register(RegisterData data) throws Exception;\n\n /**\n * Checks in database if data passed form registration form is already exists.\n * User login and email must be unique.\n *\n * @param data registration data.\n */\n boolean isUserExists(RegisterData data) throws DuplicateUserException;\n}", "public interface TypeService {\r\n\r\n /**\r\n * Récupérer la table des types\r\n *\r\n * @return liste de TypeDto\r\n */\r\n public List<TypeDto> getTableType();\r\n\r\n public TypeDto fusionType(final TypeDto type1, final TypeDto type2, final boolean force);\r\n\r\n public TypeDto sommeType(final TypeDto type1, final TypeDto type2, final boolean force);\r\n\r\n public TypeDto getTypeDto(final String type);\r\n\r\n public List<FaiblesseDto> getTeamFaiblesse(final List<PokemonDto> team);\r\n}", "interface ApiService {\n\n @GET(\"users/{user}/repos\")\n Call<List<FlickR>> getFlickRItems(@Path(\"user\") String user);\n\n @GET(\"users/{user}\")\n Call<Owner> getFlickRMedia(@Path(\"user\") String user);\n\n }", "public interface CoreServiceInvoker {\n\n\n GWRequest processRequest(Object requestData, InterfaceMapper mapper);\n\n /**\n * 处理请求信息\n */\n GWRequest processRequest(Object requestData, InterfaceMapper mapper, boolean needPackage);\n\n /**\n * 调用核心方法\n */\n GWResponse invoke(GWRequest request, boolean needPackage);\n\n /**\n * 处理返回信息\n */\n Object analysisResponse(GWRequest request, GWResponse response);\n Object analysisResp(GWRequest request, GWResponse response);\n}", "public interface StrategyFacade<T, E> extends GenericFacade<T,E> {\n\n StrategyTransport disableStrategy(StrategyTransport strategy);\n\n StrategyTransport enableStrategy(StrategyTransport strategy);\n\n StrategyTransport addGroups(StrategyTransport strategy);\n\n StrategyTransport removeGroups(StrategyTransport strategy);\n\n StrategyTransport updateStrategy(StrategyTransport strategy);\n\n void removeStrategy(StrategyTransport strategy);\n\n StrategyTransport addLocationStrategy(StrategyTransport strategyTransport);\n\n StrategyTransport addTimeStrategy(StrategyTransport strategyTransport);\n}", "public interface MetaInformationService extends BasicEcomService{\n\n public String listMetaInformationTypesForPage(String page);\n public Integer getTotalPagesForMetaInformationTypes();\n public Integer getTotalPagesForSearchedMetaInformationTypes(String metaType);\n public String listSearchedMetaInformationTypesForPage(String metaType,String page);\n\n\n}", "public interface FactoryOrderDetailService {\n\n List<SchedulingDomain> schedulingInfo(Integer factId,Integer soId);\n List<ProductionDetailDomain> productionDetailInfo(Integer factId,Integer soId);\n List<ProductionReportDomain> productionReportInfo(Integer factId,Integer soId);\n List<CompletionDomain> completionInfo(Integer factId,Integer soId);\n List<ProductionRecordDomain> productionRecordInfo();\n\n List<FactoryCapacityDomain> capaTypes();\n}", "public interface RadiusService {\n\n public List<UserAdapter> constructUsersList();\n public void addUser(UserAdapter user);\n public List<UserAdapter> getUserList();\n public void printUserList();\n public List<RoleAdapter> constructRolesList();\n public RoleAdapter getRoleById(int roleId);\n\n}", "public interface WikiQuoteService {\n\n /**\n * Requests for suggested pages, matching the given query.\n * @param search the search query\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);\n\n /**\n * Requests for a page having the given title.\n * @param titles the title of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=query&format=json&redirects\")\n Call<JsonElement> getPageFromTitle(@Query(\"titles\") String titles);\n\n /**\n * Requests for the table of content of the page having the given id.\n * @param pageid the id of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&prop=sections\")\n Call<JsonElement> getTocFromPage(@Query(\"pageid\") long pageid);\n\n /**\n * Requests for a specific section of the page having the given id.\n * @param pageid the id of the page\n * @param section the id of the section\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&noimage\")\n Call<JsonElement> getSectionFrom(@Query(\"pageid\") long pageid,@Query(\"section\") long section);\n}", "@Local\npublic interface CategoriaFacade {\n\n public void create(Categoria entity);\n\n public void edit(Categoria entity);\n\n public void remove(Categoria entity);\n\n public Categoria find(Object id);\n\n public List<Categoria> findAll();\n\n public List<Categoria> findRange(int[] range);\n\n public int count();\n}", "public interface TransacaoService {\n\n List<TransacaoDTO> getAll();\n List<TransacaoDTO> getByCliente(String cpf);\n TransacaoDTO salvarTransacao(CreateTransacaoDTO createTransacaoDTO);\n TransacaoDTO atualizarTransacao(Integer id, TransacaoDTO transacaoDTO);\n void deletarTransacao( Integer id);\n InputStreamResource getExtrato(String cpf) throws IOException;\n InputStreamResource getExtratoByCartao(Integer id) throws IOException;\n}", "public interface UserManagerService {\r\n public Staff_info getStaffInfo(Map<String,Object> params);\r\n\r\n public Page<Staff_info> getUserPageList(Map<String,Object> params);\r\n\r\n public void addUserInfo(Map<String,Object> params);\r\n public void updUserInfo(Map<String,Object> params);\r\n\r\n public void delUser(Map<String,Object> params);\r\n\r\n public List<Staff_info> moblieSelect();\r\n\r\n}", "public interface ReferenceDataMessagingWrapperService {\r\n\r\n\t/**\r\n\t * Transform CDSReferenceEntity to PsdReferenceEntity\r\n\t * \r\n\t * @param xmlReferEntitiesList\r\n\t * List of Reference Entities from XML file\r\n\t * @return a list of PsdReferenceEntity\r\n\t */\r\n\tList<PsdReferenceEntity> wrapReferenceEntity(List<CDSReferenceEntity> xmlReferEntitiesList);\r\n\r\n\t/**\r\n\t * Transform CDSReferenceObligationPairs object to list of PsdReferenceObligationPair\r\n\t * \r\n\t * @param refObPairsXmlObject\r\n\t * Object containing all Reference Obligation Pairs from XML file\r\n\t * @param listReferenceEntity\r\n\t * @return a list of PsdReferenceObligationPair\r\n\t */\r\n\tList<PsdReferenceObligationPair> wrapReferenceObligPair(CDSReferenceObligationPairs refObPairsXmlObject, List<PsdReferenceEntity> listReferenceEntity);\r\n\r\n\t/**\r\n\t * Complete the PsdReferenceObligationPair with the associated PsdEligibleReferenceObligation\r\n\t * \r\n\t * @param obligationDtosList\r\n\t * List of transformed Reference Obligation Pairs from XML file\r\n\t * @param cdsReferenceObligationPairs\r\n\t * object containing list of Reference Obligation Pairs from XML file\r\n\t * @return a list of PsdReferenceObligationPair\r\n\t */\r\n\tList<PsdReferenceObligationPair> addEligibleToReferenceObligation(List<PsdReferenceObligationPair> obligationDtosList, CDSReferenceObligationPairs cdsReferenceObligationPairs);\r\n\r\n\t/**\r\n\t * Transform CDSProduct to PsdProduct\r\n\t * \r\n\t * @param xmlProductsList\r\n\t * List of Products from XML file\r\n\t * @param obligationDtosList\r\n\t * List of Reference Obligation Pairs Entities\r\n\t * @param xmlConstituentsList\r\n\t * List of Index Constituents from XML file\r\n\t * @return a list of PsdProduct\r\n\t */\r\n\tList<PsdProduct> wrapProducts(List<CDSProduct> xmlProductsList, List<PsdReferenceObligationPair> obligationDtosList, List<CDSIndexConstituent> xmlConstituentsList);\r\n\r\n\t/**\r\n\t * Transform CDSIndexConstituent to PsdIdxComposition and PsdIdxConstituent\r\n\t * \r\n\t * @param productDtosList\r\n\t * List of Products Entities\r\n\t * @param xmlConstituentsList\r\n\t * List of Index Constituents from XML file\r\n\t * @return a list of PsdProduct\r\n\t */\r\n\tList<PsdProduct> wrapConstituents(List<PsdProduct> productDtosList, List<CDSIndexConstituent> xmlConstituentsList);\r\n\r\n\t/**\r\n\t * Transform CDSContract to PsdContract\r\n\t * \r\n\t * @param xmlContractsList\r\n\t * List of CDSContract from XML file\r\n\t * @param productDtosList\r\n\t * List of Products Entities\r\n\t * \r\n\t * @return List of Contracts Entities\r\n\t */\r\n\tList<PsdContract> wrapContracts(List<CDSContract> xmlContractsList, List<PsdProduct> productDtosList);\r\n\r\n\t/**\r\n\t * Create or Update Reference Entities\r\n\t * \r\n\t * @param psdReferEntities\r\n\t */\r\n\tvoid createOrUpdateReferenceEntity(List<PsdReferenceEntity> psdReferEntities);\r\n\r\n\t/**\r\n\t * Create or Update Reference Obligation Pairs\r\n\t * \r\n\t * @param psdReferObligPairs\r\n\t */\r\n\tvoid createOrUpdateReferenceObligationPairs(List<PsdReferenceObligationPair> psdReferObligPairs);\r\n\r\n\t/**\r\n\t * Create or Update Products\r\n\t * \r\n\t * @param psdProducts\r\n\t */\r\n\tvoid createOrUpdateProducts(List<PsdProduct> psdProducts);\r\n\r\n\t/**\r\n\t * Create or Update Contracts\r\n\t * \r\n\t * @param wrapContracts\r\n\t */\r\n\tvoid createOrUpdateContracts(List<PsdContract> wrapContracts);\r\n\r\n\t/**\r\n\t * Check Index with definition of products\r\n\t * \r\n\t * @param productDtosList\r\n\t */\r\n\tvoid checkIndexFactorWithWeightRate(List<PsdProduct> productDtosList);\r\n\r\n\t/**\r\n\t * Extract/update list of new SRO Associated Reference Obligation Pairs\r\n\t * \r\n\t * @param cdsReferenceObligationPairs\r\n\t * @param listReferenceObligationPair\r\n\t * @return\r\n\t */\r\n\tList<PsdSroAssocOblig> processSroAssocOblig(CDSReferenceObligationPairs cdsReferenceObligationPairs, List<PsdReferenceObligationPair> listReferenceObligationPair);\r\n\r\n\t/**\r\n\t * Create or Update SRO Associated Obligations.\r\n\t * \r\n\t * @param listPsdSroAssocOblig\r\n\t */\r\n\tvoid createOrUpdateSroAssociatedObligations(List<PsdSroAssocOblig> listPsdSroAssocOblig);\r\n\r\n}", "public interface TransportService {\n\n /**\n * Create and persist a new transport.\n *\n * @param request the new transport data\n *\n * @return the new transport object, if successful\n */\n Transport storeTransport(@NotNull EezerStoreTransportRequest request);\n\n /**\n * Remove an existing transport by it's transportId.\n *\n * !!! NOTE: USUALLY WE DON'T DO THIS !!!\n *\n * @param transportId the transportId to remove\n */\n void removeTransport(@NotNull String transportId);\n\n /**\n * Fetch all existing transports in the system.\n * We don't return coordinates here, there is a\n * separate call for that.\n *\n * @return a list of all existing transports\n */\n List<Transport> getTransports();\n\n /**\n * Fetch all coordinates associated with a\n * specific transport.\n *\n * @param transportId the transportId\n *\n * @return a list of all coordinates\n */\n List<Coordinate> getCoordinates(@NotNull String transportId);\n\n}", "@WebService\npublic interface BLFacade {\n\t \n\n\t/**\n\t * This method creates a question for an event, with a question text and the minimum bet\n\t * \n\t * @param event to which question is added\n\t * @param question text of the question\n\t * @param betMinimum minimum quantity of the bet\n\t * @return the created question, or null, or an exception\n\t * @throws EventFinished if current data is after data of the event\n \t * @throws QuestionAlreadyExist if the same question already exists for the event\n\t */\n\t@WebMethod Question createQuestion(Event event, String question, double betMinimum) throws EventFinished, QuestionAlreadyExist;\n\t\n\t\n\t/**\n\t * This method retrieves the events of a given date \n\t * \n\t * @param date in which events are retrieved\n\t * @return collection of events\n\t */\n\t@WebMethod public ArrayList<Event> getEvents(LocalDate date);\n\t\n\t/**\n\t * This method retrieves from the database the dates a month for which there are events\n\t * \n\t * @param date of the month for which days with events want to be retrieved \n\t * @return collection of dates\n\t */\n\t@WebMethod public ArrayList<LocalDate> getEventsMonth(LocalDate date);\n\t\n\t/**\n\t * This method calls the data access to initialize the database with some events and questions.\n\t * It is invoked only when the option \"initialize\" is declared in the tag dataBaseOpenMode of resources/config.xml file\n\t */\t\n\t@WebMethod public void initializeBD();\n\t\n\t/**\n\t * Metodo honek erabiltzaile izen eta pasahitz bat jasota, bi hauek dituen pertsona bat bilatzen du datu basean.\n\t * Aurkitzen badu itzuli egiten du bestela null balioa.\n\t * @param erabiltzaileIzena \n\t * @param pasahitza\n\t * @return \n\t */\n\t@WebMethod public Pertsona isLogin(String erabiltzaileIzena, String pasahitza);\n\t\n\t/**\n\t * Metodo honek, erabiltzaile izen gisa erabiltzaileIzena duen Pertsonarik ez badago datu basean, sarrerako datuekin\n\t * bat sortu eta datu-basean gehitzen du\n\t * @param izena\n\t * @param abizena1\n\t * @param abizena2\n\t * @param erabiltzaileIzena\n\t * @param pasahitza\n\t * @param telefonoa\n\t * @param emaila\n\t * @param jaiotzeData\n\t * @param mota\n\t * @return\n\t * @throws UserAlreadyExist\n\t */\n\t@WebMethod public Pertsona register(String izena, String abizena1, String abizena2, String erabiltzaileIzena, String pasahitza, String telefonoa, String emaila, LocalDate jaiotzeData, String mota) throws UserAlreadyExist;\n\t\n\t/**\n\t * Metodo honek description eta eventDate dituen gertaerarik ez badago datu basean, sortu eta gehitu egiten du\n\t * @param description\n\t * @param eventDate\n\t * @throws EventAlreadyExist\n\t */\n\t@WebMethod public void createEvent(String description, LocalDate eventDate) throws EventAlreadyExist;\n\t\n\t@WebMethod public ArrayList<Question> getQuestions(Event event);\n\t\n\t@WebMethod Pronostikoa createPronostic(Question question, String description, double kuota) throws PronosticAlreadyExist;\n\t\n\t@WebMethod public void emaitzaIpini(Question question, Pronostikoa pronostikoa);\n\t\n\t@WebMethod public Bezeroa apustuaEgin(ArrayList<Pronostikoa> pronostikoak, double a, Bezeroa bezero);\n\t\n\t@WebMethod public Bezeroa deleteApustua(Apustua a) throws EventFinished;\n\t\n\t@WebMethod public Bezeroa diruaSartu(double u, Bezeroa bezero);\n\t\n\t@WebMethod public void ezabatuGertaera(Event event);\n\t\n\t@WebMethod public Bezeroa getBezeroa(String ErabiltzaileIzena);\n\t\n\t@WebMethod public Langilea getLangilea(String ErabiltzaileIzena);\n\t\n\t@WebMethod public ArrayList<Bezeroa> getBezeroak(String username, Bezeroa bezeroa);\n\t\n\t@WebMethod public Bezeroa bidaliMezua(Bezeroa nork, Bezeroa nori, String mezua, String gaia, String mota, double zenbatApostatu, double hilabeteanZenbat, double zenbatErrepikatuarentzat);\n\n\t@WebMethod public ArrayList<Mezua> getMezuak(Bezeroa bezeroa);\n\t\n\t@WebMethod public void mezuaIrakurri(Mezua mezua);\n\t\n\t@WebMethod public void removeMezua(Mezua mezua);\n\t\n\t@WebMethod public Bezeroa eguneratuEzarpenak(Bezeroa b, double komisioa, boolean publikoa);\n\t\n\t@WebMethod public void errepikatu(Bezeroa nork, Bezeroa nori, double apustatukoDena, double hilabetekoMax, double komisioa);\n\t\n\t@WebMethod public ArrayList<PronostikoaContainer> getPronostikoak(Apustua a);\n\t\n\t@WebMethod public ArretaElkarrizketa arretaMezuaBidali(ArretaElkarrizketa elkarrizketa, String mezua, boolean langileari);\n\t\n\t@WebMethod public ArretaElkarrizketa bezeroaEsleitu(Langilea langilea);\n\t\n\t@WebMethod public ArretaElkarrizketa arretaElkarrizketaSortu(Bezeroa bezeroa, String gaia, String mezua);\n\t\n\t@WebMethod public BezeroaContainer getBezeroaContainer(Bezeroa b);\n\t\n\t@WebMethod public void geldituElkarrizketa(ArretaElkarrizketa ae);\n\t\n\t@WebMethod public void amaituElkarrizketa(ArretaElkarrizketa ae);\n\t\n\t@WebMethod public void gehituPuntuazioa(ArretaElkarrizketa l, Integer x);\n\t\n\t@WebMethod public void eguneratuErrepikapenak();\n\n\t@WebMethod public ArrayList<Langilea> getLangileak();\n\t\n\t@WebMethod public ArrayList<ErrepikatuakContainer> getErrepikatzaileak(Bezeroa bezeroa);\n\t \n\t@WebMethod public void jarraitzeariUtzi(Errepikapena errepikapena);\n\t\t \n\t@WebMethod public ArrayList<ErrepikatuakContainer> getErrepikapenak(Bezeroa bezeroa);\n\t\n\t@WebMethod public ArretaElkarrizketa getArretaElkarrizketa(ArretaElkarrizketa ae);\n}", "public CompanyFacade() {\n }", "public WSEmpresaTest(Facade facade) {\n }", "public interface InventoryService {\n\n /**\n * Lists the inventory.\n * @return List of the inventory\n */\n List<Inventory> getInventoryList();\n\n /**\n * Executes an order using an OrderForm.\n * @param orderForm\n * @return\n * @throws Exception\n */\n List<Inventory> executeOrder(OrderForm orderForm) throws Exception;\n\n /**\n * Resets the data.\n */\n void reset();\n\n}", "public interface FlightService {\n\n /**\n * CREATE FLIGHT - adding new entity\n * @param flight entity of flight object\n * @return Flight object\n */\n Flight saveFlight(Flight flight);\n\n /**\n * READ FLIGHT - read exiting entity\n * @param id Long value of flight id\n * @return Flight object\n */\n Flight getFlight(Long id) throws DataAccessException;\n\n /**\n * UPDATE FLIGHT - update existing entity\n * @param flight entity of flight object\n * @return Flight object\n */\n Flight updateFlight(Flight flight);\n\n /**\n * DELETE FLIGHT - delete entity\n * @param flight Long value of flight id\n */\n void removeFlight(Flight flight);\n\n /**\n * FIND FLIGHT BY NAME - find all entities by parameter\n * @param name String value of flight name\n * @return List of Flight objects\n */\n List<Flight> findFlightByName(String name) throws DataAccessException;\n\n /**\n * FIND ALL FLIGHTS - find all entities\n * @return List of Flight objects\n */\n List<Flight> findAllFlights();\n\n /**\n * Add steward to flight\n * @param flight Flight where to add Steward\n * @param steward Steward to be add\n * @return List of Flight objects\n */\n Flight addStewardToFlight(Flight flight, Steward steward);\n\n /**\n * Validate Flight parameters - steward availibility, airplane availibility and time\n * @param flight validated Flight object\n * @return validation true or false if do not pass\n */\n boolean validateFlight(Flight flight);\n\n Flight removeStewardToFlight(Flight flight, Steward steward);\n}", "public interface MmiFacade {\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// application timing methods\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\t///\n\t/// dialogue\n\t///\n\n\t/**\n\t * Method called to notify interaction start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void interactionStarts(long ms);\n\n\t/**\n\t * Method called to notify interaction end.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void interactionEnds(long ms);\n\n\t///\n\t/// system turn\n\t///\n\n\t/**\n\t * Method called to notify system turn start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void systemTurnStarts(long ms);\n\n\t/**\n\t * Method called to notify system feedback start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void systemFeedbackStarts(long ms);\n\n\t/**\n\t * Method called to notify system action start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void systemActionStarts(long ms);\n\n\t/**\n\t * Method called to notify system action end.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void systemActionEnds(long ms);\n\n\t/**\n\t * Method called to notify system turn end.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void systemTurnEnds(long ms);\n\n\t///\n\t/// user turn\n\t///\n\n\t/**\n\t * Method called to notify user turn start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void userTurnStarts(long ms);\n\n\t/**\n\t * Method called to notify user feedback start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void userFeedbackStarts(long ms);\n\n\t/**\n\t * Method called to notify user action start.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void userActionStarts(long ms);\n\n\t/**\n\t * Method called to notify user action end.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void userActionEnds(long ms);\n\n\t/**\n\t * Method called to notify user turn end.\n\t * @param ms milliseconds (set 0 to use factory timestamps)\n\t */\n\tpublic abstract void userTurnEnds(long ms);\n\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// gui input methods\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\t/**\n\t * This method should be called on touch event\n\t * @param ms timestamp\n\t */\n\tpublic abstract void touch(long ms);\n\n\t/**\n\t * This method should be called on click event\n\t * @param ms timestamp\n\t */\n\tpublic abstract void click(long ms);\n\n\t/**\n\t * This method should be called on scroll event\n\t * @param ms timestamp\n\t */\n\tpublic abstract void scroll(long ms);\n\n\t/**\n\t * This method should be called on key-text (e.g. the \"a\"\n\t * character) event\n\t * @param ms timestamp\n\t */\n\tpublic abstract void keytext(long ms);\n\n\t/**\n\t * This method should be called on key-command (e.g. the\n\t * \"return\" key) event\n\t * @param ms timestamp\n\t */\n\tpublic abstract void keycommand(long ms);\n\n\t/**\n\t * This method should be called on key-explore (e.g. down\n\t * arrow) event\n\t * @param ms timestamp\n\t */\n\tpublic abstract void keyexplore(long ms);\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// speech input methods\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\n\t/// words\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for words.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void overallWords(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for words.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void substitutedWords(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for words.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void deletedWords(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for words.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void insertedWords(long ms, int n);\n\n\t/// sentences\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for sentences.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void overallSentences(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for sentences.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void substitutedSentences(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for sentences.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void deletedSentences(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for sentences.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void insertedSentences(long ms, int n);\n\n\t/// concepts\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for concepts.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void overallConcepts(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for concepts.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void substitutedConcepts(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for concepts.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void deletedConcepts(long ms, int n);\n\n\t/**\n\t * Method called when user speech input. This method is used\n\t * for concepts.\n\t * @param ms timestamp\n\t * @param n number of elements\n\t */\n\tpublic abstract void insertedConcepts(long ms, int n);\n\n\t///\n\t/// parsing results\n\t///\n\n\t/**\n\t * Method called when user speech input to indicate a\n\t * parsing result.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void correctlyParsedUtterance(long ms);\n\n\t/**\n\t * Method called when user speech input to indicate a\n\t * parsing result.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void partiallyParsedUtterance(long ms);\n\n\t/**\n\t * Method called when user speech input to indicate a\n\t * parsing result.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void incorrectlyParsedUtterance(long ms);\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// motion input methods\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\t/**\n\t * Method called when user do a motion-tilt.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void tilt(long ms);\n\t\n\t/**\n\t * Method called when user do a motion-twist.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void twist(long ms);\n\n\t/**\n\t * Method called when user do a motion-shake.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void shake(long ms);\n\n\t\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// gui output\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\t/**\n\t * Method called when system GUI output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newGuiElements(long ms, int n);\n\n\t/**\n\t * Method called when system GUI output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newGuiFeedback(long ms, int n);\n\n\t/**\n\t * Method called when system GUI output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newGuiNoise(long ms, int n);\n\n\t/**\n\t * Method called when system GUI output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newGuiQuestions(long ms, int n);\n\n\t/**\n\t * Method called when system GUI output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newGuiConcepts(long ms, int n);\n\n\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// speech output\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\t/**\n\t * Method called when system speech output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newSpeechElements(long ms, int n);\n\n\t/**\n\t * Method called when system speech output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newSpeechFeedback(long ms, int n);\n\n\t/**\n\t * Method called when system speech output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newSpeechNoise(long ms, int n);\n\n\t/**\n\t * Method called when system speech output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newSpeechQuestions(long ms, int n);\n\n\t/**\n\t * Method called when system speech output.\n\t * @param ms timestamp\n\t * @param n elements\n\t */\n\tpublic abstract void newSpeechConcepts(long ms, int n);\n\n\tpublic enum PromptType{\n\t\tPROMPT_CLOSED,\n\t\tPROMPT_HALFOPEN,\n\t\tPROMPT_NOQUESTION,\n\t\tPROMPT_OPEN\n\t}\n\n\t/**\n\t * Method called to denote the prompt type\n\t * @param ms\n\t * @param type\n\t */\n\tpublic abstract void newPromptType(long ms, PromptType type);\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// metacomm\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\t///\n\t/// general\n\t///\n\n\t/**\n\t * Method called when metacommunication data is\n\t * collected. This one is called when a help turn.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isHelpTurn(long ms);\n\n\t/**\n\t * Method called when metacommunication data is\n\t * collected. This one is called when a correction turn.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isCorrectionTurn(long ms);\n\n\t///\n\t/// system\n\t///\n\n\t/**\n\t * Method called when system metacommunication data is\n\t * collected. This one is called when an ASR rejection.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isASRRejection(long ms);\n\n\t/**\n\t * Method called when system metacommunication data is\n\t * collected. This one is called when a DIV rejection.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isDIVRejection(long ms);\n\n\t/**\n\t * Method called when system metacommunication data is\n\t * collected. This one is called when a GR rejection.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isGRRejection(long ms);\n\n\t///\n\t/// user\n\t///\n\n\t/**\n\t * Method called when user metacommunication data is\n\t * collected. This one is called when a timeout.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isTimeout(long ms);\n\n\t/**\n\t * Method called when user metacommunication data is\n\t * collected. This one is called when a cancel intent.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isCancel(long ms);\n\n\t/**\n\t * Method called when user metacommunication data is\n\t * collected. This one is called when a restart intent.\n\t * @param ms timestamp\n\t */\n\tpublic abstract void isRestart(long ms);\n\n\t/**\n\t * Method called when user metacommunication data is\n\t * collected. This one is called when a bargein.\n\t * @param ms timestamp\n\t * @param success result of bargein\n\t */\n\tpublic abstract void isBargein(long ms, boolean success);\n\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\t/// context update methods\n\t///\n\t/// ////////////////////////////////////////////\n\t///\n\n\n\t/**\n\t * This method should be called on physical context change\n\t * @param temperature\n\t * @param weather\n\t * @param noise\n\t * @param light\n\t */\n\tpublic abstract void physicalContextChange(long ms, \n\t\t\tint temperature, \n\t\t\tContextDescription.PhysicalEnvironment.Weather weather, \n\t\t\tint noise, \n\t\t\tint light);\n\n\t/**\n\t * This method should be called on user context change\n\t * @param age\n\t * @param gender\n\t * @param educationLevel\n\t * @param previousExperience\n\t */\n\tpublic abstract void userContextChange(long ms, \n\t\t\tint age, \n\t\t\tGender gender,\n\t\t\tEducationLevel educationLevel,\n\t\t\tPreviousExperience previousExperience);\n\n\t/**\n\t * This method should be called on social context change\n\t * @param company\n\t * @param arena\n\t */\n\tpublic abstract void socialContextChange(long ms, \n\t\t\tSocialCompany company,\n\t\t\tSocialArena arena);\n\n\n\t/**\n\t * This method should be called on time context change\n\t * @param currentTime\n\t */\n\tpublic abstract void timeContextChange(long ms, \n\t\t\tCalendar currentTime);\n\t\n\t/**\n\t * This method should be called on location context change\n\t * @param location\n\t * @param geoLocation\n\t * @param mobilityLevel\n\t */\n\tpublic abstract void locationContextChange(long ms, \n\t\t\tContextDescription.LocationTime.UserLocation location,\n\t\t\tLocation geoLocation,\n\t\t\tContextDescription.LocationTime.MobilityLevel mobilityLevel);\n\n\t/**\n\t * This method should be called on device context change\n\t * @param deviceType\n\t * @param screenSize\n\t * @param screenResolution\n\t * @param screenOrientation\n\t * @param screenBrightnessLevel\n\t * @param volumeLevel\n\t * @param memoryLoad\n\t * @param cpuLoad\n\t */\n\tpublic abstract void deviceContextChange(long ms, \n\t\t\tContextDescription.Device.DeviceType deviceType,\n\t\t\tContextDescription.Device.ScreenSize screenSize,\n\t\t\tContextDescription.Device.ScreenResolution screenResolution,\n\t\t\tContextDescription.Device.ScreenOrientation screenOrientation,\n\t\t\tint screenBrightnessLevel,\n\t\t\tint volumeLevel,\n\t\t\tint memoryLoad,\n\t\t\tint cpuLoad);\n\n\t/**\n\t * This method should be called on communication context change\n\t * @param wirelessAccessType\n\t * @param accessPointName\n\t * @param signalStrength\n\t * @param receivedDataThroughput\n\t * @param sentDataThroughput\n\t * @param rtt\n\t * @param srt\n\t */\n\tpublic abstract void communicationContextChange(long ms, \n\t\t\tContextDescription.Communication.WirelessAccessType wirelessAccessType,\n\t\t\tString accessPointName,\n\t\t\tint signalStrength,\n\t\t\tint receivedDataThroughput,\n\t\t\tint sentDataThroughput,\n\t\t\tint rtt,\n\t\t\tint srt\t);\n}", "public interface IBemListaInteractor {\n\n void buscarBensPorDepartamento(IBemListaPresenter listener);\n void atualizarListaBens(IBemListaPresenter listener);\n void buscarBemTipo(Context context, IBemListaPresenter listener);\n void buscarDadosQrCode(IBemListaPresenter listener);\n\n}", "public interface CarListService {\n\n public List<Transportation> getLocal();\n public List<Transportation> getLuxery();\n public List<Transportation> getExotic();\n}", "public interface JetspeedService\r\n{\r\n\t\r\n\t/**\r\n\t * Gets the jetspeed information.\r\n\t * \r\n\t * @param servProvCode the target agency code.\r\n\t * @param connType the DB connection type\r\n\t * \r\n\t * @return the jetspeed information\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tList<CustomizeProfileModel> getJetspeedInformationByAgencyCode(String servProvCode, String connType) throws AAException;\r\n\t\r\n\t/**\r\n\t * Creates the jetspeed informaiton.\r\n\t * \r\n\t * @param profiles the jetspeed information.\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tvoid copyJetspeedInformaitonToMiddleTable(List<CustomizeProfileModel> profiles) throws AAException;\r\n\t\r\n\t/**\r\n\t * Gets the jetspeed profile sequence.\r\n\t * \r\n\t * @return the jetspeed profile sequence\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tLong getJetspeedProfileSequence() throws AAException;\r\n\t\r\n\t/**\r\n\t * Gets the turbine user sequence.\r\n\t * \r\n\t * @return the turbine user sequence\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tLong getTurbineUserSequence() throws AAException;\r\n\r\n\t/**\r\n\t * Get Jetspeed information by user names.\r\n\t * \r\n\t * @param userNames the user names.\r\n\t * @param connType the DB connection type\r\n\t * \r\n\t * @return List CustomizeProfileModel\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tList<CustomizeProfileModel> getJetspeedProfilesByUserNames(List<String> userNames, String connType)\r\n\t\t\tthrows AAException;\r\n\r\n\t/**\r\n\t * Update jetspeed information.\r\n\t * \r\n\t * @param connType the DB connection type\r\n\t * @param userName the user name\r\n\t * \r\n\t * @return the turbine user\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n//\tvoid updateJetspeedInformaiton(List<CustomizeProfileModel> profiles, List<CustomizeProfileModel> dbProfiles,\r\n//\t\t\tString connType) throws AAException;\r\n\r\n\t\r\n\t/**\r\n\t * Gets the turbine user.\r\n\t * \r\n\t * @param userName the user name\r\n\t * @param connType the conn type\r\n\t * \r\n\t * @return the turbine user\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tTurbineUserModel getTurbineUser(String userName,String connType) throws AAException;\r\n\t\r\n\t/**\r\n\t * Migrate middle table data to Jetspeed DB..\r\n\t * \r\n\t * @param servProvCode the serv prov code\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t */\r\n\tvoid migrateMiddleTableDataToJetspeed(String servProvCode) throws AAException;\r\n\r\n\t/**\r\n\t * \r\n\t * Migrate Jetspeed DB to Middle Table.\r\n\t *\r\n\t * @param servProvCode the agency Code.\r\n\t * @throws AAException\r\n\t */\r\n\tvoid migrateJetspeedToMiddleTableData(String servProvCode) throws AAException;\r\n}", "public interface ItemSuitClient {\n\n public Response<List<ItemDTO>> querySuitsByItem(ItemQTO itemQTO,Long userId,String appkey);\n\n public Response<List<ItemDTO>> querySuit(ItemQTO itemQTO,Long userId,String appKey);\n\n public Response<ItemDTO> getSuit(Long sellerId,Long itemId,String appKey);\n\n public Response<Long> addRItemSuit(List<RItemSuitDTO> rItemSuitDTOList,String appKey);\n\n public Response<Long> addItemSuit(ItemDTO itemDTO,List<RItemSuitDTO> rItemSuitDTOList,String appKey);\n\n public Response<Long> disableSuit(Long sellerId,Long itemId,String appKey);\n\n public Response<ItemSuitDTO> getSuitExtraInfo(Long sellerId,Long itemId,String appKey);\n\n public Response<List<ItemSuitDTO>> queryItemSuitDiscount(ItemSuitQTO itemSuitQTO,String appKey);\n}", "public interface AppCarWashService {\n List<CarWash> selectByExample(CarWashExample example);\n\n /**\n * 洗车分页\n * @param map\n * @return\n */\n List<Map<String, Object>> selectCarWashList(Map<String,Object> map);\n\n /**\n * 洗车数统计\n * @param map\n * @return\n */\n List<Map<String, Object>> selectMouthCarWashSum(Map<String,Object> map);\n\n int countByExample(CarWashExample example);\n\n int countByToDay(CarWash record);\n}", "public interface IPermissionService extends IBaseService {\n\n public Integer initPermission(List<InitPermission> list) throws Exception;\n\n public List<UserPermission> listUserPermission(List<Integer> ids) throws Exception;\n\n Integer listPermissionEntityCount( Map<String,Object> paramMap)throws Exception;\n List<PermissionEntity> listPermissionEntity(Map<String,Object> paramMap)throws Exception;\n List<PermissionEntity> listPermissionEntity2(Map<String,Object> paramMap)throws Exception;\n\n PermissionEntity getPermission(PermissionEntity param)throws Exception;\n\n\n}", "@Local\npublic interface HandleUser {\n\n /**\n * Method that check the user credential and return the id of the logged\n * user otherwise throw an exception to signal an error in the\n * authentication phase.\n *\n * @param username Username of the user\n * @param password Password of the user\n * @return id of the logged user\n * @throws ErrorRequestException expection throw if errors in the\n * authentication phase\n */\n long checkAccessCredential(String username, String password)\n throws ErrorRequestException;\n\n /**\n * Method that find and return the data of the user id passed via parameter.\n *\n * @param userID id of the user connected to MeteoCal\n * @return UserDTO the user data object\n * @throws ErrorRequestException if there is a problem retriving the user\n * info\n */\n UserDTO getUser(long userID)\n throws ErrorRequestException;\n\n /**\n * Method that add a new user to the MeteoCal application\n *\n * @param newUser the new user to add in MeteoCal\n * @throws ErrorRequestException\n */\n void addUser(UserDTO newUser) throws ErrorRequestException;\n\n /**\n * Method that handle the login of the user in MeteoCal\n *\n * @param loginUser the user that whant to login in MeteoCal\n * @return true if the login process was succesful; false otherwise.\n */\n boolean doLogin(UserDTO loginUser);\n\n /**\n * Method that return the owner of a calendar\n *\n * @param calendarId the calendar id of the user returned\n * @return the owner of the calendar; null otherwise;\n */\n UserDTO getOwner(String calendarId);\n\n /**\n * Method that search the user with a PUBLIC Calendar that match the given\n * query\n *\n * @param query\n * @return the list of the result that match the query\n */\n List<ResultDTO> search(String query);\n\n /**\n * Method that search the user that match the given query\n *\n * @param query\n * @return the list of the result that match the query\n */\n List<ResultDTO> searchUser(String query);\n\n /**\n * Method that change the user settings\n *\n * @param loggedUser the user with the new settings\n * @throws ErrorRequestException\n */\n void changeSettings(UserDTO loggedUser) throws ErrorRequestException;\n\n /**\n * Method that return the visibility of the given calendar id\n *\n * @param calendarId\n * @return Visibility.PUBLIC or Visibility.PRIVATE for the given calendarId\n * @throws it.polimi.meteocal.exception.ErrorRequestException\n */\n Visibility getCalendarVisibility(String calendarId) throws ErrorRequestException;\n\n /**\n * Method that change the calendar visibility of the current logged user\n *\n * @param visibility the wanted visibility for the current logged calendar\n * user\n * @throws it.polimi.meteocal.exception.ErrorRequestException\n */\n void changeCalendarVisibility(Visibility visibility) throws ErrorRequestException;\n\n /**\n * Method that save the notification in the DB\n *\n * @param notification the notification to save in the DB\n * @return true if the notification is added, false otherwise\n */\n boolean addNotification(EventNotificationDTO notification);\n\n /**\n * Method that handle the user accepts to a notification\n *\n * @param selectedNotification the notification that the user have accepted\n */\n void acceptNotification(NotificationDTO selectedNotification);\n\n /**\n * Method that handle the user declines to a notification\n *\n * @param selectedNotification the notification that the user have declined\n */\n void declineNotification(NotificationDTO selectedNotification);\n\n /**\n * Method that add the calendar to the logged user prefered\n *\n * @param calendarId the id of the prefered calendar to add\n */\n void addPreferedCalendar(String calendarId);\n\n /**\n * Method that remove the calendar from the logged user prefered\n *\n * @param calendarId the id of the prefered calendar to remove\n */\n void delPreferedCalendar(String calendarId);\n\n /**\n * Method that remove outdated notification from the user that refers to\n * passed event\n */\n void removeOldNotification();\n\n}", "public interface ItemService {\n /**\n * 根据商品Id查询详情\n *\n * @param itemId 商品Id\n * @return 商品\n */\n Items queryItemById(String itemId);\n\n /**\n * 根据商品Id查询商品图片列表\n *\n * @param itemId 商品Id\n * @return 商品图片\n */\n List<ItemsImg> queryItemImageList(String itemId);\n\n /**\n * 根据商品Id查询商品规格\n *\n * @param itemId 商品Id\n * @return 商品规格\n */\n List<ItemsSpec> queryItemSpecList(String itemId);\n\n /**\n * 根据商品Id查询商品参数\n *\n * @param itemId 商品Id\n * @return 商品参数\n */\n ItemsParam queryItemParam(String itemId);\n\n /**\n * 根据商品Id查询商品评价\n *\n * @param itemId 商品Id\n * @return 商品评价\n */\n CommentLevelCountVO queryCommentCount(String itemId);\n\n /**\n * 根据商品Id查询商品的评价(分页)\n *\n * @param itemId 商品Id\n * @param level 等级\n * @return 商品评价\n */\n PagingGridVO queryPagingComment(String itemId, int level, Integer page, Integer pageSize);\n\n /**\n * 搜索商品列表\n *\n * @param keyword 关键字\n * @param sort 排序字段\n * @param page 当前页\n * @param pageSize 每页显示的记录数\n */\n PagingGridVO queryItem(String keyword, String sort, Integer page, Integer pageSize);\n\n\n /**\n * 搜索商品列表\n */\n PagingGridVO queryItem(Integer categoryId, String sort, Integer page, Integer pageSize);\n\n /**\n * 根据规格ids查询最新的购物车中的商品数据(用于刷新渲染购物车中的商品数据)\n */\n List<ShopCartVO> queryItemsBySpecIds(String specIds);\n\n /**\n * 根据商品规格Id,获取规格对象的具体信息\n *\n * @param specId 商品规格Id\n * @return 规格对象\n */\n ItemsSpec queryItemSpecById(String specId);\n\n /**\n * 根据商品Id,获得商品图片主图url\n *\n * @param itemId 商品Id\n * @return 商品图片主图url\n */\n ItemsImg queryItemMainImageById(String itemId);\n}", "public interface WikiAPIService {\n\n // Set a constant of links limits.\n int titleLimits = 200;\n\n /**\n * GET HTTP function to return Wiki extracts from url. Query parameter for the title of\n * the article is added to the function via the @Query annotation. The rest of query\n * parameters are hard-coded since they are always needed.\n *\n * The query parameter 'titles' are added in a {Title1}|{Title2}|...etc. format.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve extracts and thumbnail image associated with article\n \"&prop=extracts|pageimages\" +\n \"&redirects\" +\n // Return extract in plain text (Boolean)\n \"&explaintext=1\" +\n // Return only the intro section (Boolean)\n \"&exintro=1\" +\n // Return the page ids as a list\n \"&indexpageids\" +\n // The max width of the thumbnail.\n \"&pithumbsize=1080\" +\n // Return in a JSON format.\n \"&format=json\" +\n // Return new json format with proper page array.\n \"&formatversion=2\")\n Call<WikiExtractsJSONResponse> requestExtracts(@Query(\"titles\") String titles);\n\n /**\n * GET HTTP function to return a number of featured Wikipedia link titles. These\n * link titles will be chosen at random to then be inserted into the requestExtracts()\n * function that will bring the extracts of these titles.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve title links\n \"&prop=links\" +\n // Retrieve links in the main page\n \"&titles=メインページ\" +\n // Only return articles (Not users or meta pages)\n \"&plnamespace=0\" +\n // Return a limit number defined in companion object\n \"&pllimit=\" + titleLimits +\n // Return in json format\n \"&format=json\" +\n // Return new json format\n \"&formatversion=2\")\n Call<WikiTitlesJSONResponse> requestDailyTitles();\n}", "private LOCFacade() {\r\n\r\n\t}", "public interface AutioSettingService {\n /***\n * 语音设置\n * @param pd\n * @return\n * @throws Exception\n */\n PageData saveInfo(PageData pd) throws Exception;\n\n /***\n * 语音设置查询\n * @param pd\n * @return\n * @throws Exception\n */\n PageData queryInfo(PageData pd) throws Exception;\n\n}", "private static interface Service {}", "public interface VSphereApi extends Closeable {\n @Delegate\n ClusterProfileManager getClusterProfileManagerApi();\n @Delegate\n AlarmManager getAlarmManagerApi();\n @Delegate\n AuthorizationManager getAuthorizationManagerApi();\n @Delegate\n CustomFieldsManager getCustomFieldsManagerApi();\n @Delegate\n CustomizationSpecManager getCustomizationSpecManagerApi();\n @Delegate\n EventManager getEventManagerApi();\n @Delegate\n DiagnosticManager getDiagnosticManagerApi();\n @Delegate\n DistributedVirtualSwitchManager getDistributedVirtualSwitchManagerApi();\n @Delegate\n ExtensionManager getExtensionManagerApi();\n @Delegate\n FileManager getFileManagerApi();\n @Delegate\n GuestOperationsManager getGuestOperationsManagerApi();\n @Delegate\n HostLocalAccountManager getAccountManagerApi();\n @Delegate\n LicenseManager getLicenseManagerApi();\n @Delegate\n LocalizationManager getLocalizationManagerApi();\n @Delegate\n PerformanceManager getPerformanceManagerApi();\n @Delegate\n ProfileComplianceManager getProfileComplianceManagerApi();\n @Delegate\n ScheduledTaskManager getScheduledTaskManagerApi();\n @Delegate\n SessionManager getSessionManagerApi();\n @Delegate\n HostProfileManager getHostProfileManagerApi();\n @Delegate\n IpPoolManager getIpPoolManagerApi();\n @Delegate\n TaskManager getTaskManagerApi();\n @Delegate\n ViewManager getViewManagerApi();\n @Delegate\n VirtualDiskManager getVirtualDiskManagerApi();\n @Delegate\n OptionManager getOptionManagerApi();\n @Delegate\n Folder getRootFolder();\n @Delegate\n ServerConnection getServerConnection();\n\n}", "public interface NhanVienService {\n @GET(\"api/User\")\n Call<List<NhanVien>> getAll(@Query(\"authentication\") String authentication);\n\n @GET(\"api/User\")\n Call<NhanVien> chiTiet(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @POST(\"api/User\")\n Call<NhanVien> them(@Body NhanVienRequest nhanVienRequest);\n\n @DELETE(\"api/User\")\n Call<Object> xoa(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @PUT(\"api/User\")\n Call<Object> sua(@Body NhanVienRequest nhanVienRequest);\n}", "public interface QuizService {\n /**\n * GET getQuiz method\n * @param authorization It's a token required to authorization.\n * @return Quiz object from api.\n */\n @GET(\"/api/quiz/{id}\")\n Call<Quiz> getQuiz(@Header(\"X-Auth-Token\") String authorization, @Path(\"id\") Long id);\n\n /**\n * GET getQuizs method\n * @param authorization It's a token required to authorization.\n * @return List of quiz objects from api.\n */\n @GET(\"/api/quiz\")\n Call<List<Quiz>> getQuizs(@Header(\"X-Auth-Token\") String authorization);\n\n /**\n * POST voteOnAnswer method\n * @param authorization It's a token required to authorization.\n * @param id of answer.\n */\n @POST(\"/api/voteOnAnswer/{answerId}\")\n Call<Void> voteOnAnswer(@Header(\"X-Auth-Token\") String authorization, @Path(\"answerId\") Long id);\n}", "public interface WikiService {\n\n\n //https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=37.786971%7C-122.399677\n @GET(\"/w/api.php?action=query&list=geosearch&format=json\")\n void getArticleIds(@Query(\"gsradius\") String radius, @Query(\"gscoord\") String coord, Callback<Result> resultListener);\n\n\n // https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page|Fksdlfsdss|Talk:&indexpageids&format=json&continue=\n // http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=jsonfm&continue=&pageids=123|456\n @GET(\"/w/api.php?action=query&prop=revisions&rvprop=content&format=json&continue=\")\n void getArticleContents(@Query(\"pageids\") String pageIds, Callback<fr.vpm.wikipod.wiki.http.api.Query> resultListener);\n\n}", "public interface LoanFirstService {\n /**\n * 贷款初审数据\n * @return\n */\n List<Map> getList(Map map);\n\n /**\n * 信息审查\n * @param map\n * @return\n */\n List<Map> reList(Map map);\n\n /**\n * 根据共同借款人姓名查询信息\n * @param map\n * @return\n */\n List<Map> rethList(Map map);\n\n /**\n * 初审通过\n * @return\n */\n int firstUpdate(Map map);\n\n /**\n * 初审驳回\n * @return\n */\n int twoUpdate(Map map);\n}", "public interface Service {\n\n /**\n * Create a new Service\n *\n * @param hostIp database IP address\n * @param user database user name\n * @param password database password\n * @return a Service using the given credentials\n */\n static Service create(String hostIp, String user, String password) {\n return new ServiceImpl(hostIp, user, password);\n }\n\n\n /**\n * Retrieve historical data points for a given symbol.\n *\n * @param symbol Symbol we want history data for.\n * @param startTime Start time (inclusive)\n * @param endTime End time (inclusive)\n * @param numberOfPoints Approximate number of points to be returned\n * @return The stream of filtered data points of the given symbol and time interval\n */\n Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);\n\n /**\n * @param symbol the symbol for which to get data\n * @return the most recent data point for the given symbol\n */\n Optional<DataPoint> getMostRecentDataPoint(Symbol symbol);\n\n /**\n * @return the stream of all symbols of the database\n */\n Stream<Symbol> getSymbols();\n\n /**\n * Select whether to use Speedment in memory acceleration when looking up data\n *\n * @param accelerate true for using Speedment in memory acceleration, false for direct SQL\n */\n Service withAcceleration(boolean accelerate);\n}", "public interface OrderService {\n /**\n * Create new order object and put it to database\n *\n * @param cart cart with data about new order\n * @param user session user - order owner\n * @throws FlowerValidationException if flowers count in cart more then count in shop\n * @see Cart\n */\n void create(Cart cart, User user) throws FlowerValidationException;\n\n /**\n * Change order status in database to PAID\n *\n * @param order order to update\n * @see flowershop.backend.enums.OrderStatus\n */\n void pay(Order order);\n\n /**\n * Change order status in database to CLOSED\n *\n * @param order order to update\n * @see flowershop.backend.enums.OrderStatus\n */\n void close(Order order);\n\n /**\n * Delete corresponding order object from database\n *\n * @param id order id to delete\n */\n void delete(Long id);\n\n /**\n * Find order in database with given id\n *\n * @param id order id\n * @return Order dto\n */\n Order find(Long id);\n\n /**\n * Get all orders from database\n *\n * @return orders list\n */\n List<Order> getAll();\n\n /**\n * Get all orders of given user from database\n *\n * @param user orders owner\n * @return orders list\n */\n List<Order> getByUser(User user);\n\n /**\n * Get items list (bought flowers) of given order\n *\n * @param order order to get details\n * @return items list (bought flowers)\n * @see OrderFlowerData\n */\n List<OrderFlowerData> getFlowersData(Order order);\n\n /**\n * Generates detailed cart from regular cart to represent data\n *\n * @param cart Cart to be detailed\n * @return DetailedCart\n * @see Cart\n * @see DetailedCart\n */\n DetailedCart generateDetailedCart(Cart cart);\n}", "public interface OrderService {\n\n /**\n * Returns route time\n * @param routeDTO route data transfer object\n * @param orderDTO order dto for building route\n * @return\n */\n Long getRouteTime(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns drivers from database by specified order duration and order dto\n * @param time order duration\n * @param orderDTO order dto for building a route\n * @return linked hash map, key - drivers' id, value - drivers\n */\n LinkedHashMap<Long, Driver> getDriversForOrder(Long time, OrderDTO orderDTO);\n\n /**\n * Returns trucks from database by specified weight of cargoes\n * @param weight cargoes's weight\n * @return linked hash map, key - trucks' id, value - trucks\n */\n LinkedHashMap<Long, Truck> getTrucksForOrder(Long weight);\n\n /**\n * Specifies drop locations for picked up cargoes\n * @param routeDTO route dto with route points\n * @param points temp collection for building sub route\n */\n void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns weight of cargoes\n * @param routePointDTO temp route point dto with cargo or drop location\n * @param points already built route as list of ordered route points\n * @param weight previous weight data before adding new route point\n * @return weight\n */\n Long getWeight(RoutePointDTO routePointDTO, List<RoutePointDTO> points, Long weight);\n\n /**\n * Adds new route point to the route\n * @param routePointDTO new route point dto\n * @param routeDTO route data transfer object\n * @param points route as an ordered list of route points dtos\n */\n void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns all cities from database\n * @return linked hash map of cities, key - cities' id\n */\n LinkedHashMap<Long, City> getAllCitiesMap();\n\n /**\n * Adds order to a database\n * @param routeDTO route for building path for the order\n * @param orderDTO complex order data\n */\n void saveOrder(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns orders' from database as dtos\n * @return unsorted list of orders' data transfer objects\n */\n List<OrderDTO> getAllOrdersDTO();\n\n /**\n * Returns route points for order\n * @param order order entity for getting specified route points\n * @return unsorted list of route points\n */\n List<RoutePoint> getRoutePointsForOrder(Order order);\n\n /**\n * Returns cities dto adopted for RESTful architecture\n * @param id order id for retrieving data from database\n * @return unsorted list of cities as dtos adopted for RESTful architecture\n */\n List<CityDTORest> getRoutePointsForOrder(Long id);\n\n /**\n * Returns cargoes from database for the given order dto\n * @param orderDTO order dto\n * @return unsorted list of cargoes\n */\n List<Cargo> getCargoesForOrder(OrderDTO orderDTO);\n\n /**\n * Deletes order from database\n * @param id order's id for deletion\n */\n void deleteOrder(Long id);\n\n /**\n * Updates order\n * @param order order entity for updating\n */\n void updateOrder(Order order);\n\n /**\n * Return orders as dtos adopted for RESTful architecture\n * @return unsorted list of orders dtos adopted for RESTful architecture\n */\n List<OrderDTORest> getAllOrdersDTORest();\n\n /**\n * Delete temp route point dto from the route dto\n * @param routePoint temp route point dto\n * @param routeDTO route dto collected already built route\n */\n void deleteRoutePoint(String routePoint, RouteDTO routeDTO);\n\n /**\n * Processes new route point, recalculates distance and weight\n * @param orderDTO order dto\n * @param routeDTO route dto\n * @param routePointDTO new route point\n * @return temp cargoes weight\n */\n Long tempProcessPoint(OrderDTO orderDTO, RouteDTO routeDTO, RoutePointDTO routePointDTO);\n}", "public interface IntegralService {\n public Integral getIntegralByUserId(Integer userId);\n\n List<Integral> getIntegralListByUserId(Integer userId);\n\n void addIntegralByUserId(Integer userId);\n\n Integral hasIntegralByUserId(Integer userId);\n\n Integral getRecentlyIntegralByUserId(Integer userId);\n\n List<Integral> getIntegralDays(Integer userId);\n\n IntegralDto getSignDayCount(Integer userId);\n}", "private RecipleazBackendService() {\n }", "public interface HueService {\n @PUT(\"/api/{auth}/lights/{id}/state\")\n Call<List<HueResponse>> putDevice(@Path(\"auth\") String auth,\n @Path(\"id\") String id,\n @Body HueCi body);\n @GET(\"/api/nupnp\")\n Call<List<Hub>> getInternalAddress();\n @POST(\"/api\")\n Call<List<ConnectionRes>> getHueUserName(@Body ConnectionReq devicetype);\n @GET(\"/api/{username}/lights\")\n Call<HashMap<String,Object>> getLights(@Path(\"username\") String username);\n @PUT(\"/api/{username}/lights/{ID}/state\")\n Call<List<ConnectionRes>> changeBulbState(@Path(\"username\") String username,\n @Path(\"ID\") String ID,\n @Body ConnectionReq onOffState);\n public class HueCi {\n public boolean on;\n\n public HueCi(boolean on) {\n this.on = on;\n }\n }\n\n public class HueResponse {\n public Map<String, Boolean> success;\n }\n}" ]
[ "0.6694303", "0.66918993", "0.649613", "0.6476743", "0.6403728", "0.63483965", "0.63254714", "0.61969596", "0.6010587", "0.5998647", "0.59929705", "0.59515184", "0.59502137", "0.59482574", "0.58981293", "0.5882454", "0.5876504", "0.5867974", "0.5863893", "0.5863893", "0.5863893", "0.5855591", "0.58501834", "0.58439463", "0.5843729", "0.579665", "0.57963943", "0.5772186", "0.5769574", "0.57676464", "0.5759678", "0.5757191", "0.5755344", "0.5729749", "0.57148", "0.5707576", "0.5706861", "0.57064635", "0.5706365", "0.5704813", "0.5700425", "0.5694927", "0.5680459", "0.5680159", "0.56797045", "0.56657344", "0.5662391", "0.5651848", "0.5649777", "0.5645876", "0.56451076", "0.564388", "0.56369203", "0.563476", "0.562971", "0.56293446", "0.5607617", "0.56057876", "0.5601654", "0.55984265", "0.55980486", "0.55971897", "0.55971295", "0.55949545", "0.5594339", "0.5593201", "0.5590925", "0.55906767", "0.5589002", "0.558744", "0.5586025", "0.5581124", "0.5580806", "0.55782926", "0.5577297", "0.557448", "0.5571016", "0.5569472", "0.5564028", "0.5561904", "0.55602187", "0.55581605", "0.5553305", "0.55516857", "0.5551474", "0.55471504", "0.5542428", "0.55415696", "0.5539944", "0.5539759", "0.5537785", "0.55372083", "0.55344105", "0.55315113", "0.5528362", "0.55280244", "0.5526515", "0.5525193", "0.55247533", "0.5522767", "0.5519615" ]
0.0
-1
But also provides the way to use elements of subsystem directly:
public BreakController getBreakController() { return breakController; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PnuematicSubsystem() {\n\n }", "private ExampleSubsystem()\n {\n\n }", "protected String getSubsystem() {\n return subsystem;\n }", "void importSubsystem() {\n\t\t//Update attributes of target subsystem//\r\n\t\t/////////////////////////////////////////\r\n\t\tblockElementInto.setAttribute(\"Name\", blockElementFrom.getAttribute(\"Name\"));\r\n\t\tblockElementInto.setAttribute(\"Descriptions\", blockElementFrom.getAttribute(\"Descriptions\"));\r\n\t}", "private PowerSubsystem() {\n mPdp = new PowerDistributionPanel(0);\n addChild(\"PowerDistributionPanel\",mPdp);\n }", "private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }", "public interface Subsystem {\n public String getName();\n public boolean isInitialized();\n public void init();\n public void destroy();\n}", "org.hyperflex.roscomponentmodel.System getSystem();", "public static SubsystemNodeContainer createSubsystemNodeContainer() {\n Map<String, String> properties = new HashMap<String, String>();\n properties.put(\"String\", \"String\");\n TransferHandler handler = new TransferHandler(\"\");\n SubsystemNodeContainer snc = null;\n try {\n snc = new SubsystemNodeContainer(AccuracyTestHelper.createGraphNodeForSubsystem(), properties, handler);\n } catch (IllegalGraphElementException e) {\n TestCase.fail(\"Should not throw exception here.\");\n }\n return snc;\n }", "@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Test\n public void testSubsystem1_1() throws Exception {\n KernelServices servicesA = super.createKernelServicesBuilder(createAdditionalInitialization())\n .setSubsystemXml(readResource(\"keycloak-1.1.xml\")).build();\n Assert.assertTrue(\"Subsystem boot failed!\", servicesA.isSuccessfulBoot());\n ModelNode modelA = servicesA.readWholeModel();\n super.validateModel(modelA);\n }", "public IRSensorSubsystem() {\n\n }", "public DriveSubsystem() {\n }", "public interface OsSystemCycle extends EcucContainer {\n}", "public static Subsystem getWpiSubsystem()\n {\n if ( ourInstance == null )\n {\n throw new IllegalStateException( myName + \" Not Constructed Yet\" );\n }\n return (Subsystem) ourInstance;\n }", "ModularizationElement createModularizationElement();", "public interface ComponentSystem {\n /**\n * AddListener's common function, according event type to add certain listener\n * \n * @param listener listener to be add\n */\n public void addListener(EventListener listener);\n\n /**\n * @return listener type\n */\n public ListenerType getListenerType();\n\n /**\n * Set the component name\n * \n * @param name name of component\n */\n public void setComponentName(ComponentName name);\n\n /**\n * @return component name\n */\n public ComponentName getComponentName();\n}", "@UserScope\n@Subcomponent(\n modules = {\n UserModule.class\n }\n)\npublic interface UserComponent {\n}", "public void registerSubsystem(Subsystem subsystem) {\n register((Object) subsystem);\n\n subsystems.put(subsystem.getName(), subsystem);\n }", "public interface Software extends Item, Technical\r\n{\r\n\t/**\r\n\t * A list of services provided by software\r\n\t * This is used in signals and messages between\r\n\t * software.\r\n\t *\r\n\t * @author Bo Zimmerman\r\n\t *\r\n\t */\r\n\tpublic enum SWServices\r\n\t{\r\n\t\tTARGETING,\r\n\t\tIDENTIFICATION,\r\n\t\tCOORDQUERY\r\n\t}\r\n\r\n\t/**\r\n\t * The parent menu that this software gets access from.\r\n\t * When Software is available from root, \"\" is returned.\r\n\t * @return parent menu that this software gets access from\r\n\t */\r\n\tpublic String getParentMenu();\r\n\r\n\t/**\r\n\t * The parent menu that this software gets access from.\r\n\t * When Software is available from root, \"\" is set.\r\n\t *\r\n\t * @param name parent menu that this software gets access from\r\n\t */\r\n\tpublic void setParentMenu(String name);\r\n\r\n\t/**\r\n\t * Returns the internal name of this software.\r\n\t * @return the internal name of this software.\r\n\t */\r\n\tpublic String getInternalName();\r\n\r\n\t/**\r\n\t * The internal name of this software.\r\n\t *\r\n\t * @param name the internal name of this software.\r\n\t */\r\n\tpublic void setInternalName(String name);\r\n\r\n\t/**\r\n\t * Returns settings specific to this disk.\r\n\t *\r\n\t * @see Software#setSettings(String)\r\n\t *\r\n\t * @return settings\r\n\t */\r\n\tpublic String getSettings();\r\n\r\n\t/**\r\n\t * Sets settings specific to this disk.\r\n\t *\r\n\t * @see Software#getSettings()\r\n\t *\r\n\t * @param settings the new settings\r\n\t */\r\n\tpublic void setSettings(final String settings);\r\n\r\n\t/**\r\n\t * Returns whether the given computer-entry command\r\n\t * should be responded to by THIS software object\r\n\t * on an activation command.\r\n\t * @param word the computer-entry command entered\r\n\t * @return true if this software should respond.\r\n\t */\r\n\tpublic boolean isActivationString(String word);\r\n\r\n\t/**\r\n\t * Returns whether the given computer-entry command\r\n\t * should be responded to by THIS software object\r\n\t * on a deactivation command.\r\n\t * @param word the computer-entry command entered\r\n\t * @return true if this software should respond.\r\n\t */\r\n\tpublic boolean isDeActivationString(String word);\r\n\r\n\t/**\r\n\t * Returns whether the given computer-entry command\r\n\t * should be responded to by THIS software object\r\n\t * on a WRITE/ENTER command.\r\n\t * @param word the computer-entry command\r\n\t * @param isActive true if the software is already activated\r\n\t * @return true if this software can respond\r\n\t */\r\n\tpublic boolean isCommandString(String word, boolean isActive);\r\n\r\n\t/**\r\n\t * Returns the menu name of this software, so that it can\r\n\t * be identified on its parent screen.\r\n\t * @return the menu name of this software\r\n\t */\r\n\tpublic String getActivationMenu();\r\n\r\n\t/**\r\n\t * Adds a new message to the screen from this program, which\r\n\t * will be received by those monitoring the computer\r\n\t * @see Software#getScreenMessage()\r\n\t * @see Software#getCurrentScreenDisplay()\r\n\t * @param msg the new message for the screen\r\n\t */\r\n\tpublic void addScreenMessage(String msg);\r\n\r\n\t/**\r\n\t * Returns any new messages from this program when\r\n\t * it is activated and on the screen. Seen by those\r\n\t * monitoring the computer.\r\n\t * @see Software#addScreenMessage(String)\r\n\t * @see Software#getCurrentScreenDisplay()\r\n\t * @return the new screen messages\r\n\t */\r\n\tpublic String getScreenMessage();\r\n\r\n\t/**\r\n\t * Returns the full screen appearance of this program when\r\n\t * it is activated and on the screen. Only those intentially\r\n\t * looking at the screen again, or forced by the program, will\r\n\t * see this larger message.\r\n\t * @see Software#addScreenMessage(String)\r\n\t * @see Software#getScreenMessage()\r\n\t * @return the entire screen message\r\n\t */\r\n\tpublic String getCurrentScreenDisplay();\r\n\r\n\t/**\r\n\t * Software runs on computers, and computers run on power systems.\r\n\t * This method tells the software what the power system \"circuit\" key\r\n\t * is that the computer host is running on, allowing the software to\r\n\t * find other equipment on the same circuit and control it.\r\n\t * @param key the circuit key\r\n\t */\r\n\tpublic void setCircuitKey(String key);\r\n\r\n\t/**\r\n\t * An internal interface for various software procedure\r\n\t * classes, allowing software to be more \"plug and play\".\r\n\t * \r\n\t * @author BZ\r\n\t *\r\n\t */\r\n\tpublic static interface SoftwareProcedure\r\n\t{\r\n\t\tpublic boolean execute(final Software sw, final String uword, final MOB mob, final String unparsed, final List<String> parsed);\r\n\t}\r\n}", "public HangerSubsystem() {\n // WRITE CODE BETWEEN THESE LINES -------------------------------------------------------- //\n // TODO: configure and initialize motor (if necessary)\n\n // TODO: configure and initialize sensor (if necessary)\n\n // ^^-----------------------------------------------------------------------------------^^ //\n }", "public interface GenericScenePart extends ICompositor, LNamedElement\n{\n}", "public DriveWithJoystick(DriveSystem subsystem) {\n // Adds DriveSystem as a requirement subsystem, allowing methods from the subsystem to be called\n drive = subsystem;\n addRequirements(subsystem);\n\n // Instantiation of RobotContainer instance used for joystick input\n robotcontainer = RobotContainer.getInstance();\n\n }", "public void setUp() {\n subsystem = new SubsystemImpl();\n clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n action = new CutSubsystemAction(subsystem);\n }", "public abstract void setupComponent();", "Element() {\n\t}", "public interface ISystem extends INonFlowObject {\n\n}", "public Subsystem1() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\nspeedController1 = new PWMVictorSPX(0);\naddChild(\"Speed Controller 1\",speedController1);\nspeedController1.setInverted(false);\n \nspeedController2 = new PWMVictorSPX(1);\naddChild(\"Speed Controller 2\",speedController2);\nspeedController2.setInverted(false);\n \nspeedController3 = new PWMVictorSPX(2);\naddChild(\"Speed Controller 3\",speedController3);\nspeedController3.setInverted(false);\n \nspeedController4 = new PWMVictorSPX(3);\naddChild(\"Speed Controller 4\",speedController4);\nspeedController4.setInverted(false);\n \nmecanumDrive1 = new MecanumDrive(speedController1, speedController2,\nspeedController3, speedController4);\naddChild(\"Mecanum Drive 1\",mecanumDrive1);\nmecanumDrive1.setSafetyEnabled(true);\nmecanumDrive1.setExpiration(0.1);\nmecanumDrive1.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "private DisplayDevice(){\t\t\r\n\t\t\r\n\t}", "public interface XulLine extends XulComponent {\n\n}", "public static UnitSystems GetUnitSystem(Units unit)\n {\n return MethodsCommon.GetSystemFromUnit(unit, false, true);\n }", "public void addToComponent(String objective, OpSystem system);", "Package getSubp();", "public RobotContainer() {\n m_pathChooser = new SendableChooser<String>();\n m_pathChooser.addOption(\"Drive 10\", \"drive_ten_\");\n // Setup the Shuffleboard Tab for testing\n m_ProfileTab = Shuffleboard.getTab(\"ProfileTest\");\n\n \n \n // Set the default commands for the subsystems\n m_drive_train.setDefaultCommand(new DefaultDriveTrainCommand(m_drive_train, m_driver_controller));\n\n // Configure the button bindings\n // NOTE -- This should not be called until all the subsystems have been instantiated and the \n // default commands for them have been set.\n configureButtonBindings();\n\n // Setup Shuffleboard layouts\n setupShuffleboardComponents();\n }", "public ScControl()\n {\n register();\n install();\n }", "@Subcomponent(modules = FoodModule.class)\npublic interface SubComponent {\n void inject(ThirdActivity activity);\n}", "public DriveSubsystem() {\n\t\tJaguar frontLeftCIM = new Jaguar(RobotMap.D_FRONT_LEFT_CIM);\n\t\tJaguar rearLeftCIM = new Jaguar(RobotMap.D_REAR_LEFT_CIM);\n\t\tJaguar frontRightCIM = new Jaguar(RobotMap.D_FRONT_RIGHT_CIM);\n\t\tJaguar rearRightCIM = new Jaguar(RobotMap.D_REAR_RIGHT_CIM);\n\t\t\n\t\tdrive = new RobotDrive(frontLeftCIM, rearLeftCIM, frontRightCIM, rearRightCIM);\n\t}", "public ChassisSubsystem() {\n \tleftMotor.setInverted(RobotMap.leftMotorInverted);\n \trightMotor.setInverted(RobotMap.rightMotorInverted);\n \tleftMiniCIM.setInverted(RobotMap.leftMiniCIMInverted);\n \trightMiniCIM.setInverted(RobotMap.rightMiniCIMInverted);\n }", "public abstract String getSystemName();", "static public void main(String[] args){\n IA ia = new UberComponent(); IA ia2 = (IA) ia; ia2.SayHello(\",\");\n //--------------------- Check For Symmetry\n IB ia3 = (IB) ia; ia2 = (IA) ia3; ia2.SayHello(\",\"); ia3.SayHello2(\",\");\n //----------- Check For Transitivity\n IC ia4 = (IC) ia3; IA ia5 = (IA) ia4; ia5.SayHello(\",\"); a4.SayHello3(\"m\");\n }", "public Component getSelf(ExecutionCtrl exec);", "@FragmentScope\n@Subcomponent(modules = {MediaTekModule.class})\npublic interface FragmentComponent {\n\n Processor getProcessor();\n\n Mobile getMobile();\n\n MediaTek getMediaTek();\n\n @Subcomponent.Builder\n interface Builder {\n @BindsInstance\n Builder setClockSpeed(@Named(\"clockSpeed\") int clockSpeed);\n\n @BindsInstance\n Builder setCore(@Named(\"core\") int core);\n\n FragmentComponent build();\n }\n}", "public interface MySandBoxDisplay extends SandBoxDisplay {\n\n public ListGrid getPendingGrid();\n\n public ToolStripButton getRevertSelectionButton();\n\n public void setRevertSelectionButton(ToolStripButton revertSelectionButton);\n\n public ToolStrip getPendingToolBar();\n\n public void setPendingToolBar(ToolStrip pendingToolBar);\n\n public ToolStripButton getReclaimSelectionButton();\n\n public void setReclaimSelectionButton(ToolStripButton reclaimSelectionButton);\n\n public ToolStripButton getReclaimAllButton();\n\n public void setReclaimAllButton(ToolStripButton reclaimAllButton);\n\n public ToolStripButton getReleaseSelectionButton();\n\n public void setReleaseSelectionButton(ToolStripButton releaseSelectionButton);\n\n public ToolStripButton getReleaseAllButton();\n\n public void setReleaseAllButton(ToolStripButton releaseAllButton);\n\n public ToolStripButton getPendingRefreshButton();\n\n public void setPendingRefreshButton(ToolStripButton pendingRefreshButton);\n\n public ToolStripButton getPendingPreviewButton();\n\n public void setPendingPreviewButton(ToolStripButton pendingPreviewButton);\n \n}", "public interface TestSuite extends Suite {\n\n}", "public interface SystemItem {\n}", "public interface BindingExt extends ExtComponent {\n\n//TODO: define get/set methods for properties for BindingExt if the extension element has attributes.\n /**\n * This class is an implementation of BindingExt interface that provides java model\n * for binding extensibility element.\n */\n public static class BindingExtImpl extends ExtModelImpl implements BindingExt {\n\n public BindingExtImpl(WSDLModel model, Element e) {\n super(model, e);\n }\n\n public BindingExtImpl(WSDLModel model) {\n this(model, createPrefixedElement(QN_BINDING_EXT, model));\n }\n\n public void accept(ExtVisitor visitor) {\n visitor.visit(this);\n }\n\n @Override\n public boolean canBeAddedTo(Component target) {\n if (target instanceof Binding) {\n return true;\n }\n return false;\n }\n }\n}", "@Subcomponent(modules = AModule.class)\npublic interface AComponent {\n void inject(AActivity aActivity);\n}", "public interface ICmd2ModelAdapter_deprecated {\r\n\t\r\n\t/**\r\n\t * Appends the given string onto a text display somewhere on the host ChatApp's GUI.\r\n\t * @param s A string to display\r\n\t */\r\n\tpublic abstract void append(String s);\r\n\t\r\n\t/**\r\n\t * Allows the command to give a java.awt.Component to the host ChatApp to be displayed on \r\n\t * its GUI somewhere. \r\n\t * @param name A title for the component, useful for tabs, frame titles, etc.\r\n\t * @param newComp The component to display.\r\n\t */\r\n\tpublic void addComponent(String name, Component newComp);\r\n}", "void element() {}", "public interface DevTemplate {\n\t\n\tString name=\"selenium\";\n\t// these features have to implemented for chrome browser, FF browser and IE browser\n\tvoid browserMethod();\n\tvoid OpenURL();\n\tvoid senddata();\n\tvoid click();\n\tvoid getattribute();\n\n}", "private void initcomponent() {\n\r\n\t}", "public ShoppingCartSubsystem getShoppingCart();", "public interface Actor extends NamedElement {\r\n}", "public interface ConfigurableComponentProvider extends ComponentProvider {\n\n}", "public VisionSubsystem() {\n\n }", "public DefaultDriveCommand(SK20Drive subsystem) {\n m_subsystem = subsystem;\n\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(m_subsystem);\n }", "@Override\r\n\tpublic boolean OC_supportSub()\r\n\t{\n\t\treturn false;\r\n\t}", "public interface SynthUI {\r\n \r\n public SynthContext getContext(JComponent arg0);\r\n\r\n public void paintBorder(SynthContext context, Graphics g, int x,\r\n int y, int w, int h);\r\n\r\n\r\n}", "protected AccessibleAWTMenuComponent() {\n }", "public abstract String getSystem( );", "public void use()\n\t{\n\t}", "public interface SeleniumPackage extends EPackage\n{\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"selenium\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://www.imta.fr/tp/selenium/Selenium\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"selenium\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n SeleniumPackage eINSTANCE = fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl.init();\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ModelImpl <em>Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ModelImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getModel()\n * @generated\n */\n int MODEL = 0;\n\n /**\n * The feature id for the '<em><b>Program</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MODEL__PROGRAM = 0;\n\n /**\n * The number of structural features of the '<em>Model</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MODEL_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ProgramImpl <em>Program</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProgramImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProgram()\n * @generated\n */\n int PROGRAM = 1;\n\n /**\n * The feature id for the '<em><b>Procedures</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROGRAM__PROCEDURES = 0;\n\n /**\n * The feature id for the '<em><b>Statements</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROGRAM__STATEMENTS = 1;\n\n /**\n * The number of structural features of the '<em>Program</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROGRAM_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureImpl <em>Procedure</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedure()\n * @generated\n */\n int PROCEDURE = 2;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE__NAME = 0;\n\n /**\n * The feature id for the '<em><b>Params</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE__PARAMS = 1;\n\n /**\n * The feature id for the '<em><b>Type</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE__TYPE = 2;\n\n /**\n * The feature id for the '<em><b>Body</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE__BODY = 3;\n\n /**\n * The number of structural features of the '<em>Procedure</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_FEATURE_COUNT = 4;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureParameterImpl <em>Procedure Parameter</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureParameterImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedureParameter()\n * @generated\n */\n int PROCEDURE_PARAMETER = 3;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_PARAMETER__NAME = 0;\n\n /**\n * The feature id for the '<em><b>Type</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_PARAMETER__TYPE = 1;\n\n /**\n * The number of structural features of the '<em>Procedure Parameter</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_PARAMETER_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureBodyImpl <em>Procedure Body</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureBodyImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedureBody()\n * @generated\n */\n int PROCEDURE_BODY = 4;\n\n /**\n * The feature id for the '<em><b>Statements</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_BODY__STATEMENTS = 0;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_BODY__VALUE = 1;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_BODY__ARRAY_ACCESS = 2;\n\n /**\n * The number of structural features of the '<em>Procedure Body</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_BODY_FEATURE_COUNT = 3;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.StatementImpl <em>Statement</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.StatementImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getStatement()\n * @generated\n */\n int STATEMENT = 5;\n\n /**\n * The number of structural features of the '<em>Statement</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int STATEMENT_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.VariableDeclarationImpl <em>Variable Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.VariableDeclarationImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getVariableDeclaration()\n * @generated\n */\n int VARIABLE_DECLARATION = 6;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VARIABLE_DECLARATION__VARIABLE = STATEMENT_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Variable Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VARIABLE_DECLARATION_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.FindMultipleImpl <em>Find Multiple</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.FindMultipleImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getFindMultiple()\n * @generated\n */\n int FIND_MULTIPLE = 7;\n\n /**\n * The feature id for the '<em><b>Prop</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND_MULTIPLE__PROP = STATEMENT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND_MULTIPLE__VALUE = STATEMENT_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND_MULTIPLE__ARRAY_ACCESS = STATEMENT_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Array</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND_MULTIPLE__ARRAY = STATEMENT_FEATURE_COUNT + 3;\n\n /**\n * The number of structural features of the '<em>Find Multiple</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND_MULTIPLE_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 4;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureCallImpl <em>Procedure Call</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureCallImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedureCall()\n * @generated\n */\n int PROCEDURE_CALL = 8;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_CALL__VARIABLE = VARIABLE_DECLARATION__VARIABLE;\n\n /**\n * The feature id for the '<em><b>Proc</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_CALL__PROC = VARIABLE_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Params</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_CALL__PARAMS = VARIABLE_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_CALL__ARRAY_ACCESS = VARIABLE_DECLARATION_FEATURE_COUNT + 2;\n\n /**\n * The number of structural features of the '<em>Procedure Call</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PROCEDURE_CALL_FEATURE_COUNT = VARIABLE_DECLARATION_FEATURE_COUNT + 3;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.OperationImpl <em>Operation</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.OperationImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getOperation()\n * @generated\n */\n int OPERATION = 9;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OPERATION__VARIABLE = VARIABLE_DECLARATION__VARIABLE;\n\n /**\n * The feature id for the '<em><b>Strvalue</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OPERATION__STRVALUE = VARIABLE_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Intvalue</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OPERATION__INTVALUE = VARIABLE_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Operation</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OPERATION_FEATURE_COUNT = VARIABLE_DECLARATION_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.CallNativeImpl <em>Call Native</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.CallNativeImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getCallNative()\n * @generated\n */\n int CALL_NATIVE = 10;\n\n /**\n * The number of structural features of the '<em>Call Native</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CALL_NATIVE_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.CallNativeWithResultImpl <em>Call Native With Result</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.CallNativeWithResultImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getCallNativeWithResult()\n * @generated\n */\n int CALL_NATIVE_WITH_RESULT = 11;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CALL_NATIVE_WITH_RESULT__VARIABLE = VARIABLE_DECLARATION__VARIABLE;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CALL_NATIVE_WITH_RESULT__ARRAY_ACCESS = VARIABLE_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Call Native With Result</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CALL_NATIVE_WITH_RESULT_FEATURE_COUNT = VARIABLE_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.OpenImpl <em>Open</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.OpenImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getOpen()\n * @generated\n */\n int OPEN = 12;\n\n /**\n * The feature id for the '<em><b>Browser</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OPEN__BROWSER = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Open</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OPEN_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.CloseImpl <em>Close</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.CloseImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getClose()\n * @generated\n */\n int CLOSE = 13;\n\n /**\n * The feature id for the '<em><b>Browser</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CLOSE__BROWSER = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Close</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CLOSE_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.GoImpl <em>Go</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.GoImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getGo()\n * @generated\n */\n int GO = 14;\n\n /**\n * The feature id for the '<em><b>Location</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GO__LOCATION = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GO__ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Go</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GO_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.FindImpl <em>Find</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.FindImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getFind()\n * @generated\n */\n int FIND = 15;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND__VARIABLE = CALL_NATIVE_WITH_RESULT__VARIABLE;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND__ARRAY_ACCESS = CALL_NATIVE_WITH_RESULT__ARRAY_ACCESS;\n\n /**\n * The feature id for the '<em><b>Prop</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND__PROP = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND__VALUE = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Find</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FIND_FEATURE_COUNT = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.FillImpl <em>Fill</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.FillImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getFill()\n * @generated\n */\n int FILL = 16;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FILL__ELEM = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FILL__VALUE = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FILL__ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 2;\n\n /**\n * The number of structural features of the '<em>Fill</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FILL_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 3;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ClickImpl <em>Click</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ClickImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getClick()\n * @generated\n */\n int CLICK = 17;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CLICK__ELEM = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CLICK__ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Click</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CLICK_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.VerifyImpl <em>Verify</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.VerifyImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getVerify()\n * @generated\n */\n int VERIFY = 18;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VERIFY__ELEM = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Left Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VERIFY__LEFT_ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Comp</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VERIFY__COMP = CALL_NATIVE_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VERIFY__VALUE = CALL_NATIVE_FEATURE_COUNT + 3;\n\n /**\n * The feature id for the '<em><b>Right Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VERIFY__RIGHT_ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 4;\n\n /**\n * The number of structural features of the '<em>Verify</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VERIFY_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 5;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ShowImpl <em>Show</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ShowImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getShow()\n * @generated\n */\n int SHOW = 19;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SHOW__ELEM = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SHOW__ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Show</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SHOW_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ShowMultipleImpl <em>Show Multiple</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ShowMultipleImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getShowMultiple()\n * @generated\n */\n int SHOW_MULTIPLE = 20;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SHOW_MULTIPLE__ELEM = CALL_NATIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SHOW_MULTIPLE__ARRAY_ACCESS = CALL_NATIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Show Multiple</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SHOW_MULTIPLE_FEATURE_COUNT = CALL_NATIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.GetImpl <em>Get</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.GetImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getGet()\n * @generated\n */\n int GET = 21;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GET__VARIABLE = CALL_NATIVE_WITH_RESULT__VARIABLE;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GET__ARRAY_ACCESS = CALL_NATIVE_WITH_RESULT__ARRAY_ACCESS;\n\n /**\n * The feature id for the '<em><b>Prop</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GET__PROP = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GET__ELEM = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Get</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GET_FEATURE_COUNT = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.LenImpl <em>Len</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.LenImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getLen()\n * @generated\n */\n int LEN = 22;\n\n /**\n * The feature id for the '<em><b>Variable</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int LEN__VARIABLE = CALL_NATIVE_WITH_RESULT__VARIABLE;\n\n /**\n * The feature id for the '<em><b>Array Access</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int LEN__ARRAY_ACCESS = CALL_NATIVE_WITH_RESULT__ARRAY_ACCESS;\n\n /**\n * The feature id for the '<em><b>Elem</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int LEN__ELEM = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Len</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int LEN_FEATURE_COUNT = CALL_NATIVE_WITH_RESULT_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.SeleniumTypeImpl <em>Type</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumTypeImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getSeleniumType()\n * @generated\n */\n int SELENIUM_TYPE = 23;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELENIUM_TYPE__NAME = 0;\n\n /**\n * The number of structural features of the '<em>Type</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELENIUM_TYPE_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.VariableImpl <em>Variable</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.VariableImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getVariable()\n * @generated\n */\n int VARIABLE = 24;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VARIABLE__NAME = SELENIUM_TYPE__NAME;\n\n /**\n * The number of structural features of the '<em>Variable</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VARIABLE_FEATURE_COUNT = SELENIUM_TYPE_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ArrayImpl <em>Array</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ArrayImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getArray()\n * @generated\n */\n int ARRAY = 25;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ARRAY__NAME = SELENIUM_TYPE__NAME;\n\n /**\n * The number of structural features of the '<em>Array</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ARRAY_FEATURE_COUNT = SELENIUM_TYPE_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.impl.ArrayAccessImpl <em>Array Access</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ArrayAccessImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getArrayAccess()\n * @generated\n */\n int ARRAY_ACCESS = 26;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ARRAY_ACCESS__ID = 0;\n\n /**\n * The number of structural features of the '<em>Array Access</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ARRAY_ACCESS_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.BROWSER <em>BROWSER</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.BROWSER\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getBROWSER()\n * @generated\n */\n int BROWSER = 27;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.PROPERTY <em>PROPERTY</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.PROPERTY\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getPROPERTY()\n * @generated\n */\n int PROPERTY = 28;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.COMPARATOR <em>COMPARATOR</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.COMPARATOR\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getCOMPARATOR()\n * @generated\n */\n int COMPARATOR = 29;\n\n /**\n * The meta object id for the '{@link fr.imta.tp.selenium.selenium.TYPE <em>TYPE</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.TYPE\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getTYPE()\n * @generated\n */\n int TYPE = 30;\n\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Model <em>Model</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Model</em>'.\n * @see fr.imta.tp.selenium.selenium.Model\n * @generated\n */\n EClass getModel();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Model#getProgram <em>Program</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Program</em>'.\n * @see fr.imta.tp.selenium.selenium.Model#getProgram()\n * @see #getModel()\n * @generated\n */\n EReference getModel_Program();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Program <em>Program</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Program</em>'.\n * @see fr.imta.tp.selenium.selenium.Program\n * @generated\n */\n EClass getProgram();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.imta.tp.selenium.selenium.Program#getProcedures <em>Procedures</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Procedures</em>'.\n * @see fr.imta.tp.selenium.selenium.Program#getProcedures()\n * @see #getProgram()\n * @generated\n */\n EReference getProgram_Procedures();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.imta.tp.selenium.selenium.Program#getStatements <em>Statements</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Statements</em>'.\n * @see fr.imta.tp.selenium.selenium.Program#getStatements()\n * @see #getProgram()\n * @generated\n */\n EReference getProgram_Statements();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Procedure <em>Procedure</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Procedure</em>'.\n * @see fr.imta.tp.selenium.selenium.Procedure\n * @generated\n */\n EClass getProcedure();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Procedure#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.imta.tp.selenium.selenium.Procedure#getName()\n * @see #getProcedure()\n * @generated\n */\n EAttribute getProcedure_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.imta.tp.selenium.selenium.Procedure#getParams <em>Params</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Params</em>'.\n * @see fr.imta.tp.selenium.selenium.Procedure#getParams()\n * @see #getProcedure()\n * @generated\n */\n EReference getProcedure_Params();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Procedure#getType <em>Type</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Type</em>'.\n * @see fr.imta.tp.selenium.selenium.Procedure#getType()\n * @see #getProcedure()\n * @generated\n */\n EAttribute getProcedure_Type();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Procedure#getBody <em>Body</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Body</em>'.\n * @see fr.imta.tp.selenium.selenium.Procedure#getBody()\n * @see #getProcedure()\n * @generated\n */\n EReference getProcedure_Body();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.ProcedureParameter <em>Procedure Parameter</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Procedure Parameter</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureParameter\n * @generated\n */\n EClass getProcedureParameter();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.ProcedureParameter#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureParameter#getName()\n * @see #getProcedureParameter()\n * @generated\n */\n EAttribute getProcedureParameter_Name();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.ProcedureParameter#getType <em>Type</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Type</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureParameter#getType()\n * @see #getProcedureParameter()\n * @generated\n */\n EAttribute getProcedureParameter_Type();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.ProcedureBody <em>Procedure Body</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Procedure Body</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureBody\n * @generated\n */\n EClass getProcedureBody();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.imta.tp.selenium.selenium.ProcedureBody#getStatements <em>Statements</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Statements</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureBody#getStatements()\n * @see #getProcedureBody()\n * @generated\n */\n EReference getProcedureBody_Statements();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.ProcedureBody#getValue <em>Value</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Value</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureBody#getValue()\n * @see #getProcedureBody()\n * @generated\n */\n EReference getProcedureBody_Value();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.ProcedureBody#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureBody#getArrayAccess()\n * @see #getProcedureBody()\n * @generated\n */\n EReference getProcedureBody_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Statement <em>Statement</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Statement</em>'.\n * @see fr.imta.tp.selenium.selenium.Statement\n * @generated\n */\n EClass getStatement();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.VariableDeclaration <em>Variable Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Variable Declaration</em>'.\n * @see fr.imta.tp.selenium.selenium.VariableDeclaration\n * @generated\n */\n EClass getVariableDeclaration();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.VariableDeclaration#getVariable <em>Variable</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Variable</em>'.\n * @see fr.imta.tp.selenium.selenium.VariableDeclaration#getVariable()\n * @see #getVariableDeclaration()\n * @generated\n */\n EReference getVariableDeclaration_Variable();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.FindMultiple <em>Find Multiple</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Find Multiple</em>'.\n * @see fr.imta.tp.selenium.selenium.FindMultiple\n * @generated\n */\n EClass getFindMultiple();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.FindMultiple#getProp <em>Prop</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Prop</em>'.\n * @see fr.imta.tp.selenium.selenium.FindMultiple#getProp()\n * @see #getFindMultiple()\n * @generated\n */\n EAttribute getFindMultiple_Prop();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.FindMultiple#getValue <em>Value</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Value</em>'.\n * @see fr.imta.tp.selenium.selenium.FindMultiple#getValue()\n * @see #getFindMultiple()\n * @generated\n */\n EReference getFindMultiple_Value();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.FindMultiple#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.FindMultiple#getArrayAccess()\n * @see #getFindMultiple()\n * @generated\n */\n EReference getFindMultiple_ArrayAccess();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.FindMultiple#getArray <em>Array</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array</em>'.\n * @see fr.imta.tp.selenium.selenium.FindMultiple#getArray()\n * @see #getFindMultiple()\n * @generated\n */\n EReference getFindMultiple_Array();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.ProcedureCall <em>Procedure Call</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Procedure Call</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureCall\n * @generated\n */\n EClass getProcedureCall();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.ProcedureCall#getProc <em>Proc</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Proc</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureCall#getProc()\n * @see #getProcedureCall()\n * @generated\n */\n EReference getProcedureCall_Proc();\n\n /**\n * Returns the meta object for the reference list '{@link fr.imta.tp.selenium.selenium.ProcedureCall#getParams <em>Params</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Params</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureCall#getParams()\n * @see #getProcedureCall()\n * @generated\n */\n EReference getProcedureCall_Params();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.imta.tp.selenium.selenium.ProcedureCall#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.ProcedureCall#getArrayAccess()\n * @see #getProcedureCall()\n * @generated\n */\n EReference getProcedureCall_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Operation <em>Operation</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Operation</em>'.\n * @see fr.imta.tp.selenium.selenium.Operation\n * @generated\n */\n EClass getOperation();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Operation#getStrvalue <em>Strvalue</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Strvalue</em>'.\n * @see fr.imta.tp.selenium.selenium.Operation#getStrvalue()\n * @see #getOperation()\n * @generated\n */\n EAttribute getOperation_Strvalue();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Operation#getIntvalue <em>Intvalue</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Intvalue</em>'.\n * @see fr.imta.tp.selenium.selenium.Operation#getIntvalue()\n * @see #getOperation()\n * @generated\n */\n EAttribute getOperation_Intvalue();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.CallNative <em>Call Native</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Call Native</em>'.\n * @see fr.imta.tp.selenium.selenium.CallNative\n * @generated\n */\n EClass getCallNative();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.CallNativeWithResult <em>Call Native With Result</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Call Native With Result</em>'.\n * @see fr.imta.tp.selenium.selenium.CallNativeWithResult\n * @generated\n */\n EClass getCallNativeWithResult();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.CallNativeWithResult#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.CallNativeWithResult#getArrayAccess()\n * @see #getCallNativeWithResult()\n * @generated\n */\n EReference getCallNativeWithResult_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Open <em>Open</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Open</em>'.\n * @see fr.imta.tp.selenium.selenium.Open\n * @generated\n */\n EClass getOpen();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Open#getBrowser <em>Browser</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Browser</em>'.\n * @see fr.imta.tp.selenium.selenium.Open#getBrowser()\n * @see #getOpen()\n * @generated\n */\n EAttribute getOpen_Browser();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Close <em>Close</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Close</em>'.\n * @see fr.imta.tp.selenium.selenium.Close\n * @generated\n */\n EClass getClose();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Close#getBrowser <em>Browser</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Browser</em>'.\n * @see fr.imta.tp.selenium.selenium.Close#getBrowser()\n * @see #getClose()\n * @generated\n */\n EAttribute getClose_Browser();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Go <em>Go</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Go</em>'.\n * @see fr.imta.tp.selenium.selenium.Go\n * @generated\n */\n EClass getGo();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Go#getLocation <em>Location</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Location</em>'.\n * @see fr.imta.tp.selenium.selenium.Go#getLocation()\n * @see #getGo()\n * @generated\n */\n EReference getGo_Location();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Go#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.Go#getArrayAccess()\n * @see #getGo()\n * @generated\n */\n EReference getGo_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Find <em>Find</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Find</em>'.\n * @see fr.imta.tp.selenium.selenium.Find\n * @generated\n */\n EClass getFind();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Find#getProp <em>Prop</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Prop</em>'.\n * @see fr.imta.tp.selenium.selenium.Find#getProp()\n * @see #getFind()\n * @generated\n */\n EAttribute getFind_Prop();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Find#getValue <em>Value</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Value</em>'.\n * @see fr.imta.tp.selenium.selenium.Find#getValue()\n * @see #getFind()\n * @generated\n */\n EReference getFind_Value();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Fill <em>Fill</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Fill</em>'.\n * @see fr.imta.tp.selenium.selenium.Fill\n * @generated\n */\n EClass getFill();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Fill#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.Fill#getElem()\n * @see #getFill()\n * @generated\n */\n EReference getFill_Elem();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Fill#getValue <em>Value</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Value</em>'.\n * @see fr.imta.tp.selenium.selenium.Fill#getValue()\n * @see #getFill()\n * @generated\n */\n EReference getFill_Value();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Fill#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.Fill#getArrayAccess()\n * @see #getFill()\n * @generated\n */\n EReference getFill_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Click <em>Click</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Click</em>'.\n * @see fr.imta.tp.selenium.selenium.Click\n * @generated\n */\n EClass getClick();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Click#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.Click#getElem()\n * @see #getClick()\n * @generated\n */\n EReference getClick_Elem();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Click#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.Click#getArrayAccess()\n * @see #getClick()\n * @generated\n */\n EReference getClick_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Verify <em>Verify</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Verify</em>'.\n * @see fr.imta.tp.selenium.selenium.Verify\n * @generated\n */\n EClass getVerify();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Verify#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.Verify#getElem()\n * @see #getVerify()\n * @generated\n */\n EReference getVerify_Elem();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Verify#getLeftArrayAccess <em>Left Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Left Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.Verify#getLeftArrayAccess()\n * @see #getVerify()\n * @generated\n */\n EReference getVerify_LeftArrayAccess();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Verify#getComp <em>Comp</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Comp</em>'.\n * @see fr.imta.tp.selenium.selenium.Verify#getComp()\n * @see #getVerify()\n * @generated\n */\n EAttribute getVerify_Comp();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Verify#getValue <em>Value</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Value</em>'.\n * @see fr.imta.tp.selenium.selenium.Verify#getValue()\n * @see #getVerify()\n * @generated\n */\n EReference getVerify_Value();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Verify#getRightArrayAccess <em>Right Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Right Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.Verify#getRightArrayAccess()\n * @see #getVerify()\n * @generated\n */\n EReference getVerify_RightArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Show <em>Show</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Show</em>'.\n * @see fr.imta.tp.selenium.selenium.Show\n * @generated\n */\n EClass getShow();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Show#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.Show#getElem()\n * @see #getShow()\n * @generated\n */\n EReference getShow_Elem();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.Show#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.Show#getArrayAccess()\n * @see #getShow()\n * @generated\n */\n EReference getShow_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.ShowMultiple <em>Show Multiple</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Show Multiple</em>'.\n * @see fr.imta.tp.selenium.selenium.ShowMultiple\n * @generated\n */\n EClass getShowMultiple();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.ShowMultiple#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.ShowMultiple#getElem()\n * @see #getShowMultiple()\n * @generated\n */\n EReference getShowMultiple_Elem();\n\n /**\n * Returns the meta object for the containment reference '{@link fr.imta.tp.selenium.selenium.ShowMultiple#getArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.ShowMultiple#getArrayAccess()\n * @see #getShowMultiple()\n * @generated\n */\n EReference getShowMultiple_ArrayAccess();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Get <em>Get</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Get</em>'.\n * @see fr.imta.tp.selenium.selenium.Get\n * @generated\n */\n EClass getGet();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.Get#getProp <em>Prop</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Prop</em>'.\n * @see fr.imta.tp.selenium.selenium.Get#getProp()\n * @see #getGet()\n * @generated\n */\n EAttribute getGet_Prop();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Get#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.Get#getElem()\n * @see #getGet()\n * @generated\n */\n EReference getGet_Elem();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Len <em>Len</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Len</em>'.\n * @see fr.imta.tp.selenium.selenium.Len\n * @generated\n */\n EClass getLen();\n\n /**\n * Returns the meta object for the reference '{@link fr.imta.tp.selenium.selenium.Len#getElem <em>Elem</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Elem</em>'.\n * @see fr.imta.tp.selenium.selenium.Len#getElem()\n * @see #getLen()\n * @generated\n */\n EReference getLen_Elem();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.SeleniumType <em>Type</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Type</em>'.\n * @see fr.imta.tp.selenium.selenium.SeleniumType\n * @generated\n */\n EClass getSeleniumType();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.SeleniumType#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.imta.tp.selenium.selenium.SeleniumType#getName()\n * @see #getSeleniumType()\n * @generated\n */\n EAttribute getSeleniumType_Name();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Variable <em>Variable</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Variable</em>'.\n * @see fr.imta.tp.selenium.selenium.Variable\n * @generated\n */\n EClass getVariable();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.Array <em>Array</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Array</em>'.\n * @see fr.imta.tp.selenium.selenium.Array\n * @generated\n */\n EClass getArray();\n\n /**\n * Returns the meta object for class '{@link fr.imta.tp.selenium.selenium.ArrayAccess <em>Array Access</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Array Access</em>'.\n * @see fr.imta.tp.selenium.selenium.ArrayAccess\n * @generated\n */\n EClass getArrayAccess();\n\n /**\n * Returns the meta object for the attribute '{@link fr.imta.tp.selenium.selenium.ArrayAccess#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.imta.tp.selenium.selenium.ArrayAccess#getId()\n * @see #getArrayAccess()\n * @generated\n */\n EAttribute getArrayAccess_Id();\n\n /**\n * Returns the meta object for enum '{@link fr.imta.tp.selenium.selenium.BROWSER <em>BROWSER</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>BROWSER</em>'.\n * @see fr.imta.tp.selenium.selenium.BROWSER\n * @generated\n */\n EEnum getBROWSER();\n\n /**\n * Returns the meta object for enum '{@link fr.imta.tp.selenium.selenium.PROPERTY <em>PROPERTY</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>PROPERTY</em>'.\n * @see fr.imta.tp.selenium.selenium.PROPERTY\n * @generated\n */\n EEnum getPROPERTY();\n\n /**\n * Returns the meta object for enum '{@link fr.imta.tp.selenium.selenium.COMPARATOR <em>COMPARATOR</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>COMPARATOR</em>'.\n * @see fr.imta.tp.selenium.selenium.COMPARATOR\n * @generated\n */\n EEnum getCOMPARATOR();\n\n /**\n * Returns the meta object for enum '{@link fr.imta.tp.selenium.selenium.TYPE <em>TYPE</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>TYPE</em>'.\n * @see fr.imta.tp.selenium.selenium.TYPE\n * @generated\n */\n EEnum getTYPE();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n SeleniumFactory getSeleniumFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals\n {\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ModelImpl <em>Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ModelImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getModel()\n * @generated\n */\n EClass MODEL = eINSTANCE.getModel();\n\n /**\n * The meta object literal for the '<em><b>Program</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference MODEL__PROGRAM = eINSTANCE.getModel_Program();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ProgramImpl <em>Program</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProgramImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProgram()\n * @generated\n */\n EClass PROGRAM = eINSTANCE.getProgram();\n\n /**\n * The meta object literal for the '<em><b>Procedures</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROGRAM__PROCEDURES = eINSTANCE.getProgram_Procedures();\n\n /**\n * The meta object literal for the '<em><b>Statements</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROGRAM__STATEMENTS = eINSTANCE.getProgram_Statements();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureImpl <em>Procedure</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedure()\n * @generated\n */\n EClass PROCEDURE = eINSTANCE.getProcedure();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute PROCEDURE__NAME = eINSTANCE.getProcedure_Name();\n\n /**\n * The meta object literal for the '<em><b>Params</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE__PARAMS = eINSTANCE.getProcedure_Params();\n\n /**\n * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute PROCEDURE__TYPE = eINSTANCE.getProcedure_Type();\n\n /**\n * The meta object literal for the '<em><b>Body</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE__BODY = eINSTANCE.getProcedure_Body();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureParameterImpl <em>Procedure Parameter</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureParameterImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedureParameter()\n * @generated\n */\n EClass PROCEDURE_PARAMETER = eINSTANCE.getProcedureParameter();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute PROCEDURE_PARAMETER__NAME = eINSTANCE.getProcedureParameter_Name();\n\n /**\n * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute PROCEDURE_PARAMETER__TYPE = eINSTANCE.getProcedureParameter_Type();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureBodyImpl <em>Procedure Body</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureBodyImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedureBody()\n * @generated\n */\n EClass PROCEDURE_BODY = eINSTANCE.getProcedureBody();\n\n /**\n * The meta object literal for the '<em><b>Statements</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE_BODY__STATEMENTS = eINSTANCE.getProcedureBody_Statements();\n\n /**\n * The meta object literal for the '<em><b>Value</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE_BODY__VALUE = eINSTANCE.getProcedureBody_Value();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE_BODY__ARRAY_ACCESS = eINSTANCE.getProcedureBody_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.StatementImpl <em>Statement</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.StatementImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getStatement()\n * @generated\n */\n EClass STATEMENT = eINSTANCE.getStatement();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.VariableDeclarationImpl <em>Variable Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.VariableDeclarationImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getVariableDeclaration()\n * @generated\n */\n EClass VARIABLE_DECLARATION = eINSTANCE.getVariableDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Variable</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference VARIABLE_DECLARATION__VARIABLE = eINSTANCE.getVariableDeclaration_Variable();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.FindMultipleImpl <em>Find Multiple</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.FindMultipleImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getFindMultiple()\n * @generated\n */\n EClass FIND_MULTIPLE = eINSTANCE.getFindMultiple();\n\n /**\n * The meta object literal for the '<em><b>Prop</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FIND_MULTIPLE__PROP = eINSTANCE.getFindMultiple_Prop();\n\n /**\n * The meta object literal for the '<em><b>Value</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FIND_MULTIPLE__VALUE = eINSTANCE.getFindMultiple_Value();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FIND_MULTIPLE__ARRAY_ACCESS = eINSTANCE.getFindMultiple_ArrayAccess();\n\n /**\n * The meta object literal for the '<em><b>Array</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FIND_MULTIPLE__ARRAY = eINSTANCE.getFindMultiple_Array();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ProcedureCallImpl <em>Procedure Call</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ProcedureCallImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getProcedureCall()\n * @generated\n */\n EClass PROCEDURE_CALL = eINSTANCE.getProcedureCall();\n\n /**\n * The meta object literal for the '<em><b>Proc</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE_CALL__PROC = eINSTANCE.getProcedureCall_Proc();\n\n /**\n * The meta object literal for the '<em><b>Params</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE_CALL__PARAMS = eINSTANCE.getProcedureCall_Params();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference PROCEDURE_CALL__ARRAY_ACCESS = eINSTANCE.getProcedureCall_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.OperationImpl <em>Operation</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.OperationImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getOperation()\n * @generated\n */\n EClass OPERATION = eINSTANCE.getOperation();\n\n /**\n * The meta object literal for the '<em><b>Strvalue</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute OPERATION__STRVALUE = eINSTANCE.getOperation_Strvalue();\n\n /**\n * The meta object literal for the '<em><b>Intvalue</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute OPERATION__INTVALUE = eINSTANCE.getOperation_Intvalue();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.CallNativeImpl <em>Call Native</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.CallNativeImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getCallNative()\n * @generated\n */\n EClass CALL_NATIVE = eINSTANCE.getCallNative();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.CallNativeWithResultImpl <em>Call Native With Result</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.CallNativeWithResultImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getCallNativeWithResult()\n * @generated\n */\n EClass CALL_NATIVE_WITH_RESULT = eINSTANCE.getCallNativeWithResult();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CALL_NATIVE_WITH_RESULT__ARRAY_ACCESS = eINSTANCE.getCallNativeWithResult_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.OpenImpl <em>Open</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.OpenImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getOpen()\n * @generated\n */\n EClass OPEN = eINSTANCE.getOpen();\n\n /**\n * The meta object literal for the '<em><b>Browser</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute OPEN__BROWSER = eINSTANCE.getOpen_Browser();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.CloseImpl <em>Close</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.CloseImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getClose()\n * @generated\n */\n EClass CLOSE = eINSTANCE.getClose();\n\n /**\n * The meta object literal for the '<em><b>Browser</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CLOSE__BROWSER = eINSTANCE.getClose_Browser();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.GoImpl <em>Go</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.GoImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getGo()\n * @generated\n */\n EClass GO = eINSTANCE.getGo();\n\n /**\n * The meta object literal for the '<em><b>Location</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GO__LOCATION = eINSTANCE.getGo_Location();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GO__ARRAY_ACCESS = eINSTANCE.getGo_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.FindImpl <em>Find</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.FindImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getFind()\n * @generated\n */\n EClass FIND = eINSTANCE.getFind();\n\n /**\n * The meta object literal for the '<em><b>Prop</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FIND__PROP = eINSTANCE.getFind_Prop();\n\n /**\n * The meta object literal for the '<em><b>Value</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FIND__VALUE = eINSTANCE.getFind_Value();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.FillImpl <em>Fill</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.FillImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getFill()\n * @generated\n */\n EClass FILL = eINSTANCE.getFill();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FILL__ELEM = eINSTANCE.getFill_Elem();\n\n /**\n * The meta object literal for the '<em><b>Value</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FILL__VALUE = eINSTANCE.getFill_Value();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FILL__ARRAY_ACCESS = eINSTANCE.getFill_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ClickImpl <em>Click</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ClickImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getClick()\n * @generated\n */\n EClass CLICK = eINSTANCE.getClick();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CLICK__ELEM = eINSTANCE.getClick_Elem();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CLICK__ARRAY_ACCESS = eINSTANCE.getClick_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.VerifyImpl <em>Verify</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.VerifyImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getVerify()\n * @generated\n */\n EClass VERIFY = eINSTANCE.getVerify();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference VERIFY__ELEM = eINSTANCE.getVerify_Elem();\n\n /**\n * The meta object literal for the '<em><b>Left Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference VERIFY__LEFT_ARRAY_ACCESS = eINSTANCE.getVerify_LeftArrayAccess();\n\n /**\n * The meta object literal for the '<em><b>Comp</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute VERIFY__COMP = eINSTANCE.getVerify_Comp();\n\n /**\n * The meta object literal for the '<em><b>Value</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference VERIFY__VALUE = eINSTANCE.getVerify_Value();\n\n /**\n * The meta object literal for the '<em><b>Right Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference VERIFY__RIGHT_ARRAY_ACCESS = eINSTANCE.getVerify_RightArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ShowImpl <em>Show</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ShowImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getShow()\n * @generated\n */\n EClass SHOW = eINSTANCE.getShow();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SHOW__ELEM = eINSTANCE.getShow_Elem();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SHOW__ARRAY_ACCESS = eINSTANCE.getShow_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ShowMultipleImpl <em>Show Multiple</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ShowMultipleImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getShowMultiple()\n * @generated\n */\n EClass SHOW_MULTIPLE = eINSTANCE.getShowMultiple();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SHOW_MULTIPLE__ELEM = eINSTANCE.getShowMultiple_Elem();\n\n /**\n * The meta object literal for the '<em><b>Array Access</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SHOW_MULTIPLE__ARRAY_ACCESS = eINSTANCE.getShowMultiple_ArrayAccess();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.GetImpl <em>Get</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.GetImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getGet()\n * @generated\n */\n EClass GET = eINSTANCE.getGet();\n\n /**\n * The meta object literal for the '<em><b>Prop</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute GET__PROP = eINSTANCE.getGet_Prop();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GET__ELEM = eINSTANCE.getGet_Elem();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.LenImpl <em>Len</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.LenImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getLen()\n * @generated\n */\n EClass LEN = eINSTANCE.getLen();\n\n /**\n * The meta object literal for the '<em><b>Elem</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference LEN__ELEM = eINSTANCE.getLen_Elem();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.SeleniumTypeImpl <em>Type</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumTypeImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getSeleniumType()\n * @generated\n */\n EClass SELENIUM_TYPE = eINSTANCE.getSeleniumType();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute SELENIUM_TYPE__NAME = eINSTANCE.getSeleniumType_Name();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.VariableImpl <em>Variable</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.VariableImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getVariable()\n * @generated\n */\n EClass VARIABLE = eINSTANCE.getVariable();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ArrayImpl <em>Array</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ArrayImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getArray()\n * @generated\n */\n EClass ARRAY = eINSTANCE.getArray();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.impl.ArrayAccessImpl <em>Array Access</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.impl.ArrayAccessImpl\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getArrayAccess()\n * @generated\n */\n EClass ARRAY_ACCESS = eINSTANCE.getArrayAccess();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ARRAY_ACCESS__ID = eINSTANCE.getArrayAccess_Id();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.BROWSER <em>BROWSER</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.BROWSER\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getBROWSER()\n * @generated\n */\n EEnum BROWSER = eINSTANCE.getBROWSER();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.PROPERTY <em>PROPERTY</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.PROPERTY\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getPROPERTY()\n * @generated\n */\n EEnum PROPERTY = eINSTANCE.getPROPERTY();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.COMPARATOR <em>COMPARATOR</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.COMPARATOR\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getCOMPARATOR()\n * @generated\n */\n EEnum COMPARATOR = eINSTANCE.getCOMPARATOR();\n\n /**\n * The meta object literal for the '{@link fr.imta.tp.selenium.selenium.TYPE <em>TYPE</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.imta.tp.selenium.selenium.TYPE\n * @see fr.imta.tp.selenium.selenium.impl.SeleniumPackageImpl#getTYPE()\n * @generated\n */\n EEnum TYPE = eINSTANCE.getTYPE();\n\n }\n\n}", "public GetInRangeAndAimCommand() {\n xController = new PIDController(0.1, 1e-4, 1);\n yController = new PIDController(-0.1, 1e-4, 1);\n xController.setSetpoint(0);\n yController.setSetpoint(0);\n // xController.\n drive = DrivetrainSubsystem.getInstance();\n limelight = Limelight.getInstance();\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(drive);\n\n }", "void depComponent(DepComponent depComponent);", "public static IElbowSubsystem getInstance()\n {\n if ( ourInstance == null )\n {\n throw new IllegalStateException( myName + \" Not Constructed Yet\" );\n }\n return ourInstance;\n }", "void visitElement_operating_systems(org.w3c.dom.Element element) { // <operating-systems>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n if (nodeElement.getTagName().equals(\"os\")) {\n visitElement_os(nodeElement);\n }\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }", "public SystematicAcension_by_LiftingTechnology() {\n\n\t}", "public abstract void updateMainComponents(String component);", "System createSystem();", "private void startComponents(){\n\n if(isAllowed(sentinel)){\n SentinelComponent sentinelComponent = new SentinelComponent(getInstance());\n sentinelComponent.getCanonicalName();\n }\n\n if(isAllowed(\"fileserver\")){\n FileServer fileServer = new FileServer(getInstance());\n fileServer.getCanonicalName();\n }\n\n if(isAllowed(\"manager\")){\n ManagerComponent Manager = new ManagerComponent(getInstance());\n Manager.getCanonicalName();\n }\n\n// if(isAllowed(\"sdk\")){\n// SDK sdk = new SDK(getInstance());\n// sdk.getCanonicalName();\n// }\n\n if(isAllowed(\"centrum\")){\n CentrumComponent centrum1 = new CentrumComponent(getInstance(), null);\n centrum1.getCanonicalName();\n }\n\n }", "private Seabee() {\n register(DirectionMarkerDetector.getInstance());\n register(GateDetector.getInstance());\n\n registerSubsystem(PathPlanner.getInstance());\n registerSubsystem(Imu.getInstance());\n registerSubsystem(Thrusters.getInstance());\n }", "public interface Windows { \n\n\t/**\n\t * Alter this object properties\n\t * Facultative parameters ? false\n\t * @param null New object properties\n\t * @param serviceName The name of your Windows license\n\t*/\n\tvoid putServiceNameServiceInfos(net.zyuiop.ovhapi.api.objects.services.Service param0, java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.windows.Windows getServiceName(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Terminate your service\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tjava.lang.String postServiceNameTerminate(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * release this Option\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t * @param label This option designation\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Task deleteServiceNameOptionLabel(java.lang.String serviceName, java.lang.String label) throws java.io.IOException;\n\n\t/**\n\t * List available services\n\t * Facultative parameters ? false\n\t*/\n\tjava.lang.String[] getLicenseWindows() throws java.io.IOException;\n\n\t/**\n\t * Get the orderable Windows versions\n\t * Facultative parameters ? false\n\t * @param ip Your license Ip\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.WindowsOrderConfiguration[] getOrderableVersions(java.lang.String ip) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * tasks linked to this license\n\t * Facultative parameters ? true\n\t * @param serviceName The name of your Windows license\n\t * @param status Filter the value of status property (=)\n\t * @param action Filter the value of action property (=)\n\t*/\n\tlong[] getServiceNameTasks(java.lang.String serviceName, java.lang.String status, java.lang.String action) throws java.io.IOException;\n\n\t/**\n\t * tasks linked to this license\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tlong[] getServiceNameTasks(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t * @param taskId This Task id\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;\n\n\t/**\n\t * options attached to this license\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tjava.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Link your own sql server license to this Windows license\n\t * Facultative parameters ? false\n\t * @param licenseId Your license serial number\n\t * @param version Your license version\n\t * @param serviceName The name of your Windows license\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Task postServiceNameSqlServer(java.lang.String licenseId, java.lang.String version, java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Alter this object properties\n\t * Facultative parameters ? false\n\t * @param null New object properties\n\t * @param serviceName The name of your Windows license\n\t*/\n\tvoid putServiceName(net.zyuiop.ovhapi.api.objects.license.windows.Windows param0, java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t * @param label This option designation\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Option getServiceNameOptionLabel(java.lang.String serviceName, java.lang.String label) throws java.io.IOException;\n\n}", "@ProviderType\npublic interface SlingSettingsService {\n\n /**\n * The name of the framework property defining the Sling home directory\n * (value is \"sling.home\"). This is a Platform file system directory below\n * which all runtime data, such as the Felix bundle archives, logfiles, the\n * repository, etc., is located.\n * <p>\n * This property is available calling the\n * <code>BundleContext.getProperty(String)</code> method.\n *\n * @see #SLING_HOME_URL\n */\n String SLING_HOME = \"sling.home\";\n\n /**\n * The name of the framework property defining the Sling home directory as\n * an URL (value is \"sling.home.url\").\n * <p>\n * The value of this property is assigned the value of\n * <code>new File(${sling.home}).toURI().toString()</code> before\n * resolving the property variables.\n * <p>\n * This property is available calling the\n * <code>BundleContext.getProperty(String)</code> method.\n *\n * @see #SLING_HOME\n */\n String SLING_HOME_URL = \"sling.home.url\";\n\n /**\n * The name of the framework property defining the set of used\n * run modes.\n * The value is a comma separated list of run modes.\n */\n String RUN_MODES_PROPERTY = \"sling.run.modes\";\n\n /**\n * The name of the framework property defining the list\n * of run mode options\n * The value is a comma separated list of options where each option\n * contains of a set of run modes separated by a | character.\n * @since 1.2.0\n */\n String RUN_MODE_OPTIONS = \"sling.run.mode.options\";\n\n /**\n * The name of the framework property defining the list\n * of run mode options for installation time.\n * The value is a comma separated list of options where each option\n * contains of a set of run modes separated by a | character.\n * @since 1.2.0\n */\n String RUN_MODE_INSTALL_OPTIONS = \"sling.run.mode.install.options\";\n\n String RUN_MODE_SPEC_OR_SEPARATOR = \",\";\n String RUN_MODE_SPEC_AND_SEPARATOR = \".\";\n String RUN_MODE_SPEC_NOT_PREFIX = \"-\";\n\n /**\n * Utility method to generate an absolute path\n * within Sling Home.\n *\n * @return the absolute including the sling home directory.\n * @since 1.1.0\n */\n String getAbsolutePathWithinSlingHome(String relativePath);\n\n /**\n * The identifier of the running Sling instance.\n * @return The unique Sling identifier.\n */\n String getSlingId();\n\n /**\n * Returns the value of the {@link #SLING_HOME}\n * property.\n * @return The sling home.\n */\n String getSlingHomePath();\n\n /**\n * Returns the value of the {@link #SLING_HOME_URL}\n * property.\n * @return Sling home as a URL.\n */\n URL getSlingHome();\n\n /**\n * Return the set of activate run modes.\n * This set might be empty.\n * @return A non modifiable set of run modes.\n */\n Set<String> getRunModes();\n\n /**\n * Checks if a given run mode spec is satisfied by the active run modes.\n * A run mode spec consists out of run modes and operators (AND = \".\", OR = \",\" and NOT = \"-\")\n * and follows the following grammar in EBNF:\n * <pre><code>\n * run mode spec ::= conjunctions { \",\" conjunctions }\n * conjunctions ::= conjunction { '.' conjunction }\n * conjunction ::= notrunmode | runmode\n * notrunmode ::= '-' runmode\n * </code></pre>\n * \n * The operator order is first \"-\" (not), second \".\" (AND), last \",\" (OR).\n * @param spec the run mode spec string to check against\n * @return the number of matching run modes or 0 if no match. If multiple disjunctions match the one with the highest number of matching run modes is returned.\n * @since 1.4.0 (Sling Settings Bundle 1.3.12)\n */\n int getBestRunModeMatchCountFromSpec(String spec);\n\n /**\n * Return the optional name of the instance.\n * @return The name of the instance or <code>null</code>.\n * @since 1.3\n */\n String getSlingName();\n\n /**\n * Return the optional description of the instance.\n * @return The description of the instance or <code>null</code>.\n * @since 1.3\n */\n String getSlingDescription();\n}", "public interface IMusicSystem extends ISystem, ITickable {\n\n public String getCurrent();\n public void setCurrent(String current);\n\n}", "private PoliticalSystem(String name) {\n\t\tthis.name = name;\n\t}", "public interface IWampusEnvironmentObject {\n String getObjectName();\n void onEnvironmentUpdated(WampusEnvironment env);\n void die();\n}", "public interface StandardContext extends Context\n{\n public static final String NAME_KEY = \"urn:avalon:name\";\n public static final String PARTITION_KEY = \"urn:avalon:partition\";\n public static final String WORKING_KEY = \"urn:avalon:temp\";\n public static final String HOME_KEY = \"urn:avalon:home\";\n\n /**\n * Return the name assigned to the component\n * @return the name\n */\n String getName();\n\n /**\n * Return the partition name assigned to the component\n * @return the partition name\n */\n String getPartitionName();\n\n /**\n * @return a file representing the home directory\n */\n File getHomeDirectory();\n\n /**\n * @return a file representing the temporary working directory\n */\n File getWorkingDirectory();\n\n}", "public interface TElement extends HasID, THasPropertyChange, PropertyChangeListener, Serializable {\n\n /**\n * Used if a requested attribute is not a member of the TElement derived\n * Class.\n */\n public final Object NOT_DEFINED = \"ATT_NOT_DEFINED\";\n\n /**\n * return the attribute value or teal.sim.TElement.NOT_DEFINED\n **/\n public Object getProperty(String attName);\n\n /**\n * set the attribute value return value is success\n **/\n public boolean setProperty(String attName, Object value);\n\n public void addRoute(Route r);\n \n /** \n * Establish a route from this object's source attribute and the targeted \n * attribute of another TElement. \n **/\n public void addRoute(String attribute, TElement listener, String targetName);\n \n \n /** \n * Remove a route from this object's source attribute and the target's output attribute. \n **/\n public void removeRoute(String attribute, TElement listener, String targetName);\n}", "public interface CustomerSubsystem {\n\t/** Use for loading order history,\n\t * default addresses, default payment info,\n\t * saved shopping cart,cust profile\n\t * after login*/\n public void initializeCustomer(Integer id, int authorizationLevel) throws BackendException;\n\n /**\n * Returns true if user has admin access\n */\n public boolean isAdmin();\n\n\n /**\n * Use for saving an address created by user\n */\n public void saveNewAddress(Address addr) throws BackendException;\n\n /**\n * Use to supply all stored addresses of a customer when he wishes to select an\n\t * address in ship/bill window. Requires a trip to the database.\n\t */\n public List<Address> getAllAddresses() throws BackendException;\n\n /** Used whenever a customer name needs to be accessed, after login */\n public CustomerProfile getCustomerProfile();\n\n /** Used when ship/bill window is first displayed, after login */\n public Address getDefaultShippingAddress();\n\n /** Used when ship/bill window is first displayed, after login */\n public Address getDefaultBillingAddress();\n\n /** Used when payment window is first displayed (after login) */\n public CreditCard getDefaultPaymentInfo();\n /**\n\n /**\n\t * Runs address rules and returns the cleansed address.\n * If a RuleException is thrown, this represents a validation error\n * and the error message should be extracted from the exception and displayed\n */\n public Address runAddressRules(Address addr) throws RuleException, BusinessException;\n\n /**\n * Runs payment rules;\n * if a RuleException is thrown, this represents a validation error\n * and the error message should be extracted and displayed\n */\n public void runPaymentRules(Address addr, CreditCard cc) throws RuleException, BusinessException;\n\n /**\n\t * Customer Subsystem is responsible for obtaining all the data needed by\n\t * Credit Verif system -- it does not (and should not) rely on the\n\t * controller for this data.\n\t */\n\tpublic void checkCreditCard() throws BusinessException;\n\n\n /**\n * Returns this customer's order history, stored in the Customer Subsystem (not\n * read from the database). Used by other subsystems\n * to read current user's order history (not used during login process)\n * */\n public List<Order> getOrderHistory();\n\n\n\n\n\n\n /**\n * Stores address as shipping address in this customer's shopping cart\n\t */\n public void setShippingAddressInCart(Address addr);\n\n /**\n * Stores address as billing address in this customer's shopping cart\n\t */\n public void setBillingAddressInCart(Address addr);\n\n /** Stores credit card in this customer's shopping cart */\n public void setPaymentInfoInCart(CreditCard cc);\n\n\n /**\n * Called when user submits final order -- customer sends its shopping cart to order subsystem\n\t * and order subsystem extracts items from shopping cart and prepares order\n\t */\n public void submitOrder() throws BackendException;\n\n /**\n * After an order is submitted, the list of orders cached in CustomerSubsystemFacade\n * will be out of date; this method should cause order data to be reloaded\n */\n public void refreshAfterSubmit() throws BackendException;\n\n /**\n\t * Used whenever the shopping cart needs to be displayed\n\t */\n public ShoppingCartSubsystem getShoppingCart();\n\n /**\n\t * Saves shopping cart to database\n\t */\n public void saveShoppingCart() throws BackendException;\n\n\n\n\n\n // TESTING\n public DbClassAddressForTest getGenericDbClassAddress();\n public CustomerProfile getGenericCustomerProfile();\n\n}", "public RobotContainer() {\n\nleftJoystick = new Joystick(0);\nrightJoystick = new Joystick(1);\n\ndriveBase = new DriveBase();\ndriveWithJoystick = new DriveWithJoystick();\nCommandScheduler.getInstance().setDefaultCommand(driveBase, driveWithJoystick);\n\n\n // Configure the button bindings\n configureButtonBindings();\n }", "public ControlsBundleForUnitParcels() {\n super();\n }", "public interface IALEVOSEnvironment extends IEnvironment{\n \n public AnnotatedTransitionSystem getATS();\n \n\n}", "public void createPartControl(Composite parent) {\n ex = new SWTIRBConsole(parent, new IRBConfigData(){{\n setTitle(\" Welcome to the AWEScript Console \\n\\n\");\n addExtraGlobal(\"view\", RubyConsole.this);\n addExtraGlobal(\"catalog\", net.refractions.udig.catalog.CatalogPlugin.getDefault());\n addExtraGlobal(\"catalogs\", net.refractions.udig.catalog.CatalogPlugin.getDefault().getCatalogs());\n addExtraGlobal(\"projects\", net.refractions.udig.project.ui.ApplicationGIS.getProjects());\n addExtraGlobal(\"active_project\", net.refractions.udig.project.ui.ApplicationGIS.getActiveProject());\n try{\n \t// TODO: Check if 'buddy class loading' is required for this, since the plugins are not explicitly specified as dependencies\n \taddExtraGlobal(\"json_reader_class\", Class.forName(\"org.amanzi.awe.catalog.json.JSONReader\"));\n \taddExtraGlobal(\"neo_reader_class\", Class.forName(\"org.amanzi.awe.catalog.neo.NeoReader\"));\n }catch(ClassNotFoundException e){\n \tSystem.err.println(\"Cannot find possible FeatureSource class: \"+e.getMessage());\n \t//e.printStackTrace(System.err);\n }\n addExtraGlobal(\"feature_source_class\", org.geotools.data.FeatureSource.class);\n \n //manager of spreadsheets\n addExtraGlobal(\"spreadsheet_manager\", SpreadsheetManager.getInstance()); \n \n String userDir = System.getProperty(\"user.home\");\n setExtraLoadPath(new String[]{userDir+\"/.awe/script\",userDir+\"/.awe/lib\"});\n try{\n // Add the code from the internal plugin awescript.rb to the startup\n \taddExtraScript(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"gisCommands.rb\")));\n addExtraScript(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"awescript.rb\")));\n addExtraScript(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"spreadsheet.rb\"))); \n \n }catch(Exception e){\n System.err.println(\"Failed to add internal awescript startup: \"+e);\n e.printStackTrace(System.err);\n setExtraRequire(new String[]{\"awescript\"}); // try find the script from Ruby instead\n }\n \n }});\n \t\t// Create the help context id for the viewer's control\n \t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(ex, \"org.amanzi.awe.script.jirb\");\n \t\tmakeActions();\n \t\thookContextMenu();\n \t\tcontributeToActionBars();\n \t}", "private ActorSystemBootstrapTools() {}", "public interface LazElement {\n Element getElement(Element actorTabSliderElement);\n\n String getBeanName(Object data);\n}", "public interface EzlemurPackage extends EPackage {\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 = \"ezlemur\";\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://ezlemur/1.0\";\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 = \"ezlemur\";\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\tEzlemurPackage eINSTANCE = net.sf.smbt.ezlemur.impl.EzlemurPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link net.sf.smbt.ezlemur.impl.LemurOscCmdImpl <em>Lemur Osc Cmd</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see net.sf.smbt.ezlemur.impl.LemurOscCmdImpl\n\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getLemurOscCmd()\n\t * @generated\n\t */\n\tint LEMUR_OSC_CMD = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Priority</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_OSC_CMD__PRIORITY = OsccmdPackage.OSC_CMD__PRIORITY;\n\n\t/**\n\t * The feature id for the '<em><b>Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_OSC_CMD__STAMP = OsccmdPackage.OSC_CMD__STAMP;\n\n\t/**\n\t * The feature id for the '<em><b>Msg</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_OSC_CMD__MSG = OsccmdPackage.OSC_CMD__MSG;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_OSC_CMD__TARGET = OsccmdPackage.OSC_CMD_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Lemur Osc Cmd</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_OSC_CMD_FEATURE_COUNT = OsccmdPackage.OSC_CMD_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link net.sf.smbt.ezlemur.impl.LemurMidiCmdImpl <em>Lemur Midi Cmd</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see net.sf.smbt.ezlemur.impl.LemurMidiCmdImpl\n\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getLemurMidiCmd()\n\t * @generated\n\t */\n\tint LEMUR_MIDI_CMD = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Priority</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__PRIORITY = EzmidiPackage.ABSTRACT_MIDI_CMD__PRIORITY;\n\n\t/**\n\t * The feature id for the '<em><b>Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__STAMP = EzmidiPackage.ABSTRACT_MIDI_CMD__STAMP;\n\n\t/**\n\t * The feature id for the '<em><b>Addr</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__ADDR = EzmidiPackage.ABSTRACT_MIDI_CMD__ADDR;\n\n\t/**\n\t * The feature id for the '<em><b>Msg Size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__MSG_SIZE = EzmidiPackage.ABSTRACT_MIDI_CMD__MSG_SIZE;\n\n\t/**\n\t * The feature id for the '<em><b>Byte1</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__BYTE1 = EzmidiPackage.ABSTRACT_MIDI_CMD__BYTE1;\n\n\t/**\n\t * The feature id for the '<em><b>Byte2</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__BYTE2 = EzmidiPackage.ABSTRACT_MIDI_CMD__BYTE2;\n\n\t/**\n\t * The feature id for the '<em><b>Message</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__MESSAGE = EzmidiPackage.ABSTRACT_MIDI_CMD__MESSAGE;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD__TARGET = EzmidiPackage.ABSTRACT_MIDI_CMD_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Lemur Midi Cmd</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_MIDI_CMD_FEATURE_COUNT = EzmidiPackage.ABSTRACT_MIDI_CMD_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link net.sf.smbt.ezlemur.impl.LemurDmxCmdImpl <em>Lemur Dmx Cmd</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see net.sf.smbt.ezlemur.impl.LemurDmxCmdImpl\n\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getLemurDmxCmd()\n\t * @generated\n\t */\n\tint LEMUR_DMX_CMD = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Priority</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_DMX_CMD__PRIORITY = EzdmxPackage.OPEN_DMX_CMD__PRIORITY;\n\n\t/**\n\t * The feature id for the '<em><b>Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_DMX_CMD__STAMP = EzdmxPackage.OPEN_DMX_CMD__STAMP;\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 LEMUR_DMX_CMD__START = EzdmxPackage.OPEN_DMX_CMD__START;\n\n\t/**\n\t * The feature id for the '<em><b>Label</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_DMX_CMD__LABEL = EzdmxPackage.OPEN_DMX_CMD__LABEL;\n\n\t/**\n\t * The feature id for the '<em><b>Data</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_DMX_CMD__DATA = EzdmxPackage.OPEN_DMX_CMD__DATA;\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 LEMUR_DMX_CMD__END = EzdmxPackage.OPEN_DMX_CMD__END;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_DMX_CMD__TARGET = EzdmxPackage.OPEN_DMX_CMD_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Lemur Dmx Cmd</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LEMUR_DMX_CMD_FEATURE_COUNT = EzdmxPackage.OPEN_DMX_CMD_FEATURE_COUNT + 1;\n\n\n\t/**\n\t * The meta object id for the '{@link net.sf.smbt.ezlemur.impl.AbstractLemurOscCmdImpl <em>Abstract Lemur Osc Cmd</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see net.sf.smbt.ezlemur.impl.AbstractLemurOscCmdImpl\n\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getAbstractLemurOscCmd()\n\t * @generated\n\t */\n\tint ABSTRACT_LEMUR_OSC_CMD = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_LEMUR_OSC_CMD__TARGET = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Lemur Osc Cmd</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_LEMUR_OSC_CMD_FEATURE_COUNT = 1;\n\n\n\t/**\n\t * Returns the meta object for class '{@link net.sf.smbt.ezlemur.LemurOscCmd <em>Lemur Osc Cmd</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Lemur Osc Cmd</em>'.\n\t * @see net.sf.smbt.ezlemur.LemurOscCmd\n\t * @generated\n\t */\n\tEClass getLemurOscCmd();\n\n\t/**\n\t * Returns the meta object for class '{@link net.sf.smbt.ezlemur.LemurMidiCmd <em>Lemur Midi Cmd</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Lemur Midi Cmd</em>'.\n\t * @see net.sf.smbt.ezlemur.LemurMidiCmd\n\t * @generated\n\t */\n\tEClass getLemurMidiCmd();\n\n\t/**\n\t * Returns the meta object for class '{@link net.sf.smbt.ezlemur.LemurDmxCmd <em>Lemur Dmx Cmd</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Lemur Dmx Cmd</em>'.\n\t * @see net.sf.smbt.ezlemur.LemurDmxCmd\n\t * @generated\n\t */\n\tEClass getLemurDmxCmd();\n\n\t/**\n\t * Returns the meta object for class '{@link net.sf.smbt.ezlemur.AbstractLemurOscCmd <em>Abstract Lemur Osc Cmd</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Lemur Osc Cmd</em>'.\n\t * @see net.sf.smbt.ezlemur.AbstractLemurOscCmd\n\t * @generated\n\t */\n\tEClass getAbstractLemurOscCmd();\n\n\t/**\n\t * Returns the meta object for the reference '{@link net.sf.smbt.ezlemur.AbstractLemurOscCmd#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Target</em>'.\n\t * @see net.sf.smbt.ezlemur.AbstractLemurOscCmd#getTarget()\n\t * @see #getAbstractLemurOscCmd()\n\t * @generated\n\t */\n\tEReference getAbstractLemurOscCmd_Target();\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\tEzlemurFactory getEzlemurFactory();\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 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\t/**\n\t\t * The meta object literal for the '{@link net.sf.smbt.ezlemur.impl.LemurOscCmdImpl <em>Lemur Osc Cmd</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see net.sf.smbt.ezlemur.impl.LemurOscCmdImpl\n\t\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getLemurOscCmd()\n\t\t * @generated\n\t\t */\n\t\tEClass LEMUR_OSC_CMD = eINSTANCE.getLemurOscCmd();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link net.sf.smbt.ezlemur.impl.LemurMidiCmdImpl <em>Lemur Midi Cmd</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see net.sf.smbt.ezlemur.impl.LemurMidiCmdImpl\n\t\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getLemurMidiCmd()\n\t\t * @generated\n\t\t */\n\t\tEClass LEMUR_MIDI_CMD = eINSTANCE.getLemurMidiCmd();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link net.sf.smbt.ezlemur.impl.LemurDmxCmdImpl <em>Lemur Dmx Cmd</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see net.sf.smbt.ezlemur.impl.LemurDmxCmdImpl\n\t\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getLemurDmxCmd()\n\t\t * @generated\n\t\t */\n\t\tEClass LEMUR_DMX_CMD = eINSTANCE.getLemurDmxCmd();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link net.sf.smbt.ezlemur.impl.AbstractLemurOscCmdImpl <em>Abstract Lemur Osc Cmd</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see net.sf.smbt.ezlemur.impl.AbstractLemurOscCmdImpl\n\t\t * @see net.sf.smbt.ezlemur.impl.EzlemurPackageImpl#getAbstractLemurOscCmd()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_LEMUR_OSC_CMD = eINSTANCE.getAbstractLemurOscCmd();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</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 ABSTRACT_LEMUR_OSC_CMD__TARGET = eINSTANCE.getAbstractLemurOscCmd_Target();\n\n\t}\n\n}", "public void robotInit() {\n \tboardSubsystem = new BoardSubsystem();\n }", "@PresentationScope\n@Subcomponent(modules = {CarListModule.class})\npublic interface CarListComponent {\n void inject(CarListActivity target);\n}", "public interface AwesomeService {\n\n public final static String label = \"core::service::ui::AwesomeService\";\n\n public Node getIcon(final Path path);\n}", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "public interface SystemFunctionalInterfaceRequirement extends Requirement {\n}", "public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}", "public TankDrive() {\n // Use requires() here to declare subsystem dependencies\n requires(chassis);\n \n }", "public interface SysmlPackage extends EPackage {\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString copyright = \"*********************************************************************************************\\r\\nCopyright (c) 2014 Model-Based Systems Engineering Center, Georgia Institute of Technology.\\r\\n http://www.mbse.gatech.edu/\\r\\n http://www.mbsec.gatech.edu/research/oslc\\r\\n\\r\\n All rights reserved. This program and the accompanying materials\\r\\n are made available under the terms of the Eclipse Public License v1.0\\r\\n and Eclipse Distribution License v. 1.0 which accompanies this distribution.\\r\\n \\r\\n The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html\\r\\n and the Eclipse Distribution License is available at\\r\\n http://www.eclipse.org/org/documents/edl-v10.php.\\r\\n \\r\\n Contributors:\\r\\n \\r\\n Axel Reichwein, Koneksys (axel.reichwein@koneksys.com) \\r\\n*******************************************************************************************\";\r\n\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"sysml\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http://open-services.net/ns/mbse\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"sysml\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tSysmlPackage eINSTANCE = sysml.impl.SysmlPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.NamedElementImpl <em>Named Element</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.NamedElementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getNamedElement()\r\n\t * @generated\r\n\t */\r\n\tint NAMED_ELEMENT = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint NAMED_ELEMENT__NAME = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Named Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint NAMED_ELEMENT_FEATURE_COUNT = 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Named Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint NAMED_ELEMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ModelImpl <em>Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ModelImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getModel()\r\n\t * @generated\r\n\t */\r\n\tint MODEL = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Package</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL__PACKAGE = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PackageImpl <em>Package</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PackageImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getPackage()\r\n\t * @generated\r\n\t */\r\n\tint PACKAGE = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Block</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__BLOCK = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Requirement</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__REQUIREMENT = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Package</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Package</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.OwnedElementImpl <em>Owned Element</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.OwnedElementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getOwnedElement()\r\n\t * @generated\r\n\t */\r\n\tint OWNED_ELEMENT = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OWNED_ELEMENT__OWNER = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Owned Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OWNED_ELEMENT_FEATURE_COUNT = 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Owned Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OWNED_ELEMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.RequirementImpl <em>Requirement</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.RequirementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getRequirement()\r\n\t * @generated\r\n\t */\r\n\tint REQUIREMENT = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Satisfied By</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__SATISFIED_BY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Master</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__MASTER = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Refines</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__REFINES = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__ID = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Text</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__TEXT = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Derived</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__DERIVED = 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Sub Requirement</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__SUB_REQUIREMENT = 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__NAME = 7;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Derived From</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__DERIVED_FROM = 8;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Hyperlink</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__HYPERLINK = 9;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Requirement</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT_FEATURE_COUNT = 10;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Requirement</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.BlockImpl <em>Block</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.BlockImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getBlock()\r\n\t * @generated\r\n\t */\r\n\tint BLOCK = 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Part Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__PART_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Reference Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__REFERENCE_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Flow Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__FLOW_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Value Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__VALUE_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Nested Block</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__NESTED_BLOCK = NAMED_ELEMENT_FEATURE_COUNT + 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Inherited Block</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__INHERITED_BLOCK = NAMED_ELEMENT_FEATURE_COUNT + 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Satisfy</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__SATISFY = NAMED_ELEMENT_FEATURE_COUNT + 7;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Connector</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__CONNECTOR = NAMED_ELEMENT_FEATURE_COUNT + 8;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Internal Block Diagram</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__INTERNAL_BLOCK_DIAGRAM = NAMED_ELEMENT_FEATURE_COUNT + 9;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__PORT = NAMED_ELEMENT_FEATURE_COUNT + 10;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Proxy Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__PROXY_PORT = NAMED_ELEMENT_FEATURE_COUNT + 11;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Full Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__FULL_PORT = NAMED_ELEMENT_FEATURE_COUNT + 12;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 13;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.InterfaceBlockImpl <em>Interface Block</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.InterfaceBlockImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getInterfaceBlock()\r\n\t * @generated\r\n\t */\r\n\tint INTERFACE_BLOCK = 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Flow Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__FLOW_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Proxy Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__PROXY_PORT = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Interface Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Interface Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.AssociationImpl <em>Association</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.AssociationImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getAssociation()\r\n\t * @generated\r\n\t */\r\n\tint ASSOCIATION = 14;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Association</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Association</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.AssociationBlockImpl <em>Association Block</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.AssociationBlockImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getAssociationBlock()\r\n\t * @generated\r\n\t */\r\n\tint ASSOCIATION_BLOCK = 7;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK__NAME = ASSOCIATION__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Member End</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK__MEMBER_END = ASSOCIATION_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Association Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK_FEATURE_COUNT = ASSOCIATION_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Association Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK_OPERATION_COUNT = ASSOCIATION_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PropertyImpl <em>Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getProperty()\r\n\t * @generated\r\n\t */\r\n\tint PROPERTY = 8;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__LOWER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__UPPER = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__TYPE = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PartPropertyImpl <em>Part Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PartPropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getPartProperty()\r\n\t * @generated\r\n\t */\r\n\tint PART_PROPERTY = 9;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Part Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Part Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ReferencePropertyImpl <em>Reference Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ReferencePropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getReferenceProperty()\r\n\t * @generated\r\n\t */\r\n\tint REFERENCE_PROPERTY = 10;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Association</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__ASSOCIATION = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Reference Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Reference Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.FlowPropertyImpl <em>Flow Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.FlowPropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getFlowProperty()\r\n\t * @generated\r\n\t */\r\n\tint FLOW_PROPERTY = 11;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Direction</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__DIRECTION = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Flow Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Flow Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ValuePropertyImpl <em>Value Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ValuePropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getValueProperty()\r\n\t * @generated\r\n\t */\r\n\tint VALUE_PROPERTY = 12;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Default Value</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__DEFAULT_VALUE = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Value Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Value Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.MultiplicityElementImpl <em>Multiplicity Element</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.MultiplicityElementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getMultiplicityElement()\r\n\t * @generated\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT = 13;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT__LOWER = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT__UPPER = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Multiplicity Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Multiplicity Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PortImpl <em>Port</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PortImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getPort()\r\n\t * @generated\r\n\t */\r\n\tint PORT = 15;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Service</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__IS_SERVICE = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Behavior</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__IS_BEHAVIOR = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Conjugated</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__IS_CONJUGATED = PROPERTY_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ProxyPortImpl <em>Proxy Port</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ProxyPortImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getProxyPort()\r\n\t * @generated\r\n\t */\r\n\tint PROXY_PORT = 16;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__NAME = PORT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__LOWER = PORT__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__UPPER = PORT__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__OWNER = PORT__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__TYPE = PORT__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Service</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__IS_SERVICE = PORT__IS_SERVICE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Behavior</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__IS_BEHAVIOR = PORT__IS_BEHAVIOR;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Conjugated</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__IS_CONJUGATED = PORT__IS_CONJUGATED;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Proxy Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT_FEATURE_COUNT = PORT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Proxy Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT_OPERATION_COUNT = PORT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.FullPortImpl <em>Full Port</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.FullPortImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getFullPort()\r\n\t * @generated\r\n\t */\r\n\tint FULL_PORT = 17;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__NAME = PORT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__LOWER = PORT__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__UPPER = PORT__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__OWNER = PORT__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__TYPE = PORT__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Service</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__IS_SERVICE = PORT__IS_SERVICE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Behavior</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__IS_BEHAVIOR = PORT__IS_BEHAVIOR;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Conjugated</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__IS_CONJUGATED = PORT__IS_CONJUGATED;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Full Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT_FEATURE_COUNT = PORT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Full Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT_OPERATION_COUNT = PORT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ConnectorImpl <em>Connector</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ConnectorImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getConnector()\r\n\t * @generated\r\n\t */\r\n\tint CONNECTOR = 18;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>End</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__END = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__TYPE = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Connector</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Connector</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ConnectorEndImpl <em>Connector End</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ConnectorEndImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tint CONNECTOR_END = 19;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__LOWER = MULTIPLICITY_ELEMENT__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__UPPER = MULTIPLICITY_ELEMENT__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__OWNER = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Role</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__ROLE = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Defining End</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__DEFINING_END = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Part With Port</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__PART_WITH_PORT = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Connector End</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END_FEATURE_COUNT = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Connector End</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END_OPERATION_COUNT = MULTIPLICITY_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ItemFlowImpl <em>Item Flow</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ItemFlowImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tint ITEM_FLOW = 20;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Item Property</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__ITEM_PROPERTY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Information Target</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__INFORMATION_TARGET = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Information Source</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__INFORMATION_SOURCE = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Realizing Connector</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__REALIZING_CONNECTOR = 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Item Flow</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW_FEATURE_COUNT = 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Item Flow</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.TypeImpl <em>Type</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.TypeImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getType()\r\n\t * @generated\r\n\t */\r\n\tint TYPE = 24;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TYPE_FEATURE_COUNT = 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TYPE_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ValueTypeImpl <em>Value Type</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ValueTypeImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getValueType()\r\n\t * @generated\r\n\t */\r\n\tint VALUE_TYPE = 21;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE__NAME = TYPE_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Unit</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE__UNIT = TYPE_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Quantity Kind</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE__QUANTITY_KIND = TYPE_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Value Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE_FEATURE_COUNT = TYPE_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Value Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE_OPERATION_COUNT = TYPE_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.UnitImpl <em>Unit</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.UnitImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getUnit()\r\n\t * @generated\r\n\t */\r\n\tint UNIT = 22;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Symbol</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__SYMBOL = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__DESCRIPTION = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Definition URI</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__DEFINITION_URI = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Quantity Kind</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__QUANTITY_KIND = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Unit</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Unit</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.QuantityKindImpl <em>Quantity Kind</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.QuantityKindImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tint QUANTITY_KIND = 23;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Symbol</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__SYMBOL = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__DESCRIPTION = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Definition URI</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__DEFINITION_URI = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Quantity Kind</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Quantity Kind</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.BlockDiagramImpl <em>Block Diagram</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.BlockDiagramImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getBlockDiagram()\r\n\t * @generated\r\n\t */\r\n\tint BLOCK_DIAGRAM = 25;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_DIAGRAM__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_DIAGRAM_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_DIAGRAM_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.InternalBlockDiagramImpl <em>Internal Block Diagram</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.InternalBlockDiagramImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getInternalBlockDiagram()\r\n\t * @generated\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM = 26;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Internal Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Internal Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.FlowDirection <em>Flow Direction</em>}' enum.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.FlowDirection\r\n\t * @see sysml.impl.SysmlPackageImpl#getFlowDirection()\r\n\t * @generated\r\n\t */\r\n\tint FLOW_DIRECTION = 27;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Model <em>Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Model</em>'.\r\n\t * @see sysml.Model\r\n\t * @generated\r\n\t */\r\n\tEClass getModel();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Model#getPackage <em>Package</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Package</em>'.\r\n\t * @see sysml.Model#getPackage()\r\n\t * @see #getModel()\r\n\t * @generated\r\n\t */\r\n\tEReference getModel_Package();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Package <em>Package</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Package</em>'.\r\n\t * @see sysml.Package\r\n\t * @generated\r\n\t */\r\n\tEClass getPackage();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Package#getBlock <em>Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Block</em>'.\r\n\t * @see sysml.Package#getBlock()\r\n\t * @see #getPackage()\r\n\t * @generated\r\n\t */\r\n\tEReference getPackage_Block();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Package#getRequirement <em>Requirement</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Requirement</em>'.\r\n\t * @see sysml.Package#getRequirement()\r\n\t * @see #getPackage()\r\n\t * @generated\r\n\t */\r\n\tEReference getPackage_Requirement();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.NamedElement <em>Named Element</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Named Element</em>'.\r\n\t * @see sysml.NamedElement\r\n\t * @generated\r\n\t */\r\n\tEClass getNamedElement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.NamedElement#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see sysml.NamedElement#getName()\r\n\t * @see #getNamedElement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getNamedElement_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.OwnedElement <em>Owned Element</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Owned Element</em>'.\r\n\t * @see sysml.OwnedElement\r\n\t * @generated\r\n\t */\r\n\tEClass getOwnedElement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.OwnedElement#getOwner <em>Owner</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Owner</em>'.\r\n\t * @see sysml.OwnedElement#getOwner()\r\n\t * @see #getOwnedElement()\r\n\t * @generated\r\n\t */\r\n\tEReference getOwnedElement_Owner();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Requirement <em>Requirement</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Requirement</em>'.\r\n\t * @see sysml.Requirement\r\n\t * @generated\r\n\t */\r\n\tEClass getRequirement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getSatisfiedBy <em>Satisfied By</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Satisfied By</em>'.\r\n\t * @see sysml.Requirement#getSatisfiedBy()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_SatisfiedBy();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Requirement#getMaster <em>Master</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Master</em>'.\r\n\t * @see sysml.Requirement#getMaster()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_Master();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getRefines <em>Refines</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Refines</em>'.\r\n\t * @see sysml.Requirement#getRefines()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_Refines();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getId <em>Id</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Id</em>'.\r\n\t * @see sysml.Requirement#getId()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Id();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getText <em>Text</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Text</em>'.\r\n\t * @see sysml.Requirement#getText()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Text();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getDerived <em>Derived</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Derived</em>'.\r\n\t * @see sysml.Requirement#getDerived()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_Derived();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getSubRequirement <em>Sub Requirement</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Sub Requirement</em>'.\r\n\t * @see sysml.Requirement#getSubRequirement()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_SubRequirement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see sysml.Requirement#getName()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getDerivedFrom <em>Derived From</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Derived From</em>'.\r\n\t * @see sysml.Requirement#getDerivedFrom()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_DerivedFrom();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getHyperlink <em>Hyperlink</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Hyperlink</em>'.\r\n\t * @see sysml.Requirement#getHyperlink()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Hyperlink();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Block <em>Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Block</em>'.\r\n\t * @see sysml.Block\r\n\t * @generated\r\n\t */\r\n\tEClass getBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getPartProperty <em>Part Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Part Property</em>'.\r\n\t * @see sysml.Block#getPartProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_PartProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getReferenceProperty <em>Reference Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Reference Property</em>'.\r\n\t * @see sysml.Block#getReferenceProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_ReferenceProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getFlowProperty <em>Flow Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Flow Property</em>'.\r\n\t * @see sysml.Block#getFlowProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_FlowProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getValueProperty <em>Value Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Value Property</em>'.\r\n\t * @see sysml.Block#getValueProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_ValueProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getNestedBlock <em>Nested Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Nested Block</em>'.\r\n\t * @see sysml.Block#getNestedBlock()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_NestedBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getInheritedBlock <em>Inherited Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Inherited Block</em>'.\r\n\t * @see sysml.Block#getInheritedBlock()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_InheritedBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getSatisfy <em>Satisfy</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Satisfy</em>'.\r\n\t * @see sysml.Block#getSatisfy()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_Satisfy();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getConnector <em>Connector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Connector</em>'.\r\n\t * @see sysml.Block#getConnector()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_Connector();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getInternalBlockDiagram <em>Internal Block Diagram</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Internal Block Diagram</em>'.\r\n\t * @see sysml.Block#getInternalBlockDiagram()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_InternalBlockDiagram();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getPort <em>Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Port</em>'.\r\n\t * @see sysml.Block#getPort()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_Port();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getProxyPort <em>Proxy Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Proxy Port</em>'.\r\n\t * @see sysml.Block#getProxyPort()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_ProxyPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getFullPort <em>Full Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Full Port</em>'.\r\n\t * @see sysml.Block#getFullPort()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_FullPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.InterfaceBlock <em>Interface Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Interface Block</em>'.\r\n\t * @see sysml.InterfaceBlock\r\n\t * @generated\r\n\t */\r\n\tEClass getInterfaceBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.InterfaceBlock#getFlowProperty <em>Flow Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Flow Property</em>'.\r\n\t * @see sysml.InterfaceBlock#getFlowProperty()\r\n\t * @see #getInterfaceBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getInterfaceBlock_FlowProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.InterfaceBlock#getProxyPort <em>Proxy Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Proxy Port</em>'.\r\n\t * @see sysml.InterfaceBlock#getProxyPort()\r\n\t * @see #getInterfaceBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getInterfaceBlock_ProxyPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.AssociationBlock <em>Association Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Association Block</em>'.\r\n\t * @see sysml.AssociationBlock\r\n\t * @generated\r\n\t */\r\n\tEClass getAssociationBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.AssociationBlock#getMemberEnd <em>Member End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Member End</em>'.\r\n\t * @see sysml.AssociationBlock#getMemberEnd()\r\n\t * @see #getAssociationBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getAssociationBlock_MemberEnd();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Property <em>Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Property</em>'.\r\n\t * @see sysml.Property\r\n\t * @generated\r\n\t */\r\n\tEClass getProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Property#getType <em>Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Type</em>'.\r\n\t * @see sysml.Property#getType()\r\n\t * @see #getProperty()\r\n\t * @generated\r\n\t */\r\n\tEReference getProperty_Type();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.PartProperty <em>Part Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Part Property</em>'.\r\n\t * @see sysml.PartProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getPartProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ReferenceProperty <em>Reference Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Reference Property</em>'.\r\n\t * @see sysml.ReferenceProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getReferenceProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ReferenceProperty#getAssociation <em>Association</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Association</em>'.\r\n\t * @see sysml.ReferenceProperty#getAssociation()\r\n\t * @see #getReferenceProperty()\r\n\t * @generated\r\n\t */\r\n\tEReference getReferenceProperty_Association();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.FlowProperty <em>Flow Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Flow Property</em>'.\r\n\t * @see sysml.FlowProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getFlowProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.FlowProperty#getDirection <em>Direction</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Direction</em>'.\r\n\t * @see sysml.FlowProperty#getDirection()\r\n\t * @see #getFlowProperty()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getFlowProperty_Direction();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ValueProperty <em>Value Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Value Property</em>'.\r\n\t * @see sysml.ValueProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getValueProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.ValueProperty#getDefaultValue <em>Default Value</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Default Value</em>'.\r\n\t * @see sysml.ValueProperty#getDefaultValue()\r\n\t * @see #getValueProperty()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getValueProperty_DefaultValue();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.MultiplicityElement <em>Multiplicity Element</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Multiplicity Element</em>'.\r\n\t * @see sysml.MultiplicityElement\r\n\t * @generated\r\n\t */\r\n\tEClass getMultiplicityElement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.MultiplicityElement#getLower <em>Lower</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Lower</em>'.\r\n\t * @see sysml.MultiplicityElement#getLower()\r\n\t * @see #getMultiplicityElement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getMultiplicityElement_Lower();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.MultiplicityElement#getUpper <em>Upper</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Upper</em>'.\r\n\t * @see sysml.MultiplicityElement#getUpper()\r\n\t * @see #getMultiplicityElement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getMultiplicityElement_Upper();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Association <em>Association</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Association</em>'.\r\n\t * @see sysml.Association\r\n\t * @generated\r\n\t */\r\n\tEClass getAssociation();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Port <em>Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Port</em>'.\r\n\t * @see sysml.Port\r\n\t * @generated\r\n\t */\r\n\tEClass getPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Port#isIsService <em>Is Service</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Is Service</em>'.\r\n\t * @see sysml.Port#isIsService()\r\n\t * @see #getPort()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getPort_IsService();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Port#isIsBehavior <em>Is Behavior</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Is Behavior</em>'.\r\n\t * @see sysml.Port#isIsBehavior()\r\n\t * @see #getPort()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getPort_IsBehavior();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Port#isIsConjugated <em>Is Conjugated</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Is Conjugated</em>'.\r\n\t * @see sysml.Port#isIsConjugated()\r\n\t * @see #getPort()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getPort_IsConjugated();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ProxyPort <em>Proxy Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Proxy Port</em>'.\r\n\t * @see sysml.ProxyPort\r\n\t * @generated\r\n\t */\r\n\tEClass getProxyPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.FullPort <em>Full Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Full Port</em>'.\r\n\t * @see sysml.FullPort\r\n\t * @generated\r\n\t */\r\n\tEClass getFullPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Connector <em>Connector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Connector</em>'.\r\n\t * @see sysml.Connector\r\n\t * @generated\r\n\t */\r\n\tEClass getConnector();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Connector#getEnd <em>End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>End</em>'.\r\n\t * @see sysml.Connector#getEnd()\r\n\t * @see #getConnector()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnector_End();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Connector#getType <em>Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Type</em>'.\r\n\t * @see sysml.Connector#getType()\r\n\t * @see #getConnector()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnector_Type();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ConnectorEnd <em>Connector End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Connector End</em>'.\r\n\t * @see sysml.ConnectorEnd\r\n\t * @generated\r\n\t */\r\n\tEClass getConnectorEnd();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ConnectorEnd#getRole <em>Role</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Role</em>'.\r\n\t * @see sysml.ConnectorEnd#getRole()\r\n\t * @see #getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnectorEnd_Role();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ConnectorEnd#getDefiningEnd <em>Defining End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Defining End</em>'.\r\n\t * @see sysml.ConnectorEnd#getDefiningEnd()\r\n\t * @see #getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnectorEnd_DefiningEnd();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ConnectorEnd#getPartWithPort <em>Part With Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Part With Port</em>'.\r\n\t * @see sysml.ConnectorEnd#getPartWithPort()\r\n\t * @see #getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnectorEnd_PartWithPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ItemFlow <em>Item Flow</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Item Flow</em>'.\r\n\t * @see sysml.ItemFlow\r\n\t * @generated\r\n\t */\r\n\tEClass getItemFlow();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getItemProperty <em>Item Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Item Property</em>'.\r\n\t * @see sysml.ItemFlow#getItemProperty()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_ItemProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getInformationTarget <em>Information Target</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Information Target</em>'.\r\n\t * @see sysml.ItemFlow#getInformationTarget()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_InformationTarget();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getInformationSource <em>Information Source</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Information Source</em>'.\r\n\t * @see sysml.ItemFlow#getInformationSource()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_InformationSource();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getRealizingConnector <em>Realizing Connector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Realizing Connector</em>'.\r\n\t * @see sysml.ItemFlow#getRealizingConnector()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_RealizingConnector();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ValueType <em>Value Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Value Type</em>'.\r\n\t * @see sysml.ValueType\r\n\t * @generated\r\n\t */\r\n\tEClass getValueType();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ValueType#getUnit <em>Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Unit</em>'.\r\n\t * @see sysml.ValueType#getUnit()\r\n\t * @see #getValueType()\r\n\t * @generated\r\n\t */\r\n\tEReference getValueType_Unit();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ValueType#getQuantityKind <em>Quantity Kind</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Quantity Kind</em>'.\r\n\t * @see sysml.ValueType#getQuantityKind()\r\n\t * @see #getValueType()\r\n\t * @generated\r\n\t */\r\n\tEReference getValueType_QuantityKind();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Unit <em>Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Unit</em>'.\r\n\t * @see sysml.Unit\r\n\t * @generated\r\n\t */\r\n\tEClass getUnit();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Unit#getSymbol <em>Symbol</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Symbol</em>'.\r\n\t * @see sysml.Unit#getSymbol()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getUnit_Symbol();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Unit#getDescription <em>Description</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Description</em>'.\r\n\t * @see sysml.Unit#getDescription()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getUnit_Description();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Unit#getDefinitionURI <em>Definition URI</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Definition URI</em>'.\r\n\t * @see sysml.Unit#getDefinitionURI()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getUnit_DefinitionURI();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Unit#getQuantityKind <em>Quantity Kind</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Quantity Kind</em>'.\r\n\t * @see sysml.Unit#getQuantityKind()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEReference getUnit_QuantityKind();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.QuantityKind <em>Quantity Kind</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Quantity Kind</em>'.\r\n\t * @see sysml.QuantityKind\r\n\t * @generated\r\n\t */\r\n\tEClass getQuantityKind();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.QuantityKind#getSymbol <em>Symbol</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Symbol</em>'.\r\n\t * @see sysml.QuantityKind#getSymbol()\r\n\t * @see #getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getQuantityKind_Symbol();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.QuantityKind#getDescription <em>Description</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Description</em>'.\r\n\t * @see sysml.QuantityKind#getDescription()\r\n\t * @see #getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getQuantityKind_Description();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.QuantityKind#getDefinitionURI <em>Definition URI</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Definition URI</em>'.\r\n\t * @see sysml.QuantityKind#getDefinitionURI()\r\n\t * @see #getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getQuantityKind_DefinitionURI();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Type <em>Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Type</em>'.\r\n\t * @see sysml.Type\r\n\t * @generated\r\n\t */\r\n\tEClass getType();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.BlockDiagram <em>Block Diagram</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Block Diagram</em>'.\r\n\t * @see sysml.BlockDiagram\r\n\t * @generated\r\n\t */\r\n\tEClass getBlockDiagram();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.InternalBlockDiagram <em>Internal Block Diagram</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Internal Block Diagram</em>'.\r\n\t * @see sysml.InternalBlockDiagram\r\n\t * @generated\r\n\t */\r\n\tEClass getInternalBlockDiagram();\r\n\r\n\t/**\r\n\t * Returns the meta object for enum '{@link sysml.FlowDirection <em>Flow Direction</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for enum '<em>Flow Direction</em>'.\r\n\t * @see sysml.FlowDirection\r\n\t * @generated\r\n\t */\r\n\tEEnum getFlowDirection();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tSysmlFactory getSysmlFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each operation of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ModelImpl <em>Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ModelImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass MODEL = eINSTANCE.getModel();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Package</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference MODEL__PACKAGE = eINSTANCE.getModel_Package();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PackageImpl <em>Package</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PackageImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getPackage()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PACKAGE = eINSTANCE.getPackage();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Block</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference PACKAGE__BLOCK = eINSTANCE.getPackage_Block();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Requirement</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference PACKAGE__REQUIREMENT = eINSTANCE.getPackage_Requirement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.NamedElementImpl <em>Named Element</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.NamedElementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getNamedElement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass NAMED_ELEMENT = eINSTANCE.getNamedElement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.OwnedElementImpl <em>Owned Element</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.OwnedElementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getOwnedElement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OWNED_ELEMENT = eINSTANCE.getOwnedElement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Owner</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OWNED_ELEMENT__OWNER = eINSTANCE.getOwnedElement_Owner();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.RequirementImpl <em>Requirement</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.RequirementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getRequirement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass REQUIREMENT = eINSTANCE.getRequirement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Satisfied By</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__SATISFIED_BY = eINSTANCE.getRequirement_SatisfiedBy();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Master</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__MASTER = eINSTANCE.getRequirement_Master();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Refines</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__REFINES = eINSTANCE.getRequirement_Refines();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__ID = eINSTANCE.getRequirement_Id();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__TEXT = eINSTANCE.getRequirement_Text();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Derived</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__DERIVED = eINSTANCE.getRequirement_Derived();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Sub Requirement</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__SUB_REQUIREMENT = eINSTANCE.getRequirement_SubRequirement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__NAME = eINSTANCE.getRequirement_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Derived From</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__DERIVED_FROM = eINSTANCE.getRequirement_DerivedFrom();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Hyperlink</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__HYPERLINK = eINSTANCE.getRequirement_Hyperlink();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.BlockImpl <em>Block</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.BlockImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getBlock()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BLOCK = eINSTANCE.getBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Part Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__PART_PROPERTY = eINSTANCE.getBlock_PartProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Reference Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__REFERENCE_PROPERTY = eINSTANCE.getBlock_ReferenceProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Flow Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__FLOW_PROPERTY = eINSTANCE.getBlock_FlowProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Value Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__VALUE_PROPERTY = eINSTANCE.getBlock_ValueProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Nested Block</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__NESTED_BLOCK = eINSTANCE.getBlock_NestedBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Inherited Block</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__INHERITED_BLOCK = eINSTANCE.getBlock_InheritedBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Satisfy</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__SATISFY = eINSTANCE.getBlock_Satisfy();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Connector</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__CONNECTOR = eINSTANCE.getBlock_Connector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Internal Block Diagram</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__INTERNAL_BLOCK_DIAGRAM = eINSTANCE.getBlock_InternalBlockDiagram();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__PORT = eINSTANCE.getBlock_Port();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Proxy Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__PROXY_PORT = eINSTANCE.getBlock_ProxyPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Full Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__FULL_PORT = eINSTANCE.getBlock_FullPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.InterfaceBlockImpl <em>Interface Block</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.InterfaceBlockImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getInterfaceBlock()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass INTERFACE_BLOCK = eINSTANCE.getInterfaceBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Flow Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference INTERFACE_BLOCK__FLOW_PROPERTY = eINSTANCE.getInterfaceBlock_FlowProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Proxy Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference INTERFACE_BLOCK__PROXY_PORT = eINSTANCE.getInterfaceBlock_ProxyPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.AssociationBlockImpl <em>Association Block</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.AssociationBlockImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getAssociationBlock()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ASSOCIATION_BLOCK = eINSTANCE.getAssociationBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Member End</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ASSOCIATION_BLOCK__MEMBER_END = eINSTANCE.getAssociationBlock_MemberEnd();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PropertyImpl <em>Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PROPERTY = eINSTANCE.getProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference PROPERTY__TYPE = eINSTANCE.getProperty_Type();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PartPropertyImpl <em>Part Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PartPropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getPartProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PART_PROPERTY = eINSTANCE.getPartProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ReferencePropertyImpl <em>Reference Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ReferencePropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getReferenceProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass REFERENCE_PROPERTY = eINSTANCE.getReferenceProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Association</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REFERENCE_PROPERTY__ASSOCIATION = eINSTANCE.getReferenceProperty_Association();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.FlowPropertyImpl <em>Flow Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.FlowPropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getFlowProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass FLOW_PROPERTY = eINSTANCE.getFlowProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Direction</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute FLOW_PROPERTY__DIRECTION = eINSTANCE.getFlowProperty_Direction();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ValuePropertyImpl <em>Value Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ValuePropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getValueProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass VALUE_PROPERTY = eINSTANCE.getValueProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Default Value</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute VALUE_PROPERTY__DEFAULT_VALUE = eINSTANCE.getValueProperty_DefaultValue();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.MultiplicityElementImpl <em>Multiplicity Element</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.MultiplicityElementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getMultiplicityElement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass MULTIPLICITY_ELEMENT = eINSTANCE.getMultiplicityElement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Lower</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute MULTIPLICITY_ELEMENT__LOWER = eINSTANCE.getMultiplicityElement_Lower();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Upper</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute MULTIPLICITY_ELEMENT__UPPER = eINSTANCE.getMultiplicityElement_Upper();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.AssociationImpl <em>Association</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.AssociationImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getAssociation()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ASSOCIATION = eINSTANCE.getAssociation();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PortImpl <em>Port</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PortImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getPort()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PORT = eINSTANCE.getPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Is Service</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute PORT__IS_SERVICE = eINSTANCE.getPort_IsService();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Is Behavior</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute PORT__IS_BEHAVIOR = eINSTANCE.getPort_IsBehavior();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Is Conjugated</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute PORT__IS_CONJUGATED = eINSTANCE.getPort_IsConjugated();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ProxyPortImpl <em>Proxy Port</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ProxyPortImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getProxyPort()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PROXY_PORT = eINSTANCE.getProxyPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.FullPortImpl <em>Full Port</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.FullPortImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getFullPort()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass FULL_PORT = eINSTANCE.getFullPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ConnectorImpl <em>Connector</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ConnectorImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getConnector()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass CONNECTOR = eINSTANCE.getConnector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>End</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR__END = eINSTANCE.getConnector_End();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR__TYPE = eINSTANCE.getConnector_Type();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ConnectorEndImpl <em>Connector End</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ConnectorEndImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getConnectorEnd()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass CONNECTOR_END = eINSTANCE.getConnectorEnd();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Role</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR_END__ROLE = eINSTANCE.getConnectorEnd_Role();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Defining End</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR_END__DEFINING_END = eINSTANCE.getConnectorEnd_DefiningEnd();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Part With Port</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR_END__PART_WITH_PORT = eINSTANCE.getConnectorEnd_PartWithPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ItemFlowImpl <em>Item Flow</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ItemFlowImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getItemFlow()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ITEM_FLOW = eINSTANCE.getItemFlow();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Item Property</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__ITEM_PROPERTY = eINSTANCE.getItemFlow_ItemProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Information Target</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__INFORMATION_TARGET = eINSTANCE.getItemFlow_InformationTarget();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Information Source</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__INFORMATION_SOURCE = eINSTANCE.getItemFlow_InformationSource();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Realizing Connector</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__REALIZING_CONNECTOR = eINSTANCE.getItemFlow_RealizingConnector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ValueTypeImpl <em>Value Type</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ValueTypeImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getValueType()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass VALUE_TYPE = eINSTANCE.getValueType();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Unit</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference VALUE_TYPE__UNIT = eINSTANCE.getValueType_Unit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Quantity Kind</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference VALUE_TYPE__QUANTITY_KIND = eINSTANCE.getValueType_QuantityKind();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.UnitImpl <em>Unit</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.UnitImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getUnit()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass UNIT = eINSTANCE.getUnit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute UNIT__SYMBOL = eINSTANCE.getUnit_Symbol();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute UNIT__DESCRIPTION = eINSTANCE.getUnit_Description();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Definition URI</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute UNIT__DEFINITION_URI = eINSTANCE.getUnit_DefinitionURI();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Quantity Kind</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference UNIT__QUANTITY_KIND = eINSTANCE.getUnit_QuantityKind();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.QuantityKindImpl <em>Quantity Kind</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.QuantityKindImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getQuantityKind()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass QUANTITY_KIND = eINSTANCE.getQuantityKind();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute QUANTITY_KIND__SYMBOL = eINSTANCE.getQuantityKind_Symbol();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute QUANTITY_KIND__DESCRIPTION = eINSTANCE.getQuantityKind_Description();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Definition URI</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute QUANTITY_KIND__DEFINITION_URI = eINSTANCE.getQuantityKind_DefinitionURI();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.TypeImpl <em>Type</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.TypeImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getType()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass TYPE = eINSTANCE.getType();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.BlockDiagramImpl <em>Block Diagram</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.BlockDiagramImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getBlockDiagram()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BLOCK_DIAGRAM = eINSTANCE.getBlockDiagram();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.InternalBlockDiagramImpl <em>Internal Block Diagram</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.InternalBlockDiagramImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getInternalBlockDiagram()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass INTERNAL_BLOCK_DIAGRAM = eINSTANCE.getInternalBlockDiagram();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.FlowDirection <em>Flow Direction</em>}' enum.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.FlowDirection\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getFlowDirection()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEEnum FLOW_DIRECTION = eINSTANCE.getFlowDirection();\r\n\r\n\t}\r\n\r\n}", "public void userAction(ElementInstance ei) {\r\n\t\t\r\n\t}", "public interface ModController {\r\n\r\n /**\r\n * Do something to enable the mod this controller is designed for properly.\r\n */\r\n void enableMod();\r\n\r\n /**\r\n * Do something to disable the mod this controller is designed for properly.\r\n */\r\n void disableMod();\r\n\r\n}", "public void configure(Element parent) {\n }", "public interface IElementService {\n\n /**\n * Create new element\n * @param name\n */\n public IElement createNewElement(String name);\n}", "@Singleton\n@Component(modules = ImeiMainModule.class)\npublic interface ImeiMainComponent {\n void inject(ImeiAplication app);\n\n //Exposed to sub-graphs.\n ImeiAplication app();\n}", "interface EnvironmentSearchCommandDriver extends SimpleBeanEditorDriver<ClientEnvironmentSearchCommand, EnvironmentManagementPanel> {\n\t}", "@SubActivity\n@Component(modules = {ActivityModule.class})\npublic interface ActivityComponent{\n\n}" ]
[ "0.66938776", "0.6417196", "0.60614264", "0.59753644", "0.5908838", "0.5826567", "0.56293297", "0.5615924", "0.5565891", "0.5546835", "0.5541865", "0.5541677", "0.5513627", "0.54839015", "0.5421945", "0.54069895", "0.5386535", "0.53819185", "0.53788525", "0.5364584", "0.5356811", "0.5327123", "0.5272552", "0.52313405", "0.5213908", "0.5209633", "0.5198184", "0.515949", "0.5136637", "0.5131141", "0.51297253", "0.5114507", "0.50984764", "0.5098295", "0.5074168", "0.50634015", "0.50599873", "0.5059562", "0.50569665", "0.5054716", "0.5053766", "0.505053", "0.5045029", "0.5023471", "0.50190383", "0.50062513", "0.5003941", "0.5003895", "0.5001908", "0.5001167", "0.5000354", "0.49904796", "0.49902475", "0.49839768", "0.49694353", "0.4947013", "0.49290392", "0.4920764", "0.49180484", "0.49139592", "0.49065933", "0.4906097", "0.49036244", "0.49034405", "0.49020088", "0.48998803", "0.48966318", "0.48916915", "0.48899555", "0.4884077", "0.48792166", "0.4878813", "0.48781988", "0.4870609", "0.48615667", "0.48600742", "0.48577487", "0.48559737", "0.4853732", "0.4846392", "0.4835496", "0.48330376", "0.48320696", "0.48309773", "0.48292455", "0.4827043", "0.48243126", "0.4821333", "0.48209748", "0.4818162", "0.48140055", "0.48138788", "0.48128527", "0.48096645", "0.4809277", "0.48090982", "0.48024598", "0.47990385", "0.4798248", "0.47974077", "0.47949788" ]
0.0
-1
Created by hgwang on 2017/1/25.
public interface StationService { //1. /api/station/save 保存更新 public void save(Station entity); //2. /api/station/remove 删除 public void remove(long id); //3. /api/station/1 查询 public Station findOne(long id); //4. /api/station/findAll 获取所有 public Page<Station> findAll(int page, int size, String code, String name); //4. /api/station/findAll 获取所有 public List<Station> findByCode(String code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\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}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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\tpublic void rozmnozovat() {\n\t}", "private void init() {\n\n\t}", "@Override\n void init() {\n }", "public final void mo51373a() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo38117a() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void gored() {\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 public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo4359a() {\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 protected void initialize() {\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}", "@Override\n public void init() {}", "@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 public void memoria() {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\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()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\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 }", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "public void mo6081a() {\n }", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "Petunia() {\r\n\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}" ]
[ "0.6061531", "0.60198885", "0.58419544", "0.5825182", "0.5793375", "0.5793375", "0.5716404", "0.5698378", "0.56853944", "0.5633607", "0.56314063", "0.5621663", "0.5616289", "0.5613867", "0.5586396", "0.5583151", "0.5577464", "0.5566472", "0.5565948", "0.5563528", "0.55554825", "0.55554825", "0.55554825", "0.55554825", "0.55554825", "0.55489075", "0.5540933", "0.55218095", "0.55159146", "0.55112267", "0.55072975", "0.5507086", "0.5498418", "0.54931307", "0.5492057", "0.5490016", "0.54760224", "0.54691404", "0.54507375", "0.54507375", "0.54507375", "0.54500276", "0.5445425", "0.54445094", "0.54445094", "0.5440424", "0.5440424", "0.5435723", "0.5431149", "0.5431149", "0.5431149", "0.5431149", "0.5431149", "0.5431149", "0.5425796", "0.5425796", "0.5425796", "0.5423615", "0.5419038", "0.5419038", "0.5418337", "0.5418337", "0.5418337", "0.5411303", "0.5407973", "0.54019666", "0.5398408", "0.5387771", "0.5386888", "0.5379428", "0.53752124", "0.5356853", "0.5353754", "0.5351882", "0.5349101", "0.5345977", "0.5344927", "0.5340448", "0.5339294", "0.533929", "0.533929", "0.533929", "0.533929", "0.533929", "0.533929", "0.533929", "0.5338111", "0.53146213", "0.53065085", "0.53039235", "0.5287594", "0.5287077", "0.52760786", "0.5266651", "0.52521586", "0.52451944", "0.5237624", "0.52352285", "0.5214939", "0.5214372", "0.52116054" ]
0.0
-1
Get list of success responses from nodes.
@NotNull public static List<Response> proxyReplicas(@NotNull final Request request, @NotNull final Collection<HttpClient> httpClients, final int min) { final List<Response> responses = new ArrayList<>(); for (final var httpClient : httpClients) { final Response response; try { response = proxy(request, httpClient); } catch (ProxyException e) { continue; } if (response.getStatus() != 202 /* ACCEPTED */ && response.getStatus() != 201 /* CREATED */ && response.getStatus() != 200 /* OK */ && response.getStatus() != 404 /* NOT FOUND */) { continue; } responses.add(response); if (responses.size() >= min) { break; } } return responses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getSuccesses() {\n return successes;\n }", "public abstract Collection<Node> getAllSuccessors();", "public abstract LinkedList<Node> getSuccessors();", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> \n getResponsesList();", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }", "public Object[] getSuccessorNodes (Object node) throws InvalidComponentException;", "public int getSuccesses() {\n return successes.get();\n }", "public java.util.List<entities.Torrent.NodeSearchResult> getResultsList() {\n if (resultsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(results_);\n } else {\n return resultsBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeSearchResult> getResultsList() {\n return results_;\n }", "public Long getSendSuccessResponseTimes()\r\n {\r\n return sendSuccessResponseTimes;\r\n }", "java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse> \n getConditionalResponsesList();", "public HashSet<N> getSuccessors(N node)\r\n/* 26: */ {\r\n/* 27: 56 */ assert (checkRep());\r\n/* 28: 57 */ return new HashSet(((Map)this.map.get(node)).keySet());\r\n/* 29: */ }", "public Long getReceiveSuccessResponseTimes()\r\n {\r\n return receiveSuccessResponseTimes;\r\n }", "java.util.List<com.google.protobuf.ByteString> getResponseList();", "default Promise<List<NodeHealthStat>> loadNodes() {\n final Promise<List<NodeHealthStat>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }", "java.util.List<? extends entities.Torrent.NodeSearchResultOrBuilder>\n getResultsOrBuilderList();", "private <T> List<T> contactNNodes(byte[] nodeKey, byte[] key, TreeSet<KademliaNodeWrapper> shortList, TreeSet<KademliaNodeWrapper> probedNodes, int n, TwoParameterFunction<KademliaNode, byte[], Pair<KademliaNode, List<T>> > rpc) {\n // Select alpha nodes to query\n List<KademliaNodeWrapper> tempAlphaList = new ArrayList<>();\n Iterator it = shortList.iterator();\n while (tempAlphaList.size() < KademliaUtils.alpha && it.hasNext()) {\n KademliaNodeWrapper node = (KademliaNodeWrapper) it.next();\n\n if (probedNodes.contains(node))\n continue;\n\n tempAlphaList.add(node);\n }\n\n// logger.log(Level.INFO, \"tempAlphaList with \" + tempAlphaList.size() + \" nodes\");\n\n // Variable to store the returned objects in case the RPC is Find_Value\n List<T> ret = new ArrayList<>();\n\n // Query selected alpha nodes\n for(KademliaNodeWrapper node : tempAlphaList) {\n boolean received = false;\n\n if(badNodes.containsKey(Utils.bytesToHexString(node.getNodeID()))){\n if(badNodes.get(Utils.bytesToHexString(node.getNodeID())).getLastSeen() > Instant.now().getEpochSecond() + KademliaUtils.badNodeTimeoutSecs) {\n badNodes.remove(Utils.bytesToHexString(node.getNodeID()));\n }\n else\n continue;\n }\n\n Pair<KademliaNode, List<T>> retAux = rpc.apply(node, key);\n\n if(retAux.getFirst() == null) {\n// logger.log(Level.INFO, \"Node \" + node + \" didn't respond. Removing from shortlist.\");\n shortList.remove(node);\n badNodes.put(Utils.bytesToHexString(node.getNodeID()), node);\n bucketManager.removeNode(node);\n }\n else {\n// logger.log(Level.INFO, \"Node \" + node + \" returned some things.\");\n bucketManager.insertNode(retAux.getFirst());\n probedNodes.add(node);\n }\n\n\n // Set node timestamp as the distance\n for(T aux : retAux.getSecond()) {\n if (aux.getClass() == KademliaNode.class) {\n KademliaNode aux2 = (KademliaNode) aux;\n// bucketManager.insertNode(aux2);\n\n KademliaNodeWrapper aux3 = new KademliaNodeWrapper(aux2, KademliaUtils.distanceTo(aux2.getNodeID(), nodeKey));\n if(!badNodes.containsKey(Utils.bytesToHexString(aux3.getNodeID())))\n shortList.add(aux3);\n else if(badNodes.get(Utils.bytesToHexString(aux3.getNodeID())).getLastSeen() > Instant.now().getEpochSecond() + KademliaUtils.badNodeTimeoutSecs){\n badNodes.remove(Utils.bytesToHexString(aux3.getNodeID()));\n shortList.add(aux3);\n }\n\n// logger.log(Level.INFO, \"Node \" + aux2 + \" added.\");\n }\n else {\n// logger.log(Level.INFO, \"Added some information.\");\n ret.add(aux);\n received = true;\n }\n }\n\n if(received)\n return ret;\n }\n\n return ret;\n }", "java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> \n getOutputsList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> \n getOutputsList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> \n getOutputsList();", "@GET\n\t@Produces(\"application/json\")\n\tpublic Response getGraphNodes() {\n\n\t\tif (currentGraph != null) {\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph.getNodes())\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(404)\n\t\t\t\t\t.entity(\"NO ESTA\")\n\t\t\t\t\t.build();\n\t\t}\n\n\t\t\n\t}", "java.util.List<Rsp.RequestFromSelf>\n getRequestsList();", "public List<AllocatableAction> getSuccessors() {\n return this.resourceSuccessors;\n }", "ResponseEntity<List<Status>> findTaskStatuses();", "IndexList[] successors() {\r\n SortedMap<String,Integer> labelMap = new TreeMap<String,Integer>(); \r\n for (int i = 0; i < code.length; i++) {\r\n\tInst c = code[i];\r\n\tif (c instanceof LabelDec)\r\n\t labelMap.put(((LabelDec) c).name, i);\r\n }\r\n IndexList[] allSuccs = new IndexList[code.length]; \r\n for (int i = 0; i < code.length-1; i++) { // there's always a label at the end\r\n\tInst inst = code[i];\r\n\tIndexList succs = new IndexList();\r\n\tif (inst instanceof CJump) {\r\n\t succs.add(labelMap.get(((CJump) inst).lab.name));\r\n\t succs.add(i+1); // safe because there's always a label at the end\r\n\t} else if (inst instanceof Jump) \r\n\t succs.add(labelMap.get(((Jump) inst).lab.name));\r\n\telse\r\n\t succs.add(i+1); \r\n\tallSuccs[i] = succs;\r\n }\r\n allSuccs[code.length-1] = new IndexList(); // label at the end has no successors\r\n return allSuccs;\r\n }", "default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }", "public List <State> getResponse ()\n {\n return response;\n }", "public HashMap<Long, Boolean> getSuccess() {\n\t\treturn succesful;\n\t}", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "public ArrayList<CIPsResponse> getResponsesList() {\n createAllResponses();\n return responsesList;\n }", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "boolean getReturnPartialResponses();", "default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }", "int getNodeStatusListCount();", "protected abstract void success(List<T> data);", "entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);", "org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index);", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> getOutputsList() {\n if (outputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(outputs_);\n } else {\n return outputsBuilder_.getMessageList();\n }\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> getOutputsList() {\n if (outputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(outputs_);\n } else {\n return outputsBuilder_.getMessageList();\n }\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> getOutputsList() {\n if (outputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(outputs_);\n } else {\n return outputsBuilder_.getMessageList();\n }\n }", "public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }", "public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> getResponsesList() {\n if (responsesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(responses_);\n } else {\n return responsesBuilder_.getMessageList();\n }\n }", "List<Node> getNodes();", "java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> \n getResponsesOrBuilderList();", "public Response status() {\n return getStates();\n }", "@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }", "public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) {\n return responses_.get(index);\n }", "public List<HealthCheck> getNodeChecks(String node);", "Set<? extends IRBasicBlock> getSuccessors(IRBasicBlock block);", "public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }", "@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }", "int getResponsesCount();", "public abstract Response[] collectResponse();", "int getFollowRequests(AsyncResultHandler handler);", "java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult> \n getReaultList();", "public Boolean getSuccess() {\n\t\treturn success;\n\t}", "@Override\n\tpublic String list() throws Throwable {\n\t\treturn SUCCESS;\n\t}", "entities.Torrent.NodeSearchResult getResults(int index);", "public List<Node> getNodes();", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> getOutputsList() {\n return outputs_;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> getOutputsList() {\n return outputs_;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput> getOutputsList() {\n return outputs_;\n }", "@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeSearchResultOrBuilder>\n getResultsOrBuilderList() {\n return results_;\n }", "public int getSuccess() {\n return success;\n }", "java.util.List<GoogleGRPC_08.proto.StudentResponse> \n getStudentResponseList();", "boolean hasListResponse();", "@Override\n\t\t\tpublic void onSuccess(List<ClientMessageDecorator> result) {\n\t\t\t\tfor (int i = result.size()-1; i >= 0; i--) {\n\t\t\t\t\taddMessage(result.get(i), false);\n\t\t\t\t}\n\t\t\t}", "java.util.List<java.lang.Integer>\n getCompletedTutorialsValueList();", "public void setSuccessCodes(final List<Integer> successCodes) {\n this.successCodes = successCodes;\n }", "public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> getResponsesList() {\n return responses_;\n }", "public java.util.List<? extends entities.Torrent.NodeSearchResultOrBuilder>\n getResultsOrBuilderList() {\n if (resultsBuilder_ != null) {\n return resultsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(results_);\n }\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "edu.usfca.cs.dfs.StorageMessages.ListResponse getListResponse();", "public boolean getSuccess() {\n return success_;\n }", "List<CyNode> getNodeList();", "Set<Integer> getExpectedStatusCodes();", "List<Node> nodes();", "public Object[] getFilteredSuccessorNodes (Object node) throws InvalidComponentException;", "private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }", "public java.util.List<com.google.protobuf.ByteString>\n getResponseList() {\n return response_;\n }", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder> \n getOutputsOrBuilderList();", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder> \n getOutputsOrBuilderList();", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder> \n getOutputsOrBuilderList();", "public List<byte[]> getResponses() {\n List<byte[]> responsesCopy = new ArrayList<>();\n for (byte[] response : this.responses) {\n responsesCopy.add(response.clone());\n }\n return responsesCopy;\n }", "java.util.List<entities.Torrent.NodeId>\n getNodesList();", "@Override\n @GET\n @Path(\"/servers\")\n @Produces(\"application/json\")\n public Response getServers() throws Exception {\n log.trace(\"getServers() started.\");\n JSONArray json = new JSONArray();\n for (Server server : cluster.getServerList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/servers/%d\", rootUri, server.getServerId());\n String serverUri = String.format(\"/providers/%d/servers/%d\", provider.getProviderId(), server.getServerId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", serverUri);\n json.put(o);\n }\n\n log.trace(\"getServers() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "public int getResponsesCount() {\n return responses_.size();\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }" ]
[ "0.6351108", "0.63219935", "0.6108686", "0.5745971", "0.5727248", "0.56141835", "0.5576302", "0.5474291", "0.5448821", "0.5428537", "0.5382468", "0.52741843", "0.5235424", "0.5179148", "0.5162785", "0.5159893", "0.5149111", "0.5116679", "0.5102967", "0.50888014", "0.50851583", "0.50672966", "0.50640213", "0.5059587", "0.5059587", "0.5059587", "0.50483465", "0.50363237", "0.50310403", "0.50163937", "0.5000472", "0.49826112", "0.49804303", "0.49789083", "0.49750042", "0.49750042", "0.49750042", "0.49750042", "0.49743104", "0.49479592", "0.4943543", "0.49352992", "0.49311152", "0.4924675", "0.49096137", "0.49078414", "0.4897187", "0.4897187", "0.4897187", "0.48932996", "0.48866904", "0.4881135", "0.4880226", "0.48724934", "0.48589954", "0.485445", "0.4847937", "0.4842614", "0.48409614", "0.48382074", "0.48364592", "0.48201248", "0.48097846", "0.47997", "0.4776845", "0.47567117", "0.47495064", "0.4737563", "0.473383", "0.473383", "0.473383", "0.4732899", "0.47263435", "0.47235617", "0.47222137", "0.47153288", "0.469966", "0.46954405", "0.46944648", "0.46782574", "0.46746686", "0.46688685", "0.4668544", "0.46679243", "0.46679172", "0.46668515", "0.4663391", "0.46621433", "0.466143", "0.4646883", "0.4646883", "0.4646883", "0.46432874", "0.46378046", "0.46365923", "0.463437", "0.4634339", "0.4634339", "0.4634339", "0.4634339", "0.46332094" ]
0.0
-1
Handle CompletableFuture Response on responding to proxy request.
public static void proxyHandle(@NotNull final HttpSession session, @NotNull final CompletableFuture<Response> proxyHandler) { if (proxyHandler .whenComplete((r, t) -> proxyWhenCompleteHandler(session, r, t)) .isCancelled()) { throw new CancellationException("Canceled task"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompletableFuture<WebClientServiceResponse> whenComplete();", "public void operationComplete(Future<Response> future) throws Exception {\n }", "void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);", "void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data);", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "CompletableFuture<Void> next();", "CompletableFuture<HttpResponse> sendRequest(HttpRequest request);", "void stubNextResponse(HttpExecuteResponse nextResponse);", "@Override\r\n public void afterCompletion(HttpServletRequest request,\r\n HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception \r\n {\n }", "private void maybeOnSucceededOnExecutor() {\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n if (!(mWriteState == State.WRITING_DONE && mReadState == State.READING_DONE)) {\n return;\n }\n mReadState = mWriteState = State.SUCCESS;\n // Destroy native stream first, so UrlRequestContext could be shut\n // down from the listener.\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onSucceeded(CronetBidirectionalStream.this, mResponseInfo);\n } catch (Exception e) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in onSucceeded method\", e);\n }\n mInflightDoneCallbackCount.decrement();\n }", "CompletableFuture<Void> sendRequestOneWay(HttpRequest request);", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception {\n \r\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t}", "protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}", "void onCompleted(T response);", "public Result apply(WSResponse response) {\n\n if (response.getStatus() >= 400) {\n Logger.info(\"Error status [\" + response.getStatusText() + \"] from proxied request \" + holder.getUrl());\n return getCachedResponse(response.getStatus());\n }\n /**\n * Check the content type of the response. Current policy is that only JSON types are supported. Other types should not be\n * cached. u\n */\n if (!response.getHeader(Http.HeaderNames.CONTENT_TYPE).contains(Http.MimeTypes.JSON)) {\n //TODO: Remove\n Logger.warn(\"Response contains unsupported mediatype: \" + response.getHeader(Http.HeaderNames.CONTENT_TYPE));\n return status(UNSUPPORTED_MEDIA_TYPE, \"Response contains an unsupported media type [\" + response.getHeader(Http.HeaderNames.CONTENT_TYPE) + \"]\");\n }\n\n //TODO: get request and response headers into a string to cache\n CachedResponse resp = new CachedResponse(\n request().toString(),\n response.getBody(),\n response.getStatus(),\n \"application/json\"\n );\n\n Logger.debug(\"Response headers are \" + response.getAllHeaders());\n for (String key : response.getAllHeaders().keySet()) {\n final String val = StringUtils.join(response.getAllHeaders().get(key), \";\");\n response().setHeader(key, val);\n }\n _responseCache.put(getCacheKeyFromRequest(), resp);\n Logger.debug(\"Cached Response for [\" + holder.getUrl() + \"] from proxied request \" + holder.getUrl());\n return status(response.getStatus(), response.getBody()).as(Http.MimeTypes.JSON);\n }", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public void onSuccess(Response response) {\n if (Responses.isServerErrorRange(response)\n || (Responses.isQosStatus(response) && !Responses.isTooManyRequests(response))) {\n OptionalInt next = incrementHostIfNecessary(pin);\n instrumentation.receivedErrorStatus(pin, channel, response, next);\n } else {\n instrumentation.successfulResponse(channel.stableIndex());\n }\n }", "public abstract HTTPResponse finish();", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tHandlerInterceptor.super.afterCompletion(request, response, handler, ex);\n\t}", "@Override\n public void operationComplete(Future<Void> future) throws Exception{\n if(!future.isSuccess()){\n olapFuture.fail(future.cause());\n olapFuture.signal();\n }\n }", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {\r\n\t}", "@Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if (!future.isSuccess()) {\n Throwable cause = future.cause();\n // Do something\n }\n }", "@Override\r\n public void onSuccess(OrderProxy response)\r\n {\n }", "@Override\r\n public void onSuccess(OrderProxy response)\r\n {\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\n\t}", "public interface HttpResponseProxylet extends Proxylet {\n \n /**\n * Possible return code of method 'accept'.\n * <br/>The proxylet accepts the message and will not block while processing it\n */\n public static final int ACCEPT = 0x03;\n /**\n * Possible return code of method 'accept'.\n * the proxylet accepts the message but might block while processing it\n */\n public static final int ACCEPT_MAY_BLOCK = 0x7;\n /**\n * Possible return code of method 'accept'.\n * <br/>The proxylet is not interested in the message\n */\n public static final int IGNORE = 0;\n \n /**\n * Called by the Engine to know how the proxylet will handle the Response.\n * <br/>The possible return codes are: ACCEPT, ACCEPT_MAY_BLOCK, IGNORE.\n * <b>NOTE: This method can be called by the Engine several times in a row for the same request.</b>\n * Therefore it should behave accordingly.\n * @param prolog the response prolog\n * @param headers the response headers\n * @return ACCEPT, ACCEPT_MAY_BLOCK, or IGNORE\n */\n public int accept(HttpResponseProlog prolog, HttpHeaders headers);\n \n}", "public void receivedHttpResponse(ProxyMessageContext context) {\n\t\ttry {\n\t\t\thttpOutQueue.put(context);\n\t\t\t\n synchronized (httpResponder) {\n \thttpResponder.notify();\n }\n \n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tsuper.afterCompletion(request, response, handler, ex);\n\t}", "@Override\n protected void deliverResponse(T response) {\n listener.onSuccessResponse(response);\n }", "@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest req, HttpServletResponse resp, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tsuper.afterCompletion(request, response, handler, ex);\n\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n Exception ex) throws Exception {\n\r\n }", "@Override\n\tpublic void replyOperationCompleted() { ; }", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tlogger.info(\"execute afterCompletion method ……\");\n\t\t\n\t}", "@Override\n\tpublic void processResponse(ResponseEvent responseEvent) {\n\t\tResponse response = responseEvent.getResponse();\n\t\ttry {\n\t\t\t// Display the response message in the text area.\n\t\t\t//printMessage(\"\\nReceived response: \" + response.toString());\n\n\t\t\tClientTransaction tid = responseEvent.getClientTransaction();\n\t\t\tCSeqHeader cseq = (CSeqHeader) response.getHeader(CSeqHeader.NAME);\n\t\t\tif (response.getStatusCode() == Response.OK) {\n\t\t\t\tif (cseq.getMethod().equals(Request.REGISTER)) {\n\t\t\t\t\tSystem.out.println(\"regist ACK OK\");\n\t\t\t\t\t//onInvite();\n\t\t\t\t} else if (cseq.getMethod().equals(Request.INVITE)) {\n\t\t\t\t\tDialog dialog = inviteTid.getDialog();\n\t\t\t\t\tRequest ackRequest = dialog.createAck(cseq.getSeqNumber());\n\t\t\t\t\tdialog.sendAck(ackRequest);\n\t\t\t\t\tSystem.out.println(\"Sending ACK\");\n\t\t\t\t} else if (cseq.getMethod().equals(Request.MESSAGE)) {\n\t\t\t\t\tSystem.out.println(\"Send OK !\");\n\t\t\t\t} else if (cseq.getMethod().equals(Request.CANCEL)) {\n\t\t\t\t\tSystem.out.println(\"Sending BYE -- cancel went in too late !!\");\n\t\t\t\t}\n\t\t\t} else if (response.getStatusCode() == Response.PROXY_AUTHENTICATION_REQUIRED\n\t\t\t\t\t|| response.getStatusCode() == Response.UNAUTHORIZED) {\n\t\t\t\tauthenticationHelper = ((SipStackExt) sipStack)\n\t\t\t\t\t\t.getAuthenticationHelper(new AccountManagerImpl(),\n\t\t\t\t\t\t\t\theaderFactory);\n\t\t\t\tinviteTid = authenticationHelper.handleChallenge(response, tid,\n\t\t\t\t\t\tsipProvider, 5);\n\t\t\t\tinviteTid.getRequest().addHeader(\n\t\t\t\t\t\theaderFactory.createExpiresHeader(3600));\n\t\t\t\tinviteTid.getRequest().setMethod(Request.REGISTER);\n\t\t\t\tinviteTid.sendRequest();\n\t\t\t\tinvco++;\n\t\t\t\tprintMessage(\"[processResponse] Request sent:\\n\" + inviteTid.getRequest().toString() + \"\\n\\n\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public interface AsyncResponse {\n void processFinish(RoadInfo output);\n }", "@Override\n protected void doFetch(SocketTimeout timeout) throws IOException {\n _aborted = false;\n readHeaders();\n if (_aborted)\n throw new IOException(\"Timed out reading the HTTP headers\");\n \n if (timeout != null) {\n timeout.resetTimer();\n if (_fetchInactivityTimeout > 0)\n timeout.setInactivityTimeout(_fetchInactivityTimeout);\n else\n timeout.setInactivityTimeout(60*1000);\n } \n if (_fetchInactivityTimeout > 0)\n _proxy.setSoTimeout(_fetchInactivityTimeout);\n else\n _proxy.setSoTimeout(INACTIVITY_TIMEOUT);\n\n if (_redirectLocation != null) {\n throw new IOException(\"Server redirect to \" + _redirectLocation + \" not allowed\");\n }\n \n if (_log.shouldLog(Log.DEBUG))\n _log.debug(\"Headers read completely, reading \" + _bytesRemaining);\n \n boolean strictSize = (_bytesRemaining >= 0);\n\n Thread pusher = null;\n _decompressException = null;\n if (_isGzippedResponse) {\n PipedInputStream pi = new PipedInputStream(64*1024);\n PipedOutputStream po = new PipedOutputStream(pi);\n pusher = new I2PAppThread(new Gunzipper(pi, _out), \"EepGet Decompressor\");\n _out = po;\n pusher.start();\n }\n\n int remaining = (int)_bytesRemaining;\n byte buf[] = new byte[16*1024];\n while (_keepFetching && ( (remaining > 0) || !strictSize ) && !_aborted) {\n int toRead = buf.length;\n if (strictSize && toRead > remaining)\n toRead = remaining;\n int read = _proxyIn.read(buf, 0, toRead);\n if (read == -1)\n break;\n if (timeout != null)\n timeout.resetTimer();\n _out.write(buf, 0, read);\n _bytesTransferred += read;\n\n remaining -= read;\n if (remaining==0 && _encodingChunked) {\n int char1 = _proxyIn.read();\n if (char1 == '\\r') {\n int char2 = _proxyIn.read();\n if (char2 == '\\n') {\n remaining = (int) readChunkLength();\n } else {\n _out.write(char1);\n _out.write(char2);\n _bytesTransferred += 2;\n remaining -= 2;\n read += 2;\n }\n } else {\n _out.write(char1);\n _bytesTransferred++;\n remaining--;\n read++;\n }\n }\n if (timeout != null)\n timeout.resetTimer();\n if (_bytesRemaining >= read) // else chunked?\n _bytesRemaining -= read;\n if (read > 0) {\n for (int i = 0; i < _listeners.size(); i++) \n _listeners.get(i).bytesTransferred(\n _alreadyTransferred, \n read, \n _bytesTransferred, \n _encodingChunked?-1:_bytesRemaining, \n _url);\n // This seems necessary to properly resume a partial download into a stream,\n // as nothing else increments _alreadyTransferred, and there's no file length to check.\n // Do this after calling the listeners to keep the total correct\n _alreadyTransferred += read;\n }\n }\n \n if (_out != null)\n _out.close();\n _out = null;\n \n if (_isGzippedResponse) {\n try {\n pusher.join();\n } catch (InterruptedException ie) {}\n pusher = null;\n if (_decompressException != null) {\n // we can't resume from here\n _keepFetching = false;\n throw _decompressException;\n }\n }\n\n if (_aborted)\n throw new IOException(\"Timed out reading the HTTP data\");\n \n if (timeout != null)\n timeout.cancel();\n \n if (_transferFailed) {\n // 404, etc - transferFailed is called after all attempts fail, by fetch() above\n for (int i = 0; i < _listeners.size(); i++) \n _listeners.get(i).attemptFailed(_url, _bytesTransferred, _bytesRemaining, _currentAttempt, _numRetries, new Exception(\"Attempt failed\"));\n } else if ( (_bytesRemaining == -1) || (remaining == 0) ) {\n for (int i = 0; i < _listeners.size(); i++) \n _listeners.get(i).transferComplete(\n _alreadyTransferred, \n _bytesTransferred, \n _encodingChunked?-1:_bytesRemaining, \n _url, \n _outputFile, \n _notModified);\n } else {\n throw new IOException(\"Disconnection on attempt \" + _currentAttempt + \" after \" + _bytesTransferred);\n }\n }", "@Override\n\t\tpublic void operationComplete(ChannelFuture arg0) throws Exception {\n\t\t\t\n\t\t}", "@Override\r\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void doAfterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object obj, Exception e) {\n\t\t\n\t}", "public interface OnResponseTaskCompleted {\n /**\n * Called when the task completes with or without error.\n *\n * @param request Original sent request.\n * @param response Response to the request. Can be null.\n * @param ohex OHException thrown on server, null otherwise.\n * @param data Data registered to the task on which this method calls back.\n */\n void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data);\n }", "default void accept(CompletableFuture<? extends T> future) {\n future.handle((value, failure) -> {\n if (failure == null) {\n success(value);\n } else {\n error(failure);\n }\n\n return null;\n });\n }", "CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);", "Single<WebClientServiceResponse> whenComplete();", "Single<WebClientServiceResponse> whenComplete();", "void receiveResponse(String invocationId, HttpResponse response);", "@Override\n public void onCompleted() {\n System.out.println(\"Sending final response as client is done\");\n //as client done, setting the result to response observer object\n responseObserver.onNext(LongGreetResponse.newBuilder().setResult(result).build());\n //complete the response\n responseObserver.onCompleted();\n }", "public interface HandleResponse {\n void downloadComplete(String output, DownloadImageJson.TaskType task);\n void imageDownloadComplete(float scale_x, float scale_y);\n void removeFromTtsList(Boundary b);\n void setUsername(String output);\n}", "public Promise<Result> actorResponseHandler(\n Object actorRef,\n org.sunbird.common.request.Request request,\n Timeout timeout,\n String responseKey,\n Request httpReq,\n boolean generateTelemetry) {\n Function<Object, Result> function =\n new Function<Object, Result>() {\n public Result apply(Object result) {\n if (result instanceof Response) {\n Response response = (Response) result;\n return createSuccessResponse(response, responseKey, httpReq, generateTelemetry);\n } else if (result instanceof ProjectCommonException) {\n return createCommonExceptionResponse(\n (ProjectCommonException) result, httpReq, generateTelemetry);\n } else {\n ProjectLogger.log(\n \"BaseController:actorResponseHandler: Unsupported actor response format\",\n LoggerEnum.INFO.name());\n return createCommonExceptionResponse(new Exception(), httpReq, generateTelemetry);\n }\n }\n };\n\n if (actorRef instanceof ActorRef) {\n return Promise.wrap(Patterns.ask((ActorRef) actorRef, request, timeout)).map(function);\n } else {\n return Promise.wrap(Patterns.ask((ActorSelection) actorRef, request, timeout)).map(function);\n }\n }", "public void callCompleted(InetAddress clientId, int xid, RpcResponse response) {\n ClientRequest req = new ClientRequest(clientId, xid);\n CacheEntry e;\n synchronized(map) {\n e = map.get(req);\n }\n e.response = response;\n }", "public interface AsyncResponse {\n void processFinish(HttpJson output);\n}", "private static HttpResponse handleExceptionalStatus(\n HttpResponse response,\n UUID requestId,\n ApiName apiName,\n CloseableHttpClient httpClient,\n HttpUriRequest request,\n RequestBuilder requestBuilder)\n throws IOException, IngestResponseException, BackOffException {\n if (!isStatusOK(response.getStatusLine())) {\n StatusLine statusLine = response.getStatusLine();\n LOGGER.warn(\n \"{} Status hit from {}, requestId:{}\",\n statusLine.getStatusCode(),\n apiName,\n requestId == null ? \"\" : requestId.toString());\n\n // if we have a 503 exception throw a backoff\n switch (statusLine.getStatusCode()) {\n // If we have a 503, BACKOFF\n case HttpStatus.SC_SERVICE_UNAVAILABLE:\n throw new BackOffException();\n case HttpStatus.SC_UNAUTHORIZED:\n LOGGER.warn(\"Authorization failed, refreshing Token succeeded, retry\");\n requestBuilder.refreshToken();\n requestBuilder.addToken(request);\n response = httpClient.execute(request);\n if (!isStatusOK(response.getStatusLine())) {\n throw new SecurityException(\"Authorization failed after retry\");\n }\n break;\n default:\n String blob = consumeAndReturnResponseEntityAsString(response.getEntity());\n throw new IngestResponseException(\n statusLine.getStatusCode(),\n IngestResponseException.IngestExceptionBody.parseBody(blob));\n }\n }\n return response;\n }", "protected HttpResponse doReceiveResponse(final HttpRequest request, final HttpClientConnection conn,\n final HttpContext context)\n throws HttpException, IOException\n {\n// log.debug(\"EspMeshHttpRequestExecutor::doReceiveResponse()\");\n if (request == null)\n {\n throw new IllegalArgumentException(\"HTTP request may not be null\");\n }\n if (conn == null)\n {\n throw new IllegalArgumentException(\"HTTP connection may not be null\");\n }\n if (context == null)\n {\n throw new IllegalArgumentException(\"HTTP context may not be null\");\n }\n \n HttpResponse response = null;\n int statuscode = 0;\n \n // check whether the request is instantly, instantly request don't wait the response\n boolean isInstantly = request.getParams().isParameterTrue(EspHttpRequest.ESP_INSTANTLY);\n if (isInstantly)\n {\n ProtocolVersion version = new ProtocolVersion(\"HTTP\", 1, 1);\n StatusLine statusline = new BasicStatusLine(version, 200, \"OK\");\n // let the connection used only once to check whether the device is available\n context.setAttribute(\"timeout\", 1);\n response = ResponseFactory.newHttpResponse(statusline, context);\n Header contentLengthHeader = new BasicHeader(HTTP.CONTENT_LEN, \"0\");\n response.addHeader(contentLengthHeader);\n }\n else\n {\n if (!request.getRequestLine().getMethod().equals(EspHttpRequest.METHOD_COMMAND))\n {\n while (response == null || statuscode < HttpStatus.SC_OK)\n {\n \n response = conn.receiveResponseHeader();\n if (canResponseHaveBody(request, response))\n {\n conn.receiveResponseEntity(response);\n }\n statuscode = response.getStatusLine().getStatusCode();\n \n } // while intermediate response\n }\n else\n {\n ProtocolVersion version = new ProtocolVersion(\"HTTP\", 1, 1);\n StatusLine statusline = new BasicStatusLine(version, 200, \"OK\");\n response = ResponseFactory.newHttpResponse(statusline, context);\n // copy request headers\n // Header[] requestHeaders = request.getAllHeaders();\n // for (Header requestHeader : requestHeaders) {\n // System.out.println(\"requestHeader:\" + requestHeader);\n // response.addHeader(requestHeader);\n // }\n \n Header[] contentLengthHeader = request.getHeaders(HTTP.CONTENT_LEN);\n if (contentLengthHeader == null || contentLengthHeader.length != 1)\n {\n throw new IllegalArgumentException(\"contentLengthHeader == null || contentLengthHeader.length != 1\");\n }\n // at the moment, mesh command request and response len is the same\n response.addHeader(contentLengthHeader[0]);\n \n conn.receiveResponseEntity(response);\n }\n }\n \n // for device won't reply \"Connection: Keep-Alive\" by default, add the header by manual\n if (response != null && response.getFirstHeader(HTTP.CONN_DIRECTIVE) == null)\n {\n response.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_KEEP_ALIVE);\n }\n \n return response;\n \n }", "@Override\n\t\tpublic void asyncRequestSuccess(long id, Object response)\n\t\t\t\tthrows ConnectorException {\n\t\t\t\n\t\t}", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "public void sendResponse( Resolver resolver ){\n /*\n * Default handling for a response:\n * send it to the toMachine. If the destination is not a reference \n * to a machine, the response just gets dropped. 'Nowhere' is a good\n * non-reference to use in this case.\n */\n Pia.debug(this, \"Transmitting response...\");\n\n Machine machine = toMachine();\n \n if ( machine!= null ){\n try{\n\tmachine.sendResponse(this, resolver);\n }catch(PiaRuntimeException e){\n\tPia.debug(this, \"User stop\" );\n\t//errorResponse( e.getMessage() );\n }\n }\n else{\n Pia.debug(this, \"dropping response\" );\n }\n \n }", "void execute(final T response);", "@Override\n public void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, Exception e) throws Exception {\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {\n\n System.out.println(\"Request URL :: \" + request.getRequestURL().toString()\n + \"End Time = \" + System.currentTimeMillis());\n }", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "public Promise<Result> actorResponseHandler(\n Object actorRef,\n org.sunbird.common.request.Request request,\n Timeout timeout,\n String responseKey,\n Request httpReq) {\n return actorResponseHandler(actorRef, request, timeout, responseKey, httpReq, true);\n }", "protected void handleSuccessMessage(Response response) {\n\t\tonRequestResponse(response);\n\t}", "@Override public void deliverResponse(T response) {\n if (listener != null) {\n listener.onResponse(response);\n }\n }", "public Response callback() throws Exception;", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "public void handleResponse(byte[] result, Command originalCommand);", "CompletableFuture<WriteResponse> submit();", "protected WebClientServiceResponse doProceed(WebClientServiceRequest serviceRequest, HttpClientResponse response) {\n this.responseHeaders = response.headers();\n this.responseStatus = response.status();\n\n WebClientServiceResponse.Builder builder = WebClientServiceResponse.builder();\n if (response.entity().hasEntity()) {\n builder.inputStream(response.inputStream());\n }\n return builder\n .serviceRequest(serviceRequest)\n .whenComplete(whenComplete)\n .status(response.status())\n .headers(response.headers())\n .connection(new Http2CallEntityChain.Http1ResponseResource(response))\n .build();\n }", "@Override\n public CompletionStage<List<CreditCardDetail>> listallCreditCardDetails() {\n CompletableFuture<List<CreditCardDetail>> promise = new CompletableFuture<>();\n\n SearchRequest searchRequest1 = new SearchRequest(\"creditscore\").types(\"offer\");\n SearchSourceBuilder builder = new SearchSourceBuilder();\n builder.query(\n QueryBuilders.boolQuery()\n .must(\n QueryBuilders.matchAllQuery()\n )\n );\n\n searchRequest1.source(builder);\n\n restHighLevelClient.searchAsync(searchRequest1, RequestOptions.DEFAULT, new ActionListener<SearchResponse>() {\n @Override\n public void onResponse(SearchResponse searchResponse) {\n LOGGER.info(\"response received from elasticsearch. async\");\n SearchHit[] searchHits = searchResponse.getHits().getHits();\n List<CreditCardDetail> creditCardDetails = new ArrayList<>();\n for (SearchHit searchHit : searchHits) {\n Map<String, Object> sourceAsMap = searchHit.getSourceAsMap();\n CreditCardDetail detail = new CreditCardDetail(\n String.valueOf(sourceAsMap.get(\"bank\")),\n Double.parseDouble(sourceAsMap.get(\"interest\").toString()),\n String.valueOf(sourceAsMap.get(\"type\")),\n Double.parseDouble(sourceAsMap.get(\"limit\").toString()),\n Double.parseDouble(sourceAsMap.get(\"balanceTransfer\").toString()),\n new ProductDetail(String.valueOf(sourceAsMap.get(\"productName\")),\n Double.valueOf(sourceAsMap.get(\"yearlyFee\").toString()),\n String.valueOf(sourceAsMap.get(\"rewards\"))\n )\n );\n creditCardDetails.add(detail);\n }\n promise.complete(creditCardDetails);\n }\n\n @Override\n public void onFailure(Exception e) {\n promise.exceptionally(t -> {\n LOGGER.error(\"error encountered where processing. returning empty\", e);\n return new ArrayList<>();\n });\n //can also directly throw the exception received if the client is interested in the error\n //promise.completeExceptionally(e);\n }\n });\n\n\n return promise;\n }", "String waitForCompletion(ClientResponse asyncResponse) {\n return waitForCompletion(asyncResponse, maxAsyncPollingRetries);\n }", "@Override\n\tpublic T handleResponse(HttpResponse arg0) throws ClientProtocolException,\n\t\t\tIOException {\n\t\treturn (this.parser != null && this.processor != null) ? this.processor\n\t\t\t\t.process(this.parser.parse(arg0)) : null;\n\t}", "public void handleFutureResult(WorkContainer<K, V> wc) {\n if (checkEpochIsStale(wc)) {\n // no op, partition has been revoked\n log.debug(\"Work result received, but from an old generation. Dropping work from revoked partition {}\", wc);\n // todo mark work as to be skipped, instead of just returning null - related to retry system https://github.com/confluentinc/parallel-consumer/issues/48\n return;\n }\n\n if (wc.getUserFunctionSucceeded().get()) {\n onSuccess(wc);\n } else {\n onFailure(wc);\n }\n }", "@Override\n\t\t\tprotected void deliverResponse(String response) {\n\n\t\t\t}", "public interface Http2Client extends Closeable {\n\n /**\n * connect to remote address asynchronously\n * @return CompletableFuture contains {@link Void}\n */\n CompletableFuture<Void> connect();\n\n /**\n * send http request to remote address asynchronously\n * @param request http2 request\n * @return CompletableFuture contains response\n */\n CompletableFuture<HttpResponse> sendRequest(HttpRequest request);\n\n /**\n * send http request to remote address asynchronously,\n * and not wait far response\n * @param request http2 request\n * @return CompletableFuture contains nothing\n */\n CompletableFuture<Void> sendRequestOneWay(HttpRequest request);\n\n /**\n * send server-push ack to remote address asynchronously\n * @param pushAck server-push ack\n * @param streamId http2 streamId\n * @return CompletableFuture contains nothing\n */\n CompletableFuture<Void> sendPushAck(HttpPushAck pushAck, int streamId);\n}", "protected String handleResponse(final HttpResponse response, final HttpContext context) throws IOException {\n final HttpEntity entity = response.getEntity();\n if (null == entity.getContentType() || !entity.getContentType().getValue().startsWith(\"application/soap+xml\")) {\n throw new WinRmRuntimeIOException(\"Error when sending request to \" + targetURL + \"; Unexpected content-type: \" + entity.getContentType());\n }\n\n final InputStream is = entity.getContent();\n final Writer writer = new StringWriter();\n final Reader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));\n try {\n int n;\n final char[] buffer = new char[2048];\n while ((n = reader.read(buffer)) != -1) {\n writer.write(buffer, 0, n);\n }\n } catch (Exception e) {\n System.out.println(\"xxxxxxxxxxxxxxxxxxxx=>\");\n e.printStackTrace();\n } finally {\n closeQuietly(reader);\n closeQuietly(is);\n consume(response.getEntity());\n }\n\n return writer.toString();\n }", "@Override\n\t\tpublic void handle(final HttpRequest request, final HttpResponse response,\n\t\t\t\tfinal NHttpResponseTrigger trigger, HttpContext con)\n\t\t\t\tthrows HttpException, IOException {\n\t\t\t\n//\t\t\t\tHttpRequestProxy reqX = new HttpRequestProxy(request,generateMsgID());\t//create httprequestx to carry message-id \n\t\t\t\n\t\t\tURI uri = Mapper.getHttpRequestUri(request);\n\t\t\tif (uri == null){\n\t\t\t\ttrigger.submitResponse(new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_BAD_REQUEST, \"Bad Header: Host\"));\n\t\t\t} else {\n\n\t\t\t\tInetAddress remoteAddress = InetAddress.getByName(uri.getHost());\n\t\t\t\tint port = uri.getPort();\n\t\t\t\tif (port == -1) {\n\t\t\t\t\tport = Constants.COAP_DEFAULT_PORT;\n\t\t\t\t}\n\n\t\t\t\tProxyMessageContext context = new ProxyMessageContext(request, remoteAddress, 0, uri, trigger);\n\t\t\t\tMapper.getInstance().putHttpRequest(context); // put request\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to mapper\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// processing/translating\n\t\t\t}\n\t\t}", "private TransactionSchedulerResult handleResponse(HederaClient hederaClient, TransactionReceipt receipt) throws TimeoutException {\n return handleResponse(hederaClient, receipt, receipt.scheduleId);\n }", "public void postInvoke(InvocationContext ic) throws Exception {\n ic.setResponse(response);\n }", "@Override\r\n\tpublic void exec() {\n\t\tHttpRequestHead hrh = null;\r\n\t\tint headSize = 0;\r\n\t\tboolean isSentHead = false;\r\n\t\ttry {\r\n\t\t\tArrays.fill(buffer, (byte) 0);\r\n\t\t\tint getLen = 0;\r\n\t\t\tboolean getHead = false;\r\n\t\t\tint mode = 0;\r\n\t\t\tlong contentLength = 0;\r\n\t\t\twhile (!proxy.isClosed.get()) {\r\n\t\t\t\tint nextread = inputStream.read(buffer, getLen, buffer.length - getLen);\r\n\t\t\t\tif (nextread == -1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tgetLen += nextread;\r\n\t\t\t\tif (!getHead) {\r\n\t\t\t\t\tif ((headSize = Proxy.protocol.validate(buffer, getLen)) > 0) {\r\n\t\t\t\t\t\thrh = (HttpRequestHead) Proxy.protocol.decode(buffer);\r\n\t\t\t\t\t\tlog.debug(proxy.uuid + debug + \"传入如下请求头:\" + new String(Proxy.protocol.encode(hrh)));\r\n\t\t\t\t\t\t\r\n//\t\t\t\t\t\tif(\"keep-alive\".equals(hrh.getHead(\"Connection\")))\r\n//\t\t\t\t\t\t\tkeepAlive = true;\r\n\t\t\t\t\t\tif (\"chunked\".equals(hrh.getHead(\"Transfer-Encoding\")))\r\n\t\t\t\t\t\t\tmode = 2;\r\n\t\t\t\t\t\tif (!StringUtils.isBlank(hrh.getHead(\"Content-Length\"))) {\r\n\t\t\t\t\t\t\tmode = 1;\r\n\t\t\t\t\t\t\tcontentLength = Long.valueOf(hrh.getHead(\"Content-Length\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString forward = hrh.getHead(\"X-Forwarded-For\");\r\n\t\t\t\t\t\tif (!StringUtils.isBlank(forward))\r\n\t\t\t\t\t\t\tforward += \",\";\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tforward = \"\";\r\n\t\t\t\t\t\tforward += proxy.source.getInetAddress().getHostAddress();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thrh.addHead(\"X-Forwarded-For\", forward);\r\n\t\t\t\t\t\thrh.addHead(\"X-Forwarded-Proto\", \"http\");\r\n\t\t\t\t\t\thrh.addHead(\"X-Forwarded-Host\", CoreDef.config.getString(\"serverIp\"));\r\n\r\n\t\t\t\t\t\tgetHead = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// http访问代理服务器模式\r\n//\t\t\t\t\t\tInetAddress addr = InetAddress.getByName(hrh.getHead(\"host\"));\r\n//\t\t\t\t\t\tproxy.destination = new Socket(addr, 80);\r\n//\t\t\t\t\t\toutputStream = proxy.destination.getOutputStream();\r\n//\t\t\t\t\t\tproxy.sender = new ServerChannel(proxy);\r\n//\t\t\t\t\t\tproxy.sender.begin(\"peer - \" + this.getTaskId());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\theadSize = 0;\r\n\t\t\t\t\t\tif (getLen > buffer.length - 128)\r\n\t\t\t\t\t\t\tbuffer = Arrays.copyOf(buffer, buffer.length * 10);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isSentHead) {\r\n\t\t\t\t\tisSentHead = true;\r\n\t\t\t\t\tlog.debug(proxy.uuid + \"为\" + debug + \"转发了如下请求头:\" + new String(Proxy.protocol.encode(hrh)));\r\n\t\t\t\t\toutputStream.write(Proxy.protocol.encode(hrh));\r\n//\t\t\t\t\tswitch (mode) {\r\n//\t\t\t\t\tcase 1:\r\n//\t\t\t\t\t\toutputStream.write(buffer, headSize, getLen - headSize);\r\n//\t\t\t\t\t\tcontentLength -= getLen - headSize;\r\n//\t\t\t\t\t\tbreak;\r\n//\t\t\t\t\tcase 2:\r\n//\t\t\t\t\t\tcontentLength += getChunkedContentSize(buffer, headSize, getLen - headSize);\r\n//\t\t\t\t\t\toutputStream.write(buffer, headSize, getLen - headSize);\r\n//\t\t\t\t\t\tcontentLength -= getLen - headSize;\r\n//\t\t\t\t\t\tbreak;\r\n//\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tswitch (mode) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\toutputStream.write(buffer, headSize, getLen-headSize);\r\n\t\t\t\t\tcontentLength -= getLen - headSize;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tcontentLength += getChunkedContentSize(buffer, headSize, getLen-headSize);\r\n\t\t\t\t\toutputStream.write(buffer, 0, getLen);\r\n\t\t\t\t\tcontentLength -= getLen - headSize;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\theadSize = 0;\r\n\t\t\t\tif(contentLength == 0) {\r\n\t\t\t\t\tgetHead = false;\r\n\t\t\t\t\tisSentHead = false;\r\n\t\t\t\t}\r\n\t\t\t\tgetLen = 0;\r\n\t\t\t\tArrays.fill(buffer, (byte) 0);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(proxy.uuid + \"与客户端通信发生异常\" + Utils.getStringFromException(e));\r\n\t\t\tlog.info(proxy.uuid + \"最后的数据如下\" + new String(buffer).trim());\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\tlog.info(proxy.uuid + \"与客户端通信,试图关闭端口\");\r\n\t\t\tproxy.close();\r\n\t\t}\r\n\t}", "@Override\n public void onCompleted() {\n responseObserver.onCompleted();\n }", "@Override\n public void completed(IoFuture<AsynchronousSocketChannel, Void> result)\n {\n try {\n try {\n AsynchronousSocketChannel newChannel = result.getNow();\n logger.log(Level.FINER, \"Accepted {0}\", newChannel);\n \n handler.newConnection(newChannel, descriptor);\n \n // Resume accepting connections\n acceptFuture = acceptor.accept(this);\n \n } catch (ExecutionException e) {\n throw (e.getCause() == null) ? e : e.getCause();\n }\n } catch (CancellationException e) { \n logger.logThrow(Level.FINE, e, \"acceptor cancelled\"); \n //ignore\n } catch (Throwable e) {\n SocketAddress addr = null;\n try {\n addr = acceptor.getLocalAddress();\n } catch (IOException ioe) {\n // ignore\n }\n logger.logThrow(\n \t\t Level.SEVERE, e, \"acceptor error on {0}\", addr);\n \n // TBD: take other actions, such as restarting acceptor?\n }\n \t}", "public void onCompleted(GraphResponse response) {\n response.getRequest();\n }", "@SuppressLint(\"CallbackMethodName\")\n void reply(@NonNull byte[] response);", "public void handleError(ClientHttpResponse response) throws IOException {\n }", "public void onResponse(Response response) throws Exception;" ]
[ "0.6522086", "0.597929", "0.58286685", "0.5790402", "0.5680723", "0.5586284", "0.5581479", "0.5566876", "0.5554092", "0.55281633", "0.5522896", "0.5506522", "0.54959387", "0.54959387", "0.5486358", "0.5472722", "0.5472722", "0.5465208", "0.54591304", "0.54317486", "0.5412848", "0.5411712", "0.5403901", "0.5399094", "0.53979504", "0.5395945", "0.53910995", "0.5389201", "0.5387767", "0.5374241", "0.5374241", "0.5370375", "0.53412324", "0.5339613", "0.53340524", "0.53340524", "0.53340524", "0.53340524", "0.53340524", "0.53340524", "0.53340524", "0.53146416", "0.531018", "0.528188", "0.5258811", "0.5248014", "0.52441704", "0.5238055", "0.5230934", "0.52025867", "0.5200416", "0.51987374", "0.51945055", "0.5194288", "0.5172239", "0.5171066", "0.5167118", "0.51602674", "0.5151317", "0.5151317", "0.5129435", "0.5119641", "0.51166165", "0.5108359", "0.51076925", "0.5104478", "0.5097855", "0.5077256", "0.5076808", "0.5075102", "0.5073055", "0.5071448", "0.50692457", "0.50407505", "0.5032454", "0.5029229", "0.50267476", "0.50231457", "0.50181276", "0.501693", "0.5014439", "0.50139177", "0.4990243", "0.49875677", "0.49761286", "0.49737027", "0.49647316", "0.4963948", "0.4963009", "0.49543983", "0.4952016", "0.49483845", "0.4944139", "0.49435586", "0.4931812", "0.49234337", "0.49003312", "0.48994294", "0.48955345", "0.4892492" ]
0.65580255
0