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 |
|---|---|---|---|---|---|---|
/ Initializeaza "map" cu listele in care vom tine HashMapurile locale alea fragmentelor | public void initialilzeMapEntry(String file){
map.put(file, new LinkedList<HashMap<Integer, Integer>>());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}",
"public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}",
"public Map() {\n\t\t//intially empty\n\t}",
"private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public void fillMap() {\n this.months.put(\"янв\", Month.JANUARY);\n this.months.put(\"фев\", Month.FEBRUARY);\n this.months.put(\"мар\", Month.MARCH);\n this.months.put(\"апр\", Month.APRIL);\n this.months.put(\"май\", Month.MAY);\n this.months.put(\"июн\", Month.JUNE);\n this.months.put(\"июл\", Month.JULY);\n this.months.put(\"авг\", Month.AUGUST);\n this.months.put(\"сен\", Month.SEPTEMBER);\n this.months.put(\"окт\", Month.OCTOBER);\n this.months.put(\"ноя\", Month.NOVEMBER);\n this.months.put(\"дек\", Month.DECEMBER);\n }",
"public Map() {\n\n\t\t}",
"public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }",
"private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }",
"public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }",
"MAP createMAP();",
"public void setUp()\n {\n map = new Map(5, 5, null);\n }",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }",
"public void fillMap(Map<String, List<String>> map){\n \tfor(String word : dictionary.words){ //Iterate over the ArrayList in the Dictionary object\n \t\tList<String> list = new ArrayList<String>();\n \t\tfor(String w : dictionary.words){ //iterate through all words in dictionary to find all one letter off from word\n \t\t\tif(isOneLetterOff(w, word))\n \t\t\t\tlist.add(w);\n \t\t\t//if w isn't off from word by one letter, check next w\n \t\t}\n \t\tmap.put(word, list);\n \t}\n }",
"private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}",
"public FMap(String rute) {\n super(rute);\n init(rute);\n }",
"public CaseInsensitiveElementList(Map<String, ? extends V> map, Locale locale) {\n this(locale);\n addAll(map);\n }",
"public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}",
"public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }",
"@Override\n public HashMap<String, List<String>> initializeMapping(HashMap<String, List<String>> mapping) {\n mapping.put(\"xEncoder\", Arrays.asList(\"outtakeMotor1\", \"outtake1\"));\n mapping.put(\"yEncoder\", Arrays.asList(\"wobbleMotor\"));\n\n return mapping;\n }",
"private void fillMap(Grid tablero) { // reads the board and fill auxiliary map\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 10; j++) {\n if (tablero.getCell(i, j) == 0) {\n Cell c = new Cell(i, j);\n ArrayList<Integer> elements = fillDomain();\n map.put(c, elements);\n } else {\n Cell c = new Cell(i, j);\n ArrayList<Integer> elements = new ArrayList<>();\n elements.add(tablero.getCell(i, j));\n map.put(c, elements);\n }\n }\n }\n }",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }",
"private MapTransformer(Map map) {\n super();\n iMap = map;\n }",
"void setHashMap();",
"public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}",
"public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"public static void createMap()\n\t\t\t{\n\t\t\tmap = new Vector<Location>(4);\n\t\n\t\t\tLocation location1 = new Location(\"the southwest room.\",\"You see doors to the north and east.\");\n\t\t\tLocation location2 = new Location(\"the southeast room.\",\"You see doors to the north and west.\");\n\t\t\tLocation location3 = new Location(\"the northwest room.\",\"You see doors to the south and east.\");\n\t\t\tLocation location4 = new Location(\"the northeast room.\",\"You see doors to the south and west.\");\n\n\t\t\tmap.addElement(location1);\n\t\t\tmap.addElement(location2);\n\t\t\tmap.addElement(location3);\n\t\t\tmap.addElement(location4);\n\t\t\t\n\t\t\t// This section defines the exits found in each location and the \n\t\t\t// locations to which they lead.\n\t\t\tlocation1.addExit(new Exit(Exit.north, location3));\n\t\t\tlocation1.addExit(new Exit(Exit.east, location2));\n\t\t\tlocation2.addExit(new Exit(Exit.north, location4));\n\t\t\tlocation2.addExit(new Exit(Exit.west, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.south, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.east, location4));\n\t\t\tlocation4.addExit(new Exit(Exit.west, location3));\n\t\t\tlocation4.addExit(new Exit(Exit.south, location2));\n\t\t\t\n\t\t\tcurrentLocation = location1;\t\t\t\t\n\t\t\t}",
"@Before\n public void initialize()\n {\n map = new MapAdapter();\n }",
"public Mapa(String ruta){\r\n cargarMapa(ruta);\r\n generarMapa();\r\n }",
"public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}",
"protected WumpusMap() {\n\t\t\n\t}",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"private static List<ajr> m19375a(Map<String, String> map) {\n if (map == null) {\n return null;\n }\n if (map.isEmpty()) {\n return Collections.emptyList();\n }\n List<ajr> arrayList = new ArrayList(map.size());\n for (Entry entry : map.entrySet()) {\n arrayList.add(new ajr((String) entry.getKey(), (String) entry.getValue()));\n }\n return arrayList;\n }",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}",
"private void initilizeMap() {\n\t\tif (googleMap == null) {\n\t\t\tgoogleMap = ((MapFragment) getFragmentManager().findFragmentById(\n\t\t\t\t\tR.id.map)).getMap();\n\n\t\t\tif (googleMap == null) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t}",
"public static void fill_map(){\n\t\tcategory_links_map.put(\"Categories\", \"Movies\");\n\t\tcategory_links_map.put(\"Actors\", \"Movies\");\n\t\tcategory_links_map.put(\"Movies\", \"Actors\");\n\t\tcategory_links_map.put(\"Artists\", \"Creations\");\n\t\tcategory_links_map.put(\"Creations\", \"Artists\");\n\t\tcategory_links_map.put(\"Countries\", \"Locations\");\n\t\tcategory_links_map.put(\"Locations\", \"Countries\");\n\t\tcategory_links_map.put(\"NBA players\", \"NBA teams\");\n\t\tcategory_links_map.put(\"NBA teams\", \"NBA players\");\n\t\tcategory_links_map.put(\"Israeli soccer players\", \"Israeli soccer teams\");\n\t\tcategory_links_map.put(\"Israeli soccer teams\", \"Israeli soccer players\");\n\t\tcategory_links_map.put(\"World soccer players\", \"World soccer teams\");\n\t\tcategory_links_map.put(\"World soccer teams\", \"World soccer players\");\n\t}",
"public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}",
"public Map(){\n this.matrix = new int[10][10];\n }",
"public Map(PApplet p, String id) {\n \t\tthis(p, id, 0, 0, p.width, p.height, false, false, null);\n \t}",
"public abstract void createMap();",
"public MyHashMap() {\n map = new HashMap();\n }",
"private void init_fields(String subor, Maps map) throws FileNotFoundException{ //inicializacia vsetkych zoznamov -> hlavne tych z triedy Maps\n map.setCars(new ArrayList<>());\n map.setStations(new ArrayList<>());\n Free_time_window free[][] = map.getFree_windows();\n Reserved_time_window reserved[][] = map.getReserved_windows();\n Road[][] road_matrix = map.getRoads();\n ArrayList<Car>cars;\n \n fr = new FileReader(subor); //nabijem do File Readera moj subor\n br = new BufferedReader(fr); //a budem ho citat\n \n cars = new ArrayList<>();\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_stations; j++){\n if(i==j){ \n road_matrix[i][j] = new Road(0,-1,-1,-1);\n }\n else{\n road_matrix[i][j] = new Road(-1,-1,-1,-1);\n }\n }\n }\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_windows; j++){\n free[i][j] = new Free_time_window(-1,-1,-1, -1);\n \n reserved[i][j] = new Reserved_time_window(-1,-1, new Car(-1));\n }\n }\n \n map.setFree_windows(free);\n map.setReserved_windows(reserved);\n map.setRoads(road_matrix);\n map.setCars(cars);\n }",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"private void fillEntryLangMap(String p_termbaseId) throws Exception\n {\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try\n {\n c = ConnectionPool.getConnection();\n ps = c.prepareStatement(TERM_ENTRY_LANG_QUERY);\n ps.setLong(1, Long.valueOf(p_termbaseId).longValue());\n rs = ps.executeQuery();\n m_map = new TreeMap();\n while (rs.next())\n {\n Long cid = new Long(rs.getLong(1));\n String name = rs.getString(2);\n HashSet set = (HashSet) m_map.get(cid);\n if (set == null)\n {\n set = new HashSet();\n m_map.put(cid, set);\n }\n set.add(name);\n }\n }\n finally\n {\n ConnectionPool.silentClose(rs);\n ConnectionPool.silentClose(ps);\n ConnectionPool.silentReturnConnection(c);\n }\n }",
"private void initilizeMap() {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }",
"private void initMap() {\n Log.wtf(TAG, \"initMap() has been instantiated\");\n\n Log.d(TAG, \"initMap: initializing the map...\");\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n mMapView.getMapAsync(this);\n }",
"private void loadMap(MultiHashMap map) {\n\r\n int numRows = sMapPairs.length;\r\n int maxCols = 0;\r\n for (int ii = 0; ii < sMapPairs.length; ii++) {\r\n if (sMapPairs[ii].length > maxCols) {\r\n maxCols = sMapPairs[ii].length;\r\n }\r\n }\r\n for (int ii = 0; ii < maxCols; ii++) {\r\n for (int jj = 0; jj < numRows; jj++) {\r\n if (ii < sMapPairs[jj].length) {\r\n map.put(sMapPairs[jj][ii].mKey, sMapPairs[jj][ii].mValue);\r\n //---------------------------------------------------------\r\n }\r\n }\r\n }\r\n assertTrue(map.size() == sMapPairs.length);\r\n }",
"private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }",
"private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}",
"private static void initCityMapping() {\n try {\n log.info(\"initCityMapping start.....\");\n try {\n File dicFile = new File(\"/config/gj_city.json\");\n if (dicFile.exists()) {\n String dic = FileCopyUtils.copyToString(new InputStreamReader(\n new FileInputStream(dicFile),\n StandardCharsets.UTF_8));\n cityInfos = JSONObject.parseObject(dic, Map.class);\n }\n } catch (Exception e) {\n log.error(\"加载城市信息失败,{}\", e.getMessage(), e);\n e.printStackTrace();\n }\n log.info(\"initCityMapping end.....\");\n } catch (Exception e) {\n log.info(\"初始化城市字典数据失败!\", e);\n }\n }",
"private final Map<String, C1844cm> m447d(List<String> list) {\n return (Map) m446a(new C1837cf(this, list));\n }",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"void setMap(Map aMap);",
"private void erstelleListenMap(){\n farbenMap = new TreeMap<>();\n symbolMap = new TreeMap<>();\n\n for(Symbol symbol:Symbol.values()){\n\n switch (symbol) // sortiert ihn in die entsprechende Liste ein\n {\n case ka_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,karos);\n break;\n case ks_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreise);\n break;\n case kr_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreuze);\n break;\n case st_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,sterne);\n break;\n case qu_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kleeblaetter);\n break;\n\n case ka_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,karos);\n break;\n case ks_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,karos);\n break;\n case ks_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,karos);\n break;\n case ks_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreise);\n break;\n case kr_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreuze);\n break;\n case st_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,sterne);\n break;\n case qu_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,karos);\n break;\n case ks_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreise);\n break;\n case kr_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreuze);\n break;\n case st_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,sterne);\n break;\n case qu_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,karos);\n break;\n case ks_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n }\n\n }\n }",
"public List initProvince(Map map) {\n\t\treturn apMessageDao.initProvince(map);\r\n\t}",
"private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"public MapManager() {\n myList = null;\n scrabbleList = null;\n }",
"private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }",
"public MapSum() {\n map = new HashMap<>();\n }",
"private void initMap(String day,int colIndex){\n position.put(day+\" 08\",new Pair(colIndex,1));\n position.put(day+\" 09\",new Pair(colIndex,2));\n position.put(day+\" 10\",new Pair(colIndex,3));\n position.put(day+\" 11\",new Pair(colIndex,4));\n position.put(day+\" 12\",new Pair(colIndex,5));\n position.put(day+\" 13\",new Pair(colIndex,6));\n position.put(day+\" 14\",new Pair(colIndex,7));\n position.put(day+\" 15\",new Pair(colIndex,8));\n position.put(day+\" 16\",new Pair(colIndex,9));\n position.put(day+\" 17\",new Pair(colIndex,10));\n position.put(day+\" 18\",new Pair(colIndex,11));\n position.put(day+\" 19\",new Pair(colIndex,12));\n position.put(day+\" 20\",new Pair(colIndex,13));\n }",
"public final Map<String, Integer> mo34029a(List<String> list) {\n return (Map) m446a(new C1840ci(this, list));\n }",
"public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"Map<String, String> mo14888a();",
"private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }",
"public Map(){\r\n map = new Square[0][0];\r\n }",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"private Map(int id) {\n\t\tthis.id = Integer.valueOf(id);\n\t\tSystem.out.println(\"Initializing map: \" + this.toString() + \" (\" + this.id + \")\");\n\t}",
"@Override\n public void init(HashMap<String, Object> map) {\n this.title = (String) map.get(\"title\");\n this.url = (String) map.get(\"url\");\n }",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);",
"private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}",
"public Map(float longitude, float lattitude, float long_span, float lat_span, Joueur[] joueur) {\n this.longitude = longitude;\n this.lattitude = lattitude;\n this.long_span = long_span;\n this.lat_span = lat_span;\n this.joueur = joueur;\n }",
"private void initMap(){\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n }",
"public CaseInsensitiveElementList(Map<String, ? extends V> map) {\n this(map, null);\n }",
"public List init(Map map) {\n\t\treturn apMessageDao.init(map);\r\n\t}",
"private void setUpMap() {\n mMap.getUiSettings().setZoomControlsEnabled(false);\n \n // Setting an info window adapter allows us to change the both the\n // contents and look of the\n // info window.\n mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(getLayoutInflater()));\n \n // Add lots of markers to the map.\n addMarkersToMap();\n \n }",
"private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}",
"public final Map<String, Integer> mo33708h(List<String> list) {\n return (Map) m968r(new C2164bs(this, list));\n }",
"public _No_706_DesignHashMap() {\n// Arrays.fill(arr, -1);\n }",
"public void set_map(int[][] map) \n\t{\n\t\tthis.map = map;\n\t}",
"private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }",
"private void intializeMap() {\n\n if (googleMap == null) {\n\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n // getPlacesMarkers();\n }\n }",
"@Test\n public void initializeTest()\n {\n assertEquals(0, map.size());\n }",
"public void indexMap(LWMap map) {\n vueComponentMap.clear();\n removeAll();\n indexAdd(map);\n }",
"private void ini_MapPaks()\r\n\t{\r\n\r\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n List<Marker> markerList= new ArrayList<>();\n\n //list\n mIpoh = mMap.addMarker(new MarkerOptions()\n .position(Ipoh).title(\"Ipoh\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\n mIpoh.setTag(0);\n markerList.add(mIpoh);\n\n mJohor = mMap.addMarker(new MarkerOptions()\n .position(Johor).title(\"Johor\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n mJohor.setTag(0);\n markerList.add(mJohor);\n\n mSingapore = mMap.addMarker(new MarkerOptions()\n .position(Singapore).title(\"Singapore\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_VIOLET)));\n mSingapore.setTag(0);\n markerList.add(mSingapore);\n\n mPulauPinang = mMap.addMarker(new MarkerOptions()\n .position(PulauPinang).title(\"Pulau Pinang\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ROSE)));\n mPulauPinang.setTag(0);\n markerList.add(mPulauPinang);\n\n mKualaLumpur = mMap.addMarker(new MarkerOptions()\n .position(KualaLumpur).title(\"Kuala Lumpur\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE)));\n mKualaLumpur.setTag(0);\n markerList.add(mKualaLumpur);\n\n //用for loop来加进去\n for (Marker m : markerList){\n LatLng latLng = new LatLng(m.getPosition().latitude, m.getPosition().longitude);\n mMap.addMarker(new MarkerOptions().position(latLng));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 2));\n //Log.d(\"Marker:\", m.getTitle());\n }\n\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n locationListener = new LocationListener() {\n @Override\n public void onLocationChanged(@NonNull Location location) {\n// mMap.clear();\n//\n// // Add a marker in Sydney and move the camera\n// LatLng newLocation = new LatLng(location.getLatitude(), location.getLongitude());\n// mMap.addMarker(new MarkerOptions().position(newLocation).title(\"New Location\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(newLocation));\n }\n };\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n\n }else{\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n }\n\n\n }"
] | [
"0.69341624",
"0.68146724",
"0.6714114",
"0.6641473",
"0.6557876",
"0.64737433",
"0.64682686",
"0.6435763",
"0.6393855",
"0.6340345",
"0.63193375",
"0.6315613",
"0.6262283",
"0.62306327",
"0.6214426",
"0.6206592",
"0.61971384",
"0.61613244",
"0.6160722",
"0.61431026",
"0.61413497",
"0.61370575",
"0.6071562",
"0.6069255",
"0.60645664",
"0.6061712",
"0.60448235",
"0.6040628",
"0.6036984",
"0.60280156",
"0.6008398",
"0.60077107",
"0.6005424",
"0.5996083",
"0.59928113",
"0.59915274",
"0.59878206",
"0.59536904",
"0.5945387",
"0.59452754",
"0.5937962",
"0.5930219",
"0.59282887",
"0.5897225",
"0.5891413",
"0.58894014",
"0.58791137",
"0.58525527",
"0.5846007",
"0.58446825",
"0.58428633",
"0.5839658",
"0.5837244",
"0.58342415",
"0.5832376",
"0.5824195",
"0.5814491",
"0.5799007",
"0.5797918",
"0.57976",
"0.57924974",
"0.5792066",
"0.5789423",
"0.57680255",
"0.57658726",
"0.57571745",
"0.57520425",
"0.57401806",
"0.5733678",
"0.5732649",
"0.57290155",
"0.57258034",
"0.5718239",
"0.57169175",
"0.5710426",
"0.5709325",
"0.5707516",
"0.56961817",
"0.56879634",
"0.5684063",
"0.56822944",
"0.56807923",
"0.5676745",
"0.56738925",
"0.5669556",
"0.5664174",
"0.5662137",
"0.56619775",
"0.5642557",
"0.56370413",
"0.56362915",
"0.56268424",
"0.56230295",
"0.5617808",
"0.56146634",
"0.5611936",
"0.5606181",
"0.560534",
"0.5599411",
"0.5597085"
] | 0.6443034 | 7 |
/ Cum LinkedList nu este thread safe , pentru a adauga la lista unui fisier de hashmapuri , trebuie sa facem functia syncronised | public synchronized void addHashToList(String file,HashMap<Integer,Integer> outcome){
LinkedList<HashMap<Integer, Integer>> list = (LinkedList<HashMap<Integer,Integer>>)map.get(file);
list.add(outcome);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadLoreEntries() {\n entryIDMap = new ConcurrentHashMap<>();\n entryIDThreads = new ThreadGroup(\"entryIDThreads\");\n\n for (int i = 0; i < bookSelectionData.size(); i++) {\n\n final String entryName = bookSelectionData.get(i).getBookName();\n final long entryID = bookSelectionData.get(i).getBookID();\n\n new Thread(entryIDThreads, new Runnable() {\n @Override\n public void run() {\n try {\n ArrayList<Long> arraylist = new ArrayList<>();\n arraylist.add(entryID);\n DataAccessObject_LoreBookSelectionDefinition node = database.getDao().getPresentationNodeById(arraylist).get(0);\n JsonObject json = node.getJson();\n JsonArray entryNodes = json.getAsJsonObject(\"children\").getAsJsonArray(\"records\");\n\n long[] ID = new long[entryNodes.size()];\n for (int j = 0; j < entryNodes.size(); j++) {\n JsonObject entry = (JsonObject) entryNodes.get(j);\n long hash = Long.parseLong(entry.get(\"recordHash\").getAsString());\n ID[j] = convertHash(hash);\n }\n entryIDMap.put(entryName, ID);\n } catch (Exception ignored) {\n }\n }\n }).start();\n }\n }",
"public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }",
"private void rehash() {\r\n\t\tSystem.out.println( \"rehashing : buckets \" + numBuckets + \" size \" + size );\r\n\t\tArrayList<MapNode<K, V>> temp = buckets;\r\n\t\tbuckets = new ArrayList();\r\n\t\tfor( int i = 0; i < 2*numBuckets; i++ ) {\r\n\t\t\tbuckets.add( null );\r\n\t\t}\r\n\t\tsize = 0; //size 0 means abi ek b element nhi h\r\n\t\tnumBuckets *= 2; //ab number of buckets double ho gya h\r\n\t\t//now we will trvrs old arraylist and linkedlist and\r\n\t\t//copy is elemenet one by one\r\n\t\tfor( int i = 0; i < temp.size(); i++ ) {\r\n\t\t\tMapNode< K, V > head = temp.get(i);\r\n\t\t\twhile( head != null ) {\r\n\t\t\t\t\r\n\t\t\t\tK key = head.key;\r\n\t\t\t\tV value = head.value;\r\n\t\t\t\tinsert( key, value );\r\n\t\t\t\thead = head.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void m() {\n for (Map.Entry key : this.f80656a.a().entrySet()) {\n List list = (List) key.getKey();\n if (!this.l.contains(list)) {\n this.l.add(d.a(list));\n }\n }\n if (this.l.size() > 0) {\n this.f80657b.a(new f(), this.l);\n }\n }",
"public List<Headline> updatedList(Map<String, Headline> updateMap) throws InterruptedException\n {\n Map<String, Headline> uiSourceMap = this.uiContents.get(finished);\n List<Headline> updated;// = new LinkedList<>();\n final List<Headline> temp = new LinkedList<>();\n if (updateMap != null )\n {\n // Compare to UI contents\n // If new headline is in original map, take original value\n updateMap.keySet().stream()\n .forEach( (x) -> {\n if( uiSourceMap.containsKey(x) )\n {\n temp.add( uiSourceMap.get(x) );\n }\n else\n {\n temp.add( updateMap.get(x) );\n }\n });\n } \n updated = new LinkedList<>(temp);\n // Update the uiMap\n uiSourceMap.clear();\n\n for(Headline head : updated)\n {\n uiSourceMap.put(head.getHeadline(), head);\n }\n\n this.uiContents.put(finished, uiSourceMap);\n\n updated.clear();\n\n // Create a list from the entire UIMap\n // The following method(s) create a stream of all the maps within the uiContents\n // Then utilises flatMap() to put all the collections into a single stream\n // Then sortes the Headlines based on download time\n // Finally the sorted stream is added to a list \n updated = this.uiContents.values()\n .stream() \n .flatMap(x -> x.values().stream()) \n .sorted(Comparator.comparing(Headline::getTime))\n .collect(Collectors.toCollection(LinkedList::new));\n\n theLogger.info(\"Updated headlines list created\");\n return updated;\n }",
"public void updateList() {\n\t\tthis.myList.clear();\n\t\tIterator<String> item = this.myHashMap.keySet().iterator();\n\n\t\twhile (item.hasNext())\n\t\t{\n\t\t\tString name = (String)item.next();\n\t\t\tthis.myList.add(name);\n\t\t}\n\t\tthis.nameId = -1;\n\t\t\n\t}",
"public static void main(String[] args) {\n CustomHashCode customHashCode=new CustomHashCode();\r\n Byte byte1=new Byte((byte) 12);\r\n String str=customHashCode.getHashCode(\"adfasdk\");\r\n System.out.println(str);\r\n List<Integer> list=new LinkedList<>();\r\n java.util.Collections.synchronizedList(list);\r\n \r\n \r\n\t}",
"private void loadCachedLabTestCollection()\n {\n cachedFacilityList = new HashMap<Object,Object>();\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n cachedLabTest= (ArrayList<Object> ) convertToSRTLabTestDT(dao.getAllOrderedTests());\n\n //load cachedFacilityList\n Iterator<Object> iter = cachedLabTest.iterator();\n while(iter.hasNext()){\n SRTLabTestDT srtLabTestDT = (SRTLabTestDT)iter.next();\n if(srtLabTestDT.getLaboratoryId()!= null ){\n this.addToCachedFacilityList(srtLabTestDT.getLaboratoryId(),srtLabTestDT);\n }// end if labId !=null\n }//end while\n\n }",
"@Override\n public void removeFromCache(List<NulsDigestData> txHashList) {\n\n }",
"public void rehash() {\n\t\tArrayList<Node<MapPair<K, V>>> temp=buckets;\n\t\tbuckets=new ArrayList<>();\n\t\tfor(int i=0;i<2*temp.size();i++)\n\t\t{\n\t\t\tbuckets.add(null);\n\t\t}\n\t\tfor(Node<MapPair<K, V>> node:temp)\n\t\t{\n\t\t\tif(node!=null)\n\t\t\t{\n\t\t\t\twhile(node!=null)\n\t\t\t\t{\n\t\t\t\t\tput(node.data.key,node.data.value);\n\t\t\t\t\tnode=node.next;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }",
"private static DoublyLinkedListNode copyList(DoublyLinkedListNode head)\n {\n Map<Integer, DoublyLinkedListNode> prev = new HashMap<>();\n //Save given list head\n DoublyLinkedListNode origHead = head;\n //start building the new list with next pointers, at each step save the newly created node\n DoublyLinkedListNode newHead = null;\n if (head != null) {\n newHead = new DoublyLinkedListNode(head.getValue(), null, null);\n prev.put(newHead.getValue(), newHead);\n head = head.getNext();\n }\n\n DoublyLinkedListNode temp = newHead;\n while (head != null) {\n DoublyLinkedListNode node = new DoublyLinkedListNode(head.getValue(), null, null);\n prev.put(node.getValue(), node);\n temp.setNext(node);\n temp = node;\n head = head.getNext();\n }\n\n //Now traverse the original list, get the key of prev node and look in the map for corresponding new Node\n //update previous\n temp = newHead;\n while (origHead != null) {\n DoublyLinkedListNode prevNode = prev.get(origHead.getPrev().getValue());\n temp.setPrev(prevNode);\n origHead = origHead.getNext();\n temp = temp.getNext();\n }\n return newHead;\n }",
"private static boolean putInHashMap(Node head) {\r\n\t\tboolean hasloop = false;\r\n\t\tHashSet<Node> nodeSet = new HashSet();\r\n\t\twhile (head != null) {\r\n\t\t\tif (nodeSet.contains(head)) {\r\n\t\t\t\thasloop = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tnodeSet.add(head);\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\r\n\t\treturn hasloop;\r\n\t}",
"public abstract void collectLocks(HashMap threadList);",
"public void sync(){\n\t\tDHTNode myNode = dynamoRing.getNode(MY_ADDRESS);\n\t\tArrayList<DHTNode> dependentNodes = dynamoRing.getNPredecessors(myNode, REPLICATION_COUNT-1);\n\t\tdependentNodes.add(myNode);\n\t\tSparseArray<String> dependentNodeMap = new SparseArray<String>();\n\t\tHashMap<String, KeyVal> resultMap = new HashMap<String, KeyVal>();\n\t\tfor(int i=0;i<dependentNodes.size();i++)\t// Ideally it should contact only N-1 successors and N-1 predecessors\n\t\t\t\t\t\t\t\t\t\t\t\t\t// but for total node count = 5 and replica count = 2, this\n\t\t\t\t\t\t\t\t\t\t\t\t\t// number spans through all the nodes\n\t\t\tdependentNodeMap.put(dependentNodes.get(i).getAddress(), dependentNodes.get(i).getId());\n\t\t\n\t\tArrayList<DHTNode> nodeList = dynamoRing.getAllNodes();\n\t\tfor(int i=0;i<nodeList.size();i++){\n\t\t\tif(nodeList.get(i)==myNode)\n\t\t\t\tcontinue;\n\t\t\tArrayList<KeyVal> keyValList = readDHTAllFromNode(nodeList.get(i));\n\t\t\tfor(int j=0;j<keyValList.size();j++){\n\t\t\t\tKeyVal keyVal = keyValList.get(j);\n\t\t\t\tint responsibleNodeAddress = dynamoRing.getResponsibleNode(keyVal.getKey()).getAddress();\n\t\t\t\tif(dependentNodeMap.get(responsibleNodeAddress)==null)\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tif(resultMap.get(keyVal.getKey())==null){\n\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tint oldVersion = Integer.parseInt(resultMap.get(keyVal.getKey()).getVersion());\n\t\t\t\t\t\tint newVersion = Integer.parseInt(keyVal.getVersion());\n\t\t\t\t\t\tif(newVersion > oldVersion)\n\t\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tIterator<Entry<String, KeyVal>> resultIterator = resultMap.entrySet().iterator();\n\t\twhile(resultIterator.hasNext()){\n\t\t\tEntry<String, KeyVal> nextEntry = resultIterator.next();\n\t\t\tKeyVal keyVal = nextEntry.getValue();\n\t\t\twriteLocalKeyVal(keyVal.getKey(), keyVal.getVal(), keyVal.getVersion());\n\t\t}\n\t\t\n\t}",
"@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }",
"public ConnectionList() {\n connections = new ConcurrentHashMap<>();\n keyCounter = 0;\n }",
"public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }",
"private void rehash() {\n Entry<K, V>[] old = table;\n allocate((int) (old.length * INC));\n\n for (int i = 0; i < old.length; ++i) {\n if (old[i] != null) {\n for (Node<Pair<K, V>> j = old[i].list.getHead().getNext();\n j != old[i].list.getTail();\n j = j.getNext()) {\n put(j.getData().key, j.getData().value);\n }\n\n }\n }\n }",
"private void loadLists() {\n }",
"public java.util.Map<java.lang.String, java.util.ArrayList> m17238b() {\n /*\n r18 = this;\n r3 = new java.util.HashMap;\n r3.<init>();\n r4 = new java.util.ArrayList;\n r4.<init>();\n r5 = new java.util.ArrayList;\n r5.<init>();\n r0 = r18;\n r2 = r0.f20995e;\n r2.lock();\n r6 = r18.m17234d();\n r2 = \"select * from result limit 0,500\";\n r7 = 0;\n r7 = r6.rawQuery(r2, r7);\n L_0x0022:\n r2 = r7.moveToNext();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n if (r2 == 0) goto L_0x0106;\n L_0x0028:\n r2 = new org.json.JSONObject;\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r2.<init>();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r8 = \"_id\";\n r8 = r7.getColumnIndex(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r8 = r7.getInt(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"time\";\n r9 = r7.getColumnIndex(r9);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = r7.getString(r9);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r10 = \"code\";\n r10 = r7.getColumnIndex(r10);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r10 = r7.getInt(r10);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r11 = \"cmd_type\";\n r11 = r7.getColumnIndex(r11);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r11 = r7.getInt(r11);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r12 = \"cmd_id\";\n r12 = r7.getColumnIndex(r12);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r12 = r7.getInt(r12);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r13 = \"result\";\n r13 = r7.getColumnIndex(r13);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r13 = r7.getString(r13);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r14 = \"time\";\n r16 = java.lang.Long.parseLong(r9);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r0 = r16;\n r2.put(r14, r0);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"error_code\";\n r2.put(r9, r10);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n if (r10 != 0) goto L_0x0095;\n L_0x0083:\n r9 = \"cmd_type\";\n r2.put(r9, r11);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"cmd_id\";\n r2.put(r9, r12);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"voice_to_text_result\";\n r2.put(r9, r13);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n L_0x0095:\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r5.add(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r4.add(r2);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n goto L_0x0022;\n L_0x00a0:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n goto L_0x0022;\n L_0x00a6:\n r2 = move-exception;\n r4 = \"SynthesizeResultDb\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x014d }\n r5.<init>();\t Catch:{ all -> 0x014d }\n r8 = \"exception:\";\n r5 = r5.append(r8);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n r2 = r5.append(r2);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r4, r2);\t Catch:{ all -> 0x014d }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n L_0x00d2:\n return r3;\n L_0x00d3:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n goto L_0x0022;\n L_0x00d9:\n r2 = move-exception;\n r4 = \"SynthesizeResultDb\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x014d }\n r5.<init>();\t Catch:{ all -> 0x014d }\n r8 = \"exception:\";\n r5 = r5.append(r8);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n r2 = r5.append(r2);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r4, r2);\t Catch:{ all -> 0x014d }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n goto L_0x00d2;\n L_0x0106:\n r2 = \"listId\";\n r3.put(r2, r5);\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r2 = \"list\";\n r3.put(r2, r4);\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n goto L_0x00d2;\n L_0x0120:\n r2 = move-exception;\n r4 = \"SynthesizeResultDb\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x014d }\n r5.<init>();\t Catch:{ all -> 0x014d }\n r8 = \"exception:\";\n r5 = r5.append(r8);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n r2 = r5.append(r2);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r4, r2);\t Catch:{ all -> 0x014d }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n goto L_0x00d2;\n L_0x014d:\n r2 = move-exception;\n r7.close();\n r6.close();\n r0 = r18;\n r3 = r0.f20995e;\n r3.unlock();\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.tts.e.c.b():java.util.Map<java.lang.String, java.util.ArrayList>\");\n }",
"public RandomListNode copyRandomListHashMap(RandomListNode head) {\n HashMap<RandomListNode,RandomListNode> connection = new HashMap<RandomListNode,RandomListNode>();\n RandomListNode dummy = new RandomListNode(0);\n RandomListNode first = dummy;\n RandomListNode cur = head;\n \n while(cur!= null){\n RandomListNode copyhead = new RandomListNode(cur.label);\n copyhead.random = cur.random;\n first.next = copyhead;\n connection.put(cur,copyhead); //HashMap content: connection (\"original\", \"copy\")\n first = first.next;\n cur = cur.next;\n }\n cur = dummy.next;\n while(cur != null){ //now, cur is the copy list, but it's .random is still belong to the original list:see row 19 and 20\n cur.random = connection.get(cur.random); //so we could use that as Key to search\n cur = cur.next;\n }\n return dummy.next;\n }",
"private static void containerListNotSafe() {\n List<String> list = new CopyOnWriteArrayList<>();\n // 开启了20个线程\n for (int i = 1; i <= 30; i++) {\n new Thread(() -> {\n list.add(UUID.randomUUID().toString().substring(0,8));\n System.out.println(Thread.currentThread().getName()+list);\n }, String.valueOf(i)).start();\n }\n\n // java.util.ConcurrentModificationException 并发修改异常\n //1.故障现象\n //\tjava.util.ConcurrentModificationException 并发修改异常\n //2.导致原因\n //\n //3.解决方案\n //\t3.1 new Vector<>();\n //\t3.2 Collections.synchronizedList(new ArrayList<>());\n //\t3.3 new CopyOnWriteArrayList<>();\n //4.优化方案\n //\n\n // 写时复制\n // CopyOnWrite,容器即写时复制的容器.往一个容器添加元素的时候,不直接往当前容器Object[]添加,而是先将当前容器Object[]进行copy,复制出\n // 一个新的容器,Object[] newElements,然后新的容器Object[] newElements里面添加元素,添加完元素之后,\n // 再将原容器的引用指向新的容器 setArray(newElements);这样做的好处是可以对CopyOnWrite容器进行并发的读,而不需要加锁,\n // 因为当前容器不会添加任何元素.所以CopyOnWrite容器也是一种读写分离的思想,\n\n // /**\n // * Appends the specified element to the end of this list.\n // *\n // * @param e element to be appended to this list\n // * @return {@code true} (as specified by {@link Collection#add})\n // */\n // public boolean add(E e) {\n // final ReentrantLock lock = this.lock;\n // lock.lock();\n // try {\n // Object[] elements = getArray();\n // int len = elements.length;\n // Object[] newElements = Arrays.copyOf(elements, len + 1);\n // newElements[len] = e;\n // setArray(newElements);\n // return true;\n // } finally {\n // lock.unlock();\n // }\n // }\n\n\n }",
"public static <T extends ObjectWithIframeId> Map<IframeId, List<T>> buildCacheMapByIframeId_list(List<T> rowList, RunnableWithParameter r) { \n Map<IframeId, List<T>> newMap = new HashMap<IframeId, List<T>>();\n for (T entry : rowList) {\n IframeId id = entry.getIframeId();\n if(newMap.get(id) == null) {\n newMap.put(id, new ArrayList<T>());\n }\n newMap.get(id).add(entry);\n if(r != null) { r.run(Pair.newPair(newMap, entry)); }\n }\n return newMap;\n }",
"public void crossref(){\r\n reftable = new ArrayList();\r\n if(!log.isEmpty() && ses.isEmpty()){\r\n for(int i=0 ; i<log.size() ; i++){\r\n all_log alg = new all_log(log.get(i).getuserid(), log.get(i).getuserip(), log.get(i).geturl(), log.get(i).gettime(), \"\", \"\");\r\n reftable.add(alg);\r\n }\r\n }else if(!ses.isEmpty() && log.isEmpty()) {\r\n for(int i=0 ; i<ses.size() ; i++){\r\n ArrayList<AndroidRec> ad = ses.get(i).getrec();\r\n for(int j=0 ; j<ad.size() ; j++) {\r\n all_log alg = new all_log(\"unknow\", \"unknow\", ad.get(j).geturl(), ad.get(j).gettime(), ad.get(j).getsystem(), ad.get(j).getsoft());\r\n reftable.add(alg);\r\n }\r\n }\r\n }else if(!ses.isEmpty() && !log.isEmpty()){\r\n for(int i=0 ; i<log.size() ; i++){\r\n all_log alg = new all_log(log.get(i).getuserid(), log.get(i).getuserip(), log.get(i).geturl(), log.get(i).gettime(), \"\", \"\");\r\n reftable.add(alg);\r\n }\r\n\r\n \r\n \r\n for(int k=0 ; k<ses.size() ; k++) {\r\n ArrayList<usersort> sort = new ArrayList<usersort>();\r\n ArrayList userid = new ArrayList(); \r\n ArrayList<Integer> poss = new ArrayList(); \r\n ArrayList<AndroidRec> ad = new ArrayList();\r\n ad.addAll(ses.get(k).getrec());\r\n \r\n for(int n=0 ; n<ad.size() ; n++){\r\n long andtime = Long.parseLong(ad.get(n).gettime());\r\n for(int t=0 ; t<reftable.size() ; t++){\r\n long logtime = (Long.parseLong(reftable.get(t).gettime()))*1000;\r\n if((logtime-andtime)>60000)\r\n break;\r\n if(Math.abs(andtime - logtime) <= 60000){\r\n String andurl = ad.get(n).geturl();\r\n String logurl = reftable.get(t).geturl();\r\n if(andurl.equals(logurl)){\r\n userid.add(reftable.get(t).getid());\r\n poss.add(n);\r\n poss.add(t);\r\n }\r\n }\r\n }\r\n }\r\n //find correct in matches\r\n \r\n for(int i=0 ; i<userid.size() ; i++){\r\n if(sort.isEmpty()){\r\n usersort so = new usersort(userid.get(i).toString());\r\n sort.add(so);\r\n }\r\n for(int j=0 ; j<sort.size() ; j++){ \r\n if(userid.get(i).toString().equals(sort.get(j).getid())){\r\n sort.get(j).accnum();\r\n }else if(j==(sort.size()-1) && !userid.get(i).toString().equals(sort.get(j).getid())){\r\n usersort so = new usersort(userid.get(i).toString());\r\n sort.add(so);\r\n }\r\n }\r\n }\r\n String correctuser = \"\";\r\n int usernum = 0;\r\n for(int s=0 ; s<sort.size() ; s++){\r\n if((sort.get(s).getnum())>usernum){\r\n usernum = sort.get(s).getnum();\r\n correctuser = sort.get(s).getid();\r\n }\r\n }\r\n //\r\n \r\n //\r\n if(!ad.isEmpty()){\r\n int del = 0;\r\n for(int i=0 ; i<poss.size() ; i+=2){\r\n if((reftable.get(poss.get(i+1))).getid().equals(correctuser)){\r\n if(!ad.isEmpty()){\r\n reftable.get(poss.get(i+1)).setsys(ad.get(poss.get(i)-del).getsystem());\r\n reftable.get(poss.get(i+1)).setsoft(ad.get(poss.get(i)-del).getsoft());\r\n int index = poss.get(i) - del;\r\n ad.remove(index);\r\n del = del + 1;\r\n }\r\n }\r\n }\r\n }\r\n for(int i=0 ; i<ad.size() ; i++){\r\n all_log alg = new all_log(\"unknow\", \"unknow\", ad.get(i).geturl(), ad.get(i).gettime(), ad.get(i).getsystem(), ad.get(i).getsoft());\r\n reftable.add(alg);\r\n }\r\n sort.clear();\r\n }\r\n }\r\n\r\n for(int i=0 ; i<reftable.size() ; i++){\r\n long sort = 0;\r\n if(reftable.get(i).gettime().length() == 13){\r\n sort = Long.parseLong(reftable.get(i).gettime());\r\n }else if (reftable.get(i).gettime().length() == 10){\r\n sort = Long.parseLong(reftable.get(i).gettime())*1000;\r\n }\r\n reftable.get(i).settime((new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date(sort))).toString());\r\n //System.out.println(reftable.get(i).toString());\r\n //System.out.println(reftable.size());\r\n }\r\n }",
"void removeAllLocks(){\r\n \tpageAccess = new ConcurrentHashMap<String, AccessDetailVO>();\r\n\r\n }",
"public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}",
"public static void main(String[] args){\n LinkedList<Integer> linkedList = new LinkedList<>();\n linkedList.add(0);\n linkedList.add(3);\n linkedList.add(5);\n linkedList.add(7);\n linkedList.add(6);\n linkedList.add(77);\n linkedList.add(2);\n linkedList.add(1);\n for (int i=0;i<linkedList.size();i++){\n System.out.println(linkedList.get(i));\n }\n\n\n// LinkedHashMap<Integer,Integer> map = new LinkedHashMap<>(0,0.75f,false);\n// map.put(0,0);\n// map.put(1,1);\n// map.put(2,2);\n// map.put(3,3);\n// map.put(4,4);\n// map.put(5,5);\n// map.put(6,6);\n// map.put(7,7);\n//\n// map.get(1);\n// map.get(2);\n//\n// for (Map.Entry<Integer,Integer> entry : map.entrySet()){\n// System.out.println(entry.getKey()+\":-----value:\"+entry.getValue());\n// }\n\n //---------------------最近最少次序------true-------\n// 0:-----value:0\n// 3:-----value:3\n// 4:-----value:4\n// 5:-----value:5\n// 6:-----value:6\n// 7:-----value:7\n// 1:-----value:1\n// 2:-----value:2\n\n //--------------------插入顺序-------------false------------\n// 0:-----value:0\n// 1:-----value:1\n// 2:-----value:2\n// 3:-----value:3\n// 4:-----value:4\n// 5:-----value:5\n// 6:-----value:6\n// 7:-----value:7\n\n }",
"protected void rehash() {\n int oldCapacity = table.length;\n ServerDescEntry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n ServerDescEntry newMap[] = new ServerDescEntry[newCapacity];\n\n threshold = (int)(newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity ; i-- > 0 ;) {\n for (ServerDescEntry old = oldMap[i] ; old != null ; ) {\n ServerDescEntry e = old;\n old = old.next;\n\n int index = (e.desc.sid & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }",
"private static void testRendezvousHashing() {\n Map<String, AtomicInteger> HRWNodesMap = Maps.newHashMap();\r\n List<String> HRWNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n HRWNodes.add(\"HRWNode\"+i);\r\n HRWNodesMap.put(\"HRWNode\"+i, new AtomicInteger());\r\n }\r\n RendezvousHashing<String, String> hrw = new RendezvousHashing(charsFunnel, charsFunnel, HRWNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n \r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n\r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n hrw.removeNode(\"HRWNode3\");\r\n HRWNodesMap.remove(\"HRWNode3\");\r\n\r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n\r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }",
"@Override\n\tpublic void init() {\n\t\tint i = 0;\n\t\tfor (Link l : this.node.getInLinks().values()) {\n\t\t\tQNetwork network = netsimEngine.getNetsimNetwork() ;\n\t\t\tthis.inLinksArrayCache[i] = network.getNetsimLinks().get(l.getId());\n\t\t\ti++;\n\t\t}\n\t\t/* As the order of links has an influence on the simulation results,\n\t\t * the nodes are sorted to avoid indeterministic simulations. dg[april08]\n\t\t */\n\t\tArrays.sort(this.inLinksArrayCache, new Comparator<NetsimLink>() {\n\t\t\t@Override\n\t\t\tpublic int compare(NetsimLink o1, NetsimLink o2) {\n\t\t\t\treturn o1.getLink().getId().compareTo(o2.getLink().getId());\n\t\t\t}\n\t\t});\n\t}",
"public void makeCloudChangelist(final Map<String, String> localSongList) {\n FirebaseDatabase fbd = FirebaseDatabase.getInstance();\n DatabaseReference fbRef = fbd.getReference().child(\"songs\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n fbRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.i(\"CHECK songs Folder\", \"\");\n\n Map<String, String> changeList = new HashMap<>();\n\n for (DataSnapshot song : dataSnapshot.getChildren()) {\n if (!localSongList.containsKey(song.getKey())) {\n changeList.put(song.getKey(), song.getValue(String.class));\n }\n }\n\n for (Map.Entry<String, String> pair : changeList.entrySet()) {\n String songId = pair.getKey();\n String[] parts = songId.split(\"=\");\n Song downloading = new LocalSong(parts[0], parts[1], songId, pair.getValue());\n MainActivity.masterList.add(downloading);\n loader.addSongToAlbum(downloading);\n urlList.addSong(downloading);\n\n new DownloadSongAsync().execute(downloading);\n }\n\n readyForVibe = true;\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(\"Failed to read songs.\", databaseError.toException());\n }\n });\n }",
"IcedHM() { _m = new NonBlockingHashMap<>(); }",
"private static void testConsistentHashing() {\n Map<String, AtomicInteger> CHNodesMap = Maps.newHashMap();\r\n List<String> CHNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n CHNodes.add(\"CHNode\"+i);\r\n CHNodesMap.put(\"CHNode\"+i, new AtomicInteger());\r\n }\r\n ConsistentHashing<String, String> ch = new ConsistentHashing(charsFunnel, charsFunnel, CHNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n CHNodesMap.get(ch.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : CHNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n \r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n ch.removeNode(\"CHNode3\");\r\n CHNodesMap.remove(\"CHNode3\");\r\n \r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n CHNodesMap.get(ch.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n \r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : CHNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }",
"private List<String> putKeysInList() {\n List<String> stringList = new LinkedList<>();\n for (String node : registeredNodes.keySet()) {\n stringList.add(node);\n }\n return stringList;\n }",
"public Map(RefLinks refLink)\r\n {\r\n /// Retine referinta \"shortcut\".\r\n this.refLink = refLink;\r\n list_star = new ArrayList<CollisionItem>();\r\n list_star_blue = new ArrayList<CollisionItem>();\r\n\r\n list_fire = new ArrayList<CollisionItem>();\r\n list_static_element = new ArrayList<CollisionItem>();\r\n\r\n list_next_level = new ArrayList<CollisionItem>();\r\n\r\n //level = 1;\r\n // star = new CollisionItem(refLink , 650 , 390,104,15);\r\n\r\n\r\n\r\n if(Map_level.GetInstance().getLevel() == 1) {\r\n System.out.println(\"salut1\");\r\n\r\n list_star.add(new CollisionItem(refLink, 300, 200, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 250, 50, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 850, 270, 60, 20));\r\n\r\n\r\n //list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 140, 104, 15));\r\n\r\n //list_static_element.add( new CollisionItem(refLink, 15, 250, 104, 15) );\r\n //list_static_element.add( new CollisionItem(refLink, 119, 250, 104, 15) );\r\n list_static_element.add(new CollisionItem(refLink, 223, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 743, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 847, 290, 104, 15));\r\n\r\n\r\n list_next_level.add( new CollisionItem(refLink, 120, 420, 55, 50) );\r\n //list_static_element.add( new CollisionItem(refLink, 0, 465, 960, 15) );\r\n\r\n\r\n\r\n ///incarca harta de start. Functia poate primi ca argument id-ul hartii ce poate fi incarcat.\r\n LoadWorld();\r\n\r\n\r\n }\r\n else if(Map_level.GetInstance().getLevel() ==2){\r\n list_star.add(new CollisionItem(refLink, 250, 80, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 700, 160, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 300, 450, 60, 20));\r\n\r\n\r\n //list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n\r\n\r\n list_static_element.add(new CollisionItem(refLink, 620, 230, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 724, 230, 104, 15));\r\n\r\n\r\n list_static_element.add(new CollisionItem(refLink, 223, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 290, 104, 15));\r\n\r\n\r\n list_next_level.add( new CollisionItem(refLink, 120, 420, 55, 50) );\r\n\r\n\r\n LoadWorld();\r\n }\r\n\r\n\r\n //lista podelei//elemente de coliziune statica\r\n\r\n }",
"private void rehash() {\r\n Entry[] oldHashTable = this.hashTable;\r\n this.capacity = this.capacity * 2;\r\n this.hashTable = new Entry[this.capacity];\r\n this.size = 0;\r\n for (Entry eachEntry : oldHashTable) {\r\n if (eachEntry != null) {\r\n if (!eachEntry.isDeleted) {\r\n this.add((K)eachEntry.key,(V)eachEntry.value);\r\n }\r\n }\r\n }\r\n return;\r\n }",
"private void removeFromEnd(){\n ListNode tailItem = tail.prev;\n removeFromList(tailItem);\n \n //remove the entry from hashtable\n hashtable.remove(tailItem.key);\n --totalCacheItems;\n }",
"private void refreshNodeListAndTokenMap(Connection connection) throws ConnectionException, BusyConnectionException, ExecutionException, InterruptedException {\n\n ResultSetFuture peersFuture = new ResultSetFuture(null, new QueryMessage(SELECT_PEERS, ConsistencyLevel.DEFAULT_CASSANDRA_CL));\n ResultSetFuture localFuture = new ResultSetFuture(null, new QueryMessage(SELECT_LOCAL, ConsistencyLevel.DEFAULT_CASSANDRA_CL));\n connection.write(peersFuture.callback);\n connection.write(localFuture.callback);\n\n String partitioner = null;\n Map<Host, Collection<String>> tokenMap = new HashMap<Host, Collection<String>>();\n\n // Update cluster name, DC and rack for the one node we are connected to\n Row localRow = localFuture.get().one();\n if (localRow != null) {\n String clusterName = localRow.getString(\"cluster_name\");\n if (clusterName != null)\n cluster.metadata.clusterName = clusterName;\n\n partitioner = localRow.getString(\"partitioner\");\n\n Host host = cluster.metadata.getHost(connection.address);\n // In theory host can't be null. However there is no point in risking a NPE in case we\n // have a race between a node removal and this.\n if (host == null) {\n logger.debug(\"Host in local system table ({}) unknown to us (ok if said host just got removed)\", connection.address);\n } else {\n updateLocationInfo(host, localRow.getString(\"data_center\"), localRow.getString(\"rack\"));\n\n Set<String> tokens = localRow.getSet(\"tokens\", String.class);\n if (partitioner != null && !tokens.isEmpty())\n tokenMap.put(host, tokens);\n }\n }\n\n List<InetAddress> foundHosts = new ArrayList<InetAddress>();\n List<String> dcs = new ArrayList<String>();\n List<String> racks = new ArrayList<String>();\n List<Set<String>> allTokens = new ArrayList<Set<String>>();\n\n for (Row row : peersFuture.get()) {\n\n InetAddress addr = row.getInet(\"rpc_address\");\n if (addr == null) {\n addr = row.getInet(\"peer\");\n logger.error(\"No rpc_address found for host {} in {}'s peers system table. That should not happen but using address {} instead\", addr, connection.address, addr);\n } else if (addr.equals(bindAllAddress)) {\n addr = row.getInet(\"peer\");\n }\n\n foundHosts.add(addr);\n dcs.add(row.getString(\"data_center\"));\n racks.add(row.getString(\"rack\"));\n allTokens.add(row.getSet(\"tokens\", String.class));\n }\n\n for (int i = 0; i < foundHosts.size(); i++) {\n Host host = cluster.metadata.getHost(foundHosts.get(i));\n if (host == null) {\n // We don't know that node, add it.\n host = cluster.addHost(foundHosts.get(i), true);\n }\n updateLocationInfo(host, dcs.get(i), racks.get(i));\n\n if (partitioner != null && !allTokens.get(i).isEmpty())\n tokenMap.put(host, allTokens.get(i));\n }\n\n // Removes all those that seems to have been removed (since we lost the control connection)\n Set<InetAddress> foundHostsSet = new HashSet<InetAddress>(foundHosts);\n for (Host host : cluster.metadata.allHosts())\n if (!host.getAddress().equals(connection.address) && !foundHostsSet.contains(host.getAddress()))\n cluster.removeHost(host);\n\n if (partitioner != null)\n cluster.metadata.rebuildTokenMap(partitioner, tokenMap);\n }",
"public static void restoreList() {\n\n if (copyList.isEmpty())\n return;\n\n\n getList().clear();\n\n for (Map<String, ?> item : copyList) {\n getList().add(item);\n }\n\n copyList.clear();\n //Log.d(\"test\", \"After restore: Champlist size \" + getSize() + \" copylist size \" + copyList.size());\n\n }",
"public static void main(String[] args) {\n\t\tHashMap<String, HashSet<String>> childParentHM=new HashMap<String, HashSet<String>>();\n\t\tLinkedList<String> queueLinkedList=new LinkedList<String>();\t\n \tLinkedHashMap<String, HashSet> linkedHashMap=new LinkedHashMap<String,HashSet>();\t\t\n\t\t//String fileName = \"C:/VK/alog/src/miniProject/min-imfo.txt\";\n\t\tString rootFile = \"C:/VK/alog/src/miniProject/mfo_names.txt\";\n\t\tString givenEdgesFile = \"C:/VK/alog/src/miniProject/created_File.txt\";\n\t\tFileReader fileReader;\n\t BufferedReader bufferedReader;\n\t \n\t \n\t \n\t try {\n\t \t FileReader filereader2=new FileReader(rootFile);\n\t \t \n\t \tbufferedReader = new BufferedReader(filereader2);\n\t \tString line = null;\n\t \t \n\n\t \t while((line = bufferedReader.readLine()) != null) \n\t \t {\n\t if(line.indexOf(\"_\")!=-1)\n\t \t//root=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\" \"));\n\t root=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\"\\t\")).trim();\n\t \t }\n\t \t root=\"1\";\n\t \t\n\t System.out.println(\"Root: \"+ root);\n\t fileReader = new FileReader(givenEdgesFile);\n \t bufferedReader = new BufferedReader(fileReader);\n \t String key;\n String value;\n \n \t while((line = bufferedReader.readLine()) != null) \n \t {\n \n if(line.indexOf(\"GO:\")==-1)\n \tcontinue;\n key=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\"\\t\")).trim();\n value=line.substring(line.lastIndexOf(\"GO:\")+3,line.length()).trim();\n if(childParentHM.get(key)==null)\n {\n \t\n \tHashSet<String> tempHashSet = new HashSet<String>();\n \tif(value.equals(root))\n \t{\n \t\tqueueLinkedList.add(key);\n \t}\n \ttempHashSet.add(value);\n \tchildParentHM.put(key, tempHashSet);\n }\n else\n {\n \tHashSet<String> tempHashSet = new HashSet<String>();\n \ttempHashSet=childParentHM.get(key);\n \ttempHashSet.add(value);\n }\n \n if(parentChild.get(value)==null)\n {\n \t\n \tLinkedHashSet<String> tempLinkedList = new LinkedHashSet<String>();\n \ttempLinkedList.add(key);\n \tparentChild.put(value, tempLinkedList);\n }\n else\n {\n \tLinkedHashSet<String> tempHashSet = new LinkedHashSet<String>();\n \ttempHashSet=parentChild.get(value);\n \ttempHashSet.add(key);\n }\n }\n \t \n\t\twhile(!queueLinkedList.isEmpty())\n\t\t{\n\t\t\t int sizeLinkedList=queueLinkedList.size();\n\t\t\t while(sizeLinkedList!=0)\n\t\t\t {\n\t\t\t\t HashSet tempHS=(HashSet)parentChild.get(queueLinkedList.get(0));\n\t\t\t\t if(tempHS!=null)\n\t\t\t\t {\n\t\t \t\t Iterator iteratorHashSet=tempHS.iterator();\n\t\t \t\t while(iteratorHashSet.hasNext())\n\t\t \t\t {\n\t\t \t\t\t String nextElement=(String)iteratorHashSet.next();\n\t\t \t\t\tqueueLinkedList.addLast(nextElement);\n\t\t \t }\n\t\t \t\tsizeLinkedList--;\n\t\t \t\t \n\t\t \t\tlinkedHashMap.put((String)queueLinkedList.getFirst(),childParentHM.get(queueLinkedList.getFirst()) );\n\t\t \t\tqueueLinkedList.remove(0);\n\t\t \t\t \n\t\t \t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t linkedHashMap.put((String)queueLinkedList.getFirst(),childParentHM.get(queueLinkedList.getFirst()) );\n\t\t\t\t\t sizeLinkedList--;\n\t\t\t\t\t queueLinkedList.remove(0);\n\t\t\t\t }\n\t\t\t }\n\t\t}\n \tbufferedReader.close();\n \tSystem.out.println(\"Numder of nodes: \"+childParentHM.size());\n \tprintMap(childParentHM);\n \tSystem.out.println(\"------------\");\n \t//printMap(linkedHashMap);\n \t//childParentHM.clear();\n \tparentChild.clear();\n \tcalConsistentDAG(linkedHashMap,root);\n \tint totalDAGcount=totalDAG.size()+1;\n \tSystem.out.println(\"TotalSize: \"+totalDAGcount);\n /*\tIterator toRecieve = hsPublic.iterator();\n \twhile(toRecieve.hasNext())\n \t{\n \t\tSystem.out.println(toRecieve.next());\n \t}*/\n \t\n\t }\n\t \tcatch(FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + \"\" + \"'\"); \n \t}\n catch(IOException ex) {\n System.out.println(\"Error reading file '\"+ \"\" + \"'\"); \n }\n catch(Exception ex) {\n System.out.println(\"Error \" + ex.getMessage() + \"'\");\n ex.printStackTrace();\n \n }\n\t}",
"public static void main(String[] args) {\n\t\tMyLinkedList2<Map<String,Object>>[] list = new MyLinkedList2[10];\n\t\tlong q1 = System.currentTimeMillis();\n\t\tfor(int i=0;i<10;i++){\n\t\t\tif(list[i]==null){\n\t\t\t\tlist[i] = new MyLinkedList2<Map<String,Object>>();\n\t\t\t}\n\t\t\tfor(int j=10;j<200000;j++){\n\t\t\t\tMap<String,Object> m = new HashMap<>();\n\t\t\t\tm.put(i+\"user\"+(int)((i+1)*(Math.random()*10)), j+\"score\");\n\t\t\t\tlist[i].add(m);\n\t\t\t}\n\t\t}\n\t\tlong q2 = System.currentTimeMillis();\n\t\tSystem.out.println(\"初始化集合耗时:\"+(q2-q1));\n\t\tlong x1 = System.currentTimeMillis();\n\t\tfor(int i=1;i<list.length;i++){\n\t\t\tlist[0].link2List(list[i]);\n\t\t}\n\t\tlong x2 = System.currentTimeMillis();\n\t\tSystem.out.println(\"自定义链表方式连接链表耗时:\"+(x2-x1));\n\t\t//System.out.println(list[0].toString());\n\t\tSystem.out.println(\"集合长度:\"+list[0].size());\n\t}",
"void Rehash(){\n\t\tRehash++;\r\n\t\t//updates if the hash table changed size\r\n\t\tStockNode[] temp=new StockNode[(2*Table.length)+1];\r\n\t\t//creates a temporary table with the new size \r\n\t\tfor(int i=Table.length-1;i>=0;i--){\r\n\t\t\t//goes through each array linked list \r\n\t\t\tStockNode t=Table[i];\r\n\t\t\twhile(t!=null){\r\n\t\t\t\t//the change of node to its new proper place is done here \r\n\t\t\t\tint key = toInt(t.stockName);\r\n\t\t\t\tint index = key%temp.length;\r\n\t\t\t\tif(temp[index]!=null){\r\n\t\t\t\t\tStockNode next=temp[index].next;\r\n\t\t\t\t\twhile(next!=null){\r\n\t\t\t\t\t\ttemp[index]=next;\r\n\t\t\t\t\t\tnext=temp[index].next;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttemp[index].next=t;\r\n\t\t\t\t} else{\r\n\t\t\t\t\ttemp[index]=t;\r\n\t\t\t\t}\r\n\t\t\t\tStockNode next=t.next;\r\n\t\t\t\tt.next=null;\r\n\t\t\t\tt=next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tTable=temp;\r\n\t}",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public Map lookup(Set lfns, String handle) {\n //Map indexed by lrc url and each value a collection\n //of lfns that the RLI says are present in it.\n Map lrc2lfn = this.getLRC2LFNS(lfns);\n if(lrc2lfn == null){\n //probably RLI is not connected!!\n return null;\n }\n\n // now query the LRCs with the LFNs they are responsible for\n // and aggregate stuff.\n String key = null,message = null;\n Map result = new HashMap(lfns.size());\n for(Iterator it = lrc2lfn.entrySet().iterator();it.hasNext();){\n Map.Entry entry = (Map.Entry)it.next();\n key = (String)entry.getKey();\n message = \"Querying LRC \" + key;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,key);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + key,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n\n //query the lrc\n try{\n Map m = lrc.lookup((Set)entry.getValue(),handle);\n for(Iterator mit = m.entrySet().iterator();mit.hasNext();){\n entry = (Map.Entry)mit.next();\n //merge the entries into the main result\n key = (String)entry.getKey(); //the lfn\n if(result.containsKey(key)){\n //right now no merging of RCE being done on basis\n //on them having same pfns. duplicate might occur.\n ((Set)result.get(key)).addAll((Set)entry.getValue());\n }\n else{\n result.put(key,entry.getValue());\n }\n }\n }\n catch(Exception ex){\n mLogger.log(\"lookup(Set,String)\",ex,\n LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n //disconnect\n lrc.close();\n }\n\n\n mLogger.log(message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n return result;\n\n\n }",
"public void put(DNA key, long value) {\n total_in++;\n if(this.debug)\n System.out.println(\"ExtHash::put >> insertando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n Node actual_node = this.getReference(key);\n if(this.debug)\n System.out.println(\"ExtHash::put >> altura del nodo: \" + actual_node.getAltura());\n\n int reference_page = actual_node.getReference();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n int last_page = reference_page;\n ArrayList<Integer> last_content = content;\n\n int total_elements = 0, altura = actual_node.getAltura();\n while(true) {\n\n if(this.debug)\n System.out.println(\"ExtHash::put >> referencia a pagina: \" + reference_page);\n\n if(this.debug) {\n System.out.println(\"ExtHash::put >> contenido de la pagina:\");\n for(int i=0; i<content.size(); i++)\n System.out.println(\" \" + content.get(i));\n }\n\n total_elements += last_content.get(0);\n if(last_content.get(0) != B-2) {\n if(this.debug)\n System.out.println(\"ExtHash::put >> insertando en: \" + last_page);\n\n ArrayList<Integer> new_content = new ArrayList<>();\n\n new_content.add(last_content.get(0) + 1);\n for(int i=1; i<=last_content.get(0); i++)\n new_content.add(last_content.get(i));\n\n new_content.add(key.hashCode());\n\n if(new_content.get(0) == B-2) {\n total_active_block++;\n new_content.add(this.last);\n\n ArrayList<Integer> last = new ArrayList<>();\n last.add(0);\n this.fm.write(last, this.last); this.out_counter++;\n\n this.last++;\n\n }\n\n if(this.debug) {\n System.out.println(\"ExtHash::put >> contenido en pagina despues de insercion:\");\n for(int i=0; i<new_content.size(); i++)\n System.out.println(\" \" + new_content.get(i));\n }\n\n this.fm.write(new_content, reference_page); this.out_counter++;\n\n total_elements++; // por el elmento que se inserto.\n break;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::put >> acceciendo a siguiente pagina\");\n\n last_page = last_content.get(B-1);\n last_content = this.fm.read(last_page); this.in_counter++;\n }\n\n // se lleno la pagina y aun no se llega al final del hashing.\n if(total_elements >= B - 2 && altura < 30){\n if(this.debug)\n System.out.println(\"ExtHash::put >> limite de pagina, iniciando duplicacion\");\n\n this.duplicate(actual_node);\n }\n }",
"private void downloadList() {\n new AsyncTask<URL, Integer, List<MyMap>>() {\n @Override protected List<MyMap> doInBackground(URL... params) {\n List<MyMap> myMaps = new ArrayList<>();\n ArrayList<String> mapUrlList = downloadMapUrlList(Variable.getVariable().getMapUrlList());\n int i = 0;\n for (String mapUrl : mapUrlList) {\n try {\n publishProgress(0, 0);\n URL url = new URL(mapUrl);\n publishProgress(80, 0);\n // Read all the text returned by the server\n BufferedReader l = new BufferedReader(new InputStreamReader(url.openStream()));\n int lines = 0;\n while (l.readLine() != null) lines++;\n l.close();\n BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));\n publishProgress(100, 0);\n String str;\n while ((str = in.readLine()) != null) {\n int index = str.indexOf(\"href=\\\"\");\n if (index >= 0) {\n index += 6;\n int lastIndex = str.indexOf(\".ghz\", index);\n if (lastIndex >= 0) {\n int sindex = str.indexOf(\"right\\\">\", str.length() - 52);\n int slindex = str.indexOf(\"M\", sindex);\n String mapName = str.substring(index, lastIndex);\n String size = \"\";\n if (sindex >= 0 && slindex >= 0) {\n size = str.substring(sindex + 7, slindex + 1);\n }\n MyMap mm = new MyMap(mapName, size, mapUrl);\n myMaps.add(mm);\n }\n }\n i++;\n publishProgress(100, (int) (((float) i / lines) * 100));\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n Collections.sort(myMaps);\n // printMapsList(myMaps);\n return myMaps;\n }\n\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n listDownloadPB.setProgress(values[1]);\n listDownloadPB.setSecondaryProgress(values[0]);\n }\n\n @Override protected void onPostExecute(List<MyMap> myMaps) {\n super.onPostExecute(myMaps);\n listReady(myMaps);\n listDownloadPB.setVisibility(View.GONE);\n listDownloadTV.setVisibility(View.GONE);\n }\n }.execute();\n }",
"public ConcurrentHashMap<Long, NativeDownloadModel> mo45197b() {\n ConcurrentHashMap<Long, NativeDownloadModel> concurrentHashMap = new ConcurrentHashMap<>();\n try {\n for (Map.Entry<String, ?> entry : m41930c().getAll().entrySet()) {\n try {\n long longValue = Long.valueOf(entry.getKey()).longValue();\n NativeDownloadModel b = NativeDownloadModel.m41805b(new JSONObject((String) entry.getValue()));\n if (longValue > 0 && b != null) {\n concurrentHashMap.put(Long.valueOf(longValue), b);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n return concurrentHashMap;\n }",
"private void process(String file, LinkedList<String> ll) {\r\n \ttry {\r\n \t\tFile currFile = openFile(file);\r\n \t\tStringBuilder sb;\r\n\r\n \t\tif (currFile == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n\r\n \t\tBufferedReader br = new BufferedReader(new FileReader(currFile));\r\n \t\tString line = null;\r\n \t\twhile ((line = br.readLine()) != null) {\r\n \t\t\tint length = line.length();\r\n \t\t\tif (length == 0) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tint index = 0;\r\n \t\t\tLinkedList<String> newLL;\r\n \t\t\twhile (index < length && line.charAt(index) == ' ') {\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tif (index > length-8 || line.substring(index, index+8).compareTo(\"#include\") != 0) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tindex += 8;\r\n \t\t\twhile (line.charAt(index) == ' ') {\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tif (line.charAt(index) != '\"') {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tindex++;\r\n \t\t\tint len = line.length();\r\n \t\t\tsb = new StringBuilder();\r\n \t\t\twhile (index < len) {\r\n \t\t\t\tif (line.charAt(index) == '\"') {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\tsb.append(line.charAt(index));\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tString currName = sb.toString();\r\n \t\t\tll.add(currName);\r\n \t\t\tif (hashM.containsKey(currName)) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tnewLL = new LinkedList<String>();\r\n \t\t\thashM.put(currName, newLL);\r\n \t\t\tworkQueue.add(currName);\r\n \t\t}\r\n \t}\r\n \tcatch (Exception x) {\r\n \t\tx.printStackTrace();\r\n \t}\r\n }",
"private void getCache(Context context) throws IOException {\n\t\t // Read file from distributed caches - each line is a item/itemset with its frequent\n\n \t// get caches files.\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tSystem.out.println(\"SETUP ------ MAPPER ----------- GET FREQUENT ITEMS--------------\");\n\t\t\n\t\t\n\t\t// URI to locate cachefile, ex URI a = new URI(\"http://www.foo.com\");\n\t\tList<URI> uris = Arrays.asList(context.getCacheFiles());\n\t\t\n\t\tSystem.out.println(\"Reading cached files\");\n\t\t// read cache files which contains candidates?\n\t\t\n\t\tnItems = 0;\n\t\t\n\t\tfor (URI uri : uris) {\n\t\t\tPath p = new Path(uri);\n\t\t\tSystem.out.println(\"Loading \" + uri.toString());\n\t\t\tFileSystem fs = FileSystem.get(context.getConfiguration());\n\t\t\tInputStreamReader ir = new InputStreamReader(fs.open(p));\n\t\t\tBufferedReader data = new BufferedReader(ir);\n\t \twhile (data.ready()) { \t\t\n\t \t\tString line=data.readLine();\n\t \t\tif (line.matches(\"\\\\s*\")) continue; // be friendly with empty lines\n\t \t\tString[] numberStrings = line.split(\"\\t\");\n\t \t\t\n \n\t \t\tint frequentItem = Integer.parseInt(numberStrings[0]);\n \t\t\tif (!hashItems.containsKey(frequentItem)) {\n\t \t\t\t\thashItems.put(frequentItem, nItems);\n\t \t\t\t\tnItems++;\n\t \t\t\t}\n\t \t\t}\n\t \t\t\n\t \t} \n\n }",
"private void rehash() {\n LinkedList<Entry<K,V>>[] oldTable = table;\n table = new LinkedList[oldTable.length * 2 + 1];\n numKeys = 0;\n for (LinkedList<Entry<K, V>> list : oldTable) {\n if (list != null) {\n for (Entry<K,V> entry : list) {\n put(entry.getKey(), entry.getValue());\n numKeys++;\n }\n }\n }\n }",
"void insert(){\n \tFIR fir = new FIR();\r\n \tfir_id++;\r\n \tfir = fir.accept(fir_id);\r\n \thashaddress = hash(fir.category);\r\n \tFIR ptr;\r\n\t if(hashtable[hashaddress]==null){\r\n\t hashtable[hashaddress]=fir;\r\n\t }\r\n\t else{\r\n\t ptr=hashtable[hashaddress];\r\n\t while(ptr.next!=null){\r\n\t ptr=ptr.next;\r\n\t }\r\n\t ptr.next=fir;\r\n\t }\r\n\t //Time Complexity: O(n)\r\n }",
"public static void loadAllAdditionalCachedObjectList() {\n\n\t\t// TODO Completar cuando sea necesario.\n\n\t}",
"NBLK(int[][] origMap) {\r\n\r\n\t\t\r\n\t\t// suppose it's a matrix for numberlink\r\n\t\tn_row = origMap.length;\r\n\t\tn_col = origMap[0].length;\r\n\t\tlength = n_row * n_col;\r\n\t\tadjaMatrix=new int[length][length];\r\n\t\tStartPoint=new HashMap<Integer, Node>();\r\n\t\tEndPoint=new HashMap<Integer, Node>();\r\n\t\tnowMap= new HashMap<Integer,LinkedList<Integer>>();\r\n\t\t\r\n\t\tpaths=new HashMap<Integer, Stack<Node>>();\r\n\t\tallNodes= new HashMap<Integer,Node>();\r\n\t\t\r\n\t\t\r\n\t\tlastPath=0;\r\n\t\t\r\n\t\tcount=0;\r\n\t\tfor (int i = 0; i < n_row; i++) {\r\n\t\t\tfor (int j = 0; j < n_col; j++) {\r\n\t\t\t\tif (origMap[i][j] > -1) {\r\n\t\t\t\t\t//we can use that point to represent a blocked point (i,j) as matrix[i][j]=-1\r\n\t\t\t\t\tint index = i * n_col + j;\r\n\t\t\t\t\tNode n = new Node(i, j, index, origMap[i][j]);\r\n\t\t\t\t\tallNodes.put(index, n);\r\n\t\t\t\t\tLinkedList<Integer> neibors = new LinkedList<Integer>();\r\n\r\n\t\t\t\t\tif (i > 0 && origMap[i-1][j] > -1) {\r\n\t\t\t\t\t\t//left\r\n\t\t\t\t\t\tadjaMatrix[index][(i - 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i - 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i - 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i < n_row - 1 && origMap[i+1][j] > -1) {\r\n\t\t\t\t\t\t//right\r\n\t\t\t\t\t\tadjaMatrix[index][(i + 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i + 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i + 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j > 0 && origMap[i][j-1] > -1) {\r\n\t\t\t\t\t\t//top\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j - 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j - 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j < n_col - 1 && origMap[i][j+1] > -1) {\r\n\t\t\t\t\t\t//bottom\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j + 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j + 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j + 1);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnowMap.put(index, neibors);\r\n\t\t\t\t\tif (origMap[i][j] > 0) {\r\n\r\n\t\t\t\t\t\tif (!StartPoint.containsKey(origMap[i][j])) {\r\n\t\t\t\t\t\t\tStartPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t\tStack<Node> tp = new Stack<Node>();\r\n\t\t\t\t\t\t\ttp.push(n);\r\n\t\t\t\t\t\t\tpaths.put(origMap[i][j], tp);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEndPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"private void rehash() {\n if (rehashing) {\n int newCapacity = 2 * capacity + 1;\n if (newCapacity > MAXIMUM_CAPACITY) {\n return;\n }\n\n objectCounter += 2;\n MapElement[] newMap = new MapElement[newCapacity]; \n \n MapElement me = null;\n MapElement t = null;\n MapElement next = null;\n int newIndex = 0;\n \n for (int index = 0; index < capacity; index++) {\n me = map[index];\n while (me != null) {\n next = me.getNext();\n newIndex = me.getKey() % newCapacity;\n if (newIndex < 0) {\n newIndex = -newIndex;\n }\n if (newMap[newIndex] == null) {\n // No element yet for this new index\n newMap[newIndex] = me;\n me.setNext(null);\n } else {\n // Hook the element into the beginning of the chain\n t = newMap[newIndex];\n newMap[newIndex] = me;\n me.setNext(t);\n }\n me = next;\n }\n }\n \n map = newMap;\n capacity = newCapacity;\n // Max. number of elements before a rehash occurs\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n\n newMap = null;\n }\n }",
"void add(ThreadLocal<?> key, Object value) {\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n if (k == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n return;\n }\n }\n }",
"public Map lookupNoAttributes( Set lfns, String handle ){\n //Map indexed by lrc url and each value a collection\n //of lfns that the RLI says are present in it.\n Map lrc2lfn = this.getLRC2LFNS(lfns);\n if(lrc2lfn == null){\n //probably RLI is not connected!!\n return null;\n }\n\n // now query the LRCs with the LFNs that they are responsible for\n // and aggregate stuff.\n String key = null,message = null;\n Map result = new HashMap(lfns.size());\n for(Iterator it = lrc2lfn.entrySet().iterator();it.hasNext();){\n Map.Entry entry = (Map.Entry)it.next();\n key = (String)entry.getKey();\n message = \"Querying LRC \" + key;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,key);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + key,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n\n //query the lrc\n try{\n Map m = lrc.lookupNoAttributes((Set)entry.getValue(),handle);\n for(Iterator mit = m.entrySet().iterator();mit.hasNext();){\n entry = (Map.Entry)mit.next();\n //merge the entries into the main result\n key = (String)entry.getKey(); //the lfn\n if(result.containsKey(key)){\n //right now no merging of RCE being done on basis\n //on them having same pfns. duplicate might occur.\n ((Set)result.get(key)).addAll((Set)entry.getValue());\n }\n else{\n result.put(key,entry.getValue());\n }\n }\n }\n catch(Exception ex){\n mLogger.log(\"lookup(Set,String):\",ex,\n LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n //disconnect\n lrc.close();\n }\n\n\n mLogger.log(message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n return result;\n\n }",
"public int hashCode() {\n if (size == 0) {\n return 0;\n } else {\n int hash = 0xffff;\n JMLListObjectNode<E> walker = the_list;\n while (walker != null) {\n E wv = walker.val;\n if (wv != null) {\n hash ^= wv.hashCode();\n }\n walker = walker.next;\n } \n return hash;\n }\n }",
"List<Link> findLinkByCache();",
"void runC() {\n\t\tArrayList<Link> links_s2 = new ArrayList<Link>(links_s);\n\t\tArrayList<Link> links_p2 = new ArrayList<Link>(links_p);\n\t\talgorithmC = new HashSet<Link>(algorithmC(links_p2, links_s2));\n\t}",
"protected static void rehash() \r\n\t{\r\n\t\tEntry\told, e;\r\n\t\tint\t\ti, index;\r\n\r\n\t\tEntry\toldMap[] = m_table;\r\n\t\tint\t\toldCapacity = oldMap.length;\r\n\r\n\t\tint newCapacity = oldCapacity * 2 + 1;\r\n\t\tEntry newMap[] = new Entry[newCapacity];\r\n\r\n\t\tm_threshold = (int)(newCapacity * m_loadFactor);\r\n\t\tm_table = newMap;\r\n\r\n\t\tfor (i = oldCapacity ; i-- > 0 ;) {\r\n\t\t\tfor (old = oldMap[i] ; old != null ; ) {\r\n\t\t\t\te = old;\r\n\t\t\t\told = old.m_next;\r\n\r\n\t\t\t\tindex = (e.m_name.hashCode() & 0x7FFFFFFF) % newCapacity;\r\n\t\t\t\te.m_next = newMap[index];\r\n\t\t\t\tnewMap[index] = e;\r\n\t\t\t}\r\n\t\t}\r\n }",
"public void cacheHashCode() {\n _hashCode = 1;\n for (int counter = size() - 1; counter >= 0; counter--) {\n _hashCode = 31 * _hashCode + get(counter).hashCode();\n }\n }",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"void updateLandmarks() {\n\n\t\t\tregisterUpdateLandmarksTimer();\n\n\t\t\tint m = 2;\n\t\t\tfinal int expectedLandmarks = NumberOfLandmarks + m;\n\t\t\tIterator<Long> ier = pendingHSHLandmarks.keySet().iterator();\n\n\t\t\tSet<AddressIF> tmpList = new HashSet<AddressIF>(1);\n\t\t\tLong curRecord = null;\n\n\t\t\t// get a non-empty list of landmarks\n\t\t\twhile (ier.hasNext()) {\n\t\t\t\tLong nxt = ier.next();\n\t\t\t\tif (pendingHSHLandmarks.get(nxt).IndexOfLandmarks != null\n\t\t\t\t\t\t&& pendingHSHLandmarks.get(nxt).IndexOfLandmarks.size() > 0) {\n\t\t\t\t\ttmpList\n\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(nxt).IndexOfLandmarks);\n\t\t\t\t\tcurRecord = nxt;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if empty, we need to update landmarks immediately\n\t\t\tif (tmpList.size() == 0) {\n\t\t\t\t// remove the record\n\t\t\t\tif (curRecord != null) {\n\t\t\t\t\tpendingHSHLandmarks.get(curRecord).clear();\n\t\t\t\t\tpendingHSHLandmarks.remove(curRecord);\n\t\t\t\t} else {\n\t\t\t\t\t// null curRecord\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfinal Long Timer = curRecord;\n\t\t\t\t// ping landmarks, if several of them fails, p percentage p=0.2\n\t\t\t\t// , we remove the records, and restart the landmark process\n\t\t\t\t// =================================================================\n\t\t\t\tfinal List<AddressIF> aliveLandmarks = new ArrayList<AddressIF>(\n\t\t\t\t\t\t1);\n\n\t\t\t\tNNManager.collectRTTs(tmpList, new CB2<Set<NodesPair>, String>() {\n\t\t\t\t\tprotected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\t// send data request message to the core node\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\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\t\t\t// ==================================================================\n\n\t\t\t// expected landmarks, K+m\n\n\t\t\tfinal Set<AddressIF> pendingNodes = new HashSet<AddressIF>(1);\n\n\t\t\tgetRandomNodes(pendingNodes, expectedLandmarks);\n\n\t\t\t// remove myself\n\t\t\tif (pendingNodes.contains(Ninaloader.me)) {\n\t\t\t\tpendingNodes.remove(Ninaloader.me);\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: Total number of landmarks are: \"\n\t\t\t\t\t+ pendingNodes.size());\n\n\t\t\tif (pendingNodes.size() == 0) {\n\t\t\t\tString errorString = \"$: HSH no valid nodes\";\n\t\t\t\tSystem.out.println(errorString);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBarrier barrierUpdate = new Barrier(true);\n\t\t\tfinal StringBuffer errorBuffer = new StringBuffer();\n\n\t\t\tfinal long TimeStamp = System.currentTimeMillis();\n\n\t\t\tfor (AddressIF addr : pendingNodes) {\n\t\t\t\tseekLandmarks(TimeStamp, addr, barrierUpdate,\n\t\t\t\t\t\tpendingHSHLandmarks, errorBuffer);\n\t\t\t}\n\n\t\t\tEL.get().registerTimerCB(barrierUpdate, new CB0() {\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tString errorString;\n\t\t\t\t\tif (errorBuffer.length() == 0) {\n\t\t\t\t\t\terrorString = new String(\"Success\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrorString = new String(errorBuffer);\n\t\t\t\t\t}\n\n\t\t\t\t\t// finish the landmark seeking process\n\n\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Long\n\t\t\t\t\t\t\t.valueOf(TimeStamp))\n\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks == null) {\n\t\t\t\t\t\tSystem.out.println(\"$: NULL elements! \");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks\n\t\t\t\t\t\t\t.size() < (0.7 * expectedLandmarks)) {\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp))\n\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\tpendingHSHLandmarks.remove(Long.valueOf(TimeStamp));\n\t\t\t\t\t\tSystem.out.println(\"$: not enough landmark nodes\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t//\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp)).readyForUpdate = true;\n\t\t\t\t\t\tSystem.out.println(\"$: enough landmark nodes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(1);\n\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks);\n\t\t\t\t\t\tupdateRTTs(Long.valueOf(TimeStamp), nodes, new CB1<String>() {\n\t\t\t\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\t\t\t\tswitch (ncResult.state) {\n\t\t\t\t\t\t\t\tcase OK: {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\t\tcase TIMEOUT: {\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\t\t}\n\t\t\t\t\t\t\t\tnodes.clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"private void removeTailElement(){\n JavaBaseTask removed = items.remove(tail.getKey());\n System.out.println(\"element with index : \" + removed.getKey() + \"has been deleted doe to cache eviction\");\n tail = tail.previous;\n var headAu = head;\n while (headAu.next != null){\n headAu = headAu.next;\n }\n headAu = headAu.previous;\n headAu.next = null;\n }",
"private void recoverINodes()\n {\n Map<String, DFSNode.SerializedDFSNode> serInodeMap = new HashMap<>();\n try (BufferedReader reader = new BufferedReader(new FileReader(dfsNodeFile)))\n {\n String line;\n while((line=reader.readLine())!=null)\n {\n DFSNode.SerializedDFSNode serializedINode = (DFSNode.SerializedDFSNode) JSONUtil.fromJSON(line, DFSNode.SerializedDFSNode.class);\n DFSNode inode = new DFSNode();\n inode.fqpn = serializedINode.fqpn;\n inode.dataBlockMetas = serializedINode.dataBlockMeta;\n inode.dirOrFile= serializedINode.dirOrFile;\n inodeMap.put(inode.fqpn,inode);\n\n\n serInodeMap.put(serializedINode.fqpn,serializedINode);\n if (NumberUtils.isCreatable(inode.fqpn))\n fileNodeCounter = Math.max(fileNodeCounter,Integer.valueOf(inode.fqpn));\n\n /* if (inode.dataBlockMetas!=null) {\n\n DFSDataBlockMeta meta = inode.dataBlockMetas.get(inode.dataBlockMetas.size()-1);\n\n meta.fileSystem = resolve(meta.fileSystemName);\n\n }*/\n\n\n }\n } catch (Exception ex) {\n ex.printStackTrace();}\n\n\n inodeMap.values().stream().forEach(inode->{\n\n DFSNode.SerializedDFSNode serializedINode = serInodeMap.get(inode.fqpn);\n\n // inode.next = inodeMap.get(serializedINode.nextNodeName);\n\n if (serializedINode.getNodeNames()!=null) {\n List<DFSNode> nodes = serializedINode.getNodeNames().stream().map(name -> {\n return inodeMap.get(name) ;\n }).collect(Collectors.toList());\n\n inode.setNodes(nodes);\n }\n });\n\n }",
"public void reloadCache(DB db) {\n // LevelDB is great at scanning consecutive keys.\n // This take seconds even with 20m keys to add.\n log.info(\"Loading Bloom Filter\");\n DBIterator iterator = db.iterator();\n byte[] key = getKey(KeyType.OPENOUT_ALL);\n for (iterator.seek(key); iterator.hasNext(); iterator.next()) {\n ByteBuffer bbKey = ByteBuffer.wrap(iterator.peekNext().getKey());\n byte firstByte = bbKey.get(); // remove the KeyType.OPENOUT_ALL\n // byte.\n if (key[0] != firstByte) {\n printStat();\n return;\n }\n\n byte[] hash = new byte[32];\n bbKey.get(hash);\n add(hash);\n }\n try {\n iterator.close();\n } catch (IOException e) {\n log.error(\"Error closing iterator\", e);\n }\n printStat();\n }",
"static int[] implement_LRU_cache(int capacity, int[] query_type, int[] key, int[] value) {\n // Stores the key as key of map and value as position of this provided value in linkedlist\n Map<Integer, Node> cacheMap = new HashMap<Integer, Node>();\n LinkedList keyList = new LinkedList();\n List<Integer> returnedValues = new ArrayList<Integer>();\n for(int i=0;i<query_type.length;i++){\n if(query_type[i]==0){\n // Add the linked list node to head if its accessed\n if(cacheMap.containsKey(key[i])){\n Node valueNode = cacheMap.get(key[i]);\n returnedValues.add(valueNode.value);\n // refresh the position of this element in the list\n keyList.replaceNode(valueNode);\n }else{\n returnedValues.add(-1);\n }\n\n }else{\n Node node = new Node(key[i], value[i]);\n if(cacheMap.containsKey(key[i])) {\n node = cacheMap.get(key[i]);\n node.value = value[i];\n keyList.replaceNode(node);\n }\n else {\n if (capacity > cacheMap.size()) {\n keyList.addFirst(node);\n cacheMap.put(key[i], node);\n\n }else{\n cacheMap.remove(keyList.tail.key);\n keyList.deleteNode();\n\n keyList.addFirst(node);\n cacheMap.put(node.key, node);\n }\n\n }\n }\n }\n int[] returnArray = new int[returnedValues.size()];\n for(int i=0;i<returnedValues.size();i++){\n returnArray[i] = returnedValues.get(i);\n }\n return returnArray;\n }",
"public void cacheResult(java.util.List<wsihash> wsihashs);",
"static void synced () {\n\t\tList<Integer> linkedList = \n\t\t\t\tCollections.synchronizedList(new LinkedList<Integer>());\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\t\t// launch a thread to add numbers 100 to 200 to the list\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry { Thread.sleep(1);} \n\t\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"end\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// now run an iterator to go through the linked list that is \n\t\t// synchronized with the linked list object. \n\t\tsynchronized(linkedList) {\n\t\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\t\tSystem.out.println(\"starting iteration\");\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\ttry {Thread.sleep(4);} \n\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t\t\tSystem.out.println(iterator.next());\n\t\t\t}\t\n\t\t\tSystem.out.println(\"finished iteration\");\n\t\t}\n\t}",
"@Override\n public int hashCode()\n {\n return getURI().hashCode();\n }",
"void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}",
"public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }",
"@Override\n\tpublic int hashCode()\n\t{\n\t\t// This is really simple, but it works... and prevents a deep hash\n\t\treturn nodeList.size() + edgeList.size() * 23;\n\t}",
"protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}",
"void addCorrect(String key, String val) {\n List<String> list = map.get(key);\n if (list == null) {\n list = Collections.synchronizedList(new ArrayList<>());\n List<String> exist = map.putIfAbsent(key, list);\n if (exist != null) {\n list = exist;\n }\n }\n list.add(val);\n }",
"public ArrayList<Person> hashLinearDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tProbeHashMap<String, Person> map = new ProbeHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t// and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\tSystem.out.println (\"Average number of probes: \"+ average/insertCount );\n\tSystem.out.println(\"Max number of probes: \"+ max);\n\tSystem.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n Iterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated.add(suspect);\n\t}\n\treturn unduplicated;\n }",
"void addBroken(String key, String val) {\n List<String> list = map.get(key);\n if (list == null) {\n list = Collections.synchronizedList(new ArrayList<>());\n map.put(key, list);\n }\n list.add(val);\n }",
"private Map getLRC2LFNS(Set lfns){\n int batch = lfns.size() > mBatchSize ? mBatchSize:lfns.size();\n //sanity check\n if (this.isClosed()) {\n //probably an exception should be thrown here!!\n throw new RuntimeException(RLI_NOT_CONNECTED_MSG + this.mRLIURL);\n }\n\n Map lrc2lfn = new HashMap();//indexed by lrc url and each value a collection\n //of lfns that the RLI says are present init.\n //get a handle to the rli\n\n //we need to query the RLI in batches\n for (Iterator it = lfns.iterator(); it.hasNext(); ) {\n ArrayList l = new ArrayList(batch);\n for (int j = 0; (j < batch) && (it.hasNext()); j++) {\n l.add(it.next());\n }\n\n //query the RLI for one batch\n List res = null;\n try{\n res = mRLI.getLRCBulk(l);\n }\n catch(RLSException ex){\n mLogger.log(\"getLRC2LFNS(Set)\",ex,\n LogManager.ERROR_MESSAGE_LEVEL);\n //or throw a runtime exception\n return null;\n }\n //iterate through the results and put them in the map\n String lrc = null;\n String lfn = null;\n for(Iterator lit = res.iterator();lit.hasNext();){\n RLSString2Bulk s2b = (RLSString2Bulk) lit.next();\n lfn = s2b.s1;//s1 is the lfn\n lrc = s2b.s2;//s2 denotes the lrc which contains the mapping\n\n //rc is the exit status returned by the RLI\n if (s2b.rc == RLSClient.RLS_SUCCESS) {\n //we are really only concerned with success\n //and do not care about other exit codes\n Object val = null;\n Set s = null;\n s = ( (val = lrc2lfn.get(lrc)) == null) ?\n new LinkedHashSet():\n (LinkedHashSet)val;\n s.add(lfn);\n if(val == null)\n lrc2lfn.put(lrc,s);\n\n }\n }\n }\n\n //match LRC's just once against ingore and restrict lists\n for( Iterator it = lrc2lfn.keySet().iterator(); it.hasNext(); ){\n String lrc = ( String ) it.next();\n int state = this.determineQueryType(lrc);\n\n //do the query on the basis of the state\n if (state == LRC_QUERY_IGNORE) {\n mLogger.log(\"Skipping LRC \" + lrc,\n LogManager.DEBUG_MESSAGE_LEVEL);\n it.remove();\n }\n }\n\n\n\n return lrc2lfn;\n }",
"private void duplicate(Node nodo) {\n int reference_page = nodo.getReference();\n if(this.debug)\n System.out.println(\"ExtHash::duplicate >> duplicando nodo con referencia \" + reference_page);\n\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contenido de la pagina:\");\n for(int i=1; i<content.get(0); i++) {\n System.out.println(\" \" + content.get(i));\n }\n }\n\n int shift = nodo.getAltura();\n nodo.activateReference(false);\n\n ArrayList<Integer> left = new ArrayList<>();\n ArrayList<Integer> right = new ArrayList<>();\n\n for(int i=1; i<=content.get(0); i++) {\n int chain = content.get(i);\n if((chain & (1 << shift)) == 0) {\n left.add(chain);\n } else {\n right.add(chain);\n }\n }\n\n left.add(0, left.size());\n right.add(0, right.size());\n\n this.fm.write(left, reference_page); this.out_counter++;\n Node l = new Node(reference_page);\n l.setAltura(shift + 1);\n\n this.fm.write(right, this.last); this.out_counter++;\n Node r = new Node(this.last); this.last++;\n r.setAltura(shift + 1);\n\n total_active_block++;\n\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contentido de paginas duplicadas(left), ref: \" + reference_page);\n for(int i=0; i<left.size(); i++) {\n System.out.println(\" \" + left.get(i));\n }\n }\n\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contentido de paginas duplicadas(right), ref: \" + (this.last - 1));\n for(int i=0; i<right.size(); i++) {\n System.out.println(\" \" + right.get(i));\n }\n }\n\n nodo.addLeftNode(l);\n nodo.addRightNode(r);\n\n ArrayList<Integer> last = new ArrayList<>();\n last.add(0);\n if(left.get(0) == B-2 && shift + 1 < 30) {\n this.duplicate(l);\n } else if(left.get(0) == B-2 && shift + 1 == 30) {\n left.add(this.last);\n this.fm.write(left, l.getReference()); this.out_counter++;\n\n this.fm.write(last, this.last); this.out_counter++;\n this.last++;\n }\n\n if(right.get(0) == B-2 && shift + 1 < 30) {\n this.duplicate(r);\n } else if(right.get(0) == B-2 && shift + 1 == 30) {\n right.add(this.last);\n this.fm.write(right, r.getReference()); this.out_counter++;\n\n this.fm.write(last, this.last); this.out_counter++;\n this.last++;\n }\n }",
"public AllOOneDataStructure() {\n\t\thead=new Node(\"\", 0);\n\t\ttail=new Node(\"\", 0);\n\t\thead.next=tail;\n\t\ttail.prev=head;\n\t\tmap=new HashMap<>();\n\t}",
"public HashMap() {\n this.capacity = 100;\n this.hashMap = new LinkedList[capacity];\n }",
"private TagListSingleton() {\n\t\t// The file is always going to have same pathname\n\t\tFile f = new File(pathName);\n\t\ttry {\n\t\t\tif (f.exists()) {\n\t\t\t\treadFromFile();\n\t\t\t} else {\n\t\t\t\t// If file does not exist, create new map\n\t\t\t\tf.createNewFile();\n\t\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t\t}\n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Initialize the other map\n\t\tmakeImgToTag();\n\t}",
"protected final <T> List<T> getLocalCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(spanListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }",
"private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}",
"public MyHashMap() {\n hashMap = new ArrayList<>();\n }",
"public static void main(String[] args) throws InterruptedException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException {\n Thread thread = new Thread(() -> new ThreadLocalMapOfReferenceDemo().myEntryChainCheck(), \"====myThread1\");\n thread.start();\n//\n thread.join();\n Thread.sleep(1000L);\n Thread thread1 = new Thread(() -> new ThreadLocalMapOfReferenceDemo(thread).myEntryChainCheck2(), \"----myThread2\");\n thread1.start();\n thread1.join();\n\n// thread = null;\n thread1 = null;\n System.gc();\n threadLocal.get();\n\n Method getMap = threadLocal.getClass().getDeclaredMethod(\"getMap\", Thread.class);\n getMap.setAccessible(true);\n Object threadLocalMap = getMap.invoke(threadLocal, Thread.currentThread());\n\n getTable(threadLocalMap);\n\n }",
"Dijk(){\n grp = new HashMap<>();\n seen = new HashSet<>();\n dlist = new HashMap<>();\n id = new HashMap<>();\n lowlink = new HashMap<>();\n orid = 0;\n }",
"private synchronized void flushCache() {\n /*\n r6 = this;\n monitor-enter(r6)\n r0 = 0\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x005a }\n if (r1 == 0) goto L_0x000c\n monitor-exit(r6)\n return\n L_0x000c:\n r1 = 4\n if (r0 >= r1) goto L_0x0058\n int r1 = r6.cdS // Catch:{ all -> 0x005a }\n r2 = 64\n if (r1 > r2) goto L_0x001e\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r1 = (long) r1 // Catch:{ all -> 0x005a }\n long r3 = r6.cdV // Catch:{ all -> 0x005a }\n int r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r1 <= 0) goto L_0x0058\n L_0x001e:\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n java.util.Set r1 = r1.entrySet() // Catch:{ all -> 0x005a }\n java.util.Iterator r1 = r1.iterator() // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.next() // Catch:{ all -> 0x005a }\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1 // Catch:{ all -> 0x005a }\n java.io.File r2 = new java.io.File // Catch:{ all -> 0x005a }\n java.lang.Object r3 = r1.getValue() // Catch:{ all -> 0x005a }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x005a }\n r2.<init>(r3) // Catch:{ all -> 0x005a }\n long r2 = r2.length() // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.cdY // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.getKey() // Catch:{ all -> 0x005a }\n r4.remove(r1) // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n int r1 = r1.size() // Catch:{ all -> 0x005a }\n r6.cdS = r1 // Catch:{ all -> 0x005a }\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r4 = (long) r1 // Catch:{ all -> 0x005a }\n long r4 = r4 - r2\n int r1 = (int) r4 // Catch:{ all -> 0x005a }\n r6.cdT = r1 // Catch:{ all -> 0x005a }\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0058:\n monitor-exit(r6)\n return\n L_0x005a:\n r0 = move-exception\n monitor-exit(r6)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.common.bitmapfun.util.DiskLruCache.flushCache():void\");\n }",
"protected void rehash() {\n int oldCapacity = table.length;\n Entry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n Entry newMap[] = new Entry[newCapacity];\n\n threshold = (int) (newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity; i-- > 0; ) {\n for (Entry old = oldMap[i]; old != null; ) {\n Entry e = old;\n old = old.next;\n\n int index = (e.key & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }",
"@Override\r\n\tpublic Object visitPairList(PairList pairList, Object arg) throws Exception {\n\t String tempMapName = initTempMap((Type)arg);\r\n\t //put all the pairlist into the temp map\r\n\t for(Pair aPair : pairList.pairs)\r\n\t {\r\n\t mv.visitFieldInsn(GETSTATIC, className, tempMapName, HASHMAP_SIGNATURE);\r\n\t aPair.expression0.visit(this, nonNull);\r\n\t box(aPair.expression0.expressionType);\r\n\t aPair.expression1.visit(this, nonNull);\r\n\t box(aPair.expression1.expressionType);\r\n\t mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/HashMap\", \"put\", \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\");\r\n mv.visitInsn(POP);\r\n\t }\r\n\t //now inovke putAll to transfer everything from temp map to actual one\r\n mv.visitFieldInsn(GETSTATIC, className, tempMapName, HASHMAP_SIGNATURE);\r\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/HashMap\", \"putAll\", \"(Ljava/util/Map;)V\");\r\n\t return null;\r\n\t}",
"@Test\n\tpublic void test3(){\n\t\tDoubleLinkedList dll = new DoubleLinkedList(getList(5));\n\t\t\n\t\tassertEquals(1, dll.get(1));\n\t\t\n\t\tdll.add(dll.size(), 99);\n\t\tassertEquals(dll.get(dll.size() - 1), 99);\n\t\tdll.add(1, 100);\n\t\tassertEquals(dll.get(1), 100);\n\t\t\n\t\tdll.remove(6);\n\t\tassertEquals(dll.indexOf(99), -1);\n\t\t\n\t\tdll.clear();\n\t\tassertEquals(dll.size(), 0);\n\t\t\n\t\tdll.addAll(getList(0));\n\t\tassertEquals(dll.size(), 0);\n\t\tdll.addAll(getList(5));\n\t\tassertEquals(dll.size(), 5);\n\t\t\n\t\tdll.addAll(dll.size() - 1, getList(6));\n\t\tassertEquals(dll.size(), 11);\n\t}",
"private void hookLinks(long offleft,long offright){\n\t\tlinks.clear();\n\t\tlinks.add(offleft);\n\t\tlinks.add(offright);\n\t}",
"FHiterator() {\n\t\t\tmCurrentNode = mHead.next;\n\t\t\tmCurrentIndex = 0;\n\t\t}",
"protected abstract Collection<Cache> loadCaches();",
"private Map<Key, Integer> mergeDuplicatedItemsAndDelte0(simpleRingBuffer<byte[]> buff2) {\n\t\t// TODO Auto-generated method stub\n\t\t//Iterator<byte[]> ier0 = buff2.iterator();\t \t\n \n//\t\tMap<Key, Integer> deduplicatedMap = Maps.newLinkedHashMap();\n// \t \t\n//\t\twhile(!buff2.isEmpty()){\n//\t\t\t//delete\n//\t\t\tbyte[] out = buff2.pop();\n//\t\t\t//push to the hash table\n//\t\t\tif(!deduplicatedMap.containsKey( out.key)){\n//\t\t\t\tdeduplicatedMap.put( out.key, out.counter);\t \n//\t\t\t}else{\n//\t\t\t\tdeduplicatedMap.replace(out.key, out.counter+deduplicatedMap.get(out.key));\n//\t\t\t}\n//\t\t}\n//\t\treturn deduplicatedMap;\n\t\treturn null;\n\t}"
] | [
"0.58843637",
"0.5648756",
"0.5625865",
"0.5584115",
"0.5522565",
"0.5515938",
"0.5514219",
"0.5511384",
"0.55062467",
"0.54969656",
"0.5453093",
"0.54524547",
"0.54500484",
"0.5417801",
"0.5403245",
"0.53692484",
"0.5359796",
"0.5349379",
"0.5331017",
"0.53205794",
"0.5315992",
"0.53114766",
"0.5308688",
"0.5292152",
"0.5286559",
"0.52863634",
"0.5285516",
"0.52782106",
"0.52497774",
"0.5249086",
"0.5247562",
"0.5226509",
"0.5224705",
"0.52195764",
"0.520902",
"0.52065986",
"0.5197643",
"0.5195732",
"0.51952535",
"0.51884556",
"0.5182442",
"0.5175255",
"0.5173427",
"0.51723754",
"0.51598597",
"0.5145772",
"0.5144066",
"0.5143885",
"0.51272416",
"0.5125098",
"0.5123989",
"0.5122187",
"0.51204646",
"0.5118324",
"0.51172763",
"0.5111778",
"0.51036006",
"0.50995106",
"0.50954396",
"0.5072463",
"0.5066254",
"0.5064279",
"0.5062883",
"0.50602704",
"0.5059545",
"0.5058725",
"0.50497776",
"0.50427216",
"0.50364184",
"0.50322366",
"0.50219625",
"0.50213325",
"0.50203705",
"0.5016742",
"0.501569",
"0.5005051",
"0.500501",
"0.5002777",
"0.49987763",
"0.4994502",
"0.49916318",
"0.49910975",
"0.49852347",
"0.49780202",
"0.49743688",
"0.49656782",
"0.49607134",
"0.49604812",
"0.49591604",
"0.4946877",
"0.49457285",
"0.49415508",
"0.49412522",
"0.4936134",
"0.49330857",
"0.49327123",
"0.49323204",
"0.49321884",
"0.49260458",
"0.49258307"
] | 0.51542103 | 45 |
/ Cum LinkedList nu este thread safe , pentru a adauga la lista unui string maximal local, trebuie sa facem functia syncronised | public synchronized void addMaxWordToList(String file, LinkedList<String> wordsListfile){
wordsListfile.add(file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}",
"private static void containerListNotSafe() {\n List<String> list = new CopyOnWriteArrayList<>();\n // 开启了20个线程\n for (int i = 1; i <= 30; i++) {\n new Thread(() -> {\n list.add(UUID.randomUUID().toString().substring(0,8));\n System.out.println(Thread.currentThread().getName()+list);\n }, String.valueOf(i)).start();\n }\n\n // java.util.ConcurrentModificationException 并发修改异常\n //1.故障现象\n //\tjava.util.ConcurrentModificationException 并发修改异常\n //2.导致原因\n //\n //3.解决方案\n //\t3.1 new Vector<>();\n //\t3.2 Collections.synchronizedList(new ArrayList<>());\n //\t3.3 new CopyOnWriteArrayList<>();\n //4.优化方案\n //\n\n // 写时复制\n // CopyOnWrite,容器即写时复制的容器.往一个容器添加元素的时候,不直接往当前容器Object[]添加,而是先将当前容器Object[]进行copy,复制出\n // 一个新的容器,Object[] newElements,然后新的容器Object[] newElements里面添加元素,添加完元素之后,\n // 再将原容器的引用指向新的容器 setArray(newElements);这样做的好处是可以对CopyOnWrite容器进行并发的读,而不需要加锁,\n // 因为当前容器不会添加任何元素.所以CopyOnWrite容器也是一种读写分离的思想,\n\n // /**\n // * Appends the specified element to the end of this list.\n // *\n // * @param e element to be appended to this list\n // * @return {@code true} (as specified by {@link Collection#add})\n // */\n // public boolean add(E e) {\n // final ReentrantLock lock = this.lock;\n // lock.lock();\n // try {\n // Object[] elements = getArray();\n // int len = elements.length;\n // Object[] newElements = Arrays.copyOf(elements, len + 1);\n // newElements[len] = e;\n // setArray(newElements);\n // return true;\n // } finally {\n // lock.unlock();\n // }\n // }\n\n\n }",
"public long problem2b(){\r\n LinkedList<String> linkList = new LinkedList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n linkList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start; \r\n }",
"void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }",
"@Test\n public void test1(){\n CDLListFineRW<String> list = new CDLListFineRW<String>(\"hi\");\n CDLListFineRW<String>.Element head = list.head();\n CDLListFineRW<String>.Cursor c = list.reader(list.head());\n \n for(int i = 74; i >= 65; i--) {\n char val = (char) i;\n c.writer().insertAfter(\"\" + val);\n }\n \n List<Thread> threadList = new ArrayList<Thread>();\n for (int i = 0; i < 50; i++) {\n NormalThreadrwf nt = new NormalThreadrwf(list, i);\n threadList.add(nt);\n }\n \n\tRandomThreadrwf rt = new RandomThreadrwf(list);\n\tthreadList.add(rt);\n\t\n try {\n for(Thread t : threadList){\n \tt.start();\n }\n for (Thread t : threadList) {\n \tt.join();\n }\n } catch(InterruptedException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n list.print();\n// YOU MAY WANT TO INCLUDE A PRINT METHOD TO VIEW ALL THE ELEMENTS\n// list.print();\n \n }",
"public static void main(String [] args) {\n ArrayList<String> all;\n LinkedList<String> ll;\n CircularlyLinkedList<String> sll = new CircularlyLinkedList<>();\n\n String[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n\n for (String s : alphabet) {\n sll.addFirst(s);\n sll.addLast(s);\n }\n System.out.println(sll.toString());\n\n sll.rotate();\n sll.rotate();\n\n for (String s : sll) {\n System.out.print(s + \", \");\n }\n\n }",
"public static void main(String a[]) {\n\t\t\n\t\tDoublyLinkedList list = new DoublyLinkedList();\n\t\tlist.addCharAtEnd('H');\n\t\tlist.addCharAtEnd('e');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('o');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting l\");\n\t\tlist.deleteChar('l');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting H\");\n\t\tlist.deleteChar('H');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting o\");\n\t\tlist.deleteChar('o');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting e\");\n\t\tlist.deleteChar('e');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting l\");\n\t\tlist.deleteChar('l');\n\t\tlist.deleteChar('k');\n\t\tSystem.out.println(list);\n\t\tlist.addCharAtFront('o');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('e');\n\t\tlist.addCharAtFront('H');\n\t\tSystem.out.println(list);\n\t\t\n\t\tSystem.out.println(list.countNodes());\n\t\t\n\t\tSystem.out.println(\"Popping everything\");\n\t\twhile(!list.isEmpty()){\n\t\t\tSystem.out.println(list.removeCharFromFront());\n\t\t}\n\t\t\n\t\tlist.addCharAtFront('o');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('e');\n\t\tlist.addCharAtFront('H');\n\t\tSystem.out.println(\"Popping everything from the end\");\n\t\twhile(!list.isEmpty()){\n\t\t\tSystem.out.println(list.removeCharAtEnd());\n\t\t}\n\t\tSystem.out.println(list.countNodes());\n\t\t\n\t\tlist.addCharAtEnd('o');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('e');\n\t\tlist.addCharAtEnd('H');\n\t\n\t\tlist.reverse();\n\t\tSystem.out.println(list);\n\t\t\n\t\tlist.reverse();\n\t\tSystem.out.println(list);\n\t\t\n\t}",
"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}",
"static void unSynced () {\n\t\tList<Integer> linkedList = Collections.synchronizedList(new LinkedList<Integer>());\n\n\t\t// fill it with numbers 1 to 100\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\n\t\t// launch a thread to add 100 more numbers\n\t\tnew Thread(new Runnable () {\n\t\t\t@Override\n\t\t\tpublic void run () {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"ending adding numbers\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// try to iterate through the list in parallel with the numbers being added\n\t\t// interleaving occurs and the iterator throws a CME.\n\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\tSystem.out.println(\"starting iteration\");\n\t\twhile (iterator.hasNext()) { \n\t\t\ttry {\n\t\t\t\tThread.sleep(4);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tSystem.out.println(\"finished iteration\");\n\t}",
"public LinkedList InicioListaConstructor(){\n\t\t String sCurrentLine, AreaTrab;\n\t\t LinkedList<String> lista= new LinkedList<String>();\n\t\t boolean flag=true;\n\t\t int contador1, contador3;\n\t\t try{\n\t\t\t BufferedReader leer = new BufferedReader(new FileReader(\"Maq.txt\"));\n\t\t\t contador3=1;\n\t\t\t sCurrentLine = leer.readLine();\n\t\t\t AreaTrab= sCurrentLine;\n\t\t\t lista.add(AreaTrab);\n\t\t\t contador1=1; //Elementos que faltaron por revisar.\n\t\t\t while ((sCurrentLine = leer.readLine()) != null) {\n\t\t\t\t if(flag==true){\n\t\t\t\t\t if(contador1%3==0){\n\t\t \t\t\tif(sCurrentLine.equals(AreaTrab)==false){\n\t\t \t\t\t\tflag=false;\n\t\t \t\t\t}\n\t\t \t\t}else if(contador1%3==1 |contador1%3==2){\n\t\t \t\t\tlista.add(sCurrentLine);\n\t\t \t\t}\n\t\t\t\t\t contador1++;\n\t\t\t\t }\n\t \tcontador3++;\t\n\t \t}\n\t\t\t System.out.println(\"*****\");\n\t\t\t leer.close();\n\t\t\t for(int i=0; i<lista.size(); i++){\n\t\t\t\t System.out.println(lista.get(i));\n\t\t\t }\n\t\t\t System.out.println(\"*****\");\n\t\t\t\t //Quedan elementos:\n\t\t\t lista.add(String.valueOf(contador1));\n\t\t\t lista.add(String.valueOf(contador3));\n\t\t\t\t return lista;\n\t\t\t\n\t\t }catch (IOException e) {\n\t System.out.println(\"File not found\");\n\t return null;\n\t\t }\n\t}",
"public void linkedListQueue(){\r\n\t\tfirst = null;\r\n\t\tlast = null;\r\n\t\tN = 0;\r\n\t}",
"public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }",
"public static void main(String[] args) {\n\t\tLinkedList l = new LinkedList();\n\t\tl.add(\"revathi\");\n\t\tl.add(\"bala\");\n\t\tl.add(\"hello\");\n\t\tl.add(\"meena\");\n\t\tSystem.out.println(l);\n\t\tListIterator itr = l.listIterator();\n\t\twhile(itr.hasNext()){\n\t\t\tString s = (String) itr.next();\n\t\t\tif(s.equals(\"revathi\")){\n\t\t\t\titr.remove(); // remove is possible in list iterator\n\t\t\t}\n\t\t\telse if(s.equals(\"bala\")){\n\t\t\t\titr.add(\"abcd\"); // adding is possible\n\t\t\t}\n\t\t\telse if(s.equals(\"meena\")){\n\t\t\t\titr.set(\"hgjk\"); // replace\n\t\t\t}\n\t\t\tSystem.out.println(l);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tLinkedList<String> sujungtasSarasas = new LinkedList<String>();\n\t\t// i sarasa dedami\n\t\t \n\t\tsujungtasSarasas.add(\"vasaris\");\n\t\tsujungtasSarasas.add(\"kovas\");\n\t\tsujungtasSarasas.add(\"balandis\");\n\t\tsujungtasSarasas.add(\"geguze\");\n\t\tSystem.out.println(sujungtasSarasas);\n\t\t\n\t\t// idedame elementus i sarso i pradzia ir i\n\t\t// pabaigas\n\t\tsujungtasSarasas.addFirst(\"SAUSIS\");\n\t\tsujungtasSarasas.addLast(\"BIRZELIS\");\n\t\tSystem.out.println(sujungtasSarasas);\n\t\t\n\t\t// istriname pirma ir paskutini\n\t\t// elementus\n\t\tsujungtasSarasas.removeFirst();\n\t\tsujungtasSarasas.removeLast();\n\t\tSystem.out.println(sujungtasSarasas);\n\t\t\n\t\tSystem.out.println(sujungtasSarasas.removeFirst());\n\t\tSystem.out.println(sujungtasSarasas.removeLast());\n\t\tSystem.out.println(sujungtasSarasas);\n\t\tsujungtasSarasas.push(\"Rugpjutis\");\n\t\tSystem.out.println(sujungtasSarasas);\n\t\tsujungtasSarasas.pop();\n\t\tSystem.out.println(sujungtasSarasas);\n\t\tSystem.out.println(sujungtasSarasas.pop());\n//\t\t\n//\t\t// idedame ir istriname pagal indeksa \n//\t\tsujungtasSarasas.add(0, \"Dar vienas menuo\");\n//\t\tsujungtasSarasas.remove(2);// dar yra removeFirst() ir removeLast()\n//\t\t// metodai, // kurie istrina pirma ir paskutini elementus\n//\t\tSystem.out.println(sujungtasSarasas);\n//\t\t// grazina saraso pirmaji\n//\t\t// elementa ir ji istrina is saraso\n//\t\tString menuo = sujungtasSarasas.poll();\n//\t\tSystem.out.println(menuo);\n//\t\tSystem.out.println(sujungtasSarasas);\n//\t\t//\n//\t\t// grazina saraso pirmaji elementa ir ji istrina is saraso\n//\t\tmenuo = sujungtasSarasas.pollFirst();\n//\t\tSystem.out.println(menuo);\n//\t\tSystem.out.println(sujungtasSarasas);\n//\t\t\n//\t\t// grazina saraso pirmaji elementa ir ji istrina is saraso\n//\t\tmenuo = sujungtasSarasas.pollLast();\n//\t\tSystem.out.println(menuo);\n//\t\tSystem.out.println(sujungtasSarasas);\n\n\t}",
"private static void concurrentList(){\n\t\tList<Object> unsafeList = new ArrayList<Object>();\n\t\tList<Object> safeList = Collections.synchronizedList(unsafeList);\n\t\t\n\t\t/*\n\t\t * Note that you must manually synchronize the returned list when iterating over it, for example:\n\t\t */\n\t\tsynchronized (safeList) {\n\t\t Iterator<Object> it = safeList.iterator();\n\t\t while (it.hasNext()) {\n\t\t System.out.println(it.next());\n\t\t }\n\t\t}\n\t}",
"private static void method_2(){\r\n\t\tLinkedList link = new LinkedList();\r\n\t\tlink.add(\"abc1\");\r\n\t\tlink.add(\"abc2\");\r\n\t\tlink.add(\"abc3\");\r\n\t\tlink.addFirst(\"QQ\");\r\n\t\tlink.add(\"WWW\");\r\n\t\tlink.addLast(\"RRR\");\r\n\t\tSystem.out.println(link);// qq 1 2 3 www rrr\r\n\t\tSystem.out.println(link.removeFirst());//1 2 3 www rrr\r\n\t\tSystem.out.println(link.removeLast());//1 2 3 www\r\n\t\tSystem.out.println(link);\r\n\t}",
"public static void LinkedList_Problems()\n {\n\n LL_addAt();\n }",
"public static void main(String[] args) {\n LinkedList<String> ll = new LinkedList<String>();\n\n //adding a string using the reference variable\n ll.add(\"test\");\n ll.add(\"QTP\");\n ll.add(\"selenium\");\n ll.add(\"RPA\");\n ll.add(\"RFT\");\n\n //to print:\n System.out.println(\"content of LinkedList: \" +ll);\n\n //addFirst: you want to add / introduce first element\n ll.addFirst(\"Naveen\");\n\n //addLast: you want to add last element that is pointing to null\n ll.addLast(\"Automation\");\n //printing the new values\n System.out.println(\"content of LinkedList: \" +ll);\n\n\n //how to get and set values?\n System.out.println(ll.get(0)); //now its Naveen because of addFirst method. This is get value\n\n //set value\n ll.set(0, \"Tom\"); //before 0 index = Naveen, now 0 index = Tom\n System.out.println(ll.get(0)); //will print new set value. first we set and then get the value.\n\n //remove first and last element\n ll.removeFirst();\n ll.removeLast();\n System.out.println(\"linked list content: \"+ll); //will remove first and last elements. removed naveen and automation.\n\n //to remove from a specific position\n ll.remove(2);\n System.out.println(\"linked list content: \" +ll); //selenium = index 2 will be removed.\n\n System.out.println(\"*****************************\");\n /*how to iterate / print all the values of LinkedList?\n => 1. using For Loop\n 2. using advance For Loop\n 3. using iterator\n 4. using while loop\n */\n\n //using for loop\n System.out.println(\"using For loop\");\n for(int i=0; i<ll.size(); i++){\n System.out.println(ll.get(i)); //printing all the values using For loop\n }\n\n //using advance for loop : also called for each loop\n System.out.println(\"using Advance For loop\");\n for(String str : ll) { //we know all our values are String type so String, str = String reference variable, ll = linkedList object.\n System.out.println(str); //print string variables in ll object using str reference variable.\n }\n\n //using iterator\n System.out.println(\"******using iterator\");\n Iterator<String> it = ll.iterator();\n while (it.hasNext()){ //hasNext = if the next element is available\n System.out.println(it.next()); //next method will print.\n }\n\n //using while loop\n System.out.println(\"using while loop\");\n int i = 0;\n while (ll.size()>i){\n System.out.println(ll.get(i));\n i++; //if not increased it will give infinite values\n }\n\n }",
"static void synced () {\n\t\tList<Integer> linkedList = \n\t\t\t\tCollections.synchronizedList(new LinkedList<Integer>());\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\t\t// launch a thread to add numbers 100 to 200 to the list\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry { Thread.sleep(1);} \n\t\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"end\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// now run an iterator to go through the linked list that is \n\t\t// synchronized with the linked list object. \n\t\tsynchronized(linkedList) {\n\t\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\t\tSystem.out.println(\"starting iteration\");\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\ttry {Thread.sleep(4);} \n\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t\t\tSystem.out.println(iterator.next());\n\t\t\t}\t\n\t\t\tSystem.out.println(\"finished iteration\");\n\t\t}\n\t}",
"public void pollCopy() {\n\t\tSystem.out.println(listStr.get(0));\n\t\t//print out a new blank line for better readability\n\t\tSystem.out.println(\"\\n\");\n\t\t//remove first in ArrayList\n\t\tlistStr.remove(0);\n\t}",
"public void add(String str) {\n\t\tlistStr.add(str);\n\t\t//cast the array list to a linked list\n\t\tLinkedList<Object> linkedString = new LinkedList<Object>(listStr);\n\t\t//while there is something in the LinkedList, run following code\n \twhile (linkedString.size() > 0) {\n \t//print out the current first in \"queue\" word\n \tSystem.out.print(linkedString.get(0) + \" \");\n //remove the first item in the linked list\n \t \tlinkedString.removeFirst();\n \t}\n \t//print out a new blank line for better readability\n \tSystem.out.println(\"\\n\");\n\t}",
"public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}",
"public static void main(String [] args) {\n DoublyLinkedList<String> ll = new DoublyLinkedList<String>();\n\n String[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n\n for (String s : alphabet) {\n ll.addFirst(s);\n ll.addLast(s);\n }\n System.out.println(ll.toString());\n\n for (String s : ll) {\n System.out.print(s + \", \");\n }\n }",
"private void setJList(LinkedTaskList myList) {\n masTasks = new String[myList.size()+5];\n for (int i = 0; i < myList.size(); i++) {\n masTasks[i] = myList.getTask(i).toString2();\n }\n taskList = new JList(masTasks);\n }",
"private void modify(List listString){\n\t}",
"public LinkedList<Cycle> getList(LinkedList<Cycle> list){\n\t\txml=new ProcessXML();\n\t\tlist=(LinkedList<Cycle>) xml.ReadXML().clone();\n\t\tgetName(list);\n\t\treturn list;\n\t}",
"private List<String> putKeysInList() {\n List<String> stringList = new LinkedList<>();\n for (String node : registeredNodes.keySet()) {\n stringList.add(node);\n }\n return stringList;\n }",
"private void rehash(LinkedListString[] newLinked, int oldCapacity) {\n for (int i=0; i < oldCapacity; i++) {\n LinkedListString myList = linkedListStrings[i];\n if (myList == null)\n continue;\n\n ListIterator<String> myIterator = myList.listIterator();\n\n while (myIterator.hasNext()){\n String value = myIterator.next();\n int index = clamp(value);\n if (newLinked[index] == null)\n newLinked[index] = new LinkedListString();\n newLinked[index].add(value);\n }\n }\n }",
"public StringLinkedList() {\n super();\n }",
"public static void main(String[] args) {\n\t LinkedList<String> linkedList=new LinkedList<>();\n\t \n\t //add an element to the linkedlist\n\t linkedList.add(\"b\");\n\t \n\t //add an element to the first location of the linkedlist\n\t linkedList.addFirst(\"a\");\n\t \n\t //add an element to the end of the linkedlist\n\t linkedList.addLast(\"d\");\n\t \n\t //add an element to any location of the linkedlist\n\t linkedList.add(2, \"c\");\n\t \n\t System.out.println(linkedList);\n\t \n\t //check if the element is present in the linkedlist or not\n\t boolean isPresent=linkedList.contains(\"a\");\n\t System.out.println(\"Is 'a' present in the linkedList: \" +isPresent);\n\t isPresent=linkedList.contains(\"f\");\n\t System.out.println(\"Is 'f' present in the linkedList\" +isPresent);\n\t \n\t //get the index of a element in the list\n\t int index=linkedList.indexOf(\"c\");\n\t System.out.println(\"Index of 'f' in the list is\" +index);\n\t \n\t //get an elemnt of a particular index\n\t String element=linkedList.get(3);\n\t System.out.println(\"Element present in the index 3 is: \" +element);\n\t \n\t //get the size of the list\n\t int size=linkedList.size();\n\t System.out.println(\"size of the linked list is: \"+size);\n\t \n\t //remove one element from the list\n\t linkedList.remove(\"d\");\n\t \n\t System.out.println(linkedList);\n\t \n }",
"public static void main(String [] args)\n {\n\tStringList sl = new StringList();\n\t\n\tsl.pushFront(\"hello\");\n\tfor (int ii = 0; ii < 3; ++ii) {\n\t sl.pushFront(\" \" + ii);\n\t}\n\tsl.pushFront(\"byebye!\");\n\tsl.print(\"after 5 pushFront\", \" * \", 10);\n\t\n\tsl.clear();\n\tsl.print(\"after clear\", \" * \", 10);\n\t\n\tsl.pushBack(\"one\");\n\tsl.pushBack(\"two\");\n\tsl.pushBack(\"three\");\n\tsl.print(\"after 3 pushBack\", \" * \", 10);\n\n\tSystem.out.print(\"using the iterator:\");\n\tfor (StringListIterator ii = sl.first(); ii.valid(); ii.next()) {\n\t System.out.print(\" \" + ii.get());\n\t}\n\tSystem.out.println();\n\t\n\twhile ( ! sl.empty()) {\n\t System.out.println(\"pop front (\" + sl.front() + \")\");\n\t sl.popFront();\n\t sl.print(\" result\", \" - \", 10);\n\t}\n\t\n\tsl.pushBack(\"a1\");\n\tsl.pushBack(\"a2\");\n\tsl.print(\"after 2 pushBack\", \" * \", 10);\n\n\tsl.insertAfter(\"B1\", sl.first());\n\tsl.print(\"inserted B1 after the head\", \" * \", 10);\n\t\n\tsl.insertAfter(\"B2\", sl.last());\n\tsl.print(\"inserted B2 after the tail\", \" * \", 10);\n\n\tsl.insertBefore(\"C1\", sl.first());\n\tsl.print(\"inserted C1 before the head\", \" * \", 10);\n\t\n\tsl.insertBefore(\"C2\", sl.last());\n\tsl.print(\"inserted C2 before the tail\", \" * \", 10);\n\t\n\tfor (StringListIterator ii = sl.first(); ii.valid(); ii.next()) {\n\t ii.next();\n\t if (ii.valid()) {\n\t\tsl.remove(ii);\n\t }\n\t}\n\tsl.print(\"after removing nodes number 2, 4, ...\", \" * \", 10);\n\t\n\tsl.remove(sl.first());\n\tsl.print(\"after removing first node\", \" * \", 10);\n\t\n\tsl.remove(sl.last());\n\tsl.print(\"after last node\", \" * \", 10);\n }",
"private static void insertUpdateRemoveelementInLinkedList() {\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\n\t\t// insert/Update element in LinkedList\n\t\tlist.set(3, 60);\n\t\tSystem.out.println(\"Updating the LinkedList \" + list);\n\n\t\t// join Two LinkedList\n\t\tLinkedList<Integer> list1 = new LinkedList<Integer>();\n\t\tlist.add(60);\n\t\tlist.add(70);\n\t\tlist.add(80);\n\t\tlist.add(90);\n\t\tlist.add(100);\n\t\tSystem.out.println(\"LinkedList is : \" + list1);\n\n\t\tLinkedList<Integer> list2 = new LinkedList<Integer>();\n\t\tlist2.addAll(list);\n\t\tlist2.addAll(list1);\n\t\tSystem.out.println(\"join to LinkedList\" + list2);\n\n\t}",
"@Test\n\tpublic void test3(){\n\t\tDoubleLinkedList dll = new DoubleLinkedList(getList(5));\n\t\t\n\t\tassertEquals(1, dll.get(1));\n\t\t\n\t\tdll.add(dll.size(), 99);\n\t\tassertEquals(dll.get(dll.size() - 1), 99);\n\t\tdll.add(1, 100);\n\t\tassertEquals(dll.get(1), 100);\n\t\t\n\t\tdll.remove(6);\n\t\tassertEquals(dll.indexOf(99), -1);\n\t\t\n\t\tdll.clear();\n\t\tassertEquals(dll.size(), 0);\n\t\t\n\t\tdll.addAll(getList(0));\n\t\tassertEquals(dll.size(), 0);\n\t\tdll.addAll(getList(5));\n\t\tassertEquals(dll.size(), 5);\n\t\t\n\t\tdll.addAll(dll.size() - 1, getList(6));\n\t\tassertEquals(dll.size(), 11);\n\t}",
"public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }",
"@Test\n public void test1(){\n\n// List<String> list= new ArrayList<String>();\n// list.add(\"张三\");\n// list.add(\"李四\");\n// list.add(\"王五\");\n// list.add(\"马六\");\n// System.out.println(list.get(0));\n//\n// list.forEach(li-> System.out.println(li+\"干什么\"));\n//// Runnable no=() -> System.out.println(\"hello\");\n//\n// Complex complex=new Complex(2,3);\n//\n// Complex c=new Complex(5,3);\n// Complex cc=c.plus(complex);\n// System.out.println(cc.toString()+\"11111111111111111111\");\n List<String> data = new ArrayList<>();\n data.add(\"张三\");\n data.add(\"李四\");\n data.add(\"王三\");\n data.add(\"马六\");\n data.parallelStream().forEach(x-> System.out.println(x));\n System.out.println(\"--------------------\");\n data.stream().forEach(System.out::println);\n System.out.println(\"+++++++++++++++++\");\n List<String> kk=data.stream().sorted().limit(2).collect(Collectors.toList());\n kk.forEach(System.out::println);\n List<String> ll=data.stream()\n .filter(x -> x.length() == 2)\n .map(x -> x.replace(\"三\",\"五\"))\n .sorted()\n .filter(x -> x.contains(\"五\")).collect(Collectors.toList());\n ll.forEach(string-> System.out.println(string));\n for (String string:ll) {\n System.out.println(string);\n }\n ll.stream().sorted().forEach(s -> System.out.println(s));\n// .forEach(System.out::println);\n Thread thread=new Thread(()->{ System.out.println(1); });\n thread.start();\n\n LocalDateTime currentTime=LocalDateTime.now();\n\n System.out.println(\"当前时间\"+currentTime);\n LocalDate localDate=currentTime.toLocalDate();\n System.out.println(\"当前日期\"+localDate);\n\n Thread tt=new Thread(()-> System.out.println(\"111\"));\n }",
"static void insAuxR(){\r\n\t\tObj aux2=aux;\r\n\t\twhile(aux2.next!=null){\r\n\t\t\taux2=aux2.next;\r\n\t\t}\r\n\t\taux2.next=lt.link;\r\n\t\tlt.link=aux;\r\n\t\t//aux=null; //Reseteamos la lista de variables!!\r\n\t}",
"public static void main(String[] args) {\n CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();\n CopyOnWriteArraySet<String> set = new CopyOnWriteArraySet<>();\n\n for (int i = 0; i < 30; i++) {\n new Thread(()->{\n set.add(UUID.randomUUID().toString());\n System.out.println(set);\n },String.valueOf(i)).start();\n }\n\n /**\n * 1.故障现象\n * java.util.ConcurrentModificationException\n * 2.导致原因\n * 并发争抢修改导致\n * 3.解决方案\n * List<String> list = new Vector<>();\n * List<String> list = Collections.synchronizedList(new ArrayList<>());\n * CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();\n * 4.优化建议\n * CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();\n */\n }",
"public LinkedList(){\n count = 0;\n front = rear = null;\n }",
"@Test\n public void addToNonEmptyCircularList() {\n CircularDoubleLinkedListHW list= new CircularDoubleLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //add to second half\n list.add(7, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,B,F,G,]\", list.toString());\n assertEquals(10, list.size());\n //add to last index\n list.add(10, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,B,F,G,B,]\", list.toString());\n assertEquals(11, list.size());\n }",
"public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }",
"public static void main(String[] args) {\n\t\tConcurrentLinkedList<Integer> l = new ConcurrentLinkedList<Integer>();\n\t\tRunnable r = new AddToList(l);\n\t\tfor(int i=0;i<20;i++) {\n\t\t\tThread t = new Thread(r);\n\t\t\tt.start();\n\t\t\ttry {\n\t\t\t\tt.join(2000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(l.size());\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tLinkedList<String> ll1 = new LinkedList<>();\n\t\tll1.add(\"Ali\");\n\t\tll1.add(\"Can\");\n\t\tll1.add(\"Mark\");\n\t\tll1.add(\"Tom\");\n\t\t\n\t\tSystem.out.println(ll1);\n\t\t\n\t\tll1.add(\"Angie\");\n\t\tll1.add(2,\"XXXX\");\n\t\tll1.addFirst(\"AAAA\");\n\t\tll1.addLast(\"ZZZZ\");\n\t\tSystem.out.println(ll1.contains(\"Can\"));//true\n\t\tSystem.out.println(ll1.contains(\"Mm\"));//false\n\t\tSystem.out.println(ll1.element());//AAAA==>Returns the first element without removing (copy+paste)\n\t\t\t\t\t\t\t\t\t\t //@throws NoSUchElementException if this list is empty\n\t\t\n\t\tSystem.out.println(ll1);\n\t\tSystem.out.println(ll1.getLast());//ZZZZ\n\t\t\n\t\tSystem.out.println(ll1.poll());//AAAA ==>Returns first element and removes it (cut+paste)\n\t\t\t\t\t\t\t\t\t // Returns null is this list is empty\n\t\tSystem.out.println(ll1.peek());//Returns first element without removing (copy+paste)\n\t\n\t\t//ll1.removeFirstOccurrence(\"XXXX\");\n\t\t\n\t\tll1.set(2, \"!!!!\");\n\t\tSystem.out.println(ll1.subList(2, 5));//[!!!!, Tom, Angie] Note: First index is inclusive, second is exclusive\n\t\tSystem.out.println(ll1);\n\t Collections.sort(ll1);\n\t \n\t\n\t}",
"@Test\n public void addToNonEmptyList() {\n OurLinkedListHW list = new OurLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //remove if at first index\n list.remove(\"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //remove if at last index\n list.remove(\"G\");\n assertEquals(\"[A,B,C,D,E,B,F,]\", list.toString());\n assertEquals(7, list.size());\n //remove if elsewhere\n list.remove(\"C\");\n assertEquals(\"[A,B,D,E,B,F,]\", list.toString());\n assertEquals(6, list.size());\n }",
"private LinkedList_base getLinkedList() {\n\t\treturn new LinkedList_DLLERR4();\n\t}",
"public void buildAList(String s)\n {\n if(head == null)\n {\n Node tempFirst = new Node(s);\n \n head = tempFirst;\n tempFirst.next = head;\n }\n else\n {\n Node current = head;\n \n while(current.next != head)\n {\n current = current.next;\n }\n \n Node temp = new Node(s);\n \n current.next = temp;\n current = temp;\n temp.next = head;\n }\n }",
"protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }",
"public static void compressList (List<String> ls){\n\t\tListIterator<String> itr = ls.listIterator();\n\t\twhile (itr.hasNext()){\n\t\t\tString currentStr = itr.next();\n\t\t\t\n\t\t\tString modCurrent=currentStr.replaceAll(\"\\\\s\", \"\");\n\t\t\titr.set(modCurrent);\n\t\t\tif ((modCurrent.length() == 0)||(modCurrent.startsWith(\"//\"))) {\n\t\t\t\titr.remove();\n\t\t\t} \n\t\t\t\n\t\t\telse if (modCurrent.contains(\"//\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint ind = modCurrent.indexOf(\"//\");\n\n\t\t\t String s2=modCurrent.substring(0, ind);\n\t\t\t\titr.set(s2);\n\t\t\t}\n\t\t}\n\t}",
"PublicLinkedList() {\n\t\tfront = back = null;\n\t}",
"public DLList() {\n head = null;\n tail = null;\n }",
"public synchronized void modify(String s) {\n\t\tsynchronized (list) {\n\t\t\tif (list.size() > 25) {\n\t\t\t\tlist.clear();\n\t\t\t\tmap.clear();\n\t\t\t}\n\t\t\tlist.add(s);\n\t\t\ttry {\n\t\t\t\tThread.sleep(300);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\tmap.put(s, s);\n\t\t//\t\tSystem.out.println(\"modify end: \" + s);\n\t}",
"public void cbListAddElement() {\n cbWorker.clear();\n cbWorker.add(cbJ);\n cbWorker.add(cbK);\n cbWorker.add(cbM);\n cbWorker.add(cbP);\n cbWorker.add(cbA);\n cbWorker.add(cbS);\n }",
"public static void main(String[] args) {\n LinkedList<String> daftar= new LinkedList<String>();\r\n //menambahkan elemen pada linked list\r\n daftar.add(\"A\");\r\n daftar.add(\"B\");\r\n daftar.addLast(\"C\");\r\n daftar.addFirst(\"D\");\r\n daftar.add(3, \"B\");\r\n daftar.add(\"F\");\r\n daftar.add(\"G\");\r\n System.out.println(\"Linked List: \"+daftar);\r\n //menghapus elemen dari linked list\r\n daftar.remove(\"B\");\r\n daftar.remove(3);\r\n daftar.removeFirst();\r\n daftar.removeLast();\r\n System.out.println(\"Linked list setelah dihapus: \"+daftar);\r\n //menemukan elemen pada linked list\r\n boolean status=daftar.contains(\"E\");\r\n if(status)\r\n System.out.println(\"Di list terdapat elemen 'E'\");\r\n else\r\n System.out.println(\"Di list tidak terdapat elemen 'E'\");\r\n \r\n //ukuran dari elemen pada linked list\r\n int size=daftar.size();\r\n System.out.println(\"Ukuran dari linked list: \"+size);\r\n \r\n //menunjukkan dam memberi nilai elemen dari linked list\r\n Object elemen=daftar.get(2);\r\n System.out.println(\"elemen ditunjui oleh get(): \"+elemen);\r\n daftar.set(2, \"Y\");\r\n System.out.println(\"Linked list pasca perubahan: \"+daftar);\r\n }",
"public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }",
"@Test\r\n public void testBasic() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException\r\n {\r\n DoublyLinkedList<Integer> list = new DoublyLinkedList<Integer>();\r\n assertEquals(\"[]\", list.toString());\r\n assertEquals(0, list.size());\r\n testLinks(list);\r\n list.insertTail(5);\r\n assertEquals(\"[5]\", list.toString());\r\n assertEquals(1, list.size());\r\n testLinks(list);\r\n list.insertTail(6);\r\n assertEquals(\"[5, 6]\", list.toString());\r\n assertEquals(2, list.size());\r\n testLinks(list);\r\n list.popLast();\r\n assertEquals(\"[5]\", list.toString());\r\n assertEquals(1, list.size());\r\n testLinks(list);\r\n list.popLast();\r\n assertEquals(\"[]\", list.toString());\r\n assertEquals(0, list.size());\r\n testLinks(list);\r\n }",
"private void process(String file, LinkedList<String> ll) {\r\n \ttry {\r\n \t\tFile currFile = openFile(file);\r\n \t\tStringBuilder sb;\r\n\r\n \t\tif (currFile == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n\r\n \t\tBufferedReader br = new BufferedReader(new FileReader(currFile));\r\n \t\tString line = null;\r\n \t\twhile ((line = br.readLine()) != null) {\r\n \t\t\tint length = line.length();\r\n \t\t\tif (length == 0) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tint index = 0;\r\n \t\t\tLinkedList<String> newLL;\r\n \t\t\twhile (index < length && line.charAt(index) == ' ') {\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tif (index > length-8 || line.substring(index, index+8).compareTo(\"#include\") != 0) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tindex += 8;\r\n \t\t\twhile (line.charAt(index) == ' ') {\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tif (line.charAt(index) != '\"') {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tindex++;\r\n \t\t\tint len = line.length();\r\n \t\t\tsb = new StringBuilder();\r\n \t\t\twhile (index < len) {\r\n \t\t\t\tif (line.charAt(index) == '\"') {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\tsb.append(line.charAt(index));\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tString currName = sb.toString();\r\n \t\t\tll.add(currName);\r\n \t\t\tif (hashM.containsKey(currName)) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tnewLL = new LinkedList<String>();\r\n \t\t\thashM.put(currName, newLL);\r\n \t\t\tworkQueue.add(currName);\r\n \t\t}\r\n \t}\r\n \tcatch (Exception x) {\r\n \t\tx.printStackTrace();\r\n \t}\r\n }",
"public listNode(String val) {\n\t\t\tdata= val;\n\t\t\tnext= null;\n\t\t\tprevious= null;\n\t\t}",
"synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }",
"public static void main(String[] args) {\n list = new LinkedList(0);\n\n // add more elements to LinkedList\n list.push(1);\n list.push(2);\n list.push(3);\n list.push(4);\n list.pop();\n list.pop();\n list.push(42);\n list.push(42);\n list.push(42);\n list.push(42);\n list.pop();\n list.pop();\n list.push(3);\n list.push(4);\n list.pop();\n list.remove(4);\n list.remove(3);\n list.remove(42);\n list.remove(0);\n list.remove(-42);\n list.remove(2);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(0);\n list.remove(-1);\n\n\n\n for(int i = 0; i < list.getLength(); i++) {\n System.out.println(\"Print: list: \\t\\t\" + list.get(i));\n }\n }",
"public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}",
"public LinkList(String data){\n this.head = new Node(data, null);\n this.tail = this.head;\n }",
"public Lista()\n {\n empty=true;\n next = null;\n }",
"public static void main(String[] args) {\n CustomHashCode customHashCode=new CustomHashCode();\r\n Byte byte1=new Byte((byte) 12);\r\n String str=customHashCode.getHashCode(\"adfasdk\");\r\n System.out.println(str);\r\n List<Integer> list=new LinkedList<>();\r\n java.util.Collections.synchronizedList(list);\r\n \r\n \r\n\t}",
"ListString createListString();",
"private List<View> m9533a(List<View> list, List<View> list2) {\n LinkedList linkedList = new LinkedList();\n if (list != null && !list.isEmpty()) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n linkedList.add(list.get(i));\n }\n }\n if (list2 != null && !list2.isEmpty()) {\n int size2 = list2.size();\n for (int i2 = 0; i2 < size2; i2++) {\n linkedList.add(list2.get(i2));\n }\n }\n return linkedList;\n }",
"public static void main(String[] args) {\n\t\tList<Integer> list=Collections.synchronizedList(new ArrayList<>());\n\t\t\n\t\t\n\t}",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"@Test(timeout = 4000)\n public void test07() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n byte[][] byteArray0 = new byte[7][8];\n byte[] byteArray1 = new byte[8];\n byteArray1[0] = (byte) (-13);\n byteArray1[1] = (byte)77;\n byteArray1[2] = (byte) (-2);\n byteArray1[3] = (byte) (-103);\n byteArray1[4] = (byte) (-91);\n byteArray1[5] = (byte) (-44);\n byteArray1[6] = (byte) (-31);\n byteArray1[7] = (byte)33;\n byteArray0[0] = byteArray1;\n byte[] byteArray2 = new byte[4];\n byteArray2[0] = (byte)77;\n byteArray2[1] = (byte) (-44);\n byteArray2[2] = (byte) (-13);\n byteArray2[3] = (byte)77;\n byteArray0[1] = byteArray2;\n byte[] byteArray3 = new byte[1];\n byteArray3[0] = (byte) (-44);\n byteArray0[2] = byteArray3;\n byte[] byteArray4 = new byte[6];\n byteArray4[0] = (byte) (-94);\n byteArray4[1] = (byte) (-31);\n byteArray4[2] = (byte) (-13);\n byteArray4[3] = (byte) (-31);\n byteArray4[4] = (byte) (-91);\n byteArray4[5] = (byte)58;\n byteArray0[3] = byteArray4;\n byte[] byteArray5 = new byte[3];\n byteArray5[0] = (byte)58;\n byteArray5[1] = (byte) (-44);\n byteArray5[2] = (byte) (-103);\n byteArray0[4] = byteArray5;\n byte[] byteArray6 = new byte[3];\n byteArray6[0] = (byte) (-91);\n byteArray6[1] = (byte) (-2);\n byteArray6[2] = (byte) (-94);\n byteArray0[5] = byteArray6;\n byte[] byteArray7 = new byte[3];\n byteArray7[0] = (byte) (-13);\n byteArray7[1] = (byte)33;\n byteArray7[2] = (byte)58;\n byteArray0[6] = byteArray7;\n linkedList0.add(byteArray0);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n boolean boolean0 = fBCachedFetcher0.isLast();\n assertFalse(boolean0);\n }",
"@Test\r\n public void testRemove() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException\r\n {\r\n DoublyLinkedList<Integer> list = new DoublyLinkedList<Integer>();\r\n testLinks(list);\r\n list.insertTail(2);\r\n testLinks(list);\r\n list.insertHead(1);\r\n testLinks(list);\r\n list.insertTail(3);\r\n testLinks(list);\r\n list.insertTail(4);\r\n testLinks(list);\r\n\r\n Iterator<Integer> itr = list.iterator();\r\n assertEquals(4, list.size());\r\n assertEquals(\"[1, 2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n itr.remove();\r\n assertEquals(4, list.size());\r\n assertEquals(\"[1, 2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(1, (int)itr.next());\r\n itr.remove();\r\n assertEquals(3, list.size());\r\n assertEquals(\"[2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n itr.remove();\r\n assertEquals(3, list.size());\r\n assertEquals(\"[2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(2, (int)itr.next());\r\n itr.remove();\r\n assertEquals(2, list.size());\r\n assertEquals(\"[3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(3, (int)itr.next());\r\n itr.remove();\r\n assertEquals(1, list.size());\r\n assertEquals(\"[4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(4, (int)itr.next());\r\n itr.remove();\r\n assertEquals(0, list.size());\r\n assertEquals(\"[]\", list.toString());\r\n testLinks(list);\r\n itr.remove();\r\n assertEquals(0, list.size());\r\n assertEquals(\"[]\", list.toString());\r\n assertEquals(false, itr.hasNext());\r\n testLinks(list);\r\n }",
"public SinglyLinkedList() {\n this.len = 0;\n }",
"public void m17237a(java.util.List<java.lang.Integer> r6) {\n /*\n r5 = this;\n r0 = 0;\n if (r6 == 0) goto L_0x0009;\n L_0x0003:\n r1 = r6.size();\n if (r1 != 0) goto L_0x000a;\n L_0x0009:\n return;\n L_0x000a:\n r1 = r5.f20994d;\n r1.lock();\n r2 = r5.m17234d();\n r1 = \"\";\n L_0x0016:\n r3 = r6.size();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 >= r3) goto L_0x003b;\n L_0x001c:\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r3.append(r1);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r6.get(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \",\";\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0 + 1;\n goto L_0x0016;\n L_0x003b:\n r0 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 <= 0) goto L_0x006e;\n L_0x0041:\n r0 = 0;\n r3 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r3 + -1;\n r0 = r1.substring(r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = \"result\";\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r4 = \"_id in (\";\n r3 = r3.append(r4);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r3.append(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \")\";\n r0 = r0.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = 0;\n r2.delete(r1, r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n L_0x006e:\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x0077:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00a0:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00c9:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00f2:\n r0 = move-exception;\n r2.close();\n r1 = r5.f20994d;\n r1.unlock();\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.tts.e.c.a(java.util.List):void\");\n }",
"public OpenHashSet() {\n super();\n linkedListStrings = new LinkedListString[INITIAL_CAPACITY];\n\n\n }",
"public void updateList() {\n\t\tthis.myList.clear();\n\t\tIterator<String> item = this.myHashMap.keySet().iterator();\n\n\t\twhile (item.hasNext())\n\t\t{\n\t\t\tString name = (String)item.next();\n\t\t\tthis.myList.add(name);\n\t\t}\n\t\tthis.nameId = -1;\n\t\t\n\t}",
"private static DoublyLinkedListNode copyList(DoublyLinkedListNode head)\n {\n Map<Integer, DoublyLinkedListNode> prev = new HashMap<>();\n //Save given list head\n DoublyLinkedListNode origHead = head;\n //start building the new list with next pointers, at each step save the newly created node\n DoublyLinkedListNode newHead = null;\n if (head != null) {\n newHead = new DoublyLinkedListNode(head.getValue(), null, null);\n prev.put(newHead.getValue(), newHead);\n head = head.getNext();\n }\n\n DoublyLinkedListNode temp = newHead;\n while (head != null) {\n DoublyLinkedListNode node = new DoublyLinkedListNode(head.getValue(), null, null);\n prev.put(node.getValue(), node);\n temp.setNext(node);\n temp = node;\n head = head.getNext();\n }\n\n //Now traverse the original list, get the key of prev node and look in the map for corresponding new Node\n //update previous\n temp = newHead;\n while (origHead != null) {\n DoublyLinkedListNode prevNode = prev.get(origHead.getPrev().getValue());\n temp.setPrev(prevNode);\n origHead = origHead.getNext();\n temp = temp.getNext();\n }\n return newHead;\n }",
"public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }",
"private void linkedListDemo() {\n LinkedList list = new LinkedList();\n \n // Add elements to the LinkedList\n list.add(\"Two\");\n list.add(\"Three\");\n list.add(\"Four\");\n list.add(\"Five\");\n list.add(\"Six\");\n \n // Iterate through the list\n ListIterator iterator = list.listIterator();\n \n System.out.println(\"Before adding new elements:\");\n \n while (iterator.hasNext()) {\n \n System.out.println(iterator.next());\n \n }\n \n // Add to beginning and end of existing list\n System.out.println(\"Add 'One' to the beginning and 'Seven' to the end of the list\");\n list.addFirst(\"One\");\n list.addLast(\"Seven\");\n \n // Iterate through new list\n System.out.println(\"After adding new elements:\");\n \n iterator = list.listIterator();\n \n while (iterator.hasNext()) {\n \n System.out.println(iterator.next());\n \n }\n \n // Attempt to add a new value\n System.out.println(\"Add a new value...where will it go?\");\n list.add(\"Zero\");\n \n System.out.println(list); // \"Zero\" gets added to the end of the list, unless you specify that it be inserted first\n \n // Add \"Zero,\" but to the beginning\n System.out.println(\"Add 'Zero' to the beginning of the list\");\n list.addFirst(\"Zero\");\n \n System.out.println(list);\n \n // What happens when you remove \"Zero\" if the value occurs multiple times?\n System.out.println(\"Remove 'Zero'...but which one will be removed?\");\n list.remove(\"Zero\");\n \n // It automatically removes the first occurence of the word \"Zero.\" Let's add it back to the beginning and try to get rid of the last occurence\n list.addFirst(\"Zero\");\n \n System.out.println(list);\n \n System.out.println(\"It removed the first occurrence of 'zero,' so let's add it back in and then remove the last iteration of 'Zero'\");\n list.removeLastOccurrence(\"Zero\");\n \n System.out.println(list);\n \n // Attempt to add an Integer\n System.out.println(\"Does an exception get thrown when we try to add an integer to a list of strings?\");\n list.add(1);\n \n System.out.println(list);\n \n }",
"public void run(){\n isidle=false;\n Vector seqnamesvec=new Vector();\n try{\n BufferedReader inread=new BufferedReader(new FileReader(readfile));\n String inline=\"\";\n boolean doname=false;\n boolean readquery=false;\n String namestr=\"\";\n //String queryname=\"\";\n //boolean donereadquery=false;\n while((inline=inread.readLine())!=null){\n if(inline.indexOf(\"Query=\")>-1){\n readquery=true;\n }\n if(inline.indexOf(\"letters)\")>-1){\n //if(readquery){\n // donereadquery=true;\n //}\n readquery=false;\n //queryname=extractqueryname(queryname);\n continue;\n }\n if(readquery){\n //queryname+=\" \"+inline.trim();\n continue;\n }\n //if(inline.indexOf(\"><a name =\")>-1){\n if((inline.indexOf(\">gi|\")>-1)||(inline.indexOf(\">gt|\")>-1)){\n doname=true;\n namestr=\"\";\n }\n if(inline.indexOf(\"Length =\")>-1){\n doname=false;\n int begin;\n String currname=\"\";\n if((begin=namestr.indexOf(\"gi|\"))>-1){\n currname=namestr.substring(begin+3,namestr.indexOf(\"|\",begin+3));\n }// end if gi\n if((begin=namestr.indexOf(\"gt|\"))>-1){\n currname=\"t\"+namestr.substring(begin+3,namestr.indexOf(\"|\",begin+3));\n }// end if gi\n //String currname=extractname(queryname,namestr);\n if(currname.equals(\"\")==false){\n seqnamesvec.addElement(currname);\n synchronized (seqnames){\n if(seqnames.containsKey(currname)==false){\n seqnames.put(currname,new seqobj());\n }\n }//end synchronized seqnames\n }// end if name = \"\"\n }// end if length\n if(doname){\n namestr+=\" \"+inline.trim();\n }\n }// end while readline\n //remove identical elements from seqnamesvec\n seqsholder.seqnames=new String[seqnamesvec.size()];\n seqnamesvec.copyInto(seqsholder.seqnames);\n seqnamesvec.clear();\n for(int i=0;i<java.lang.reflect.Array.getLength(seqsholder.seqnames);i++){\n boolean hassame=false;\n for(int j=0;j<seqnamesvec.size();j++){\n if(seqsholder.seqnames[i].equals((String)seqnamesvec.elementAt(j))){\n hassame=true;\n break;\n }\n }// end for j\n if(hassame==false){\n seqnamesvec.addElement(seqsholder.seqnames[i]);\n }// end if hassame\n }// end for i\n seqsholder.seqnames=new String[seqnamesvec.size()];\n seqnamesvec.copyInto(seqsholder.seqnames);\n inread.close();\n }catch(IOException e){\n System.err.println(\"cannot read from \"+readfile.getName());\n e.printStackTrace();\n isidle=true;\n synchronized (parent){\n parent.notify();\n }\n return;\n }\n //System.out.println(\"done readthread\"+readfile.getName());\n //System.out.println(\"extracting \"+seqnamesvec.size()+\" sequences\");\n isidle=true;\n synchronized (parent){\n parent.notify();\n }\n }",
"public abstract void mo9247b(String str, long j, List<String> list);",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n byte[][] byteArray0 = new byte[9][4];\n byte[] byteArray1 = new byte[4];\n byteArray1[0] = (byte)1;\n byteArray1[1] = (byte)87;\n byteArray1[2] = (byte) (-12);\n byteArray1[3] = (byte) (-106);\n byteArray0[0] = byteArray1;\n byte[] byteArray2 = new byte[2];\n byteArray2[0] = (byte)1;\n byteArray2[1] = (byte)1;\n byteArray0[1] = byteArray2;\n byte[] byteArray3 = new byte[3];\n byteArray3[0] = (byte) (-106);\n byteArray3[1] = (byte) (-106);\n byteArray3[2] = (byte)87;\n byteArray0[2] = byteArray3;\n byte[] byteArray4 = new byte[3];\n byteArray4[0] = (byte)87;\n byteArray4[1] = (byte)71;\n byteArray4[2] = (byte)1;\n byteArray0[3] = byteArray4;\n byte[] byteArray5 = new byte[8];\n byteArray5[0] = (byte) (-12);\n byteArray5[1] = (byte)71;\n byteArray5[2] = (byte)87;\n byteArray5[3] = (byte) (-106);\n byteArray5[4] = (byte) (-106);\n byteArray5[5] = (byte)87;\n byteArray5[6] = (byte) (-106);\n byteArray5[7] = (byte) (-106);\n byteArray0[4] = byteArray5;\n byte[] byteArray6 = new byte[6];\n byteArray6[0] = (byte)87;\n byteArray6[1] = (byte)87;\n byteArray6[2] = (byte) (-106);\n byteArray6[3] = (byte)71;\n byteArray6[4] = (byte)71;\n byteArray6[5] = (byte)1;\n byteArray0[5] = byteArray6;\n byte[] byteArray7 = new byte[7];\n byteArray7[0] = (byte) (-12);\n byteArray7[1] = (byte)71;\n byteArray7[2] = (byte)1;\n byteArray7[3] = (byte) (-12);\n byteArray7[4] = (byte)1;\n byteArray7[5] = (byte)87;\n byteArray7[6] = (byte) (-106);\n byteArray0[6] = byteArray7;\n byte[] byteArray8 = new byte[9];\n byteArray8[0] = (byte)29;\n byteArray8[1] = (byte)59;\n byteArray8[2] = (byte)1;\n byteArray8[3] = (byte) (-12);\n byteArray8[4] = (byte) (-106);\n byteArray8[5] = (byte) (-12);\n byteArray8[6] = (byte) (-106);\n byteArray8[7] = (byte) (-12);\n byteArray8[8] = (byte) (-12);\n byteArray0[7] = byteArray8;\n byte[] byteArray9 = new byte[8];\n byteArray9[0] = (byte)59;\n byteArray9[1] = (byte) (-44);\n byteArray9[2] = (byte)59;\n byteArray9[3] = (byte)1;\n byteArray9[4] = (byte)29;\n byteArray9[5] = (byte)29;\n byteArray9[6] = (byte)87;\n byteArray9[7] = (byte)29;\n byteArray0[8] = byteArray9;\n linkedList0.add(byteArray0);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.last();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) {\n\r\n\t\tLinkedList<String> ll = new LinkedList<String>();\r\n\t\tll.add(\"My\");\r\n\t\tll.add(\"name\");\r\n\t\tll.add(\"is\");\r\n\t\tll.add(\"Sumit\");\r\n\t\r\n\t\tSystem.out.println(\"fisrt List:\"+ll);\r\n\t\t\r\n\t\tLinkedList<String> ll_sec = new LinkedList<String>();\r\n\t\tll_sec = (LinkedList<String>) ll.clone();\r\n\t\tSystem.out.println(\"Second List After cloning:\"+ll_sec);\r\n\t}",
"public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }",
"public LinkedList concatenate(LinkedList anotherList) {\n\t\tLinkedList newString = stringList;\n\t\t\n\t\treturn newString;\n\t}",
"private void re_queue() {\n\n Queue<String> queue = new LinkedList<>();\n queue.offer(\"我\");\n queue.offer(\"爱\");\n queue.offer(\"刷\");\n queue.offer(\"题\");\n queue.offer(\"呵呵\");\n\n System.out.println(\"*********queue*********\");\n System.out.println(queue);\n System.out.println(\"*********queue*********\");\n System.out.println(\"查看队首元素,不改变队列结构:\" + queue.peek());\n System.out.println(queue.size());\n System.out.println(\"*********queue*********\");\n System.out.println(\"取出队首元素,改变队列结构:\" + queue.poll());\n System.out.println(queue.size());\n System.out.println(\"*********queue*********\");\n while (queue.size() > 0) {\n System.out.println(queue.poll());\n System.out.println(queue);\n }\n }",
"private List<Integer> dfsRecursive(LinkedList<Integer> list, \r\n String seq, int length, int point, int requiredSize) {\r\n \r\n List<Integer> neighbors = generateAdjacentCells(point, seq);\r\n if (length == requiredSize) {\r\n return list;\r\n }\r\n if (neighbors.size() == 0) {\r\n return new LinkedList<Integer>();\r\n }\r\n for (int n: neighbors) {\r\n this.togglePosMark(n);\r\n length += elementAtPos(n).length();\r\n list.addLast(n);\r\n \r\n List<Integer> result = dfsRecursive(list, seq.substring(\r\n elementAtPos(n).length(), seq.length()), length, n, requiredSize);\r\n \r\n if (result.size() == 0) {\r\n length -= elementAtPos(n).length();\r\n this.togglePosMark(list.removeLast());\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n return new LinkedList<Integer>();\r\n }",
"private void dfs(int start, int end, String str, String s, List<Integer>[] cache, LinkedList<String> res) {\n\t\tif (start == -1) {\n\t\t\tres.add(str.substring(1));\n\t\t} else {\n\t\t\tfor (int n : cache[start]) {\n\t\t\t\tdfs(n, start, \" \" + s.substring(start, end) + str, s, cache, res);\n\t\t\t}\n\t\t}\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void updateList() {\n\t\t// list of names\n\t\tnameList = new LinkedList<String>();\n\t\t// get the leafs in the tree\n\t\tdecisionTree.leafTraversal(currentQuestion, nameList);\n\t\t// remove everything in the list panel\n\t\tlistPanel.removeAll();\n\t\t// initiate a JLabel that will be holding each name\n\t\tJLabel list;\n\t\twhile (!nameList.isEmpty()) {\n\t\t\t// create a new JLabel and put in a name each time\n\t\t\tlist = new JLabel(nameList.getFirst());\n\t\t\t// set alignment, font and color\n\t\t\tlist.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tlist.setFont(new Font(\"Serif\", Font.BOLD, 18));\n\t\t\tlist.setForeground(new Color(86, 10, 0));\n\t\t\t// add this JLabel to the list panel\n\t\t\tlistPanel.add(list);\n\t\t\tnameList.deleteFirst();\n\t\t}\n\t\trevalidate();\n\t\trepaint();\n\t}",
"public static void main(String[] args) {\n\t\t List <String>L = new <String>List();\r\n\t\t \r\n\t\t //TEST isEmpty(), size(), add()\r\n\t\t //System.out.println(L.isEmpty());\r\n\t\t //System.out.println(L.size());\r\n\t\t L.add(1, \"a\");\r\n\t\t L.add(2, \"b\");\r\n\t\t L.add(3, \"c\");\r\n\t\t //L.add(3, 1);\r\n\t\t //System.out.println(L.isEmpty());\r\n\t\t //System.out.println(L.size());\r\n\t\t //L.add(2, \"d\");\r\n\t\t //L.add(4, \"e\");\r\n\t\t \r\n\t\t //TEST get()\r\n\t\t //System.out.println(L.get(0));\r\n\t\t //System.out.println(L.get(6));\r\n\t\t //System.out.println(L.get(2));\r\n\t\t System.out.println(L.get(3));\r\n\t\t \r\n\t\t //TEST remove()\r\n\t\t //only one line is uncommented per trial run\r\n\t\t //L.remove(0);\r\n\t\t //L.remove(1);\r\n\t\t //L.remove(2);\r\n\t\t //L.remove(5);\r\n\t\t //L.remove(7);\r\n\t\t //System.out.println(L.get(4));\r\n\t\t \r\n\t\t //TEST removeAll()\r\n\t\t //L.removeAll();\r\n\t\t //System.out.println(L.isEmpty());\r\n\t\t //System.out.println(L.get(1));\r\n\t}",
"private void recycleList(@NonNull ListIterator<String> lIterator) {\n while(lIterator.hasPrevious()) {\n lIterator.previous();\n }\n }",
"public boolean add(String newValue) {\n if (newValue == null)\n return false;\n if (contains(newValue))\n return false;\n\n\n if ((float)(size() + MINIMAL_CHANGE) / (capacity()) > getUpperLoadFactor()) {\n\n int oldCapacity = capacity();\n capacity *= SIZE_CHANGE;\n LinkedListString[] newLinked = new LinkedListString[capacity()];\n rehash(newLinked, oldCapacity);\n\n linkedListStrings = newLinked;\n\n }\n\n int index = clamp(newValue);\n\n if (linkedListStrings[index] == null){\n linkedListStrings[index] = new LinkedListString();\n }\n\n linkedListStrings[index].add(newValue);\n\n sizeCounter++;\n return true;\n\n }",
"@Test (expected = NoSuchElementException.class)\n public void whenSaveStringInSimpleLinkedList() {\n SimpleLinkedList<String> list = new SimpleLinkedList<>();\n list.add(\"1\");\n list.add(\"3\");\n list.add(\"5\");\n assertThat(list.get(0), is(\"1\"));\n assertThat(list.get(1), is(\"3\"));\n assertThat(list.get(2), is(\"5\"));\n Iterator<String> iterator = list.iterator();\n assertTrue(iterator.hasNext());\n assertTrue(iterator.hasNext());\n assertThat(iterator.next(), is(\"1\"));\n assertThat(iterator.next(), is(\"3\"));\n assertThat(iterator.next(), is(\"5\"));\n assertFalse(iterator.hasNext());\n iterator.next();\n }",
"public abstract List<C41717j> mo70725h(String str);",
"public static void main(String[] args) {\n// LinkedList\n String leWord = \"meow\";\n char[] arrChar = leWord.toCharArray();\n LinkedList newLinkList = new LinkedList(arrChar);\n\n\n\n\n//\n\n\n }",
"public SLList()\n {\n head = tail = null;\n }",
"@Override\r\n // WEI XU METHOD 2\r\n \r\n public void train(String sourceText) {\r\n String[] words1 = sourceText.split(\"[\\\\s]+\");\r\n // add starter to be a next word for the last word in the source text.\r\n List<String> words = new ArrayList<String>(Arrays.asList(words1));\r\n words.add(words1[0]);\r\n starter = words1[0];\r\n String prevWord = starter;\r\n for (int i = 1; i < words.size(); i++) {\r\n ListNode node = findNode(prevWord);//todo:it's a reference? but not a new Listnode? so no need set back?\r\n if (node == null) {\r\n node = new ListNode(prevWord);\r\n wordList.add(node);\r\n }\r\n node.addNextWord(words.get(i));//todo: why hashmap need set back value, linkedlist don't need?\r\n prevWord = words.get(i);\r\n }\r\n }",
"public void getOnlineList(ObservableList<String> strings){\n addList.getItems().addAll(strings);\n }",
"public SLL() {\n\t\tsuper();\n\t\tthis.head = null;\n\t\tthis.size = 0;\n\t}",
"public static void removeDuplicatesWithBuffer(LinkedList list)\n\t{\n\t\tHashSet<Integer> unique = new HashSet<Integer>();\n\t\tNode current = list.getHead(), prev = null;\n\t\twhile(current != null)\n\t\t{\n\t\t\tif(!unique.add(current.getData()))\n\t\t\t{\n\t\t\t\t//**Do not move the previous node to current if there is a duplicate**//\n\t\t\t\tprev.setNext(current.getNext());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprev = current;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}",
"public LinkedList(){\n\t\thead = null;\n\t\ttail = null;\n\t}",
"private void m152570a(List<ByteBuffer> list) {\n synchronized (this.f113322u) {\n for (ByteBuffer byteBuffer : list) {\n m152578e(byteBuffer);\n }\n }\n }",
"public static void main(String[] args) {\n\t\tLinkedList<String> nuevaLista = new LinkedList<String>();\n\n\t\tnuevaLista.add(\"Uno\");\n\t\tnuevaLista.add(\"Dos\");\n\t\tnuevaLista.add(\"Tres\");\n\t\tnuevaLista.add(\"Cuatro\");\n\t\tnuevaLista.add(\"Cinco\");\n\t\tnuevaLista.add(\"Seis\");\n\t\tSystem.out.println(nuevaLista);\n\n\t\tnuevaLista.offerLast(\"Siete\");\n\n\t\tSystem.out.println(nuevaLista);\n\t}",
"public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRecursive(2);\n System.out.println(s0 + s1 + s2);\n System.out.println(lld.getRecursive(556));\n //lld.getRecursive(2);\n }",
"void addCorrect8(String key, String val) {\n List<String> list = map.computeIfAbsent(key,\n k -> Collections.synchronizedList(new ArrayList<>()));\n list.add(val);\n }"
] | [
"0.61253136",
"0.58859086",
"0.5847567",
"0.58150774",
"0.58017445",
"0.5766298",
"0.574427",
"0.5696329",
"0.5673194",
"0.564713",
"0.5620344",
"0.5597439",
"0.5569319",
"0.55570847",
"0.55487233",
"0.54792154",
"0.54611325",
"0.5413141",
"0.5411052",
"0.54088056",
"0.5398445",
"0.5396917",
"0.5360033",
"0.53415304",
"0.5340432",
"0.53367895",
"0.5325398",
"0.5319164",
"0.5312267",
"0.5297579",
"0.5296377",
"0.52908605",
"0.5288287",
"0.52882516",
"0.52574056",
"0.52471805",
"0.5241697",
"0.5234978",
"0.5205818",
"0.52043325",
"0.5187533",
"0.51824915",
"0.51753163",
"0.51697356",
"0.5152762",
"0.5149297",
"0.51351064",
"0.5131645",
"0.51275986",
"0.51190543",
"0.5109247",
"0.510452",
"0.51003736",
"0.51000744",
"0.5089653",
"0.5087045",
"0.50869614",
"0.5072442",
"0.5072437",
"0.5069365",
"0.50682664",
"0.5059341",
"0.50530434",
"0.5051631",
"0.50488305",
"0.50476885",
"0.5045483",
"0.5044948",
"0.50386554",
"0.5030001",
"0.5025608",
"0.5021562",
"0.502151",
"0.5018149",
"0.5015617",
"0.5014686",
"0.5007277",
"0.50048023",
"0.5003035",
"0.50018835",
"0.5001408",
"0.49919766",
"0.49912593",
"0.4984699",
"0.4984336",
"0.49802527",
"0.49784854",
"0.49715057",
"0.4966831",
"0.49662918",
"0.4964732",
"0.49595654",
"0.4956782",
"0.49509564",
"0.49495068",
"0.49442238",
"0.49419188",
"0.49337992",
"0.49323475",
"0.4926225",
"0.4922027"
] | 0.0 | -1 |
Functie care incearca obtinera unui task din workpool. Daca nu sunt taskuri disponibile, functia se blocheaza pana cand poate fi furnizat un task sau pana cand rezolvarea problemei este complet terminata | public synchronized PartialSolution getWork() {
if (tasks.size() == 0) { // workpool gol
nWaiting++;
/* condtitie de terminare:
* nu mai exista nici un task in workpool si nici un worker nu e activ
*/
if (nWaiting == nThreads) {
ready = true;
/* problema s-a terminat, anunt toti ceilalti workeri */
notifyAll();
return null;
} else {
while (!ready && tasks.size() == 0) {
try {
this.wait();
} catch(Exception e) {e.printStackTrace();}
}
if (ready){
/* s-a terminat prelucrarea */
return null;
}
nWaiting--;
}
}
return tasks.remove();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int createTask() {\n Calendar cal = Calendar.getInstance();\n String taskName = \"Task-\" + cal.getTimeInMillis();\n\n return TaskServiceClient.createTask(\n projObjKey, // projObjKey-新建立工作項目所在的專案key值\n parentObjKey, // parentObjKey-新建立工作項目所屬的子專案/專案key值\n \"工作敘述永不變\", // taskDesc-工作Memo區,\n 100, // taskOwnerKey-工作項目負責人, 填入使用者Key值 ,\n 0, // udaSet-在何組工作之下\n 0, // sdaSet-套用哪一組預設欄位,填0即可\n \"\", // sda0-系統預設欄位\n \"\", // sda1-系統預設欄位\n \"\", // sda2-系統預設欄位\n \"\", // sda3-系統預設欄位\n \"\", // sda4-系統預設欄位\n \"\", // sda5-系統預設欄位\n \"\", // sda6-系統預設欄位\n \"\", // sda7-系統預設欄位\n \"\", // sda8-系統預設欄位\n taskName, // sda9-系統預設欄位\n \"\", // sda10-系統預設欄位\n \"\", // sda11-系統預設欄位\n \"\", // sda12-系統預設欄位\n \"\", // sda13-系統預設欄位\n \"\", // sda14-系統預設欄位\n \"\", // sda15-系統預設欄位\n \"\", // sda16-系統預設欄位\n \"\", // sda17-系統預設欄位\n \"\", // sda18-系統預設欄位\n \"\", // sda19-系統預設欄位\n \"\", // uda0-自定欄位\n \"\", // uda1-自定欄位\n \"\", // uda2-自定欄位\n \"\", // uda3-自定欄位\n \"\", // uda4-自定欄位\n \"\", // uda5-自定欄位\n \"\", // uda6-自定欄位\n \"\", // uda7-自定欄位\n \"\", // uda8-自定欄位\n \"\", // uda9-自定欄位\n \"\", // uda10-自定欄位\n \"\", // uda11-自定欄位\n \"\", // uda12-自定欄位\n \"\", // uda13-自定欄位\n \"\", // uda14-自定欄位\n \"\", // uda15-自定欄位\n \"\", // uda16-自定欄位\n \"\", // uda17-自定欄位\n \"\", // uda18-自定欄位\n \"\", // uda19-自定欄位\n \"\", // uda60-自定欄位\n \"\", // uda61-自定欄位\n \"\", // uda62-自定欄位\n \"\", // uda63-自定欄位\n \"\", // uda64-自定欄位\n \"\", // uda65-自定欄位\n \"\", // uda66-自定欄位\n \"\", // uda67-自定欄位\n \"\", // uda68-自定欄位\n \"\", // uda69-自定欄位\n \"\", // uda70-自定欄位\n \"\", // uda71-自定欄位\n \"\", // uda72-自定欄位\n \"\", // uda73-自定欄位\n \"\", // uda74-自定欄位\n \"\", // uda75-自定欄位\n \"\", // uda76-自定欄位\n \"\", // uda77-自定欄位\n \"\", // uda78-自定欄位\n \"\", // uda79-自定欄位\n \"\", // accessList-存取成員,(userID,userID,userID)\n \"\", // userGroupAccessList-存取群組, (群組ID,群組ID)\n \"\", // subTeamAccessList-存取子團隊,(subTeamObjKey,subTeamObjKey)\n \"N\", // isMilestoneFlag-里程碑 (Y/N)\n 999999, // seqNO-序列編號\n \"admin\" // userID-建立者ID\n );\n }",
"public void createTasks(Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP, String _port, String _location, long timestamp, Object _appSpecific){ \r\n //System.out.print(\"Create tasks\");\r\n boolean flag = false;\r\n String defaultIP = \"-1\";\r\n String defaultPort = \"-1\";\r\n \r\n //use wildcard to let one worker randomly choose the job to run\r\n //System.out.println(\"---What is optID: \" +_optID);\r\n if(_destIP.equals(\"RANDOM\")){\r\n int tempTaskID = getUpdatedTaskID();\r\n \r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,defaultIP,_info1,_info2,defaultPort,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n }\r\n //send tuples to all\r\n else if(_destIP.equals(\"ALL\")){\r\n //Iterate through all sites that subscribe to certain types of task \r\n //System.out.println(\"infoSys.getSiteList(): \"+infoSys.getSiteList());\r\n Iterator it = infoSys.getSiteList().entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry entry = (Map.Entry) it.next();\r\n _destIP = ((String) entry.getKey());\r\n ConcurrentHashMap<String, String> subscribeType = (ConcurrentHashMap<String, String>) entry.getValue();\r\n \r\n //option 2, if there is multiple subscribers of a certain taskType in one site\r\n Iterator subIt = subscribeType.entrySet().iterator();\r\n while (subIt.hasNext()) {\r\n Map.Entry subEntry = (Map.Entry) subIt.next();\r\n String[] typeAndAssociate = subEntry.getValue().toString().split(\",\");\r\n if (typeAndAssociate[0].equals(_tupleTag) && typeAndAssociate[1].equals(_taskType)) {\r\n _port = subEntry.getKey().toString();\r\n\r\n int tempTaskID = getUpdatedTaskID();\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP, _info1,_info2,_port,_location, timestamp,_appSpecific);\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n \r\n }\r\n }\r\n }\r\n }\r\n //if user choose one specific worker, only send the message to it\r\n else{ \r\n //System.out.println(infoSys.getSiteList());\r\n //Check if this subscriber exists\r\n if (infoSys.hasAssociateSubscriber(_destIP, _port)) {\r\n int tempTaskID = getUpdatedTaskID();\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP,_info1,_info2,_port,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n insertTask(tempTaskID);\r\n } else {\r\n System.out.println(\"Incorrect destIP or destPort for creating task!\");\r\n }\r\n } \r\n //create entry in resultList\r\n addEntryToResultList(_optID,flag);\r\n }",
"WorkingTask getWorkingTask();",
"private static void executeTask02() {\n }",
"@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void launchTasks() throws Exception {\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).switchFridgeOn();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).setOndulatorPolicy(\"default\");\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getFridgeTemperature();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t2000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getBatteryEnergy();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).controllFridge();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 4000, 1000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getEPConsommation();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000, 4000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t}",
"public void checkTask(String task){\r\n\t\t\r\n\t}",
"public void executeTask(Version theTask) {\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // todo: what to do here???\n\t // this task obviously didn't perform well .. \n\t // and now, there's another request to run it!\n\t if (true) {\n\t\t// either try the task again ... \n\t\t_stoppedTasks.remove(theTask);\n\t } else {\n\t\t// or, refuse to run it at all \n\t\treturn;\n\t }\n\t}\n\t\n\t// System.out.println(\" - - - - - - - - - - - PSL! entered executeTask, parameter version> \" + theTask);\n\t// if (_versionCache.contains(theTask)) return;\n\n\n\t// add the pre-execution task to our knowledge base\n\t// replicate it so that in case of a crash we may recover\n\t_versionCache.addVersion(theTask);\n\treplicate(theTask);\n\n\t// tell replicators that we are about to start executing\n\talertReplicatorsExecutingTask(theTask);\n\n\tString taskName = ((TaskDefinition)theTask.data()).getName();\n\n\t// execute the task and get the next task\n\tVersion nextTask = executeTaskLocal(theTask);\n\t_log.completedTaskLocal(theTask);\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // this task was supposed to be stopped .. can ignore result\n\t _stoppedTasks.remove(theTask);\n\t _log.ignoreResultsOfStoppedTask(theTask);\n\t} else if (nextTask == null) { \n\t // this only happens if we have reached\n\t // the end of the workflow execution \n\t // tell replicators that everything is done.\n\t System.out.println(\"WORKFLOW IS DONE\");\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t} else {\n\t nextTask.append(taskName);\n\t // todo: we need to find a way to replicate the \n\t // post-execution task in a clean way. The here-under\n\t // commented code does not work as it creates a version clash.\n\t // todo: 16-Feb maybe uncomment this??\n\t // _versionCache.addVersion(nextTask);\n\n\t // set the next task for execution\n\t queueTask(nextTask);\n\t // tell the replicators we are done executing the task, they\n\t // don't have to worry about things anymore.\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t}\n }",
"public Map call() {\n\t\tMap result=null;\n\t\tint i=tasks.size();\n\t\tint j=0;\n\t\tint groupId=0;\n\t\ttry {\n\t\t\tfor(Task t:tasks){\n\t\t\t\t\t\tgroupId=t.getGroupId();\n\t\t\t\t\t\tresult=this.excuteTask(t);\n\t\t\t\t\t\tj++;\t\t\n\t\t\t}\n\t\t} catch (BusinessException e) {\n\t\t\tString errorMessage=\"Task execute error--task name:\"+tasks.get(j).getTaskName()+\",task catalog name:\"+tasks.get(j).getCatalogName()+\",task parameter:\"+tasks.get(j).getTaskParameter()+\",Exception details:\"+e.getMessage();\n\t\t\tlog.error(errorMessage);\n\t\t\ttaskService.addTaskLog(tasks.get(j), errorMessage, PandaConstants.TASK_FAILED);\n\t\t} catch (Exception e) {\n\t\t\tString errorMessage=\"Task execute error--task name:\"+tasks.get(j).getTaskName()+\",task catalog name:\"+tasks.get(j).getCatalogName()+\",task parameter:\"+tasks.get(j).getTaskParameter()+\",Exception details:\"+e.getMessage();\n\t\t\tlog.error(errorMessage);\n\t\t\ttaskService.addTaskLog(tasks.get(j),errorMessage, PandaConstants.TASK_FAILED);\n\t\t}finally{\n\t\t\tcleanUp();\n\t\t}\n\t\tif(i==j){\n\t\t\tStringBuffer sb=new StringBuffer();\n\t\t\tfor(Task t:tasks){\n\t\t\t\tString temp=\">>Task execute -- Task Id:\"+t.getTaskId()+\",Task Name:\"+t.getTaskName()+\",Task Catalog Name:\"+t.getCatalogName()+\",Task Parameter:\"+t.getTaskParameter();\n\t\t\t\tsb.append(temp+\"\\n\");\n\t\t\t\tsb.append(Utils.getExecuteResult(t, result)+\"\\n\\n\");\n\t\t\t}\n\t\t\ttaskService.addTaskLog(tasks.get(0), sb.toString(), PandaConstants.TASK_SUCCESS);\n\t\t}\n\t\treturn result;\n\t}",
"public abstract void task();",
"protected abstract void createTasks();",
"@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}",
"abstract void run(TaskList tasks, MainWindow ui, Storage storage);",
"private com.tvos.downloadmanager.download.IDownloadTask getTaskById(int r6) {\n /*\n r5 = this;\n r4 = r5.tasksLock;\n monitor-enter(r4);\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n if (r3 == 0) goto L_0x0010;\n L_0x0007:\n r0 = 0;\n L_0x0008:\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n r3 = r3.size();\t Catch:{ all -> 0x0027 }\n if (r0 < r3) goto L_0x0013;\n L_0x0010:\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n r2 = 0;\n L_0x0012:\n return r2;\n L_0x0013:\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n r2 = r3.get(r0);\t Catch:{ all -> 0x0027 }\n r2 = (com.tvos.downloadmanager.download.IDownloadTask) r2;\t Catch:{ all -> 0x0027 }\n r1 = r2.getCurrentDownloadParam();\t Catch:{ all -> 0x0027 }\n r3 = r1.getId();\t Catch:{ all -> 0x0027 }\n if (r3 != r6) goto L_0x002a;\n L_0x0025:\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n goto L_0x0012;\n L_0x0027:\n r3 = move-exception;\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n throw r3;\n L_0x002a:\n r0 = r0 + 1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tvos.downloadmanager.download.Download.getTaskById(int):com.tvos.downloadmanager.download.IDownloadTask\");\n }",
"@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}",
"public static boolean addressNonWaiting(){\n boolean addressedSomething = false;\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n // see if we can allocate resources\n\n\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n\n if(instructionType == Type.initiate){\n currTask.startTime = time;\n addressedSomething = true;\n //System.out.println(\"Task \" + currTask.taskNumber + \" was initiated\");\n }else if(instructionType == Type.request){\n if(request(currInstruction)){\n addressedSomething = true;\n //System.out.println(\"Task \" + currTask.taskNumber + \" had its request completed\");\n }else{\n //System.out.println(\"Task \" + currTask.taskNumber + \" could not be completed\");\n }\n }// when it is time to add the waitingInstructions what you should do is something along the lines of\n else if(instructionType == Type.compute){\n int numberCycles = currInstruction.numberCycles;\n if(currTask.computeTime == 0){\n currTask.computeTime = currInstruction.numberCycles;\n }\n currTask.computeTime -= 1;\n\n //System.out.println(\"Task \" + currTask.taskNumber + \" computes \" + (currInstruction.numberCycles - currTask.computeTime));\n\n addressedSomething = true;\n }else if(instructionType == Type.release){\n int amountReleased = currInstruction.resourceAmount;\n release(resourceType, amountReleased, currTask);\n //System.out.println(\"Task \" + currTask.taskNumber + \" released its resources\");\n addressedSomething = true;\n }else{ // if its terminate\n currTask.terminateTime = time;\n // System.out.println(\"Task \" + currTask.taskNumber + \" terminates at time t = \" + time);\n terminatedCount ++;\n releaseAll(currTask);\n addressedSomething = true;\n }\n if(currTask.computeTime == 0){\n taskPointers[i] ++;\n }\n }\n\n }\n return addressedSomething;\n }",
"int createParentTask();",
"public void beginTask(String tr, int i) {\n\t\t\n\t}",
"public void subTask(String tr) {\n\t\t\n\t}",
"public void beginTask(String tr) {\n\t\t\n\t}",
"@Override\r\n public List getExecutingTask() {\n return null;\r\n }",
"@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}",
"public static void main(String[] args) {\n if(args.length != 1) {\n System.err.println(\"Usage: java Ufficio <numero_persone>\");\n System.exit(1);\n }\n\n int numPersone = Integer.parseInt(args[0]);\n\n // Creo una coda bloccante per memorizzare i task (persone) in attesa nella sala1.\n BlockingQueue<Runnable> sala1 = new LinkedBlockingDeque<Runnable>();\n\n // Creo una coda bloccante per memorizzare i task (persone) in attesa nella sala2.\n BlockingQueue<Runnable> sala2 = new ArrayBlockingQueue<Runnable>(dimSala2);\n\n // Creo un pool di thread con al massimo 'numSportelli' thread.\n ExecutorService sportelli = new ThreadPoolExecutor(\n numSportelli, // Numero di thread da mantenere nel pool.\n numSportelli, // Numero massimo di thread possibili nel pool.\n 0L, // Tempo di keep-alive per i thread.\n TimeUnit.SECONDS,\n sala2, // Coda bloccante per i task.\n new RejectedExecutionHandler() {\n @Override\n public void rejectedExecution(Runnable persona, ThreadPoolExecutor sportelli) {\n try {\n sportelli.getQueue().put(persona);\n } catch(InterruptedException e) {\n System.err.println(\"Interruzione put (sala2).\");\n }\n }\n } // Politica di rifiuto: la persona rifiutata in sala2 aspetta che sia libera\n );\n\n // Creazione dei task (persone).\n for(int i = 1; i <= numPersone; i++) {\n sala1.add(new Persona(i));\n }\n\n // Sposto le persone dalla sala1 in sala2.\n for(int i = 1; i <= numPersone; i++) {\n try {\n sportelli.execute(sala1.take());\n } catch(RejectedExecutionException e) {\n System.err.printf(\"Persona %d: sala2 esaurita\\n\", i);\n } catch(InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n sportelli.shutdown(); // Chiudo gli sportelli, dopo che la sala2 è vuota\n }",
"@Override\n\tprotected void executeInternal(JobExecutionContext context,\n\t\t\tInteger channelId, Integer applicationId)\n\t\t\tthrows JobExecutionException {\n\t\t\n\t\t\n\t\tTaskManager taskManager = SpringUtil.getBean(TaskManager.class);\n\t\t\n\t\t//TODO 这里没法确定channel code,所以没法通过common notify packet方式生成task\n\t\t//不是很好\n\t\t//个人觉得没必要再单独生成一个额外的扫尾task,可以直接在扫尾的cron job中执行\n\t\tTask task = SpringUtil.getBean(SaoweiTask.class);\n\t\t//TODO 上下文的处理,系统级task上下文,这里暂时塞0吧,没啥关系\n\t\tChannelService channelService = SpringUtil.getBean(ChannelService.class);\n\t\tApplicationService applicationService = SpringUtil.getBean(ApplicationService.class);\n\t\tChannel channel = channelService.getChannelByCode(\"SYSTEM\");\n\t\tList<Application> applications = applicationService.getApplicationsByChannelId(channel.getId());\n\t\tApplication application = applications.get(0);\n\t\tTaskTemplateService templateService = SpringUtil.getBean(TaskTemplateService.class);\n\t\tTaskTemplate template = templateService.getTaskTemplateByTypeAndSubType(\"SYSTEM\", \"saowei\");\n\t\ttry {\n\t\t\ttask.setDataId(String.valueOf(System.nanoTime()));\n\t\t\ttask.setData(\"\");\n\t\t\ttask.setTemplate(template);\n\t\t\t\n\t\t\ttask.getContext().setChannelCode(channel.getCode());\n\t\t\ttask.getContext().setChannelId(channel.getId());\n\t\t\ttask.getContext().setApplicationCode(application.getCode());\n\t\t\ttask.getContext().setApplicationId(application.getId());\n\t\t\ttask.getContext().setStoreId(application.getStoreId());\n\t\t\t\n\t\t\tif (context.getMergedJobDataMap().containsKey(Constant.SCHEDULE_PARAM_TASK_RERUN_DELAY)) {\n\t\t\t\tString taskRerunDelay = (String)context.getMergedJobDataMap().get(Constant.SCHEDULE_PARAM_TASK_RERUN_DELAY);\n\t\t\t\ttask.getContext().put(Constant.SCHEDULE_PARAM_TASK_RERUN_DELAY, taskRerunDelay);\n\t\t\t}\n\t\t\t\n\t\t\ttaskManager.executeTask(task);\n\t\t} catch (TaskException e) {\n\t\t\t//e.printStackTrace();\n\t\t\tLOGGER.error(\"扫尾job运行失败\", e);\n\t\t\tthrow new JobExecutionException(e);\n\t\t}\n\t}",
"@Override\n public void taskStarting() {\n\n }",
"public abstract void task() throws InterruptedException;",
"int activeTasks();",
"@Transactional \n public void start(){\n\t \n System.out.println(repositoryService.createDeployment().addClasspathResource(\"diagrams/taskProcess.bpmn\").deploy().getName());\n Map<String, Object> vars1 = new HashMap<String, Object>();\n\t \n\tString procId = runtimeService.startProcessInstanceByKey(\"myProcess\", vars1).getId();\n \n System.out.println(\"启动流程流程id=\"+procId);\n \n // 获得第一个任务\n List<Task> tasks = taskService.createTaskQuery().taskCandidateGroup(\"bin\").list();\n //List<Task> tasks = taskService.createTaskQuery().taskCandidateUser(\"test\").list();\n for (Task task : tasks) {\n System.out.println(\"要分配的任名称 \" + task.getName());\n //分配的用户\n taskService.claim(task.getId(), \"bin\");\n }\n \n tasks = taskService.createTaskQuery().taskAssignee(\"bin\").list();\n for (Task task : tasks) {\n System.out.println(\"接收到的任务 \" + task.getName());\n // 执行(完成)任务\n taskService.complete(task.getId());\n } \n \n tasks = taskService.createTaskQuery().taskCandidateGroup(\"management\").list();\n for (Task task : tasks) {\n System.out.println(\"分配任务\" + task.getName());\n // 分配给的人\n taskService.claim(task.getId(), \"bin\");\n \n }\n \n \n tasks = taskService.createTaskQuery().taskAssignee(\"bin\").list();\n \n for (Task task : tasks) {\n \t System.out.println(\"收到的任务\" + task.getName());\n taskService.complete(task.getId());\n }\n \n \n }",
"@Override\n\t\tprotected String doInBackground(Task... arg0) {\n\t\t\tString taskID = TfTaskRepository.addTask(arg0[0], \n\t\t\t getApplicationContext());\n\t\t\t\n\t\t\ttaskID = taskID + \"\\n\";\n\t\t\t\n\t\t\t//saving the ID local\n\t\t\tlt.saveTaskId(taskID, getApplicationContext());\n\t\t\t\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\tpublic void doTask() {\n\t}",
"public abstract void prepareTasks() throws JobException;",
"public int getCustTask()\n\t{\n\t\treturn task;\n\t}",
"public void runTask(Runnable task) {\n\t\tthreadPool.execute(task);\r\n\t\t// System.out.println(\"Queue Size after assigning the\r\n\t\t// task..\"+queue.size() );\r\n\t\t// System.out.println(\"Pool Size after assigning the\r\n\t\t// task..\"+threadPool.getActiveCount() );\r\n\t\t// System.out.println(\"Task count..\"+threadPool.getTaskCount() );\r\n\t\tSystem.out.println(\"Task count..\" + queue.size());\r\n\r\n\t}",
"void doWork(AbstractTaskList list);",
"public abstract TaskResult runTask(TaskKey taskKey) throws JobException;",
"public void subTask(String name) {\n\r\n\t}",
"abstract void execute(TaskList tasks, Ui ui, Storage storage) throws IOException;",
"@Override\n\tpublic int exec_task (PendingTask task) {\n\t\treturn exec_cleanup_pdl_stop (task);\n\t}",
"@Override\r\n\tpublic void subTask(String name) {\n\t}",
"public void faitTonLongBoulotVerbeux() throws AbortException {\n\t\tMessenger.setMaxProgress(10);\n\t\tMessenger.printMsg(Messenger.TRACE, \"Init task !\");\n\t\tfor( int i=0 ; i<1000 ; i++ ) {\n\t\t\tMessenger.printMsg(Messenger.TRACE, \" blabla \" + i + \" \" + Thread.currentThread() + \" \" + Thread.currentThread().getState());\n\t\t\tif( (i%2) == 0 ) Messenger.diskAccess();\n\t\t\telse if( (i%3) == 0 ) Messenger.dbAccess();\n\t\t\telse if( (i%5) == 0 ) Messenger.procAccess();\n\t\t\tthis.processUserRequest();\n\t\t\ttry {\n\t\t\t\tThread.sleep(80);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tMessenger.printStackTrace(e);\n\t\t\t}\n\t\t\tMessenger.printMsg(Messenger.TRACE, \"This is a very very very very very long message in this sentence that has no real purpose, just in order to debug the applicant and improve it ! \");\n\t\t\ttry {\n\t\t\t\tThread.sleep(120);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tMessenger.printStackTrace(e);\n\t\t\t}\n\t\t\tMessenger.printMsg(Messenger.TRACE, \"Checkpoints n°\" + i);\n\t\t}\n\t\tMessenger.printMsg(Messenger.TRACE, \"End of task !\");\n\t\tMessenger.noMoreAccess();\n\t}",
"@Test\n public void testTaskNeedingOtherTasksToCheckIfDoneWithTimeout() throws InterruptedException, TaskException {\n final ScheduledPoolingTask<Integer> scheduledPoolingTask = this.createFakeScheduledPoolingTask(1, 1, 7, 8, 100);\n\n final Task<Integer> simpleTask = this.createFakeSimpleTask(2);\n\n final TaskDependingOnOtherTasksExample task = new TaskDependingOnOtherTasksExample.Builder()\n .willTake(2)\n .withTimeout(10)\n .withDependingTask(simpleTask)\n .withDependingTask(scheduledPoolingTask)\n .build();\n\n task.execute();\n\n assertTrue(\"The task should be finished ok\", task.isDone());\n\n assertTrue(\"The simple should be finished NO ok\", simpleTask.isDone());\n assertTrue(\"The scheduled should be finished ok\", !scheduledPoolingTask.isDone());\n\n assertTrue(\"The task should be finished ok\", task.getResult()==0);\n assertTrue(\"The simpleTask should be finished ok\", simpleTask.getResult()==0);\n assertTrue(\"The scheduledPoolingTask should be finished ok\", scheduledPoolingTask.getResult()==1);\n\n\n }",
"@Override\n protected Void doInBackground(Void... v) {\n try {\n repeating = ServerCom.removeTask(mAptID, tempTask.getDescription(), tempTask.getAssignee());\n } catch (Exception e) {\n this.exception = e;\n }\n\n return null;\n }",
"public void actions() {\n\t\t\tProvider p = array_provider[theTask.int_list_providers_that_tried_task.get(0)];\n\t\t\t\n\t\t\t//there is a percentage of probability that the user will fail to complete the task\n\t\t\tif(random.draw((double)PERCENTAGE_TASK_FAILURE/100)){ // SUCCESS\n\n\t\t\t\ttot_success_tasks++;\n\t \tthrough_time += time() - theTask.entryTime;\n\t\t\t\ttheTask.out();\n\t\t\t\t\n\t\t\t\tif(FIXED_EARNING_FOR_TASK) earning_McSense = earning_McSense + FIXED_EARNING_VALUE;\n\t\t\t\telse {\n\n\t\t\t\t\t//Provider p = (Provider) theTask.providers_that_tried_task.first();\n\t\t\t\t\tearning_McSense = earning_McSense + (p.min_price*PERCENTAGE_EARNING)/100;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\telse { // FAILURE\n\t\t\t\t//we should check again and if the check fails insert the task in rescheduled_waiting\n\t\t\t\ttheTask.into(taskrescheduled);\n\t\t\t\ttot_failed_tasks++;\n\t\t\t\t//new StartTaskExecution(theTask).schedule(time());\n\n\t\t\t}\n\t\t\t// the provider frees one slot\n\t\t\tp.number_of_task_executing--;\n\t\t\ttot_scheduled_completed_in_good_or_bad_tasks++;\n\n \t}",
"private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }",
"public TaskProgram() {\n initComponents();\n list=new ArrayList();\n li=list.listIterator();\n curtask=0;\n tottask=0;\n }",
"public static void main(String[] args){\n\t\tint tamPool=Integer.parseInt(args[0]);\r\n\t\tSystem.out.println(\"Cuantos numero quiere lanzar?\");\r\n\t\tn=Integer.parseInt(args[1]);\r\n\t\tlong time_start, time_end;\r\n\t\tint numeros=n/tamPool;\r\n\t\tThread []hilos= new Thread[tamPool];\r\n\t\ttime_start = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Numeros: \"+numeros);\r\n\t\tint grueso=numeros;\r\n\t\t\t//ExecutorService exec = Executors.newCachedThreadPool();\r\n\t\t\tfor(int i=0;i<tamPool;++i){\r\n\t\t\t\thilos[i]= new Thread(new piParalelo(numeros));\r\n\t\t\t\thilos[i].start();\r\n\t\t\t//System.out.println(i+\" : \"+grueso);\r\n\t\t\t//exec.execute(new piParalelo(numeros));\r\n\t\t\tif((grueso+numeros)>=n)numeros=n-grueso;\r\n\t\t\telse grueso+=numeros;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\tfor(int i=0;i<tamPool;++i){\r\n\t\t\t\ttry{\r\n\t\t\t\thilos[i].join();\r\n\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t/**try{\r\n\t\t\texec.shutdown();\r\n\t\t\texec.awaitTermination(1, TimeUnit.DAYS);\r\n\t\t\t}catch(Exception e){}*/\r\n\t\tPI=4*((double)atomico.get()/(double)n);\r\n\t\tSystem.out.println(\"La aproximacion del numero PI por montecarlo es: \"+PI);\r\n\t\ttime_end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"the task has taken \"+ ( time_end - time_start ) +\" milliseconds\");\r\n\t\t\t\t\t\t\t}",
"public abstract SystemTask getTask(Project project);",
"@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}",
"public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }",
"@Override\n\tpublic String getResult(Map<String, String> params) throws Exception {\n\t\tlong playerId = Long.valueOf(params.get(\"playerId\"));\n\t\tint taskId = Integer.parseInt(params.get(\"taskId\"));//ID\n\t\tint process = Integer.parseInt(params.get(\"process\"));\n\t\t\n\t\tGamePlayer player = WorldMgr.getPlayerFromCache(playerId);\n\t\tif (player != null && player.getPlayerState() == PlayerState.ONLINE) {\n\t\t\tRealTask task = player.getTaskInventory().getTaskInfos().get(taskId);\n\t\t\tif(task!=null){\n\t\t\t\ttask.updateProcess(process);\n\t\t\t}else{\n\t\t\t\tTaskCfg cfg = TaskTemplateMgr.getTaskCfg(taskId);\n\t\t\t\t\n\t\t\t\tif(cfg!=null){\n\t\t\t\t\tList<Integer> ids = new ArrayList<>();\n\t\t\t\t\tfor (RealTask t: player.getTaskInventory().getTaskInfos().values()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(t.getConfig().getTaskLink() == cfg.getTaskLink()){\n\t\t\t\t\t\t\tids.add(t.getInfo().getTaskId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int id : ids) {\n\t\t\t\t\t\tplayer.getTaskInventory().del(id);\n\t\t\t\t\t\tTaskOperateRespMsg.Builder resp = TaskOperateRespMsg.newBuilder();\n\t\t\t\t\t\tresp.setTaskId(id);\n\t\t\t\t\t\tresp.setOperate(3);\n\t\t\t\t\t\tPBMessage pkg = MessageUtil.buildMessage(Protocol.U_RESP_TASKOPERATE, resp);\n\t\t\t\t\t\tplayer.sendPbMessage(pkg);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tTaskInfo updateT = new TaskInfo();\n\t\t\t\t\tupdateT.setPlayerId(player.getPlayerId());\n\t\t\t\t\tupdateT.setProcess(0);\n\t\t\t\t\tupdateT.setTaskId(cfg.getTaskId());\n\t\t\t\t\tupdateT.setState(TaskInfo.UN_ACCEPT);\n\t\t\t\t\tupdateT.setUpdateTime(new Date());\n\t\t\t\t\tupdateT.setCreateTime(new Date());\n\t\t\t\t\tupdateT.setOp(Option.Insert);\n\t\t\t\t\tRealTask newTask = new RealTask(cfg, updateT, player);\n\t\t\t\t\tplayer.getTaskInventory().add(newTask);\n\t\t\t\t\tnewTask.doAccept();\n\t\t\t\t\tnewTask.updateProcess(process);\n\t\t\t\t\treturn HttpResult.getResult(Code.SUCCESS, \"*_*taskGm exec success*_*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn HttpResult.getResult(Code.SUCCESS, \"*_*taskGm exec fail*_*\");\n\t}",
"private void handleLostExecutor(Protos.SchedulerTask task)\n {\n SchedulerNode.State state = this.app.getState(task.getNodeId());\n\n //dont deliver the failure if it was already sent in some form\n if( state.equals(SchedulerNode.State.FAILED)\n || state.equals(SchedulerNode.State.FINISHED)\n || state.equals(SchedulerNode.State.KILLED))\n {\n return;\n }\n\n //this.app.nodeFailed(this, task.getNodeId());\n }",
"public void startTask() {\n\t}",
"public static boolean addressNonWaitingBanker(){\n boolean addressedSomething = false;\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n\n if(instructionType == Type.initiate){\n if(currInstruction.claim > maxResourceArr[currInstruction.resourceType]){\n System.out.println(\"Banker aborts task \" + currTask.taskNumber+ \" before run begins: claim for resource \" + (resourceType + 1)+ \" (\" + currInstruction.claim + \") \" + \" exceeds number of units present \" + \" (\" + maxResourceArr[currInstruction.resourceType] + \") \");\n currTask.isAborted = true;\n terminatedCount += 1;\n }else{\n currTask.startTime = time;\n addressedSomething = true;\n }\n\n }else if(instructionType == Type.request){\n if(bankerRequest(currInstruction)){\n addressedSomething = true;\n }else{\n // System.out.println(\"Task \" + currTask.taskNumber + \" could not be completed\");\n }\n }// when it is time to add the waitingInstructions what you should do is something along the lines of\n else if(instructionType == Type.compute){\n int numberCycles = currInstruction.numberCycles;\n if(currTask.computeTime == 0){\n currTask.computeTime = currInstruction.numberCycles;\n }\n currTask.computeTime -= 1;\n\n //System.out.println(\"Task \" + currTask.taskNumber + \" computes \" + (currInstruction.numberCycles - currTask.computeTime));\n\n addressedSomething = true;\n }else if(instructionType == Type.release){\n int amountReleased = currInstruction.resourceAmount;\n release(resourceType, amountReleased, currTask);\n //System.out.println(\"Task \" + currTask.taskNumber + \" released its resources\");\n addressedSomething = true;\n }else{ // if its terminate\n currTask.terminateTime = time;\n //System.out.println(\"Task \" + currTask.taskNumber + \" terminates at time t = \" + time);\n terminatedCount ++;\n releaseAll(currTask);\n addressedSomething = true;\n }\n if(currTask.computeTime == 0){\n taskPointers[i] ++;\n }\n }\n\n }\n return addressedSomething;\n }",
"@Test\n\t@Deployment(resources=\"process.bpmn\")\n\tpublic void testCompletionOftask() {\n\t\tProcessInstanceWithVariables processInstance = (ProcessInstanceWithVariables) processEngine().getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY);\n\t\t\n\t\t//Obtain a reference to the current task\n\t\tTaskAssert taskAssert = assertThat(processInstance).task();\n\t\tTaskEntity task = (TaskEntity) taskAssert.getActual();\n\t\ttask.delegate(\"user\");\n\t\ttask.resolve();\n\t\n\t\t\n\t}",
"public void removeTasks() {\n\t\t\r\n\t}",
"public void completeTask()\n throws NumberFormatException, NullPointerException, IndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n int taskNumber = Integer.parseInt(userIn.split(\" \")[TASK_NUMBER]);\n\n int taskIndex = taskNumber - 1;\n\n tasks.get(taskIndex).markAsDone();\n storage.updateFile(tasks.TaskList);\n System.out.println(\"Bueno! The following task is marked as done: \\n\" + tasks.get(taskIndex));\n } catch (NumberFormatException e) {\n ui.printNumberFormatException();\n } catch (NullPointerException e) {\n ui.printNullPtrException();\n } catch (IndexOutOfBoundsException e) {\n ui.printIndexOOBException();\n }\n System.out.println(LINEBAR);\n }",
"public interface ITaskHandler {\n\n\t/**\n\t * It is called in a separate thread to handle the task.\n\t * Parameters are thoes given in the addTask()\n\t * This method should not been called directly.\n\t * \n\t * @param pTaskType\n\t * @param pParam\n\t * @throws IllegalArgumentException\n\t */\n\tvoid handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;\n}",
"void event(long t) {\n\r\n \r\n\r\n Job temp;\r\n if (this.TempListMigrating.front != null) { //if there are any new migrating tasks\r\n TempListMigrating.insertionSortIdentifier(this.TempListMigrating.front); //order the TempList, from smallest-largest\r\n\r\n while (this.TempListMigrating.front != null) {\r\n //TempList.calculateD(t);\r\n temp = TempListMigrating.remove();\r\n int assignedProcessor = this.getNextProcessor(temp);\r\n\r\n //add this task to the processor\r\n this.servers[this.Tasks[temp.identifier].index[assignedProcessor]].addToMigratingPool(temp);\r\n\r\n }\r\n }\r\n\r\n while (this.TempListFixed.front != null) {\r\n\r\n temp = TempListFixed.remove();\r\n this.servers[this.Tasks[temp.identifier].index[0]].pool.insertionSortDeadline(temp, t);\r\n\r\n }\r\n\r\n //add things to the processor now\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n if (this.servers[i].executing.top != null) { //not empty, there is a job present\r\n //check for migrating tasks\r\n if (this.servers[i].migratingPool.front != null) {\r\n //there are migrating Tasks, and something on the stack\r\n if (this.Tasks[this.servers[i].executing.top.identifier].numMigrations < 2 || this.Tasks[this.servers[i].executing.top.identifier].fixed == true) { //executing is a fixed task\r\n if (servers[i].migratingPool.front != null) {\r\n //switch\r\n temp = servers[i].executing.top;\r\n servers[i].executing.top = servers[i].migratingPool.remove();\r\n servers[i].pool.insertionSortDeadline(temp, t);\r\n this.preemptions++;\r\n\r\n }\r\n } //if both migrating tasks\r\n else if (this.servers[i].migratingPool.front.identifier < servers[i].executing.top.identifier) {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n } else if (this.servers[i].pool.front != null)//check for fixed tasks\r\n {\r\n if (this.servers[i].pool.front.deadline < servers[i].executing.top.deadline) {\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n }\r\n\r\n } else if (this.servers[i].migratingPool.front != null) //it was empty, add now migrating\r\n {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top=temp;\r\n \r\n \r\n\r\n } else if (this.servers[i].pool.front != null) //executing was empty, and migratingPool was empty, add from fixed list\r\n {\r\n\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n }\r\n\r\n }\r\n }",
"TaskFactory getTaskFactory();",
"@Override\n public void runTask() {\n PortugueseDistrictImportAuxiliaryServices aux = PortugueseDistrictImportAuxiliaryServices.getInstance();\n aux.executeTask(this);\n }",
"@Override\r\n\t\tpublic void doTaskAsNoNetWork(Message msg) throws Exception {\n\r\n\t\t}",
"@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}",
"public void printProblemTasks() {\n for (Task task : failedTasks) {\n String message = \"Failed task: \" + task + \" \" + task.result;\n if (task.thrown != null) {\n stderr.println(message + \" \" + task.thrown.getMessage());\n } else {\n stdout.println(message);\n }\n }\n\n for (Task task : tasks) {\n StringBuilder message = new StringBuilder()\n .append(\"Failed to execute task: \").append(task);\n for (Task blocker : task.firstToFinish) {\n if (blocker.result == null) {\n message.append(\"\\n blocked by non-executed task: \").append(blocker);\n }\n }\n for (Task blocker : task.firstToSuccessfullyFinish) {\n if (blocker.result == null) {\n message.append(\"\\n blocked by non-executed task: \").append(blocker);\n } else if (blocker.result != TaskResult.SUCCESS) {\n message.append(\"\\n blocked by unsuccessful task: \").append(blocker);\n }\n }\n stdout.println(message.toString());\n }\n }",
"public OutOfBoundException() {\n super(\"Task does not exist. Please send a correct task number ><\");\n }",
"@Override\n\tpublic Task processTasks(Task task) {\n\t\tint[] solution =knapsackSolverService.solve(task);\n\t\tif(solution!= null) {\n\t\t\ttask =persistTaskAndSolution(task, solution);\n\t\t}\n\t\treturn task;\n\t}",
"public interface JbpmService {\n\n /**\n * Delegate a task owned by sourceUserId to targetUserId\n * \n * @param taskId\n * @param sourceUserId\n * @param targetUserId\n */\n void delegateTask(Long taskId, String sourceUserId, String targetUserId);\n\n List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String locale);\n\n /**\n * Gets all tasks assigned to a particular userid filtered by processId(which is same as Task.PROCESSID column or bpmn file process identifier)\n * \n * @param userId\n * @param processId\n * @return\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId(String userId, String processId);\n\n /**\n * @param userId\n * @param processId\n * @param deploymentId\n * @return\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId(String userId, String processId, String deploymentId) throws RuntimeException;\n\n /**\n * Claim a taskList by user\n * \n * @param userId\n * @param taskList\n * @return\n */\n void claimTask(String userId, List<TaskSummary> taskList);\n\n /**\n * This Claims a task with taskId by userId\n * \n * @param userId\n * @param taskId\n */\n void claimTask(String userId, Long taskId);\n\n /**\n * This moves to state of task to Complete state.(Reserved->InProgress->Completed)\n * \n * @param userId\n * @param taskId\n * @param results\n */\n void completeTask(String userId, Long taskId, Map<String, Object> results);\n\n /**\n * This api releases the claim by userId on taskid\n * \n * @param userId\n * @param taskId\n */\n void releaseTask(String userId, Long taskId);\n\n /**\n * This api releases the claim by userId on taskList\n * \n * @param userId\n * @param taskList\n * @param results\n */\n void releaseTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);\n\n /**\n * This moves to state of taskList to Complete state.(Reserved->InProgress->Completed)\n * \n * @param userId\n * @param taskList\n * @param results\n * @throws Exception\n */\n void completeTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);\n\n /**\n * Gets all tasks assigned to a particular userid\n * \n * @param processInstanceId\n * @param locale\n * , eg: en-UK or en-US based on task configured in workflow\n * @return\n */\n List<TaskSummary> getTasksByProcessInstanceId(Long processInstanceId, String locale);\n\n /**\n * Start a new process instance. The process (definition) that should be used is referenced by the given process id. Parameters can be passed to the process instance (as name-value pairs), and\n * these will be set as variables of the process instance.\n * \n * @param processId\n * the id of the process that should be started\n * @param parameters\n * the process variables that should be set when starting the process instance\n * @return the ProcessInstance that represents the instance of the process that was started\n * @throws Exception\n */\n ProcessInstance startProcess(String processId, Map<String, Object> params);\n\n /**\n * Nominate a task with taskId to userlist , this is operator only when task is in created state\n * \n * @param userId\n * @param userList\n * @param taskId\n */\n void nominateTask(String userId, List<String> userList, Long taskId);\n\n \n\n /**\n * Gets all tasks assigned to a particular processInstanceId ,statusList and formNameList\n * \n * @param processInstanceId\n * @param locale\n * , eg: en-UK or en-US based on task configured in workflow\n * @return\n */\n List<TaskImpl> getTasksByProcessInstanceIdStatusFormName(Long processInstanceId, List<Status> statusList, List<String> formName);\n\n /**\n * Check if workflow is active or completed.\n * \n * @param processInstanceId\n * @return\n */\n boolean isWorkflowActive(Long processInstanceId);\n\n /**\n * @param processInstanceId\n * @param formName\n * @param action\n * @param approver\n * @param state\n * @throws Exception\n */\n Long completeTask(Long processInstanceId, String formName, String action, String approver, String state);\n\n /**\n * Abort a running process instance.\n * \n * @param processInstanceId\n * the id of the process that already in run.\n * @throws Exception\n */\n void abortProcess(Long processInstanceId);\n\n List<TaskImpl> getTaskPendingByActor(Map<String, Object> params);\n\n Task getTaskById(Long taskId);\n\n /***\n * Gets all tasks assigned to a userId deploymentId\n * \n * @param userId\n * @param deploymentId\n * @return\n * @throws Exception\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByDeploymentId(String userId, String deploymentId);\n\n TaskService getTaskService();\n\n AuditService getAuditService();\n\n RuntimeEngine getEngine();\n\n KieSession getKsession();\n\n AuditLogService getLogService();\n\n RuntimeManager getManager();\n\n}",
"@PostConstruct\n public void start() throws Exception {\n UserGroupCallbackManager callbackMgr = UserGroupCallbackManager.getInstance();\n callbackMgr.setCallback(new org.jboss.processFlow.tasks.identity.PFPUserGroupCallback()); \n callbackMgr.setProperty(\"disable.all.groups\", \"true\");\n log.info(\"start() just set UserGroupCallbackManager with properties\");\n \n // 1) instantiate a deadline handler \n EscalatedDeadlineHandler deadlineHandler = null;\n if (System.getProperty(ITaskService.DEADLINE_HANDLER) != null) {\n deadlineHandler = (EscalatedDeadlineHandler) Class.forName(System.getProperty(ITaskService.DEADLINE_HANDLER)).newInstance();\n } else {\n throw new RuntimeException(\"start() need to pass system property = \"+ITaskService.DEADLINE_HANDLER);\n }\n \n SystemEventListener sEventListener = SystemEventListenerFactory.getSystemEventListener();\n \n // 2) turn on/off the intelligent human task input/output mapping\n if (System.getProperty(\"org.jboss.processFlow.task.enableIntelligentMapping\") != null)\n enableIntelligentMapping = Boolean.parseBoolean(System.getProperty(\"org.jboss.processFlow.task.enableIntelligentMapping\"));\n log.info(\"start() enableIntelligentMapping = \" + enableIntelligentMapping);\n \n \n // 3) instantiate TaskEventListeners\n log.info(\"TaskEventListeners: \" + System.getProperty(\"org.jboss.processFlow.tasks.TaskEventListeners\"));\n eventSupport = new PfpTaskEventSupport();\n if (System.getProperty(\"org.jboss.processFlow.tasks.TaskEventListeners\") != null) {\n String[] listenerClasses = System.getProperty(\"org.jboss.processFlow.tasks.TaskEventListeners\").split(\"\\\\s\");\n for (String lcn : listenerClasses) {\n eventSupport.addEventListener((TaskEventListener) Class.forName(lcn).newInstance());\n }\n }\n \n EntityManager eManager = null;\n try {\n eManager = humanTaskEMF.createEntityManager();\n Query queryObj = eManager.createQuery(\"from User\");\n List<User> userList = queryObj.getResultList();\n for(User userObj : userList){\n this.tempOrgEntitySet.add(userObj.getId());\n }\n log.info(\"start() just populated tempOrgEntitySet with following # of orgentity users found in DB: \"+userList.size());\n }finally {\n }\n \n jtaTaskService = new TaskService(jtaHumanTaskEMF, sEventListener, deadlineHandler);\n \n /** 1) since TaskService is using a RESOURCE-LOCAL EMF (for performance reasons), jbpm assumes it can define its own trnx boundaries\n * 2) in particular, jbpm human task impl defines its own trnx boundaries when this function creates a jbpm TaskService\n * 3) not sure how to disable a JTA trnx in this @PostConstruct function other than to suspend the trnx using the TransactionManager \n */\n try {\n Transaction suspendedTrnx = tMgr.suspend(); \n taskService = new TaskService(humanTaskEMF, sEventListener, deadlineHandler);\n tMgr.resume(suspendedTrnx);\n } catch(Exception x) {\n throw new RuntimeException(x);\n }\n \n \n }",
"public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }",
"public Task getTask(Integer tid);",
"private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }",
"@Override\n\tpublic void initTask() {\n\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\tif(rankInfo!=null){\n\t\t\tgetTask().getTaskInfo().setProcess((int)rankInfo.getSoul());\n\t\t}\n\t}",
"@Test\n public void testTask() throws InterruptedException {\n\n SchedulingRunnable task1 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task1, \"0/15 * * * * ?\");\n Thread.sleep(10000);\n\n SchedulingRunnable task2 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task2, \"0/8 * * * * ?\");\n // 便于观察\n\n Thread.sleep(3000000);\n }",
"@Override\n\tpublic void preExecuteTask(Task t,Map context) {\n\t\tlog.info(\"Task Id:\"+t.getTaskId()+\"--Task Name:\"+t.getTaskName()+\"--Task begin execute!\");\n\t}",
"protected Task<Void> createTask() {\n\n\t\t\treturn new Task<Void>() {\n\n\t\t\t\tprotected Void call() {\n\t\t\t\t\t_button.setDisable(true);\n\t\t\t\t\tTaskScheduler.executeAlgorithm(_digraph);\n\n\t\t\t\t\treturn null;\n\n\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"private TasksLists setTaskDone(ITaskCluster taskCluster, ICommonTask task, Object taskServiceResult) {\n return nextTasks(taskCluster, task, taskServiceResult);\n }",
"abstract void doTaskOnRun();",
"public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }",
"public static void main(String[] args) throws Exception {\n ScheduledExecutorService exec = Executors.newScheduledThreadPool(3);// 3 threads\n\n System.out.println(\"TIME: \" + dateFormatter.format(new Date()));\n\n\n ScheduledFuture<?> sf1 = exec.schedule(new ScheduledTaskB(3000), 4,TimeUnit.SECONDS); // TASK-1\n ScheduledFuture<?> sf2 = exec.schedule(new CalculationTaskD(0,3,3000), 6, TimeUnit.SECONDS); // TASK-2\n\n exec.schedule(new ScheduledTaskB(0), 8, TimeUnit.SECONDS);\n ScheduledFuture<?> sf4 = exec.schedule(new CalculationTaskD(3,4,0), 10 , TimeUnit.SECONDS); // TASK-4\n\n exec.shutdown();\n sf1.cancel(true);\n sf2.cancel(true);\n\n // GET RESULTS ////////////////////////////////////////////////////////////\n\n System.out.println(\"\\n\\n\\nGetting results: \");\n\n /*\n .get() blocks until result is available\n */\n System.out.println(\"TASK-1: \" + sf1.get() + \"\\n\");\n System.out.println(\"TASK-2: \" + sf2.get() + \"\\n\");\n System.out.println(\"TASK-4: \" + sf4.get() + \"\\n\");\n\n\n\n\n\n }",
"public interface TaskManager {\n\t/**\n\t * @return all the tasks that have to be executed\n\t */\n\tvoid getTasks();\n}",
"public void createTask()\n {\n boolean copy = false;\n if(check.checkTask(taskName.getText()))\n {\n // Go through list and make sure task isnt already there\n // If there is one already in list, then tell user there it is on list\n if(!(Item.getToDoList().isEmpty()))\n {\n for(Item task : Item.getToDoList())\n {\n if(task.getTask().equals(taskName.getText()))\n {\n status.setText(\"Task is already on the list. \");\n copy = true;\n }\n }\n\n if(!copy)\n {\n // If not copy, add the task to the list by calling method\n addTaskAndDisplay(taskName.getText(), completionDate.getText(), taskCompletedCheckBox.isSelected());\n }\n }\n\n // If list is empty, then no need to check if task is copy\n else\n {\n addTaskAndDisplay(taskName.getText(), completionDate.getText(), taskCompletedCheckBox.isSelected());\n }\n\n }\n\n // If task is invalid, alert user\n else\n {\n status.setText(\"Task invalid. Try again. \");\n }\n\n }",
"public abstract String getTaskName();",
"int getTask() {\n return task;\n }",
"protected void executeRemoteTask(final Version theTask) {\n \tif (psl.survivor.ProcessorMain.debug) System.out.println(\"PSL! entered executeRemoteTask: theTask.data(): \" + theTask.data().getClass().getName());\n \tif (psl.survivor.ProcessorMain.debug) System.out.println(\"PSL! entered executeRemoteTask: theTask.data2(): \" + theTask.data2().getClass().getName());\n\tTaskDefinition td = (TaskDefinition) theTask.data();\n\n\t// First we need to find a processor that can handle the task \n\tArrayList al = _poolData.getValidProcessors(td);\n\tlog(\"number of valid processors:\" + al.size());\n\tlog(\"TaskDefinition of what we are looking for:\" + \n\t td);\n\n\t// we now make sure that the processor we decide to use is up \n\t// and running\n\tfor (int i = 0; i < al.size(); i++) {\n\t TaskProcessorHandle tph = (TaskProcessorHandle) al.get(i);\n\t if (psl.survivor.ProcessorMain.debug) System.out.print(\"IS VALID?\");\n\t if (tph.valid(this)) {\n\t\tif (psl.survivor.ProcessorMain.debug) System.out.println(\" YES\");\n\t\t// everything is ok, start a seperate thread for \n\t\t// remote execution\n\t\tfinal TaskProcessorHandle tph2 = tph;\n\t\tfinal Processor p = this;\n\t\tThread t = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t log(\"PSL! going to invoke tph2.executeTask(...)\"); // 2-do: remove\n\t\t\t tph2.executeTask(theTask, p);\n\t\t\t}\n\t\t };\n\t\tt.start();\n\t\treturn;\n\t } else {\n\t\tif (psl.survivor.ProcessorMain.debug) System.out.println(\" NO\");\n\t\t// remote processor does not seem to be up\n\t\t// let's remove it from our pool\n\t\t_poolData.testValidity(tph);\n\t }\n\t}\n\n\t// if we get here we could NOT find a processor to execute the task\n\t// as a result, let's just a wait a bit and hope things get better\n\tlog(\"no processor to execute task: \" + theTask);\n\tThread t = new Thread () {\n\t\tpublic void run() {\n\t\t try {\n\t\t\tThread.sleep(_SLEEP_TIME2);\n\t\t } catch (InterruptedException e) {\n\t\t\t;\n\t\t }\n\t\t queueTask(theTask);\n\t\t}\n\t };\n\tt.start();\n }",
"boolean hasTask();",
"public void setTaskName(String name) {\n\r\n\t}",
"public interface ITaskFailure<E> {\n /**\n * \n * <i>Description:</i> ID that identifies the task that caused the failure\n * \n * @return the id\n */\n Object getTaskId();\n\n /**\n * \n * <i>Description:</i> The task can be used to retry to recover the failure\n * \n * @return the task\n */\n Callable<E> getTask();\n\n /**\n * \n * <i>Description:</i> transfer an <code>error</code> exception to a\n * FailureType so we a Failure Manager can handle the failure properly\n * \n * @param error\n * the exception that cause the failure\n * @return the {@link FailureType}\n */\n FailureType getFailureType(Throwable error);\n\n /**\n * \n * <i>Description:</i> called when the failure is identified as\n * unrecoverable\n * \n */\n void onFatal();\n}",
"public String getTaskName();",
"public interface Task extends Runnable {\n\n /**\n * Get the task name\n *\n * @return\n */\n public String getTaskName();\n\n /**\n *\n * @return true if the task is in active, else false\n */\n public boolean isActive();\n\n /**\n * @return priority of the task\n */\n public int getPriority();\n\n /**\n *\n * @return the sequence number of the task. If two tasks has same priority,\n * then the task with less sequence number executes first.\n */\n public int getSequenceNumber();\n}",
"@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }",
"public void checkTask() throws InvalidTask {\n\n int incidenceOfTask = (int) TaskList.taskArrayList.stream()\n .filter(task -> task.toString().contains(command))\n .count();\n if (incidenceOfTask == 0) {\n throw new InvalidTask();\n }\n\n }",
"@Override\r\n public void generateTasks() {\r\n int tasks = Integer.parseInt(this.getProperty(\"numTask\", \"1000\"));\r\n setNumOfTasks(tasks);\r\n //TODO:fixed port here !!!! need to change!!!\r\n serverPort = Integer.parseInt(this.getProperty(\"reqServerPort\", \"5560\")); \r\n PROC_MAX = Integer.parseInt(this.getProperty(\"reqServerMaxConcurrentClients\",\"10\"));\r\n location = this.getProperty(\"location\", \"rutgers\");\r\n energyplusPropertyFile = this.getProperty(\"energyplusTemplate\", \"energyplus.property\");\r\n \r\n winnerTakeAll = Boolean.parseBoolean(this.getProperty(\"winnerTakeAll\",\"true\"));\r\n jobDistributionMap = new HashMap<Integer,Integer>();\r\n copyJobDistributionMap = new HashMap<Integer,Integer>();\r\n //System.out.println(\"energyplusPropertyFile:\"+energyplusPropertyFile);\r\n \r\n initInfoSystem();\r\n initDistributionSystem();\r\n startFedServer();\r\n }",
"private List<Task> tasks2Present(){\n List<Task> tasks = this.taskRepository.findAll();\n// de taken verwijderen waar user eerder op reageerde\n tasks2React(tasks);\n// taken op alfabetische volgorde zetten\n sortTasks(tasks);\n// opgeschoonde lijst aan handler geven\n return tasks;\n }",
"public static void main(String [] args) {\n Task specialTask = new MessageTask(args[0],args[1],args[2],args[3],args[4],args[5]);\n specialTask.execute();\n\n System.out.println(\"Hello to your first Java program!\");\n\n Task[] tasks = new Task[5];\n tasks[0] = new MessageTask(\"1\",\"Seminar\",\"Hello world\",\"Computer\",\"Students\",\"2018-10-02 13:00\");\n tasks[1] = new MessageTask(\"2\",\"Laborator\",\"Beautiful world\",\"Love\",\"Ex's\",\"2012-05-02 15:00\");\n tasks[2] = new MessageTask(\"3\",\"Curs\",\"Cruel world\",\"Teacher\",\"Parents\",\"2058-08-02 13:35\");\n tasks[3] = new MessageTask(\"4\",\"Examen\",\"Great world\",\"Colleague\",\"Teachers\",\"1018-03-02 20:00\");\n tasks[4] = new MessageTask(\"5\",\"Colocviu\",\"Bye world\",\"Deputy\",\"Mayor\",\"2618-10-02 13:00\");\n\n// for(Task i: tasks)\n// i.execute();\n\n }",
"public static void main(String[] args) {\n ExecutorService es = Executors.newCachedThreadPool();\n es.execute(new Task(65));\n es.execute(new Task(5));\n System.out.println(\"结束执行!\");\n }",
"public task ()\n\t{\n\tthis.msg = msg;\n\tthis.level = level;\n\n\tif (level == 1)\n\tpriority = \"Critical\";\n\tif (level == 2)\n\tpriority = \"Very Important\";\n\tif (level == 3)\n\tpriority = \"Normal\";\n\tif (level == 4)\n\tpriority = \"Low\";\n\tif (level == 5)\n\tpriority = \"Not Important\";\n\t}",
"public void checkRemainingCases(ArrayList<Task> tasks, Validity taskFormat, String task) throws TaskFormatException {\n String[] words = task.split(\" \");\n switch (words[0].toLowerCase()) {\n case \"done\":\n words = taskFormat.checkDone();\n if (taskFormat.getIsValid()) {\n int index = Integer.parseInt(words[1]);\n markDone(index, tasks);\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The description of done cannot be empty and must be a digit.\");\n }\n break;\n case \"find\":\n taskFormat.checkFind();\n if (taskFormat.getIsValid()) {\n findTasks(tasks, task.substring(5));\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The description of find cannot be empty.\");\n }\n break;\n case \"printbydate\":\n taskFormat.checkPrintByDate();\n if (taskFormat.getIsValid()) {\n printByDate(tasks, task.substring(12));\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The description of printbydate cannot be empty\");\n }\n break;\n case \"delete\":\n words = taskFormat.checkDelete();\n if (taskFormat.getIsValid()) {\n int index = Integer.parseInt(words[1]);\n deleteTask(index, tasks);\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The description of delete cannot be empty and must be a digit.\");\n }\n break;\n case \"event\":\n words = taskFormat.checkEvent();\n if (taskFormat.getIsValid()) {\n tasks.add(new Event(words[0], words[1]));\n addedTask(tasks);\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The event description format is wrong.\");\n }\n break;\n case \"deadline\":\n words = taskFormat.checkDeadline();\n if (taskFormat.getIsValid()) {\n tasks.add(new Deadline(words[0], words[1]));\n addedTask(tasks);\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The deadline description format is wrong.\");\n }\n break;\n case \"todo\":\n if (words.length > 1) {\n tasks.add(new Todo(task));\n addedTask(tasks);\n } else {\n throw new TaskFormatException(\"\\u2639 OOPS!!! The description of a todo cannot be empty.\");\n }\n break;\n default:\n throw new TaskFormatException(\"\\u2639 OOPS!!! I'm sorry, but I don't know what that means :-(\");\n }\n }",
"private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}",
"@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}",
"public void execute() {\n\n try {\n checkTask();\n Ui.printLines();\n Ui.printMatchingTasks();\n int index = 1;\n\n for (Task task : TaskList.taskArrayList) {\n String task_description = task.toString();\n\n if (task_description.contains(command)) {\n System.out.println(index + \". \" + task);\n index++;\n }\n\n }\n Ui.printLines();\n } catch (InvalidTask invalidTask) {\n Ui.printLines();\n Ui.printInvalidTask();\n Ui.printLines();\n }\n }",
"@PostMapping(\"/{taskId}\")\n\tpublic ResponseEntity<Map<String,Object>> registration(@PathVariable String taskId, @RequestBody Korisnik korisnik){\n\t\tSystem.out.println(\"Hellooo\");\n\t\t\n\t\tkorisnik.setPotvrdjenMail(false);\n\t\tkorisnikService.save(korisnik);\n\t\tTask task = taskService.createTaskQuery().active().taskId(taskId).singleResult();\n\t\tSystem.out.println(\"aaaaa \" + task.getProcessInstanceId());\n\t\t\n\t\t\n\t\t\n\t\torg.activiti.engine.identity.User newUser;\n\t\t\n\t\tnewUser = identityService.newUser(korisnik.getKorisnickoIme());\n\t\tnewUser.setFirstName(korisnik.getIme());\n\t\tnewUser.setLastName(korisnik.getPrezime());\n\t\tnewUser.setEmail(korisnik.getEmail());\n\t\tnewUser.setPassword(korisnik.getSifra());\n\t\tidentityService.saveUser(newUser);\n\t\n\t\tidentityService.createMembership(newUser.getId(), korisnik.getTip());\n\t\t\n\t\tHashMap<String, Object> variables = (HashMap<String, Object>) runtimeService\n\t\t\t\t.getVariables(task.getProcessInstanceId());\n\t\tvariables.put(\"korisnik\", korisnik);\n\t\tSystem.out.println(variables + \" variables\");\n\t\t\n\t\ttaskService.complete(taskId, variables);\n\t\t\n\t\tif(FIRMA.equals(korisnik.getTip())){\n\t\t\tTask taskFirma = taskService.createTaskQuery().active().list()\n\t\t\t\t\t.get(taskService.createTaskQuery().active().list().size() - 1);\n\t\t\t\n\t\t\tMap<String, Object> taskMap = new HashMap<String, Object>();\n\t\t\ttaskMap.put(\"taskId\", taskFirma.getId());\n\t\t\ttaskMap.put(\"name\", taskFirma.getName());\n\t\t\ttaskMap.put(\"userID\", korisnik.getId());\n\t\t\ttaskMap.put(\"korisnik\", korisnik);\n\t\t\tSystem.out.println(\"firma task id \" + taskFirma.getId() + \" task name \" + taskFirma.getName());\n\t\t\treturn new ResponseEntity<Map<String,Object>>(taskMap, HttpStatus.OK);\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<Map<String,Object>>(variables, HttpStatus.OK);\n\t}"
] | [
"0.65066034",
"0.64363414",
"0.6339891",
"0.6335557",
"0.62581956",
"0.61782897",
"0.61061203",
"0.6097284",
"0.60423887",
"0.59639996",
"0.5960334",
"0.59580666",
"0.59470546",
"0.59460515",
"0.59223115",
"0.5893104",
"0.5867149",
"0.58426327",
"0.58403325",
"0.58289057",
"0.5809884",
"0.5799495",
"0.5795263",
"0.5786671",
"0.57678014",
"0.57578135",
"0.5752121",
"0.57486886",
"0.57412326",
"0.5722875",
"0.57169074",
"0.5704809",
"0.5699486",
"0.5695621",
"0.56945676",
"0.56808054",
"0.56745833",
"0.5669303",
"0.5669124",
"0.5661359",
"0.56593835",
"0.5655924",
"0.5646283",
"0.56383026",
"0.563811",
"0.5636286",
"0.5634633",
"0.5634243",
"0.56307536",
"0.5630594",
"0.56245625",
"0.5621183",
"0.5620519",
"0.5619803",
"0.5616525",
"0.56155425",
"0.56154233",
"0.56136733",
"0.5602523",
"0.56011117",
"0.5597667",
"0.5592954",
"0.55902904",
"0.55787575",
"0.55787104",
"0.55735165",
"0.55715233",
"0.55636036",
"0.55623215",
"0.5561149",
"0.55570257",
"0.5555338",
"0.5555076",
"0.5554552",
"0.555439",
"0.5552423",
"0.5549487",
"0.55494475",
"0.55456805",
"0.55453396",
"0.5537758",
"0.5532303",
"0.5528152",
"0.55268663",
"0.55255145",
"0.55227596",
"0.55214155",
"0.55168545",
"0.5516645",
"0.5515602",
"0.551389",
"0.5507402",
"0.5503025",
"0.5502021",
"0.5499422",
"0.54936075",
"0.54860175",
"0.54784346",
"0.54781264",
"0.5471784"
] | 0.5880807 | 16 |
Functie care introduce un task in workpool. | synchronized void putWork(PartialSolution sp) {
tasks.add(sp);
/* anuntam unul dintre workerii care asteptau */
this.notify();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private CollectTaskPool() {\n\t\tsuper();\n\t}",
"private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n mPoolThreadHandler.sendEmptyMessage(0x110);\r\n }",
"@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}",
"public void runTask(Runnable task) {\n\t\tthreadPool.execute(task);\r\n\t\t// System.out.println(\"Queue Size after assigning the\r\n\t\t// task..\"+queue.size() );\r\n\t\t// System.out.println(\"Pool Size after assigning the\r\n\t\t// task..\"+threadPool.getActiveCount() );\r\n\t\t// System.out.println(\"Task count..\"+threadPool.getTaskCount() );\r\n\t\tSystem.out.println(\"Task count..\" + queue.size());\r\n\r\n\t}",
"Processor(int id, WorkStealingThreadPool pool) {\n this.id = id;\n this.pool = pool;\n this.tasks = new ArrayDeque<Task>();\n }",
"protected final void spawn(Task<?>... task) {\n // Gets a list of tasks, make a forLoop, and add it the the queue of that specific task\n for (int i=0; i<task.length; i++){\n // We want the pool to add a given task.\n // pool.addTask(task[i], id); <- this function needs to increase aswell.\n myProcessor.getPool().addTask(task[i], myProcessor.getProcessorID());\n //\tSystem.out.println(\"Spawned \" + i + \" new tasks\");\n }\n }",
"@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }",
"@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}",
"void addTask(Task<?> task) {\n tasks.addFirst(task);\n }",
"public void add(Task task){ this.tasks.add(task);}",
"@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void run() {\n task.run();\n }",
"private void m1557a(Task task) {\n synchronized (f1826f) {\n if (f1827g == null) {\n f1827g = new SideChannelManager(this.f1828d.getApplicationContext());\n }\n f1827g.queueTask(task);\n }\n }",
"@Override\n\tpublic Task processTasks(Task task) {\n\t\tint[] solution =knapsackSolverService.solve(task);\n\t\tif(solution!= null) {\n\t\t\ttask =persistTaskAndSolution(task, solution);\n\t\t}\n\t\treturn task;\n\t}",
"final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }",
"public abstract void task();",
"void add(final Task task);",
"public void add(final Task task) {\n }",
"void addTask(Task task);",
"public void startTask() {\n\t}",
"@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}",
"public void addTask(Task t){\n\t\ttry {\n\t\t\taction.put(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void doTask() {\n\t}",
"protected void setupTask(Task task) {\n }",
"@Override\n public void taskStarting() {\n\n }",
"@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}",
"public void taskexecution(Task task) {\n synchronized (list) {\n list.add(task);\n list.notify();\n }\n }",
"public synchronized void execute(Runnable task) throws Exception{\n \n if(threadPoolExecutor.isShutdown()){\n \tSystem.out.println(\"Thread pool \" + \"\" + \" is being Shutdown.\\n\"\n \t\t\t\t\t+ \"No tasks are allowed to be scheduled.\");\n \n }\n //add the task to the queue\n //this will cause a thread in the work pool to pick this up and execute\n queue.put(task);\n System.out.println(\"task has been added.\");\n }",
"private static void threadPoolInit() {\n ExecutorService service = Executors.newCachedThreadPool();\n try {\n for (int i = 1; i <= 10; i++) {\n service.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" 办理业务...\");\n });\n try {\n TimeUnit.MILLISECONDS.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n service.shutdown();\n }\n }",
"@Override\n\t\t\tprotected void beforeExecute(Thread t, Runnable r) {\n\t\t\t\tint qsize = getQueue().size();\n\t\t\t\tif(initCorePoolSize>0&&getCorePoolSize()<getMaximumPoolSize()\n\t\t\t\t\t&& qsize > 0 && (qsize%divisor) == 0){\n\t\t\t\t\tsetCorePoolSize(getCorePoolSize()+1); // 进行动态增加\n\t\t\t\t}\n\t\t\t}",
"protected ForkJoinWorkerThread(ForkJoinPool pool) {\n<<<<<<< HEAD\n super(pool.nextWorkerName());\n this.pool = pool;\n int k = pool.registerWorker(this);\n poolIndex = k;\n eventCount = ~k & SMASK; // clear wait count\n locallyFifo = pool.locallyFifo;\n Thread.UncaughtExceptionHandler ueh = pool.ueh;\n if (ueh != null)\n setUncaughtExceptionHandler(ueh);\n setDaemon(true);\n }",
"private void assignWork(String worker, String task) {\n System.out.println(\"assign work and create node \" + worker + \"/task\");\n zk.setData(worker, task.getBytes(), -1,\n (rc, path, ctx, data) -> {\n System.out.println(KeeperException.Code.get(rc));\n logger.info(\"DISTMASTER: task \" + task + \" has been created\");\n }, null);\n }",
"public void addProcessor(TaskProcessorHandle tph) {\n\t_poolData.addProcessor(tph);\n\tif (tph.hasMainReplicator()) {\n\t ReplicatorHandle rh = tph.getReplicatorHandle();\n\t if (!rh.getName().equals(_replicator.getName())) {\n\t\taddReplicator(rh);\n\t }\n\t}\n }",
"@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }",
"protected TaskFlow( ) { }",
"void event(long t) {\n\r\n \r\n\r\n Job temp;\r\n if (this.TempListMigrating.front != null) { //if there are any new migrating tasks\r\n TempListMigrating.insertionSortIdentifier(this.TempListMigrating.front); //order the TempList, from smallest-largest\r\n\r\n while (this.TempListMigrating.front != null) {\r\n //TempList.calculateD(t);\r\n temp = TempListMigrating.remove();\r\n int assignedProcessor = this.getNextProcessor(temp);\r\n\r\n //add this task to the processor\r\n this.servers[this.Tasks[temp.identifier].index[assignedProcessor]].addToMigratingPool(temp);\r\n\r\n }\r\n }\r\n\r\n while (this.TempListFixed.front != null) {\r\n\r\n temp = TempListFixed.remove();\r\n this.servers[this.Tasks[temp.identifier].index[0]].pool.insertionSortDeadline(temp, t);\r\n\r\n }\r\n\r\n //add things to the processor now\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n if (this.servers[i].executing.top != null) { //not empty, there is a job present\r\n //check for migrating tasks\r\n if (this.servers[i].migratingPool.front != null) {\r\n //there are migrating Tasks, and something on the stack\r\n if (this.Tasks[this.servers[i].executing.top.identifier].numMigrations < 2 || this.Tasks[this.servers[i].executing.top.identifier].fixed == true) { //executing is a fixed task\r\n if (servers[i].migratingPool.front != null) {\r\n //switch\r\n temp = servers[i].executing.top;\r\n servers[i].executing.top = servers[i].migratingPool.remove();\r\n servers[i].pool.insertionSortDeadline(temp, t);\r\n this.preemptions++;\r\n\r\n }\r\n } //if both migrating tasks\r\n else if (this.servers[i].migratingPool.front.identifier < servers[i].executing.top.identifier) {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n } else if (this.servers[i].pool.front != null)//check for fixed tasks\r\n {\r\n if (this.servers[i].pool.front.deadline < servers[i].executing.top.deadline) {\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n }\r\n\r\n } else if (this.servers[i].migratingPool.front != null) //it was empty, add now migrating\r\n {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top=temp;\r\n \r\n \r\n\r\n } else if (this.servers[i].pool.front != null) //executing was empty, and migratingPool was empty, add from fixed list\r\n {\r\n\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n }\r\n\r\n }\r\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}",
"public void addTask(final BTask t) {\n\t\tbloc.addLast(t);\n\t}",
"public static void attachWorkStealingThreadPool(WorkStealingThreadPool myWorkStealingThreadPool) {\n WSP = myWorkStealingThreadPool;\n }",
"void addDoneTask(Task task);",
"@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void addTask(Task task)\n {\n tasks.add(task);\n }",
"@Override\n public void run() {\n runTask();\n\n }",
"public void addPool(ArrayList al) {\n\tsynchronized (al) {\n\t for (int i = 0; i < al.size(); i++) {\n\t\taddProcessor((TaskProcessorHandle)al.get(i));\n\t }\n\t}\n }",
"private void addTaskToServer() {\n\t\twriter.println();\n\t\tSystem.out.println();\n\t\tNumberFormat formatter = new DecimalFormat(\"#0.00000\");\n\t\tfor (Iterator<Task> iterator = this.generatedTasks.iterator(); iterator.hasNext();) {\n\t\t\tTask t = iterator.next();\n\t\t\twriter.println(\"current time=\" + currentTime + \" ,tasks not assigned \" + t.getArrivalTime() + \" \"\n\t\t\t\t\t+ t.getprocessingTime());\n\t\t\tSystem.out.println(\"current time=\" + currentTime + \" ,tasks not assigned \" + t.getArrivalTime() + \" \"\n\t\t\t\t\t+ t.getprocessingTime());\n\t\t\tif (t.getArrivalTime() == currentTime || t.isLateProcessing()) {\n\t\t\t\t// if it can be dispatched\n\t\t\t\tif (this.scheduler.dispatchTask(t) == true)\n\t\t\t\t\titerator.remove();\n\t\t\t\telse\n\t\t\t\t\tt.setLateProcessing(true);\n\t\t\t}\n\t\t}\n\t}",
"protected abstract void createTasks();",
"@Override\r\n\tvoid execute(Runnable task);",
"worker(long workOn) {\n this.workOn = workOn;\n }",
"public void add(Task task) {\r\n tasks.add(task);\r\n }",
"void doWork(AbstractTaskList list);",
"void allocateWorker(Work work);",
"public abstract void task() throws InterruptedException;",
"public void addTask(Task task) {\n tasks.add(task);\n }",
"public void addTask(Task task) {\n tasks.add(task);\n }",
"public void addTask(Task task) {\n tasks.add(task);\n }",
"public void add(Task task)\n {\n this.tasks.add(task);\n }",
"public void updateTask() {}",
"@Override\r\n\tpublic void subTask(String name) {\n\t}",
"@Override\n public void runTask() {\n PortugueseDistrictImportAuxiliaryServices aux = PortugueseDistrictImportAuxiliaryServices.getInstance();\n aux.executeTask(this);\n }",
"private static void executeTask02() {\n }",
"@Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }",
"protected void postTask(Task __task) {\r\n\t\tlock.lock();\r\n\t\ttry {\r\n\t\t\ttaskList.addLast(__task);\r\n\t\t\tcondition.signalAll();\r\n\t\t} finally {\r\n\t\t\tlock.unlock();\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}",
"private void workOnQueue() {\n }",
"private static void threadPoolWithExecute() {\n\n Executor executor = Executors.newFixedThreadPool(3);\n IntStream.range(1, 10)\n .forEach((i) -> {\n executor.execute(() -> {\n System.out.println(\"started task for id - \"+i);\n try {\n if (i == 8) {\n Thread.sleep(4000);\n } else {\n Thread.sleep(1000);\n }\n System.out.println(\"In runnable task for id -\" + i);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n });\n System.out.println(\"End of method .THis gets printed immdly since execute is not blocking call\");\n }",
"public void add(MiningTask mt) {\n miningTasks.add(mt);\n }",
"private TransferDispatcher() {\n taskList=new Vector();\n }",
"@Override\n\tpublic void initTask() {\n\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\tif(rankInfo!=null){\n\t\t\tgetTask().getTaskInfo().setProcess((int)rankInfo.getSoul());\n\t\t}\n\t}",
"private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }",
"@Override\n public void execute(final Task<T> task) {\n }",
"public void createTasks(Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP, String _port, String _location, long timestamp, Object _appSpecific){ \r\n //System.out.print(\"Create tasks\");\r\n boolean flag = false;\r\n String defaultIP = \"-1\";\r\n String defaultPort = \"-1\";\r\n \r\n //use wildcard to let one worker randomly choose the job to run\r\n //System.out.println(\"---What is optID: \" +_optID);\r\n if(_destIP.equals(\"RANDOM\")){\r\n int tempTaskID = getUpdatedTaskID();\r\n \r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,defaultIP,_info1,_info2,defaultPort,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n }\r\n //send tuples to all\r\n else if(_destIP.equals(\"ALL\")){\r\n //Iterate through all sites that subscribe to certain types of task \r\n //System.out.println(\"infoSys.getSiteList(): \"+infoSys.getSiteList());\r\n Iterator it = infoSys.getSiteList().entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry entry = (Map.Entry) it.next();\r\n _destIP = ((String) entry.getKey());\r\n ConcurrentHashMap<String, String> subscribeType = (ConcurrentHashMap<String, String>) entry.getValue();\r\n \r\n //option 2, if there is multiple subscribers of a certain taskType in one site\r\n Iterator subIt = subscribeType.entrySet().iterator();\r\n while (subIt.hasNext()) {\r\n Map.Entry subEntry = (Map.Entry) subIt.next();\r\n String[] typeAndAssociate = subEntry.getValue().toString().split(\",\");\r\n if (typeAndAssociate[0].equals(_tupleTag) && typeAndAssociate[1].equals(_taskType)) {\r\n _port = subEntry.getKey().toString();\r\n\r\n int tempTaskID = getUpdatedTaskID();\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP, _info1,_info2,_port,_location, timestamp,_appSpecific);\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n \r\n }\r\n }\r\n }\r\n }\r\n //if user choose one specific worker, only send the message to it\r\n else{ \r\n //System.out.println(infoSys.getSiteList());\r\n //Check if this subscriber exists\r\n if (infoSys.hasAssociateSubscriber(_destIP, _port)) {\r\n int tempTaskID = getUpdatedTaskID();\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP,_info1,_info2,_port,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n insertTask(tempTaskID);\r\n } else {\r\n System.out.println(\"Incorrect destIP or destPort for creating task!\");\r\n }\r\n } \r\n //create entry in resultList\r\n addEntryToResultList(_optID,flag);\r\n }",
"public void execute(Runnable task) {\n Objects.requireNonNull(task, \"Task must not be null\");\n if (isStopped) {\n // throw new IllegalStateException(\"WorkerPoolExecutor has been stopped!\");\n System.out.println(\"WorkerPoolExecutor has been stopped!\");\n }\n taskQueue.add(task);\n }",
"String addTask(Task task);",
"public void execute(final DispatchTask task, final DeliverTask callback)\n {\n // Note that we associate a callback with a task via the thread used to \n // execute the task. In general, a free slot in the pool (i.e., m_pool[i] is \n // null) can be used to set-up a new thread. Also note that we need to \n // update the LRU index if we change the pool.\n synchronized(m_lock)\n {\n if(m_closed)\n {\n // We are closed hence, spin-of a new thread for the new task.\n final PooledThread result = new PooledThread();\n \n // Set-up the thread and associate the task with the callback.\n result.reset(task, callback);\n \n // release the thread immediately since we don't pool anymore.\n result.release();\n \n return;\n }\n \n // Search in the pool for a free thread.\n for (int i = 0; i < m_pool.length; i++)\n {\n // o.k. we found a free slot now set-up a new thread for it.\n if (null == m_pool[i])\n {\n m_pool[i] = new PooledThread();\n\n m_pool[i].reset(task, callback);\n \n m_index.add(new Integer(i));\n \n return;\n }\n else if (m_pool[i].available())\n {\n // we found a free thread now set it up.\n m_pool[i].reset(task, callback);\n \n final Integer idx = new Integer(i);\n \n m_index.remove(idx);\n \n m_index.add(idx);\n \n return;\n }\n }\n\n // The pool is full and no threads are available hence, spin-off a new\n // thread and add it to the pool while decoupling the least recently used\n // one. This assumes that older threads are likely to take longer to \n // become available again then younger ones.\n final int pos = ((Integer) m_index.remove(0)).intValue();\n \n m_index.add(new Integer(pos));\n \n m_pool[pos].release();\n\n m_pool[pos] = new PooledThread();\n\n m_pool[pos].reset(task, callback);\n }\n }",
"abstract void doTaskOnRun();",
"OMMPool getPool();",
"public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }",
"public void doAllTasks() throws Exception {\n final GenericInitializer<E,T> initializer = config.getInitializer();\n final TaskFactory<E,T,GenericInitializer<E,T>> initTaskFac = config.getInitFactory();\n final ObjectCache<GenericInitializer<E,T>> initCache = new ObjectCache<>(2*threads,initializer);\n \n final long sT = System.currentTimeMillis();\n List<Task<T>> initTasks = comm.getInitialTasks(maxTasks,myID);\n final long mT = System.currentTimeMillis();\n initFetchTimeMS += mT-sT;\n initChunksGotten++;\n \n do{\n noInits = initTasks.size();\n if(noInits == 0){\n // nothing to be done, kinda weird.\n System.out.println(\"WARNING: No tasks gotten for threading backend \" + myID + \" continuing but wondering...\");\n break;\n }\n // kind of subptimal but we need to get the ID offset\n currIDStart = (int) initTasks.get(0).getDummyAnswer(myID).getResult().getID();\n \n if(DEBUG){System.out.println(\"DEBUG: Starting with ID \" + currIDStart + \" we have \" + initTasks.size() + \" tasks to init.\");}\n\n final long tOff = System.currentTimeMillis();\n doXXX(threads, initTaskFac, initCache, initTasks);\n final long tMid = System.currentTimeMillis();\n initWorkTimeMS += (tMid-tOff);\n \n final boolean doneYet = synchronizePools(true);\n if(!doneYet){\n initTasks = comm.getInitialTasks(maxTasks,myID);\n initChunksGotten++;\n } else {\n initTasks.clear(); // not strictly necessary, I think\n }\n final long tEnd = System.currentTimeMillis();\n initFetchTimeMS += (tEnd-tMid);\n \n } while(!initTasks.isEmpty());\n \n // merge pools, technically this should have happened before already. However, this does not hurt and synchronizes even further.\n synchronizePools(false);\n \n ISINIT = false;\n \n // then do globopt tasks (setup task factory and cachers)\n final GenericGlobalOptimization<E,T> globopt = config.getGlobalOptimization();\n final ObjectCache<GenericGlobalOptimization<E,T>> globCache = new ObjectCache<>(2*threads,globopt);\n TaskFactory<E,T,GenericGlobalOptimization<E,T>> globTasks = new GlobTaskFactory<>();\n\n while(!comm.isEverythingDone()){\n \n final long tOff = System.currentTimeMillis();\n doXXX(threads, globTasks, globCache, (int) currIDStart, (int) tasksGotten);\n final long tMid = System.currentTimeMillis();\n optWorkTimeMS += (tMid-tOff);\n \n final boolean done = synchronizePools(false);\n final long tEnd = System.currentTimeMillis();\n optFetchTimeMS += (tEnd-tMid);\n \n if(done) {break;}\n }\n }",
"@Override\n public void start(int totalTasks) {\n }",
"private void arrangeSingleTask(final Task task) {\n\t\ttask.arrangeTask(list,markerStatus,0);\n \tif (task.isReverseScheduled())\n\t\t\tnumberOfReverseScheduledTasks++;\n\t}",
"public void beginTask(String tr) {\n\t\t\n\t}",
"public SynchronousTimeLimitedTask() {\n _steps = new ArrayDeque<BooleanSupplier>();\n }",
"public void submit(Runnable task){\n\t\tStatusTask stask = new StatusTask(task,this);\n\t\tpending.add(stask);\n\t}",
"void addSubTask(AuctionTask task);",
"@Override\n\tvoid startWork() {\n\t\t\n\t}",
"@Override\n\tvoid startWork() {\n\t\t\n\t}",
"SchreibThread(Puffer puf) {\n this.puf = puf;\n }",
"private void ejecutorDeServicio(){\r\n dbExeccutor = Executors.newFixedThreadPool(\r\n 1, \r\n new databaseThreadFactory()\r\n ); \r\n }",
"private void processTask() {\r\n Task task;\r\n int counter = newTasks.size(); // don't include new tasks produced in the current cycle\r\n while (counter-- > 0) { // process the newTasks of the previous cycle\r\n task = (Task) newTasks.remove(0);\r\n if (task.getSentence().isInput() || (termToConcept(task.getContent()) != null)) // new input or existing concept\r\n immediateProcess(task); // immediate process\r\n else\r\n taskBuffer.putIn(task); // postponed process\r\n }\r\n task = (Task) taskBuffer.takeOut(); // select a task from taskBuffer\r\n if (task != null)\r\n immediateProcess(task); // immediate process\r\n }",
"void addDoneTasks(List<Task> task);",
"public void submitTask(WikiTask<?> task) {\n\n\t\t// get thread pool\n\t\tServletContext context = VaadinServlet.getCurrent().getServletContext();\n\t\tExecutorService threadPool = (ExecutorService) context.getAttribute(\"threadPool\");\n\n\t\t// submit task\n\t\tthreadPool.submit(task);\n\t}",
"public Task makeTask() {\n Task genTask = new Task(this, state, generateLocationInNeighborhood());\n\n\n //state.printlnSynchronized(\"base bounty in neighborhood \" + id + \" is = \" + (totalTime / count));\n genTask.setBaseBounty(getBaseBounty(genTask.getJob().jobType, genTask));\n double br = getBountyRate(genTask.getLocation(),genTask.getJob().jobType);\n totalBr += br;\n genTask.setBountyRate(br);\n\n\n totalBaseBounty += genTask.getBounty();\n tasks.add(genTask);\n\n totalNumTasksGenerated++;\n return genTask;\n }",
"public void addTask(Task task) {\n list.add(task);\n }",
"public void addTask(Task task) {\n\t\tMessage msg=new Message(null, null, task);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}",
"public void subTask(String tr) {\n\t\t\n\t}",
"WorkingTask getWorkingTask();",
"public void removeTasks() {\n\t\t\r\n\t}",
"@Override\n\tpublic void myWork() {\n\t\t\n\t}"
] | [
"0.67768234",
"0.6710273",
"0.6555545",
"0.65408045",
"0.65354276",
"0.649885",
"0.6483722",
"0.6483676",
"0.64195853",
"0.63740975",
"0.63418114",
"0.633638",
"0.633196",
"0.6207948",
"0.61976236",
"0.61798465",
"0.6178232",
"0.6159152",
"0.61449337",
"0.61345524",
"0.613271",
"0.6129219",
"0.6091627",
"0.60742104",
"0.6055325",
"0.60454917",
"0.603277",
"0.60317665",
"0.59910804",
"0.5969119",
"0.59644294",
"0.59620446",
"0.59538937",
"0.5942675",
"0.5941821",
"0.59309673",
"0.5930017",
"0.59292644",
"0.5926752",
"0.59167886",
"0.58952236",
"0.5882059",
"0.5875282",
"0.5871669",
"0.58620715",
"0.58569",
"0.58398783",
"0.58354217",
"0.58312094",
"0.5823908",
"0.5822559",
"0.58184105",
"0.58116275",
"0.5800681",
"0.5791699",
"0.5791699",
"0.5791699",
"0.578595",
"0.578374",
"0.57786596",
"0.5769217",
"0.5756914",
"0.57442874",
"0.5742942",
"0.57361937",
"0.5719723",
"0.5716799",
"0.5715374",
"0.5710313",
"0.56924546",
"0.568836",
"0.56831294",
"0.5673309",
"0.56665057",
"0.56637573",
"0.56629485",
"0.566198",
"0.5661142",
"0.5660945",
"0.5654419",
"0.56531304",
"0.56526655",
"0.5649348",
"0.5640681",
"0.5638433",
"0.56300145",
"0.56289166",
"0.56289166",
"0.5626449",
"0.56261915",
"0.56259763",
"0.5624742",
"0.5616485",
"0.56114143",
"0.56102556",
"0.56048614",
"0.560371",
"0.56001073",
"0.5599011",
"0.55986935"
] | 0.6905372 | 0 |
Component define from which modules dependencies are provided | @SingleScope
@Component(modules = ModuleDatabase.class)
public interface SavedComponent {
WorkWithDatabase getDatabase();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Component(\n modules = {\n ComputerModule.class,\n AccessoriesModule.class,\n DrinksModule.class\n }\n)\npublic interface DemoComponent {\n\n Programmer programmer();\n void inject(MainActivity activity);\n\n}",
"Requires getRequires();",
"@Component(modules = AppModule.class)\npublic interface AppComponent {\n\n\n EventListComponent plus(EventListModule eventListModule);\n\n EventDetailComponent plus(EventDetailModule eventDetailModule);\n\n}",
"@Singleton\n@Component(modules ={LibsModule.class, MyPhotoGalleryAppModule.class})\npublic interface LibsComponent {\n}",
"public void connectDependencies();",
"@Component(\n modules = {\n StoreModule.class,\n }\n)\npublic interface StoreComponent {\n\n ShoppingComponent newShoppingComponent(CustomerModule customerModule);\n\n}",
"@Singleton\n@Component(\n modules = {\n AppModule.class,\n DataModule.class,\n InfoModule.class,\n FlavorModule.class\n }\n)\npublic interface AppComponent {\n\n void inject(HardwiredApp app);\n void inject(AddComputerDialog dialog);\n void inject(ComputerRecyclerAdapter adapter);\n\n DirectoryComponent plus(DirectoryModule module);\n DetailComponent plus(DetailModule module);\n}",
"public static void initializeDiContainer() {\n addDependency(new CamelCaseConverter());\n addDependency(new JavadocGenerator());\n addDependency(new TemplateResolver());\n addDependency(new PreferenceStoreProvider());\n addDependency(new CurrentShellProvider());\n addDependency(new ITypeExtractor());\n addDependency(new DialogWrapper(getDependency(CurrentShellProvider.class)));\n addDependency(new PreferencesManager(getDependency(PreferenceStoreProvider.class)));\n addDependency(new ErrorHandlerHook(getDependency(DialogWrapper.class)));\n\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new GeneratedAnnotationPredicate());\n addDependency(new GenericModifierPredicate());\n addDependency(new IsPrivatePredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsStaticPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsPublicPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new GeneratedAnnotationContainingBodyDeclarationFilter(getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new PrivateConstructorRemover(getDependency(IsPrivatePredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new BuilderClassRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class),\n getDependency(IsPrivatePredicate.class),\n getDependency(IsStaticPredicate.class),\n getDependency(PreferencesManager.class)));\n addDependency(new JsonDeserializeRemover(getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderInterfaceRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new StaticBuilderMethodRemover(getDependency(IsStaticPredicate.class), getDependency(IsPublicPredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BuilderAstRemover(getDependencyList(BuilderRemoverChainItem.class)));\n\n addDependency(new BuilderRemover(getDependency(PreferencesManager.class), getDependency(ErrorHandlerHook.class),\n getDependency(BuilderAstRemover.class)));\n addDependency(new CompilationUnitSourceSetter());\n addDependency(new HandlerUtilWrapper());\n addDependency(new WorkingCopyManager());\n addDependency(new WorkingCopyManagerWrapper(getDependency(HandlerUtilWrapper.class)));\n addDependency(new CompilationUnitParser());\n addDependency(new GeneratedAnnotationPopulator(getDependency(PreferencesManager.class)));\n addDependency(new MarkerAnnotationAttacher());\n addDependency(new ImportRepository());\n addDependency(new ImportPopulator(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new BuilderMethodNameBuilder(getDependency(CamelCaseConverter.class),\n getDependency(PreferencesManager.class),\n getDependency(TemplateResolver.class)));\n addDependency(new PrivateConstructorAdderFragment());\n addDependency(new JsonPOJOBuilderAdderFragment(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new EmptyBuilderClassGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocGenerator.class),\n getDependency(TemplateResolver.class),\n getDependency(JsonPOJOBuilderAdderFragment.class)));\n addDependency(new BuildMethodBodyCreatorFragment());\n addDependency(new BuildMethodDeclarationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(TemplateResolver.class)));\n addDependency(new JavadocAdder(getDependency(JavadocGenerator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuildMethodCreatorFragment(getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(BuildMethodBodyCreatorFragment.class)));\n addDependency(new FullyQualifiedNameExtractor());\n addDependency(new StaticMethodInvocationFragment());\n addDependency(new OptionalInitializerChainItem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new BuiltInCollectionsInitializerChainitem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new FieldDeclarationPostProcessor(getDependency(PreferencesManager.class), getDependency(FullyQualifiedNameExtractor.class),\n getDependency(ImportRepository.class), getDependencyList(FieldDeclarationPostProcessorChainItem.class)));\n addDependency(new BuilderFieldAdderFragment(getDependency(FieldDeclarationPostProcessor.class)));\n addDependency(new WithMethodParameterCreatorFragment(getDependency(PreferencesManager.class), getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new RegularBuilderWithMethodAdderFragment(getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new BuilderFieldAccessCreatorFragment());\n addDependency(new TypeDeclarationToVariableNameConverter(getDependency(CamelCaseConverter.class)));\n addDependency(new FieldSetterAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new IsRegularBuilderInstanceCopyEnabledPredicate(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderCopyInstanceConstructorAdderFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new PublicConstructorWithMandatoryFieldsAdderFragment());\n addDependency(new RegularBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(RegularBuilderWithMethodAdderFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(RegularBuilderCopyInstanceConstructorAdderFragment.class),\n getDependency(PublicConstructorWithMandatoryFieldsAdderFragment.class)));\n addDependency(new StaticBuilderMethodSignatureGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new BlockWithNewBuilderCreationFragment());\n addDependency(\n new RegularBuilderBuilderMethodCreator(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new PrivateConstructorMethodDefinitionCreationFragment(getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new SuperFieldSetterMethodAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new PrivateConstructorBodyCreationFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(FieldSetterAdderFragment.class),\n getDependency(BuilderFieldAccessCreatorFragment.class),\n getDependency(SuperFieldSetterMethodAdderFragment.class)));\n addDependency(new ConstructorInsertionFragment());\n addDependency(new PrivateInitializingConstructorCreator(\n getDependency(PrivateConstructorMethodDefinitionCreationFragment.class),\n getDependency(PrivateConstructorBodyCreationFragment.class),\n getDependency(ConstructorInsertionFragment.class)));\n addDependency(new FieldPrefixSuffixPreferenceProvider(getDependency(PreferenceStoreProvider.class)));\n addDependency(new FieldNameToBuilderFieldNameConverter(getDependency(PreferencesManager.class),\n getDependency(FieldPrefixSuffixPreferenceProvider.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new TypeDeclarationFromSuperclassExtractor(getDependency(CompilationUnitParser.class),\n getDependency(ITypeExtractor.class)));\n addDependency(new BodyDeclarationVisibleFromPredicate());\n addDependency(new ApplicableFieldVisibilityFilter(getDependency(BodyDeclarationVisibleFromPredicate.class)));\n addDependency(new ClassFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(ApplicableFieldVisibilityFilter.class)));\n addDependency(new RecordFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class)));\n addDependency(new BodyDeclarationFinderUtil(getDependency(CamelCaseConverter.class)));\n addDependency(new SuperConstructorParameterCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(BodyDeclarationVisibleFromPredicate.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new SuperClassSetterFieldCollector(getDependency(PreferencesManager.class),\n getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(CamelCaseConverter.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new ApplicableBuilderFieldExtractor(Arrays.asList(\n getDependency(SuperConstructorParameterCollector.class),\n getDependency(ClassFieldCollector.class),\n getDependency(SuperClassSetterFieldCollector.class),\n getDependency(RecordFieldCollector.class))));\n addDependency(new ActiveJavaEditorOffsetProvider());\n addDependency(new ParentITypeExtractor());\n addDependency(new IsTypeApplicableForBuilderGenerationPredicate(getDependency(ParentITypeExtractor.class)));\n addDependency(new CurrentlySelectedApplicableClassesClassNameProvider(getDependency(ActiveJavaEditorOffsetProvider.class),\n getDependency(IsTypeApplicableForBuilderGenerationPredicate.class),\n getDependency(ParentITypeExtractor.class)));\n addDependency(new BuilderOwnerClassFinder(getDependency(CurrentlySelectedApplicableClassesClassNameProvider.class),\n getDependency(PreferencesManager.class), getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new BlockWithNewCopyInstanceConstructorCreationFragment());\n addDependency(new CopyInstanceBuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new RegularBuilderCopyInstanceBuilderMethodCreator(getDependency(BlockWithNewCopyInstanceConstructorCreationFragment.class),\n getDependency(CopyInstanceBuilderMethodDefinitionCreatorFragment.class),\n getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new JsonDeserializeAdder(getDependency(ImportRepository.class)));\n addDependency(new GlobalBuilderPostProcessor(getDependency(PreferencesManager.class), getDependency(JsonDeserializeAdder.class)));\n addDependency(new DefaultConstructorAppender(getDependency(ConstructorInsertionFragment.class), getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new RegularBuilderCompilationUnitGenerator(getDependency(RegularBuilderClassCreator.class),\n getDependency(RegularBuilderCopyInstanceBuilderMethodCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(RegularBuilderBuilderMethodCreator.class), getDependency(ImportPopulator.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new RegularBuilderUserPreferenceDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new RegularBuilderDialogDataConverter());\n addDependency(new RegularBuilderUserPreferenceConverter(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderUserPreferenceProvider(getDependency(RegularBuilderUserPreferenceDialogOpener.class),\n getDependency(PreferencesManager.class),\n getDependency(RegularBuilderDialogDataConverter.class),\n getDependency(RegularBuilderUserPreferenceConverter.class)));\n addDependency(new RegularBuilderCompilationUnitGeneratorBuilderFieldCollectingDecorator(getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(RegularBuilderCompilationUnitGenerator.class),\n getDependency(RegularBuilderUserPreferenceProvider.class)));\n addDependency(new IsEventOnJavaFilePredicate(getDependency(HandlerUtilWrapper.class)));\n\n // staged builder dependencies\n addDependency(new StagedBuilderInterfaceNameProvider(getDependency(PreferencesManager.class),\n getDependency(CamelCaseConverter.class),\n getDependency(TemplateResolver.class)));\n addDependency(new StagedBuilderWithMethodDefiniationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new StagedBuilderInterfaceTypeDefinitionCreatorFragment(getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderInterfaceCreatorFragment(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new StagedBuilderCreationBuilderMethodAdder(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new NewBuilderAndWithMethodCallCreationFragment());\n addDependency(new StagedBuilderCreationWithMethodAdder(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(NewBuilderAndWithMethodCallCreationFragment.class), getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderStaticBuilderCreatorMethodCreator(getDependency(StagedBuilderCreationBuilderMethodAdder.class),\n getDependency(StagedBuilderCreationWithMethodAdder.class),\n getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderWithMethodAdderFragment(\n getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new InterfaceSetter());\n addDependency(new StagedBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(StagedBuilderWithMethodAdderFragment.class),\n getDependency(InterfaceSetter.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new StagedBuilderStagePropertyInputDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new StagedBuilderStagePropertiesProvider(getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(StagedBuilderStagePropertyInputDialogOpener.class)));\n addDependency(new StagedBuilderCompilationUnitGenerator(getDependency(StagedBuilderClassCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(StagedBuilderStaticBuilderCreatorMethodCreator.class),\n getDependency(ImportPopulator.class),\n getDependency(StagedBuilderInterfaceCreatorFragment.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new StagedBuilderCompilationUnitGeneratorFieldCollectorDecorator(\n getDependency(StagedBuilderCompilationUnitGenerator.class),\n getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(StagedBuilderStagePropertiesProvider.class)));\n\n // Generator chain\n addDependency(new GenerateBuilderExecutorImpl(getDependency(CompilationUnitParser.class),\n getDependencyList(BuilderCompilationUnitGenerator.class),\n getDependency(IsEventOnJavaFilePredicate.class), getDependency(WorkingCopyManagerWrapper.class),\n getDependency(CompilationUnitSourceSetter.class),\n getDependency(ErrorHandlerHook.class),\n getDependency(BuilderOwnerClassFinder.class)));\n addDependency(new GenerateBuilderHandlerErrorHandlerDecorator(getDependency(GenerateBuilderExecutorImpl.class),\n getDependency(ErrorHandlerHook.class)));\n addDependency(new StatefulBeanHandler(getDependency(PreferenceStoreProvider.class),\n getDependency(WorkingCopyManagerWrapper.class), getDependency(ImportRepository.class)));\n addDependency(\n new StateInitializerGenerateBuilderExecutorDecorator(\n getDependency(GenerateBuilderHandlerErrorHandlerDecorator.class),\n getDependency(StatefulBeanHandler.class)));\n }",
"@Component(modules = ActivityModule.class)\npublic interface ActivityComponent {\n\n void injectMainActivity(MainActivity activity);\n\n void injectGankActivity(GankActivity activity);\n\n void injectListActivity(ListActivity activity);\n\n void injectMeiziActivity(MeiziActivity activity);\n\n void injectVideoActivity(VideoActivity activity);\n\n void injectWebActivity(WebActivity activity);\n\n}",
"@Subcomponent(modules = FoodModule.class)\npublic interface SubComponent {\n void inject(ThirdActivity activity);\n}",
"@Component(modules = WheelsModule.class)\npublic interface CarComponent {\n Car getCar();\n void inject(MainActivity activity); //se necesita declarar especificamente la activity para la forma 2\n}",
"@Component(modules = {LocalModule.class, NetworkModule.class}, dependencies = ApplicationComponent.class)\npublic interface BaseComponent {\n\n OKHttp getOkHTTP();\n\n Retrofit getRetrofit();\n\n LocalDataCache getLocalDataCache();\n}",
"@Singleton\n@Component(\n modules = {\n AppModule.class,\n MovieDBApiModule.class\n })\npublic interface AppComponent {\n\n MainActivityComponent plus(MainActivityModule mainActivityModule);\n\n DetailActivityComponent plus(DetailActivityModule detailActivityModule);\n\n}",
"@Singleton\n@Component(\n modules = {\n AppModule.class,\n ObjectBoxModule.class\n })\npublic interface AppComponent {\n void inject(ToDoListActivity activity);\n void inject(TaskEditorActivity activity);\n //void inject(ICommonRepository repository);\n //ICommonRepository repo();\n}",
"protected void initModules()\n {\n\n }",
"@Component(modules = CarModule.class)\npublic interface ManComponent {\n void injectMan(Man man);\n}",
"public interface MauModule {\r\n\t/**\r\n\t * Initializes the module and loads all the configurations and everything else that needs to be\r\n\t * loaded.\r\n\t * \r\n\t * @param plugin The hosting instance of Maussentials.\r\n\t */\r\n\tpublic void load(Maussentials plugin);\r\n\t\r\n\t/**\r\n\t * Unload the MauModule.\r\n\t */\r\n\tpublic void unload();\r\n\t\r\n\t/**\r\n\t * @return True, if the module is loaded. False otherwise.\r\n\t */\r\n\tpublic boolean isLoaded();\r\n\t\r\n\t/**\r\n\t * Get the list of module names that this module depends on.\r\n\t */\r\n\tpublic default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}\r\n}",
"@Component(dependencies = ApplicationComponent.class)\npublic interface HttpComponent {\n\n void inject(VideoFragment videoFragment);\n\n void inject(DetailFragment detailFragment);\n\n void inject(JdDetailFragment jdDetailFragment);\n\n void inject(ImageBrowseActivity imageBrowseActivity);\n\n void inject( com.lunioussky.orirea.ui.news.DetailFragment detailFragment);\n\n void inject(ArticleReadActivity articleReadActivity);\n\n void inject(NewsFragment newsFragment);\n\n}",
"@Component(modules = AppModule.class)\npublic interface AppComponent\n{\n MemeHomeComponent add(MemeHomeModule memeHomeModule);\n CreateMemeComponent add(CreateMemeModule createMemeModule);\n SmartSearchComponent add(SmartSearchModule smartSearchModule);\n}",
"@Singleton\n@Component(modules = {ViewModule.class, NetworkModule.class, MapModule.class})\npublic interface ErrandComponent {\n void inject(MapsActivity mapsActivity);\n\n}",
"@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n ModuleA moduleA();\n}",
"@Singleton\n@Component(modules = {RecipeRepositoryModule.class, DbModule.class,\n PreferenceModule.class, BakingAppModule.class})\npublic interface RecipeRepositoryComponent {\n DataRepository getDataRecipeRepository();\n}",
"@Override\n\tprotected void addDependencies() {\n\t\tSelectedParameter selectedParameter = (SelectedParameter) kernelType.getValue();\n\t\tSelectedParameterItem item = selectedParameter.getItems().get(selectedParameter.getSelectedIndex());\n\n\t\tif (linearKernel.equals(item)) {\n\t\t\taddDependency(\"linearKernel\");\n\t\t} else if (polynomialKernel.equals(item)) {\n\t\t\taddDependency(\"polynomialKernel\");\n\t\t} else if (radialBasisKernel.equals(item)) {\n\t\t\taddDependency(\"radialBasisKernel\");\n\t\t} else if (sigmoidKernel.equals(item)) {\n\t\t\taddDependency(\"sigmoidKernel\");\n\t\t}\n\t}",
"public interface ConfigurableComponentProvider extends ComponentProvider {\n\n}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n\t\tCollection<Class<? extends IFloodlightService>> l =\n\t\t new ArrayList<Class<? extends IFloodlightService>>();\n\t\t l.add(IFloodlightProviderService.class);\n\t\t l.add(ITopologyService.class);\n\t\t return l;\n\t}",
"protected abstract void injectDependencies(ApplicationComponent applicationComponent);",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class,\n modules = {CarSelectionModule.class})\npublic interface CarSelectionComponent {\n\n void inject(CarTypesActivity activity);\n void inject(CarTypesFragment fragment);\n\n void inject(MainTypesActivity activity);\n void inject(MainTypesFragment fragment);\n\n void inject(BuiltDatesActivity activity);\n void inject(BuiltDatesFragment fragment);\n}",
"public interface ModulesController {\n\n public static final String MODULES_CONTROLLER_ATTRIBUTE_KEY =\n \"com.google.appengine.dev.modules_controller\";\n\n /**\n * Enum for tracking the state of a module (running/stopped).\n */\n public enum ModuleState {\n RUNNING,\n STOPPED;\n\n @Override\n public String toString() {\n return this.name().toLowerCase();\n }\n }\n\n /**\n * Returns all the known module names.\n */\n Iterable<String> getModuleNames();\n\n /**\n * Returns all known versions of the requested module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n Iterable<String> getVersions(String moduleName) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the default version for a named module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n String getDefaultVersion(String moduleName) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the number of instances for the requested module version.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE}\n * if the requested version is not configured.\n */\n int getNumInstances(String moduleName, String version) throws ApiProxy.ApplicationException;\n\n /**\n * Sets the number of instances for the requested module version.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE}\n * if the requested version is not configured for setting instances\n * {@link com.google.appengine.api.modules.ModulesServicePb.ModulesServiceError\n * .ErrorCode#INVALID_INSTANCES} if numInstances is not a legal value.\n */\n void setNumInstances(String moduleName, String version, int numInstances)\n throws ApiProxy.ApplicationException;\n\n\n /**\n * Returns the host name of the requested module version instance.\n *\n * @param moduleName the moduleName whose host we return.\n * @param version the version whose host we return.\n * @param instance the instance whose host we return or {@link com.google.appengine\n * .tools.development.LocalEnvironment#MAIN_INSTANCE}\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE}\n * if the requested version is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_INSTANCES_VALUE}\n * if the requested instance is not configured.\n */\n String getHostname(String moduleName, String version, int instance)\n throws ApiProxy.ApplicationException;\n\n /**\n * Starts the requested module version.\n * @throws ApiProxy.ApplicationException {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not a configured manual scaling module and\n * {@link com.google.appengine.api.modules.ModulesServicePb.ModulesServiceError\n * .ErrorCode#INVALID_VERSION_VALUE} if the requested version is not configured or is not a\n * manual scaling module and {@link com.google.appengine.api.modules.ModulesServicePb\n * .ModulesServiceError.ErrorCode#UNEXPECTED_STATE} if the module instance is\n * not stopped and ready to be started.\n */\n void startModule(String moduleName, String version) throws ApiProxy.ApplicationException;\n\n /**\n * Stops the requested module version.\n * @throws ApiProxy.ApplicationException {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not a configured manual scaling module and\n * {@link com.google.appengine.api.modules.ModulesServicePb\n * .ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE} if the requested\n * version is not configured or is not a manual scaling module and\n * {@link com.google.appengine.api.modules.ModulesServicePb.ModulesServiceError\n * .ErrorCode#UNEXPECTED_STATE} if the module instance is not running and ready to be stopped.\n */\n void stopModule(String moduleName, String version) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the type of scaling in use for this module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n String getScalingType(String moduleName) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the current state of this module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n ModuleState getModuleState(String moduleName) throws ApiProxy.ApplicationException;\n}",
"@Singleton\n@Component(modules = {UseCaseModule.class, RepositoryModule.class})\npublic interface IRepositoryComponent {\n}",
"protected void setDependencies() {\n\t\t\n\t}",
"public interface IModuleRepo {\n\n /**\n * @return true if this repository has been initialized.\n */\n boolean isInitialized();\n\n /**\n * Initializes the repository.\n */\n void initialize(int shards, Integer shardIndex, File testsDir, Set<IAbi> abis,\n List<String> deviceTokens, List<String> testArgs, List<String> moduleArgs,\n Set<String> mIncludeFilters, Set<String> mExcludeFilters,\n MultiMap<String, String> metadataIncludeFilters,\n MultiMap<String, String> metadataExcludeFilters,\n IBuildInfo buildInfo);\n\n /**\n * @return a {@link LinkedList} of all modules to run on the device referenced by the given\n * serial.\n */\n LinkedList<IModuleDef> getModules(String serial, int shardIndex);\n\n /**\n * @return the number of shards this repo is initialized for.\n */\n int getNumberOfShards();\n\n /**\n * @return the modules which do not have token and have not been assigned to a device.\n */\n List<IModuleDef> getNonTokenModules();\n\n /**\n * @return the modules which have token and have not been assigned to a device.\n */\n List<IModuleDef> getTokenModules();\n\n /**\n * @return An array of all module ids in the repo.\n */\n String[] getModuleIds();\n\n /**\n * Clean up all internal references.\n */\n void tearDown();\n}",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class,modules = {ActivityModule.class, GeneralModule.class})\npublic interface GeneralComponent extends ActivityComponent{\n void inject(GitUsersActivity activity);\n}",
"@Component(modules = {ActivityModule.class})\npublic interface ActivityComponent {\n// void inject(MainActivity mainActivity);\n UserModule userModule();\n}",
"@SubActivity\n@Component(modules = {ActivityModule.class})\npublic interface ActivityComponent{\n\n}",
"@Singleton\n@Component(modules = {ApiModule.class, CarWashCardModule.class})\npublic interface CarWashCardComponent {\n void Inject(CarWashCardFrgm carWashCardFrgm);\n void Inject(CardBagAct cardBagAct);\n}",
"public InjectingComponentType() {\n }",
"@Singleton\n@Component(modules = {AppModule.class, NetworkModule.class,PresenterModule.class})\npublic interface AppComponent {\n\n // void inject(DisplayMovieActivity displayMovieActivity );\n\n //register main activity it will need objects for injection\n void inject(MoviesListFragment moviesListFragment);\n\n //register MainPresenter it will need objects for injection\n void inject(MoviesListPresenter moviesListPresenter);\n\n void inject(MoviesDetailsFragment moviesDetailsFragment);\n void inject(MoviesDetailsPresenter moviesDetailsPresenter);\n\n\n}",
"@Singleton\n@Component(modules = {NetworkModule.class,})\npublic interface CarsComponent {\n void inject(CarsActivity carsActivity);\n\n}",
"@Singleton // Constraints this component to one-per-application or unscoped bindings.\n@Component(modules = {\n ApplicationModule.class,\n HomeModule.class\n})\npublic interface ApplicationComponent {\n\n /**\n * Field injections of any dependencies of the app\n *\n * @param mainActivity activity for which dependencies must be satisfied.\n */\n void inject(MainActivity mainActivity);\n\n /**\n * Field injections of any dependencies of the app\n *\n * @param homeView dashboardView for which dependencies must be satisfied.\n */\n void inject(HomeView homeView);\n}",
"@Singleton\n@Component(modules = {NetModule.class})\npublic interface NetComponent {\n void inject(OrderListActivityPresenter presenter);\n\n void inject(MapActivityPresenter presenter);\n\n void inject(LoginActivityPresenter presenter);\n}",
"@Singleton\n@Component(modules = {AppModule.class, NetModule.class})\npublic interface NetComponent {\n void inject(FragmentInfoTwo fragmentInfoTwo);\n void inject(InfoConfirmActivity infoConfirmActivity);\n void inject(InfoCreateAccount infoCreateAccount);\n void inject(InfoSelectPriceActivity infoSelectPriceActivity);\n void inject(InfoSubscribeStripeActivity infoSubscribeStripeActivity);\n void inject(InfoUpgradeChooseCardActivity infoUpgradeChooseCardActivity);\n void inject(ActivityAuthorization activityAuthorization);\n void inject(ActivityCalendar activityCalendar);\n void inject(ActivityExoPlayer activityExoPlayer);\n void inject(ActivityForgotPassword activityForgotPassword);\n void inject(ActivityLoading activityLoading);\n void inject(FragmentChangePassword fragmentChangePassword);\n void inject(FragmentChannelsUkr fragmentChannelsUkr);\n void inject(FragmentEditProfile fragmentEditProfile);\n void inject(FragmentLanguage fragmentLanguage);\n void inject(FragmentPlanSettings fragmentPlanSettings);\n void inject(FragmentPlanSettingsCurrent fragmentPlanSettingsCurrent);\n void inject(FragmentTimeZone fragmentTimeZone);\n\n}",
"@Component(modules = {ShowModule.class},dependencies = AppComponent.class)\npublic interface ShowComponent {\n void inject(ResultActivity resultActivity);\n IPresenter getPresenter();\n ResultAdapter getResultAdapter();\n}",
"@Override\n protected void injectDependencies(Context context) {\n }",
"public interface ModuleConfigurationProvider {\n ModuleConfiguration getConfiguration(Module module);\n}",
"List<ICMakeModule> getModules();",
"@Singleton\n@Component(modules = {\n CommonsApplicationModule.class,\n NetworkingModule.class,\n AndroidInjectionModule.class,\n AndroidSupportInjectionModule.class,\n ActivityBuilderModule.class,\n FragmentBuilderModule.class,\n ServiceBuilderModule.class,\n ContentProviderBuilderModule.class,\n UploadModule.class,\n ContributionsModule.class,\n SearchModule.class,\n DepictionModule.class,\n CategoriesModule.class\n})\npublic interface CommonsApplicationComponent extends AndroidInjector<ApplicationlessInjection> {\n void inject(CommonsApplication application);\n\n void inject(UploadWorker worker);\n\n void inject(LoginActivity activity);\n\n void inject(SettingsFragment fragment);\n\n void inject(MoreBottomSheetFragment fragment);\n\n void inject(MoreBottomSheetLoggedOutFragment fragment);\n\n void inject(ReviewController reviewController);\n\n //void inject(NavTabLayout view);\n\n @Override\n void inject(ApplicationlessInjection instance);\n\n void inject(FileProcessor fileProcessor);\n\n void inject(PicOfDayAppWidget picOfDayAppWidget);\n\n Gson gson();\n\n @Component.Builder\n @SuppressWarnings({\"WeakerAccess\", \"unused\"})\n interface Builder {\n\n Builder appModule(CommonsApplicationModule applicationModule);\n\n CommonsApplicationComponent build();\n }\n}",
"@Component(modules = ThirdActivityMoudule.class)\npublic interface ThirdActivityComponent {\n void inject(ThirdActivity activity);\n}",
"public interface Module extends Pluggable {\n\t\n\t/**\n\t * Return the module type. Module type can be a value like Mywork, Support, Cowork, etc.\n\t * @return\n\t */\n\tModuleType type();\n\t\n\t/**\n\t * Return true if the module is in subscription. \n\t * @return true if the module is in subscription\n\t */\n\tboolean isOpened();\n\t\n\t/**\n\t * Return true if the module is enabled by a company administrator.\n\t * @return true if the module is enabled by a company administrator\n\t */\n\tboolean isEnabled();\n\t\n\t/**\n\t * Return the home page uri representing an entry point of module.\n\t * @return the home page uri\n\t */\n\tString home();\n\n\t/**\n\t * Return company and user option information like whether option configuration is provided and option configuration uri if any. \n\t * @return company and user option configuration information\n\t */\n\tModuleOption option();\n\t\n\t/**\n\t * Return volume configuration information\n\t * @return\n\t */\n\tModuleComponent volume();\n\t\n\t/**\n\t * Return statistics information\n\t * @return\n\t */\n\tModuleComponent statistics();\n\t\n\t/**\n\t * Return renderer\n\t */\n\tModuleRenderer render();\n\t\n}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n\t\tCollection<Class<? extends IFloodlightService>> l =\n\t\t new ArrayList<Class<? extends IFloodlightService>>();\n\t\t l.add(IFloodlightProviderService.class);\n\t\t l.add(IStaticEntryPusherService.class);\n\t\t return l;\n\t}",
"@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}",
"String getApplicationDependencies();",
"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 }",
"@Singleton\n@Component(modules = {ImagesModule.class, LibsModule.class})\npublic interface ImagesComponent {\n void inject(ImagesFragment fragment);\n //ImagesPresenter getPresenter();\n}",
"@Component(modules = { MarketBillingModule.class })\npublic interface MarketBillingComponent {\n MarketBilling make();\n}",
"private void setup(){\n\n // menginisialisasi variabel component\n component = DaggerApplicationComponent.builder()\n .applicationModule(new ApplicationModule(this)).build();\n\n // memanggil fungsi inject\n component.inject(this);\n }",
"@Singleton\r\n@Component(modules = {UIModule.class, InteractorModule.class, MockModelModule.class, MockNetworkModule.class})\r\npublic interface MockAnimalFindApplicationComponent extends AnimalFindApplicationComponent {\r\n}",
"@Subcomponent(modules = AModule.class)\npublic interface AComponent {\n void inject(AActivity aActivity);\n}",
"public interface IngestModuleFactory {\n\n /**\n * Gets the display name that identifies the family of ingest modules the\n * factory creates. Autopsy uses this string to identify the module in user\n * interface components and log messages. The module name must be unique. so\n * a brief but distinctive name is recommended.\n *\n * @return The module family display name.\n */\n String getModuleDisplayName();\n\n /**\n * Gets a brief, user-friendly description of the family of ingest modules\n * the factory creates. Autopsy uses this string to describe the module in\n * user interface components.\n *\n * @return The module family description.\n */\n String getModuleDescription();\n\n /**\n * Gets the version number of the family of ingest modules the factory\n * creates.\n *\n * @return The module family version number.\n */\n String getModuleVersionNumber();\n\n /**\n * Queries the factory to determine if it provides a user interface panel to\n * allow a user to change settings that are used by all instances of the\n * family of ingest modules the factory creates. For example, the Autopsy\n * core hash lookup ingest module factory provides a global settings panel\n * to import and create hash databases. The hash databases are then enabled\n * or disabled per ingest job using an ingest job settings panel. If the\n * module family does not have global settings, the factory may extend\n * IngestModuleFactoryAdapter to get an implementation of this method that\n * returns false.\n *\n * @return True if the factory provides a global settings panel.\n */\n boolean hasGlobalSettingsPanel();\n\n /**\n * Gets a user interface panel that allows a user to change settings that\n * are used by all instances of the family of ingest modules the factory\n * creates. For example, the Autopsy core hash lookup ingest module factory\n * provides a global settings panel to import and create hash databases. The\n * imported hash databases are then enabled or disabled per ingest job using\n * ingest an ingest job settings panel. If the module family does not have a\n * global settings, the factory may extend IngestModuleFactoryAdapter to get\n * an implementation of this method that throws an\n * UnsupportedOperationException.\n *\n * @return A global settings panel.\n */\n IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();\n\n /**\n * Gets the default per ingest job settings for instances of the family of\n * ingest modules the factory creates. For example, the Autopsy core hash\n * lookup ingest modules family uses hash databases imported or created\n * using its global settings panel. All of the hash databases are enabled by\n * default for an ingest job. If the module family does not have per ingest\n * job settings, the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that returns an instance of the\n * NoIngestModuleJobSettings class.\n *\n * @return The default ingest job settings.\n */\n IngestModuleIngestJobSettings getDefaultIngestJobSettings();\n\n /**\n * Queries the factory to determine if it provides user a interface panel to\n * allow a user to make per ingest job settings for instances of the family\n * of ingest modules the factory creates. For example, the Autopsy core hash\n * lookup ingest module factory provides an ingest job settings panels to\n * enable or disable hash databases per ingest job. If the module family\n * does not have per ingest job settings, the factory may extend\n * IngestModuleFactoryAdapter to get an implementation of this method that\n * returns false.\n *\n * @return True if the factory provides ingest job settings panels.\n */\n boolean hasIngestJobSettingsPanel();\n\n /**\n * Gets a user interface panel that can be used to set per ingest job\n * settings for instances of the family of ingest modules the factory\n * creates. For example, the core hash lookup ingest module factory provides\n * an ingest job settings panel to enable or disable hash databases per\n * ingest job. If the module family does not have per ingest job settings,\n * the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that throws an\n * UnsupportedOperationException.\n *\n * @param settings Per ingest job settings to initialize the panel.\n *\n * @return An ingest job settings panel.\n */\n IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings);\n\n /**\n * Queries the factory to determine if it is capable of creating data source\n * ingest modules. If the module family does not include data source ingest\n * modules, the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that returns false.\n *\n * @return True if the factory can create data source ingest modules.\n */\n boolean isDataSourceIngestModuleFactory();\n\n /**\n * Creates a data source ingest module instance.\n * <p>\n * Autopsy will generally use the factory to several instances of each type\n * of module for each ingest job it performs. Completing an ingest job\n * entails processing a single data source (e.g., a disk image) and all of\n * the files from the data source, including files extracted from archives\n * and any unallocated space (made to look like a series of files). The data\n * source is passed through one or more pipelines of data source ingest\n * modules. The files are passed through one or more pipelines of file\n * ingest modules.\n * <p>\n * The ingest framework may use multiple threads to complete an ingest job,\n * but it is guaranteed that there will be no more than one module instance\n * per thread. However, if the module instances must share resources, the\n * modules are responsible for synchronizing access to the shared resources\n * and doing reference counting as required to release those resources\n * correctly. Also, more than one ingest job may be in progress at any given\n * time. This must also be taken into consideration when sharing resources\n * between module instances. modules.\n * <p>\n * If the module family does not include data source ingest modules, the\n * factory may extend IngestModuleFactoryAdapter to get an implementation of\n * this method that throws an UnsupportedOperationException.\n *\n * @param settings The settings for the ingest job.\n *\n * @return A data source ingest module instance.\n */\n DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings);\n\n /**\n * Queries the factory to determine if it is capable of creating file ingest\n * modules. If the module family does not include file ingest modules, the\n * factory may extend IngestModuleFactoryAdapter to get an implementation of\n * this method that returns false.\n *\n * @return True if the factory can create file ingest modules.\n */\n boolean isFileIngestModuleFactory();\n\n /**\n * Creates a file ingest module instance.\n * <p>\n * Autopsy will generally use the factory to several instances of each type\n * of module for each ingest job it performs. Completing an ingest job\n * entails processing a single data source (e.g., a disk image) and all of\n * the files from the data source, including files extracted from archives\n * and any unallocated space (made to look like a series of files). The data\n * source is passed through one or more pipelines of data source ingest\n * modules. The files are passed through one or more pipelines of file\n * ingest modules.\n * <p>\n * The ingest framework may use multiple threads to complete an ingest job,\n * but it is guaranteed that there will be no more than one module instance\n * per thread. However, if the module instances must share resources, the\n * modules are responsible for synchronizing access to the shared resources\n * and doing reference counting as required to release those resources\n * correctly. Also, more than one ingest job may be in progress at any given\n * time. This must also be taken into consideration when sharing resources\n * between module instances. modules.\n * <p>\n * If the module family does not include file ingest modules, the factory\n * may extend IngestModuleFactoryAdapter to get an implementation of this\n * method that throws an UnsupportedOperationException.\n *\n * @param settings The settings for the ingest job.\n *\n * @return A file ingest module instance.\n */\n FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings);\n}",
"@Singleton\n@Component (modules = {\n PagoPaAPIModule.class,\n NetModule.class,\n LogModule.class\n})\npublic interface PagoPaAPIComponent {\n PagoPaAPI getPagoPaAPI();\n}",
"@Singleton\n@Component(modules = {AppModule.class})\npublic interface BasicComponent {\n\tvoid inject(AddContactActivity addContactActivity);\n\tvoid inject(MainActivity mainActivity);\n\tvoid inject (MainActivityFragment mainActivityFragment);\n\tvoid inject (HandleClickFromRecyclerContactsModel handleClickFromRecyclerContactsModel);\n}",
"void depComponent(DepComponent depComponent);",
"@Singleton\n@Component(modules={\n AccountServiceModule.class,\n UserServiceModule.class,\n ConnectionModule.class,\n RemoteAccountModule.class,\n DaoModule.class,\n AuthenticationModule.class,\n CSVGeneratorModule.class,\n EmailServiceModule.class\n})\npublic interface ApplicationComponent {\n\n /**\n * The view needs classes defined in the services. The inject method\n * lets us do this.\n * Create an inject method for every different classes (controllers) in the views that would need them\n * @param myMoneyApplication\n */\n void inject(MyMoneyApplication myMoneyApplication);\n\n void inject(LoginController loginController);\n\n void inject(AccountListController accountListController);\n\n void inject(SignUpController signUpController);\n\n void inject(TransactionTableController tableController);\n\n void inject(UpdateUserAccountController updateUserAccountController);\n\n void inject(AllTransactionsController allTransactionsController);\n\n void inject(AccountDetailsController accountDetailsController);\n}",
"@Singleton\n@Component(modules = {ServiceAPIModule.class})\npublic interface ServiceModelComponent {\n void inject(AccountModel model);\n void inject(DataModel model);\n void inject(ImageModel model);\n void inject(ManagerModel model);\n void inject(StethoOkHttpGlideModule module);\n}",
"@Singleton\n@Component(modules = UserModule.class, dependencies = FlowerComponent.class)\npublic interface UserComponent {\n User getUser();\n}",
"public interface BlogLibTestMasterAppModule extends ApplicationModule {\r\n String helloMasterModule(String param);\r\n}",
"@Component(modules = {ApplicationModule.class,HttpModule.class})\npublic interface ApplicationComponent {\n\n MyApp getApplication();\n\n NewsApi getNetEaseApi();\n\n JanDanApi getJanDanApi();\n\n Context getContext();\n\n}",
"@Singleton\n@Component(modules = {AppModule.class, NetModule.class, DataModule.class})\npublic interface NetComponent {\n Retrofit retrofit();\n\n UserDatabase userDatabase();\n\n UserDao userDao();\n}",
"public abstract ModuleDistributions distributions();",
"@ActivityScope\n@Component(dependencies = ApplicationComponent.class,modules = {FavourModule.class})\npublic interface FavourComponent {\n\n void inject(PacketActivityActivity activity);\n void inject(RedPacketActivity activity);\n}",
"@Singleton\n@Component(modules = {\n TestServiceModule.class,\n TestRepoModule.class,\n TestSchedulersModule.class\n})\npublic interface TestDataComponent extends DataComponent {\n\n}",
"@Override\n\tpublic void youNeedToImplementTheStaticFunctionCalled_getExtraDependencyModules() {\n\t\t\n\t}",
"@CustomScope\n@Component(dependencies = NetworkComponent.class, modules = ComicsModule.class)\npublic interface ComicsComponent {\n\n void inject(ComicsFragment comicsFragment);\n}",
"@PerFragment\n//@Component(dependencies = MovieComponent.class, modules = FragmentModule.class)\n@Subcomponent(modules = FragmentModule.class)\npublic interface FragmentComponent {\n void inject(MainFragment fragment);\n void inject(MovieDetailsFragment fragment);\n void inject(SearchFragment fragment);\n void inject(OnboardingFragment fragment);\n void inject(VerticalGridFragment fragment);\n}",
"public interface CandidateModule {\n /**\n * Id of this module\n */\n ModuleIdentifier getId();\n\n /**\n * Candidate versions of this module. Many times, it has only single version.\n */\n Collection<ComponentState> getVersions();\n\n void replaceWith(ComponentState selected);\n}",
"@Singleton\n@Component(modules = {ModelModule.class, PresenterModule.class})\npublic interface AppComponent {\n void inject(ModelImpl dataRepository);\n\n void inject(BasePresenter basePresenter);\n\n void inject(PresenterSearch presenterSearch);\n\n void inject(FavouriteActivity favouriteActivity);\n}",
"@Override\n public void getDependencies(Set<Binding<?>> getBindings, Set<Binding<?>> injectMembersBindings) {\n injectMembersBindings.add(app);\n injectMembersBindings.add(bus);\n injectMembersBindings.add(service);\n injectMembersBindings.add(supertype);\n }",
"public interface AppModule extends ApplicationModule {\n void fetchApplist(String flowCode);\n\n List serviceCustomerCall(List inputList, String method);\n\n void fetchApplistpartner(String flowCode);\n\n List updatePaymentDetailsInCRM(List inputList);\n \n void fetchErrorMessage(String errorCode);\n\n void initLpgDistVo(String ftlFlag, String zipcodeFilter);\n\n void fetchAppListLpgLogIn();\n\n void fetchAppListCustomerNonLogin(String pflowCode);\n\n\n List initiatePaymentDetails(List inputList);\n\n List callChartAsync(List inputList);\n\n void insertIntoRoLocator(List jsonArrayList);\n\n void insertVehicleTypeRecord(String count);\n\n void insertProfileEnrichInfo(String FirstName, String LastName, String EmailId, String MobileNo);\n\n void insertRetailEnrichInfo(String FirstName, String LastName, String EmailId, String MobileNo);\n\n void insertIntoAoLocator(List jsonArrayList);\n\n void insertIntoPartnerDistLocator(List jsonArrayList);\n\n void insertIntoPartnerStockLocator(List jsonArrayList);\n}",
"@PerModule // Constraints this component to one-per-application or unscoped bindings.\n@Subcomponent(modules = {UserSettingsModule.class})\npublic interface UserSettingsComponent {\n public void inject(UserSettingsFragment userSettingsFragment);\n\n}",
"@ApplicationScope\n@Component(modules = {ContextModule.class,ServiceModule.class}) // tell which modules to use in order to generate this instance\npublic interface ApplicationComponent {\n\n\n\n SharedPreferencesClass getSharedPrefs();\n\n RequestManager getGlide();\n\n void injectRepo(ProjectRepository repository);\n\n}",
"public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}",
"@PresentationScope\n@Subcomponent(modules = {CarListModule.class})\npublic interface CarListComponent {\n void inject(CarListActivity target);\n}",
"@Singleton\n@Component(modules = {\n ApplicationModule.class,\n PreferenceModule.class,\n NetworkModule.class,\n ServiceModule.class\n})\npublic interface DiComponent {\n void inject(MainActivity activity);\n}",
"public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }",
"@Component(modules = MvItemModule.class)\npublic interface MvItemComponent {\n void in(MvItemFragment mvItemFragment);\n}",
"protected void installComponents() {\n }",
"abstract void depComponent(DepComponent depComponent);",
"@Singleton\n@Component(modules = {\n ApplicationModule.class,\n NetworkModule.class,\n StorageModule.class\n})\npublic interface ApplicationComponent {\n ActivityComponent plus(ActivityModule module);\n\n void inject(MyServiceInterceptor myServiceInterceptor);\n\n}",
"Set<ResolvedType> dependencies(ModelContext context);",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = ArtistInfoModule.class)\npublic interface ArtistInfoComponent {\n\n void injectForAdapter(ArtistAdapter artistAdapter);\n\n void injectForFragment(ArtistDetailFragment fragment);\n}",
"@Singleton\n@Component(modules = {PuppiesImageModule.class})\npublic interface BreedImageComponent extends FragmentComponent<BreedImageFragment> {}",
"public interface ModuleService {\n\n /**\n * 获取所有模块信息\n * @return\n */\n List<Module> getAllModule();\n\n Show getModuleAndPart();\n\n List<Module> findModuleByPartId(int typeNum);\n\n /**\n * 添加模块\n * @param partId\n * @param name\n * @param description\n * @param photo\n * @return\n */\n Show addModule(int partId, String name, String description, String photo);\n\n /**\n * 模块图片上传至服务器\n * @param stream\n * @param path\n * @param file\n */\n void savepic(InputStream stream, String path, String file);\n\n /**\n * 修改模块名称\n * @param id\n * @param name\n * @return\n */\n Show changeModuleName(int id, String name);\n\n /**\n * 修改模块描述信息\n * @param id\n * @param description\n * @return\n */\n Show changeModuleDescription(int id, String description);\n\n /**\n * 修改模块图片信息\n * @param id\n * @param photo\n * @return\n */\n Show changeModulePhoto(int id, String photo);\n\n /**\n * 移除模块\n * @param id\n * @return\n */\n Show moveModule(int id);\n\n \n Module findModuleById(int moduleId);\n}",
"@Override\n public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n return null;\n }",
"public void initModules() {\n\t\tthis.loadAggregationModules();\n\t\tthis.loadOutputModules();\n\t\tthis.gui.setModules(aggregationModules, outputModules);\n\t}",
"@Component(modules = {AppModule.class, UtilsModule.class})\n@Singleton\npublic interface AppComponent {\n\n void inject(BaseActivity baseActivity);\n\n}",
"@Component(modules = BaseTabFPAdapterModule.class)\npublic interface BaseTabFPAdapterComponent {\n void inject(MainActivity activity);\n}",
"public IPath[] getAdditionalDependencies();",
"@Component(modules = PhotoDetailModule.class)\npublic interface PhotoDetailComponent {\n void inject(PhotoDetailActivity photoDetailActivity);\n}",
"@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = {ActivityModule.class, AlbumsModule.class})\npublic interface AlbumsComponent {\n\n void inject(AlbumFragment albumFragment);\n}",
"@Singleton\n@Component(modules = ThirdModule.class)\npublic interface ThirdComponent {\n void inject(ThirdActivity thirdActivity);\n}",
"@Singleton\n@Component (modules={TestDataSourceModule.class})\npublic interface IDataSourceComponent {\n IDataSource makeDataSource();\n\n}",
"@Singleton\n@Component(modules = ListModule.class)\npublic interface ListComponent {\n void inject(HomeActivity activity);\n}"
] | [
"0.6349751",
"0.63450587",
"0.63361734",
"0.61704916",
"0.6121088",
"0.60342324",
"0.6005455",
"0.5963778",
"0.5960859",
"0.5948476",
"0.5939158",
"0.5931784",
"0.59199524",
"0.58723676",
"0.5864331",
"0.58480376",
"0.5836693",
"0.58166367",
"0.5803296",
"0.57993037",
"0.57975155",
"0.57921934",
"0.5764869",
"0.57583576",
"0.575668",
"0.57515615",
"0.5738993",
"0.5733266",
"0.5718634",
"0.57168156",
"0.5705915",
"0.5693432",
"0.5689202",
"0.56891733",
"0.56794286",
"0.56712365",
"0.5663066",
"0.5662558",
"0.5645674",
"0.5641211",
"0.5638366",
"0.5638349",
"0.5633326",
"0.5614571",
"0.5611224",
"0.5606732",
"0.56026846",
"0.5598974",
"0.5598201",
"0.5580294",
"0.5569538",
"0.5556258",
"0.5552356",
"0.5542433",
"0.5539079",
"0.5538052",
"0.5536385",
"0.5520375",
"0.5515323",
"0.550972",
"0.5489368",
"0.54788744",
"0.547379",
"0.5471909",
"0.5465579",
"0.5457174",
"0.5450761",
"0.54499066",
"0.54459906",
"0.54345423",
"0.54294777",
"0.5425533",
"0.54249716",
"0.5424786",
"0.54235125",
"0.54212093",
"0.5418722",
"0.54186547",
"0.54171157",
"0.5415797",
"0.5412478",
"0.54120874",
"0.5405198",
"0.5388591",
"0.5386105",
"0.5384434",
"0.535232",
"0.5346634",
"0.5340316",
"0.53337455",
"0.53299147",
"0.5318295",
"0.53169364",
"0.5304776",
"0.52964956",
"0.5295738",
"0.5288042",
"0.5284514",
"0.5283426",
"0.52800936",
"0.527796"
] | 0.0 | -1 |
create a new user | public EmailValidation create(EmailValidation user); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createUser(User user) {\n\n\t}",
"public void createUser(User user);",
"UserCreateResponse createUser(UserCreateRequest request);",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public void creatUser(String name, String phone, String email, String password);",
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"boolean create(User user) throws Exception;",
"User createUser();",
"void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;",
"User createUser(User user);",
"private void createUser(final String email, final String password) {\n\n }",
"@Override\n\tpublic void create(User user) {\n\t\t\n\t}",
"boolean createUser(String username, String password);",
"int createUser(User data) throws Exception;",
"Boolean registerNewUser(User user);",
"User createUser(UserCreationModel user);",
"int newUser(String username, String password, Time creationTime);",
"public void newUser(User user);",
"Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);",
"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}",
"User create(final User user) throws DatabaseException;",
"User create(User user);",
"@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}",
"@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}",
"public UserAuthToken createUser(CreateUserRequest request);",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);",
"@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}",
"@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}",
"private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }",
"public void createUserAccount(UserAccount account);",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;",
"@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}",
"public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\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 }",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}",
"public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}",
"public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }",
"@Test\n\tpublic void test_create_new_user_success(){\n\t\tUser user = new User(null, \"create_user\", \"create_user@example.com\", \"12345678\");\n\t\tResponseEntity<User> response = template.postForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, user, User.class);\n\t\tUser newUser = response.getBody();\n\t\tassertThat(newUser.getName(), is(\"create_user\"));\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.CREATED));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}",
"@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}",
"public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}",
"private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }",
"private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}",
"private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"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 }",
"@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"@PostMapping(\"/users\")\n public UsersResponse createNewUser(@RequestBody NewUserRequest request) {\n User user = new User();\n user.setName(request.getName());\n user.setAge(request.getAge());\n user = userRepository.save(user);\n return new UsersResponse(user.getId(), user.getName() + user.getAge());\n }",
"private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }",
"void registerUser(User newUser);",
"Human_User createHuman_User();",
"@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}",
"public UserEntity create(String userId) throws CreateException;",
"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}",
"private String createUser(String name) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}",
"@PostMapping(\"/users\")\n\tpublic ResponseEntity<UserDTO> creareUser(@RequestBody(required = true) @Valid UserDTO user) {\n\t\tuser = userService.createUser(user);\n\t\treturn new ResponseEntity<>(user, HttpStatus.CREATED);\n\t}",
"public void createUser(String userName, String password,\n boolean createDB) throws Exception;",
"@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}",
"@POST\n public User create(User user) {\n SecurityUtils.getSubject().checkPermission(\"User:Edit\");\n\n userFacade.create(user);\n return user;\n }",
"public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }",
"void createUser(CreateUserDto createUserDto);",
"@POST\n\t@Path(\"/signUp\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic String createUser(User user) {\n\t\tUserService.createUser(user);\n\t\treturn \"User \" + user.getUsername() + \" is created successfully\";\n\t}",
"@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"administrators\")\n Call<Void> createUser(\n @retrofit2.http.Body UserBody userBody\n );",
"User registration(User user);",
"@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }",
"@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }",
"public void createUser(VUser vUser) {\n\t\tUser user = new User();\n\n\t\tboolean match = Pattern.matches(Constants.REGEX_EMAIL, vUser.getEmail());\n\t\tif (!match) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"El email tiene formato incorrecto.\");\n\t\t}\n\n\t\tif (repo.getUserByEmail(vUser.getEmail()) != null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Ya hay un usuario con ese email.\");\n\t\t}\n\n\t\tuser.setEmail(vUser.getEmail());\n\t\tuser.setFullName(vUser.getFullName());\n\t\t\n\t\tif(vUser.getFullName() == null || vUser.getFullName().isEmpty()) {\n\t\t\tuser.setFullName(vUser.getEmail());\n\t\t}\n\n\t\t// TODO: hashear password\n\t\tuser.setPasswordHash(vUser.getPassword());\n\n\t\tuser.setRoles(vUser.getRoles());\n\t\tuser.setUserType(vUser.getUserType());\n\n\t\trepo.createUser(user);\n\t}",
"@Override\n public User create(User user) {\n user.setPassword(bCryptPasswordEncoder.encode(user.getPassword()));\n if (user.getCreateDate() == null) {\n DateTime dt = new DateTime();\n user.setCreateDate(dt.toDate());\n }\n user.setEnabled(true);\n user.setRoleList(Collections.singletonList(roleDao.findByName(\"ROLE_USER\")));\n\n return dao.create(user);\n }",
"public void insertUser() {}",
"public UserProfile createUserProfile(String username, UserProfile newProfile);",
"@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public UserResponse createUser(@Valid @RequestBody CreateUserRequest createUser) {\n return userMapper.toUserResponse(\n userService.createUser(\n userMapper.toDto(createUser)\n )\n );\n }",
"public void new_user(){\n }",
"void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);",
"HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);",
"public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"Account create();",
"public void userCreated(UserCreateCommand command) {\n\t\t}",
"public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }",
"@PostMapping\n public User create(@RequestBody final User user) {\n return userService.create(user);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }",
"public boolean createUser(String username, String password) {\r\n \t\tboolean result = this.dataLayer.addUser(username, password);\r\n \r\n \t\treturn result;\r\n \t}",
"public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }",
"public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }",
"UserModel createUserModel(UserModel userModel);",
"public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n return target;\n }\n }",
"public void createUser(String username, String password, String role) {\r\n Optional<User> user = userRepo.findByName(username);\r\n if (!user.isPresent()) {\r\n User newUser = new User();\r\n newUser.setName(username);\r\n newUser.setPassword(password);\r\n newUser.setRole(role);\r\n userRepo.save(newUser);\r\n }\r\n }",
"@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseBody\n public UserResult createUser(@RequestBody UserInput userInput) {\n return userService.create(userInput);\n }",
"public void createUser(User u) {\n\n em.persist(u);\n\n String content = \"new user: \" + u.getName() + \" => \" + u.getPassword();\n\n MailMessage mailMessage = new MailMessage();\n\n mailMessage.addRecipient(\"info@blood-ink.de\");\n mailMessage.setContent(content);\n mailMessage.setSubject(\"new user: \" + u.getName());\n mailer.sendAsyncMail(mailMessage);\n\n mailer.sendSyncMail(mailMessage);\n\n }",
"public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }",
"boolean addUser(int employeeId, String name, String password, String role);",
"@PostMapping(\"/users\")\n\tpublic ResponseEntity<Object> createUser(@Valid @RequestBody User user) {\n\t\tUser createUser = userService.save(user);\n\n\t\t// Return Created User URI e.g. users/6\n\t\t// It Will return the status code of 201 created\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(createUser.getId())\n\t\t\t\t.toUri();\n\t\treturn ResponseEntity.created(uri).build();\n\n\t}",
"public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void createUser(User user) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"INSERT INTO users (email, password, role) VALUES (?, ?, ?)\";\n PreparedStatement ps = con.prepareStatement(SQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, user.getEmail());\n ps.setString(2, user.getPassword());\n ps.setString(3, user.getRole());\n ps.executeUpdate();\n ResultSet ids = ps.getGeneratedKeys();\n ids.next();\n int id = ids.getInt(1);\n user.setId(id);\n }\n catch (SQLException | IllegalAccessException | InstantiationException | ClassNotFoundException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }",
"@PostMapping(path = \"/online-sales-service/registerUser\")\n\tpublic ResponseEntity<?> createUser(@RequestBody final ActiveDirectory user, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tActiveDirectory thisUser = null;\n\t\ttry {\n\t\t\tthisUser = activeDirectoryService.createNewUser(user);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<ActiveDirectory>(thisUser, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}"
] | [
"0.84836423",
"0.84226006",
"0.8235405",
"0.81968474",
"0.79670024",
"0.79277605",
"0.7920496",
"0.7893078",
"0.7866628",
"0.7816121",
"0.78091216",
"0.770903",
"0.7697361",
"0.76969904",
"0.7692735",
"0.76808196",
"0.7672427",
"0.7671642",
"0.76257664",
"0.75345206",
"0.7530807",
"0.7522574",
"0.7510811",
"0.750921",
"0.75080925",
"0.7501625",
"0.7501531",
"0.74468744",
"0.73903227",
"0.73712707",
"0.73476946",
"0.73342913",
"0.73306036",
"0.73233485",
"0.73065114",
"0.7303997",
"0.73030555",
"0.72939765",
"0.7282234",
"0.72764224",
"0.72707766",
"0.7237891",
"0.7234307",
"0.7229839",
"0.7226478",
"0.7198727",
"0.71965915",
"0.7168676",
"0.71613884",
"0.71534634",
"0.7138405",
"0.71273077",
"0.7122559",
"0.7104565",
"0.70934623",
"0.7080623",
"0.7076177",
"0.70694065",
"0.70615023",
"0.7056213",
"0.70492476",
"0.7046427",
"0.70406806",
"0.70380515",
"0.70365894",
"0.70336217",
"0.7015899",
"0.6999087",
"0.6989805",
"0.6975919",
"0.6970068",
"0.6968658",
"0.6956043",
"0.6952166",
"0.69517124",
"0.69484544",
"0.69483984",
"0.6946331",
"0.6934692",
"0.69310355",
"0.6928956",
"0.6928956",
"0.6920281",
"0.6917356",
"0.69164616",
"0.69123906",
"0.69095665",
"0.6906324",
"0.69023705",
"0.6896734",
"0.68961203",
"0.6895111",
"0.68921214",
"0.6888509",
"0.6888265",
"0.68827707",
"0.68767774",
"0.6874825",
"0.68686104",
"0.6865525",
"0.68638754"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void sale() {
System.out.println("销售联想电脑");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Default constructor. Creates an empty stack of states. | public Context() {
states = new ObjectStack<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Stack() {}",
"public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}",
"public Stack() {\n stack = new LinkedList();\n }",
"public Stack() {\r\n\t\tthis.items = new ArrayList<>();\t\r\n\t}",
"public OpStack() {\n opStack = new Stack();\n }",
"public Stack() {\r\n first = null;\r\n N = 0;\r\n }",
"public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }",
"public Stack() {\r\n\t\tthis(capacity);\r\n\t}",
"public Stack() {\n /*\n * Constructor\n * This function is an initializer for this class.\n */\n top = null;\n sz = 0;\n }",
"public Stack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public Stack() {\n \tstack = new ArrayList<T>();\n }",
"public MyStack() {\n\n }",
"public StackImpl() {\r\n\t\t\r\n\t}",
"public MyStack() {\n\n }",
"public MyStack() {\n @SuppressWarnings(\"unchecked\")\n T[] newStack = (T[]) new Object[DEFAULT_STACK_SIZE];\n stackArray = newStack;\n stackSize = 0;\n }",
"public MinStack() {\n st = new Stack<>();\n }",
"public Stack() {\r\n this(20);\r\n }",
"public MyStack() {\r\n stack = new LinkedList<>();\r\n }",
"public ArrayStack() {\n this(INITIAL_CAPACITY);\n }",
"public ArrayStack() {\n this( DEFAULT_CAPACITY );\n }",
"public MyStack() {\n\t\ttopNode = null;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\tnodeCount = 0;\n\t}",
"public BasicStack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }",
"public State(){}",
"public MinStack1() {\r\n stack = new Stack<>();\r\n }",
"public Stack()\n {\n ll = new LinkedList<>();\n }",
"public State()\n {\n this(\"\");\n }",
"public MinStack() {\n\n }",
"public MinStack() {\r\n\t\t}",
"public Stack()\n {\n first = null;\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public MinStack() {\r\n stack=new Stack<>();\r\n minstack=new Stack<>();\r\n map=new HashMap<>();\r\n }",
"public LinkedStack() {\n first = null;\n n = 0;\n }",
"public SolutionStack()\n {\n stack = new ArrayList<ILocation>(0);\n top = 0;\n }",
"public MyStack() {\n objects = new LinkedList<>();\n helper = new LinkedList<>();\n }",
"public MinStack() {\n }",
"public Stack() {\n\t\t \n\t\ttop = null;\n\t}",
"public StackClass() {\n \tsize=0;\n\t}",
"LevelStacks() {\n stacks = new ArrayList<>();\n }",
"public MinStack() {\n sort = new Stack<>();\n stack = new Stack<>();\n }",
"public SimpleStackOnLL() {\n\t\tthis.top = null;\n\t\tthis.size = 0;\n\t}",
"public MyStack() {\n queue = new LinkedList<>();\n }",
"MyStack(){\r\n\t\tsuper();\r\n\t}",
"public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }",
"public MyStack() {\n root=new ListNode(0);\n p =root;\n }",
"public MinStack1() {\n\n }",
"public MinStack() {\r\n list = new LinkedList();\r\n }",
"public MyStack() {\n\t q=new LinkedList<Integer>();\n\t }",
"public MyStack() {\n this.q = new LinkedList<>();\n }",
"public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }",
"public MinStack() {\n\n }",
"public MinStack() {\n\n }",
"public MyStack() {\n queue = new ArrayDeque<>();\n }",
"public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }",
"public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }",
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public LinkedListStack() {\r\n\t\tfirstNode = null;\r\n\t}",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
"public MyStack() {\n queue = new LinkedList<>();\n forReverse = new LinkedList<>();\n }",
"public MinStack() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }",
"public IntStack() {\n theStack = new int[IntStack.theCapacity];\n nextPushLocation = 0;\n }",
"public MyStack() {\n One = new LinkedList<>();\n Two = new LinkedList<>();\n }",
"public Stack(int size) {\n stack = new Object[size];\n minStackSize = size;\n top = -1;\n }",
"public MyQueue() {\n pushStack = new Stack<>();\n popStack = new Stack<>();\n }",
"public ListStack() {\n\t\tlist = new ArrayList<>();\n\t}",
"public MinStack() {\n size = 0;\n }",
"public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}",
"public MyStack() {\n queue = new LinkedList<>();\n }",
"public NavStack() {\n super();\n }",
"public LinkedStack() {\n top = null;\n }",
"public LinkStack() {\n size = 0;\n top = null;\n }",
"public DSAStack()\n {\n stack = new DSALinkedList<E>();\n }",
"public MinStack() {\n minList = new LinkedList<>();\n numStack = new Stack<>();\n }",
"ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}",
"public MinStack() {\n stackList = new ArrayList<>();\n minList = new ArrayList<>();\n size = 0;\n }",
"public MinStack2() {\n\n }",
"public FSM() {\r\n \t\tstates = new HashMap<String, State>();\r\n \t\ttransitions = new LinkedHashMap<String, Transition>();\r\n \t}",
"public MyStack() {\n this.queue=new LinkedList<Integer>();\n }",
"public MinStack() {\n stack = new Stack<Integer>();\n minStack = new Stack<Integer>();\n }",
"public UndoStack() {\n super();\n undoPointer = -1;\n }",
"public LinkedStack() {\r\n\t\ttopNode = null;\r\n\t}",
"public MyStack() {\n \tlist = new ArrayList<Integer>();\n }",
"public MaxStack() {\n stack = new Stack();\n maxes = new MaxList();\n }",
"public MyDynamicStack() {\r\n items = new LinkedList<>();\r\n }",
"public MinStack() {\n data = new Stack();\n min = new Stack();\n }",
"public MinStack() {\n stack = new Stack<IntMinPair>();\n }",
"public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }",
"public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }",
"public MinStack2() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }",
"public MinStack() {\n mainstack = new Stack<Integer>();\n secondaryminstack = new Stack<Integer>();\n }",
"public MyQueue() {\n storeStack = new Stack<>();\n }",
"public MyStack() {\n q1 = new LinkedList();\n q2 = new LinkedList();\n }",
"public MyQueue() {\n rearStack = new Stack();\n frontStack = new Stack();\n }",
"public MyStack() {\n list = new LinkedList<>();\n list2 = new LinkedList<>();\n }",
"public MyQueue() { //使用两个栈\n temp1 = new Stack<>();\n temp2 = new Stack<>();\n }",
"public Stack() { \ntop = null; \n//A constructor to initialize top \n//The answer to (iii)\n}",
"public MyStack() {\n q1= new LinkedList();\n q2= new LinkedList();\n }",
"public ArrayListStack() {\n\t\telements = new ArrayList<>();\n\t}",
"public Interpreter() {\n super();\n instructionsStack.push(new ArrayList<>());\n }",
"public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}"
] | [
"0.75779366",
"0.75599724",
"0.73890615",
"0.73605704",
"0.73515654",
"0.72927445",
"0.7183883",
"0.7140907",
"0.7124109",
"0.7111338",
"0.71079844",
"0.707847",
"0.70657206",
"0.70626724",
"0.70406336",
"0.70283896",
"0.70210636",
"0.6993567",
"0.69680834",
"0.6964264",
"0.69188786",
"0.69108206",
"0.6888376",
"0.68715084",
"0.68547285",
"0.68300027",
"0.68233955",
"0.6783814",
"0.6779233",
"0.6767915",
"0.67585343",
"0.67417",
"0.67307484",
"0.6716896",
"0.6716687",
"0.66858816",
"0.6682338",
"0.66723883",
"0.66267586",
"0.66180885",
"0.6609952",
"0.65928525",
"0.65922767",
"0.65843064",
"0.65794307",
"0.6578135",
"0.65748125",
"0.65688205",
"0.6555934",
"0.6547848",
"0.65417606",
"0.65417606",
"0.65319985",
"0.6529958",
"0.6527688",
"0.65160847",
"0.65157473",
"0.6507758",
"0.6506514",
"0.6498834",
"0.6498156",
"0.6489139",
"0.6457664",
"0.645532",
"0.6454119",
"0.6450117",
"0.6445913",
"0.64259297",
"0.6422621",
"0.64038974",
"0.6391755",
"0.6388456",
"0.63852674",
"0.63841385",
"0.6379041",
"0.6377884",
"0.63760424",
"0.63747025",
"0.63706326",
"0.63617975",
"0.6359726",
"0.6358195",
"0.6339166",
"0.6333797",
"0.6322414",
"0.6290942",
"0.62812525",
"0.6278951",
"0.6278031",
"0.62459856",
"0.6243745",
"0.62427557",
"0.6227906",
"0.62233186",
"0.62136364",
"0.62124056",
"0.619187",
"0.6188044",
"0.6180561",
"0.61760074"
] | 0.6755801 | 31 |
Gets the current state of a turtle. | public TurtleState getCurrentState() {
return states.peek();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GraphicsState getState(\n )\n {return state;}",
"public S getCurrentState();",
"public State getState();",
"public State getState();",
"public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}",
"public TState getState() {\n return state;\n }",
"public T getState() {\r\n\t\treturn state;\r\n\t}",
"public State getState() {\n return state.get();\n }",
"public boolean getIsTurtleActive(){\n return isTurtleActive;\n }",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"public State getState()\r\n\t{\r\n\t\treturn this.state;\r\n\t}",
"public SimulationState getState() {\n\t\treturn state;\n\t}",
"abstract public TurtleModel getTurtle();",
"public State getState() {\n\t\treturn state;\n\t}",
"public State getState() {\n\t\treturn state;\n\t}",
"public LightState getState() { return state; }",
"public NodeState getState() {\n return state;\n }",
"public State getCurrentState() {\n \t\treturn currentState;\n \t}",
"public GameState GetState(){\n\t\treturn this.state;\n\t}",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}",
"public BaseSensorState getState() {\n return state;\n }",
"public State getState () {\n synchronized (this) {\n return state;\n }\n }",
"public S getState() {\r\n\t\treturn state;\r\n\t}",
"public int getCurrentState() {\n return myState;\n }",
"public State getCurrentState() {\n\t\treturn currentState;\n\t}",
"public State getCurrentState() {\n\t\treturn currentState;\n\t}",
"public com.trg.fms.api.TripState getState() {\n return state;\n }",
"public GameState getState() {\n\t\treturn state;\n\t}",
"public State GetState()\n {\n return this.state;\n }",
"StateT getState();",
"public com.trg.fms.api.TripState getState() {\n return state;\n }",
"public State getState() { return model.getState(); }",
"public static States getState() {\r\n\t\treturn currentState;\r\n\t}",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public S getState() {\n return currentState;\n }",
"public String getCurrentState() {\n\t\treturn currentState;\n\t}",
"public IState getState();",
"public int getState();",
"public int getState();",
"public int getState();",
"public int getState();",
"public State getCurrentState() {\n return currentState;\n }",
"public STATE getState() {\n\t\n\t\treturn state;\n\t}",
"public LexerState getState() {\n\t\treturn state;\n\t}",
"public State state() {\n return state;\n }",
"Object getState();",
"public State getMyCurrentState () {\n return myCurrentState;\n }",
"public State state();",
"PowerState getState();",
"public State state() {\n return _state;\n }",
"public String state() {\n\treturn state(points, temperature, currentStateEnergy);\n }",
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n } else {\n // normal deselected\n return State.NOT_SELECTED;\n }\n }",
"private State getState()\n {\n return state;\n }",
"public Integer getaState() {\n return aState;\n }",
"public boolean getState( ) { return state; }",
"public RCProxyState getState() {\n\t\treturn state;\n\t}",
"public int getStateOfMovement(){ return stateOfMovement; }",
"public States getPilotState() {\n\t\treturn state;\n\t}",
"public Integer getState() {\r\n return state;\r\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public int getState() {\n return state.getValue();\n }",
"public AeBpelState getState();",
"LuaState getLuaState() {\n\t\treturn luaState;\n\t}",
"public STATE getState() {\n return this.lastState;\n }",
"public int getState()\n {\n return m_state.getState();\n }",
"public state getStatus(){\n return this.st;\n }",
"ShapeState getFinalState();",
"public java.lang.String getState () {\n\t\treturn state;\n\t}",
"String getState();",
"String getState();",
"String getState();",
"public long getState()\n {\n return ((StatefulRandomness)random).getState();\n }",
"public synchronized EventState state() {\n return this.currentState;\n }",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState() {\n\t\treturn state.toString();\n\t}",
"public State getState(){\n\t\treturn State.TUT_ISLAND;\n\t}",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"@Override\n public float getState() {\n return state;\n }",
"public GameObjectState getState() {\r\n\t\treturn state;\r\n\t}",
"protected S state() {\n return state;\n }",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"public byte getState() {\n return myState;\n }"
] | [
"0.68322206",
"0.66991264",
"0.66790193",
"0.66790193",
"0.6677438",
"0.65686154",
"0.6541668",
"0.6486975",
"0.6461354",
"0.64487904",
"0.64487904",
"0.64487904",
"0.64487904",
"0.6448422",
"0.6425262",
"0.64148504",
"0.638787",
"0.638787",
"0.6367939",
"0.6352579",
"0.6349514",
"0.63470024",
"0.63383275",
"0.63383275",
"0.63383275",
"0.63383275",
"0.63383275",
"0.63383275",
"0.6327999",
"0.63154787",
"0.63121504",
"0.63117796",
"0.630052",
"0.6280513",
"0.6280513",
"0.62733173",
"0.62725234",
"0.6271174",
"0.6255629",
"0.62357426",
"0.6232369",
"0.6231032",
"0.62244195",
"0.62244195",
"0.62244195",
"0.62244195",
"0.62244195",
"0.622183",
"0.62063825",
"0.62058705",
"0.62004215",
"0.62004215",
"0.62004215",
"0.62004215",
"0.6191528",
"0.61847603",
"0.6179424",
"0.61704314",
"0.61655736",
"0.6133379",
"0.6126562",
"0.6115673",
"0.60694045",
"0.6032155",
"0.60178083",
"0.6007885",
"0.60060364",
"0.6004545",
"0.6001017",
"0.5984968",
"0.59849155",
"0.5983446",
"0.5983446",
"0.5973709",
"0.59718096",
"0.5970769",
"0.5968944",
"0.5968531",
"0.5955139",
"0.5954906",
"0.59495324",
"0.59415406",
"0.59415406",
"0.59415406",
"0.59379435",
"0.593788",
"0.5933567",
"0.5929807",
"0.59261316",
"0.5923823",
"0.5923823",
"0.5923823",
"0.5923823",
"0.5923823",
"0.5923823",
"0.5916061",
"0.59061617",
"0.58921176",
"0.58836395",
"0.5883378"
] | 0.7755512 | 0 |
Adds a new state as a current state. | public void pushState( TurtleState state ) {
states.push( state );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addState(State state){\n\t\tstates.add(state);\n\t}",
"public State addState(String name) {\r\n \t\tState state = states.get(name);\r\n \t\tif (state == null) {\r\n \t\t\tstate = new State(name, index++);\r\n \t\t\tstates.put(name, state);\r\n \t\t\ttransitions.put(name, new Transition(state));\r\n \t\t}\r\n \r\n \t\treturn state;\r\n \t}",
"public void addState(AState s) {\n this.states.add(s);\n }",
"private void addState(NFAState s) {\n\t\tstates.add(s);\n\t}",
"public final int addState(State state) {\n State newState = state.copy();\n newState.setNumber(this.stateCounter++);\n this.states.add(newState);\n return this.stateCounter - 1;\n }",
"@Override\n public StateList addState(State state) {\n System.out.println(\"Adding state \" + this.name);\n ChaincodeStub stub = this.ctx.getStub();\n System.out.println(\"Stub=\" + stub);\n String[] splitKey = state.getSplitKey();\n System.out.println(\"Split key \" + Arrays.asList(splitKey));\n\n CompositeKey ledgerKey = stub.createCompositeKey(this.name, splitKey);\n System.out.println(\"ledgerkey is \");\n System.out.println(ledgerKey);\n\n byte[] data = State.serialize(state);\n System.out.println(\"ctx\" + this.ctx);\n System.out.println(\"stub\" + this.ctx.getStub());\n this.ctx.getStub().putState(ledgerKey.toString(), data);\n\n return this;\n }",
"public void addState(GameState gameState) {\n gameStates.push(gameState);\n }",
"public void addState(State state, float duration) {\n stateDuration.put(state, duration);\n if (duration == -1f) {\n permanentState = true;\n }\n }",
"public Animator addState(AnimState state) {\n this.states.add(state);\n return this;\n }",
"public void addState(E state) {\n if (!frozen && state != null && state.getClass() != null) {\n if (present != null) {\n past.addLast(present);\n }\n present = state;\n forgetFuture();\n }\n }",
"protected final void addState(final State state) {\n\t\tstates.add(state);\n\t\ttransitionFromStateMap.put(state, new LinkedList<Transition>());\n\t\ttransitionToStateMap.put(state, new LinkedList<Transition>());\n\t\tcachedStates = null;\n\t\tdistributeStateEvent(new AutomataStateEvent(this, state, true, false, false));\n\t}",
"@Override\n\tpublic void addState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\t\n\t}",
"public StateVertex addState(StateVertex stateVertix) {\n\t\treturn addState(stateVertix, true);\n\t}",
"public void addState(IState state) {\n\t\tint id = state.getId();\n\t\tif (this.states.size() < id) {\n\t\t\t// There are empty positions before id, fill with null values\n\t\t\tfor (int i = this.states.size(); i < id; i++) {\n\t\t\t\tthis.states.add(i, null);\n\t\t\t}\n\t\t\tthis.states.add(id, state);\n\n\t\t}\n\t\telse if (this.states.size() > id) {\n\t\t\t// overwrite existing position\n\t\t\tthis.states.set(id, state);\n\n\t\t}\n\t\telse {\n\t\t\t// list size == id\n\t\t\tthis.states.add(id, state);\n\t\t}\n\t}",
"public StateChange add(StateChange other){\n\t\tif(other != null){\n\t\t\tchangeInPlayerHealth += other.changeInPlayerHealth;\n\t\t\tchangeInPlayerScore += other.changeInPlayerScore;\n\t\t\tchangInBatteryCharge += other.changInBatteryCharge;\n\t\t\tpuaseForAnimation = puaseForAnimation || other.puaseForAnimation;\n\t\t}\n\t\treturn this;\n\t}",
"@Override\r\n\tpublic void addState(String nextToken) {\r\n\t\tNFAState s = checkIfExists(nextToken);\r\n\t\tif (s == null) {\r\n\t\t\tstates.add(new NFAState(nextToken));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: this state already exists.\");\r\n\t\t}\r\n\t}",
"void addHasState(String newHasState);",
"private void addState(String state, int num) {\r\n this.visitedList.add(state);\r\n if (this.visitedList.size() >= num) {\r\n this.visitedList.remove(0);\r\n }\r\n }",
"@Override\n public void addGameState(GameState gameState) {\n }",
"@Override\n public void addToOpenList(AState state) throws Exception {\n if (state == null)\n throw new IllegalArgumentException(\"State cannot be null\");\n openList.add(state);\n }",
"public void add(AState state){ this.path_solution.add(0,state);}",
"public boolean addState(String state) {\n\t\tif (!states.contains(state)) {\n\t\t\tstates.add(state);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected void addState(Player player) {\n if (!_state.containsKey(player.getName())) {\n _state.put(player.getName(), new PlayerState(player, _playerConfig));\n }\n }",
"public void addState(int stateHash, AIHandler handler) {\n _states.put(stateHash, handler);\n }",
"public void push(GameState state){\n states.push(state);\n }",
"public void applyNewState() {\n this.setAlive(this.newState);\n }",
"@Override\n\tpublic void addStartState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif(s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\tstart = s;\n\t\t\n\t}",
"public void addState(State state) {\n states.add(state);\n state.setCountry(this);\n }",
"void addObjectFlowState(ObjectFlowState objectFlowState);",
"@Override\n\tpublic State addState(State state, int idEquip) {\n\t\treturn dao.addState(state, idEquip);\n\t}",
"@Override\r\n\tpublic void addStartState(String startStateName) {\r\n\t\tNFAState s = checkIfExists(startStateName);\r\n\t\tif (s == null) {\r\n\t\t\ts = new NFAState(startStateName);\r\n\t\t\tstartState = s;\r\n\t\t\tstates.add(s);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: this start state already exists.\");\r\n\t\t}\r\n\t}",
"public void push(State s0) {\n\t\tsList.add(s0);\r\n\t}",
"public void addNewStage() {\n\t\tif (stage != 0 && getCurrentActions().isEmpty()) { // This should be validated by the command\n\t\t\tthrow new IllegalStateException(\"Cannot progress stage without actions\");\n\t\t}\n\n\t\tstage = amountOfStages\n\t\t\t\t+ 1; // The stage that is being edited may not be the latest so make sure not to duplicate\n\t\tamountOfStages++;\n\t\tstagesOfActions.putIfAbsent(stage, new LinkedHashMap<>());\n\t\tstageJsons.putIfAbsent(stage, new JsonObject());\n\t}",
"@Override\n public int addState(String stateName) {\n int status=0;\n StateTb s=new StateTb();\n s.setStateName(stateName);\n s.setIsActive(1);\n em.persist(s);\n status=1;\n return status;\n }",
"@GuardedBy(\"sfg\")\n\tpublic StateVertex addState(StateVertex stateVertix, boolean correctName) {\n\t\tsynchronized (sfg) {\n\t\t\tif (!sfg.addVertex(stateVertix)) {\n\t\t\t\t// Graph already contained the vertix\n\t\t\t\tLOG.debug(\"Graph already contained vertex {}\", stateVertix);\n\t\t\t\treturn this.getStateInGraph(stateVertix);\n\t\t\t} else {\n\t\t\t\tint count = stateCounter.incrementAndGet();\n\t\t\t\tLOG.debug(\"Number of states is now {}\", count);\n\t\t\t\tif (correctName) {\n\t\t\t\t\tcorrectStateName(stateVertix);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public void\npush(SoState state)\n{\n\tsuper.push(state);\n SoLazyElement prevElt = (SoLazyElement)getNextInStack();\n this.coinstate.copyFrom( prevElt.coinstate);\n}",
"public void addNewState(String countryName, String stateName, String stateShortName, String gstCode) {\n\n\t\t// Create the object for the 'Common Functions'\n\t\tcommonFunctions = createObject(DistricoConstant.COMMON_FUNCTIONS);\n\n\t\t// Create object of the 'State' field\n\t\tif (Objects.isNull(state)) {\n\t\t\tstate = createObject(DistricoConstant.STATE);\n\t\t}\n\t\tboolean flag = state.addState(countryName, stateName, stateShortName, gstCode);\n\t\tif (flag) {\n\t\t\t// Verify Notification\n\t\t\tcommonFunctions.verifyNotification(\"State added successfully.\");\n\t\t} else {\n\t\t\tRESULT.FAIL(\"Failed to add new entry of State\", true, ScreenshotType.browser);\n\t\t}\n\t\t// Refresh page\n\t\trefreshPage();\n\t}",
"public StateChange(String state) {\n\t\tthis(state, Change.ADD);\n\t}",
"@Override\n protected void incrementStates() {\n\n }",
"public State next () { return nextState(); }",
"@Override\n public void add(AbstractState state, Precision precision) throws IllegalArgumentException {\n Preconditions.checkNotNull(state);\n Preconditions.checkNotNull(precision);\n if (workingReached.isEmpty()) {\n firstState = state;\n }\n Precision prevPrecision = workingReached.put(state, precision);\n if (prevPrecision == null) {\n waitlist.add(state);\n lastState = state;\n } else {\n if (!precision.equals(prevPrecision)) {\n workingReached.put(state, prevPrecision);\n throw new IllegalArgumentException(\"State to be added already exists, but with a \"\n + \"different precision\");\n }\n }\n }",
"private void addState(Collection<ReplayState<C>> states, ReplayState<C> state, Marking marking,\r\n\t\t\tTransition transition, C cost, List<? extends Object> trace) {\r\n\t\tif ((cost.compareTo(bestState.cost) < 0) && cost.isAcceptable()) {\r\n\t\t\tstates.add(new ReplayState<C>(state, marking, transition, cost, trace));\r\n\t\t}\r\n\t}",
"public void add()\n {\n set(++ current);\n }",
"public State getNewState() {\n return newState;\n }",
"final void state_push(int state)\n {\n try {\n stateptr++;\n statestk[stateptr]=state;\n }\n catch (ArrayIndexOutOfBoundsException e) {\n int oldsize = statestk.length;\n int newsize = oldsize * 2;\n int[] newstack = new int[newsize];\n System.arraycopy(statestk,0,newstack,0,oldsize);\n statestk = newstack;\n statestk[stateptr]=state;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"New Game State\";\n\t}",
"public State getNewState() {\n\t\treturn newState;\n\t}",
"public void add_switch(String symbol, SLR1_automat.State state) throws Exception;",
"public void addState(String type, String state) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null) {\r\n\t\t\tTaskState ts = new TaskState();\r\n\t\t\tts.name = state;\r\n\t\t\ttt.states.add(ts);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void addFinalState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name, true);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t}",
"@Override\n\tpublic String addstate() {\n\t\treturn \"Open folder so Open state applied \";\n\t}",
"public void addEvent(State previousState, Action action, State currentState, Double reward);",
"public void addAppState(@NotNull final SceneAppState appState) {\n appStates.add(appState);\n appState.setSceneNode(this);\n }",
"@Override\n\tpublic void setState(State state) \n\t\t{ current = new PuzzleState(state.getString(state.getState()),\n\t\t\t\t\t\t\t\t\tstate.getString(state.getGoalState())); \n\t\t}",
"@Override\r\n\tpublic void addFinalState(String nextToken) {\r\n\t\tNFAState fs = checkIfExists(nextToken);\r\n\t\tif (fs == null) {\r\n\t\t\tfs = new NFAState(nextToken, true);\r\n\t\t\tfinalState.add(fs);\r\n\t\t\tstates.add(fs);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: this final state already exists.\");\r\n\t\t}\r\n\t}",
"public final void pushState(int id) {\n engine.getGameStateManager().pushState(id);\n }",
"void nextState();",
"public ATNState newState(GrammarAST node) {\n ATNState n = new BasicState();\n if (currentRule != null) {\n n.setRuleIndex(currentRule.index);\n }\n atn.addState(n);\n return n;\n }",
"public void addNode (NodeState node) throws RepositoryException, IOException\n\t{\n\t}",
"public void storeState(StateInfo stateInfo) {\n \n// Thread.dumpStack();\n super.storeState(stateInfo); \n \n JJStateInfo info = (JJStateInfo) stateInfo;\n info.setSubStates(lexan.getStateInfo());\n \n if (DEBUG) debug.println(\"Storing state [\"+ offset + \",\" + tokenOffset + \"]: \" + info + \"@\" + stopOffset); // NOI18N\n \n }",
"public void addState(int[] specs, Animator animator) {\n Tuple tuple = new Tuple(specs, animator);\n tuple.mAnimator.addListener(mAnimatorListener);\n mTuples.add(tuple);\n mChangingConfigurations |= animator.getChangingConfigurations();\n }",
"public void getState();",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }",
"public void add() {\n\t\tthis.inferior.addThread(this);\n\t\tthis.manager.addThread(this);\n\t\tstate.addChangeListener((oldState, newState, pair) -> {\n\t\t\tmanager.event(() -> manager.listenersEvent.fire.threadStateChanged(this, newState,\n\t\t\t\tpair.cause, pair.reason), \"threadState\");\n\t\t});\n\t}",
"private void addStateLog(){\n int state = GUIState.getState();\n if(state == 1){\n addText(\"Beginning \" + GUIState.command + \" processing!\");\n addText(\"Choose which card this card will affect!\");\n } if(state == 2){\n if(GUIState.command.equals(\"Summon\") || GUIState.command.equals(\"Defense\")){\n addText(\"Beginning \" + GUIState.command + \" processing!\");\n }\n addText(\"Choose where to put this card!\");\n }\n }",
"Update withState(String state);",
"private void addState(Pointer pointer, AssemblyState state) {\r\n\t\t// recurse and make sure that all parents exist already\r\n\t\tif (pointer.length() != 0) {\r\n\t\t\tPointer parent = new Pointer(pointer, 1);\r\n\t\t\tif (! applicationElements.containsKey(parent)) {\r\n\t\t\t\taddState(parent, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// now comes the actual implementation\r\n\t\tDeviceFigure device = null;\r\n\t\tif (state != null) {\r\n\t\t\tdevice = (DeviceFigure)applicationElements.get(state.getSystemID());\r\n\t\t}\r\n\t\tStateFigure figure = null;\r\n\t\tif (pointer.length() == 0) {\r\n\t\t\tfigure = new StateFigure();\r\n\t\t} else {\r\n\t\t\tfigure = new StateFigure(pointer.getName(pointer.length() -1), \r\n\t\t\t\tpointer.isInstance(pointer.length() - 1));\r\n\t\t}\r\n\t\tfigure.setAvailable(state != null);\r\n\t\tapplicationElements.put(pointer, figure);\r\n\t\tif (device != null) {\r\n\t\t\tapplicationGraph.insertNode(figure, device);\t\r\n\t\t\tPolylineConnection edge = new PolylineConnection();\r\n\t\t\tedge.setSourceAnchor(new ChopboxAnchor(device));\r\n\t\t\tedge.setTargetAnchor(new ChopboxAnchor(figure));\t\r\n\t\t\tedge.setLineStyle(Graphics.LINE_DOT);\r\n\t\t\tedge.setForegroundColor(ColorConstants.lightBlue);\r\n\t\t\tapplicationGraph.add(edge);\r\n\t\t} else {\r\n\t\t\tapplicationGraph.addNode(figure);\r\n\t\t}\r\n\t\tif (pointer.length() != 0) {\r\n\t\t\t// recurse in order to create all parent if that has not\r\n\t\t\t// been done so far\r\n\t\t\tPointer parent = new Pointer(pointer, 1);\r\n\t\t\tFigure parentFigure = (Figure)applicationElements.get(parent);\r\n\t\t\tPolylineConnection edge = new PolylineConnection();\r\n\t\t\tedge.setSourceAnchor(new ChopboxAnchor(parentFigure));\r\n\t\t\tedge.setTargetAnchor(new ChopboxAnchor(figure));\t\r\n\t\t\tapplicationGraph.addEdge(edge);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void addStateWorkArea(StateWorkArea stateWorkArea) {\r\n\t\tstateWorkAreaDAO.addStateWorkArea(stateWorkArea);\r\n\t\t\r\n\t}",
"private void addTransition(final State oldState, final State newState, final String symbol) {\n transferFunctionBuilder.addTransition(oldState.getId(), symbol, newState.getId());\n\n alphabetBuilder.addSymbol(symbol);\n }",
"final void state_push(int state)\n{\n try {\n\t\tstateptr++;\n\t\tstatestk[stateptr]=state;\n\t }\n\t catch (ArrayIndexOutOfBoundsException e) {\n int oldsize = statestk.length;\n int newsize = oldsize * 2;\n int[] newstack = new int[newsize];\n System.arraycopy(statestk,0,newstack,0,oldsize);\n statestk = newstack;\n statestk[stateptr]=state;\n }\n}",
"final void state_push(int state)\n{\n try {\n\t\tstateptr++;\n\t\tstatestk[stateptr]=state;\n\t }\n\t catch (ArrayIndexOutOfBoundsException e) {\n int oldsize = statestk.length;\n int newsize = oldsize * 2;\n int[] newstack = new int[newsize];\n System.arraycopy(statestk,0,newstack,0,oldsize);\n statestk = newstack;\n statestk[stateptr]=state;\n }\n}",
"final void state_push(int state)\n{\n try {\n\t\tstateptr++;\n\t\tstatestk[stateptr]=state;\n\t }\n\t catch (ArrayIndexOutOfBoundsException e) {\n int oldsize = statestk.length;\n int newsize = oldsize * 2;\n int[] newstack = new int[newsize];\n System.arraycopy(statestk,0,newstack,0,oldsize);\n statestk = newstack;\n statestk[stateptr]=state;\n }\n}",
"@Override\n public StateList updateState(State state) {\n CompositeKey ledgerKey = this.ctx.getStub().createCompositeKey(this.name, state.getSplitKey());\n byte[] data = State.serialize(state);\n this.ctx.getStub().putState(ledgerKey.toString(), data);\n\n return this;\n }",
"public State state();",
"State(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t}",
"private void addToOperationHistory(UndoableTextChange edit) {\n \t\tif (!fFoldingIntoCompoundChange\n \t\t\t\t|| edit instanceof UndoableCompoundTextChange) {\n \t\t\tfHistory.add(edit);\n \t\t\tfLastAddedTextEdit= edit;\n \t\t}\n \t}",
"public Builder addStateValues(int value) {\n ensureStateValuesIsMutable();\n stateValues_.add(value);\n onChanged();\n return this;\n }",
"public String getNewStateName() {\n\t\tstateCounter.getAndIncrement();\n\t\tString state = makeStateName(stateCounter.get(), false);\n\t\treturn state;\n\t}",
"public void enterHatchingState() {\n\n\t}",
"public DockableState getNewState() {\n\t\treturn newState;\n\t}",
"protected void addMove(Move move) {\n moveHistory.add(move);\n pointer++;\n }",
"public void setState(State state) {\n this.state = state;\n this.statesHistory.add(state.getStateName());\n }",
"public void addTransition(T transition, State<S, T> state) {\n\t\ttransitions.put(transition, state);\n\t}",
"public void addCurrentNode(String currentNodeID)\r\n {\r\n visitedNodes.add(currentNodeID);\r\n }",
"public net.opengis.gml.x32.StringOrRefType addNewStatus()\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.StringOrRefType target = null;\n target = (net.opengis.gml.x32.StringOrRefType)get_store().add_element_user(STATUS$0);\n return target;\n }\n }",
"public State createState(final Point point) {\n\t\tint i = 0;\n\t\twhile (getStateWithID(i) != null) {\n\t\t\ti++;\n\t\t}\n\t\tfinal State state = new State(i, point, this);\n\t\taddState(state);\n\t\treturn state;\n\t}",
"public State() {\n resetTransitions();\n id = next_id++;\n }",
"public static void set_state (int state, String str, int n1, int n2) {\n stateList.add(new State(state,str,n1,n2)); // Add state into the list\n }",
"StatePacBuilder operationalState(OperationalState operationalState);",
"@Override\n\tpublic synchronized Transition addTransition(String label) {\n\t\tTransition t = new Transition(this, label);\n\t\tthis.transitions.add(t);\n\t\tgraphElementAdded(t);\n\t\treturn t;\n\t}",
"public Builder addTransactionState(adamant.global.v1.Enum.TransactionState value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTransactionStateIsMutable();\n transactionState_.add(value.getNumber());\n onChanged();\n return this;\n }",
"public addOperatingState_result(addOperatingState_result other) {\n }",
"public void addFSMNode(FSMNode node) { \n root = addFSMNode(root, node);\n }",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"@Override\n\tpublic void setLastState(STATE state) {\n\n\t}",
"public void addStateListener(StateListener listener) {\n stateListeners.add(listener);\n }",
"public void updateState();",
"void create( State state );",
"public MarketHistoricalState entry(final MarketStateEntry entry) {\n\t\tentries.add(entry);\n\t\treturn this;\n\t}"
] | [
"0.76623505",
"0.73369795",
"0.72577584",
"0.70433503",
"0.7030528",
"0.68487364",
"0.68269116",
"0.681589",
"0.6791191",
"0.6746524",
"0.67462724",
"0.6734384",
"0.6717326",
"0.6713998",
"0.6646327",
"0.6639732",
"0.65548974",
"0.6548897",
"0.6461621",
"0.6453287",
"0.64369094",
"0.6389768",
"0.6347144",
"0.6310459",
"0.6298973",
"0.628059",
"0.62591654",
"0.6215494",
"0.6157607",
"0.611723",
"0.6106863",
"0.6073806",
"0.6026982",
"0.60008126",
"0.5996852",
"0.5992006",
"0.595568",
"0.5951163",
"0.59487456",
"0.59246796",
"0.5878014",
"0.5825566",
"0.5809123",
"0.58060044",
"0.57825375",
"0.57708037",
"0.5764356",
"0.573781",
"0.57260144",
"0.5709948",
"0.5698915",
"0.56843203",
"0.56399405",
"0.5631656",
"0.5594225",
"0.5593599",
"0.5583599",
"0.55743426",
"0.5555997",
"0.55467534",
"0.5543395",
"0.5531247",
"0.5516324",
"0.55160534",
"0.5513434",
"0.54910606",
"0.5487835",
"0.5481642",
"0.5449159",
"0.5446432",
"0.5437529",
"0.5437529",
"0.5437529",
"0.54027617",
"0.54019153",
"0.5399906",
"0.5399649",
"0.53716123",
"0.5368389",
"0.5352068",
"0.53317297",
"0.53276974",
"0.53254414",
"0.53215414",
"0.53123295",
"0.5310763",
"0.5308515",
"0.53032684",
"0.52994204",
"0.5299188",
"0.5293441",
"0.5291107",
"0.5287739",
"0.5251761",
"0.5212687",
"0.52117926",
"0.5209871",
"0.52083874",
"0.520735",
"0.5194999"
] | 0.6608386 | 16 |
Sets the previous state as current state. | public void popState() {
states.pop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPreviousState(State prevState)\r\n\t{\r\n\t\tthis.previousState = new State();\r\n\t\tthis.previousState = prevState;\r\n\t}",
"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 }",
"public\tvoid setprevious (SNode previous) {\r\n\t\tthis.previous=previous;\r\n\t}",
"public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }",
"public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }",
"public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}",
"public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }",
"public void movePrevious() throws CurrentNotSetException {\r\n\t\ttry {\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CurrentNotSetException();\r\n\t\t}\r\n\r\n\t}",
"public void setPrevious(DSAGraphNode<E> inPrevious)\n {\n previous = inPrevious;\n }",
"public void setPrevious(AStarNode previous) {\n this.previous = previous;\n }",
"public void setPrevious(Node<T> previous) {\r\n this.previous = previous;\r\n }",
"public void setCameFrom(State n)\r\n\t{\r\n\t\tthis.previousState = new State(n);\r\n\t}",
"public void setPrevious(MyNode<? super E> _previous)\n\t{\n\t\tthis.previous = _previous;\n\t\t//this.previous = _previous;\n\t}",
"public void setPrevious(DoublyLinkedNode<E> prev) {\n this.prevNode = prev;\n }",
"public State getPreviousState()\r\n\t{\r\n\t\treturn previousState;\r\n\t}",
"public void setPrevious(Node p) {\n previous = p;\n }",
"public void setPrevious(Vertex v){\n previous = v;\n }",
"public void previous();",
"public void setPrevCell(Cell prev)\r\n {\r\n this.prev = prev;\r\n }",
"public void setCurrentState(State currentState) {\n \t\tthis.currentState = currentState;\n \t}",
"public void setPreviousPosition(int previousPosition)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.previousPosition = previousPosition;\n\t}",
"public void setPrev(Position pos) {\n prev = pos;\n }",
"public void transitionStates () {\n myCurrentState = myNextState;\n myNextState = null;\n }",
"public void setPrevColor(Color prevColor){\n\t\tthis.prevColor=prevColor;\n\t}",
"public void prevSlide() {\n\t\tif (currentSlideNumber > 0) {\n\t\t\tsetSlideNumber(currentSlideNumber - 1);\n\t }\n\t}",
"public void setPreviousValue(final String previousValue);",
"public void setPrev(Node prev)\r\n\t{\r\n\t\tthis.prev = prev;\r\n\t}",
"public void setPrev(Node prev) {\n this.prev = prev;\n }",
"public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}",
"void prevSet(Entry e) {\r\n\t\t\tprev = e;\r\n\t\t}",
"public void setPreviousScene(Scene scene) \n\t{\n\t\t// Note we do not create a new previous scene, because we want to save the state of the previous scene\n\t\tpreviousScene = scene;\n\t}",
"private void moveToPreviousCard() {\r\n\t\t// This is simple enough: Move the card set to the previous\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the first card, disable the Previous button and make sure\r\n\t\t// the Next button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FIRST_CARD) {\r\n\t\t\tcardSet.previousCard();\r\n\t btnNext.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FIRST_CARD)\r\n\t\t\t\tbtnPrevious.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }",
"public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }",
"public void setPrev(Node<T> prev) {\n\t\tthis.prev = prev;\n\t}",
"public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}",
"public void setCurrentState(State currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"public void setCurrentState(State currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"public void setPreviousScene(int scene){\n\t\t_previousScene = scene;\n\t}",
"public void undo() {\n target.setCombatState( oldState );\n }",
"public void setPrevious(ListElement previous)\n\t {\n\t this.previous = previous;\n\t }",
"public DockableState getPreviousState() {\n\t\treturn previousState;\n\t}",
"public void setPrev(DNode newPrev) { prev = newPrev; }",
"public void setCurrentState(State state) {\n currentState = state;\n }",
"private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}",
"public void setPrev(String prev){\n\t\tthis.prev = prev;\n\t}",
"@Override\n\tpublic void setLastState(STATE state) {\n\n\t}",
"public void prev();",
"private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }",
"public final void setPreviousScreen(Displayable previousScreen) {\r\n\t\tthis.previousScreen = previousScreen;\r\n\t}",
"public void setPreviousElement(Element<T> previousElement) \n\t{\n\t\tthis.previousElement = previousElement;\n\t}",
"public void prev() {\n\t\tsynchronized (this) {\n\t\t\tint pos = getPreShuffledPos();\n\t\t\tif (pos > 0) {\n\t\t\t\tmPlayPos = mPlayOrder[pos - 1];\n\t\t\t} else {\n\t\t\t\tmPlayPos = mPlayOrder[mPlayListLen - 1];\n\t\t\t}\n\t\t\tstop(false);\n\t\t\tprepareAndPlayCurrent();\n\t\t}\n\t}",
"public void back() {\n\t\tstate.back();\n\t}",
"private void rememberState() {\n int size = pageHistory.size();\n for ( int i = historyCursor + 1; i < size; i++ ) {\n pageHistory.remove( historyCursor + 1 );\n }\n // Add current state to history if different from current one\n PageState newState = new PageState();\n if ( historyCursor < 0 || !pageHistory.get( historyCursor ).equals( newState ) ) {\n pageHistory.add( newState );\n historyCursor = pageHistory.size() - 1;\n }\n }",
"public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"public void setPrev(Version prev){\n\t\tif (prev == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'setPrev' method!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.prev = prev;\n\t}",
"private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }",
"private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }",
"public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }",
"public void setPrevNode(int node) {\n\t\tthis.previousNode = node;\n\t}",
"public final void undo() {\n\t\tthis.historyManager.undo();\n\t}",
"public void setPrev(ListElement<T> prev)\n\t{\n\t\tthis.prev = prev;\n\t}",
"protected void setCurrentState(boolean currentState) {\n this.currentState = currentState;\n }",
"public void undo() {\n if (!canUndo()) {\n throw new VersionedAssignmentList.NoUndoableStateException();\n }\n currentStatePointer--;\n resetData(assignmentListStateList.get(currentStatePointer));\n }",
"public void restart() {\n ReadOnlyAssignmentList currentState = assignmentListStateList.get(currentStatePointer);\n assignmentListStateList.clear();\n assignmentListStateList.add(currentState);\n currentStatePointer = 0;\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}",
"public void setPrevNode(Node<T> prevNode) {\n\t\tthis.prevNode = prevNode;\n\t}",
"public static void setState(States state) {\r\n\t\tcurrentState = state;\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\tcurrentState.resume();\r\n\t}",
"public void updatAssemblyLineState(AssemblyLineState previousState, AssemblyLineState currentState);",
"private void previous() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n\n Timeline.Window currentWindow = currentTimeline.getWindow(currentWindowIndex, new Timeline.Window());\n if (currentWindowIndex > 0 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS\n || (currentWindow.isDynamic && !currentWindow.isSeekable))) {\n player.seekTo(currentWindowIndex - 1, C.TIME_UNSET);\n } else {\n player.seekTo(0);\n }\n }",
"public void setPrevious(DoubleNode<T> node)\n {\n\n previous = node;\n }",
"public void goBackToPreviousScene() {\n\n scenesSeen.pop();\n currentScene = scenesSeen.peek();\n\n this.window.setScene(currentScene.createAndReturnScene());\n }",
"public void switchPreviousTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i - 1 >= 0)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(tabItems.length - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void changePreviousDay(){\n\t\tplanet.getClimate().prevDay();\n\t}",
"public void setPrev(Node p)\n {\n p.next = this.prev.next;\n p.prev = this.prev;\n this.prev.next = p;\n this.prev = p;\n }",
"@Model \n\tprotected void setPrevMove(String prev_move) {\n\t\tassert((prev_move == \"\") || (prev_move == \"left\") || (prev_move == \"right\"));\n\t\t\n\t\tthis.prev_move = prev_move;\n\t}",
"@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }",
"public void setPreviousTotal(int previousTotal) {\n this.previousTotal = previousTotal;\n }",
"public void setPreviousPosition(int xPos) {\n\t\tthis.previousPosition = xPos;\n\t}",
"public void setPrev(DListNode2 prev1){\r\n this.prev = prev1;\r\n }",
"public void setPrev(SlideNode node) {\n\t\tthis.prev = node;\n\t}",
"public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }",
"public void setCurrentState(String currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"private void navigateToPreviousSearchState() {\n Logger.logMessage(TAG, \"Current adapter in nav back is\" + currentAdapter);\n switch (currentAdapter) {\n case \"R\":\n navToPreviousRegions();\n break;\n case \"S\":\n mRecyclerView.setAdapter(regionsAdapter);\n if (currentDisplayingParentId == 0) {\n displayingNowTextView.setText(\"Regions\");\n searchBack.setVisibility(View.GONE);\n } else {\n navToPreviousRegions();\n }\n currentAdapter = \"R\";\n break;\n }\n }",
"private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }",
"public void prev() {\r\n\t\tif (curr == head)\r\n\t\t\treturn; // No previous element\r\n\t\tLink<E> temp = head;\r\n\t\t// March down list until we find the previous element\r\n\t\twhile (temp.next() != curr)\r\n\t\t\ttemp = temp.next();\r\n\t\tcurr = temp;\r\n\t}",
"private void previous()\r\n {\r\n if(currentCard != 0) // if we are not at the first card\r\n {\r\n currentCard--; // make the previous card the current card\r\n \r\n // move through the cards: show the current card, hide the others\r\n for(int i = 0; i <= stack.getChildren().size()- 1; i++)\r\n {\r\n if(i == currentCard)\r\n {\r\n stack.getChildren().get(i).setVisible(true);\r\n }\r\n else\r\n {\r\n stack.getChildren().get(i).setVisible(false);\r\n }\r\n }\r\n }\r\n }",
"public Node setPrevNode(Node node);",
"public void setPrev(ListEntry prev) {\n if (prev != null)\n this.prev = prev;\n else\n this.prev = null;\n }",
"void setPrevPos(Vec3 pos);",
"public void restoreState() {\n\t\tsuper.restoreState();\n\t}",
"public void setCurrentState(final StateName nextState) {\n if (availableStates.containsKey(nextState)) { // for safety.\n curState = availableStates.get(nextState);\n }\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{\n\t\tsuper.restoreState();\n\t}",
"synchronized void revertState()\n {\n state = state.revert();\n notifyAll();\n }",
"public void setPrevWeek()\n\t{\n\t\tm_calendar.set(Calendar.WEEK_OF_MONTH,getWeekOfMonth()-1);\n\n\t}",
"public void inputPrev() {\n --this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }",
"private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }",
"@Override\n\tpublic void undoAction() {\n\t\tfield.setValue(oldValue);\n\n\t\tif (checkBox != null)\n\t\t\tcheckBox.setSelected(oldValue);\n\t}",
"public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }",
"public ReadOnlyNotebook undo() {\n statePointer--;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }"
] | [
"0.81045943",
"0.7314829",
"0.71621263",
"0.71562874",
"0.71329755",
"0.69849557",
"0.6981923",
"0.6967974",
"0.6919296",
"0.6917376",
"0.6855206",
"0.6826043",
"0.6795157",
"0.67910814",
"0.6788686",
"0.67569125",
"0.67183083",
"0.6715191",
"0.6674355",
"0.65664655",
"0.6536556",
"0.65173155",
"0.6516887",
"0.64974463",
"0.6482378",
"0.64696944",
"0.6469304",
"0.64683765",
"0.6431109",
"0.6429916",
"0.64190686",
"0.6418578",
"0.6413944",
"0.63913196",
"0.63666165",
"0.6349936",
"0.6349936",
"0.63499326",
"0.6326634",
"0.63171875",
"0.6316084",
"0.6301",
"0.6276278",
"0.6258835",
"0.6244925",
"0.62445843",
"0.6228241",
"0.6216052",
"0.6212127",
"0.61939615",
"0.6192566",
"0.61817676",
"0.6175923",
"0.6165821",
"0.6113376",
"0.6101099",
"0.60560024",
"0.605512",
"0.60355335",
"0.6034786",
"0.60222477",
"0.60174435",
"0.6007374",
"0.6006929",
"0.60057795",
"0.5996101",
"0.59948593",
"0.59895027",
"0.59883183",
"0.59774077",
"0.59736913",
"0.596108",
"0.59544104",
"0.5950099",
"0.5944512",
"0.594032",
"0.5939603",
"0.59375995",
"0.59357655",
"0.59352577",
"0.5930906",
"0.5907176",
"0.5885911",
"0.58858955",
"0.588184",
"0.5873421",
"0.5870863",
"0.5854528",
"0.58510613",
"0.5842939",
"0.5838421",
"0.58330756",
"0.5829597",
"0.5827841",
"0.5827448",
"0.58205277",
"0.58153313",
"0.58011496",
"0.5792342",
"0.5781724",
"0.57815075"
] | 0.0 | -1 |
Send Email > Suite execution start.. | @Override
public void onStart(ISuite suite) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SendEmail() {\t\n\t}",
"public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":8080/job/git-DataDriven-Framework/Extent_20reports//\";\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n //System.out.println(hostname);\r\n \r\n try {\r\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody);\r\n\t} catch (AddressException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} catch (MessagingException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\t\r\n\t}",
"public void execute(DelegateExecution execution) {\n System.out.println(\"Sending email now\");\n }",
"private DemoProcessStartEmailForWebservice() {\n\n }",
"public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}",
"public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"test@email.com\", \"java@anc.ro\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }",
"void sendEmail(Task task, String taskTypeName, String plantName);",
"public void sendMailReport() {\n mailService.sendMail(\"users@example.org\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }",
"@BeforeSuite(alwaysRun=true)\n\tpublic void first(ITestContext ctx) throws Throwable{\n\t\titc=ctx;\n\n\t\tTestEngine.cleanUP();\n\n\t\tReportStampSupport.calculateSuiteStartTime();\n\t\tsuiteStartDateTime = ReportStampSupport.dateTime();\n\n\n\t\tif (System.getProperty(\"InteractHost\") != null){\n\n\t\t\tProtocol=System.getProperty(\"Protocol\");\n\t\t\tHostName=System.getProperty(\"InteractHost\");\n\t\t\tPort=System.getProperty(\"InteractPort\");\n\t\t\tconfigProps.setProperty(\"Protocol\", Protocol);\n\t\t\tconfigProps.setProperty(\"InteractHost\", HostName);\n\t\t\tconfigProps.setProperty(\"InteractPort\", Port);\n\n\t\t\t//AccountId = System.getProperty(\"AccountId\");\n\t\t\tUserId = System.getProperty(\"EmailId\");\n\t\t\tPassword = System.getProperty(\"Password\");\n\t\t\n\t\t\t//configProps.setProperty(\"accountId\", AccountId);\n\t\t\tconfigProps.setProperty(\"UserId\", UserId);\n\t\t\tconfigProps.setProperty(\"Password\", Password);\n\t\t\t\n\t\t\t//AccountId = System.getProperty(\"AccountId\");\n\t\t\tUserId_ProgramOfficer = System.getProperty(\"UserId_ProgramOfficer\");\n\t\t\tPassword_ProgramOfficer = System.getProperty(\"Password_ProgramOfficer\");\n\t\t\t\n\t\t\t//configProps.setProperty(\"accountId\", AccountId);\n\t\t\tconfigProps.setProperty(\"UserId_ProgramOfficer\", UserId_ProgramOfficer);\n\t\t\tconfigProps.setProperty(\"Password_ProgramOfficer\", Password_ProgramOfficer);\n\n\t\t\tAdminUserId = System.getProperty(\"SystemAdminUsername\");\n\t\t\tAdminPassword = System.getProperty(\"SystemAdminPassword\");\n\t\t\tconfigProps.setProperty(\"AdminUserId\", AdminUserId);\n\t\t\tconfigProps.setProperty(\"AdminPassword\", AdminPassword);\n\n\t\t\twebDesignerUrl = System.getProperty(\"webDesignerUrl\");\n\t\t\tconfigProps.setProperty(\"webDesignerUrl\", webDesignerUrl);\n\n\t\t\t\n\t\t\tif(System.getProperty(\"ExecuteLocally\").equalsIgnoreCase(\"False\")){\n\t\t\t\tconfigProps.setProperty(\"ExecuteInBrowserstack\", \"True\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tconfigProps.setProperty(\"ExecuteInBrowserstack\", \"False\");\n\t\t\t}\n\n\t\t\tif(System.getProperty(\"DeleteAccountsAfterTestsCompletion\").equalsIgnoreCase(\"True\")){\n\t\t\t\tdeleteAccounts = true;\n\t\t\t}\n System.out.println(\"EmailRecipients\");\n\t\t\tif (System.getProperty(\"EmailRecipients\") != null){\n\t\t\t\tconfigProps.setProperty(\"ToAddresses\", System.getProperty(\"EmailRecipients\"));\n\t\t\t}\n\n\t\t}\n\t\telse{\n\n\t\t\tProtocol=configProps.getProperty(\"Protocol\");\n\t\t\tHostName=configProps.getProperty(\"InteractHost\");\n\t\t\tPort=configProps.getProperty(\"InteractPort\");\n\n\t\t\t//AccountId = configProps.getProperty(\"accountId\");\n\t\t\tUserId = configProps.getProperty(\"UserId\");\n\t\t\tPassword = configProps.getProperty(\"Password\");\n\n\t\t\tAdminUserId=configProps.getProperty(\"AdminUserId\");\n\t\t\tAdminPassword=configProps.getProperty(\"AdminPassword\");\n\n\t\t\twebDesignerUrl = configProps.getProperty(\"webDesignerUrl\");\n\t\t}\n\n\n\t\tSystem.out.println(\"Protocol: \"+Protocol);\n\t\tSystem.out.println(\"HostName: \"+HostName);\n\t\tSystem.out.println(\"Port: \"+Port);\n\t\t//System.out.println(\"AccountId: \"+AccountId);\n\t\tSystem.out.println(\"UserId: \"+UserId);\n\t\tSystem.out.println(\"Password: \"+Password);\n\t\t\n\t}",
"public static void start() {\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tDate dtnow = new Date();\r\n\t\t\t//Verify email queue\r\n\t\t\tIterator<Mailtogo> it = new MailtogoDAO().getQueue().iterator();\r\n\t\t\twhile(it.hasNext())\r\n\t\t\t{\r\n\t\t\t\tMailtogo mtg = (Mailtogo)it.next();\r\n\t\t\t\tmtg.setMtg_status(\"P\");\r\n\t\t\t\tmtg.save();\r\n\t\t\t\tdtnow = new Date();\r\n\t\t\t\tSystem.out.println(format.format(dtnow) + \" -> Sending message \" + mtg.getMtg_id());\r\n\t\t\t\tsend(mtg);\r\n\t\t\t}\r\n\t\t} catch (Exception e)\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"sai@gmail.com\");\n\t\t\n\t}",
"@Test\n\tpublic void testCase1() {\n\t\tSystem.out.println(\"Composemail\");\n\n\t}",
"public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id jdfjdfh@gmail.com\");\n\t\t\n\t}",
"void sendEmail(Job job, String email);",
"public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }",
"public void launchYopmail() throws Exception {\n\t\twdriver.get(WebData.urlOfYopmail);\n\t}",
"@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"Cloud.Software.Email@gmail.com\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }",
"@Override\n public void sendEmail() {\n return;\n }",
"public void send() {\n\t\tfinal String username = \"oneplanner.sys@gmail.com\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"oneplanner.sys@gmail.com\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"jinnonsbox@gmail.com\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }",
"public void run() {\n\t\tlog.info(\"Weekly Scheduled Asset Report Job starting >> isMasterInstance:{} and isAuthorInstance:{}.\", isMasterInstance, isAuthorInstance);\r\n\t\tSession session = null;\r\n\t\t\r\n if (isMasterInstance && isAuthorInstance) {\r\n \r\n \tif(sendWeeklyReport) {\r\n\t\t try {\r\n\t\t\t\t\t session = getSession();\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t //TODO- \r\n\t\t\t\t\t String lowerBoundDate = \"2014-06-19\";\r\n\t\t\t\t\t String upperBoundDate = \"2014-06-26\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t String dateRange = lowerBoundDate + \" - \" + upperBoundDate;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t String templatePath = MISReportConstant.REPORT_EMAIL_TEMPLATE;\r\n\t\t\t\t\t Map<String, String> emailParams = MISReportUtil.buildEmailParams(reportType, reportFrequency, dateRange);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t DataSource reportDatasource = generateReport.generateReport(lowerBoundDate, upperBoundDate, reportType, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t //Get the UserGroup name for the reporType\t\t\r\n\t\t\t\t\t String userGroup = userManagement.getUserGroup(reportType);\r\n\t\t\t\t\t\r\n\t\t\t\t\t String[] authors = userManagement.getAllUsersOfGroup(userGroup, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t for(String authorID: authors) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailParams.put(MISReportConstant.FIRST_NAME, userManagement.getUserName(authorID, session));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailService.sendEmail(templatePath, emailParams, session, reportDatasource, userManagement.getEmailAddress(authorID, session));\r\n\t\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\t log.error(\"[Exception]\",e);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif(session.isLive())\r\n\t\t\t\t\t\tsession.logout();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t log.info(\"Weekly Asset Report Job finished sending {} reports\", reportType);\r\n \t}\r\n \telse {\r\n \t\tlog.info(\"Weekly Asset Report Job not executed>> Enable it from the AEM Felix console to execute\");\r\n \t}\r\n }\r\n \r\n\t}",
"public final void testSendMail() throws EMagineException {\r\n\t\tCollection<Attachment> attachments = new ArrayList<Attachment>();\r\n\t\tAttachment attachment = new Attachment();\r\n\t\tattachment.setName(this.getClass().getSimpleName()+\".java\");\r\n\t\tattachment.setPath(\"TestSource/\"+this.getClass().getPackage().getName().replaceAll(\"\\\\.\", \"/\")+\"/\"+this.getClass().getSimpleName()+\".java\");\r\n\t\tattachments.add(attachment);\r\n\t\tMailManager.sendMail(\"root@localhost.localdomain\", \"MailManagerTest\", \"Just a funny test\", attachments);\r\n\t}",
"public void SendEmail() throws Exception {\r\n\r\n\t\t\t\r\n\t\t// Create the attachment\r\n\t\t EmailAttachment attachment = new EmailAttachment();\r\n\t\t attachment.setURL(new URL(\"file:///C:/Users/sachinsehgal2/eclipse-workspace/TeachAway/Test_Report.html\"));\r\n\t\t attachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\t attachment.setDescription(\"Selenium Report\");\r\n\t\t attachment.setName(\"TeachAway_Menu Navigation Automation Report.html\");\r\n\r\n\t\t // Create the email message\r\n\t\t MultiPartEmail email = new MultiPartEmail();\r\n\t\t\temail.setHostName(\"smtp.gmail.com\");\r\n\t\t\temail.setSmtpPort(465);\r\n\t\t\temail.setAuthentication(\"admin@gmail.com\", \"password\");\r\n\t\t\temail.setSSLOnConnect(true);\r\n\t\t \temail.addCc(\"Stakeholder@accenture.com\", \"StakeHolder\");\r\n\t\t\temail.setFrom(\"admin@gmail.com\", \"admin\");\r\n\t\t\temail.setSubject(\"Automation Status -TeachAway Navigation Menu\");\r\n\t\t\temail.setMsg(\"PFA the results for automation of Navigation menu for Teach Away.\");\r\n\t\t \r\n\t\t // add the attachment\r\n\t\t email.attach(attachment);\r\n\t\t // send the email\r\n\t\t email.send();\r\n\t\tSystem.out.println(\"The email Sent\");\r\n\t}",
"void send(String emailName);",
"public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"void send(Email email);",
"@Override\n\tpublic void alert() {\n\t\ttry {\n\t\t\tSystem.out.println(\"ala\");\n\t\t\tfM.sendMail(text, topic, toWho);\n\t\t} finally {\n\t\t\tif (al != null)\n\t\t\t\tal.alert();\n\t\t}\n\t}",
"public void send(Email email) {\n\t\t\n\t\tSimpleMailMessage message = new SimpleMailMessage(); \n\t message.setTo(email.getTo()); \n\t message.setSubject(email.getSubject()); \n\t message.setText(email.getBody());\n\t \n\t System.out.println(\"Sending Email \");\n\t \n\t javaMailSender.send(message);\n\n\t System.out.println(\"Email Sent Successfully!!\");\n\n\t}",
"public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"public static void main(String[] args) {\n\n\t\tPolyMorphismExample polyMorphism = new PolyMorphismReference();\n\t\tpolyMorphism.loginToGmailApp();\n\t\tpolyMorphism.sendEmail();\n\t\t\n\t}",
"public void OnRun()\r\n {\r\n try\r\n {\r\n Init();\r\n }\r\n catch(Exception ex)\r\n {\r\n eventLogger.error(ex);\r\n }\r\n \r\n try\r\n {\r\n this.types = this.config.getTypes();\r\n \r\n// this.checkList = dao.CheckLastRun();\r\n \r\n// if (checkList.size()>0)\r\n// {\r\n// Vector<Integer> checkListLastRun = checkList;\r\n// \r\n// checkList = new Vector<Integer>();\r\n// \r\n// CollectInvitees(true);\r\n// CollectInvitees(false);\r\n// \r\n// // lasttime missing some mails\r\n// RemoveSearched(checkListLastRun);\r\n// }\r\n// else\r\n// {\r\n dao.CleanChecklist();\r\n \r\n CollectInvitees(true);\r\n CollectInvitees(false);\r\n \r\n for(Integer id : this.checkList)\r\n {\r\n dao.BuildChecklist(id);\r\n }\r\n// }\r\n \r\n SendEmails();\r\n }\r\n catch(Exception ex)\r\n {\r\n eventLogger.warn(ex);\r\n }\r\n }",
"private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}",
"public static void sendEmail(SuspectionReport report,String covidLocation) throws Exception {\n\t\tlogger.info(\"--------------- sendEmailToCustomer --------------\");\n\t\ttry {\n\t\t\tProperties mailProps = new Properties();\n\t\t\tfinal String username = \"incubationtracker@gmail.com\";\n\t final String password = \"bvhibkzgkicfdsqh\";\n\n\t Properties props = new Properties();\n\t props.put(\"mail.smtp.starttls.enable\",\"true\");\n\t props.put(\"mail.smtp.host\", \"smtp.gmail.com\"); \n\t props.put(\"mail.smtp.auth\", \"true\"); \n\t props.put(\"mail.smtp.port\", \"587\"); ; //TLS\n\t \n\t Session session = Session.getDefaultInstance(props, \n\t new javax.mail.Authenticator() { \n\t protected PasswordAuthentication getPasswordAuthentication() { \n\t return new PasswordAuthentication(username,password); \n\t } \n\t }); \n\t\t\t//mailProps.put(\"mail.smtp.host\", apiUtil.getProperty(\"spring.mail.host\"));\n\t\t\t//Session mailSession = Session.getDefaultInstance(mailProps, null);\n\t\t\tInternetAddress toAddrs = new InternetAddress(apiUtil.getProperty(\"email.to.address\"));\n\t\t\t\n\t\t\tInternetAddress fromAddr = new InternetAddress(apiUtil.getProperty(\"email.from.address\").toString().trim());\n\t\t\t// Create and initialize message\n\t\t\tjavax.mail.Message message = new MimeMessage(session);\n\t\t\tmessage.setFrom(fromAddr);\n\t\t\tmessage.setRecipient(javax.mail.Message.RecipientType.TO, toAddrs);\n\t\t\t// message.setRecipients(Message.RecipientType.CC, ccAddrs);\n\t\t\tmessage.setSubject(\"Covid Contact Suspection\" );\n\t\t\tInternetAddress[] replyTo = new InternetAddress[1];\n\t\t\treplyTo[0]=new InternetAddress(apiUtil.getProperty(\"email.from.address\").toString().trim());\n\t\t\tmessage.setReplyTo(replyTo);\n\t\t\tmessage.setContent(velocityUtil.getEmailTemplate(report,covidLocation),\"text/html\");\n\t\t\t// Send message \t\t\t\n\t\t\tTransport.send(message);\n\t\t\tlogger.info(\"--------------- Email has been sent --------------\");\n\t\t} catch (MessagingException e) {\n\t\t\tlogger.error(\"--------------- Exception --------------\" + e.getMessage());\n\t\t}\n\t}",
"public void execute(int threadcount,int pagesize,String hostname) {\n\t\tlogger.info(\"start send subscript email...\");\n\t\tList<Map> subscribers=subscribeDao.getValideSubscribe();\n\t\tlogger.info(\"subscribers count:\"+subscribers.size());\n\t\tif(subscribers!=null&&subscribers.size()>0){\n\t\t\tExecutorService executor=Executors.newFixedThreadPool(threadcount);\n\t\t\tfor(Map subscriber:subscribers){\n\t\t\t\texecutor.execute(new UserSubscribe(mailSender,hostname,subscriber,pagesize,mailsubject));\n\t\t\t}\n\t\t\texecutor.shutdown();\n\t\t\t\n\t\t\ttry {\n\t\t\t\texecutor.awaitTermination(1000, TimeUnit.DAYS);\n\t\t\t\tlogger.info(\"Email send over!\");\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tLOGGER.info(\"***************************************邮件发送服务启动******************************************************\");\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10000);\n//\t\t\t\t\t\tlog.debug(\"************************************ Email task check******************************************************\");\n\t\t\t\t\t\tEmail email = emailCollection.poll();\n\t\t\t\t\t\tif (null != email) {\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email begin send******************************************************\");\n\t\t\t\t\t\t\trealSendMailReal(email);\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email end send******************************************************\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLOGGER.error(\"{}\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}",
"public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"chillamcharla.bharath@gmail.com\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"chillamcharla.bharath@gmail.com\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"chillamcharla.bharath@gmail.com\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}",
"@Override\r\n\t\tpublic void run() {\n\t\t\tMailSender sender = new MailSender(username, password);\r\n\t\t\tLog.e(\"Birham : sendMail\", \"I am in run\");\r\n\t\t\ttry {\r\n\t\t\t\tsender.sendMail(subject, message, sendAddr, email, ccAddr,\r\n\t\t\t\t\t\tattachment);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tToast.makeText(context, \"Mail sending thread is running!\",\r\n//\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t}",
"@Step\n public WrikeResendPage startFreeForTodayWithEmail(WrikeMainPage mainPage, String email) {\n mainPage.click(WrikeMainPage.getStartedForFreeBtn);\n // Fill email form\n mainPage.writeText(WrikeMainPage.newEmailModalText, email);\n // Click submit\n mainPage.click(WrikeMainPage.newEmailSubmitModalBtn);\n // Wait for resend page to load\n return new WrikeResendPage(webDriver);\n\n }",
"public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}",
"public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"@Test (priority = 2, dependsOnMethods = {\"login\", \"composeMail\"})\r\n\tpublic void saveMail() {\n\t\tSystem.out.println(\"Save Mail\");\r\n\t}",
"public void sendEmail(SendEmailRequestDocument parameters) {\r\n\t\t// Add the business logic here\r\n\t\treturn;\r\n\t}",
"@Test public void testMailer() throws Exception {\n ServerProperties properties = new ServerProperties();\n properties.setTestProperties();\n Server server = Server.newInstance(properties);\n Mailer mailer = Mailer.getInstance();\n assertTrue(\"Checking mailer\", mailer.send(\"johnson@hackystat.org\", \"Test Subject\", \"TestBody\"));\n server.stop();\n }",
"public static void main(String[] args) throws Exception {\r\n\t\t// SMTP server information\r\n\t\tString host = \"smtp.gmail.com\";\r\n\t\tString port = \"587\";\r\n\t\tString mailFrom = \"javamailtesting1@gmail.com\";\r\n\t\tString password = \"javamailtesting1\";\r\n\r\n\t\t// outgoing message information\r\n\t\tString mailTo = \"santuc1990@gmail.com\";\r\n\t\tString subject = \"HTML Mail\";\r\n\r\n\t\t// message contains HTML markups\r\n\t\tString message = \"\";//readFile(\"C:/login.html\");\r\n\t\tOrderBean order=new OrderBean();\r\n\t\tProducts product1=new Products();\r\n\t\tproduct1.setCommerceItemId(\"c123\");\r\n\t\tproduct1.setProductName(\"Pantene\");\r\n\t\tproduct1.setQuantity(\"1\");\r\n\t\tproduct1.setSkuId(\"sku123\");\r\n\t\tproduct1.setListPrice(\"10\");\r\n\t\tproduct1.setProductId(\"prod123\");\r\n\t\tproduct1.setSalePrice(\"9\");\r\n\t\tList<Products> pList=new ArrayList<Products>();\r\n\t\tpList.add(product1);\r\n\t\tProducts product2=new Products();\r\n\t\tproduct2.setCommerceItemId(\"c456\");\r\n\t\tproduct2.setProductName(\"Dove\");\r\n\t\tproduct2.setQuantity(\"2\");\r\n\t\tproduct2.setSkuId(\"sku456\");\r\n\t\tproduct2.setListPrice(\"20\");\r\n\t\tproduct2.setProductId(\"prod456\");\r\n\t\tproduct2.setSalePrice(\"19\");\r\n\t\tpList.add(product2);\r\n\t\torder.setOrderId(\"o123456\");\r\n\t\torder.setOrderMap(pList);\r\n\t\torder.setOrderTotal(\"47\");\r\n\t\tmessage=new EmailDemo().generateVelocityTemplate(order);\r\n\t\tHtmlEmailSender mailer = new HtmlEmailSender();\r\n\r\n\t\ttry {\r\n\t\t\tmailer.sendHtmlEmail(host, port, mailFrom, password, mailTo,\r\n\t\t\t\t\tsubject, message);\r\n\t\t\tSystem.out.println(\"Email sent.\");\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Failed to sent email.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}",
"@Scheduled(cron = \"0 * * * * *\")\r\n\tpublic void run() {\r\n\r\n\t\tString[] emailArray = new String[emailRecipientList.size()];\r\n\t\temailArray = emailRecipientList.toArray(emailArray);\r\n\t\tLOGGER.debug(\"Sending a email to \" + emailArray);\r\n //Current time\r\n\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t//Current time - 1 hour\r\n\t\tLocalDateTime after = LocalDateTime.now().minusHours(1);\r\n\r\n\t\tTimestamp dateCreatedBefore = Timestamp.valueOf(now);\r\n\t\tTimestamp dateCreatedAfter = Timestamp.valueOf(after);\r\n\t\t// Search for file id's added for the last hour \r\n\t\tList<Long> ids = infoDataService.searchFileId(null, null, \r\n\t\t\t\tdateCreatedBefore, dateCreatedAfter, null, null,null);\r\n\t\t// Create a email body \r\n\t\tStringBuffer emailBody =new StringBuffer();\r\n\t\temailBody.append(\"New Files Uploaded:\");\r\n for(Long id : ids) {\r\n \ttry {\r\n \t FileInfo metaData = infoDataService.findRecordById(id);\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"*******************************************************\");\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"ID:\"+metaData.getId());\r\n \t emailBody.append(\", ORIGINAL NAME: \"+metaData.getFileName());\r\n \t Long size = metaData.getSize()/1000;\r\n \t emailBody.append(\", SIZE (KB):\"+size);\r\n \t emailBody.append((metaData.getPublicAccess())?\", PUBLIC ACCESS: true\":\" , PUBLIC ACCESS: false\");\r\n \t emailBody.append(\", TIME UPLOADED:\"+metaData.getUploadedTs().toLocalDateTime());\r\n \t emailBody.append(System.lineSeparator());\r\n \t}\r\n \tcatch(Exception e) {\r\n \t\temailBody.append(Utilities.NO_DATA_FOR_ID+id); \t\t\r\n \t}\r\n }\r\n // Sending a scheduled email \r\n SimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setTo(emailArray);\r\n\t\tmsg.setSubject(Utilities.SCHEDULER_SUBJECT);\r\n\t\tmsg.setText(emailBody.toString());\r\n\t\tmsg.setFrom(emailSender);\r\n\r\n\t\t// TODO\r\n\t\t// Uncomment the next line after adding a correct credentials to the\r\n\t\t// application.properies file\r\n\t\t// javaMailSender.send(msg);\r\n\r\n\t}",
"public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }",
"@Override\n\tpublic void setSendMailSuccess() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tMimeMessage msg=javaMailSender.createMimeMessage();\n\t\t\t\tMimeMessageHelper helper=null;\n\t\t\t\ttry {\n\t\t\t\t\thelper = new MimeMessageHelper(msg,true,\"utf-8\");\n\t\t\t\t} catch (MessagingException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\thelper.setTo(to);\n\t\t\t\t\thelper.setSubject(subject);\n\t\t\t\t\thelper.setText(text,true);\n\t\t\t\t\t\n\t\t\t\t\thelper.setFrom(getFromAddress());\n\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tjavaMailSender.send(msg);\n\t\t\t\tSystem.out.println(\"send ---------\");\n\t\t\t}",
"@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}",
"public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}",
"public void execute(JobExecutionContext context) {\n sendSevenDaysExpiringEmails();\n sendOneDayExpiringEmails();\n sendOneDayExpiredEmails();\n }",
"public static void main(String[] args) {\n\t\tEmail email1 = new Email(\"Monis\",\"Saeed\");\r\n\t\temail1.SetAlternateEmail(\"monissaeed303@gmail.com\");\r\n\t\temail1.SetMailBoxCapacity(500);\r\n\t\t\r\n\t\tSystem.out.println(email1.ShowInfo());\r\n\t}",
"public static void main(String[] args) {\n\t\tString toMail = \"skssskdy@gamil.com\"; //받는사람\n\t\tString toName = \"테스터\"; //받는 사람 이름\n\t\tString subject = \"테스트 제목\";\n\t\tString content = \"테스트내용\";\n\t\t\n\t\tMailSender mailSender = new MailSender();\n\t\tmailSender.sendMail(toMail, toName, subject, content);\n\t}",
"public static void main(String[] args) {\n /* Generate the email factory */\n EMailGenerationSystem generateEmail = new EmailFactory();\n \n /* Generate the email for business customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" Business Customer.---\"); \n generateEmail.generateEmail(\"Business\"); /* Generate email. */\n System.out.println(\"\\n\"); /* separate the test cases */\n \n /* Generate the email for frequent customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Frequent Customer.---\"); \n generateEmail.generateEmail(\"Frequent\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for new customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"New Customer.---\"); \n generateEmail.generateEmail(\"New\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for returning customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Returning Customer.---\"); \n generateEmail.generateEmail(\"returning\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for vip customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" VIP Customer.---\"); \n generateEmail.generateEmail(\"VIP\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for mispelling. The message will print out indicating error.*/\n System.out.println(\"---This is the start of the email for email \"\n + \" generation failure.---\"); \n generateEmail.generateEmail(\"custumer\"); /* Generate email. */\n }",
"@RequestMapping(\"/test\")\n\tpublic String Mail()\n\t{\n\t\tif(useMock)//if useMock value is true then it calls mockEmaliSender else it calls SMTPEmailSender the is declare in app.properties\n\t\t{\n\t\treturn mockEmailSender.sendMail(); //call to mMockEmailSender Class\n\t\t}\n\t\telse\n\t\t{\n\t\treturn SMTPEmailSender.sendMail(); //call to SMTPEmailSender class\n\t\t}\n\t}",
"public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }",
"private void sendEmail() {\n String to = \"tsutton720@gmail.com\";\n\n // Sender's email ID needs to be mentioned\n String from = \"web@gmail.com\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public static void main(String[] args)\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tMailDaemon.simpleSend(\"10.253.65.14\", \r\n\t\t\t\t\tnew String[]{\"ralph.hodgson@pa.press.net\"}, \r\n\t\t\t\t\t\"ralph.hodgson@pa.press.net\", \"TEST\", \"TEST\");\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}",
"@Test\n\tpublic void EmailUtility() {\n\n\t\tlog.info(\"Testing Starts\");\n\t\tperformCommonMocking();\n\t\t\n\t\tEmail emailMessage = new Email();\n\t\temailMessage.setHostName(\"localhost\");\n\t\temailMessage.setPortName(\"25\");\n\t\tString[] recipients = new String [3];\n\t\trecipients[0] = \"abc@abc.com\";\n\t\trecipients[1] = \"xyz@xyz.com\";\n\t\trecipients[2] = \"qwe@qwe.com\";\n\t\temailMessage.setRecipient(recipients);\n\t\temailMessage.setFrom(\"robi@robi.com\");\n\t\temailMessage.setSubject(\"Test Email\");\n\t\temailMessage.setBody(\"Test Body\");\n\t\tString[] files = new String[1];\n\t\tfiles[0] = \"C:\\\\Users\\\\asara3\\\\Documents\\\\Architecture.jpg\";\n\t\temailMessage.setFile(files);\n\t\t\n\t\tlog.info(\"Email Model Set Successfully\");\n\t\t\n\t\ttry {\n\t\t\tWhitebox.invokeMethod(EmailUtility.class, \"processEmail\", emailMessage);\n\t\t\tlog.info(\"Model Processed Successfully\");\n\t\t} catch (Exception e) {\n\t\t\n\t\t\tlog.error(\"Error in Model processing\");\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}",
"public void sendEmailForAccessionReports(Exchange exchange) {\n logger.info(\"accession reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForAccession(exchange), RecapConstants.EMAIL_FOR, RecapConstants.ACCESSION_REPORTS);\n }",
"public void execute(JobExecutionContext context) throws JobExecutionException\n\t{\n\t\t\tJobDataMap jdMap = context.getMergedJobDataMap();\n\n\n\t\t\t//Pulling params from our JobDataMap\n\t\t\tString recipentEmail = jdMap.getString(\"emailAddress\");//Email Were Sending to\n\t\t\tString subject = jdMap.getString(\"subject\");//Subject\n\t\t\tString messageText = jdMap.getString(\"message\");//Message to be Sent\n\t\t\tString host = jdMap.getString(\"host\");//Smtp Server pulled from web.xml\n\t\t\tString port = jdMap.getString(\"port\");//Port pulled from web.xml\n\t\t\tString adminUserName = jdMap.getString(\"adminUserName\");//Account info pulled from web.xml\n\t\t\tString adminPassword = jdMap.getString(\"adminPassword\");\n\n\n\t\t\t//Configuring smtp server\n\t\t\tProperties properties = new Properties();\n\t properties.put(\"mail.smtp.host\", host);\n\t properties.put(\"mail.smtp.port\", port);\n\t properties.put(\"mail.smtp.auth\", \"true\");\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\n\n\t //Creates a new session with an authenticator\n\t Session emailSession = Session.getInstance(properties, new javax.mail.Authenticator()\n\t {\n\t \t protected PasswordAuthentication getPasswordAuthentication()\n\t \t {\n\n\t \t\t return new PasswordAuthentication (adminUserName,adminPassword);\n\n\t \t }\n\t });\n\n\n\t //Compose Message\n\t try {\n\n\n\t \tMimeMessage msg = new MimeMessage(emailSession);\n\t \tmsg.setFrom(new InternetAddress(adminUserName));\n\t \tmsg.addRecipient(Message.RecipientType.TO, new InternetAddress(recipentEmail));\n\t \tmsg.setSubject(subject);\n\t \tmsg.setSentDate(new Date());\n\t \tmsg.setText(messageText);\n\t \tTransport.send(msg);\n\n\n\t }catch(MessagingException e){\n\t \te.printStackTrace();\n\n\t }\n\n\n\t }",
"public static void main(String[] args) {\n\t\tSendEmail sendEmail = new SendEmail();\n\t\tSystem.out.println(\"Welcome\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter your email address: \");\n\t\tString emailAddress = sc.nextLine(); //read input till enter\n\t\t\n\t\tSystem.out.println(\"Now email To: \");\n\t\tString to = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"What about the Subject: \");\n\t\tString subject = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Finally write your email/letter: \");\n\t\tString text = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"From: \" + emailAddress);\n\t\tSystem.out.println(\"To: \" + to);\n\t\tSystem.out.println(\"Subject: \" + subject);\n\t\tSystem.out.println(\"Text: \" + text);\n\t\tString pass = \"\";\n Console console = System.console();\n if (console == null) { //BUG IN IDEs console from .readPassword\n System.out.println(\"Parece que estas usando un IDE asi que cuando escribas la contraseña SERÁ visible: \");\n pass = sc.nextLine();\n sc.close();\n }\n\t else { //Outside Eclipse IDE\n pass = new String(console.readPassword(\"Password: \"));\n\t } \n\t\tsc.close();\n\t\t\n\t\ttry {\n\t\t\tsendEmail.send(emailAddress, to, subject, text, pass);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"@Test\n\tpublic void testCase2() {\n\t\tSystem.out.println(\"savemail\");\n\n\t}",
"@BeforeSuite(alwaysRun=true,description=\"test\")\r\n\tpublic void extentReportSetup() \r\n\t{\r\n\t\tSystem.out.println(\"===== I am Befor Test Method==== \");\r\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(reporterPath);\r\n\t\thtmlReporter.config().setDocumentTitle(\"Free Job Portal\");\r\n\t\thtmlReporter.config().setReportName(\"ExtentReporter\");\r\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\r\n\t\t\r\n\t\treporter = new ExtentReports();\r\n\t\treporter.attachReporter(htmlReporter);\r\n\t\t\r\n\t\treporter.setSystemInfo(\"Host\",\"localhost\");\r\n\t\treporter.setSystemInfo(\"OS\",System.getProperty(\"OS\"));\r\n\t\treporter.setSystemInfo(\"User\",\"Sekhar\");\r\n\t}",
"private void notificationMailGD(String email) {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: notificationMailGD()\");\r\n\t\ttry {\r\n\t\t\tProperties prop = new Properties();\r\n\t\t\tprop.setProperty(IEmailConstants.SMTP_HOST, propertyLookup.get(IEmailConstants.SMTP_HOST));\r\n\t\t\tprop.setProperty(IEmailConstants.SMTP_PORT, propertyLookup.get(IEmailConstants.SMTP_PORT));\r\n\t\t\tprop.setProperty(\"senderMail\", propertyLookup.get(\"senderMail\"));\r\n\t\t\tprop.setProperty(\"supportEmail\", propertyLookup.get(\"supportEmail\"));\r\n\t\t\tString subject = propertyLookup.get(\"mail.gd.subject\");\r\n\t\t\tString mailBody = propertyLookup.get(\"mail.gd.body\");\r\n\t\t\tlogger.log(IAppLogger.INFO, \"Email triggered...\");\r\n\t\t\temailSender.sendMail(prop, email, null, null, subject, mailBody);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"Email sent to : \" + email);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, \"Unable to send Email: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: notificationMailGD()\");\r\n\t}",
"private SendMail SendMail(WebDriver driver2) {\n return null;\n }",
"private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"723413782@qq.com\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}",
"public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"sarowerny@gmail.com\";\n\n // Sender's email ID needs to be mentioned\n String from = \"sarowerqa@gmail.com\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"sarowerhome@gmail.com\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"sarowerny@gmail.com\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }",
"public static void main(String[] args) {\n\t \n\t Employee ee = GetEmployeeObjectFromFile(filename);\n\t if(ee != null)\n\t \t ee.mailCheck();\n\t}",
"public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}",
"public void clickOnSendNotification() {\r\n\r\n\t\treportStep(\"About to click on Send Notification button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(sendNotificationButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Send notification Button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\r\n\t\t\treportStep(\"Failed to click onn the Send Notificationn Buttonn \", \"FAIL\");\r\n\t\t}\r\n\t}",
"public void execute(DelegateExecution execution) throws Exception\r\n {\n Long helperId = (Long) execution.getVariable(BpmVariables.RequestHelpHelper.VAR_HELPER_ID);\r\n Long eventId = (Long) execution.getVariable(BpmVariables.RequestHelpHelper.VAR_EVENT_ID);\r\n Long positionId = (Long) execution.getVariable(BpmVariables.RequestHelpHelper.VAR_PRIOR_POSITION);\r\n // write mail\r\n Helper helper = (Helper) Datasources.getDatasource(Helper.class).findById(helperId);\r\n Event event = (Event) Datasources.getDatasource(Event.class).findById(eventId);\r\n Position position = (Position) Datasources.getDatasource(Position.class).findById(positionId);\r\n int attemptCount = (Integer) execution.getVariable(BpmVariables.RequestHelpHelper.VAR_MAIL_ATTEMPTS);\r\n SendReminderMailTemplate template = new SendReminderMailTemplate(helper, event, position,\r\n (Boolean) execution.getVariable(BpmVariables.RequestHelpHelper.VAR_PRIOR_POS_AVAILABLE), attemptCount);\r\n MessagingService.createMessage(\"noreply@tri-speedys.de\", helper.getEmail(), template.constructSubject(),\r\n template.constructBody(), getMessagingType(attemptCount), MessagingFormat.HTML);\r\n // increase attempts\r\n execution.setVariable(BpmVariables.RequestHelpHelper.VAR_MAIL_ATTEMPTS, (attemptCount + 1));\r\n\r\n // write history entry...\r\n writeHistoryEntry(HistoryType.REMINDER_MAIL_SENT, execution);\r\n }",
"void startReportingTask();",
"public void run() {\r\n\t\t\t\ttry {\r\n//\t\t\t\t\tPostMethod post = new PostMethod(Config.get(\"reportpage\"));\r\n//\t\t\t\t\tpost.addParameter(\"user\", Main.USER);\r\n//\t\t\t\t\tpost.addParameter(\"email\", email);\r\n//\t\t\t\t\tpost.addParameter(\"notes\", notes);\r\n//\t\t\t\t\tpost.addParameter(\"info\", info);\r\n\t\t\t\t String product = Config.get(\"product\", \"JMARS\");\r\n\t\t\t\t product = product.toUpperCase();\r\n\t\t\t\t \r\n\t\t\t\t\tJmarsHttpRequest request = new JmarsHttpRequest(Config.get(\"reportpage\"), HttpRequestType.POST);\r\n\t\t\t\t\trequest.addRequestParameter(\"user\", Main.USER);\r\n\t\t\t\t\trequest.addRequestParameter(\"email\", email);\r\n\t\t\t\t\trequest.addRequestParameter(\"notes\", notes);\r\n\t\t\t\t\trequest.addRequestParameter(\"info\", info);\r\n\t\t\t\t\trequest.addRequestParameter(\"product\",product);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n//\t\t\t\t\tHttpClient http = new HttpClient();\r\n//\t\t\t\t\thttp.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);\r\n\t request.setConnectionTimeout(timeout);\r\n\t request.setLaxRedirect();\r\n\t boolean successful = request.send();\r\n//\t\t\t\t\tint code = Util.postWithRedirect(http, post, 3);\r\n int code = request.getStatus();\r\n\t if (code != HttpStatus.SC_OK) {\r\n\t\t\t\t\t\terror = \"Server returned unexpected code \" + code;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString response = new BufferedReader(\r\n\t\t\t\t\t\t\tnew InputStreamReader(\r\n\t\t\t\t\t\t\t\trequest.getResponseAsStream())).readLine();\r\n\t\t\t\t\t\tif (response.equals(\"OKAY\")) {\r\n\t\t\t\t\t\t\t// mail sent properly\r\n\t\t\t\t\t\t} else if (response.equals(\"FAILURE\")) {\r\n\t\t\t\t\t\t\terror = \"Server was unable to deliver the message: \" + response;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t} catch (HttpException e) {\r\n//\t\t\t\t\terror = \"Error communicating with server\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\terror = \"Unable to establish a connection, are you connected?\";\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\terror = \"Unexpected exception occurred: \" + e.getMessage();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// get back on the AWT thread to handle the result\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttimer.stop();\r\n\t\t\t\t\t\tdlg.dispose();\r\n\t\t\t\t\t\tif (error != null) {\r\n\t\t\t\t\t\t\t// failure sending report, suggest e-mail\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tMain.mainFrame,\r\n\t\t\t\t\t\t\t\t\"Unable to deliver message: \" + error + \"\\n\\nEmail \" + Config.get(\"email\"),\r\n\t\t\t\t\t\t\t\t\"Unable to deliver message\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tsendingThread = null;\r\n\t\t\t}",
"public MainMailPage sendMail(String to, String subject, String text) {\n\tLOG.info(\"Start sendMail\\n\");\n\twritterMail(to, subject, text);\n\tsendToMail.click();\n\tcheckDialogBox();\n\treturn new MainMailPage(driver);\n }",
"@Test\n public void esmtpCheckTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com Esmtp\",\n \"EHLO\",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n testSuccess();\n }",
"@Then(\"^Send a mail to email id \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void Send_a_mail_to_email_id(String arg1) throws Throwable {\n\t throw new PendingException();\r\n\t}",
"@Test\n public void sendMail() throws Exception {\n emailService.setApplicationContext(context);\n doReturn(aweElements).when(context).getBean(any(Class.class));\n given(mailSender.createMimeMessage()).willReturn(mimeMessage);\n given(aweElements.getLanguage()).willReturn(\"ES\");\n given(aweElements.getLocaleWithLanguage(anyString(), anyString())).willReturn(\"LOCALE\");\n ParsedEmail email = new ParsedEmail()\n .setFrom(new InternetAddress(\"test@almis.com\"))\n .setTo(singletonList(new InternetAddress(\"test@gmail.com\")))\n .setReplyTo(singletonList(new InternetAddress(\"test@almis.com\")))\n .setCc(singletonList(new InternetAddress(\"test@gmail.com\")))\n .setCco(singletonList(new InternetAddress(\"test@gmail.com\")))\n .setSubject(\"Test message\")\n .setBody(\"<div style='background-color:red;'>Test div message</div>\")\n .addAttachment(\"FileName.test\", new File(\"C:\\\\Users\\\\test\\\\Pictures\\\\Saved Pictures\\\\test.jpg\"));\n emailService.sendEmail(email);\n verify(mailSender).send(mimeMessage);\n }",
"public void sendEmail(String subject, String body) {\n try {\n this.sendEmail(System.getProperty(\"defaultEmailFrom\"),\n System.getProperty(\"defaultEmailRecipients\"), subject, body);\n } catch (Exception e) {\n // Don't throw exception; let the main job complete...exception already logged in nested\n // method.\n }\n }",
"public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }",
"public void Admin_Configuration_EmailSubscriptions()\n\t{\n\t\tAdmin_Configuration_EmailSubscriptions.click();\n\t}",
"private void mailLogs(Configuration config) {\r\n\t\tString smtp = config.getProps().getProperty(\"smtp.host\");\r\n\t\tString recipients = config.getProps().getProperty(\"recipients\");\r\n\r\n\t\tif (smtp == null || recipients == null) {\r\n\t\t\tlog.warn(\"Mail can't be configured. Not sending report.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tMail mail = new Mail(smtp, recipients);\r\n\t\ttry {\r\n\t\t\tmail.send(config.getTestName() + \" : \" + config.getTestCase(),\r\n\t\t\t\t\tconfig.toString());\r\n\t\t} catch (MessagingException e) {\r\n\t\t\t// e.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendDiscrepancyEmail() throws Exception;",
"public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"buildtest@gitanasoftware.com\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"buildtest@gitanasoftware.com\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"buildtest@gitanasoftware.com\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }",
"void send(String emailName, Map model, EmailPreparator emailPreparator);",
"@BeforeTest\n\tpublic void startReport() {\n\t\textent = new ExtentReports(System.getProperty(\"user.dir\")+\"//extent-reports//myreport.html\",true);\n\t\textent.addSystemInfo(\"Host Name\", \"LocalHost\");\n\t\textent.addSystemInfo(\"Environment\", \"QA\");\n\t\textent.addSystemInfo(\"User Name\", \"Prasanta\");\n\t\textent.loadConfig(new File(System.getProperty(\"user.dir\")+\"//ReportsConfig.xml\"));\n\t}",
"public void sendNotificaitoin(User user) throws MailException, InterruptedException {\n\n\n System.out.println(\"Sending email...\");\n\n SimpleMailMessage mail = new SimpleMailMessage();\n mail.setTo(\"mtayfurunal@gmail.com\");\n mail.setFrom(\"mentorshipobss@gmail.com\");\n mail.setSubject(\"notification\");\n mail.setText(\"time is running out\");\n javaMailSender.send(mail);\n\n System.out.println(\"Email Sent!\");\n }",
"public static void main(String[] args) {\n\t\tSendFactory sf = new SendFactory();\r\n\t\tSender sender = sf.produce(\"sms\");\r\n\t\tsender.Send();\r\n\r\n\t\tSystem.out.println(\"==================\");\r\n\r\n\t\tSendFactory sf2 = new SendFactory();\r\n\t\tSender sender2 = sf2.produceMail();\r\n\t\tsender2.Send();\r\n\r\n\t\tSystem.out.println(\"==================\");\r\n\r\n\t\tSender sender3 = StaticSendFactory.produceMail();\r\n\t\tsender3.Send();\r\n\r\n\t}",
"private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}",
"@Test\n\tpublic void Campaigns_19365_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigating to Leads\n\t\tsugar().leads.navToListView();\n\t\tsugar().leads.listView.clickRecord(1);\n\t\tsugar().leads.recordView.openPrimaryButtonDropdown();\n\t\t\n\t\t// Select the 'Manage Subscriptions' options\n\t\t// TODO: VOOD-695: Lib support for primary buttom dropdown\n\t\tVoodooControl manageSubscriptions = new VoodooControl(\"a\", \"css\", \".fld_manage_subscription_button.detail a\");\n\t\tmanageSubscriptions.click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\t\n\t\t// TODO: VOOD-1728: Need library support for Manage Subscriptions in Contacts and Leads\n\t\tVoodooControl availableNewsletter = new VoodooControl(\"li\", \"css\", \"#disabled_ul li:nth-child(1)\");\n\t\tVoodooControl subscribedNewsletters = new VoodooControl(\"ul\", \"id\", \"enabled_ul\");\n\t\tVoodooControl saveButton = new VoodooControl(\"button\", \"id\", \"save_button\");\n\t\t\n\t\t// Move the newsletter created above into Subscribed Newsletters\n\t\tavailableNewsletter.dragNDrop(subscribedNewsletters);\n\t\tsaveButton.click();\n\t\tVoodooUtils.focusDefault();\n\t\t\n\t\t// Navigating to Contacts\n\t\tsugar().contacts.navToListView();\n\t\tsugar().contacts.listView.clickRecord(1);\n\t\tsugar().contacts.recordView.openPrimaryButtonDropdown();\n\t\t\n\t\t// Select the 'Manage Subscriptions' options\n\t\tmanageSubscriptions.click();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\t\n\t\t// Move the newsletter created above into Subscribed Newsletters\n\t\tavailableNewsletter.dragNDrop(subscribedNewsletters);\n\t\tsaveButton.click();\n\t\tVoodooUtils.focusDefault();\n\t\t\n\t\t// Go to Campaigns list view.\n\t\tsugar().navbar.navToModule(sugar().campaigns.moduleNamePlural);\n\t\tsugar().campaigns.listView.clickRecord(1);\n\t\t\n\t\t// TODO: VOOD-1028: Need library support to Link Existing Record in Campaign detail view \n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tnew VoodooControl(\"a\", \"css\", \".oddListRowS1 [sugar='slot1b'] a\").click();\n\t\tVoodooUtils.focusDefault();\n\t\t\n\t\t// Verify that the target list displays the entry count as 2\n\t\tsugar().targetlists.recordView.getDetailField(\"entryCount\").assertEquals(customData.get(\"entryCount\"), true);\n\t\t\n\t\tStandardSubpanel leadSubpanel = sugar().targetlists.recordView.subpanels\n\t\t\t\t.get(sugar().leads.moduleNamePlural); \n\t\tStandardSubpanel contactSubpanel = sugar().targetlists.recordView.subpanels\n\t\t\t\t.get(sugar().contacts.moduleNamePlural); \n\t\t\n\t\t// Verifying that the lead is displayed in Lead Subpanel\n\t\tleadSubpanel.expandSubpanel();\n\t\tVoodooUtils.waitForReady();\n\t\tleadSubpanel.getDetailField(1, \"fullName\").assertEquals(lead.get(\"fullName\"), true);\n\t\tleadSubpanel.collapseSubpanel();\n\t\t\n\t\t// Verifying that the contact is displayed in Contact Subpanel\n\t\tcontactSubpanel.expandSubpanel();\n\t\tcontactSubpanel.getDetailField(1, \"fullName\").assertEquals(contact.get(\"fullName\"), true);\n\t\tcontactSubpanel.collapseSubpanel();\n\t\t\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}",
"private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }",
"public void sendEmailForMatchingReports(Exchange exchange) {\n logger.info(\"matching algorithm reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForMatching(exchange), RecapConstants.EMAIL_FOR, RecapConstants.MATCHING_REPORTS);\n }"
] | [
"0.7307588",
"0.7100346",
"0.69853693",
"0.6860094",
"0.6844433",
"0.66272044",
"0.657423",
"0.65395284",
"0.6515361",
"0.6440098",
"0.6433544",
"0.6384256",
"0.63214076",
"0.62544817",
"0.6247945",
"0.62402964",
"0.62372106",
"0.619228",
"0.61781514",
"0.6128465",
"0.61275077",
"0.6093315",
"0.6089364",
"0.60836035",
"0.60728836",
"0.60576296",
"0.60430413",
"0.6039618",
"0.6021489",
"0.60194314",
"0.59871507",
"0.597766",
"0.5976782",
"0.596291",
"0.59042764",
"0.59036875",
"0.5893819",
"0.58893526",
"0.5887726",
"0.587711",
"0.5867643",
"0.584044",
"0.58381754",
"0.58228606",
"0.5821571",
"0.5815024",
"0.58103806",
"0.5799587",
"0.5797701",
"0.5783635",
"0.57650286",
"0.57646114",
"0.57384515",
"0.5737825",
"0.5735952",
"0.5720376",
"0.5715643",
"0.5713828",
"0.5675718",
"0.5673511",
"0.5647985",
"0.5647326",
"0.5634382",
"0.562643",
"0.5620686",
"0.5611783",
"0.5611584",
"0.5611521",
"0.5607634",
"0.5602759",
"0.5602195",
"0.56005347",
"0.5582808",
"0.5577255",
"0.5575893",
"0.55690295",
"0.5562883",
"0.5560027",
"0.5556242",
"0.5550362",
"0.5539844",
"0.5531688",
"0.5530998",
"0.55245054",
"0.5521617",
"0.5511315",
"0.54930913",
"0.5486742",
"0.5486318",
"0.54844654",
"0.5479289",
"0.54709095",
"0.5468353",
"0.54639566",
"0.54629034",
"0.54594874",
"0.5458791",
"0.54379106",
"0.54305387",
"0.5428541",
"0.5428101"
] | 0.0 | -1 |
Snend Email with all of the reports | @Override
public void onFinish(ISuite suite) {
Map<String, ISuiteResult> results = suite.getResults();
Iterator<ISuiteResult> itestresults = results.values().iterator();
System.out.println(":::Cases passed::::::"+itestresults.next().getTestContext().getPassedTests().size());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendMailReport() {\n mailService.sendMail(\"users@example.org\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }",
"public static void SendReportAsEmail(String[] EmailIds) {\n\t\t// Recipient's email ID needs to be mentioned.\n\t\t// Sender's email ID needs to be mentioned\n\t\tString from = \"mmtesters@yahoo.com\";\n\t\tString pass = \"Password123$\";\n\t\t// Recipient's email ID needs to be mentioned.\n\t\t;\n\t\tString host = \"smtp.mail.yahoo.com\";\n\n\t\t// Get system properties\n\t\tProperties properties = System.getProperties();\n\t\t// Setup mail server\n\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tproperties.put(\"mail.smtp.host\", host);\n\t\tproperties.put(\"mail.smtp.user\", from);\n\t\tproperties.put(\"mail.smtp.password\", pass);\n\t\tproperties.put(\"mail.smtp.port\", \"587\");\n\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\n\t\t// Get the default Session object.\n\t\tSession session = Session.getDefaultInstance(properties);\n\n\t\ttry {\n\t\t\t// Create a default MimeMessage object.\n\t\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t\t// Set From: header field of the header.\n\t\t\tmessage.setFrom(new InternetAddress(from));\n\n\t\t\t// Set To: header field of the header.\n\t\t\tfor (int i = 0; i < EmailIds.length; i++) {\n\t\t\t\tmessage.addRecipient(Message.RecipientType.TO, new InternetAddress(EmailIds[i]));\n\t\t\t}\n\n\t\t\t// Set Subject: header field\n\t\t\tmessage.setSubject(\"TEST REPORT\" + \" | Framework Generated Report\");\n\t\t\tDate dt = new Date();\n\t\t\tMultipart multipart = new MimeMultipart();\n\t\t\tBodyPart textpart = new MimeBodyPart();\n\t\t\t// Now set the actual message\n\t\t\tmultipart.addBodyPart(textpart);\n\n\t\t\ttextpart.setText(\"Please find the attached report\" + \"\\n\" + \"This report was generated on \" + dt.toString()\n\t\t\t\t\t+ \"\\n\" + \"Testing Team\" + \"\\n\" + \"Thank You\");\n\n\t\t\tString filename = System.getProperty(\"user.dir\") + \"/\" + \"report.html\";\n\t\t\t// Multipart multipart = new MimeMultipart();\n\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tDataSource ds = new FileDataSource(filename);\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(ds));\n\t\t\tmessageBodyPart.setFileName(filename);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\n\t\t\t// Send the complete message parts\n\t\t\tmessage.setContent(multipart);\n\t\t\t// Send message\n\t\t\tTransport transport = session.getTransport(\"smtp\");\n\t\t\ttransport.connect(host, from, pass);\n\t\t\ttransport.sendMessage(message, message.getAllRecipients());\n\t\t\ttransport.close();\n\t\t\tSystem.out.println(\"Sent message successfully....\");\n\t\t} catch (MessagingException mex) {\n\t\t\tmex.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}",
"public void sendEmailForAccessionReports(Exchange exchange) {\n logger.info(\"accession reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForAccession(exchange), RecapConstants.EMAIL_FOR, RecapConstants.ACCESSION_REPORTS);\n }",
"public void sendEmailForMatchingReports(Exchange exchange) {\n logger.info(\"matching algorithm reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForMatching(exchange), RecapConstants.EMAIL_FOR, RecapConstants.MATCHING_REPORTS);\n }",
"public void sendDiscrepancyEmail() throws Exception;",
"@Override\n public void sendEmail() {\n return;\n }",
"protected void sendEmail() {\n\t\t//get all the assets from both accounts\n\t\tMap<String, MediaBinDeltaVO> srcAssets = makeTitleMap(srcDivision.getAllAssets().values(), true);\n\t\tMap<String, MediaBinDeltaVO> destAssets = makeTitleMap(destDivision.getAllAssets().values(), true);\n\t\tSet<String> iter = new HashSet<>(destAssets.keySet()); //copy the keyset - make one that is not backed by the Map.\n\t\t//prune the above lists by comparing the two. We only want records that don't exist on both sides.\n\t\tfor (String destTitle: iter) {\n\t\t\tif (srcAssets.containsKey(destTitle)) {\n\t\t\t\tsrcAssets.remove(destTitle);\n\t\t\t\tdestAssets.remove(destTitle);\n\t\t\t\tlog.debug(\"removed \" + destTitle);\n\t\t\t}\n\t\t}\n\t\tMap<String, GenericVO> data = new HashMap<>();\n\t\tdata.put(\"Account Replicator\", new GenericVO(new ArrayList<>(srcAssets.values()), new ArrayList<>(destAssets.values())));\n\t\tReconcileExcelReport rpt = new ReconcileExcelReport(data);\n\t\tEmailMessageVO eml = new EmailMessageVO();\n\t\ttry {\n\t\t\teml.setFrom(\"appsupport@siliconmtn.com\");\n\t\t\teml.addRecipients(props.getProperty(\"replicatorEmailRcpt\"));\n\t\t\teml.setSubject(props.getProperty(\"replicatorEmailSubj\"));\n\t\t\tbyte[] rptBytes = rpt.generateReport();\n\t\t\tif (rptBytes.length > 0)\n\t\t\t\teml.addAttachment(rpt.getFileName(), rptBytes);\n\n\t\t\teml.setHtmlBody(rpt.getEmailSummary() + \"\\n\\n\\\"Mediabin\\\" represents the source account, \\\"Showpad\\\" represents the destination account\");\n\t\t\tsuper.sendEmail(eml);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"could not send report email\", e);\n\t\t}\n\t}",
"public void generateReportAndSendEmail(Integer bulkRequestId) {\n Optional<BulkRequestItemEntity> bulkRequestItemEntity = bulkRequestItemDetailsRepository.findById(bulkRequestId);\n if(bulkRequestItemEntity.isPresent()) {\n emailService.sendBulkRequestEmail(String.valueOf(bulkRequestItemEntity.get().getId()),\n bulkRequestItemEntity.get().getBulkRequestName(), bulkRequestItemEntity.get().getBulkRequestFileName(),\n bulkRequestItemEntity.get().getBulkRequestStatus(), new String(bulkRequestItemEntity.get().getBulkRequestFileData()),\n \"Bulk Request Process Report\");\n }\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }",
"public static boolean generateAndSendEmail(Set<StockSymbol> stockSymbols) throws MessagingException {\n\n Properties mailServerProperties;\n Session getMailSession;\n MimeMessage generateMailMessage;\n\n //todo: in the future might have to send individual email to not leak personal emails.\n\n // Step1\n logger.info(\"1st ===> setup Mail Server Properties..\");\n mailServerProperties = System.getProperties();\n mailServerProperties.put(\"mail.smtp.port\", \"587\");\n mailServerProperties.put(\"mail.smtp.auth\", \"true\");\n mailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n logger.info(\"Mail Server Properties have been setup successfully..\");\n\n // Step2\n logger.info(\"2nd ===> get Mail Session..\");\n getMailSession = Session.getDefaultInstance(mailServerProperties, null);\n generateMailMessage = new MimeMessage(getMailSession);\n\n for(String email : getSubscribers()){\n generateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(email));\n }\n// generateMailMessage.addRecipient(Message.RecipientType.CC, new InternetAddress(\"test2@crunchify.com\"));\n generateMailMessage.setSubject(\"Simple Moving Average Crossover\");\n String emailBody = generateEmailBody(stockSymbols);\n generateMailMessage.setContent(emailBody, \"text/html\");\n logger.info(\"Mail Session has been created successfully..\");\n\n // Step3\n logger.info(\"\\n\\n 3rd ===> Get Session and Send mail\");\n Transport transport = getMailSession.getTransport(\"smtp\");\n\n // Enter your correct gmail UserID and Password\n // if you have 2FA enabled then provide App Specific Password\n transport.connect(\"smtp.gmail.com\", USERNAME, PASSWORD);\n transport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\n logger.info(\"Mail sent. Closing session.\");\n transport.close();\n return true;\n }",
"private void mailLogs(Configuration config) {\r\n\t\tString smtp = config.getProps().getProperty(\"smtp.host\");\r\n\t\tString recipients = config.getProps().getProperty(\"recipients\");\r\n\r\n\t\tif (smtp == null || recipients == null) {\r\n\t\t\tlog.warn(\"Mail can't be configured. Not sending report.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tMail mail = new Mail(smtp, recipients);\r\n\t\ttry {\r\n\t\t\tmail.send(config.getTestName() + \" : \" + config.getTestCase(),\r\n\t\t\t\t\tconfig.toString());\r\n\t\t} catch (MessagingException e) {\r\n\t\t\t// e.printStackTrace();\r\n\t\t}\r\n\t}",
"public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":8080/job/git-DataDriven-Framework/Extent_20reports//\";\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n //System.out.println(hostname);\r\n \r\n try {\r\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody);\r\n\t} catch (AddressException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} catch (MessagingException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\t\r\n\t}",
"public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}",
"public static void sendEmail(SuspectionReport report,String covidLocation) throws Exception {\n\t\tlogger.info(\"--------------- sendEmailToCustomer --------------\");\n\t\ttry {\n\t\t\tProperties mailProps = new Properties();\n\t\t\tfinal String username = \"incubationtracker@gmail.com\";\n\t final String password = \"bvhibkzgkicfdsqh\";\n\n\t Properties props = new Properties();\n\t props.put(\"mail.smtp.starttls.enable\",\"true\");\n\t props.put(\"mail.smtp.host\", \"smtp.gmail.com\"); \n\t props.put(\"mail.smtp.auth\", \"true\"); \n\t props.put(\"mail.smtp.port\", \"587\"); ; //TLS\n\t \n\t Session session = Session.getDefaultInstance(props, \n\t new javax.mail.Authenticator() { \n\t protected PasswordAuthentication getPasswordAuthentication() { \n\t return new PasswordAuthentication(username,password); \n\t } \n\t }); \n\t\t\t//mailProps.put(\"mail.smtp.host\", apiUtil.getProperty(\"spring.mail.host\"));\n\t\t\t//Session mailSession = Session.getDefaultInstance(mailProps, null);\n\t\t\tInternetAddress toAddrs = new InternetAddress(apiUtil.getProperty(\"email.to.address\"));\n\t\t\t\n\t\t\tInternetAddress fromAddr = new InternetAddress(apiUtil.getProperty(\"email.from.address\").toString().trim());\n\t\t\t// Create and initialize message\n\t\t\tjavax.mail.Message message = new MimeMessage(session);\n\t\t\tmessage.setFrom(fromAddr);\n\t\t\tmessage.setRecipient(javax.mail.Message.RecipientType.TO, toAddrs);\n\t\t\t// message.setRecipients(Message.RecipientType.CC, ccAddrs);\n\t\t\tmessage.setSubject(\"Covid Contact Suspection\" );\n\t\t\tInternetAddress[] replyTo = new InternetAddress[1];\n\t\t\treplyTo[0]=new InternetAddress(apiUtil.getProperty(\"email.from.address\").toString().trim());\n\t\t\tmessage.setReplyTo(replyTo);\n\t\t\tmessage.setContent(velocityUtil.getEmailTemplate(report,covidLocation),\"text/html\");\n\t\t\t// Send message \t\t\t\n\t\t\tTransport.send(message);\n\t\t\tlogger.info(\"--------------- Email has been sent --------------\");\n\t\t} catch (MessagingException e) {\n\t\t\tlogger.error(\"--------------- Exception --------------\" + e.getMessage());\n\t\t}\n\t}",
"public ResponseUpdDao sendSimpleEmail(String tsSubject, \n String tsMessage,\n String tsProcess,\n List<EmailDestinationAddress> toEmailDestinationAddress\n ) {\n ResponseUpdDao loResponse = new ResponseUpdDao();\n try{\n String lsHtml =\n \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-\" +\n \"strict.dtd\\\">\\n\" + \n \" <html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" dir=\\\"ltr\\\" lang=\\\"es-ES\\\">\\n\" + \n \" <head>\\n\" + \n \" <title>\"+tsProcess+\"</title>\\n\" + \n \" <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=ISO-8859-1\\\" />\\n\" + \n \" <meta name=\\\"language\\\" content=\\\"es\\\" />\\n\" + \n \" </head>\\n\" + \n \" <body>\\n\" + \n \" <div style='background-color:#0F2F62; height:25px;background:linear-gradient(#040545, \" +\n \"#0172AE);background:-webkit-linear-gradient(#040545, #0172AE);background: -ms-linear-background(\" +\n \"#040545, #0172AE);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#040545', \" +\n \"EndColorStr='#0172AE');'></div>\\n\" + \n \" <div style='background-color:#fff'> \\n\" + \n \" <br/>\\n\" + \n \" <label style='font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:\" +\n \"bold '>El Proceso de Integración para \"+tsProcess+\" ha Finalizado</label><p/>\\n\" + \n \" <label style='font-family:Arial, Helvetica, sans-serif; font-size:12px; \" +\n \"font-weight:bold '>\"+tsMessage+\"</label><p/>\\n\" + \n /*\" <table cellpadding='0' cellspacing='0' style='border-bottom-color:#F79646;border-\" +\n \"bottom-width:3px;border-bottom-style:solid;border-top-color:#F79646;border-top-style:solid;border-\" +\n \"top-width:3px; '> \\n\" + \n \" <tr>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Bcsttim</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Channelid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Date</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Orderid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Spotid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Buyuntid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Breakid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Hour</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Duration</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Spotformatid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Mediaid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Productid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Spotprice</th>\\n\" + \" </tr>\\n\";\n \n lsHtml += \" </table> \\n\" + \n */\" <br/> \\n\" + \n \" <br/>\\n\" + \n \" <label style='font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:\" +\n \"bold '>Integración Paradigm-Landmark, 2019 Televisa S.A. de C.V</label> \\n\" + \n \" <br/>\\n\" + \n \" </div>\\n\" + \n \" <div style='float:left; background-color:#F58220;width:7%;height:25px;background:-moz-\" +\n \"linear-gradient(#F1A345, #E17521); background:-webkit-linear-gradient(#F1A345, #E17521);\" +\n \"background: -ms-linear-background(#F1A345, #E17521);filter:progid:DXImageTransform.Microsoft.gradient(\" +\n \"startColorStr='#F1A345', EndColorStr='#E17521');'>\\n\" + \n \" </div> \\n\" + \n \" <div style='float:left; ;width:86%;height:25px;background:linear-gradient(#040545, \" +\n \"#0172AE);background:-webkit-linear-gradient(#040545, #0172AE);background: -ms-linear-\" +\n \"background(#040545, #0172AE);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr=\" +\n \"'#040545', EndColorStr='#0172AE');'>\\n\" + \n \" </div>\\n\" + \n \" <div style='float:left; background-color:#F58220;width:7%;height:25px;background:-\" +\n \"moz-linear-gradient(#F1A345, #E17521);background:-webkit-linear-gradient(#F1A345, #E17521);\" +\n \"background: -ms-linear-background(#F1A345, #E17521);filter:progid:DXImageTransform.Microsoft.gradient(\" +\n \"startColorStr='#F1A345', EndColorStr='#E17521');'></div> \\n\" + \n \" </body>\\n\" + \n \" </html>\"; \n System.out.println(\"Html generado para el correo ================>\");\n System.out.println(lsHtml);\n //writeFile(lsHtml);\n SecmanDasEnviarCorreo loSecmanDasSendMail = getDynaWebServiceURLEmail();\n if(loSecmanDasSendMail != null){\n try{\n Map<String, Object> loRequestContext =\n ((BindingProvider)loSecmanDasSendMail).getRequestContext(); \n setPortCredentialProviderList(loRequestContext); \n Mail loEmail = new Mail(); \n MailHeader loEmailHeader = new MailHeader();\n MailAddress loEmailAddresFrom = new MailAddress(); \n loEmailAddresFrom.setUserNameAdress(\"Landmark Integration\");\n loEmailAddresFrom.setAddress(\"service_integration_lmk@televisa.com.mx\");\n loEmailHeader.setAddressFrom(loEmailAddresFrom);\n MailAddressCollection loMailAddressCollection =\n new MailAddressCollection();\n for(EmailDestinationAddress loDest: toEmailDestinationAddress){ \n MailAddress loEmailAdd = new MailAddress();\n //System.out.println(\"AddressTO username[\"+loDest.getLsNameTo()+\"] address[\"+loDest.getLsAddressTo()+\"]\");\n loEmailAdd.setUserNameAdress(loDest.getLsNameTo());\n loEmailAdd.setAddress(loDest.getLsAddressTo()); \n loMailAddressCollection.getMailAddress().add(loEmailAdd);\n }\n loEmailHeader.setTo(loMailAddressCollection);\n loEmailHeader.setSubject(tsSubject);\n loEmail.setMailHeader(loEmailHeader);\n MailBody loMailBody = new MailBody();\n loMailBody.setBodyType(\"HTML\");\n loMailBody.setMessage(lsHtml);\n loEmail.setMailBody(loMailBody);\n loSecmanDasSendMail.enviarCorreo(loEmail);\n loResponse.setLsResponse(\"OK\");\n loResponse.setLiAffected(0);\n loResponse.setLsMessage(\"Correo enviado satisfactoriamente\");\n System.out.println(\"Fin enviar correo - ok\");\n } catch (Exception loException) {\n System.out.println(\"Error al enviar correo: \"+loException.getMessage());\n loResponse.setLsResponse(\"ERROR\");\n loResponse.setLiAffected(0);\n loResponse.setLsMessage(loException.getMessage());\n }\n }\n } catch (Exception loException) {\n System.out.println(\"Error crear instancia del servicio de correo de secman: \"+loException.getMessage());\n loResponse.setLsResponse(\"ERROR\");\n loResponse.setLiAffected(0);\n loResponse.setLsMessage(loException.getMessage()); \n }\n return loResponse;\n }",
"public void SendEmail() throws Exception {\r\n\r\n\t\t\t\r\n\t\t// Create the attachment\r\n\t\t EmailAttachment attachment = new EmailAttachment();\r\n\t\t attachment.setURL(new URL(\"file:///C:/Users/sachinsehgal2/eclipse-workspace/TeachAway/Test_Report.html\"));\r\n\t\t attachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\t attachment.setDescription(\"Selenium Report\");\r\n\t\t attachment.setName(\"TeachAway_Menu Navigation Automation Report.html\");\r\n\r\n\t\t // Create the email message\r\n\t\t MultiPartEmail email = new MultiPartEmail();\r\n\t\t\temail.setHostName(\"smtp.gmail.com\");\r\n\t\t\temail.setSmtpPort(465);\r\n\t\t\temail.setAuthentication(\"admin@gmail.com\", \"password\");\r\n\t\t\temail.setSSLOnConnect(true);\r\n\t\t \temail.addCc(\"Stakeholder@accenture.com\", \"StakeHolder\");\r\n\t\t\temail.setFrom(\"admin@gmail.com\", \"admin\");\r\n\t\t\temail.setSubject(\"Automation Status -TeachAway Navigation Menu\");\r\n\t\t\temail.setMsg(\"PFA the results for automation of Navigation menu for Teach Away.\");\r\n\t\t \r\n\t\t // add the attachment\r\n\t\t email.attach(attachment);\r\n\t\t // send the email\r\n\t\t email.send();\r\n\t\tSystem.out.println(\"The email Sent\");\r\n\t}",
"@Scheduled(cron = \"0 * * * * *\")\r\n\tpublic void run() {\r\n\r\n\t\tString[] emailArray = new String[emailRecipientList.size()];\r\n\t\temailArray = emailRecipientList.toArray(emailArray);\r\n\t\tLOGGER.debug(\"Sending a email to \" + emailArray);\r\n //Current time\r\n\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t//Current time - 1 hour\r\n\t\tLocalDateTime after = LocalDateTime.now().minusHours(1);\r\n\r\n\t\tTimestamp dateCreatedBefore = Timestamp.valueOf(now);\r\n\t\tTimestamp dateCreatedAfter = Timestamp.valueOf(after);\r\n\t\t// Search for file id's added for the last hour \r\n\t\tList<Long> ids = infoDataService.searchFileId(null, null, \r\n\t\t\t\tdateCreatedBefore, dateCreatedAfter, null, null,null);\r\n\t\t// Create a email body \r\n\t\tStringBuffer emailBody =new StringBuffer();\r\n\t\temailBody.append(\"New Files Uploaded:\");\r\n for(Long id : ids) {\r\n \ttry {\r\n \t FileInfo metaData = infoDataService.findRecordById(id);\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"*******************************************************\");\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"ID:\"+metaData.getId());\r\n \t emailBody.append(\", ORIGINAL NAME: \"+metaData.getFileName());\r\n \t Long size = metaData.getSize()/1000;\r\n \t emailBody.append(\", SIZE (KB):\"+size);\r\n \t emailBody.append((metaData.getPublicAccess())?\", PUBLIC ACCESS: true\":\" , PUBLIC ACCESS: false\");\r\n \t emailBody.append(\", TIME UPLOADED:\"+metaData.getUploadedTs().toLocalDateTime());\r\n \t emailBody.append(System.lineSeparator());\r\n \t}\r\n \tcatch(Exception e) {\r\n \t\temailBody.append(Utilities.NO_DATA_FOR_ID+id); \t\t\r\n \t}\r\n }\r\n // Sending a scheduled email \r\n SimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setTo(emailArray);\r\n\t\tmsg.setSubject(Utilities.SCHEDULER_SUBJECT);\r\n\t\tmsg.setText(emailBody.toString());\r\n\t\tmsg.setFrom(emailSender);\r\n\r\n\t\t// TODO\r\n\t\t// Uncomment the next line after adding a correct credentials to the\r\n\t\t// application.properies file\r\n\t\t// javaMailSender.send(msg);\r\n\r\n\t}",
"SendEmail() {\t\n\t}",
"public void sendChecksumReportEmail() throws MessagingException \r\n\t{\t\r\n\t\tlog.debug(\"Send checksum checker report\");\r\n\t\tRepository repository = repositoryService.getRepository(Repository.DEFAULT_REPOSITORY_ID, false);\r\n\r\n\t\tif( repository != null )\r\n\t {\r\n\t\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(dateFormat);\r\n\t\t StringBuffer emailText = new StringBuffer();\r\n\t\t String reportDateStr = simpleDateFormat.format(new Date());\r\n\t\t\r\n\t\t emailText.append(\"Checksum report for \" + repository.getName() + \" as of \" + reportDateStr + \"\\n\\n\");\r\n\t\t emailText.append(\"There are: \" + fileInfoChecksumService.getChecksumInfoFailsCount() + \" checksum failures in the repository \\n\");\r\n\t\t emailText.append(\"Use this link to review the checksums \" + baseWebAppPath + \"admin/viewFileInfoChecksums.action \\n\");\r\n\t\t\r\n\t\t MimeMessage message = mailSender.createMimeMessage();\r\n\t\t MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(message, false, \"UTF-8\");\r\n\t\t String subject = \"Checksum report for \" + repository.getName() + \" as of: \" + reportDateStr;\r\n\t\t mimeMessageHelper.setSubject(subject);\r\n\t\t mimeMessageHelper.setFrom(fromAddress);\r\n\t\t mimeMessageHelper.setTo(email);\r\n\t\t mimeMessageHelper.setText(emailText.toString());\r\n\t\t mailSender.send(message);\r\n\t }\r\n\t\telse\r\n\t\t{\r\n\t\t\tlog.debug(\"No repository found\");\r\n\t\t}\r\n\t}",
"private void finishSendingEmail(File reportFile, File witnessesFile)\n\t{\n\t\tArrayList<String> paths = new ArrayList<String>();\n\t\t\n\t\t// Attach report CSV file\n\t\tpaths.add(reportFile.getAbsolutePath());\n\t\t\n\t\t// Attach witnesses CSV file if the are any \n\t\tif(!incident.getWitnesses().isEmpty())\n\t\t\tpaths.add(witnessesFile.getAbsolutePath());\n\t\t\n\t\t// Attach photo files if the are any\n\t\tfor(int i=0; i<photoFiles.size(); i++)\n\t\t\tpaths.add(photoFiles.get(i).getAbsolutePath());\n\t\t\n\t\t// Attach video if there is one\n\t\tif(videoFile != null)\n\t\t\tpaths.add(videoFile.getAbsolutePath());\n\t\t\n\t\tString recipient = ParseUser.getCurrentUser().getEmail();\n\t\tString subject = \"Your DriverConnex Incident Report\";\n\t\t\n\t\t// Send email\n\t\tUtilities.sendEmail(ReviewReportActivity.this, recipient, \"\", subject, \"\", paths);\n\t\t\n\t\tloading.setVisibility(View.INVISIBLE);\t\n\t}",
"public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }",
"private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}",
"protected void sendEmails() {\n\t\tboolean sent;\n\t\tVector<Email> unsent = new Vector<Email>();\n\n\t\twhile (messages.size() > 0) {\n\t\t\tEmail email = messages.remove(0);\n\t\t\tsent = sendEmail(email);\n\n\t\t\t// If the mail can not be sent, trace the email\n\t\t\tif (!sent) {\n\t\t\t\temail.increaseRetryCount();\n\t\t\t\t// Only if maximum retries has not exceed\n\t\t\t\tif (email.getRetryCount() <= maxRetries) {\n\t\t\t\t\tunsent.add(email);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// At the end of the loop, store all emails which were not able to be sent, for \n\t\t// later sending.\n\t\tmessages.addAll(unsent);\n\t}",
"public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mensagem.destinatario + \"\\n\");\n }\n }",
"public void sendHtmlEmail() throws EmailException, MalformedURLException,\n\t\t\tUnsupportedEncodingException, ParseException {\n\t\tITrustContributionServer trustContributionServer = new TrustContributionServer();\n\t\tHtmlEmail email = new HtmlEmail();\n\t\temail.setHostName(\"smtp.exmail.qq.com\");\n\n\t\t// TODO 收件人:资产管理中心全体员工;ifdept@bqjr.cn;\n\t\tString itemCode = \"v00003\";\n\t\tList<String> emailList = new ArrayList<>();\n\t\temailList = trustContributionServer.getEmailList(itemCode);\n\t\tif (emailList != null && emailList.size() != 0) {\n\t\t\tString[] toBeStored = emailList\n\t\t\t\t\t.toArray(new String[emailList.size()]);\n\t\t\temail.addTo(toBeStored);\n\t\t}\n\n\t\t// email.addTo(new String[]{\"zhiming.wu@bqjr.cn\",\"785685931@qq.com\"});\n\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"zhiming.wu@bqjr.cn\",\n\t\t\t\t\"Wzm910712\"));\n\t\temail.setSSLOnConnect(true);\n\t\temail.setFrom(\"zhiming.wu@bqjr.cn\");\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate yestoday = getYestoday();\n\t\temail.setSubject(\"投融资部-每日中航百度报酬日报--\" + format.format(yestoday));\n\t\t/*\tString caption = new String((\"中航百度报酬日报--\").getBytes(\"GBK\"),\n\t\t\t\t\"ISO-8859-1\") + format.format(yestoday);\n\t\tString td1 = new String((\"昨日信托报酬\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td2 = new String((\"累计信托报酬\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td3 = new String((\"昨日保管费\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td4 = new String((\"累计保管费\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td5 = new String((\"昨日优先收益\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td6 = new String((\"累计优先收益\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td7 = new String((\"上月优先级本金\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td8 = new String((\"上月劣后级本金\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\n\t\tString td31 = new String((\"上月差额补足金额\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td32 = new String((\"上月保证金1\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td33 = new String((\"上月客户退货款\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td34 = new String((\"上月客户主动还款\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td35 = new String((\"M3+率\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td36 = new String((\"B3\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td37 = new String((\"M2+率\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td38 = new String((\"B2\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\n\t\t// TODO 查询出各个数据\n\t\tdouble custodianFee = 0;\n\t\tdouble priorityEarnings = 0;\n\t\tdouble trustremuneration = 0;\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tmap = trustContributionServer.getDetailFromBenefitCheckDaily(partner);\n\t\tif (map != null) {\n\t\t\tcustodianFee = Double.parseDouble(map.get(\"CUSTODIANFEE\")\n\t\t\t\t\t.toString());\n\t\t\tpriorityEarnings = Double.parseDouble(map.get(\"PRIORITYEARNINGS\")\n\t\t\t\t\t.toString());\n\t\t\ttrustremuneration = Double.parseDouble(map.get(\"TRUSTREMUNERATION\")\n\t\t\t\t\t.toString());\n\t\t}\n\n\t\t// 累计信托报酬\n\t\tMap<String, Object> trustRemunerationMap = new HashMap<>();\n\t\tdouble sumOftrustRemuneration = 0;\n\t\ttrustRemunerationMap = trustContributionServer\n\t\t\t\t.getSumOfBenefitCheckDaily(partner);\n\t\tif (trustRemunerationMap != null) {\n\t\t\tsumOftrustRemuneration = Double.parseDouble(trustRemunerationMap\n\t\t\t\t\t.get(\"TRUSTREMUNERATION\").toString());\n\t\t}\n\n\t\t// 累计优先收益\n\t\tMap<String, Object> priorityEaringsMap = new HashMap<>();\n\t\tdouble sumOfpriorityEarings = 0;\n\t\tpriorityEaringsMap = trustContributionServer\n\t\t\t\t.getSumOfPriorityEarings(partner);\n\t\tif (priorityEaringsMap != null) {\n\t\t\tsumOfpriorityEarings = Double.parseDouble(priorityEaringsMap.get(\n\t\t\t\t\t\"PRIORITYEARINGS\").toString());\n\t\t}\n\n\t\t// 累计保管费\n\t\tMap<String, Object> custodianFeeMap = new HashMap<>();\n\t\tdouble sumOfcustodianFee = 0;\n\t\tcustodianFeeMap = trustContributionServer.getSumOfcustodianFee(partner);\n\t\tif (custodianFeeMap != null) {\n\t\t\tsumOfcustodianFee = Double.parseDouble(custodianFeeMap.get(\n\t\t\t\t\t\"CUSTODIANFEE\").toString());\n\t\t}\n\n\t\tMap<String, Object> benefitCheckMonthSummaryMap = new HashMap<>();\n\n\t\tdouble priorityPrincipal = 0;\n\t\t// 上月劣后级本金\n\t\tdouble inferiorPrincipal = 0;\n\t\t// 上月差额补足金额\n\t\tdouble differenceUpBalance = 0;\n\t\t// 上月保证金\n\t\tdouble serviceFee = 0;\n\t\t// 上月客户退货款\n\t\tdouble merchantsRetmoneyActual = 0;\n\t\t// 上月客户主动还款\n\t\tdouble customeDrivingRepayment = 0;\n\n\t\tbenefitCheckMonthSummaryMap = trustContributionServer\n\t\t\t\t.getdetailFromMonthSummary(partner);\n\t\tif (benefitCheckMonthSummaryMap != null) {\n\n\t\t\tpriorityPrincipal = Double.parseDouble(benefitCheckMonthSummaryMap\n\t\t\t\t\t.get(\"PRIORITYPRINCIPAL\").toString());\n\n\t\t\tinferiorPrincipal = Double.parseDouble(benefitCheckMonthSummaryMap\n\t\t\t\t\t.get(\"INFERIORPRINCIPAL\").toString());\n\n\t\t\tdifferenceUpBalance = Double\n\t\t\t\t\t.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\t\t\"DIFFERENCEUPBALANCE\").toString());\n\n\t\t\tserviceFee = Double.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\"SERVICEFEE\").toString());\n\n\t\t\tmerchantsRetmoneyActual = Double\n\t\t\t\t\t.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\t\t\"MERCHANTSRETMONEYACTUAL\").toString());\n\n\t\t\tcustomeDrivingRepayment = Double\n\t\t\t\t\t.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\t\t\"CUSTOMEDRIVINGREPAYMENT\").toString());\n\t\t}\n\n\t\t// B3=B2\n\t\tString partnerCode = \"\";\n\t\tif (partner.equalsIgnoreCase(\"众安\")) {\n\t\t\tpartnerCode = \"ZAYX\";\n\t\t}// 改为map为添加条件,做一下为null 时候的判断\n\t\t//partnerCode = \"HBYH\";// TODO delete when upload,and sql update\n\t\tMap<String, Object> resultB3Map = new HashMap<>();\n\n\t\tMap<String, Object> resultB2Map = new HashMap<>();\n\n\t\tdouble B3Part1 = 0;\n\t\tdouble B3Part2 = 0;\n\t\tresultB3Map = trustContributionServer\n\t\t\t\t.getB3Part1FromPayDaily(partnerCode);\n\n\t\tif (resultB3Map != null) {\n\t\t\tB3Part1 = Double.parseDouble((resultB3Map.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t.toString()));\n\t\t}\n\t\tresultB2Map = trustContributionServer\n\t\t\t\t.getB3Part2FromPayDaily(partnerCode);\n\t\tif (resultB2Map != null) {\n\t\t\tB3Part2 = Double.parseDouble((resultB2Map.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t.toString()));\n\t\t}\n\t\t\n\t\t * double B3Part1=\n\t\t * trustContributionServer.getB3Part1FromPayDaily(partnerCode);\n\t\t * \n\t\t * double B3Part2 =\n\t\t * trustContributionServer.getB3Part2FromPayDaily(partnerCode);\n\t\t \n\n\t\tBigDecimal d1 = new BigDecimal(String.valueOf(B3Part1));\n\n\t\tBigDecimal d2 = new BigDecimal(String.valueOf(B3Part2));\n\n\t\tdouble B3 = d1.add(d2).doubleValue();\n\n\t\t// A3\n\t\tint days = 90;\n\t\tMap<String, Object> A3Map = new HashMap<>();\n\t\tA3Map.put(\"partnerCode\", partnerCode);\n\t\tA3Map.put(\"days\", days);\n\n\t\tdouble fPayCapital = 0;\n\t\tdouble fUndueCapital = 0;\n\t\t// 获取大于 90 天的应付本金\n\t\tMap<String, Object> over90DaysCapitalMap1 = new HashMap<>();\n\t\tover90DaysCapitalMap1 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital1(A3Map);\n\t\tif (over90DaysCapitalMap1 != null) {\n\t\t\tfPayCapital = Double.parseDouble(over90DaysCapitalMap1.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tMap<String, Object> over90DaysCapitalMap2 = new HashMap<>();\n\t\tover90DaysCapitalMap2 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital2(A3Map);\n\t\tif (over90DaysCapitalMap2 != null) {\n\t\t\tfUndueCapital = Double.parseDouble(over90DaysCapitalMap2.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tBigDecimal d1Capital = new BigDecimal(String.valueOf(fPayCapital));\n\t\tBigDecimal d2Capital = new BigDecimal(String.valueOf(fUndueCapital));\n\t\tdouble allCapital = d1Capital.add(d2Capital).doubleValue();\n\n\t\tdouble A3 = 0;\n\t\t// 获取实付本金\n\t\tMap<String, Object> resultMap = new HashMap<>();\n\t\tresultMap = trustContributionServer.getA3Capital(A3Map);\n\t\tif (resultMap != null) {\n\t\t\tA3 = allCapital\n\t\t\t\t\t- Double.parseDouble((resultMap.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t\t\t.toString()));\n\t\t}\n\n\t\tMap<String, Object> A2Map = new HashMap<>();\n\t\tdouble A2 = 0;\n\t\tA2Map.put(\"partnerCode\", partnerCode);\n\t\tint days2 = 60;\n\t\tA2Map.put(\"days\", days2);\n\n\t\t// 获取逾期60天以上的应付本金\n\t\tdouble fPayCapita1 = 0;\n\t\tdouble fUndueCapita1 = 0;\n\t\tMap<String, Object> over60DaysCapitalMap1 = new HashMap<>();\n\t\tover60DaysCapitalMap1 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital1(A2Map);\n\t\tif (over60DaysCapitalMap1 != null) {\n\t\t\tfPayCapita1 = Double.parseDouble(over60DaysCapitalMap1.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tMap<String, Object> over60DaysCapitalMap2 = new HashMap<>();\n\t\tover60DaysCapitalMap2 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital2(A2Map);\n\t\tif (over60DaysCapitalMap2 != null) {\n\t\t\tfUndueCapita1 = Double.parseDouble(over60DaysCapitalMap2.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tBigDecimal d1Capital1 = new BigDecimal(String.valueOf(fPayCapita1));\n\t\tBigDecimal d2Capital1 = new BigDecimal(String.valueOf(fUndueCapita1));\n\t\tdouble allCapital1 = d1Capital1.add(d2Capital1).doubleValue();\n\n\t\tMap<String, Object> resultMap2 = new HashMap<>();\n\t\tresultMap2 = trustContributionServer.getA3Capital(A2Map);\n\t\tif (resultMap2 != null) {\n\t\t\t// TODO\n\t\t\tA2 = allCapital1\n\t\t\t\t\t- Double.parseDouble((resultMap2.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t\t\t.toString()));\n\t\t}\n\n\t\t// 获取格式化对象\n\t\tNumberFormat nt = NumberFormat.getPercentInstance();\n\t\t// 设置百分数精确度2即保留两位小数\n\t\tnt.setMinimumFractionDigits(2);\n\t\t// 最后格式化并输出\n\n\t\t// TODO\n\t\t\n\t\t * String M3= nt.format(A3/B3); String M2 = nt.format(A2/B3);\n\t\t \n\t\tString M3 = \"0.00%\";\n\t\tString M2 = \"0.00%\";\n\t\tif (B3 != 0) {\n\t\t\tM3 = nt.format(A3 / B3);\n\t\t\tM2 = nt.format(A2 / B3);\n\t\t}\n\t\t\n\n\t\tURL url = new URL(\"http://www.apache.org/images/asf_logo_wide.gif\");\n\t\t// String cid = email.embed(url, \"Apache logo\");\n\t\t\n\t\tString firstTable = \"<div>\"\n\t\t\t\t+ \"<table width=\\\"1150\\\" border=\\\"1\\\" cellspacing=\\\"0\\\">\"\n\t\t\t\t+ \"<caption>\"\n\t\t\t\t+ caption\n\t\t\t\t+ \"</caption>\"\n\t\t\t\t+ \"<tr style=\\\"background-color:#f47920\\\">\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td1\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td2\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td3\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td4\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td5\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td6\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td7\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td8\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"</tr>\"\n\t\t\t\t+ \"<tr>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ trustremuneration\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ sumOftrustRemuneration\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ custodianFee\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ sumOfcustodianFee\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ priorityEarnings\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\";*/\n\t\tStringBuilder a1RateBuilder = new StringBuilder();\n\t\ta1RateBuilder = this.getA1RateBuilder();\n\t\t\n\t\tStringBuilder a2RateBuilder = new StringBuilder();\n\t\ta2RateBuilder = this.getA2RateBuilder();\n\t\tString commonHead = \"<html>\" + \"<head>\" + \" </head>\" + \"<body>\";\n\t\tString htmlMsg = commonHead\n\t\t\t\t+ a1RateBuilder.toString()\n\t\t\t\t+\"</body>\" + \"</html>\";\n\t\temail.setHtmlMsg(htmlMsg);\n\t\temail.send();\n\t}",
"public Historique SendMail( Historique h,String resultat ,String date,String heure) throws Exception {\n\r\n\r\n Logger log = LoggerFactory.getLogger(MailController.class);\r\n\r\n \r\n\r\n \r\n log.info(\"Spring Mail - Sending Simple Email with JavaMailSender Example\");\r\n\r\n Mail mail = new Mail();\r\n mail.setFrom(\"harb.nihel55@gmail.com\");\r\n \r\n //mail.setTo(h.get().getEmails());\r\n String [] res =h.getEmails().split(\"\\\\s\");\r\n for(int i=0; i<res.length;i++)\r\n \r\n {\r\n \tSystem.out.println(res[i]);\r\n mail.setTo(res[i]);\r\n \r\n if(resultat.equals(\"echec\"))\r\n { \t mail.setSubject(\" échec d'éxécution du test\");\r\n mail.setContent(\"Echec de test \"+h.getNom()+\" éffectué à \"+date+\"à l'heure \"+heure);}\r\n else\r\n { \t\r\n mail.setSubject(\"Retard d'éxécution du test\");\r\n mail.setContent(\"Retard d'éxecution :temps de réponse réél est \"+h.getTemps_rep_reel()+\" et le temps de réponse attendu = est:\"+h.getResultat_attendu());}\r\n emailService.sendSimpleMessage(mail);\r\n }\r\n \r\n\r\n \r\n\t\treturn null; \r\n\r\n }",
"public int sendSupplierOrderNotificationEmail(int customerID, int orderId, int confirmationNumber, Collection<OrderedProduct> orderedProducts, Date orderDate) {\r\n // SMTP Setting\r\n String smtpServer = \"smtp.gmail.com\";\r\n\r\n //Email Addresses\r\n String from = \"chizzymeka@gmail.com\";\r\n for (OrderedProduct orderedProduct_outer : orderedProducts) {\r\n int supplierId = orderedProduct_outer.getProduct().getSupplierID().getSupplierID();\r\n String supplierEmail = supplierFacade.find(supplierId).getSupplierEmail().trim();\r\n\r\n String to = supplierEmail;\r\n String bcc = \"chizzymeka@yahoo.co.uk\";\r\n\r\n //Message\r\n String subject = \"New Order for Collection: \" + orderId + \"|\" + \"Confirmation Number: \" + confirmationNumber;\r\n String message = \"Please liaise with our shipper as soon as possible to get the products listed below shipped to the customer.\";\r\n String productNameAndQuantitySubheader = \"<tr><td>Product</td><td>Quantity</td></tr>\";\r\n String productNameAndQuantity = null;\r\n\r\n for (OrderedProduct orderedProduct_inner : orderedProducts) {\r\n \r\n int productSupplier = orderedProduct_inner.getProduct().getSupplierID().getSupplierID();\r\n \r\n // if productSupplier matches the supplier's id whom email has been retrived above, then send them the product and quantity details below\r\n if(supplierId == productSupplier){\r\n String productName = orderedProduct_inner.getProduct().getProductName();\r\n int productQuantity = orderedProduct_inner.getOrderedProductQuantity();\r\n productNameAndQuantity += \"<tr><td>\" + productName + \"</td><td>\" + productQuantity + \"</td></tr>\";\r\n }\r\n }\r\n\r\n String messageBody\r\n = \"<table>\"\r\n + \"<tr><td colspan=2>\" + message + \"</td></tr>\"\r\n + \"<tr><td colspan=2>Order Details</td></tr>\"\r\n + \"<tr><td>Order Number:</td><td>\" + orderId + \"</td></tr>\"\r\n + \"<tr><td>Confirmation Number:</td><td>\" + confirmationNumber + \"</td></tr>\"\r\n + \"<tr><td>Order Date:</td><td>\" + orderDate + \"</td></tr>\"\r\n + productNameAndQuantitySubheader\r\n + productNameAndQuantity\r\n + \"</table>\";\r\n\r\n try {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.transport.protocol\", \"smtp\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", smtpServer);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n Authenticator authenticator = new SMTPAuthenticator();\r\n Session session = Session.getInstance(properties, authenticator);\r\n\r\n // Create a new messageBody\r\n Message mimeMessage = new MimeMessage(session);\r\n\r\n // Set the FROM and TO fields\r\n mimeMessage.setFrom(new InternetAddress(from));\r\n mimeMessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\r\n mimeMessage.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc, false)); // Change this to be hard-coded Peripherals email\r\n mimeMessage.setSubject(subject);\r\n mimeMessage.setContent(messageBody, \"text/html; charset=utf-8\");\r\n\r\n // Set some other header information\r\n mimeMessage.setHeader(\"Order Confirmation\", \"Peripherals\");\r\n mimeMessage.setSentDate(new Date());\r\n\r\n // Send the messageBody\r\n Transport.send(mimeMessage);\r\n System.out.println(\"Message sent successfully!\");\r\n return 0;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Exception \" + ex);\r\n return -1;\r\n }\r\n }\r\n return 1;\r\n }",
"@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showEmail() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> emailList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\temailList=jdbcTemplate.query(FiinfraConstants.SP_GET_EMAIL,new Object[]{} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(emailList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally\n\t\t{\n\t\t\treturn response;\n\t\t\t\t} \n\t}",
"public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}",
"public int sendShipperOrderNotificationEmail(int customerID, int orderId, int confirmationNumber, Collection<OrderedProduct> orderedProducts, BigDecimal orderAmount, Date orderDate) {\r\n // SMTP Setting\r\n String smtpServer = \"smtp.gmail.com\";\r\n\r\n //Email Addresses\r\n String from = \"chizzymeka@gmail.com\";\r\n String shipperEmail = null;\r\n \r\n // Look for the activated shipper and obtain thier email aaddress\r\n List<Shipper> shipperList = shipperFacade.findAll();\r\n for(Shipper shipper : shipperList){\r\n boolean shipperActivated = shipper.getShipperActivated();\r\n \r\n if(shipperActivated){\r\n shipperEmail = shipper.getShipperEmail().trim();\r\n }\r\n }\r\n \r\n String to = shipperEmail;\r\n String bcc = \"chizzymeka@yahoo.co.uk\";\r\n\r\n //Message\r\n String subject = \"New Order for Collection: \" + orderId + \"|\" + \"Confirmation Number: \" + confirmationNumber;\r\n String message = \"Please liaise with the listed suppliers below to collect the orders for the subject customers.\";\r\n String productDetailsAndAssociatedSupplierDetails = null;\r\n\r\n for (OrderedProduct op : orderedProducts) {\r\n String productName = op.getProduct().getProductName();\r\n int productQuantity = op.getOrderedProductQuantity();\r\n String supplierName = op.getProduct().getSupplierID().getSupplierCompanyName();\r\n String supplierPhone = op.getProduct().getSupplierID().getSupplierPhone();\r\n String supplierEmail = op.getProduct().getSupplierID().getSupplierEmail();\r\n productDetailsAndAssociatedSupplierDetails += \"<tr><td>\" + productName + \"</td><td>\" + productQuantity + \"</td><td>\" + supplierName + \"</td><td>\" + supplierPhone + \"</td><td>\" + supplierEmail + \"</td></tr>\";\r\n }\r\n\r\n String messageBody\r\n = \"<table>\"\r\n + \"<tr><td colspan=5>\" + message + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Order Number:</td><td>\" + orderId + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Confirmation Number:</td><td>\" + confirmationNumber + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Amount:</td><td>\" + orderAmount + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Order Date:</td><td>\" + orderDate + \"</td></tr>\"\r\n + \"<tr><td>Product Name</td><td>Quantity</td><td>Suplier Name</td><td>Supplier Phone</td><td>Supplier Email</td></tr>\"\r\n + productDetailsAndAssociatedSupplierDetails\r\n + \"</table>\";\r\n\r\n try {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.transport.protocol\", \"smtp\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", smtpServer);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n Authenticator authenticator = new SMTPAuthenticator();\r\n Session session = Session.getInstance(properties, authenticator);\r\n\r\n // Create a new messageBody\r\n Message mimeMessage = new MimeMessage(session);\r\n\r\n // Set the FROM and TO fields\r\n mimeMessage.setFrom(new InternetAddress(from));\r\n mimeMessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\r\n mimeMessage.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc, false)); // Change this to be hard-coded Peripherals email\r\n mimeMessage.setSubject(subject);\r\n mimeMessage.setContent(messageBody, \"text/html; charset=utf-8\");\r\n\r\n // Set some other header information\r\n mimeMessage.setHeader(\"Order Confirmation\", \"Peripherals\");\r\n mimeMessage.setSentDate(new Date());\r\n\r\n // Send the messageBody\r\n Transport.send(mimeMessage);\r\n System.out.println(\"Message sent successfully!\");\r\n return 0;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Exception \" + ex);\r\n return -1;\r\n }\r\n }",
"@Override\n public boolean sendFourBlockerReport(String to, String name, File report) throws Exception {\n\n boolean result = false;\n\n String subject = \"Your four blocker report\";\n Map<String, Object> model = new HashMap<String, Object>();\n model.put(\"username\", name);\n model.put(\"imagePath\", Util.nvl(getSparkURL()) + \"/resources/img/dealpro-logo.png\");\n String contents = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, \"emailtemplates/fourBlockerReport.vm\", \"UTF-8\", model);\n\n MimeMessage message = javaMailSender.createMimeMessage();\n\n // create the message using the specified template\n MimeMessageHelper helper;\n\n helper = new MimeMessageHelper(message, true, \"UTF-8\");\n\n helper.setFrom(new InternetAddress(getMailFrom()));\n helper.addBcc(emailList);\n helper.addTo(to + \"@mail.ad.ge.com\");\n helper.addAttachment(report.getName(), report);\n helper.setSubject(subject);\n helper.setSentDate(new Date());\n helper.setText(contents, true);\n javaMailSender.send(message);\n result = true;\n\n return result;\n\n }",
"public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}",
"private void sendMailLogInfo() {\n\t\tif (mChangedInfoList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// 1.导出信息\n\t\tString content = dumpLogInfoWithHtml();\n\t\t\n\t\t// 2. 更新收件人与标题\n\t\tmMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers);\n\t\t\n\t\tLogger.println(\"==SvnLog send emal with subject \" + mMailSubject);\n\t\t\n\t\t// 3.发送信息send\n\t\tmMailSender.sendHtmlMail(mMailSubject, content);\n\t\t\n\t\t// 4.清理此轮信息\n\t\tclearInfo();\n\t}",
"@Override\n public String sendMeetingEmail(String ssoRequester, MeetingBeanExtended thisMeeting) {\n String skipLine = \"\\n\";\n // Build the e-mail subject\n StringBuffer mailSubject = new StringBuffer(\"EFS DealPRO: \");\n mailSubject.append(thisMeeting.getMeetingBean().getMeetingTypeName());\n mailSubject.append(\" meeting(s) have been finalized for \");\n mailSubject.append(Constants.getSDateFormat().format(thisMeeting.getStartDateTime()));\n // Build the mail body\n StringBuffer mailBody = new StringBuffer();\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"Conference Room : \" + thisMeeting.getMeetingLocation() + skipLine);\n mailBody.append(\"Chairperson : \" + thisMeeting.getChairPersonName() + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"Call-in Number(s)/Comments: \" + skipLine);\n mailBody.append(\" \" + thisMeeting.getMeetingDescription());\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" Segment Deal Name Time\" + skipLine);\n mailBody.append(\" ____________________________________________________________________________________________________\" + skipLine);\n mailBody.append(\" \" + skipLine);\n if (thisMeeting.getMeetingBean().getMeetingAgendas() != null && !thisMeeting.getMeetingBean().getMeetingAgendas().isEmpty()) {\n for (MeetingAgendaBeanExtended mA : thisMeeting.getMeetingBean().getMeetingAgendas()) {\n\n String dSegment = mA.getDeal() != null ? mA.getDeal().getSegment().getParentSegmentName() : \"\";\n String dName = mA.getDeal() == null ? mA.getPqrOtherDetail() : !mA.getDeal().isRestricted() ? mA.getDealName() : (mA.getDeal().getDisplayName() != null ? mA.getDeal().getDisplayName() : \"Restricted Deal\") + \" | RESTRICTED\";\n String aTime = Constants.getTDateFormat().format(mA.getStartDateTime()) + \" \" + mA.getAgendaDescription();\n String aDocuments = \"\";\n if (mA.getAgendaDocumentsId() == null || mA.getAgendaDocumentsId().isEmpty()) {\n aDocuments = \"\\n Paperwork will be distributed at the meeting.\\n\";\n } else {\n aDocuments = \"\\n\";\n }\n\n mailBody.append(\" \" + dSegment);\n if (dSegment.length() > 0) {\n for (int i = dSegment.length() + 1; i < 37; i++) {\n mailBody.append(\" \");\n }\n } else {\n mailBody.append(\"\\t\\t\\t\\t\\t\\t \");\n }\n mailBody.append(dName);\n for (int i = dName.length() + 1; i < 37; i++) {\n mailBody.append(\" \");\n }\n mailBody.append(aTime);\n mailBody.append(aDocuments);\n }\n }\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"\\n\\nTo access DealPRO, please navigate to \" + getSparkURL() + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"This is an auto-generated e-mail. Please do not reply.\" + skipLine);\n\n if (sendMail(ssoRequester + \"@mail.ad.ge.com\", mailSubject.toString(), mailBody.toString(), true)) {\n StringBuffer sbMail = new StringBuffer(\"Meeting notification e-mail sent.\");\n sendMail(getEmailList(), \"-CC-\" + mailSubject.toString(), mailBody.toString(), true);\n return sbMail.toString();\n } else {\n return \"Failed to send the meeting notification e-mail; Please contact the DEALPRO Team at <a href='mailto:@SPARK Help'>@SPARK Help</a>.\";\n }\n }",
"public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"sai@gmail.com\");\n\t\t\n\t}",
"@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}",
"@Scheduled(cron = \"0 1 * * * *\")\n public void dailyTasks(){\n logger.info(\"Daily task started\");\n\n logger.info(\"Sending overdue emails\");\n List<Payment> overduePayments = new ArrayList<>();\n List<Payment> futurePayments = new ArrayList<>();\n paymentService.addPendingPayments(futurePayments, overduePayments);\n for(Payment overdue: overduePayments){\n Client client = overdue.getClient();\n if(client == null) throw new IllegalStateException(\"Payment \" + overdue.getId() + \" should have a valid client \");\n String email = client.getEmail();\n if(StringUtils.isEmpty(email)) continue;\n overdueEmailBody.replaceAll(\"\\\\$name\", client.getFirstName()).replaceAll(\"\\\\$unit\", overdue.getUnit().getName()).replaceAll(\"\\\\amount\", String.valueOf(overdue.getAmount()));\n emailSender.sendEmail(email, overdueEmailSubject, overdueEmailBody );\n }\n for(Payment payment: futurePayments){\n Client client = payment.getClient();\n if(client == null) throw new IllegalStateException(\"Payment \" + payment.getId() + \" should have a valid client \");\n String email = client.getEmail();\n if(StringUtils.isEmpty(email)) continue;\n futureEmailBody.replaceAll(\"\\\\$name\", client.getFirstName()).replaceAll(\"\\\\$unit\", payment.getUnit().getName()).replaceAll(\"\\\\amount\", String.valueOf(payment.getAmount()));\n emailSender.sendEmail(email, futureEmailSubject, futureEmailBody );\n }\n\n }",
"public void scheduleDisbursementReport() {\n Log.logBanner(\"Scheduling Disbursement Report\");\n pageVerification();\n schedule();\n }",
"public void sendemail(String sender,String to,String pass,String companyname){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"josephmwawasi29@gmail.com\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(companyname+\" Db Backup\");\n message.setText(\"Security system at \"+companyname+\" database attached...\");\n\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n\n Multipart multipart = new MimeMultipart();\n\n messageBodyPart = new MimeBodyPart();\n String file = path;\n //String fileName = companyname+\" Database Backup\";\n DataSource source = new FileDataSource(file);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(path);\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n System.out.println(\"Sending...\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n\n } catch (MessagingException e) {\n \n }\n }",
"@Override\n public void sendEmail(String emailBody) {\n }",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id jdfjdfh@gmail.com\");\n\t\t\n\t}",
"public void run() {\n\t\tlog.info(\"Weekly Scheduled Asset Report Job starting >> isMasterInstance:{} and isAuthorInstance:{}.\", isMasterInstance, isAuthorInstance);\r\n\t\tSession session = null;\r\n\t\t\r\n if (isMasterInstance && isAuthorInstance) {\r\n \r\n \tif(sendWeeklyReport) {\r\n\t\t try {\r\n\t\t\t\t\t session = getSession();\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t //TODO- \r\n\t\t\t\t\t String lowerBoundDate = \"2014-06-19\";\r\n\t\t\t\t\t String upperBoundDate = \"2014-06-26\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t String dateRange = lowerBoundDate + \" - \" + upperBoundDate;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t String templatePath = MISReportConstant.REPORT_EMAIL_TEMPLATE;\r\n\t\t\t\t\t Map<String, String> emailParams = MISReportUtil.buildEmailParams(reportType, reportFrequency, dateRange);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t DataSource reportDatasource = generateReport.generateReport(lowerBoundDate, upperBoundDate, reportType, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t //Get the UserGroup name for the reporType\t\t\r\n\t\t\t\t\t String userGroup = userManagement.getUserGroup(reportType);\r\n\t\t\t\t\t\r\n\t\t\t\t\t String[] authors = userManagement.getAllUsersOfGroup(userGroup, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t for(String authorID: authors) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailParams.put(MISReportConstant.FIRST_NAME, userManagement.getUserName(authorID, session));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailService.sendEmail(templatePath, emailParams, session, reportDatasource, userManagement.getEmailAddress(authorID, session));\r\n\t\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\t log.error(\"[Exception]\",e);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif(session.isLive())\r\n\t\t\t\t\t\tsession.logout();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t log.info(\"Weekly Asset Report Job finished sending {} reports\", reportType);\r\n \t}\r\n \telse {\r\n \t\tlog.info(\"Weekly Asset Report Job not executed>> Enable it from the AEM Felix console to execute\");\r\n \t}\r\n }\r\n \r\n\t}",
"private void email() throws IOException {\n\t\t/*\n\t\tString emailText = \"This email includes the following Play Types: \" + playSort.getSelectedItem().toString() + \n\t\t\t\t\"\\nFrom the gameplan: \" + gamePlans.getSelectedItem().toString();\n\t\tString subject = playSort.getSelectedItem().toString() + \" from \" + gamePlans.getSelectedItem().toString();\n\t\t\t\t\n\t\t// TODO: save image to file system, and add the file paht to atachment\n\t\tArrayList<String> attachments = DigPlayDB.getInstance(getBaseContext()).getAllPlayNames();\n\t\tArrayList<String> attachmentPath = new ArrayList<String>();\n\t\tfor (int att = 0; att < attachments.size(); att++) \n\t\t{\n\t\t\tFile myFile = new File(\"/sdcard/DCIM/Play/temp.jpeg\");\n\t\t\tmyFile.setWritable(true);\n\t FileOutputStream myOutWriter =new FileOutputStream(myFile);\n\t myOutWriter.write(DigPlayDB.getInstance(getBaseContext()).getImage(attachments.get(att)));\n\t myOutWriter.flush();\n\t myOutWriter.close();\n\t myFile.setReadable(true);\n\t attachmentPath.add(myFile.getAbsolutePath());\n\t\t}\n\n\t\tEmailPlaybook.EmailAttachment(this, \"krebsba4@gmail.com\", subject, emailText, attachmentPath);\n\t\t*/\n\t}",
"public static void email(GlobalProperties gp, String[] to, String subject, String body, String[] attachments) {\n\t\tif (((to == null) || (to.length==0)))\n\t\t\tto = gp.getReportEmails();\n\t\t\n\t\tString currentDataSource = gp.getCurrentDataSource();\n\t\tDbHelperDataSource db = new DbHelperDataSource(gp, \"analytics\");\n\t\ttry {\n\t\t\tfor (String aReceipient: to) {\n\t\t\t\t// Add email to queue in db\n\t\t\t\tdb.executeStatement(\"INSERT INTO email_queue VALUES (\" \n\t\t\t\t\t\t+ \"null,\"\n\t\t\t\t\t\t+ \"'\" + InetAddress.getLocalHost().getHostName() + \"',\"\n\t\t\t\t\t\t+ \"utc_timestamp(),\"\n\t\t\t\t\t\t+ \"'n/a',\"\n\t\t\t\t\t\t+ \"'\" + aReceipient + \"',\"\n\t\t\t\t\t\t+ ((subject==null)?\"null\":(\"'\" + subject.replace(\"\\\\\", \"\\\\\\\\\") + \"'\")) + \",\" \n\t\t\t\t\t\t+ ((body==null)?\"null\":(\"'\" + body.replace(\"\\\\\", \"\\\\\\\\\") + \"'\")) + \",\"\n\t\t\t\t\t\t+ (((attachments == null) || (attachments.length==0))?\"null\":(\"'\" + StringUtils.join(attachments , \",\") + \"'\")).replace(\"\\\\\", \"\\\\\\\\\") + \",\"\n\t\t\t\t\t\t+ \"null,\"\n\t\t\t\t\t\t+ \"null,\"\n\t\t\t\t\t\t+ \"0,0)\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//handleError(gp, e);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tgp.setCurrentDataSource(currentDataSource);\n\t\t}\n\t}",
"@Override\n\tpublic void sendHtmlEmail(MimeMessage mm) {\n\t\t\n\t}",
"public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"void sendMail(String receivers) throws MessagingException;",
"private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"@Override\n\tpublic void sendHtmlEmail(Object object,Object...objects) {\n\t\t\n\t}",
"public void retrySending()\n {\n try\n {\n EmailConfig emailConfig = getEmailConfig();\n int maxRetries = emailConfig.getMaxRetries().intValue();\n boolean saveFailedMails = emailConfig.getSaveFailedEmails();\n List messageFileList = getMessagesInFolder(IEmailConfiguration.EMAIL_RETRY_PATH);\n \n if (maxRetries > 0 && messageFileList.size()>0)\n {\n Session session = getMailSession(true);\n for (Iterator i = messageFileList.iterator(); i.hasNext();)\n {\n resendMail(session, (File)i.next(), maxRetries, saveFailedMails);\n }\n }\n }\n catch (Throwable th)\n {\n AlertLogger.warnLog(CLASSNAME,\"retrySending\",\"Error in retrySending\",th);\n }\n }",
"public void crawl() {\n retrieveDataByProductUrls();\n // Check if data is in range\n for (TrackedProduct product : AppConfig.getProducts()) {\n if (checkProductInRange(product)) {\n // Send Email\n MailSender.sendMail(product);\n }\n }\n }",
"public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }",
"public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"test@email.com\", \"java@anc.ro\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }",
"@RequestMapping(\"/allEmails.html\")\n\tpublic String MailList() {\n\t\t\n\t\tif(Email.Email() > 0) {\n\t\t\t//opens the newly created html file\n\t\t\treturn \"allEmails.html\";\n\t\t}\n\t\telse {\n\t\t\treturn \"noEmail.html\";\n\t\t}\n\t}",
"public void generateReport() throws InvalidEmailException, SQLException {\n\t\tSystem.out.println(\"=====GENERATE REPORT=====\");\n\t\tSystem.out.println(\"1.Fetch patient details by email:\");\n\t\tSystem.out.println(\"2.Fetch patient details by phone:\");\n\t\tSystem.out.println(\"Enter your choice:\");\n\t\tint choice = Integer.parseInt(sc.nextLine());\n\t\t// DatabaseConn viewDetails = new DatabaseConn();\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tdo {\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter Email\");\n\t\t\t\tString email = sc.nextLine();\n\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\tString testDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter phone no:\");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\ttestDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} while (choice != 3);\n\n\t}",
"void send(Email email);",
"private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"public static void main(String[] args) {\n /* Generate the email factory */\n EMailGenerationSystem generateEmail = new EmailFactory();\n \n /* Generate the email for business customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" Business Customer.---\"); \n generateEmail.generateEmail(\"Business\"); /* Generate email. */\n System.out.println(\"\\n\"); /* separate the test cases */\n \n /* Generate the email for frequent customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Frequent Customer.---\"); \n generateEmail.generateEmail(\"Frequent\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for new customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"New Customer.---\"); \n generateEmail.generateEmail(\"New\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for returning customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Returning Customer.---\"); \n generateEmail.generateEmail(\"returning\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for vip customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" VIP Customer.---\"); \n generateEmail.generateEmail(\"VIP\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for mispelling. The message will print out indicating error.*/\n System.out.println(\"---This is the start of the email for email \"\n + \" generation failure.---\"); \n generateEmail.generateEmail(\"custumer\"); /* Generate email. */\n }",
"@RequestMapping(\"/test\")\n\tpublic String Mail()\n\t{\n\t\tif(useMock)//if useMock value is true then it calls mockEmaliSender else it calls SMTPEmailSender the is declare in app.properties\n\t\t{\n\t\treturn mockEmailSender.sendMail(); //call to mMockEmailSender Class\n\t\t}\n\t\telse\n\t\t{\n\t\treturn SMTPEmailSender.sendMail(); //call to SMTPEmailSender class\n\t\t}\n\t}",
"public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"IT353Uconnect@gmail.com\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"IT353Uconnect@gmail.com\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }",
"public String generalReport() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}",
"void sendEmail(Job job, String email);",
"public String report() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tif(bulkForm16.getEmpId().equals(\"\")){\r\n\t\t\tString str=model.generateUrlList(request, response,bulkForm16);\r\n\t\t\tif(!str.equals(\"1\"))\r\n\t\t\t\taddActionMessage(str);\r\n\t\t\treturn SUCCESS;\r\n\t\t} //end of if\r\n\t\telse{\r\n\t\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\t\tmodel.terminate();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@RequestMapping(value = \"/report\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString getReport(HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// Get the Logged in User\n\t\tString name = getLoggedUser();\n\n\t\tString email = request.getParameter(\"email\");\n\t\tRetrieveItems ri = new RetrieveItems(env);\n\t\tList<WorkItem> theList = ri.getItemsDataSQLReport(name);\n\t\tWriteExcel writeExcel = new WriteExcel();\n\t\tSendMessages sm = new SendMessages(env);\n\t\tjava.io.InputStream is = writeExcel.exportExcel(theList);\n\n\t\ttry {\n\t\t\tsm.sendReport(is, email);\n\t\t}catch (IOException e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\treturn \"Report is created\";\n\t}",
"void send(String emailName, Map model, EmailPreparator emailPreparator);",
"public void send() {\n\t\tfinal String username = \"oneplanner.sys@gmail.com\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"oneplanner.sys@gmail.com\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"jinnonsbox@gmail.com\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }",
"public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \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}",
"public ActionForward emailInvoicePDF(ActionMapping mapping, InvoiceReportDeliveryForm irdForm, Collection<ContractsGrantsInvoiceDocument> list) throws Exception {\r\n if (CollectionUtils.isNotEmpty(list)) {\r\n ContractsGrantsInvoiceReportService reportService = SpringContext.getBean(ContractsGrantsInvoiceReportService.class);\r\n reportService.sendEmailForListofInvoicesToAgency(list);\r\n }\r\n irdForm.setMessage(MARKED_FOR_PROCESSING_BY_BATCH_JOB);\r\n return mapping.findForward(KFSConstants.MAPPING_BASIC);\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}",
"public void run() {\r\n\t\t\t\ttry {\r\n//\t\t\t\t\tPostMethod post = new PostMethod(Config.get(\"reportpage\"));\r\n//\t\t\t\t\tpost.addParameter(\"user\", Main.USER);\r\n//\t\t\t\t\tpost.addParameter(\"email\", email);\r\n//\t\t\t\t\tpost.addParameter(\"notes\", notes);\r\n//\t\t\t\t\tpost.addParameter(\"info\", info);\r\n\t\t\t\t String product = Config.get(\"product\", \"JMARS\");\r\n\t\t\t\t product = product.toUpperCase();\r\n\t\t\t\t \r\n\t\t\t\t\tJmarsHttpRequest request = new JmarsHttpRequest(Config.get(\"reportpage\"), HttpRequestType.POST);\r\n\t\t\t\t\trequest.addRequestParameter(\"user\", Main.USER);\r\n\t\t\t\t\trequest.addRequestParameter(\"email\", email);\r\n\t\t\t\t\trequest.addRequestParameter(\"notes\", notes);\r\n\t\t\t\t\trequest.addRequestParameter(\"info\", info);\r\n\t\t\t\t\trequest.addRequestParameter(\"product\",product);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n//\t\t\t\t\tHttpClient http = new HttpClient();\r\n//\t\t\t\t\thttp.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);\r\n\t request.setConnectionTimeout(timeout);\r\n\t request.setLaxRedirect();\r\n\t boolean successful = request.send();\r\n//\t\t\t\t\tint code = Util.postWithRedirect(http, post, 3);\r\n int code = request.getStatus();\r\n\t if (code != HttpStatus.SC_OK) {\r\n\t\t\t\t\t\terror = \"Server returned unexpected code \" + code;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString response = new BufferedReader(\r\n\t\t\t\t\t\t\tnew InputStreamReader(\r\n\t\t\t\t\t\t\t\trequest.getResponseAsStream())).readLine();\r\n\t\t\t\t\t\tif (response.equals(\"OKAY\")) {\r\n\t\t\t\t\t\t\t// mail sent properly\r\n\t\t\t\t\t\t} else if (response.equals(\"FAILURE\")) {\r\n\t\t\t\t\t\t\terror = \"Server was unable to deliver the message: \" + response;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t} catch (HttpException e) {\r\n//\t\t\t\t\terror = \"Error communicating with server\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\terror = \"Unable to establish a connection, are you connected?\";\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\terror = \"Unexpected exception occurred: \" + e.getMessage();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// get back on the AWT thread to handle the result\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttimer.stop();\r\n\t\t\t\t\t\tdlg.dispose();\r\n\t\t\t\t\t\tif (error != null) {\r\n\t\t\t\t\t\t\t// failure sending report, suggest e-mail\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tMain.mainFrame,\r\n\t\t\t\t\t\t\t\t\"Unable to deliver message: \" + error + \"\\n\\nEmail \" + Config.get(\"email\"),\r\n\t\t\t\t\t\t\t\t\"Unable to deliver message\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tsendingThread = null;\r\n\t\t\t}",
"public void sendEmail(SendEmailRequestDocument parameters) {\r\n\t\t// Add the business logic here\r\n\t\treturn;\r\n\t}",
"public void tradeEmail(Trade model, Activity view) {\n String subject = \"SSCTE Trade Completed\" ;\n String body = model.getOwner().getName() + \" has accepted a trade with \" + model.getBorrower().getName() + \".\\n\" +\n \"+=================================+\\n\" +\n \" \" + model.getOwner().getName() + \"'s cards traded:\\n\";\n for (Card card : model.getOwnerList()) {\n body = body + \" [\" + card.getQuantity() + \"] \" + card.getName() + \"\\n\";\n }\n body = body +\n \"+=====================+\\n\" +\n \" \" + model.getBorrower().getName() + \"'s cards traded:\\n\";\n for (Card card : model.getBorrowList()) {\n body = body + \" [\" + card.getQuantity() + \"] \" + card.getName() + \"\\n\";\n }\n body = body +\n \"+=================================+\\n\\n\" +\n \" [Add some comments for continuing trade here]\";\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\",model.getOwner().getEmail() + \",\"+model.getBorrower().getEmail(), null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n view.startActivity(Intent.createChooser(emailIntent, \"Send email...\"));\n }",
"@Override\n\tpublic void createDigestEmail() {\n\n\t}",
"@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}",
"public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"chillamcharla.bharath@gmail.com\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"chillamcharla.bharath@gmail.com\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"chillamcharla.bharath@gmail.com\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}",
"void send(String emailName, Map model, Locale locale, EmailPreparator emailPreparator);",
"private void generateEmails(List<EmailAccount> emailAccounts, int count) {\n \t\t\n \t}",
"private void sendFeedback() {\n final String technicalInfo = commonsLogSender.getExtraInfo();\n\n final Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);\n feedbackIntent.setType(\"message/rfc822\");\n feedbackIntent.setData(Uri.parse(\"mailto:\"));\n feedbackIntent.putExtra(Intent.EXTRA_EMAIL,\n new String[]{CommonsApplication.FEEDBACK_EMAIL});\n feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,\n CommonsApplication.FEEDBACK_EMAIL_SUBJECT);\n feedbackIntent.putExtra(Intent.EXTRA_TEXT, String.format(\n \"\\n\\n%s\\n%s\", CommonsApplication.FEEDBACK_EMAIL_TEMPLATE_HEADER, technicalInfo));\n try {\n startActivity(feedbackIntent);\n } catch (final ActivityNotFoundException e) {\n Toast.makeText(getActivity(), R.string.no_email_client, Toast.LENGTH_SHORT).show();\n }\n }",
"public static void main(String[] args) throws Exception {\r\n\t\t// SMTP server information\r\n\t\tString host = \"smtp.gmail.com\";\r\n\t\tString port = \"587\";\r\n\t\tString mailFrom = \"javamailtesting1@gmail.com\";\r\n\t\tString password = \"javamailtesting1\";\r\n\r\n\t\t// outgoing message information\r\n\t\tString mailTo = \"santuc1990@gmail.com\";\r\n\t\tString subject = \"HTML Mail\";\r\n\r\n\t\t// message contains HTML markups\r\n\t\tString message = \"\";//readFile(\"C:/login.html\");\r\n\t\tOrderBean order=new OrderBean();\r\n\t\tProducts product1=new Products();\r\n\t\tproduct1.setCommerceItemId(\"c123\");\r\n\t\tproduct1.setProductName(\"Pantene\");\r\n\t\tproduct1.setQuantity(\"1\");\r\n\t\tproduct1.setSkuId(\"sku123\");\r\n\t\tproduct1.setListPrice(\"10\");\r\n\t\tproduct1.setProductId(\"prod123\");\r\n\t\tproduct1.setSalePrice(\"9\");\r\n\t\tList<Products> pList=new ArrayList<Products>();\r\n\t\tpList.add(product1);\r\n\t\tProducts product2=new Products();\r\n\t\tproduct2.setCommerceItemId(\"c456\");\r\n\t\tproduct2.setProductName(\"Dove\");\r\n\t\tproduct2.setQuantity(\"2\");\r\n\t\tproduct2.setSkuId(\"sku456\");\r\n\t\tproduct2.setListPrice(\"20\");\r\n\t\tproduct2.setProductId(\"prod456\");\r\n\t\tproduct2.setSalePrice(\"19\");\r\n\t\tpList.add(product2);\r\n\t\torder.setOrderId(\"o123456\");\r\n\t\torder.setOrderMap(pList);\r\n\t\torder.setOrderTotal(\"47\");\r\n\t\tmessage=new EmailDemo().generateVelocityTemplate(order);\r\n\t\tHtmlEmailSender mailer = new HtmlEmailSender();\r\n\r\n\t\ttry {\r\n\t\t\tmailer.sendHtmlEmail(host, port, mailFrom, password, mailTo,\r\n\t\t\t\t\tsubject, message);\r\n\t\t\tSystem.out.println(\"Email sent.\");\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Failed to sent email.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public String generateMail() {\n return \"<HTML> Don`t call us Nikolas</HTML>\";\n }",
"private void contactReport() {\n reportText.appendText(\"Report of appointments per Contact\\n\\n\");\n for (Contact contact: Data.getContacts()) {\n\n reportText.appendText(\"\\n\\nContact:\" + contact.getContactName() + \"\\n\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getContact() == contact.getContactID()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n }",
"@RequestMapping(\"/mail\")\n\tpublic String mail() throws MessagingException {\n\t\tmailsender.send(\"lama.nawraj00@gmail.com\", \"A test mail\", \"body of the test mail\");\n\t\t\n\t\treturn \"mail sent by Nawaki to the localhost...........\";//result\n\t}",
"private static void mailResults(String experimentID, String content) {\r\n }",
"@RequestMapping(value = \"/download/IPMReportPDF\", method = RequestMethod.GET)\n\tpublic ModelAndView doIndividualIPMReportPDF(ModelAndView modelAndView,\n\t\t\t@RequestParam(\"workmail\") final String email, @RequestParam(\"id\") final Integer assId) {\n\n\t\tLOGGER.debug(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\t\tLOGGER.info(\"doIndividualIPMReportPDF : Received request to download PDF report\");\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tuserList = userServices.findByWorkMail(email);\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tassessmentList = assessmentServices.findByUserIdAssId(user.getUserId(), assId);\n\t\t\t// suggestionList = suggestionServices.findByLvlId(1);\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\t\t\t// LOGGER.info(\"dataList \"+dataList.toString());\n\n\t\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\n\t\t\t// Retrieve our data from a custom data provider\n\t\t\t// Our data comes from a DAO layer\n\t\t\t// DemoDAO dataprovider = new DemoDAO();\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\t// Assign the datasource to an instance of JRDataSource\n\t\t\t// JRDataSource is the datasource that Jasper understands\n\t\t\t// This is basically a wrapper to Java's collection classes\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\t// In order to use Spring's built-in Jasper support,\n\t\t\t// We are required to pass our datasource as a map parameter\n\t\t\t// parameterMap is the Model of our application\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\t// parameterMap.put(\"username\", user.getFirstName()+\"\n\t\t\t// \"+user.getLastName());\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\t// pdfReport is the View of our application\n\t\t\t// This is declared inside the /WEB-INF/jasper-views.xml\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\t// Return the View and the Model combined\n\t\treturn modelAndView;\n\t}",
"private static String generateEmailBody(Set<StockSymbol> stockSymbols){\n StringBuilder sb = new StringBuilder();\n\n //header body text\n sb.append(\"These are the stocks that it's 8 SMA and 23 SMA have intersected\")\n .append(\" or has an indication of -80 or lower on the Williams Percent R.\")\n .append(\"<br><br>\");\n\n //start of table\n sb.append(\"<table style=\\\"width: 100%;\\\">\");\n\n //table headers\n sb.append(\"<tr>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Symbol\").append(\"</th>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Trend\").append(\"</th>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Has SMA Crossover\").append(\"</th>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Has WillR\").append(\"</th>\")\n .append(\"</tr>\");\n\n //table data for each symbol\n stockSymbols.forEach(\n symbol -> {\n sb.append(\"<tr>\")\n .append(\"<td>\").append(symbol.getSymbol()).append(\"</td>\")\n .append(\"<td>\").append(symbol.getTrend().getValue()).append(\"</td>\")\n .append(\"<td>\").append(Boolean.toString(symbol.isHasSMACrossover())).append(\"</td>\")\n .append(\"<td>\").append(Boolean.toString(symbol.isHasWillR())).append(\"</td>\")\n .append(\"</tr>\");\n }\n );\n\n //end of table\n sb.append(\"</table>\");\n\n return sb.toString();\n }",
"@Override\n\tpublic void sendTextPlainEmail(Object object,Object...objects) {\n\t\t\n\t}",
"public void execute(JobExecutionContext context) {\n sendSevenDaysExpiringEmails();\n sendOneDayExpiringEmails();\n sendOneDayExpiredEmails();\n }",
"@Override\n public void send(Email email) {\n email = EmailBuilder.copying(email)\n .clearRecipients()\n .to(sinkName, sinkAddress)\n .buildEmail();\n mailService.send(email);\n }",
"@Test\n\tpublic void generateBatchReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t//Generate Batch report\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Batch Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\t\t\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"@Override\r\n\tpublic void sendInvoice(Invoice invoice, String email) {\n\t\tSystem.out.println(\"Invoice Sent email\");\r\n\t}",
"void sendEmail(Task task, String taskTypeName, String plantName);",
"String getReportsTo();",
"public void sendingMessageForEmp(Set<String> emailCCList){\n\tSimpleMailMessage[] mailMessageArray = new SimpleMailMessage[1];\r\n Iterator iterator = emailCCList.iterator();\r\n // for (int index = 0; iterator.hasNext(); index ++){\r\n while(iterator.hasNext())\r\n {\r\n String mailids=(String)iterator.next();\r\n SimpleMailMessage message = new SimpleMailMessage();\r\n String toAddress = (String)iterator.next();\r\n message.setFrom(\"thotaparvathidevi@gmail.com\");\r\n message.setTo(\"durgasridevi.salugu@mntsoft.co.in\");\r\n message.setSubject(\"With CC\");\r\n message.setCc(mailids);\r\n message.setText(\"Mail Sent from @parvathi@gmail.com\");\r\n mailMessageArray[0] = message;\r\n//}\r\n\r\n System.out.println(\"Sending email ....\");\r\n mailSender.send(mailMessageArray);\r\n System.out.println(\"Sent email ....\");\r\n }\r\n\r\n}",
"public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }",
"public void sendMail(String to, String templateName, Object... parameters);",
"boolean getSendMarketingEmails();",
"void send(String emailName);"
] | [
"0.7266347",
"0.6950102",
"0.6835067",
"0.6657697",
"0.6570693",
"0.641084",
"0.63781005",
"0.632579",
"0.6205004",
"0.61669755",
"0.6161156",
"0.609668",
"0.6075458",
"0.60421056",
"0.6019492",
"0.60011",
"0.59206265",
"0.58979774",
"0.5893522",
"0.58827525",
"0.58366",
"0.58190376",
"0.5746696",
"0.5724807",
"0.5724383",
"0.5718359",
"0.5694098",
"0.56871116",
"0.5676879",
"0.5668741",
"0.56550246",
"0.5653442",
"0.5644543",
"0.56412065",
"0.56358004",
"0.5629612",
"0.56262654",
"0.5618813",
"0.5608097",
"0.5599629",
"0.55944663",
"0.55830306",
"0.55441463",
"0.55422723",
"0.5506858",
"0.5496814",
"0.54765886",
"0.5467915",
"0.5460226",
"0.54597056",
"0.5437107",
"0.5425633",
"0.54098123",
"0.54095083",
"0.54092115",
"0.54079646",
"0.54077107",
"0.53970355",
"0.5396885",
"0.5391657",
"0.5379621",
"0.5377368",
"0.5372825",
"0.53491026",
"0.5342461",
"0.5342438",
"0.5326622",
"0.5325681",
"0.5314253",
"0.53075445",
"0.52972704",
"0.52971315",
"0.5289196",
"0.52824473",
"0.52722526",
"0.5258634",
"0.52448595",
"0.524153",
"0.523799",
"0.52374244",
"0.52324766",
"0.52318376",
"0.52254397",
"0.5216085",
"0.52132404",
"0.52123386",
"0.5206768",
"0.52051806",
"0.51971334",
"0.5195575",
"0.51943064",
"0.5188546",
"0.51741904",
"0.5135023",
"0.51309305",
"0.5122128",
"0.5119341",
"0.5116725",
"0.5108538",
"0.5103955",
"0.5102035"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> parent) {
} | {
"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 |
Verifies service is certified with version 1.0 | public static void verifyServiceCertified(ServiceReqDetails createServiceInUI, User user) {
Supplier<RestResponse> serviceGetter = () -> FunctionalInterfaces.swallowException(
() -> ServiceRestUtils.getServiceByNameAndVersion(user, createServiceInUI.getName(), "1.0"));
Function<RestResponse, Boolean> serviceVerificator = restResp -> restResp.getErrorCode() == HttpStatus.SC_OK;
RestResponse certifiedResourceResopnse = FunctionalInterfaces.retryMethodOnResult(serviceGetter,
serviceVerificator);
assertTrue(certifiedResourceResopnse.getErrorCode() == HttpStatus.SC_OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testVersion() {\n\t\tassertEquals(\"HTTP/1.0\", myReply.getVersion());\n\t}",
"@Override\n public void checkVersion() {\n }",
"public String getServiceVersion();",
"public void verifyServerCertificates(boolean yesno);",
"String getVersion() throws IOException, SoapException;",
"@Override\n protected Result check() throws Exception { \n try {\n GetOSVersionRes res = this.service.getOSVersion(new GetOSVersionReq());\n // only return the OS name to avoid any potential\n // security problem if the version was exposed...\n return Result.healthy(res.getReturn().getOs().getOsName());\n } catch(Exception e) {\n return Result.unhealthy(e.getMessage());\n }\n }",
"@Test\n\tpublic void serviceQualificationEE() throws Exception {\n\t\tTSLParser parser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0.xml\")));\n\t\tTSLParserResult model = parser.call();\n\n\t\tList<TSLServiceProvider> serviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tTSLService service = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\tList<TSLServiceExtension> extensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\tTSLServiceExtension extension = extensions.get(0);\n\n\t\tList<TSLConditionsForQualifiers> conditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(1, conditionsForQualifiers.size());\n\n\t\tTSLConditionsForQualifiers qcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNull(qcStatement);\n\n\t\t// ***************************** NEW VERSION OF TL\n\n\t\tCertificateToken certificate = DSSUtils.loadCertificateFromBase64EncodedString(\n\t\t\t\t\"MIID3DCCAsSgAwIBAgIER/idhzANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEPMA0GA1UECxMGRVNURUlEMRcwFQYDVQQDEw5FU1RFSUQtU0sgMjAwNzAeFw0wODA0MDYwOTUzMDlaFw0xMjAzMDUyMjAwMDBaMIGWMQswCQYDVQQGEwJFRTEPMA0GA1UEChMGRVNURUlEMRowGAYDVQQLExFkaWdpdGFsIHNpZ25hdHVyZTEiMCAGA1UEAxMZU0lOSVZFRSxWRUlLTywzNjcwNjAyMDIxMDEQMA4GA1UEBBMHU0lOSVZFRTEOMAwGA1UEKhMFVkVJS08xFDASBgNVBAUTCzM2NzA2MDIwMjEwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGRN42R9e6VEHMCyvacuubjtm1+5Kk92WgIgtWA8hY8DW2iNvQJ3jOF5XlVIyIDTwl2JVKxWKhXX+8+yNFPpqAK43IINcmMfznw/KcR7jACGNuTrivA9HrvRiqDzTg5E1rktjho6OkDkdV3dgOLB2wyhVm2anNpICfrUq8c09HPwIDMMP5o4HvMIHsMA4GA1UdDwEB/wQEAwIGQDA8BgNVHR8ENTAzMDGgL6AthitodHRwOi8vd3d3LnNrLmVlL2NybHMvZXN0ZWlkL2VzdGVpZDIwMDcuY3JsMFEGA1UdIARKMEgwRgYLKwYBBAHOHwEBAQEwNzASBggrBgEFBQcCAjAGGgRub25lMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nwcy8wHwYDVR0jBBgwFoAUSAbevoyHV5WAeGP6nCMrK6A6GHUwHQYDVR0OBBYEFJAJUyDrH3rdxTStU+LDa6aHdE8dMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQEFBQADggEBAA5qjfeuTdOoEtatiA9hpjDHzyqN1PROcaPrABXGqpLxcHbLVr7xmovILAjxS9fJAw28u9ZE3asRNa9xgQNTeX23mMlojJAYVbYCeIeJ6jtsRiCo34wgvO3CtVfO3+C1T8Du5XLCHa6SoT8SpCApW+Crwe+6eCZDmv2NKTjhn1wCCNO2e8HuSt+pTUNBTUB+rkvF4KO9VnuzRzT7zN7AUdW4OFF3bI+9+VmW3t9vq1zDOxNTdBkCM3zm5TRa8ZtyAPL48bW19JAcYzQLjPGORwoIRNSXdVTqX+cDiw2wbmb2IhPdxRqN9uPwU1x/ltZZ3W5GzJ1t8JeQN7PuGM0OHqE=\");\n\n\t\tparser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0-2.xml\")));\n\t\tmodel = parser.call();\n\n\t\tserviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tservice = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\textensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\textension = extensions.get(0);\n\n\t\tconditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(2, conditionsForQualifiers.size());\n\n\t\tqcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNotNull(qcStatement);\n\n\t\tCondition condition = qcStatement.getCondition();\n\t\tassertTrue(condition.check(certificate));\n\t}",
"boolean hasVersion();",
"boolean hasVersion();",
"@Test(dependsOnMethods = \"testUpdateCertificate\")\n public void testUpdateCertificateVersion() {\n throw new SkipException(\"bug in requirements for function\");\n }",
"protected void validate(ExchangeVersion version)\n\t\t\tthrows ServiceVersionException {\n\t}",
"@Test\r\n public void testVerify() throws SodiumException, CryptoException {\r\n\r\n byte[] data = \"Hola caracola\".getBytes();\r\n\r\n CryptoService instance = new CryptoService();\r\n Keys keys = instance.createKeys(null);\r\n byte[] sign = instance.sign(data, keys);\r\n boolean result = instance.verify(data, sign, keys);\r\n assertTrue(result);\r\n }",
"public void setServiceVersion(String serviceVersion);",
"boolean hasPaymentDetailsVersion();",
"public void setServiceCompleteness(ServiceCompleteness completeness);",
"public void checkValidity(java.util.Date r1) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.checkValidity(java.util.Date):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.checkValidity(java.util.Date):void\");\n }",
"public void checkForUpdate(String currentVersion);",
"@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}",
"@Test\r\n public void testVerifyCryptoType() throws SodiumException, CryptoException {\r\n\r\n byte[] data = \"Hola caracola\".getBytes();\r\n\r\n CryptoService instance = new CryptoService();\r\n Keys keys = instance.createKeys(null);\r\n byte[] sign = instance.sign(data, keys);\r\n boolean result = instance.verify(data, sign, keys);\r\n assertTrue(result);\r\n }",
"public void validateRpd22s1()\n {\n // This guideline cannot be automatically tested.\n }",
"public void verifyServerCn(boolean yesno);",
"int getTcfPolicyVersion();",
"public abstract HttpClient.Version version();",
"int isValid() throws IOException, SoapException;",
"public void testX509EncryptionSHA1() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }",
"boolean hasVersionNumber();",
"public void testGetManagementSpecVersion() {\n String specVersion = mb.getManagementSpecVersion();\n assertNotNull(specVersion);\n assertTrue(specVersion.length() > 0);\n }",
"public boolean verify();",
"boolean hasRpcVersion();",
"boolean hasRpcVersion();",
"long version();",
"public void validateRpd14s1()\n {\n // This guideline cannot be automatically tested.\n }",
"protected void checkVersion(long clientVersion) throws IOException {\n if (mServiceVersion == Constants.UNKNOWN_SERVICE_VERSION) {\n mServiceVersion = getRemoteServiceVersion();\n if (mServiceVersion != clientVersion) {\n throw new IOException(ExceptionMessage.INCOMPATIBLE_VERSION.getMessage(getServiceName(),\n clientVersion, mServiceVersion));\n }\n }\n }",
"@Test\n public void test01ConfRespSignedByRecepient() throws Exception {\n log.trace(\">test01ConfRespSignedByRecepient\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, \"\");\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n PKIMessage confirm = genCertConfirm(userDN, this.cacert, nonce, transid, hash, 0, null);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha256WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test01ConfRespSignedByRecepient\");\n }",
"@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}",
"int verify(Requirement o);",
"@Override\n public StabilityResult check() {\n boolean serviceStability = false;\n int count = 0;\n int count1 = 0;\n int count2 = 0;\n while (!serviceStability && count < attempts) {\n try {\n // We use the getAllServiceReferences method to ignore classloading issues. Anyway, we are not using\n // the service, just counting them.\n ServiceReference[] refs = context.getAllServiceReferences(null, null);\n count1 = refs.length;\n grace();\n refs = context.getAllServiceReferences(null, null);\n count2 = refs.length;\n serviceStability = count1 == count2;\n } catch (Exception e) {\n LOGGER.warn(\"An exception was thrown while checking the service stability\", e);\n serviceStability = false;\n // Nothing to do, while recheck the condition\n }\n count++;\n }\n\n if (count == attempts) {\n LOGGER.error(\"Service stability has not been reached after {} tries ({} != {})\", attempts, count1, count2);\n return StabilityResult.unstable(\"Cannot reach the service stability\");\n }\n return StabilityResult.stable();\n }",
"public boolean isValid() {\n return (identifier != null) || version.getVersion().equals(\"0.1\");\n }",
"public void verifySecureResponse(com.tangosol.net.Service service, com.tangosol.net.security.PermissionInfo info)\n {\n }",
"public int getVersion() { return 1; }",
"public void validateRpd18s1()\n {\n // This guideline cannot be automatically tested.\n }",
"boolean hasCurrentVersion();",
"@Test(enabled = true, groups = {\"servicetest.p1\"})\n public void testGetHealthCheck(){\n\n RestResponse<HealthCheck> healthCheckRestResponse = new ServiceWorkflow().getHealthCheck();\n Assert.assertTrue(healthCheckRestResponse.getStatus() == 200, \"Invalid Status\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getService(),serviceName, \"Incorrect Service Name\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getVersion(),version, \"Incorrect version\");\n }",
"boolean hasCertificate();",
"public void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.checkValidity():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.checkValidity():void\");\n }",
"@Test\n public void testInsertServiceVersion() {\n File file = new File(\"./wsdlfile/M1.wsdl\") ;\n String wsdlclob = FileUtil.file2String(file, \"utf-8\");\n int result = OracleDBUtil.insertServiceVersion(new ServiceVersion(7, 1, \"./wsdlfile/M1.wsdl\",wsdlclob ));\n assertEquals(1, result);\n }",
"public int getVersion() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getVersion():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getVersion():int\");\n }",
"private static boolean isAcceptableVersion(NetworkParameters params, int version) {\n\t\tfor (int v : params.getAcceptableAddressCodes()) {\n\t\t\tif (version == v) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void getVersion(RoutingContext routingContext) {\n response(routingContext, 200, new JsonObject().put(\"version\", \"0.1\"));\n }",
"@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}",
"@Test\n void testVersionSelection() throws Exception {\n for (SqlGatewayRestAPIVersion version : SqlGatewayRestAPIVersion.values()) {\n if (version != SqlGatewayRestAPIVersion.V0) {\n CompletableFuture<TestResponse> versionResponse =\n restClient.sendRequest(\n serverAddress.getHostName(),\n serverAddress.getPort(),\n headerNot0,\n EmptyMessageParameters.getInstance(),\n EmptyRequestBody.getInstance(),\n Collections.emptyList(),\n version);\n\n TestResponse testResponse =\n versionResponse.get(timeout.getSize(), timeout.getUnit());\n assertThat(testResponse.getStatus()).isEqualTo(version.name());\n }\n }\n }",
"boolean hasCertificates();",
"boolean hasCertificates();",
"@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }",
"boolean isVersion3Allowed();",
"public void validateRpd11s1()\n {\n // This guideline cannot be automatically tested.\n }",
"String offerVersion();",
"@Test\n public void test02ConfRespSignedByDefaultCA() throws Exception {\n log.trace(\">test02ConfRespSignedByDefaultCA\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, this.testx509ca.getSubjectDN());\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n // the parameter 'null' is to generate a confirm request for a recipient that does not exist\n PKIMessage confirm = genCertConfirm(userDN, null, nonce, transid, hash, 0, PKCSObjectIdentifiers.sha1WithRSAEncryption);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha1WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test02ConfRespSignedByDefaultCA\");\n }",
"@Test\n\tpublic void testVersion_1()\n\t\tthrows Exception {\n\t\tString version = \"1\";\n\n\t\tVersion result = new Version(version);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"1\", result.toString());\n\t}",
"@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }",
"@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult getComplianceCheckResult();",
"@Override\n public boolean verify(String hostname, SSLSession ssls) {\n return true;\n }",
"public void validateRpd15s1()\n {\n // This guideline cannot be automatically tested.\n }",
"@Test\n public void testService()\n {\n final JsonSchemaValidator jsonValidator =\n JsonSchemaValidator.matchesJsonSchemaInClasspath(\"costcenters-schema.json\");\n\n // HTTP GET response OK, JSON header and valid schema\n given().get(\"/costcenters\").then().assertThat().statusCode(200).contentType(ContentType.JSON).body(\n jsonValidator);\n }",
"@Test\n public void serviceLevelAgreementTest() {\n // TODO: test serviceLevelAgreement\n }",
"@Test(expected = IllegalStateException.class)\r\n public final void testCreateNewVersionForDesignDevContestFailureContestServiceMissed() throws Exception {\r\n DirectServiceFacadeBean currentDirectServiceFacadeBean = new DirectServiceFacadeBean();\r\n FailureTestHelper\r\n .initializeDirectServiceFacadeBean(currentDirectServiceFacadeBean, false, true, true);\r\n currentDirectServiceFacadeBean.createNewVersionForDesignDevContest(new TCSubject(998), 999);\r\n }",
"public void verifyService() throws Throwable{\r\n\t\twdlib.waitForElement(getServiceText());\r\n\t\t\r\n\t\tif(!getServiceText().getText().equals(\"None Included\"))\r\n\t\t{\r\n\t\t\tReporter.log(getServiceText().getText()+\" is deleted\",true);\r\n\t\t\tdeleteService();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic final void checkLicense() {\n\t}",
"@Test\n public void testV1PodDNSConfig() {\n // TODO: test V1PodDNSConfig\n }",
"private static final void u() {\n try {\n Object object = StaticLoggerBinder.REQUESTED_API_VERSION;\n Object object2 = v;\n int n10 = ((String[])object2).length;\n int n11 = 0;\n boolean bl2 = false;\n while (true) {\n if (n11 >= n10) {\n if (bl2) return;\n object2 = new StringBuilder();\n String string2 = \"The requested version \";\n ((StringBuilder)object2).append(string2);\n ((StringBuilder)object2).append((String)object);\n object = \" by your slf4j binding is not compatible with \";\n ((StringBuilder)object2).append((String)object);\n object = v;\n object = Arrays.asList(object);\n object = object.toString();\n ((StringBuilder)object2).append((String)object);\n object = ((StringBuilder)object2).toString();\n i.h.h.i.c((String)object);\n object = \"See http://www.slf4j.org/codes.html#version_mismatch for further details.\";\n i.h.h.i.c((String)object);\n return;\n }\n String string3 = object2[n11];\n boolean bl3 = ((String)object).startsWith(string3);\n if (bl3) {\n bl2 = true;\n }\n ++n11;\n }\n }\n catch (Throwable throwable) {\n String string4 = \"Unexpected problem occured during version sanity check\";\n i.h.h.i.d(string4, throwable);\n return;\n }\n catch (NoSuchFieldError noSuchFieldError) {\n return;\n }\n }",
"@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }",
"@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }",
"@Override\n\t\t\t\t\t\tpublic boolean verify(String hostname,\n\t\t\t\t\t\t\t\tSSLSession session) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}",
"boolean isBadVersion(int version) {\n return true;\n }",
"public void validateRpd8s12()\n {\n // This guideline cannot be automatically tested.\n }",
"public CompletionStage<Result> verify()\n {\n IRequestValidator requestValidator=new CertVerifyRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VERIFY);\n }",
"public void testEncryptionSHA1Symmetric() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setSymmetricKey(key);\n builder.setEncryptSymmKey(false);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }",
"@Override\n public void validCertificateAvailable() {\n dismissDialog();\n if(android.os.Build.VERSION.SDK_INT < 14) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n } else if(android.os.Build.VERSION.SDK_INT >= 14 && android.os.Build.VERSION.SDK_INT <= 18) {\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(isNative) {\n boolean isAddedToNativeKeyStore = KeyTalkCommunicationManager.getNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl());\n if(isAddedToNativeKeyStore) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n showDialog(AppConstants.DIALOG_REINSTALL_CERTIFICATE);\n }\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n }\n } else {\n boolean isAddedToNativeKeyStore = KeyTalkCommunicationManager.getNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl());\n if(isAddedToNativeKeyStore) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n showDialog(AppConstants.DIALOG_REINSTALL_CERTIFICATE);\n }\n }\n }",
"@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}",
"int getPaymentDetailsVersion();",
"public void validateRpd8s21()\n {\n // This guideline cannot be automatically tested.\n }",
"public void receiveResultgetVersion(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.GetVersionResponseE result\r\n ) {\r\n }",
"public boolean isFirstVersion();",
"@Test\n public void appVersionTest() {\n // TODO: test appVersion\n }",
"boolean hasClientHello();",
"private void checkOcspSignature(X509Certificate certificate, BasicOCSPResp basicResponse)\n throws OCSPException, IOException\n {\n try\n {\n ContentVerifierProvider verifier = new JcaContentVerifierProviderBuilder()\n .setProvider(SecurityProvider.getProvider()).build(certificate);\n\n if (!basicResponse.isSignatureValid(verifier))\n {\n throw new OCSPException(\"OCSP-Signature is not valid!\");\n }\n }\n catch (OperatorCreationException e)\n {\n throw new OCSPException(\"Error checking Ocsp-Signature\", e);\n }\n }",
"long getVersion();",
"long getVersion();",
"long getVersion();",
"long getVersion();",
"public static void verify() {\n\n\t\t\t\n\t\t\t\n\t\t\n\t}",
"@Test\n public void testSaltUpgrade() {\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.5\", \"2017.7.5\"));\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.5\", \"2017.7.7\"));\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.7\", \"2017.7.5\"));\n\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.7\", \"2017.8.0\"));\n assertFalse(underTest.permitSaltUpgrade(\"2017.7.7\", \"2019.7.0\"));\n\n // Allow upgrade between 3000.*, according to new Salt versioning scheme (since then, version numbers are in the format MAJOR.PATCH)\n assertTrue(underTest.permitSaltUpgrade(\"3000.2\", \"3000.2\"));\n assertTrue(underTest.permitSaltUpgrade(\"3000.2\", \"3000.3\"));\n assertFalse(underTest.permitSaltUpgrade(\"3000.2\", \"3001.3\"));\n assertFalse(underTest.permitSaltUpgrade(\"3000\", \"3001\"));\n\n // Do not allow if no Salt version\n assertFalse(underTest.permitSaltUpgrade(\"2017.7.7\", null));\n }",
"@Test\n public void apiVersionTest() {\n // TODO: test apiVersion\n }",
"@Test\n public void versionTest() {\n // TODO: test version\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkProtocol() {\n\t\tboolean flag = oTest.checkProtocol();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}",
"@Test\n\tpublic void getBroswerVersionTest() {\n\n\t\t// Arrange\n\t\t// Act\n\t\ttry {\n\t\t\tCDPClient.setDebug(true);\n\t\t\tCDPClient.sendMessage(MessageBuilder.buildBrowserVersionMessage(id));\n\t\t\tresponseMessage = CDPClient.getResponseMessage(id, null);\n\t\t\t// Assert\n\t\t\tresult = new JSONObject(responseMessage);\n\t\t\tfor (String field : Arrays.asList(new String[] { \"protocolVersion\",\n\t\t\t\t\t\"product\", \"revision\", \"userAgent\", \"jsVersion\" })) {\n\t\t\t\tassertThat(result.has(field), is(true));\n\t\t\t}\n\t\t\t// ServiceWorker serviceWorker = CDPClient.getServiceWorker(URL, 10,\n\t\t\t// \"activated\");\n\t\t\t// System.out.println(serviceWorker.toString());\n\t\t\t// Assert.assertEquals(serviceWorker.getStatus(), \"activated\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception (ignored): \" + e.toString());\n\t\t}\n\t}",
"@Override\n public int getVersion() {\n return 0;\n }",
"@Deprecated\n public boolean isRequestCorrect(){\n\treturn true;\n }",
"private boolean isBadVersion(int version) {\n return false;\n }"
] | [
"0.6089147",
"0.5959634",
"0.58327836",
"0.5808006",
"0.57920665",
"0.57412416",
"0.5652737",
"0.564097",
"0.564097",
"0.5588423",
"0.55808353",
"0.55679494",
"0.5555714",
"0.55392903",
"0.5536264",
"0.5531483",
"0.55010617",
"0.5486209",
"0.5454608",
"0.5408208",
"0.5401047",
"0.5399788",
"0.53974676",
"0.5385528",
"0.53804636",
"0.5366649",
"0.53636575",
"0.5359093",
"0.5348521",
"0.5348521",
"0.53238094",
"0.53192294",
"0.5308605",
"0.5306616",
"0.53018665",
"0.529361",
"0.528401",
"0.5280435",
"0.52717555",
"0.526806",
"0.5266644",
"0.5245343",
"0.5244367",
"0.52431905",
"0.52427864",
"0.5241822",
"0.5216502",
"0.52029747",
"0.519973",
"0.5194563",
"0.5181368",
"0.51740944",
"0.51740944",
"0.51734376",
"0.5170178",
"0.5152638",
"0.51519203",
"0.51483655",
"0.51427263",
"0.5135345",
"0.51317805",
"0.5131015",
"0.51287895",
"0.51211417",
"0.51160777",
"0.51067764",
"0.5105608",
"0.51026094",
"0.5088779",
"0.50810254",
"0.50724864",
"0.50713944",
"0.50713944",
"0.50712675",
"0.5070607",
"0.5064165",
"0.5062101",
"0.505968",
"0.5055742",
"0.50419986",
"0.5040542",
"0.5035265",
"0.5027078",
"0.5022632",
"0.50206524",
"0.5017173",
"0.50138104",
"0.50121284",
"0.50121284",
"0.50121284",
"0.50121284",
"0.5011656",
"0.5010073",
"0.50099915",
"0.5006587",
"0.49959865",
"0.4995873",
"0.49907336",
"0.4990693",
"0.49890435"
] | 0.5846697 | 2 |
Log.v("TIMING", "Bitmap generation started " + getTimeStamp()); final List results = detector.recognizeImage(croppedBitmap); Log.v("TIMING", "Bitmap generation Ended " + getTimeStamp()); | public void processImage() {
++timestamp;
final long currTimestamp = timestamp;
byte[] originalLuminance = getLuminance();
tracker.onFrame(
previewWidth,
previewHeight,
getLuminanceStride(),
sensorOrientation,
originalLuminance,
timestamp);
trackingOverlay.postInvalidate();
// No mutex needed as this method is not reentrant.
if (computingDetection) {
readyForNextImage();
return;
}
computingDetection = true;
LOGGER.i("Preparing image " + currTimestamp + " for detection in bg thread.");
rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);
if (luminanceCopy == null) {
luminanceCopy = new byte[originalLuminance.length];
}
System.arraycopy(originalLuminance, 0, luminanceCopy, 0, originalLuminance.length);
readyForNextImage();
final Canvas canvas = new Canvas(croppedBitmap);
canvas.drawBitmap(rgbFrameBitmap, frameToCropTransform, null);
// For examining the actual TF input.
if (SAVE_PREVIEW_BITMAP) {
ImageUtils.saveBitmap(croppedBitmap);
}
runInBackground(
new Runnable() {
@Override
public void run() {
LOGGER.i("Running detection on image " + currTimestamp);
final long startTime = SystemClock.uptimeMillis();
final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap);
lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;
cropCopyBitmap = Bitmap.createBitmap(croppedBitmap);
final Canvas canvas = new Canvas(cropCopyBitmap);
final Paint paint = new Paint();
paint.setColor(Color.RED);
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(2.0f);
float minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;
switch (MODE) {
case TF_OD_API:
minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;
break;
}
final List<Classifier.Recognition> mappedRecognitions =
new LinkedList<Classifier.Recognition>();
//boolean unknown = false, cervix = false, os = false;
for (final Classifier.Recognition result : results) {
final RectF location = result.getLocation();
if (location != null && result.getConfidence() >= minimumConfidence) {
//if (result.getTitle().equals("unknown") && !unknown) {
// unknown = true;
canvas.drawRect(location, paint);
cropToFrameTransform.mapRect(location);
result.setLocation(location);
mappedRecognitions.add(result);
/*} else if (result.getTitle().equals("Cervix") && !cervix) {
canvas.drawRect(location, paint);
cropToFrameTransform.mapRect(location);
result.setLocation(location);
mappedRecognitions.add(result);
cervix = true;
} else if (result.getTitle().equals("Os") && !os) {
canvas.drawRect(location, paint);
cropToFrameTransform.mapRect(location);
result.setLocation(location);
mappedRecognitions.add(result);
os = true;
}*/
}
}
tracker.trackResults(mappedRecognitions, luminanceCopy, currTimestamp);
trackingOverlay.postInvalidate();
computingDetection = false;
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }",
"public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }",
"private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void onImageProcessed() {\n /* creating random bitmap and then using in TextureView.getBitmap(bitmap) instead of simple TextureView.getBitmap() will not cause lags & memory leaks */\n if (captureBitmap == null) {\n captureBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888);\n }\n captureBitmap = Bitmap.createScaledBitmap(targetView.getBitmap(captureBitmap), captureW, captureH, false);\n\n if (captureProcessor != null) {\n if (isThreadingEnabled) {\n cameraThreadHandler.Queue(captureBitmap);\n }\n else {\n captureProcessor.process(captureBitmap, targetView, parentActivity);\n }\n /*\n else if (!skipNextFrame){\n long time = System.currentTimeMillis();\n captureProcessor.process(captureBitmap, targetView, parentActivity);\n time = System.currentTimeMillis() - time;\n if (time > 0.035)\n skipNextFrame = true;\n }\n else {\n skipNextFrame = false;\n }*/\n }\n }",
"private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }",
"@Override\r\n\t\tpublic void run() {\r\n\t\t\t/* face detector only needs grayscale image */\r\n\t\t\tgrayToRgb(graybuff_,rgbs_);\t\t\t\t\t\t\t\t\t\t// jni method\r\n//\t\t\tgray8toRGB32(graybuff_,previewWidth_,previewHeight_,rgbs);\t\t// java method\r\n\t\t\tfloat aspect = (float)previewHeight_/(float)previewWidth_;\r\n\t\t\tint w = prevSettingWidth_;\r\n\t\t\tint h = (int)(prevSettingWidth_*aspect);\r\n\t\t\tfloat xScale = (float)previewWidth_/(float)prevSettingWidth_;\r\n\t\t\tfloat yScale = (float)previewHeight_/(float)prevSettingHeight_;\r\n\t\t\tBitmap bmp = Bitmap.createScaledBitmap(\r\n\t\t\t\t\t\tBitmap.createBitmap(rgbs_,previewWidth_,previewHeight_,Bitmap.Config.RGB_565),\r\n\t\t\t\t\t\tw,h,false);\r\n//\t\t\tLog.i(TAG,\"downscale w=\"+bmp.getWidth()+\",h=\"+bmp.getHeight());\r\n\t\t\tint prevfound=0,trackfound=0;\r\n\t\t\tfor(int i=0; i<MAX_FACE; i++){\r\n\t\t\t\tFaceResult face = faces_[i];\r\n\t\t\t\tfloat eyedist = face.eyesDistance();\r\n\t\t\t\tif(eyedist==0.0f)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tPointF midEyes = new PointF(); \r\n\t\t\t\tface.getMidPoint(midEyes);\r\n\t\t\t\tprevfound++;\r\n\t\t\t\tPointF lt = new PointF(midEyes.x-eyedist*2.5f,midEyes.y-eyedist*2.5f);\r\n\t\t\t\tRect rect = new Rect((int)(lt.x),(int)(lt.y),(int)(lt.x+eyedist*5.0f),(int)(lt.y+eyedist*5.0f));\r\n\t\t\t\t/* fix to fit */\r\n\t\t\t\trect.left = rect.left < 0 ? 0 : rect.left;\r\n\t\t\t\trect.right = rect.right > w ? w : rect.right;\r\n\t\t\t\trect.top = rect.top < 0 ? 0 : rect.top;\r\n\t\t\t\trect.bottom = rect.bottom > h ? h : rect.bottom;\r\n\t\t\t\tif(rect.left >= rect.right || rect.top >= rect.bottom )\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t/* crop */\r\n\t\t\t\tBitmap facebmp = Bitmap.createBitmap(bmp,rect.left,rect.top,rect.width(),rect.height());\r\n\t\t\t\tFaceDetector.Face[] trackface = new FaceDetector.Face[1];\r\n\t\t\t\tFaceDetector tracker = new FaceDetector( facebmp.getWidth(),facebmp.getHeight(),1); \r\n\t\t\t\tint found = tracker.findFaces(facebmp, trackface);\r\n\t\t\t\tif(found!=0){\r\n\t\t\t\t\tPointF ptTrack = new PointF();\r\n\t\t\t\t\ttrackface[0].getMidPoint(ptTrack);\r\n\t\t\t\t\tptTrack.x += (float)rect.left;\r\n\t\t\t\t\tptTrack.y += (float)rect.top;\r\n\t\t\t\t\tptTrack.x *= xScale;\r\n\t\t\t\t\tptTrack.y *= yScale;\r\n\t\t\t\t\tfloat trkEyedist = trackface[0].eyesDistance()*xScale;\r\n\t\t\t\t\tfaces_[i].setFace(ptTrack,trkEyedist);\r\n\t\t\t\t\ttrackfound++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(prevfound==0||prevfound!=trackfound){\r\n\t\t\t\tFaceDetector.Face[] fullResults = new FaceDetector.Face[MAX_FACE];\r\n\t\t\t\tfdet_.findFaces(bmp, fullResults);\r\n\t\t\t\t/* copy result */\r\n\t\t\t\tfor(int i=0; i<MAX_FACE; i++){\r\n\t\t\t\t\tif(fullResults[i]==null)\r\n\t\t\t\t\t\tfaces_[i].clear();\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tPointF mid = new PointF();\r\n\t\t\t\t\t\tfullResults[i].getMidPoint(mid);\r\n\t\t\t\t\t\tmid.x *= xScale;\r\n\t\t\t\t\t\tmid.y *= yScale;\r\n\t\t\t\t\t\tfloat eyedist = fullResults[i].eyesDistance()*xScale;\r\n\t\t\t\t\t\tfaces_[i].setFace(mid,eyedist);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/* post message to UI */\r\n\t\t\thandler_.post(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\toverlayLayer_.postInvalidate();\r\n\t\t\t\t\t// turn off thread lock\r\n\t\t\t\t\tisThreadWorking_ = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }",
"public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }",
"private void startCropImage() {\n }",
"@SuppressLint(\"UnsafeExperimentalUsageError\")\n @Override\n public void analyze(@NonNull ImageProxy image_proxy) {\n ArrayList<Recognition> detections = _detector.DetectImage(image_proxy);\n\n // draw the bounding boxes\n _obj_tracker.ObjectTrackerDraw(detections);\n\n image_proxy.close();\n\n }",
"public void Croppedimage(CropImage.ActivityResult result, ImageView iv, EditText et )\n {\n Uri resultUri = null; // get image uri\n if (result != null) {\n resultUri = result.getUri();\n }\n\n\n //set image to image view\n iv.setImageURI(resultUri);\n\n\n //get drawable bitmap for text recognition\n BitmapDrawable bitmapDrawable = (BitmapDrawable) iv.getDrawable();\n\n Bitmap bitmap = bitmapDrawable.getBitmap();\n\n TextRecognizer recognizer = new TextRecognizer.Builder(getApplicationContext()).build();\n\n if(!recognizer.isOperational())\n {\n Toast.makeText(this, \"Error No Text To Recognize\", Toast.LENGTH_LONG).show();\n }\n else\n {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n SparseArray<TextBlock> items = recognizer.detect(frame);\n StringBuilder ab = new StringBuilder();\n\n //get text from ab until there is no text\n for(int i = 0 ; i < items.size(); i++)\n {\n TextBlock myItem = items.valueAt(i);\n ab.append(myItem.getValue());\n\n }\n\n //set text to edit text\n et.setText(ab.toString());\n }\n\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tif (cancel == true)\n\t\t\t\tupdateBarHandler.removeCallbacks(updateThread);\n\t\t\telse {\n\t\t\t\tnbm = Bitmap.createBitmap(bm);\n\t\t\t\t/* 人脸检测(人脸双眼间距必须在20pix以上) */\n\t\t\t\t// 检测器对象\n\t\t\t\tFaceDetector detector = new FaceDetector(nbm.getWidth(),\n\t\t\t\t\t\tnbm.getHeight(), 1);\n\t\t\t\t// 存放人脸信息\n\t\t\t\tFaceDetector.Face[] face = new FaceDetector.Face[1];\n\t\t\t\t// 人脸数目\n\t\t\t\tint Number = detector.findFaces(nbm, face);\n\t\t\t\tif (Number > 0) {\n\t\t\t\t\t// 双眼距离\n\t\t\t\t\tdist = face[0].eyesDistance();\n\t\t\t\t\t// 双眼中点\n\t\t\t\t\tface[0].getMidPoint(point);\n\t\t\t\t\t/* 归一化裁剪 */\n\t\t\t\t\tint x = (int) (point.x - dist);\n\t\t\t\t\tint y = (int) (point.y - dist);\n\t\t\t\t\tint width = (int) (point.x + dist) - x;\n\t\t\t\t\tif (width > nbm.getWidth() - x) {\n\t\t\t\t\t\twidth = nbm.getWidth() - x;\n\t\t\t\t\t}\n\t\t\t\t\tint height = (int) (point.y + dist * 1.5) - y;\n\t\t\t\t\tif (height > nbm.getHeight() - y) {\n\t\t\t\t\t\theight = nbm.getHeight() - y;\n\t\t\t\t\t}\n\t\t\t\t\tnbm = Bitmap.createBitmap(nbm, x, y, width, height);\n\n\t\t\t\t\t// 图像放大至相片尺寸\n\t\t\t\t\tMatrix mMatrix = new Matrix();\n\t\t\t\t\tfloat scalex = (float) myCamrActivity.ImageWidth / width;\n\t\t\t\t\tfloat scaley = (float) myCamrActivity.ImageHeight / height;\n\t\t\t\t\tmMatrix.postScale(scalex, scaley);\n\t\t\t\t\tnbm = Bitmap.createBitmap(nbm, 0, 0, nbm.getWidth(),\n\t\t\t\t\t\t\tnbm.getHeight(), mMatrix, false);\n\t\t\t\t\tbm = nbm;\n\n\t\t\t\t\t// 图片存入SD卡\n\t\t\t\t\tFile file = new File(\"./sdcard/mikepic.png\");\n\t\t\t\t\tBufferedOutputStream bos = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!file.exists())\n\t\t\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\t\tbos = new BufferedOutputStream(new FileOutputStream(\n\t\t\t\t\t\t\t\tfile));\n\t\t\t\t\t\tbm.compress(Bitmap.CompressFormat.PNG, 100, bos);\n\t\t\t\t\t\tbos.close();\n\t\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t// logout\n\t\t\t\t\tSystem.out.println(bm.getWidth() + \" \" + bm.getHeight());\n\n\t\t\t\t\t// 定位眼睛\n\t\t\t\t\tFeature.EyesLocate(leftEye, rightEye, dist, point, x, y,\n\t\t\t\t\t\t\tscalex, scaley);\n\t\t\t\t\t// 相关变量归一化变换\n\t\t\t\t\tpoint.x = (point.x - x) * scalex;\n\t\t\t\t\tpoint.y = (point.y - y) * scaley;\n\t\t\t\t\tdist = dist * scalex;\n\t\t\t\t} else {\n\t\t\t\t\t// 显示浮动窗口\n\t\t\t\t\tToast.makeText(MainActivity.this, R.string.error,\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tbar.setProgress(100 / N * 1);\n\t\t\t\t// myImageView.setImageBitmap(bm);\n\t\t\t\tupdateBarHandler.post(updateThread);\n\t\t\t}\n\t\t}",
"@Override\n public void onPreviewFrame(final byte[] data, Camera camera) {\n\n if (mPausing) {\n//\t\t\tmCardScanner.isRecognizing = false;\n return;\n }\n\n if (mCameraState != IDLE) {\n mCameraDevice.setOneShotPreviewCallback(CameraActivity.this);\n return;\n } else {\n//\t\t\tmCardScanner.isRecognizing = true;\n }\n // generate jpeg image.\n final int width = camera.getParameters().getPreviewSize().width;\n final int height = camera.getParameters().getPreviewSize().height;\n final int format = camera.getParameters().getPreviewFormat();\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n final int deviceWidth = size.x;\n final int deviceHeight = size.y;\n\n//\t\tif(safeToTakePicture) {\n//\t\t\tsafeToTakePicture = false;\n Thread recogThread = new Thread(new Runnable() {\n int ret;\n int faceret = 0; // detecting face return value\n Bitmap bmCard;\n\n //\n @Override\n public void run() {\n\n YuvImage temp = new YuvImage(data, format, width, height, null);\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n temp.compressToJpeg(new Rect(0, 0, temp.getWidth(), temp.getHeight()), 100, os);\n\n //getting original bitmap of scan result\n Bitmap bmp_org = BitmapFactory.decodeByteArray(os.toByteArray(), 0, os.toByteArray().length);\n Matrix matrix = new Matrix();\n matrix.postRotate(mDisplayOrientation);\n\n\n Bitmap bmp1 = Bitmap.createBitmap(bmp_org, 0, 0, bmp_org.getWidth(), bmp_org.getHeight(), matrix, true);\n\n //Crop image before scan , send crop image to OCR SDK\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n //Crop image as per Frame size in landscape mode\n bmCard = Bitmap.createScaledBitmap(bmp1, 757, 428, false);\n } else {\n //Crop image in center crop in portrait mode\n bmCard = BitmapUtil.centerCrop(bmp1, bmp1.getWidth(), bmp1.getHeight() / 3);\n }\n\n bmp_org.recycle();\n bmp1.recycle();\n\n /*//{{{debug\n if (RecogEngine.g_recogResult.recType == RecType.INIT)\n bmCard = BitmapFactory.decodeResource(getResources(), R.drawable.a);\n else if (RecogEngine.g_recogResult.recType == RecType.FACE)\n bmCard = BitmapFactory.decodeResource(getResources(), R.drawable.b);\n //}}}*/\n _mutex.lock();\n if (RecogEngine.g_recogResult.recType == RecType.INIT) {\n ret = mCardScanner.doRunData(bmCard, RecogEngine.facepick, mDisplayRotation, RecogEngine.g_recogResult);\n if (ret <= 0 && mRecCnt > 2) {\n // Bitmap docBmp = null;\n\n if (mRecCnt % 4 == 1)\n faceret = mCardScanner.doRunFaceDetect(bmCard, RecogEngine.g_recogResult);\n }\n mRecCnt++; //counter increases\n } else if (RecogEngine.g_recogResult.recType == RecType.FACE) { //have to do mrz\n ret = mCardScanner.doRunData(bmCard, RecogEngine.facepick, mDisplayRotation, RecogEngine.g_recogResult);\n } else if (RecogEngine.g_recogResult.recType == RecType.MRZ) { //have to do face\n if (mRecCnt > 2) {\n Bitmap docBmp = bmCard;\n\n if (mRecCnt % 5 == 1)\n ret = mCardScanner.doRunFaceDetect(docBmp, RecogEngine.g_recogResult);\n }\n mRecCnt++;\n }\n _mutex.unlock();\n\n CameraActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (ret > 0) {\n mRecCnt = 0; //counter sets 0\n Bitmap docBmp = bmCard;\n\n if ((RecogEngine.g_recogResult.recType == RecType.MRZ && !RecogEngine.g_recogResult.bRecDone) ||\n (RecogEngine.g_recogResult.recType == RecType.FACE && RecogEngine.g_recogResult.bRecDone)) {\n if (RecogEngine.g_recogResult.bFaceReplaced) {\n RecogEngine.g_recogResult.docFrontBitmap = docBmp.copy(Bitmap.Config.ARGB_8888, false);\n RecogEngine.g_recogResult.docBackBitmap = null;\n } else\n RecogEngine.g_recogResult.docBackBitmap = docBmp.copy(Bitmap.Config.ARGB_8888, false);\n }\n\n if (RecogEngine.g_recogResult.recType == RecType.BOTH ||\n RecogEngine.g_recogResult.recType == RecType.MRZ && RecogEngine.g_recogResult.bRecDone)\n RecogEngine.g_recogResult.docFrontBitmap = docBmp.copy(Bitmap.Config.ARGB_8888, false);\n\n docBmp.recycle();\n\n if (RecogEngine.g_recogResult.bRecDone) {\n showResultActivity();\n } else {\n mScanTitle.setText(\"Scan Front Side of Document\");\n flipImage();\n\n if (!mPausing && mCameraDevice != null) {\n mCameraDevice.setOneShotPreviewCallback(CameraActivity.this);\n }\n\n mHandler.sendMessageDelayed(\n mHandler.obtainMessage(TRIGER_RESTART_RECOG),\n TRIGER_RESTART_RECOG_DELAY);\n }\n } else {\n Log.d(TAG, \"failed to ocr card image\");\n if (mRecCnt > 3 && faceret > 0) //detected only face, so need to detect mrz\n {\n mRecCnt = 0; //counter sets 0\n faceret = 0;\n RecogEngine.g_recogResult.recType = RecType.FACE;\n\n mScanTitle.setText(\"Scan Back Side of Document\");\n flipImage();\n\n Bitmap docBmp = bmCard;\n /* if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n //Do some stuff\n docBmp = BitmapUtil.centerCrop(bmCard, bmCard.getWidth() / 3, bmCard.getHeight() / 2);\n // RecogEngine.g_recogResult.docBitmap = BitmapUtil.centerCrop(bmCard, rel_main.getWidth()/5, rel_main.getHeight()/3);\n } else {\n // RecogEngine.g_recogResult.docBitmap = BitmapUtil.centerCrop(bmCard, rel_main.getWidth()/2, rel_main.getHeight()/3);\n docBmp = BitmapUtil.centerCrop(bmCard, bmCard.getWidth(), bmCard.getHeight() / 3);\n }*/\n RecogEngine.g_recogResult.docFrontBitmap = docBmp.copy(Bitmap.Config.ARGB_8888, false);\n docBmp.recycle();\n }\n\n if (!mPausing && mCameraDevice != null) {\n mCameraDevice.setOneShotPreviewCallback(CameraActivity.this);\n }\n\n mHandler.sendMessageDelayed(\n mHandler.obtainMessage(TRIGER_RESTART_RECOG),\n TRIGER_RESTART_RECOG_DELAY);\n }\n }\n\n });\n }\n });\n recogThread.start();\n//\t\t}\n }",
"private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }",
"static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }",
"private void runTextRecognition(Bitmap bitmap) {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionTextDetector detector = FirebaseVision.getInstance().getVisionTextDetector();\n\n detector.detectInImage(image).addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n processTextRecognitionResult(texts);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n e.printStackTrace();\n }\n });\n }",
"@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }",
"@Override\r\n\t protected void onPostExecute(Bitmap outBitmap) {\r\n\t\t\tLog.d(\"asdf\", \"ONPOSTEXE\");\r\n\t\t\tRectF dest = new RectF(x, y, x + width, y + height);\r\n\t\t\timageWrapper imwrap = new imageWrapper(outBitmap, startState, dest);\r\n\t\t\tfinal HashMap<Integer, imageWrapper> map = mapRef.get();\r\n\t\t\tmap.put(resId, imwrap);\r\n\t }",
"@Override\n public void run() {\n imgFinger.setImageBitmap(bitmap);\n }",
"private void manuallyPushImageToImageReader(){\n mImageReader = VNCUtility.createImageReader(this);\n mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() {\n @Override\n public void onImageAvailable(ImageReader reader) {\n Log.d(TAG, \"NEW IMAGE AVAILABLE\");\n\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n\n\n Image image = reader.acquireLatestImage();\n VNCUtility.printReaderFormat(image.getFormat());\n Log.d(TAG, \"IMAGE FORMAT: \" + image.getFormat());\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * mWidth;\n int w = mWidth + rowPadding / pixelStride;\n Bitmap bmp = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.RGB_565);\n bmp.copyPixelsFromBuffer(buffer);\n mBmp = bmp;\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n //saveScreen(mBmp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n t.start();\n\n image.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n\n\n /*\n Image img = reader.acquireLatestImage();\n Image.Plane[] planes = img.getPlanes();\n int width = img.getWidth();\n int height = img.getHeight();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n ByteBuffer buffer = planes[0].getBuffer();\n byte[] data = new byte[buffer.capacity()];\n buffer.get(data);\n\n for(int i = 10000; i < 100; i++){\n Log.d(TAG, getColourForInt(data[i]));\n }\n\n int offset = 0;\n Bitmap bitmap = Bitmap.createBitmap(metrics, width, height, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int pixel = 0;\n pixel |= (buffer.get(offset) & 0xff) << 16; // R\n pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G\n pixel |= (buffer.get(offset + 2) & 0xff); // B\n pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A\n bitmap.setPixel(j, i, pixel);\n offset += pixelStride;\n }\n offset += rowPadding;\n }\n mBmp = bitmap;\n img.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n */\n }\n }, null);\n Surface surface = mImageReader.getSurface();\n if(surface == null){\n Log.d(TAG, \"SURFACE IS NULL\");\n }\n else{\n Log.d(TAG, \"SURFACE IS NOT NULL\");\n Canvas canvas = surface.lockCanvas(null);\n\n int[] ints = new int[mWidth * mHeight];\n for (int i = 0; i < mWidth * mHeight; i++) {\n ints[i] = Color.MAGENTA;//0x00FF0000;\n }\n\n //final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, ints.length);\n Bitmap bitmap = Bitmap.createBitmap(ints, mWidth, mHeight, Bitmap.Config.RGB_565);\n //canvas.drawARGB(255, 255, 0, 255);\n canvas.drawBitmap(bitmap,0,0,null);\n surface.unlockCanvasAndPost(canvas);\n }\n }",
"@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }",
"@Override\n public void onImage(CameraKitImage cameraKitImage) {\n mBitmap = cameraKitImage.getBitmap();\n mBitmap = Bitmap.createScaledBitmap(mBitmap, mCameraView.getWidth(), mCameraView.getHeight(), false);\n mCameraView.stop();\n if (mDevice)\n //Make text recognition on device\n runTextRecognition(mBitmap);\n else\n //Make text recognition on cloud\n runCloudTextRecognition(mBitmap);\n\n }",
"@Override\n public void onCropWindowChanged() {\n Bitmap cropped = imageView.getCroppedImage();\n BitmapHelper.getInstance().setBitmap(cropped);\n bitmap=cropped;\n\n }",
"@Override\n public void onCameraViewStarted(int width, int height){\n mRgba = new Mat(height, width, CvType.CV_8UC4);\n mGray = new Mat(height, width, CvType.CV_8UC1);\n mDrawingLayer = new Mat(height,width,CvType.CV_8UC4);\n mMixed = new Mat(height,width,CvType.CV_8UC4);\n mOutput = new Mat(width,height,CvType.CV_8UC4);\n mGaussianMask = new Mat();\n\n Mat horizontal = Imgproc.getGaussianKernel(width * 2, staticConfig.vignetteLevel,CvType.CV_32F);\n Mat vertical = Imgproc.getGaussianKernel(height * 2, staticConfig.vignetteLevel, CvType.CV_32F);\n Mat matrix = new Mat();\n Core.gemm(vertical,horizontal,1,new Mat(),0,matrix,Core.GEMM_2_T);\n Core.MinMaxLocResult mmr = Core.minMaxLoc(matrix);\n Core.divide(matrix,new Scalar(mmr.maxVal),mGaussianMask);\n\n /* initialising mats that are necessary for frame processing */\n mEdges = new Mat(height, width, CvType.CV_8UC1);\n mTemplateTargetPoints = new MatOfPoint2f(new Point(0, 0), new Point(0, staticConfig.templateSize),new Point(staticConfig.templateSize,staticConfig.templateSize),new Point(staticConfig.templateSize,0));\n mFrameBox = new MatOfPoint2f();\n /* mTemplateTargetPoints.fromArray(new Point(0, 0), new Point(0, staticConfig.templateSize),new Point(staticConfig.templateSize,staticConfig.templateSize),new Point(staticConfig.templateSize,0)); */\n\n /* loading template */\n /* the template is a 200 x 50 png image */\n /* containing the template in 4 different orientations */\n\n mTemplate = new Mat();\n InputStream stream = null;\n Uri uri = Uri.parse(\"android.resource://au.com.pandamakes.www.pureblacktea/drawable/templatelg7\");\n try{\n stream = getContentResolver().openInputStream(uri);\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }\n BitmapFactory.Options bmpFactoryOptions = new BitmapFactory.Options();\n bmpFactoryOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;\n Bitmap bmp = BitmapFactory.decodeStream(stream,null,bmpFactoryOptions);\n Utils.bitmapToMat(bmp, mTemplate);\n mTemplateGray = new Mat();\n Imgproc.cvtColor(mTemplate, mTemplateGray, Imgproc.COLOR_RGB2GRAY);\n\n /* setting up feature detectors */\n mDetector = FeatureDetector.create(FeatureDetector.ORB);\n mExtractor = DescriptorExtractor.create(DescriptorExtractor.ORB);\n mMatcher = DescriptorMatcher.create(DescriptorExtractor.ORB);\n\n /* detect key points */\n mKeyPoints = new MatOfKeyPoint();\n mDescriptor = new Mat();\n mDetector.detect(mTemplateGray, mKeyPoints);\n mExtractor.compute(mTemplateGray, mKeyPoints, mDescriptor);\n List<KeyPoint> listKeyPoint = mKeyPoints.toList();\n mArrayListTemplateKP = new ArrayList<>();\n for(int i = 0; i<listKeyPoint.size(); i++){\n mArrayListTemplateKP.add(listKeyPoint.get(i).pt);\n }\n mFrameKP = new MatOfPoint2f();\n mKpMat = new MatOfKeyPoint();\n\n /* setting up templates */\n Imgproc.resize(mTemplateGray, mTemplateGray, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n mTemplate90 = new Mat();\n Core.transpose(mTemplateGray, mTemplate90);\n Core.flip(mTemplate90, mTemplate90, 0);\n\n mTemplate180 = new Mat();\n Core.flip(mTemplateGray,mTemplate180,-1);\n\n mTemplate270 = new Mat();\n Core.flip(mTemplate90,mTemplate270,-1);\n\n /* options associated with rendering */\n mCameraCaliberation = new Mat(3,3,CvType.CV_32F);\n float data[] = {3284,0,(float) width/2,0,3284,(float) height/2,0,0,1};\n mCameraCaliberation.put(0,0,data);\n mRefCoord = new MatOfPoint3f();\n mRefBox = new MatOfPoint3f(new Point3(-50,-50,0),new Point3(-50,50,0),new Point3(50,50,0),new Point3(50,-50,0));\n mRVec = new Mat();\n mTVec = new Mat();\n mCaptureAreaAdjusted = new MatOfPoint2f();\n\n /* helper class */\n mXAxis = new visualisation();\n mXAxis.start = new Point3(0,0,0);\n mXAxis.end = new Point3(30,0,0);\n mXAxis.width = 3;\n mXAxis.color = new Scalar(155,55,55);\n\n mYAxis = new visualisation();\n mYAxis.start = new Point3(0,0,0);\n mYAxis.end = new Point3(0,30,0);\n mYAxis.width = 3;\n mYAxis.color = new Scalar(55,155,55);\n\n mZAxis = new visualisation();\n mZAxis.start = new Point3(0,0,0);\n mZAxis.end = new Point3(0,0,-30);\n mZAxis.width = 3;\n mZAxis.color = new Scalar(55,55,155);\n\n /* other misc settings */\n mScanCenter = new Point(width/2,height/2);\n mBoxCenter = new Point(width/2,height/2);\n mScanWidth = staticConfig.scanWidth;\n mRectBorder = new Scalar(200,200,50);\n mLostTrackCounter = 0;\n\n mMostRight = width;\n mMostBottom = height;\n\n adjustROI(mScanCenter,mDetectionBoxSize);\n\n /* init visualisation parameters */\n if(staticConfig.showMolecule){\n mMolecule = new ArrayList<>();\n Boolean flag1 = false,\n flag2 = false;\n File molFile = new File(getFilesDir()+\"/mol.mol\");\n try{\n BufferedReader reader = new BufferedReader(new FileReader(molFile));\n String line;\n while((line=reader.readLine())!=null){\n if(line.contains(\"END\")){\n break;\n }else if(flag2){\n\n }else if(flag1){\n if(line.replace(\" \",\"\").contains(\"000000000000\")) {\n visualisation newAtom = new visualisation();\n try{\n newAtom.initAtom(line);\n }catch (NumberFormatException e){\n /* if a double parsing error occurred */\n mMolecule = new ArrayList<>();\n boolean deleted = molFile.delete();\n if(deleted){\n Toast.makeText(getApplicationContext(),\"Coordinates NaN. For the healthiness of the app, the mol file was deleted.\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Coordinates NaN. The file was not able to be deleted somehow.\",Toast.LENGTH_LONG).show();\n }\n break;\n }\n mMolecule.add(newAtom);\n }else{\n flag2 = true;\n }\n }else if(line.contains(\"V2000\")){\n flag1 = true;\n }\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}",
"public void getCroppedBitmap(final OnResultListener onResultListener) {\n setProgressBarVisibility(VISIBLE);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n try {\n ContentResolver resolver = getContext().getContentResolver();\n InputStream inputStream = resolver.openInputStream(imageUri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n\n //rotate image\n Matrix matrix = new Matrix();\n matrix.postRotate(getOrientation() + getRotation());\n\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);\n byte[] bitmapData = outputStream.toByteArray();\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bitmapData);\n\n BitmapRegionDecoder decoder = BitmapRegionDecoder.\n newInstance(byteArrayInputStream, false);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 1;\n options.inJustDecodeBounds = false;\n\n Bitmap croppedBitmap = decoder.decodeRegion(cropRect, options);\n decoder.recycle();\n\n final Result result = new Result(imageUri, croppedBitmap);\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(result);\n setProgressBarVisibility(GONE);\n }\n });\n } catch (Exception | OutOfMemoryError e) {\n e.printStackTrace();\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(new Result(getImageUri(), null));\n setProgressBarVisibility(GONE);\n }\n });\n }\n }\n });\n }",
"private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }",
"private void takePhotoPartial() {\n if (MyDebug.LOG)\n Log.d(TAG, \"takePhotoPartial\");\n\n ErrorCallback push_take_picture_error_cb = null;\n\n synchronized (background_camera_lock) {\n if (slow_burst_capture_requests != null) {\n if (MyDebug.LOG) {\n Log.d(TAG, \"need to execute the next capture\");\n Log.d(TAG, \"time since start: \" + (System.currentTimeMillis() - slow_burst_start_ms));\n }\n if (burst_type != BurstType.BURSTTYPE_FOCUS) {\n try {\n if (camera != null && captureSession != null) { // make sure camera wasn't released in the meantime\n captureSession.capture(slow_burst_capture_requests.get(n_burst_taken), previewCaptureCallback, handler);\n }\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to take next burst\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n jpeg_todo = false;\n raw_todo = false;\n picture_cb = null;\n push_take_picture_error_cb = take_picture_error_cb;\n }\n } else if (previewBuilder != null) { // make sure camera wasn't released in the meantime\n if (MyDebug.LOG)\n Log.d(TAG, \"focus bracketing\");\n\n if (!focus_bracketing_in_progress) {\n if (MyDebug.LOG)\n Log.d(TAG, \"focus bracketing was cancelled\");\n // ideally we'd stop altogether, but instead we take one last shot, so that we can mark it with the\n // RequestTagType.CAPTURE tag, so onCaptureCompleted() is called knowing it's for the last image\n if (MyDebug.LOG) {\n Log.d(TAG, \"slow_burst_capture_requests size was: \" + slow_burst_capture_requests.size());\n Log.d(TAG, \"n_burst size was: \" + n_burst);\n Log.d(TAG, \"n_burst_taken: \" + n_burst_taken);\n }\n slow_burst_capture_requests.subList(n_burst_taken + 1, slow_burst_capture_requests.size()).clear(); // resize to n_burst_taken\n // if burst_single_request==true, n_burst is constant and we stop when pending_burst_images.size() >= n_burst\n // if burst_single_request==false, n_burst counts down and we stop when n_burst==0\n if (burst_single_request) {\n n_burst = slow_burst_capture_requests.size();\n if (n_burst_raw > 0) {\n n_burst_raw = slow_burst_capture_requests.size();\n }\n } else {\n n_burst = 1;\n if (n_burst_raw > 0) {\n n_burst_raw = 1;\n }\n }\n if (MyDebug.LOG) {\n Log.d(TAG, \"size is now: \" + slow_burst_capture_requests.size());\n Log.d(TAG, \"n_burst is now: \" + n_burst);\n Log.d(TAG, \"n_burst_raw is now: \" + n_burst_raw);\n }\n RequestTagObject requestTag = (RequestTagObject) slow_burst_capture_requests.get(slow_burst_capture_requests.size() - 1).getTag();\n requestTag.setType(RequestTagType.CAPTURE);\n }\n\n // code for focus bracketing\n try {\n float focus_distance = slow_burst_capture_requests.get(n_burst_taken).get(CaptureRequest.LENS_FOCUS_DISTANCE);\n if (MyDebug.LOG) {\n Log.d(TAG, \"prepare preview for next focus_distance: \" + focus_distance);\n }\n previewBuilder.set(CaptureRequest.CONTROL_AF_MODE, CameraMetadata.CONTROL_AF_MODE_OFF);\n previewBuilder.set(CaptureRequest.LENS_FOCUS_DISTANCE, focus_distance);\n\n setRepeatingRequest(previewBuilder.build());\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to take set focus distance for next focus bracketing burst\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n jpeg_todo = false;\n raw_todo = false;\n picture_cb = null;\n push_take_picture_error_cb = take_picture_error_cb;\n }\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n if (MyDebug.LOG)\n Log.d(TAG, \"take picture after delay for next focus bracket\");\n if (camera != null && captureSession != null) { // make sure camera wasn't released in the meantime\n if (picture_cb.imageQueueWouldBlock(imageReaderRaw != null ? 1 : 0, 1)) {\n if (MyDebug.LOG) {\n Log.d(TAG, \"...but wait for next focus bracket, as image queue would block\");\n }\n handler.postDelayed(this, 100);\n //throw new RuntimeException(); // test\n } else {\n // For focus bracketing mode, we play the shutter sound per shot (so the user can tell when the sequence is complete).\n // From a user mode, the gap between shots in focus bracketing mode makes this more analogous to the auto-repeat mode\n // (at the Preview level), which makes the shutter sound per shot.\n\n playSound(MediaActionSound.SHUTTER_CLICK);\n try {\n captureSession.capture(slow_burst_capture_requests.get(n_burst_taken), previewCaptureCallback, handler);\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to take next focus bracket\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n jpeg_todo = false;\n raw_todo = false;\n picture_cb = null;\n if (take_picture_error_cb != null) {\n take_picture_error_cb.onError();\n take_picture_error_cb = null;\n }\n }\n }\n }\n }\n }, 500);\n }\n }\n }\n\n // need to call callbacks without a lock\n if (push_take_picture_error_cb != null) {\n push_take_picture_error_cb.onError();\n }\n }",
"private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n setAllButtonsEnabledStatus(false);\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }",
"public void cropMoleculeRecognition(){\n mOpenCameraView.disableView();\n\n Mat transformMat = Imgproc.getPerspectiveTransform(mCaptureAreaAdjusted,new MatOfPoint2f(new Point(0,0),new Point(0,400),new Point(400,400), new Point(400,0)));\n Mat croppedImage = new Mat();\n Imgproc.warpPerspective(mGray, croppedImage, transformMat, new Size(400, 400));\n\n /* cleanup the AR marker */\n int cropout = 240;\n\n croppedImage.submat(0,cropout,0,cropout).setTo(new Scalar(0));\n Core.MinMaxLocResult mmr;\n\n for(int i = 0; i<cropout; i++){\n mmr = Core.minMaxLoc(croppedImage.row(i).colRange(cropout,400));\n Core.add(croppedImage.row(i).colRange(0,cropout),new Scalar(mmr.maxVal/2),croppedImage.row(i).colRange(0,cropout));\n\n mmr = Core.minMaxLoc(croppedImage.col(i).rowRange(cropout, 400));\n Core.add(croppedImage.col(i).rowRange(0, cropout),new Scalar(mmr.maxVal/2),croppedImage.col(i).rowRange(0, cropout));\n }\n\n /*for now, just save the cropedImage*/\n /* in the live version, will need to sort out the ar marker on the top left */\n Imgcodecs.imwrite(getFilesDir().toString().concat(\"/croppedImg.png\"),croppedImage);\n Intent intent = new Intent(this,viewCapture.class);\n intent.putExtra(\"flagCaptureImage\",true);\n startActivity(intent);\n }",
"private void callCloudVision(final Bitmap bitmap, final Feature feature) {\n final ArrayList<Feature> featureList = new ArrayList<>();\n featureList.add(feature);\n\n final ArrayList<AnnotateImageRequest> annotateImageRequests = new ArrayList<>();\n\n AnnotateImageRequest annotateImageReq = new AnnotateImageRequest();\n annotateImageReq.setFeatures(featureList);\n annotateImageReq.setImage(bitmap2JPEG(bitmap));\n annotateImageRequests.add(annotateImageReq);\n\n\n new AsyncTask<Object, Void, String>() {\n @Override\n protected String doInBackground(Object... params) {\n runOnUiThread(new Runnable() {\n public void run() {\n dialog = new ProgressDialog(MainActivity.this);\n dialog.setMessage(\"Processing Data...\");\n dialog.show();\n }\n });\n\n try {\n\n\n HttpTransport http = AndroidHttp.newCompatibleTransport();\n JsonFactory json = GsonFactory.getDefaultInstance();\n\n VisionRequestInitializer request = new VisionRequestInitializer(VISION_API_KEY);\n\n Vision.Builder build = new Vision.Builder(http, json, null);\n build.setVisionRequestInitializer(request);\n\n Vision vision = build.build();\n\n BatchAnnotateImagesRequest batchRequest = new BatchAnnotateImagesRequest();\n batchRequest.setRequests(annotateImageRequests);\n\n Vision.Images.Annotate annotateRequest = vision.images().annotate(batchRequest);\n annotateRequest.setDisableGZipContent(true);\n BatchAnnotateImagesResponse response = annotateRequest.execute();\n return convertResponseToString(response);\n } catch (GoogleJsonResponseException e) {\n Toast.makeText(getApplicationContext(), \"failed to reach API: \" + e.getContent(), Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n Toast.makeText(getApplicationContext(), \"failed to reach API: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n return \"Google Vision API request failed. Check logs for details.\";\n }\n\n protected void onPostExecute(String result) {\n\n dialog.dismiss();\n myDia = new Dialog(MainActivity.this);\n\n\n myDia.setContentView(R.layout.returnpopup);\n Button close = myDia.findViewById(R.id.close);\n Button help = myDia.findViewById(R.id.help);\n TextView text = myDia.findViewById(R.id.dataviewr);\n\n text.setText(result);\n\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n myDia.dismiss();\n\n }\n });\n help.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AlertDialog alert = null;\n final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"Help\")\n .setMessage(\"This application is a demo of the Google Vision API for Android. \\n\\nThe default API in the app is \\\"LABEL_DETECTION\\\", which tries to detect objects in the image. You can change this in the app inside the API string. \\n\\nThe source code of this application is available on Github @darshanbhatta. \\n\\nIf you have any questions email me @ bhatta.darshan26@gmail.com.\");\n\n\n final AlertDialog finalAlert = alert;\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (finalAlert != null)\n finalAlert.dismiss();\n }\n });\n alert = builder.create();\n\n\n alert.show();\n\n\n }\n });\n\n\n myDia.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n myDia.show();\n }\n\n\n }.execute();\n }",
"public Bitmap buildResultBitmap() {\n if(mTempBitmap!=null) return mTempBitmap;\n Bitmap bitmap ;\n if(mRotateAngle!=0) bitmap = Util.rotateBitmap(mDocumentBitmap,mRotateAngle);\n else bitmap = Bitmap.createBitmap(mDocumentBitmap);\n\n switch (mFilter) {\n case FILTER_MAGIC:\n bitmap = ScanUtils.getMagicColorBitmap(bitmap);\n break;\n case FILTER_GRAY_SCALE:\n bitmap = ScanUtils.getGrayBitmap(bitmap);\n break;\n case FILTER_BnW:\n bitmap = ScanUtils.getBWBitmap(bitmap);\n break;\n }\n\n return bitmap;\n }",
"@Override\n protected void onImageLaidOut() {\n super.onImageLaidOut();\n final Drawable drawable = getDrawable();\n if (drawable == null) {\n return;\n }\n\n float drawableWidth = drawable.getIntrinsicWidth();\n float drawableHeight = drawable.getIntrinsicHeight();\n\n if (mTargetAspectRatio == SOURCE_IMAGE_ASPECT_RATIO) {\n mTargetAspectRatio = drawableWidth / drawableHeight;\n }\n\n int height = (int) (mThisWidth / mTargetAspectRatio);\n if (height > mThisHeight) {\n int width = (int) (mThisHeight * mTargetAspectRatio);\n int halfDiff = (mThisWidth - width) / 2;\n mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight);\n } else {\n int halfDiff = (mThisHeight - height) / 2;\n mCropRect.set(0, halfDiff, mThisWidth, height + halfDiff);\n }\n\n calculateImageScaleBounds(drawableWidth, drawableHeight);\n setupInitialImagePosition(drawableWidth, drawableHeight);\n\n if (mCropBoundsChangeListener != null) {\n mCropBoundsChangeListener.onCropAspectRatioChanged(mTargetAspectRatio);\n }\n if (mTransformImageListener != null) {\n// mTransformImageListener.onScale(getCurrentScale());\n// mTransformImageListener.onRotate(getCurrentAngle());\n mTransformImageListener.onBrightness(getCurrentBrightness());\n// mTransformImageListener.onContrast(getCurrentContrast());\n }\n }",
"public String detectObject(Bitmap bitmap) {\n results = classifierObject.recognizeImage(bitmap);\n\n // Toast.makeText(context, results.toString(), Toast.LENGTH_LONG).show();\n return String.valueOf(results.toString());\n }",
"public void doAutoDetect()\r\n {\r\n Graphics g = this.getGraphics(); \r\n // Create the off-screen drawing area\r\n offscreenImage = createImage(getWidth(), getHeight());\r\n offscreenGraphics = offscreenImage.getGraphics();\r\n long start;\r\n long end;\r\n\r\n // Tally the number of times we were able to draw direct and buffered\r\n int directCount = 0;\r\n int bufferedCount = 0;\r\n\r\n g.setColor(getBackground());\r\n // Mark what time we started\r\n start = System.currentTimeMillis();\r\n end = start;\r\n\r\n // Paint patterns directly to the screen, but only for 500 milliseconds\r\n while ((end-start) < 500) {\r\n paintDetectionDesign(g);\r\n end = System.currentTimeMillis();\r\n directCount++;\r\n }\r\n g.setColor(getForeground());\r\n\r\n // record the total time spent drawing directly\r\n long directTime = end - start;\r\n\r\n start = System.currentTimeMillis();\r\n end = start;\r\n\r\n // Paint patterns to the offscreen graphics, but only for 500 milliseconds\r\n while ((end-start) < 500) {\r\n paintDetectionDesign(offscreenGraphics);\r\n end = System.currentTimeMillis();\r\n bufferedCount++;\r\n }\r\n\r\n long bufferedTime = end - start;\r\n\r\n // If we were able to draw more times using the buffered graphics,\r\n // or if the drawing counts are the same, but the total time for\r\n // the buffering was less, buffering is faster.\r\n if ((bufferedCount > directCount) ||\r\n ((bufferedCount == directCount) &&\r\n (bufferedTime < directTime))) {\r\n drawDirect = false;\r\n } else {\r\n // If we want to draw direct, free the space taken up by the\r\n // offscreen image and graphics context.\r\n offscreenImage.flush();\r\n offscreenImage = null;\r\n offscreenGraphics = null;\r\n drawDirect = true;\r\n }\r\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == getActivity().RESULT_OK && data != null && data.getData() != null) {\n\n Uri uri = data.getData();\n\n try {\n ByteArrayOutputStream boas = new ByteArrayOutputStream();\n\n\n Bitmap btmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), uri);\n\n btmap.compress(Bitmap.CompressFormat.JPEG, 70, boas); //bm is the bitmap object\n byte[] byteArrayImage = boas.toByteArray();\n\n\n BitmapFactory.Options opt;\n\n opt = new BitmapFactory.Options();\n opt.inTempStorage = new byte[16 * 1024];\n opt.inSampleSize = 2;\n Bitmap bitmap = BitmapFactory.decodeByteArray(byteArrayImage, 0, byteArrayImage.length, opt);\n\n ImageView imageView = (ImageView) getActivity().findViewById(R.id.profile_back);\n CircleImageView dp = (CircleImageView) getActivity().findViewById(R.id.dp1);\n dp.setImageBitmap(bitmap);\n Bitmap bitmap1=grayscale(bitmap);\n Bitmap blurred = blurRenderScript(bitmap1, 25);\n imageView.setImageBitmap(blurred);\n } catch (OutOfMemoryError a) {\n Toast.makeText(getActivity().getApplicationContext(), \"Image size high\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private void handleCrop(int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Uri uri = Crop.getOutput(data);\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n mImageCaptureUri = uri;\n mImageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n Log.d(TAG, e.getMessage());\n }\n\n } else if (resultCode == Crop.RESULT_ERROR) {\n Toast.makeText(this, Crop.getError(data).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if ((requestCode == GALLERY_INTENT || requestCode == CAMERA_INTENT) && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(context, data);\n Log.d(getLocalClassName() + \"pick image\", imageUri.toString());\n\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n ((ImageView) findViewById(R.id.imageview_myactivity)).setImageURI(result.getUri());\n\n Log.d(\"CropResultUri\", result.getUri().toString());\n\n MyBmpInfo bmpinfo = getThumbnail(result.getUri());\n Bitmap b = bmpinfo.result;\n if (bmpinfo.warnUser) {\n textInfoImage.setText(\"Warning: \" + bmpinfo.warning + \" ( \" + b.getWidth() + \" x \" + b.getHeight() + \" ) \");\n textInfoImage.setTextColor(Color.parseColor(\"#FFFF0000\"));\n } else textInfoImage.setText(\"\");\n\n Toast.makeText(this, \"Cropping successful\", Toast.LENGTH_LONG).show();\n\n b = watermark(b);\n // Save image as .jpg file in phone public \"Picture\" directory\n selectedImageFilePath = saveFile(b);\n selectedImageFilePath = new String[]{selectedImageFilePath[0], selectedImageFilePath[1], result.getUri().toString()};\n Toast.makeText(this, \"Saved successfully\", Toast.LENGTH_LONG).show();\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Toast.makeText(this, \"Cropping failed: \" + result.getError(), Toast.LENGTH_LONG).show();\n }\n }\n }",
"void mo12205a(Bitmap bitmap);",
"public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == CAMERA_REQUEST_CODE && resultCode == RESULT_OK) {\n bitmap = (Bitmap) data.getExtras().get(\"data\");\n imageView.setImageBitmap(bitmap);\n callCloudVision(bitmap, feature);\n }\n }",
"public static native int nativeRecoBitmap(Bitmap bitmap, int lft, int rgt, int top, int btm, byte[]bresult, int maxsize);",
"public void onCameraViewStarted(int width, int height) {\n //https://docs.opencv.org/2.4/modules/core/doc/basic_structures.html\n mRgba = new Mat(height, width, CvType.CV_8UC4);\n\n String pathCascadeNoseFile=initAssetFile(fileName);\n File file =new File(pathCascadeNoseFile);\n if(file.exists()) {\n System.out.println(\"File Exist\");\n cascadeClassifier = new CascadeClassifier(pathCascadeNoseFile);\n }else{\n System.out.println(\"File Don't Exist\");\n }\n\n //I have problem with memory use, create this ones outside the OnCamera frame function\n //But still having some problem with memory use\n //https://answers.opencv.org/question/61516/android-app-force-closed-by-memory-leak/\n matOfRect= new MatOfRect();\n gray= new Mat();\n result = new Mat();\n }",
"public CaptureImage()\r\n\t{\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\tcapturedFrame = new Mat();\r\n\t\tprocessedFrame = new Mat();\r\n\t\tboard = new byte[32];\r\n\t\tfor (int i=0;i<board.length;i++){\r\n\t\t\tboard[i] = 0;\r\n\t\t}\r\n\t\tcaptured = new byte[12];\r\n\t}",
"public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }",
"public void savePicture() {\n\t\tLog.d(TAG, \"savePicture\");\n\t\t\n\t\tFile cropFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getPath() + \"/Lente/crop.jpg\");\n\t\tmCropView.setDrawingCacheEnabled(true);\n\t\tBitmap bm = Bitmap.createBitmap(mCropView.getDrawingCache());\n\t\tmCropView.setDrawingCacheEnabled(false);\n\t\t\n\t\ttry {\n\t\t FileOutputStream outputStream = new FileOutputStream(cropFile);\n\t\t Log.d(TAG, \"Compressing and saving...\");\n\t\t bm.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n\t\t outputStream.flush();\n\t\t outputStream.close();\n\t\t \n\t\t MediaScannerConnection.scanFile(getBaseContext(),\n\t new String[] { cropFile.toString() }, null,\n\t new MediaScannerConnection.OnScanCompletedListener() {\n\t public void onScanCompleted(String path, Uri uri) {\n\t Log.i(\"ExternalStorage\", \"Scanned \" + path + \":\");\n\t Log.i(\"ExternalStorage\", \"-> uri=\" + uri);\n\t //passUri(uri); //Pass the URI once obtained and move onto OCRopus\n\t }\n\t\t\t});\n\t }\n\t\t\n\t\tcatch (IOException e) {\n\t\t\tToast.makeText(ImageTextSelect.this, \"Failed to save selected image area.\", 2000).show();\n\t\t\tLog.e(TAG, \"IO Exception\");\n\t\t}\n\t}",
"@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}",
"private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}",
"private void callCloudVision(final Bitmap bitmap) {\n try {\n AsyncTask<Object, Void, String> labelDetectionTask = new LableDetectionTask(this, prepareAnnotationRequest(bitmap));\n labelDetectionTask.execute();\n } catch (IOException e) {\n Log.d(TAG, \"failed to make API request because of other IOException \" +\n e.getMessage());\n }\n }",
"public interface ImageSegmentationResultListner {\n void getSegmentationImage(Bitmap bitmap);\n}",
"private void callCloudVision(final Bitmap bitmap) {\n try {\n AsyncTask<Object, Void, String> labelDetectionTask = new LabelDetectionTask(this, prepareAnnotationRequest(bitmap));\n labelDetectionTask.execute();\n } catch (IOException e) {\n Log.d(TAG, \"failed to make API request because of other IOException \" +\n e.getMessage());\n }\n }",
"public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}",
"public Bitmap startCapture() {\n if (mMediaProjection == null) {\n return null;\n }\n Image image = mImageReader.acquireLatestImage();\n int width = image.getWidth();\n int height = image.getHeight();\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n Bitmap bitmap = Bitmap.createBitmap(width + rowPadding / pixelStride, height, Bitmap.Config.ARGB_8888);\n bitmap.copyPixelsFromBuffer(buffer);\n bitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height ); //按范围截取图片\n image.close();\n Log.i(TAG, \"image data captured\");\n\n //Write local\n// final Bitmap finalBitmap = bitmap;\n// new Thread(){\n// @Override\n// public void run() {\n// super.run();\n// if( finalBitmap != null) {\n// try{\n// File fileImage = new File(getLocalPath());\n// if(!fileImage.exists()){\n// fileImage.createNewFile();\n// Log.i(TAG, \"image file created\");\n// }\n// FileOutputStream out = new FileOutputStream(fileImage);\n// if(out != null){\n// finalBitmap.compress(Bitmap.CompressFormat.PNG, 100, out);\n// out.flush();\n// out.close();\n// //发送广播刷新图库\n// Intent media = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n// Uri contentUri = Uri.fromFile(fileImage);\n// media.setData(contentUri);\n// mContext.sendBroadcast(media);\n// Log.i(TAG, \"screen image saved\");\n// }\n// }catch(Exception e) {\n// e.printStackTrace();\n// }\n// }\n// }\n// }.start();\n return bitmap;\n }",
"private void handleCrop(int resultCode, Intent result) {\n if (resultCode == RESULT_OK) {\n try {\n Uri uri = Crop.getOutput(result);\n yourSelectedImage = MediaStore.Images.Media.getBitmap(this.getContentResolver(), Crop.getOutput(result));\n ivUserImage.setImageBitmap(yourSelectedImage);\n Uri tempUri = Util.getInstance().getImageUri(SignUp.this, yourSelectedImage);\n // createImageFromBitmap(yourSelectedImage);\n // tempFilePath = FileUtil.getPath(this,tempUri);\n tempFilePath = FileUtil.getPath(SignUp.this, tempUri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (resultCode == Crop.RESULT_ERROR) {\n // Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"public static native Bitmap nativeRecoStillImage(Bitmap bitmap, int tryhard, int bwantimg, byte[]bresult, int maxsize, int []rets);",
"private void prepareBlurredBitmap() {\n Bitmap bitmap;\n Bitmap bitmap2;\n Bitmap bitmap3;\n Canvas canvas;\n Bitmap bitmap4;\n Bitmap bitmap5;\n if (this.mIsSkipDrawFrame) {\n invalidateTargetViewsInSubThread();\n return;\n }\n Canvas canvas2 = this.mBalanceCanvas;\n if (!(canvas2 == null || (bitmap5 = this.mBitmapForBlur) == null)) {\n canvas2.drawBitmap(bitmap5, 0.0f, 0.0f, (Paint) null);\n }\n for (Map.Entry<View, HwBlurEntity> entityEntry : this.mTargetViews.entrySet()) {\n HwBlurEntity blurEntity = entityEntry.getValue();\n if (entityEntry.getKey().isShown() && blurEntity.isEnabled() && (canvas = this.mBalanceCanvas) != null && (bitmap4 = this.mBitmapForBlur) != null) {\n blurEntity.drawBitmapForBlur(canvas, bitmap4, this.mBlurUnionRect, 15);\n }\n }\n if (!(this.mIsBitmapCopying || (bitmap = this.mBalanceBitmap) == null || (bitmap2 = this.mBlurredBitmap) == null)) {\n int result = this.mAlgorithm.blur(bitmap, bitmap2, 8);\n if (result != 0 && DEBUG) {\n String str = TAG;\n Log.w(str, \" mAlgorithm.blur occurred some error, error code= \" + result);\n }\n Bitmap bitmap6 = this.mBlurredBitmap;\n if (!(bitmap6 == null || (bitmap3 = this.mBitmapForDraw) == null || !bitmap6.sameAs(bitmap3))) {\n return;\n }\n }\n if (this.mIsDecorViewChanged) {\n this.mIsDecorViewChanged = false;\n }\n invalidateTargetViewsInSubThread();\n }",
"public Bitmap getFinalShapesImage();",
"private void performOCR(){\n }",
"@Override\n\tpublic void requestImageReceived(CatchoomImage image)\n\t{\n\t\t\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t\n\t\tBitmap bitmap = image.toBitmap();\n\t\t\n\t\tBitmap bitmapone = getBitmapFromAsset(\"accendo_logo.png\");\n\t\t\n\t\t/*if (bitmap.getWidth() == bitmapone.getWidth() && bitmap.getHeight() == bitmapone.getHeight())\n\t\t{*/\n\t int[] pixels1 = new int[bitmap.getWidth() * bitmap.getHeight()];\n\t int[] pixels2 = new int[bitmapone.getWidth() * bitmapone.getHeight()];\n\t bitmap.getPixels(pixels1, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\t bitmapone.getPixels(pixels2, 0, bitmapone.getWidth(), 0, 0, bitmapone.getWidth(), bitmapone.getHeight());\n\t if (!Arrays.equals(pixels1, pixels2)) \n\t {\n\t resultUrl=\"http://www.accendotechnologies.com/\";\n\t startActivity(new Intent(RecognitionOnlyActivity.this, VideoActivity.class));\n\t }\n\t else \n\t {\n\t \tresultUrl=\"\";\n\t }\n//\t } else\n//\t {\n//\t \tresultUrl=\"\";\n//\t }\n//\t\t\n\t\t\n\t\n\t\t\n//\t\tString imageName = image.toString();\n//\t\tString[] splitName = imageName.split(\"@\", imageName.length());\n//\t\tToast.makeText(getApplicationContext(), \"Image Name is \"+splitName[1], Toast.LENGTH_LONG).show();\n//\t\tf = new File(Environment.getExternalStorageDirectory()+\"/\"+splitName[1]+\".jpg\");\n//\t\ttry\n//\t\t{\n//\t\t\tFileOutputStream fout = new FileOutputStream(f);\n//\t\t\tbitmap.compress(Bitmap.CompressFormat.JPEG, 100, fout); \n//\t\t\tfout.flush();\n//\t\t\tfout.close();\n//\t\t}catch(Exception e)\n//\t\t{\n//\t\t\te.printStackTrace();\n//\t\t}\n//\t\t\n//\t\tImageAsync imasc = new ImageAsync();\n//\t\timasc.execute(f.toString());\n//\t\t\n//\t\tbitmap.recycle();\n//\t\t\n\t\t\n\t\t\n\n\t\t\n//\t\tmCloudRecognition.searchWithImage(COLLECTION_TOKEN,image);\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t/**\n\t\t * chary\n\t\t * Need to write service code to send image.\n\t\t */\n\t\t\n\t}",
"private void takePicture() {\n\n captureStillPicture();\n }",
"private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }",
"private void captureImage() {\n camera.takePicture(null, null, jpegCallback);\r\n }",
"private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }",
"public byte[] doInBackground(byte[]... data) {\n byte[] originalJpegData;\n byte[] originalJpegData2 = data[0];\n if (PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && PhotoModule.this.isSupportBeauty() && (PhotoModule.this.mCameraId == 0 || PhotoModule.this.mCameraId == 1)) {\n Size size = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n float seek = PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f;\n int angle = PhotoModule.this.mCameraId == 1 ? MediaProviderUtils.ROTATION_270 : 90;\n if (originalJpegData2 != null) {\n originalJpegData2 = BeautifyHandler.processImageNV21(PhotoModule.this.mActivity, originalJpegData2, size.width(), size.height(), seek, angle);\n }\n }\n PhotoModule.this.mActivity.getButtonManager().mBeautyEnable = true;\n Size size2 = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n PhotoModule.this.mIsAddWaterMark = PhotoModule.this.mCameraSettings.isAddWaterMarkEnabled();\n if (PhotoModule.this.mFinalDrCheckResult.size() <= 1) {\n Log.d(PhotoModule.TAG, \"start to jpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(originalJpegData2, size2.width(), size2.height());\n Log.d(PhotoModule.TAG, \"end to jpeg\");\n } else {\n int result = PhotoModule.this.mImageRefiner.processImage();\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processImage result = \");\n stringBuilder.append(result);\n Log.d(access$500, stringBuilder.toString());\n byte[] output = new byte[originalJpegData2.length];\n if (result < 0) {\n output = (byte[]) PhotoModule.this.mAddedImages.get(0);\n } else {\n int getOutputResult = PhotoModule.this.mImageRefiner.getOutputImageRaw(output);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"getOutputResult = \");\n stringBuilder2.append(getOutputResult);\n Log.d(access$5002, stringBuilder2.toString());\n }\n PhotoModule.this.mImageRefiner.finish();\n PhotoModule.this.mImageRefiner = null;\n Log.d(PhotoModule.TAG, \"mImageRefiner = null\");\n Log.d(PhotoModule.TAG, \"compressToJpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(output, size2.width(), size2.height());\n }\n if (cameraProxy.getCharacteristics().isFacingFront() && PhotoModule.this.isNeedMirrorSelfie()) {\n originalJpegData = PhotoModule.this.aftMirrorJpeg(originalJpegData);\n }\n if (!Keys.isAlgorithmsOn(PhotoModule.this.mActivity.getSettingsManager()) || PhotoModule.this.isDepthEnabled() || PhotoModule.this.mBurstResultQueue.isEmpty()) {\n return originalJpegData;\n }\n TotalCaptureResult totalCaptureResult = (TotalCaptureResult) PhotoModule.this.mBurstResultQueue.removeFirst();\n if (PhotoModule.this.mInHdrProcess) {\n PhotoModule.this.mBurstResultQueue.clear();\n }\n return PhotoModule.this.addExifTags(originalJpegData, totalCaptureResult, cameraProxy.getCharacteristics().isFacingFront(), PhotoModule.this.mJpegRotation);\n }",
"protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }",
"private void runCloudTextRecognition(Bitmap bitmap) {\n FirebaseVisionCloudDetectorOptions options =\n new FirebaseVisionCloudDetectorOptions.Builder()\n .setModelType(FirebaseVisionCloudDetectorOptions.LATEST_MODEL)\n .setMaxResults(15)\n .build();\n mCameraButtonCloud.setEnabled(false);\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionCloudDocumentTextDetector detector = FirebaseVision.getInstance()\n .getVisionCloudDocumentTextDetector(options);\n detector.detectInImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionCloudText>() {\n @Override\n public void onSuccess(FirebaseVisionCloudText texts) {\n mCameraButtonCloud.setEnabled(true);\n processCloudTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n mCameraButtonCloud.setEnabled(true);\n e.printStackTrace();\n }\n });\n }",
"public void run() {\n /*\n r6 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n boolean r1 = r1.mIsActive // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0011:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0027\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n int r2 = r6.stride // Catch:{ all -> 0x0077 }\n int r3 = r6.height // Catch:{ all -> 0x0077 }\n int r4 = r6.stride // Catch:{ all -> 0x0077 }\n int r5 = r6.width // Catch:{ all -> 0x0077 }\n int r4 = r4 - r5\n r1.createAllocation(r2, r3, r4) // Catch:{ all -> 0x0077 }\n L_0x0027:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n byte[] r2 = r6.yvuBytes // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_rotator r1 = r1.mRsRotator // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mInputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_rotate90andMerge(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_YuvToRgb r1 = r1.mRsYuvToRGB // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_nv21ToRgb(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.ioSend() // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n if (r1 == 0) goto L_0x0075\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r6 = r6.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n r6.ioSend() // Catch:{ all -> 0x0077 }\n L_0x0075:\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0077:\n r6 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.run():void\");\n }",
"@Override\n public void onBitmapLoaded(Bitmap blurTemplate, Picasso.LoadedFrom from) {\n RenderScript rs = RenderScript.create(context);\n\n\n //this will blur the bitmapOriginal with a radius of 8 and save it in bitmapOriginal\n final Allocation input = Allocation.createFromBitmap(rs, blurTemplate); //use this constructor for best performance, because it uses USAGE_SHARED mode which reuses memory\n final Allocation output = Allocation.createTyped(rs, input.getType());\n final ScriptIntrinsicBlur script = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));\n script.setRadius(8f);\n script.setInput(input);\n script.forEach(output);\n output.copyTo(blurTemplate);\n }",
"@Override\r\n public void run() {\n imageView1.setImageBitmap(bitmap);\r\n }",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tLog.e(\"on success\", \"on success\");\n\t\tBitmap s = null;\n\n\t\tif (resultCode == getActivity().RESULT_OK) {\n\t\t\t// user is returning from capturing an image using the camera\n\t\t\tif (requestCode == CAMERA_CAPTURE) {\n\t\t\t\tLog.e(\"camera\", \"camera\");\n\t\t\t\tpicUri = data.getData();\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\t// get the cropped bitmap\n\t\t\t\tBitmap thePic = extras.getParcelable(\"data\");\n\t\t\t\tsavetoaFileLocation(thePic);\n\t\t\t\tthePic = getResizedBitmap(thePic, 200, 200);\n\t\t\t\tcameraBitmap = thePic;\n\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t// display the returned cropped image\n\t\t\t\tprofileimageeditflag=\"true\";\n\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\n\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(thePic, 16));\n\t\t\t\t//picview1.setImageBitmap(cameraBitmap);\n\t\t\t} else if (requestCode == GALLERY_CAPTURE) {\n\n\n\n\n\t\t\t\tUri selectedImage = data.getData();\n\n\t\t\t\tString stringUri;\n\t\t\t\tstringUri = selectedImage.toString();\n\t\t\t\tif ((stringUri != \"\") || stringUri != null) {\n\n\t\t\t\t\tString selectedImagePath = getPath(selectedImage);\ntry {\n\tExifInterface exifInterface = new ExifInterface(selectedImagePath);\n\torientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\n\n}\ncatch (Exception e){}\n\n\n\n\t\t\t\t\tString[] filePathColumn = { MediaStore.Images.Media.DATA };\n\t\t\t\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\t\t\t\tselectedImage, filePathColumn, null, null, null);\n\t\t\t\t\tcursor.moveToFirst();\n\t\t\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t\t\t\t\tString selectedimage_path = cursor.getString(columnIndex);\n\t\t\t\t\tLog.e(\"selected path\",selectedimage_path);\n\t\t\t\t\tcursor.close();\n\t\t\t\t\tif (selectedimage_path.startsWith(\"https://\")) {\n\t\t\t\t\t\tgetBiymapFromGoogleLocation(selectedimage_path);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ts = getBitmapFromFile(selectedimage_path);\n\t\t\t\t\t}\n\t\t\t\t\ts = getResizedBitmap(s, 200, 200);\n\t\t\t\t\tcameraBitmap = s;\n\n\t\t\t\t\tswitch(orientation) {\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_90:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 90);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_180:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 180);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_270:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 270);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tcorrectedBitMap=cameraBitmap;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t\t// display the returned cropped image\nprofileimageeditflag=\"true\";\n\t\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\n\n\t/*\t\t\t\tif(correctedBitMap!= null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcorrectedBitMap, 16));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcameraBitmap, 16));\n\t\t\t\t\t}\n\n*/\n\n\t\t\t\t\tif (correctedBitMap != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(correctedBitMap, 16));\n\t\t\t\t\t\tsavetoaFileLocation(correctedBitMap);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t\t\tsavetoaFileLocation(s);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\n\t\t\t\t//\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t//\tpicview1.setImageBitmap(cameraBitmap);\n\t\t\t\t//\tsavetoaFileLocation(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}",
"private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }",
"private void postProcessing() {\n // create the element for erode\n Mat erodeElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_ERODE + 1,2 * KERNELSIZE_ERODE + 1 ),\n new Point(KERNELSIZE_ERODE, KERNELSIZE_ERODE));\n // create the element for dialte\n Mat dialElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_DILATE + 1,2 * KERNELSIZE_DILATE + 1 ),\n new Point(KERNELSIZE_DILATE, KERNELSIZE_DILATE));\n\n // erode image to remove small noise\n Imgproc.erode(binary, binary, erodeElement);\n\n // dilate the image DILATETIMES to increase what we see\n for (int i = 0; i < DILATETIMES; i++)\n Imgproc.dilate(binary, binary, dialElement);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void run() {\n Boolean hasBarcodes = barcodes > 0;\n if (hasBarcodes) {\n // Keep local image\n\n //handlePrivateImage(bitmap);\n context.get().finish();\n }\n else {\n // Delete local image and push to cloud\n if (imageFile.exists())\n imageFile.delete();\n handlePublicImage(bitmap);\n }\n }",
"@Override\n\t\t\t\t\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t \t\t\t\tDrawable drawable = iv_details_poster.getDrawable();\n\t\t \t\t\t\tBitmap bitmap = ImageUtil.drawableToBitmap(drawable);\n\t\t \t\t\t\tBitmap bit = Reflect3DImage.skewImage(bitmap, 60);\n\t\t \t\t\t\tiv_details_poster.setImageBitmap(bit);\n\t\t\t\t\t\t}",
"public void onPostExecute(ResizeBundle result) {\n LongshotPictureCallback.this.saveFinalPhoto(result.jpegData, LongshotPictureCallback.this.mName, result.exif, camera, externalBundle);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap imageBitmap = (Bitmap) extras.get(\"data\");\n\n detextTextFromImage(imageBitmap);\n\n }\n }",
"public void capture()\r\n\t{ \r\n\t VideoCapture camera = new VideoCapture();\r\n\t \r\n\t camera.set(12, -20); // change contrast, might not be necessary\r\n\t \r\n\t //CaptureImage image = new CaptureImage();\r\n\t \r\n\t \r\n\t \r\n\t camera.open(0); //Useless\r\n\t if(!camera.isOpened())\r\n\t {\r\n\t System.out.println(\"Camera Error\");\r\n\t \r\n\t // Determine whether to use System.exit(0) or return\r\n\t \r\n\t }\r\n\t else\r\n\t {\r\n\t System.out.println(\"Camera OK\");\r\n\t }\r\n\t\t\r\n\t\t \r\n\t\tboolean success = camera.read(capturedFrame);\r\n\t\tif (success)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tprocessWithContours(capturedFrame, processedFrame);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t //image.processFrame(capturedFrame, processedFrame);\r\n\t\t // processedFrame should be CV_8UC3\r\n\t\t \r\n\t\t //image.findCaptured(processedFrame);\r\n\t\t \r\n\t\t //image.determineKings(capturedFrame);\r\n\t\t \r\n\t\t int bufferSize = processedFrame.channels() * processedFrame.cols() * processedFrame.rows();\r\n\t\t byte[] b = new byte[bufferSize];\r\n\t\t \r\n\t\t processedFrame.get(0,0,b); // get all the pixels\r\n\t\t // This might need to be BufferedImage.TYPE_INT_ARGB\r\n\t\t img = new BufferedImage(processedFrame.cols(), processedFrame.rows(), BufferedImage.TYPE_INT_RGB);\r\n\t\t int width = (int)camera.get(Highgui.CV_CAP_PROP_FRAME_WIDTH);\r\n\t\t int height = (int)camera.get(Highgui.CV_CAP_PROP_FRAME_HEIGHT);\r\n\t\t //img.getRaster().setDataElements(0, 0, width, height, b);\r\n\t\t byte[] a = new byte[bufferSize];\r\n\t\t System.arraycopy(b, 0, a, 0, bufferSize);\r\n\r\n\t\t Highgui.imwrite(\"camera.jpg\",processedFrame);\r\n\t\t System.out.println(\"Success\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Unable to capture image\");\r\n\t\t\r\n\t camera.release();\r\n\t}",
"@Override\n \t protected void onPostExecute(Bitmap result)\n \t {\n \t\t\tMapImageView imageView = (MapImageView)this.getActivity().findViewById(com.example.chronolocalization.R.id.mapImage);\n \t \n \t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n \t\t\tresult.compress(Bitmap.CompressFormat.PNG, 100, baos);\n \t\t\tInputStream is = new ByteArrayInputStream( baos.toByteArray());\n \t \t\t\n \t\t\t //decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n Bitmap resizedbitmap = BitmapFactory.decodeStream(is, null, o2);\n\t \n \t\t imageView.setImageBitmap(resizedbitmap);\n \t\t \n \t\t int bitmapHeight = resizedbitmap.getHeight();\n \t\t int bitmapWidth = resizedbitmap.getWidth();\n \t\t \n \t\t int imageViewHeight = imageView.getHeight();\n \t\t int imageViewWidth = imageView.getWidth();\n \t\t \n \t\t float additionalRatioX = (float) imageViewWidth / (float) bitmapWidth;\n \t\t float additionalRatioY = (float) imageViewHeight / (float) bitmapHeight;\n \t\t \n \t\t float additionalRatio = 1.0f;\n\t\t if( Math.abs(additionalRatioX - 1.0f) < Math.abs(additionalRatioY -1.0f) )\n \t\t {\n \t\t \tadditionalRatio = additionalRatioX;\n \t\t }\n \t\t else\n \t\t {\n \t\t \tadditionalRatio = additionalRatioY;\n \t\t }\n\t\t \n\t\t float heightInMeter = mapRecord.getHeight();\n\t\t float widthInMeter = mapRecord.getWidth();\n\t\t \n\t\t int heightInPixel = (int)heightInMeter * (int)mapRecord.getScalingY();\n\t\t int widthInPixel = (int)widthInMeter * (int)mapRecord.getScalingX();\n\t\t \n \t\t float scalingX = mapRecord.getScalingX() * additionalRatio;\n \t \tfloat scalingY = mapRecord.getScalingY() * additionalRatio;\n\t \t\n\t \tfloat offsetX = mapRecord.getOffsetX();\n\t \tfloat offsetY = mapRecord.getOffsetY();\n\t \t\n \t \tPoint oldZero = new Point(0.0f, 0.0f);\n\t \tPoint newZero = new Point(0.0f, -offsetY*additionalRatio);\n \t \t\n \t \tCoordinateTransformation coordinateTransformation = new CoordinateTransformation(oldZero, newZero);\n \t\t \n \t \timageView.clearReceiverPositions();\n \t\t for(ReceiverRecord receiverRecord : receiverRecords)\n \t\t {\n \t\t \tPoint receiverPosition = receiverRecord.getReceiverPosition();\n \t\t \treceiverPosition.scale(scalingX, scalingY);\n \t\t \treceiverPosition = coordinateTransformation.transformPosition(receiverPosition);\n \t\t \t\n \t\t \timageView.addReceiver(receiverRecord.getReceiverId(), receiverPosition);\n \t\t }\n \t\t \t\t \n \t\t imageView.invalidate();\n \n \t }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ACTIVITY_START_CAMERA_APP && resultCode == RESULT_OK){\n /*//Todo: Mensaje para mostrar al usuario al capturar la fotografia\n// Toast.makeText(this,\"Picture taken successfully\",Toast.LENGTH_LONG).show();\n\n //Todo: Se crea el objeto Bundle con el nombre extras\n Bundle extras = data.getExtras();\n //Todo: Devuelve el bundle que contenga el intent\n Bitmap photoCaptureBitmap = (Bitmap) extras.get(\"data\");\n //Todo: Se asigna a mPhotoCapturedImageView el valor que contenga el Bitmap photoCaptureBitmap\n mPhotoCapturedImageView.setImageBitmap(photoCaptureBitmap);\n*/\n //Bitmap photoCaptureBitmap = BitmapFactory.decodeFile(mImageFileLocation);\n //mPhotoCapturedImageView.setImageBitmap(photoCaptureBitmap);\n rotateImage(setReduceImageSize());\n }\n }",
"@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n DecodeResult decodeResult = LightScannerManager.getInstance().decode(data);\n long timeCost = System.currentTimeMillis() - startTime;\n// String res = \"timeCost:\" + timeCost + \"\\nresult:\" +\n// ((decodeResult == null || decodeResult.getContent() == null) ? \"null\" : decodeResult.getContent());\n// Log.i(\"Test\", res);\n camera.addCallbackBuffer(data);\n// Intent intent = new Intent();\n// intent.putExtra(\"SCAN_RESULT\", res);\n if(decodeResult.getContent() != null){\n //setResult(RESULT_OK, intent);\n sendSuccessBroadcast(decodeResult.getContent());\n //finish();\n }\n }",
"public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }",
"public static void main(String[] args) throws Exception {\n String fileName = args[0];\n\n // transform the image file to an Image\n Image image = null;\n\n Frame observer = new Frame();\n\n try {\n MediaTracker tracker = new MediaTracker(observer);\n image = Toolkit.getDefaultToolkit().getImage(fileName);\n tracker.addImage(image, 1);\n try {\n tracker.waitForID(1);\n } catch (InterruptedException e) {\n }\n } catch (Exception e) {\n System.out.println(\"some problem getting the image\");\n System.exit(0);\n }\n\n // get the actual size of the image:\n int actualWidth, actualHeight;\n actualWidth = image.getWidth(observer);\n actualHeight = image.getHeight(observer);\n\n System.out.println(\"found actual size of \"\n + actualHeight + \" by \" + actualWidth);\n\n // obtain the image data \n int[] pixels = new int[actualWidth * actualHeight];\n try {\n PixelGrabber pg = new PixelGrabber(image, 0, 0, actualWidth,\n actualHeight, pixels, 0, actualWidth);\n pg.grabPixels();\n if ((pg.status() & ImageObserver.ABORT) != 0) {\n System.out.println(\"error while grabbing pixels\");\n System.exit(0);\n }\n } catch (InterruptedException e) {\n System.out.println(\"pixel grabbing was interrupted\");\n System.exit(0);\n }\n\n // pull each int apart to obtain the individual pieces\n // and write them to the output file\n // prepare the output file\n String outFileName\n = fileName.substring(0, fileName.indexOf('.')) + \".raw\";;\n\n System.out.println(\n \"about to work on output file named: [\" + outFileName + \"]\");\n\n PrintWriter outFile = new PrintWriter(new File(outFileName));\n\n int alpha, red, green, blue, pixel;\n int k;\n\n outFile.println(actualWidth + \" \" + actualHeight);\n\n for (k = 0; k < actualWidth * actualHeight; k++) {\n pixel = pixels[k];\n alpha = (pixel >> 24) & 0xff;\n red = (pixel >> 16) & 0xff;\n green = (pixel >> 8) & 0xff;\n blue = (pixel) & 0xff;\n\n outFile.println(red + \" \" + green + \" \" + blue + \" \" + alpha);\n\n }\n\n outFile.close();\n\n }",
"public ArrayList<Bitmap> createBitmap(CanvasView src, CanvasView dst, ArrayList<Difference> difference) {\n Bitmap blank;\n Drawable view1Immutable = src.getBackground(); //get both backgrounds\n Bitmap view1Background = ((BitmapDrawable) view1Immutable).getBitmap();\n ArrayList<Bitmap> frames = new ArrayList<>();\n\n view1Background = Bitmap.createScaledBitmap(view1Background, 400, 400, false);\n double newX, newY;\n int width = view1.getWidth();\n int height = view1.getHeight();\n for (int i = 1; i <= frameCount; i++) { //for each frame\n ArrayList<Line> temp = new ArrayList();\n blank = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888);\n for (int q = 0; q < view1.lines.size(); q++) {\n Line srcLine = dst.lines.get(q);\n Difference d = difference.get(q);\n Line l = new Line(srcLine.startX - Math.round(d.X1 * i), srcLine.startY - Math.round(d.Y1 * i), srcLine.stopX - Math.round(d.X2 * i), srcLine.stopY - Math.round(d.Y2 * i));\n temp.add(l);\n }\n\n for (int x = 0; x < width; x++) { //for each x pixel\n for (int y = 0; y < height; y++) { //for each y pixel\n double totalWeight = 0;\n double xDisplacement = 0;\n double yDisplacement = 0;\n for (int l = 0; l < view1.lines.size(); l++) { //for each line\n Line dest = view2.lines.get(l);\n Line srcLine = temp.get(l);\n double ptx = dest.startX - x;\n double pty = dest.startY - y;\n double nx = dest.yLength * -1;\n double ny = dest.xLength;\n\n double d = ((nx * ptx) + (ny * pty)) / ((Math.sqrt(nx * nx + ny * ny)));\n double fp = ((dest.xLength * (ptx * -1)) + (dest.yLength * (pty * -1)));\n fp = fp / (Math.sqrt(dest.xLength * dest.xLength + dest.yLength * dest.yLength));\n fp = fp / (Math.sqrt(dest.xLength * dest.xLength + dest.yLength * dest.yLength));\n\n nx = srcLine.yLength * -1;\n ny = srcLine.xLength;\n\n newX = ((srcLine.startX) + (fp * srcLine.xLength)) - ((d * nx / (Math.sqrt(nx * nx + ny * ny))));\n newY = ((srcLine.startY) + (fp * srcLine.yLength)) - ((d * ny / (Math.sqrt(nx * nx + ny * ny))));\n\n double weight = (1 / (0.01 + Math.abs(d)));\n totalWeight += weight;\n xDisplacement += (newX - x) * weight;\n yDisplacement += (newY - y) * weight;\n }\n\n newX = x + (xDisplacement / totalWeight);\n newY = y + (yDisplacement / totalWeight);\n\n if (xDisplacement == x - newX)\n newX = x - xDisplacement;\n\n if (yDisplacement == y - newY)\n newY = y - yDisplacement;\n\n if (newX < 0)\n newX = 0;\n if (newY < 0)\n newY = 0;\n if (newY >= 400)\n newY = 399;\n if (newX >= 400)\n newX = 399;\n blank.setPixel(x, y, view1Background.getPixel((int) Math.abs(newX), (int) Math.abs(newY)));\n }\n }\n frames.add(blank);\n }\n return frames;\n }",
"void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}",
"public void onPostExecute(ResizeBundle result) {\n JpegPictureCallback.this.saveFinalPhoto(result.jpegData, name, result.exif, cameraProxy);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }",
"@Override\r\n public boolean onTouchEvent(MotionEvent motionEvent) {\r\n\r\n //TODO\r\n //Basically, the way this works is to liste for Touch Down and Touch Move events and determine where those\r\n //touch locations correspond to the bitmap in the ImageView. You can then grab info about the bitmap--like the pixel color--\r\n //at that location\r\n\r\n float touchX = motionEvent.getX();\r\n float touchY = motionEvent.getY();\r\n int x = (int) touchX;\r\n int y = (int) touchY;\r\n\r\n Bitmap imageViewBitmap = _imageView.getDrawingCache();\r\n\r\n //if the bit map is null, don't do anything\r\n if (imageViewBitmap == null) {\r\n return true;\r\n }\r\n\r\n int[] viewCoor = new int[2];\r\n getLocationOnScreen(viewCoor);\r\n\r\n //if the touch coordinates are inside of the ImpressionistView then do stuff\r\n if (getBitmapPositionInsideImageView(_imageView).contains(x, y)) {\r\n\r\n //add the point to the velocity tracker\r\n velocityTracker.addMovement(motionEvent);\r\n //compute speed\r\n velocityTracker.computeCurrentVelocity(1, Float.MAX_VALUE);\r\n float dx = velocityTracker.getXVelocity();\r\n float dy = velocityTracker.getYVelocity();\r\n\r\n //range of brush size is 10-50px\r\n float width = (_paint.getStrokeWidth() + 10) * (float) Math.hypot(dx, dy) <= 50 ? (_paint.getStrokeWidth() + 10) * (float) Math.hypot(dx, dy) : 50;\r\n width = width < 10 ? 10 : width;\r\n int w = (int) width;\r\n\r\n switch (motionEvent.getAction()) {\r\n case MotionEvent.ACTION_DOWN:\r\n //ACTION_DOWN and ACTION_MOVE are the exact same so just drop to the next one\r\n case MotionEvent.ACTION_MOVE:\r\n //get color of corresponding pixel in image\r\n int color = imageViewBitmap.getPixel(x, y);\r\n _paint.setColor(color);\r\n\r\n //logic of painting based on brush type\r\n if (_brushType == BrushType.Square) {\r\n _offScreenCanvas.drawRect(touchX - width, touchY - width, touchX + width, touchY + width, _paint);\r\n } else if (_brushType == BrushType.Circle) {\r\n _offScreenCanvas.drawCircle(touchX, touchY, width, _paint);\r\n } else if (_brushType == BrushType.Line) {\r\n if (dx < 0) {\r\n if (dy < 0) {\r\n _offScreenCanvas.drawLine(touchX - width, touchY + width, touchX + width, touchY - width, _paint);\r\n } else {\r\n _offScreenCanvas.drawLine(touchX - width, touchY - width, touchX + width, touchY + width, _paint);\r\n }\r\n } else {\r\n if (dy < 0) {\r\n _offScreenCanvas.drawLine(touchX + width, touchY + width, touchX - width, touchY - width, _paint);\r\n } else {\r\n _offScreenCanvas.drawLine(touchX + width, touchY - width, touchX - width, touchY + width, _paint);\r\n }\r\n }\r\n }\r\n break;\r\n case MotionEvent.ACTION_UP:\r\n //reset the velocity tracker\r\n velocityTracker.clear();\r\n break;\r\n }\r\n //invalidate the rectangle around where the touch event happen. I imagine it speeds things up\r\n invalidate(x - w, y - w, x + w, y + w);\r\n }\r\n\r\n return true;\r\n }",
"private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }",
"private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }",
"private void callCloudVision(final Bitmap bitmap) {\n mImageDetails.setText(R.string.loading_message);\n\n // Do the real work in an async task, because we need to use the network anyway\n try {\n AsyncTask<Object, Void, String> labelDetectionTask = new LableDetectionTask(this, prepareAnnotationRequest(bitmap));\n labelDetectionTask.execute();\n } catch (IOException e) {\n Log.d(TAG, \"failed to make API request because of other IOException \" +\n e.getMessage());\n }\n }",
"private void runTextRecognition() {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(mSelectedImage);\n FirebaseVisionTextRecognizer recognizer = FirebaseVision.getInstance()\n .getOnDeviceTextRecognizer();\n //mTextButton.setEnabled(false);\n recognizer.processImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n //mTextButton.setEnabled(true);\n processTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n //mTextButton.setEnabled(true);\n e.printStackTrace();\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<PlacePhotoMetadataResponse> task) {\n try{\n PlacePhotoMetadataResponse photos = task.getResult();\n\n // Get the PlacePhotoMetadataBuffer (metadata for all of the photos).\n photoMetadataBuffer = photos.getPhotoMetadata();\n MyAdapter.photoMetadataBuffer = photos.getPhotoMetadata();\n\n Log.d(\"MainActivity\",photoMetadataBuffer.toString());\n\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n\n // Get the first photo in the list.\n MyAdapter.myPhotos = null;\n if(photoMetadataBuffer.getCount() == 0){\n getYelpReviews();\n MyAdapter.myPhotos = null;\n }\n else{\n myPhotos = new Bitmap[photoMetadataBuffer.getCount()];\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n int i = 0;\n for(i=0;i<photoMetadataBuffer.getCount();i++){\n PlacePhotoMetadata photoMetadata = photoMetadataBuffer.get(i);\n // Get a full-size bitmap for the photo.\n Task<PlacePhotoResponse> photoResponse = mGeoDataClient.getPhoto(photoMetadata);\n\n final int finalI = i;\n photoResponse.addOnCompleteListener(new OnCompleteListener<PlacePhotoResponse>() {\n @Override\n public void onComplete(@NonNull Task<PlacePhotoResponse> task) {\n PlacePhotoResponse photo = task.getResult();\n myPhotos[finalI] = photo.getBitmap();\n Log.d(\"MainActivity\",\"Completed\" + finalI);\n if(finalI == photoMetadataBuffer.getCount()-1){\n getYelpReviews();\n\n }\n }\n });\n\n MyAdapter.myPhotos = myPhotos;\n }\n }\n } catch (Exception e){\n Log.d(\"MainActivity\",\"Some Error Occured\" + e.toString());\n }\n\n }",
"public void onImageAvailable(android.media.ImageReader r15) {\n /*\n r14 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0172 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0172 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0172 }\n return\n L_0x0011:\n android.media.Image r15 = r15.acquireLatestImage() // Catch:{ IllegalStateException -> 0x0170 }\n if (r15 != 0) goto L_0x0019\n monitor-exit(r0) // Catch:{ all -> 0x0172 }\n return\n L_0x0019:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n boolean r1 = r1.mIsActive // Catch:{ IllegalStateException -> 0x0170 }\n if (r1 != 0) goto L_0x0026\n r15.close() // Catch:{ IllegalStateException -> 0x0170 }\n monitor-exit(r0) // Catch:{ all -> 0x0172 }\n return\n L_0x0026:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n r2 = 1\n r1.mIsAllocationEverUsed = r2 // Catch:{ IllegalStateException -> 0x0170 }\n android.media.Image$Plane[] r1 = r15.getPlanes() // Catch:{ IllegalStateException -> 0x0170 }\n r3 = 0\n r1 = r1[r3] // Catch:{ IllegalStateException -> 0x0170 }\n java.nio.ByteBuffer r1 = r1.getBuffer() // Catch:{ IllegalStateException -> 0x0170 }\n android.media.Image$Plane[] r4 = r15.getPlanes() // Catch:{ IllegalStateException -> 0x0170 }\n r5 = 2\n r4 = r4[r5] // Catch:{ IllegalStateException -> 0x0170 }\n java.nio.ByteBuffer r11 = r4.getBuffer() // Catch:{ IllegalStateException -> 0x0170 }\n byte[] r4 = r14.yvuBytes // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 == 0) goto L_0x0062\n int r4 = r14.width // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r6 = r6.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r6 = r6.getWidth() // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 != r6) goto L_0x0062\n int r4 = r14.height // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r6 = r6.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r6 = r6.getHeight() // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 == r6) goto L_0x009e\n L_0x0062:\n android.media.Image$Plane[] r4 = r15.getPlanes() // Catch:{ IllegalStateException -> 0x0170 }\n r4 = r4[r3] // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r4.getRowStride() // Catch:{ IllegalStateException -> 0x0170 }\n r14.stride = r4 // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r4 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r4 = r4.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r4.getWidth() // Catch:{ IllegalStateException -> 0x0170 }\n r14.width = r4 // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r4 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r4 = r4.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r4.getHeight() // Catch:{ IllegalStateException -> 0x0170 }\n r14.height = r4 // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r14.stride // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r6 = r6.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r6 = r6.getHeight() // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r4 * r6\n r14.ySize = r4 // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r14.ySize // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r4 * 3\n int r4 = r4 / r5\n byte[] r4 = new byte[r4] // Catch:{ IllegalStateException -> 0x0170 }\n r14.yvuBytes = r4 // Catch:{ IllegalStateException -> 0x0170 }\n L_0x009e:\n com.android.camera.imageprocessor.FrameProcessor r4 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n java.util.ArrayList r4 = r4.mPreviewFilters // Catch:{ IllegalStateException -> 0x0170 }\n java.util.Iterator r12 = r4.iterator() // Catch:{ IllegalStateException -> 0x0170 }\n r13 = r3\n L_0x00a9:\n boolean r4 = r12.hasNext() // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 == 0) goto L_0x0128\n java.lang.Object r4 = r12.next() // Catch:{ IllegalStateException -> 0x0170 }\n r5 = r4\n com.android.camera.imageprocessor.filter.ImageFilter r5 = (com.android.camera.imageprocessor.filter.ImageFilter) r5 // Catch:{ IllegalStateException -> 0x0170 }\n boolean r4 = r5.isFrameListener() // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 == 0) goto L_0x00f0\n com.android.camera.imageprocessor.FrameProcessor r4 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor$ListeningTask r4 = r4.mListeningTask // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r6 = r6.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r8 = r6.getWidth() // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r6 = r6.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r9 = r6.getHeight() // Catch:{ IllegalStateException -> 0x0170 }\n int r10 = r14.stride // Catch:{ IllegalStateException -> 0x0170 }\n r6 = r1\n r7 = r11\n boolean r4 = r4.setParam(r5, r6, r7, r8, r9, r10) // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 == 0) goto L_0x0121\n com.android.camera.imageprocessor.FrameProcessor r4 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.os.Handler r4 = r4.mListeningHandler // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r5 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor$ListeningTask r5 = r5.mListeningTask // Catch:{ IllegalStateException -> 0x0170 }\n r4.post(r5) // Catch:{ IllegalStateException -> 0x0170 }\n goto L_0x0121\n L_0x00f0:\n com.android.camera.imageprocessor.FrameProcessor r4 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r4 = r4.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r4.getWidth() // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.util.Size r6 = r6.mSize // Catch:{ IllegalStateException -> 0x0170 }\n int r6 = r6.getHeight() // Catch:{ IllegalStateException -> 0x0170 }\n int r7 = r14.stride // Catch:{ IllegalStateException -> 0x0170 }\n int r8 = r14.stride // Catch:{ IllegalStateException -> 0x0170 }\n r5.init(r4, r6, r7, r8) // Catch:{ IllegalStateException -> 0x0170 }\n boolean r4 = r5 instanceof com.android.camera.imageprocessor.filter.BeautificationFilter // Catch:{ IllegalStateException -> 0x0170 }\n if (r4 == 0) goto L_0x0118\n java.lang.Boolean r4 = new java.lang.Boolean // Catch:{ IllegalStateException -> 0x0170 }\n r4.<init>(r3) // Catch:{ IllegalStateException -> 0x0170 }\n r5.addImage(r1, r11, r3, r4) // Catch:{ IllegalStateException -> 0x0170 }\n goto L_0x0120\n L_0x0118:\n java.lang.Boolean r4 = new java.lang.Boolean // Catch:{ IllegalStateException -> 0x0170 }\n r4.<init>(r2) // Catch:{ IllegalStateException -> 0x0170 }\n r5.addImage(r1, r11, r3, r4) // Catch:{ IllegalStateException -> 0x0170 }\n L_0x0120:\n r13 = r2\n L_0x0121:\n r1.rewind() // Catch:{ IllegalStateException -> 0x0170 }\n r11.rewind() // Catch:{ IllegalStateException -> 0x0170 }\n goto L_0x00a9\n L_0x0128:\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n boolean r2 = r2.mIsFirstIn // Catch:{ IllegalStateException -> 0x0170 }\n if (r2 == 0) goto L_0x014e\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n boolean r2 = r2.mIsVideoOn // Catch:{ IllegalStateException -> 0x0170 }\n if (r2 == 0) goto L_0x014e\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n boolean r2 = r2.isFrameListnerEnabled() // Catch:{ IllegalStateException -> 0x0170 }\n if (r2 == 0) goto L_0x014e\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n r2.mIsFirstIn = r3 // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.CaptureModule r2 = r2.mModule // Catch:{ IllegalStateException -> 0x0170 }\n r2.startMediaRecording() // Catch:{ IllegalStateException -> 0x0170 }\n L_0x014e:\n if (r13 == 0) goto L_0x016d\n byte[] r2 = r14.yvuBytes // Catch:{ IllegalStateException -> 0x0170 }\n int r4 = r1.remaining() // Catch:{ IllegalStateException -> 0x0170 }\n r1.get(r2, r3, r4) // Catch:{ IllegalStateException -> 0x0170 }\n byte[] r1 = r14.yvuBytes // Catch:{ IllegalStateException -> 0x0170 }\n int r2 = r14.ySize // Catch:{ IllegalStateException -> 0x0170 }\n int r3 = r11.remaining() // Catch:{ IllegalStateException -> 0x0170 }\n r11.get(r1, r2, r3) // Catch:{ IllegalStateException -> 0x0170 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ IllegalStateException -> 0x0170 }\n android.os.Handler r1 = r1.mOutingHandler // Catch:{ IllegalStateException -> 0x0170 }\n r1.post(r14) // Catch:{ IllegalStateException -> 0x0170 }\n L_0x016d:\n r15.close() // Catch:{ IllegalStateException -> 0x0170 }\n L_0x0170:\n monitor-exit(r0) // Catch:{ all -> 0x0172 }\n return\n L_0x0172:\n r14 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0172 }\n throw r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.onImageAvailable(android.media.ImageReader):void\");\n }",
"@Override\n public void run() {\n imageView.setImageBitmap(photo);\n }",
"public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }",
"private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}"
] | [
"0.771042",
"0.6700607",
"0.66912293",
"0.6525185",
"0.6489113",
"0.63394564",
"0.6298256",
"0.6141745",
"0.6096726",
"0.601558",
"0.59703183",
"0.5969423",
"0.59529567",
"0.592449",
"0.5918613",
"0.59090805",
"0.5900574",
"0.58985907",
"0.5886401",
"0.58672065",
"0.5832325",
"0.57844096",
"0.5765817",
"0.57468617",
"0.5732572",
"0.57264227",
"0.5719644",
"0.56964463",
"0.5669654",
"0.56669205",
"0.5658109",
"0.56483626",
"0.56478566",
"0.5631729",
"0.56298",
"0.5617118",
"0.56146014",
"0.56092256",
"0.5604675",
"0.56032807",
"0.55788577",
"0.55781394",
"0.5578121",
"0.55759895",
"0.55564296",
"0.55538833",
"0.5541619",
"0.55352855",
"0.553313",
"0.55269057",
"0.55267775",
"0.55232775",
"0.5522808",
"0.55225825",
"0.55209976",
"0.5508685",
"0.55057985",
"0.5504173",
"0.55032146",
"0.54938316",
"0.5492842",
"0.546983",
"0.5463995",
"0.5454882",
"0.5447295",
"0.54429626",
"0.54399824",
"0.5431381",
"0.54257804",
"0.5415389",
"0.54144245",
"0.54140323",
"0.5407854",
"0.5406865",
"0.54051393",
"0.53993475",
"0.5395789",
"0.539277",
"0.53896534",
"0.53892535",
"0.538851",
"0.53868115",
"0.5383998",
"0.5383071",
"0.5381569",
"0.53797805",
"0.53795123",
"0.5375795",
"0.53745145",
"0.5372169",
"0.5371834",
"0.5369154",
"0.5361902",
"0.5360011",
"0.5359647",
"0.5356055",
"0.53550196",
"0.53482646",
"0.5345472",
"0.5336741"
] | 0.73914707 | 1 |
Date d = new Date(); | public String getTimeStamp() {
return new SimpleDateFormat("dd.MM.yyyy HH.mm.ss").format(new Date());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Date getDate();",
"Date getDate();",
"Date getDate();",
"public Date GetDate();",
"public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}",
"public static Date date() {\n GregorianCalendar cal = new GregorianCalendar();\n return cal.getTime();\n }",
"public Date() {\r\n }",
"public Date date (){\r\n\t\t\treturn _date;\r\n\t\t}",
"public static Date now()\r\n\t{\r\n\t\treturn new Date(System.currentTimeMillis());\r\n\t}",
"public java.util.Date getDate() {\n\t}",
"final public synchronized Date getDate() {\n return new Date(crtime) ;\n }",
"public Sad(){\n\t\tthis.date = new Date(System.currentTimeMillis());\n\t}",
"Date getEDate();",
"public java.util.Date getDate(){\n return localDate;\n }",
"public Date getDate(){\n\t\treturn date;\n\t}",
"public static native JsDate create() /*-{\n return new Date();\n }-*/;",
"public Date getDate()\n {\n return date;\n }",
"public static java.sql.Date getDateTime() {\n\t\treturn new java.sql.Date(new java.util.Date().getTime());\n\t}",
"public Date getDate()\n\t{\n\t\treturn date;\n\t}",
"public Date getDate() {\n return date;\n }",
"public static Date today() // should it be void?\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int day = currentDate.get(GregorianCalendar.DATE);\n int month = currentDate.get(GregorianCalendar.MONTH) + 1;\n int year = currentDate.get(GregorianCalendar.YEAR);\n int hour = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minute = currentDate.get(GregorianCalendar.MINUTE);\n return new Date(day, month, year, hour, minute);\n }",
"public static Date getCurrentDate() {\n return new Date();\n }",
"public Date date() {\n return new Date(this.msec);\n }",
"public Date getDate() {\n\t\n\t\treturn date;\n\t\n\t}",
"public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}",
"@NotNull\n @Generated\n @Selector(\"date\")\n public native NSDate date();",
"public static Date getNowUtilDate()\n {\n return new Date();\n }",
"public Date getDate() {\r\n return date;\r\n }",
"public Date getDate() {\r\n return date;\r\n }",
"public Date getDate() {\r\n return date;\r\n }",
"public Date date() {\r\n\t\treturn date;\r\n\t}",
"static public java.util.Date getDate(double seconds){\n\treturn new java.util.Date(1000L * ((long)(seconds))); \n }",
"public Date() {\r\n\t\tGregorianCalendar c = new GregorianCalendar();\r\n\t\tmonth = c.get(Calendar.MONTH) + 1; // our month starts from 1\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t}",
"public Date getCurrentDate() {\n\t\treturn new Date();\n\t}",
"@Override\n public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date date()\n\t{\n\t\treturn this.date;\n\t}",
"long getDate();",
"public Date getDate() {\n return dateTime;\n }",
"public static Date now() {\n return Calendar.getInstance().getTime();\n }",
"public static Date now() {\n return Calendar.getInstance().getTime();\n }",
"public int getDate(){\n return date;\n }",
"public java.util.Date getDateInst(){\r\n return this.dateInst;\r\n }",
"public Date getDate() {\n\t\treturn _date;\n\t}",
"static long getDateTime(){\n return System.currentTimeMillis();\n }",
"public Date getDate() {\n\t\treturn date_;\n\t}",
"public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}",
"public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}",
"Date getCreateDate();",
"Date getCreateDate();",
"public Date getDate()\n {\n return this.date;\n }",
"public Date getDate() {\r\n\t\treturn date;\r\n\t}",
"public Date getDate() {\r\n\t\treturn date;\r\n\t}",
"public Date getDate() {\n\t\treturn date;\n\t}",
"public Date getDate() {\n\t\treturn date;\n\t}",
"public Date getSystemDateTime(){\n\t\tDate systemDate = new Date();\t\t\n\t\treturn systemDate;\n\t}",
"public void setDate() {\n this.date = new Date();\n }",
"public Date getDate() {\n return mDate;\n }",
"public String getDate(){\n return date;\n }",
"public Date getdCreateDate() {\r\n return dCreateDate;\r\n }",
"public Date getdCreateDate() {\r\n return dCreateDate;\r\n }",
"public int getDate() {\n return date ;\n }",
"public Date getPubDate();",
"public long getDate() {\n return date;\n }",
"public String Get_date() \n {\n \n return date;\n }",
"public Date getCreateDate();",
"public Date getCreateDate();",
"public Date getCreateDate();",
"public long getDate() {\n return date_;\n }",
"String getDate();",
"String getDate();",
"public Date getDate(){\n\t\treturn day.date;\n\t}",
"public String getDate(){\n return date;\n }",
"Date getTimeStamp();",
"Date getForDate();",
"public static Date getDateNowSingl(){\n\t\tconfigDefaultsTimeZoneAndLocale();\r\n\t\t\r\n\t\t// o time millis é sempre GMT 0, a transformação fica por conta do Date\r\n\t\treturn new Date(System.currentTimeMillis()+getPropDefaultForAll(TIME_CORRECTION));\r\n\t}",
"public GregorianCalendar getDate() { return date; }",
"public Date getDate() {\n return this.currentDate;\n }",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"LocalDate getDate();",
"public Date getDateObject(){\n \n Date date = new Date(this.getAnio(), this.getMes(), this.getDia());\n return date;\n }",
"public long getDate() {\n return date;\n }",
"public Date getDate() {\n return this.date;\n }",
"public static void main(String[] arg){\n\tDate today;\n\ttoday=new Date();\n\tSystem.out.println(today);\n}",
"public Date getGioBatDau();",
"private GuessDate(){\n }",
"public String getDate() {\n return date;\n }"
] | [
"0.74267375",
"0.74267375",
"0.74267375",
"0.7295205",
"0.7269423",
"0.7179003",
"0.71726394",
"0.7075368",
"0.7021604",
"0.6966145",
"0.69458246",
"0.690263",
"0.6856814",
"0.68455166",
"0.6755726",
"0.67552835",
"0.67463803",
"0.6703504",
"0.66858155",
"0.6678655",
"0.6671648",
"0.66372365",
"0.6622963",
"0.66192955",
"0.66173524",
"0.6600173",
"0.6595086",
"0.65582556",
"0.65582556",
"0.65582556",
"0.65564775",
"0.65375507",
"0.6521402",
"0.65160793",
"0.6515032",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.65143675",
"0.6504392",
"0.6501117",
"0.649634",
"0.64946795",
"0.64946795",
"0.64807355",
"0.6476577",
"0.6472993",
"0.64694864",
"0.6461641",
"0.6459521",
"0.645883",
"0.6454154",
"0.6454154",
"0.64393663",
"0.64153737",
"0.64153737",
"0.64119124",
"0.64119124",
"0.6406756",
"0.6386998",
"0.6382746",
"0.6375193",
"0.63741374",
"0.63741374",
"0.63687897",
"0.63667625",
"0.63652295",
"0.63610554",
"0.63565415",
"0.63565415",
"0.63565415",
"0.6337468",
"0.6316346",
"0.6316346",
"0.63122016",
"0.63081807",
"0.63014483",
"0.629038",
"0.62841004",
"0.62789416",
"0.6276747",
"0.6266565",
"0.6266565",
"0.62639457",
"0.6262736",
"0.6252195",
"0.62480587",
"0.6238925",
"0.6233893",
"0.62321687",
"0.62309706"
] | 0.0 | -1 |
Adds the key value pair to the tree | public void put(String key, T value) {
root = put (root, key, value, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(K key, V value) {\n Node<K,V> node = root, parent = null;\n int cmp = -1;\n\n while (node != null) {\n cmp = key.compareTo(node.key);\n parent = node;\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n node.value = value;\n return;\n }\n }\n\n Node<K,V> new_node = new Node<>(key, value);\n if (parent == null) {\n root = new_node;\n } else if (cmp < 0) {\n parent.left = new_node;\n } else {\n parent.right = new_node;\n }\n }",
"@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}",
"@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\r\n public V put(K key, V value){\r\n \r\n // Declare a temporay node and instantiate it with the key and\r\n // previous value of that key\r\n TreeNode<K, V> tempNode = new TreeNode<>(key, get(key));\r\n \r\n // Call overloaded put function to either place a new node\r\n // in the tree or update the exisiting value for the key\r\n root = put(root, key, value);\r\n \r\n // Return the previous value of the key through the temporary node\r\n return tempNode.getValue();\r\n }",
"public void insert(Key key, Value value) {\r\n root.insert(key,value);\r\n size++;\r\n }",
"public void add (K key) {\n\t\tthis.root = this.addRecursively(root,key);\n\t}",
"public void put(Key key,Value value){\n\t\troot = insert(root,key,value);\n\t}",
"public NonEmptyTree<K, V> add(K key, V value) {\n\t\tTree<K, V> t = this;\n\t\treturn add(t, key, value);\n\t}",
"public void insert(Key key, Value value){\n this.root = this.insertHelper(key, value, root);\n }",
"private TreeNode<K, V> put(TreeNode<K, V> node, K key, V value){\r\n \r\n // If the node is null, create a new node with the information\r\n // passed into the function\r\n if(node == null){\r\n return new TreeNode<>(key, value);\r\n }\r\n \r\n // Compare the keys recursively to find the correct spot to insert\r\n // the new node or if the key already exists\r\n if(node.getKey().compareTo(key) > 0){\r\n // If the current node has a value greater than our key, go left\r\n node.left = put(node.left, key, value);\r\n }\r\n else if(node.getKey().compareTo(key) < 0){\r\n // If the current node has a value less than our key, go right\r\n node.right = put(node.right, key, value);\r\n }\r\n else{\r\n // If the keys are equal, only update the value\r\n node.setValue(value);\r\n }\r\n \r\n // Return the updated or newly inserted node\r\n return node;\r\n }",
"public Node insert(Key key, Value value) { \r\n // inserting into an empty tree results in a single value leaf node\r\n return new LeafNode(key,value);\r\n }",
"@Override\r\n public void insert(K key, V value) {\r\n // call insert of the root\r\n root.insert(key, value);\r\n }",
"public void insert(double key, Double value){\n\tif(search(key)!=null){\r\n\t\tLeaf Leaf = (Leaf)Search(root, key);\r\n\t\t\r\n\t\tfor(int i=0; i<Leaf.keyvalues.size(); i++) {\r\n\t\t\tif(key==Leaf.getKeyValue(i).getKey()) {\r\n\t\t\t\t\tLeaf.getKeyValue(i).values.add(value);\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\tLeaf newleaf = new Leaf(key, value);\r\n\t\r\n\tPair<Double,Node> entry=new Pair<Double, Node>(key,newleaf);\r\n\r\n\tif(root == null ) {\r\n\t\troot = entry.getValue();\r\n\t}\r\n\t\r\n\r\n\tPair<Double, Node> newChildEntry = getChildEntry(root, entry, null);\r\n\t\r\n\tif(newChildEntry == null) {\r\n\t\treturn;\r\n\t} else {\r\n\t\tIntrnlNode newRoot = new IntrnlNode(newChildEntry.getKey(), root, newChildEntry.getValue());\r\n\t\troot = newRoot;\r\n\t\treturn;\r\n\t}\r\n}",
"public boolean put(int key, String value) {\n\t\t//YOUR CODE HERE\n\t\tif(root == null) {\n\t\t\tLeafNode leaf = new LeafNode(key, value);\n\t\t\troot = leaf;\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tPair pair = add(key, value, this.root);\n\t\t\tif(pair != null) {\n\t\t\t\tInternalNode node = new InternalNode();\n\t\t\t\tnode.size = 1;\n\t\t\t\tnode.children[0] = root;\n\t\t\t\tnode.keys[1] = pair.newKey;\n\t\t\t\tnode.children[1] = pair.rightChild;\n\t\t\t\tthis.root = node;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public void put(Key key, Value value) {\n\t\tNode entry = new Node(key, value, current_node);\n\t\tcurrent_node = entry; size++;\n\t}",
"public void add(Key key, Data data) {\n var curr = root;\n var next = root;\n while (next != null && next.key != key) {// search place for insertion\n curr = next;\n\n if (key.compareTo(curr.key) < 0) {\n next = curr.left; \n } else {\n next = curr.right;\n }\n }\n\n\n var newNode = new Node(key, data);\n if (curr == null) {// empty tree\n root = newNode;\n } else {\n if (key.compareTo(curr.key) < 0) {\n if (curr.left != null) {// save subtrees when replacing data\n curr.left.data = data;\n } else {\n curr.left = newNode;\n }\n } else {\n if (curr.right != null) {// save subtrees when replacing data\n curr.right.data = data;\n } else {\n curr.right = newNode;\n }\n }\n }\n }",
"@Override\n public void put(K key, V value) {\n root = putHelper(key,value,root);\n }",
"void insert(K key, V value) {\r\n\r\n\r\n Node child = getChild(key);\r\n child.insert(key, value);\r\n // to check if the child is overloaded\r\n if (child.isOverflow()) {\r\n Node sibling = child.split();\r\n insertChild(sibling.getFirstLeafKey(), sibling);\r\n }\r\n\r\n // if the node is full then it requires to split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n\r\n }",
"@Override\n public void add(String key) {\n if (key == null || key.length() == 0 || root == null) {\n return;\n }\n Node p = root;\n for (int i = 0; i < key.length(); i++) {\n char current = key.charAt(i);\n if (!p.next.containsKey(current)) {\n p.next.put(current, new Node(current, false));\n }\n p = p.next.get(current);\n }\n p.isKey = true;\n }",
"public void insertingANode(T key, E value) {\r\n\t\tRBNode<T, E> insertedNode = createRBNode(key, value);\r\n\t}",
"void addEntry(K key, V value);",
"void insert(K key, V value) {\r\n // binary search\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int indexing;\r\n if (correct_place >= 0) {\r\n indexing = correct_place;\r\n } else {\r\n indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n } else {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n }\r\n\r\n // to check if the node is overloaded then split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n }",
"@Override\n public void put(K key, V value) {\n root = put(root, key, value);\n }",
"public void add(String key) {\n if (key == null || key.length() < 1) {\n return;\n }\n Node curr = root;\n for (int i = 0; i < key.length(); i++) {\n char c = key.charAt(i);\n if (!curr.next.items.containsKey(c)) {\n curr.next.items.put(c, new Node(c, false, 256));\n }\n curr = (Node)curr.next.items.get(c);\n }\n curr.isKey = true;\n }",
"public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}",
"void add(K key, V value);",
"private Node putHelper(K key, V value, Node p) {\n if(p == null){\n size++;\n Node node = new Node(key, value);\n return node;\n }\n int cmp = key.compareTo(p.key);\n if(cmp < 0){\n // put int the left\n p.left = putHelper(key, value, p.left);\n }else if(cmp > 0){\n // put in the right\n p.right = putHelper(key, value, p.right);\n }else{\n p.value = value;\n }\n return p;\n }",
"public void put(K key, V value) {\r\n size++;\r\n checkAndModifySize();\r\n\r\n Node newElement = new Node(key, value);\r\n int currentHash = newElement.hash % data.length;\r\n if (currentHash < 0){\r\n currentHash *= -1;\r\n }\r\n\r\n if (data[currentHash] == null) {\r\n data[currentHash] = newElement;\r\n } else {\r\n Node currentElement = data[currentHash];\r\n while (currentElement.next != null) {\r\n if (currentElement.key == key || currentElement.key.equals(key)) {\r\n currentElement.value = value;\r\n size--;\r\n return;\r\n }\r\n currentElement = currentElement.next;\r\n }\r\n currentElement.next = newElement;\r\n }\r\n }",
"public V add(K key, V value);",
"public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }",
"@Override\n\tpublic BSTNode insert(int key, Object value) throws OperationNotPermitted {\n\n\t\tBSTNode p = searchByKey(key);\n\t\tBSTNode n;\n\n\t\tif (p == null) {\n\t\t\t// tree is empty, create new root\n\n\t\t\tn = createNode(key, value);\n\t\t\t_root = n;\n\t\t} else if (p.key == key) {\n\t\t\t// key exists, update payload\n\n\t\t\tn = p;\n\t\t\tn.value = value;\n\t\t} else {\n\t\t\t// key does not exist\n\n\t\t\tn = createNode(key, value);\n\t\t\tn.parent = p;\n\n\t\t\tif (p != null) {\n\t\t\t\tif (key < p.key) {\n\t\t\t\t\tp.left = n;\n\t\t\t\t} else {\n\t\t\t\t\tp.right = n;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tupdateSubtreeSizePath(n.parent);\n\t\t}\n\n\t\treturn n;\n\t}",
"public void add(K key, V value) {\r\n if(this.table.containsKey(key)){\r\n BloomFilterUtil bf = (BloomFilterUtil)table.get(key).getHash();\r\n bf.put(value);\r\n Node<V> node = (Node<V>) table.get(key);\r\n node.getValues().add(value);\r\n }else {\r\n BloomFilterUtil bf = BloomFilterUtil.create(funnel,\r\n expectedInsertions,\r\n fpp,\r\n (BloomFilterUtil.Strategy) hashStrategy);\r\n bf.put(value);\r\n Node<V> node = new Node<V>(value, bf);\r\n table.put(key, node);\r\n }\r\n }",
"public synchronized V put(K key, V value) {\n if (key == null) {\n throw new NullPointerException(\"Key is null\");\n }\n\n //1. insert root node\n Node<K, V> tempParent = root;\n if (tempParent == null) {\n tempParent = get(key);\n if (tempParent == null) {\n root = new Node(key, value, this.offVersioning, store);\n root.setRoot(true);\n root.setHash(updatedNodes);\n return null;\n }\n root = tempParent;\n }\n\n Object[] prevValue = new Object[1];\n\n insert(tempParent, key, value, prevValue);\n return (V) prevValue[0];\n }",
"public boolean add(K key, V value);",
"private Node putHelper(Node n, K key, V value) {\n if (n == null) {\n n = new Node(key, value);\n } else if (key.compareTo(n.key) < 0) {\n n.leftChild = putHelper(n.leftChild, key, value);\n } else if (key.compareTo(n.key) > 0) {\n n.rightChild = putHelper(n.rightChild, key, value);\n }\n\n return n;\n }",
"public void add(Object key, Object value){\n\t\tint bucketLoc = key.hashCode() % _numBuckets;\r\n\t\tif(_locate(key) == null){\r\n\t\t\tNode newNode = new Node(key,value,_buckets[bucketLoc]);\r\n\t\t\t_buckets[bucketLoc] = newNode;\r\n\t\t\t_count++;\r\n\t\t\t_loadFactor = (double) _count / (double) _numBuckets;\r\n\t\t\tif(_loadFactor > _maxLoadFactor){\r\n\t\t\t\t_increaseTableSize();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t_buckets[bucketLoc]._value = value;\r\n\t\t}\r\n\t}",
"T put(CharSequence key, int pos, T addValue)\n\t\t{\n\t\t\tNode<T> nextNode;\n\t\t\tCharacter ch;\n\t\t\tT old;\n\n\t\t\tif(key.length() == pos)\n\t\t\t{\t// at terminating node\n\t\t\t\told = value;\n\t\t\t\tsetValue(addValue);\n\t\t\t\treturn old;\n\t\t\t}\n\t\t\tch = key.charAt(pos);\n\t\t\tif(nextMap == null)\n\t\t\t{\n\t\t\t\tnextMap = newNodeMap();\n\t\t\t\tnextNode = new Node();\n\t\t\t\tnextMap.put(ch, nextNode);\n\t\t\t}\n\t\t\telse if((nextNode = nextMap.get(ch))==null)\n\t\t\t{\n\t\t\t\tnextNode = new Node();\n\t\t\t\tnextMap.put(ch,nextNode);\n\t\t\t}\n\t\t\treturn nextNode.put(key,pos+1,addValue);\n\t\t}",
"@Override\n public void put(PairNode<K, V> node) {\n super.put(node);\n keySet.add(node.getKey());\n }",
"public V put(K key, V value){\n\t\tV v=null;\n\t\tNode n;\n\t\t\n\t\t\n\t\tif(root==null){\n\t\t\t\n\t\t\troot=new Node(key,value);\t\t\t\n\t\t\troot.parent=null;\n\t\t\t\n\t\t}\n\t\telse if(get(key)!=null){\n\t\t\t\n\t\t\tv=searchkey(root, key).value;\n\t\t\t\n\t\t\tsearchkey(root, key).value=value;\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tif(root.key.compareTo(key)>0){\n\t\t\t\tn=leftend(root);\n\t\t\t\tNode t=root;\n\t\t\t\twhile( t!=n){if(t.key.compareTo(key)<0&&t!=root){break;}\n\t\t\t\telse{\n\t\t\t\t\tt=t.left;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn=t;\n\t\t\t\tif(n.key.compareTo(key)>0){\n\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tbalanceCheck(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tn=rightend(n);\n\t\t\t\t\tif(n.key.compareTo(key)<0){\n\t\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tn.right.parent=n;\t\n\t\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\tbalanceCheck(n);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(root.key.compareTo(key)<0 ){\n\t\t\t\t\n\t\t\t\tn=rightend(root);\n\t\t\t\tNode t=root;\n\t\t\t\twhile( t!=n){\n\t\t\t\t\tif(t.key.compareTo(key)>0 && t!=root){\n\t\t\t\t\t\tbreak;}\n\t\t\t\telse{\n\t\t\t\t\tt=t.right;\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn=t;\n\t\t\t\t\n\t\t\t\tif(n.key.compareTo(key)<0){\n\t\t\t\t\t\n\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tn.right.parent=n;\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tn=leftend(n);\n\t\t\t\t\tif(n.key.compareTo(key)>0){\n\t\t\t\t\tcheck=-1;\n\t\t\t\t\tn.left=new Node(key,value);\n\t\t\t\t\tn.left.parent=n;\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcheck=1;\n\t\t\t\t\tn.right=new Node(key,value);\n\t\t\t\t\tn.rank++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tn.right.parent=n;\t\t\t\t\n\t\t\t\t\tbalanceCheck(n);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn v;\t\n\t}",
"@Override\n public void Add(String key, Integer value) throws InvalidKeyException {\n if(Contains(key))\n throw new InvalidKeyException(\"Key already exists\");\n\n // Adding the new key/value node\n if(head == null)\n head = new Node(key, value);\n else{\n Node new_node = new Node(key, value);\n new_node.next = head;\n head = new_node;\n }\n\n // increment count\n count++;\n }",
"public NonEmptyTree<K, V> add(Tree<K, V> t, K key, V value) {\n\t\tif (key.compareTo(this.key) == 0) {\n\t\t\treturn new NonEmptyTree<K, V>(key, value, left, right);\n\t\t} else if (key.compareTo(this.key) < 0) {\n\t\t\tleft = left.add(left, key, value);\n\t\t\treturn this;\n\t\t} else {\n\t\t\tright = right.add(right, key, value);\n\t\t\treturn this;\n\t\t}\n\t}",
"public void insert(T key, U data){\n\t\t\n\t\tAVLNode<T, U> parent = null;\n\t\tAVLNode<T, U> node = this.root;\n\t\tAVLNode<T, U> newNode = new AVLNode<T, U>(key, data);\n\t\t\n\t\tthis.amountOfNodes++;\n\t\t\n\t\twhile(node != null){\n\t\t\tparent = node;\n\t\t\tif(newNode.getKey().compareTo(node.getKey()) < 0){\n\t\t\t\tnode = node.getLeft();\n\t\t\t}else{\n\t\t\t\tnode = node.getRight();\n\t\t\t}\n\t\t}\n\t\t\n\t\tnewNode.setParent(parent);\n\t\t\n\t\tif(parent == null){ //It is the first element of the tree.\n\t\t\tthis.root = newNode;\n\t\t}else if(newNode.getKey().compareTo(parent.getKey()) < 0){\n\t\t\tparent.setLeft(newNode);\n\t\t}else{\n\t\t\tparent.setRight(newNode);\n\t\t}\n\t\tcomputeHeights(newNode);\n\t\tthis.balanceTree(parent);\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n private Node insertHelperSize1(Key key, Value value) {\r\n Node tmp;\r\n if(key.compareTo(keys[0]) < 0) { // add key:value before contents\r\n tmp = children[0].insert(key,value);\r\n if(tmp != children[0]) { // merge interior node that bubbled up\r\n InteriorNode merge = (InteriorNode)tmp;\r\n setKeyValuePairs(merge.keys[0],merge.values[0],keys[0],values[0]);\r\n setChildren(merge.children[0],merge.children[1],children[1]);\r\n }\r\n } else { // add key:value after contents\r\n tmp = children[1].insert(key,value);\r\n if(tmp != children[1]) { // merge interior node that bubbled up\r\n InteriorNode merge = (InteriorNode)tmp;\r\n setKeyValuePairs(keys[0],values[0],merge.keys[0],merge.values[0]);\r\n setChildren(children[0],merge.children[0],merge.children[1]);\r\n }\r\n }\r\n return this;\r\n }",
"public void put(int key) { root = put(root, key); }",
"public boolean insert(T key, E value) {\r\n\t\t// Creating a Node\r\n\t\tRBNode<T, E> insertedNode = createRBNode(key, value);\r\n\t\t// First Node will be the Root\r\n\t\tif (checkSize(this.size)) {\r\n\t\t\tthis.root = insertedNode;\r\n\t\t\tinsertedNode.leftChild = nillLeaf;\r\n\t\t\tinsertedNode.rightChild = nillLeaf;\r\n\t\t} else {\r\n\t\t\tRBNode<T, E> parent = nillLeaf;\r\n\t\t\tRBNode<T, E> current = root;\r\n\t\t\twhile (current != nillLeaf) {\r\n\t\t\t\tSystem.out.println(\"Test1\");\r\n\t\t\t\t// add to left\r\n\t\t\t\tif (key.compareTo(current.getUniqueKey()) < 0) {\r\n\t\t\t\t\tSystem.out.println(\"Test2\");\r\n\t\t\t\t\tparent = current;\r\n\t\t\t\t\tcurrent = current.leftChild;\r\n\t\t\t\t}\r\n\t\t\t\t// add to right\r\n\t\t\t\telse if (key.compareTo(current.getUniqueKey()) > 0) {\r\n\t\t\t\t\tSystem.out.println(\"Test3\");\r\n\t\t\t\t\tparent = current;\r\n\t\t\t\t\tcurrent = current.rightChild;\r\n\t\t\t\t} else\r\n\t\t\t\t\tSystem.out.println(\"Test4\");\r\n\t\t\t\t\t// return if the key is a duplicate\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Add a node to the root.\r\n\t\t\tif (key.compareTo(current.getUniqueKey()) < 0) {\r\n\t\t\t\tSystem.out.println(\"Test5\");\r\n\t\t\t\tparent.leftChild = insertedNode;\r\n\t\t\t\tinsertedNode.parent = parent;\r\n\t\t\t\tinsertedNode.leftChild = nillLeaf;\r\n\t\t\t\tinsertedNode.rightChild = nillLeaf;\r\n\t\t\t} else {\r\n\t\t\t\tparent.rightChild = insertedNode;\r\n\t\t\t\tinsertedNode.parent = parent;\r\n\t\t\t\tinsertedNode.leftChild = nillLeaf;\r\n\t\t\t\tinsertedNode.rightChild = nillLeaf;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.size++;\r\n\t\treturn true;\r\n\t}",
"public Node(Key key, Value value) {\n\t this.key = key;\n\t this.value = value;\n }",
"private Node<K, D> add(K key, D data, Node<K, D> root) {\n if (root == null)\n return new Node<K, D>(key, data);\n int c = key.compareTo(root.key);\n if (c <= 0) {\n root.left = add(key, data, root.left);\n return root;\n } else { // c > 0\n root.right = add(key, data, root.right);\n return root;\n }\n }",
"public void add(T t) {\n if (root.getNumKeys() == 4 && root.isLeaf()) {\n BTreeNode<T> newRoot = new BTreeNode(false);\n\n newRoot.setChild(root, 0);\n\n insercionOrdenada(root, t);\n splitChild(newRoot, root, 0);\n\n this.root = newRoot;\n } else {\n insertarKey(root, t);\n }\n }",
"public boolean insert(Integer key, String value) {\n\t\treturn root.insert(key, value);\n\t}",
"abstract void insert(K key, V value);",
"abstract void insert(K key, V value);",
"private Node add(Node node, K k, V v, int depth){\n if(node == null){ //null then create\n Node newNode = new Node(k,v);\n newNode.depth = depth;\n newNode.size++; // update size of new node\n return newNode;\n }\n// recursively add\n if(k.compareTo(node.k)<0){ // less, add left\n node.left = add(node.left, k, v, depth+1);\n }\n else if(k.compareTo(node.k)>0) { // greater, add right\n node.right = add(node.right, k,v, depth+1);\n }else{\n if(allowCount)node.count++; //equal then add count 1\n }\n\n if(allowCount){\n node.size++; //any e will be added\n }else\n node.size = 1 + size(node.left) + size(node.right);\n return node; //not null, value equal, then return node itself\n }",
"public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}",
"public void push(String keyName, ValueWrapper valueWrapper) {\n\t\tmap.compute(keyName, (key, old) -> old == null ? \n\t\t\t\tnew MultistackEntry(null, valueWrapper) : new MultistackEntry(old, valueWrapper));\n\t}",
"@Override\n public void put(K key, V value) {\n // Note that the putHelper method considers the case when key is already\n // contained in the set which will effectively do nothing.\n root = putHelper(root, key, value);\n size += 1;\n }",
"public void put(String key) {\n\t root = put(root, key, 0);\n\t }",
"public void insert(int key){\n\t\tif(this.root == null){\n\t\t\tNode r = new Node(key);\n\t\t\tthis.root = r;\t\n\t\t}else{\n\t\t\t//if not recursively insert the node\n\t\t\trecInsert(this.root, key);\n\t\t}\n\t\treturn;\n\t}",
"public void insert(int key)\n {\n root = insertRec(root,key);\n }",
"void add(KeyType key, ValueType value);",
"public void add(T value) {\n final Node node = new Node(value);\n if (root != null) {\n root.add(node);\n } else {\n root = node;\n }\n }",
"boolean add(Object key, Object value);",
"protected Node<K, V> insert(K k, V v) {\n // if the given key is smaller than this key\n if (this.c.compare(k, this.key) < 0) {\n return new Node<K, V>(this.key, \n this.value, \n this.c, \n this.left.insert(k, v), \n this.right,\n this.black).balance();\n }\n // if the given key is equal to this key, set \n // this key's value to the given value\n else if (this.c.compare(k, this.key) == 0) {\n return new Node<K, V>(k, v, \n this.c, \n this.left, \n this.right, \n this.black);\n }\n // if the given key is bigger than this key\n else {\n return new Node<K, V>(this.key, \n this.value, \n this.c, \n this.left, \n this.right.insert(k, v), \n this.black).balance();\n }\n }",
"public void insert(int key) {\n\t\tprivateInsert(key, root, null, new Ref<Integer>(1));\n\t}",
"public boolean add(T value) {\n NodePair<T> spl = split(root, value);\n\n if (spl.second != null && getLeft(spl.second).value.compareTo(value) == 0) {\n root = merge(spl.first, spl.second);\n return false;\n }\n\n root = merge(spl.first, merge(makeNode(value), spl.second));\n return true;\n }",
"public void put(int key, int value) {\n int hash = key % 1024;\n TreeNode treeNode = array[hash];\n if (treeNode == null) {\n array[hash] = new TreeNode(value);\n }\n if (value > treeNode.value) {\n\n }\n\n }",
"public final V put(final E key, final V value) {\r\n if (key == null) throw new NullPointerException();\r\n Node<E, V> p, l, newchild;\r\n Info<E, V> pinfo;\r\n int pindex; // index of the child of p that points to l\r\n\r\n while (true) {\r\n // search\r\n p = root;\r\n pinfo = p.info;\r\n l = p.c.get(0);\r\n while (l.c != null) {\r\n p = l;\r\n l = child(key, l);\r\n }\r\n\r\n // - read pinfo once instead of every iteration of the previous loop\r\n // then re-read and verify the child pointer from p to l\r\n // (so it is as if p.info were read first)\r\n // and also store the index of the child pointer of p that points to l\r\n pinfo = p.info;\r\n Node<E,V> currentL = p.c.get(p.kcount);\r\n pindex = p.kcount;\r\n for (int i=0;i<p.kcount;i++) {\r\n if (less(key, (E)p.k[i])) {\r\n currentL = p.c.get(i);\r\n pindex = i;\r\n break;\r\n }\r\n }\r\n\r\n if (l != currentL) continue;\r\n\r\n if (pinfo != null && pinfo.getClass() != Clean.class) {\r\n help(pinfo);\r\n } else if (l.hasKey(key)) {\r\n\r\n // REPLACE INSERTION\r\n newchild = new Node<E, V>(key, value, l, true); // true means key is already in node l\r\n\r\n // flag and perform the insertion\r\n final IInfo<E, V> newPInfo = new IInfo<E, V>(l, p, newchild, pindex);\r\n if (infoUpdater.compareAndSet(p, pinfo, newPInfo)) {\t // [[ iflag CAS ]]\r\n helpInsert(newPInfo);\r\n return l.getValue(key);\r\n } else {\r\n // help current operation first\r\n help(p.info);\r\n }\r\n } else {\r\n // SPROUTING INSERTION\r\n if (l.kcount == K-1) { // l is full of keys\r\n // create internal node with K children sorted by key\r\n newchild = new Node<E, V>(key, value, l);\r\n \r\n // SIMPLE INSERTION\r\n } else {\r\n // create leaf node with sorted keys\r\n // (at least one key of l is null and, by structural invariant,\r\n // nulls appear at the end, so the last key is null)\r\n newchild = new Node<E, V>(key, value, l, false); // false means key is not in l\r\n }\r\n\r\n // flag and perform the insertion\r\n final IInfo<E, V> newPInfo = new IInfo<E, V>(l, p, newchild, pindex);\r\n if (infoUpdater.compareAndSet(p, pinfo, newPInfo)) {\t // [[ iflag CAS ]]\r\n helpInsert(newPInfo);\r\n return null;\r\n } else {\r\n // help current operation first\r\n help(p.info);\r\n }\r\n }\r\n }\r\n }",
"public Node put(final Node x, final Book key, final String value) {\n if (x == null) {\n return new Node(key, value, 1);\n }\n int cmp = key.getName().compareTo(x.getKey().getName());\n if (cmp < 0) {\n x.setLeft(put(x.getLeft(), key, value));\n }\n if (cmp > 0) {\n x.setRight(put(x.getRight(), key, value));\n }\n if (cmp == 0) {\n x.setValue(value);\n }\n x.setCount(1 + count(x.getLeft()) + count(x.getRight()));\n return x;\n }",
"public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }",
"public void add(Key key, Value value) {\n\n\t\tif (2 * this.size > this.capacity) {\n\t\t\tresize(2 * this.capacity);\n\t\t}\n\n\t\t// Add this item to the hash table in the expected location.\n\n\t\tint index = locate(key);\n\t\tthis.keys[index] = key;\n\t\tthis.values[index] = value;\n\t\tthis.size++;\n\t}",
"void add(String key);",
"public void add(E val){\n if(mData.compareTo(val) > 0){\n if(mLeft == null){\n mLeft = new BSTNode(val);\n mLeft.mParent = this;\n }//End if null\n else if(mRight == null){\n mRight = new BSTNode(val);\n mRight.mParent = this;\n }//End Else\n }//End if\n else{\n mLeft.add(val);\n mLeft.mParent = this;\n }//End Else\n }",
"public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}",
"@Override\n @SuppressWarnings(\"Duplicates\")\n public void define(K key, V value) {\n if(size == 0) {root = new TreeNode<>(new KeyValuePair<>(key, value)); size++;}\n else {\n TreeNode<KeyValuePair<K, V>> previous = root;\n TreeNode<KeyValuePair<K, V>> current = root;\n boolean smaller = false;\n// System.out.println(\"Define while init\");\n while(true) {\n// System.out.println(\"Loop. Current = \" + current);\n if(current == null) {\n// System.out.println(\"Current == null\");\n if(smaller) previous.setLeft(new TreeNode<>(new KeyValuePair<>(key, value)));\n else previous.setRight(new TreeNode<>(new KeyValuePair<>(key, value)));\n size++;\n break;\n }\n previous = current;\n if(key.compareTo(current.getValue().getKey()) < 0) {\n smaller = true;\n current = current.getLeft();\n } else if(key.compareTo(current.getValue().getKey()) > 0) {\n smaller = false;\n current = current.getRight();\n } else if (key.equals(current.getValue().getKey())) {\n// System.out.println(\"Such a key-value pair already exists\");\n current.getValue().setValue(value);\n break;\n }\n }\n }\n }",
"public void put(Key key, Value val)\t//put key-value pair in the table\n\t{\t\n\t/*\n\t * Tree shape: Many BSTs can correspond to the same set of keys.\n\t * <li>Number of compares for search/insert is equal to 1+depth of node.\n\t * <li>Worst case when keys entered in order\n\t */\n\t\troot=put(root,key,val);\n\t}",
"public void push(String keyName, ValueWrapper valueWrapper) {\n\t\tvar value = multistack.get(keyName);\n\t\tif(value == null) {\n\t\t\tmultistack.put(keyName, new MultistackEntry(valueWrapper, null));\n\t\t}\n\t\telse {\n\t\t\tmultistack.put(keyName, new MultistackEntry(valueWrapper, value));\n\t\t}\n\t}",
"private Node put(Node x, String key, int d, Value val) {\n if (x == null) x = new Node(); //no node exist, create\n if (d == key.length()) x.val = val; //update node value\n else {\n char c = key.charAt(d);\n x.links[c] = put(x.links[c], key, d+1, val);\n }\n return x; //return updated node\n }",
"public void put(String key, Value val) {\n root = put(root, key, 0, val);\n }",
"void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }",
"public void insert(Integer key){\r\n\t\tint start=this.root;\r\n\t\tint currentPos=avail;\r\n\t\tint temp=-1;\r\n\t\twhile(increaseCompares() && start!=-1) {\r\n\t\t\ttemp=start;\r\n\t\t\tcompares++;\r\n\t\t\tif(increaseCompares() && key<getKey(start)) {\r\n\t\t\t\tstart=getLeft(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstart=getRight(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Tree is empty. New Node is now root of tree\r\n\t\tif(increaseCompares() && temp==-1) {\r\n\t\t\tsetRoot(0);\r\n\t\t\tcompares++;\r\n\t\t\tsetKey(avail, key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\t//Compare values and place newNode either left or right of previous Node\r\n\t\telse if(increaseCompares() && key<getKey(temp)) {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetLeft(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetRight(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t}",
"public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }",
"public void putIfAbsent(T item) {\n synchronized(this) {\n _treeSet.add(item);\n }\n }",
"public void addKeyValue (String key, String value){\r\n\t\tcodebook.put(key, value);\r\n\t}",
"@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }",
"public static void insert(TreeNode root, int key) {\n\t\tcounter++;\r\n\r\n\t\t// key less than the value of root.\r\n\t\tif (key < root.item) {\r\n\t\t\tif (root.left == null) {\r\n\t\t\t\tTreeNode node = new TreeNode(null, key, null);\r\n\t\t\t\troot.left = node;\r\n\t\t\t} else {\r\n\t\t\t\tinsert(root.left, key);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (root.right == null) {\r\n\t\t\t\tTreeNode node = new TreeNode(null, key, null);\r\n\t\t\t\troot.right = node;\r\n\t\t\t} else {\r\n\t\t\t\tinsert(root.right, key);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void insert(K key) {\n try {\n this.rootNode = insertNode(this.rootNode, key);\n } catch (DuplicateKeyException e) {\n System.out.println(e.getMessage());\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }",
"public Tree<T> add(T value) {\n checkForNull(value);\n\n if (childrenValueSet.contains(value)) {\n return null;\n }\n\n Tree<T> tree = new Tree<>(value, this);\n incModificationCount();\n\n return tree;\n }",
"public void insert(int key)\n\t{\n\t\tTreeHeapNode newNode = new TreeHeapNode();\n\t\tnewNode.setKey(key);\n\t\tif(numNodes == 0) root = newNode;\n\t\telse\n\t\t{\n\t\t\t//find place to put newNode\n\t\t\tTreeHeapNode current = root;\n\t\t\tint n = numNodes+1;\n\t\t\tint k;\n\t\t\tint[] path = new int[n];\n\t\t\tint j = 0;\n\t\t\twhile(n >= 1)\n\t\t\t{\n\t\t\t\tpath[j] = n % 2;\n\t\t\t\tn /= 2;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t//find parent of new child\n\t\t\tfor(k = j-2; k > 0; k--)\n\t\t\t{\n\t\t\t\tif(path[k] == 1)\n\t\t\t\t\tcurrent = current.rightChild;\n\t\t\t\telse\n\t\t\t\t\tcurrent = current.leftChild;\n\t\t\t}\n\t\t\t//find which child new node should go into\n\t\t\t\n\t\t\tif(current.leftChild != null)\n\t\t\t{\n\t\t\t\tcurrent.rightChild = newNode;\n\t\t\t\tnewNode.isLeftChild = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcurrent.leftChild = newNode;\n\t\t\t\tnewNode.isLeftChild = true;\n\t\t\t}\n\t\t\tnewNode.parent = current;\n\t\t\t\n\t\t\ttrickleUp(newNode);\n\t\t}\n\t\tnumNodes++;\n\t}",
"public void add(String k, String v) throws RemoteException, Error;",
"public void insert (K k, V v) {\n\t\tif (root == null) {\n\t\t\troot = myInsert(root, k, v);\n\t\t} \n\t\telse {\n\t\t\tmyInsert(root, k, v);\n\t\t}\n\t}",
"public void insert(T key) {\r\n RBNode<T> node = new RBNode<>(key, RED, null, null, null);\r\n if(node != null)\r\n insert(node);\r\n }",
"public boolean add(K key, V value){\r\n int loc = find(key);\r\n if(needToRehash()){\r\n rehash();\r\n }\r\n Entry<K,V> newEntry = new Entry<>(key,value);\r\n if(hashTable[loc]!= null && hashTable[loc].equals(key))\r\n return false;\r\n else{\r\n hashTable[loc] = newEntry;\r\n size++;\r\n return true;\r\n }\r\n }",
"static TreeNode insert(TreeNode node, int key) \n\t{ \n\t // if tree is empty return new node \n\t if (node == null) \n\t return newNode(key); \n\t \n\t // if key is less then or grater then \n\t // node value then recur down the tree \n\t if (key < node.key) \n\t node.left = insert(node.left, key); \n\t else if (key > node.key) \n\t node.right = insert(node.right, key); \n\t \n\t // return the (unchanged) node pointer \n\t return node; \n\t}",
"public V add(K key, V value)\n { \n checkInitialization();\n if ((key == null) || (value == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null; \n int keyIndex = locateIndex(key); \n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n {\n // Key found; return and replace entry's value\n result = dictionary[keyIndex].getValue(); // Get old value\n dictionary[keyIndex].setValue(value); // Replace value \n }\n else // Key not found; add new entry to dictionary\n { \n makeRoom(keyIndex);\n dictionary[keyIndex] = new Entry(key, value);\n numberOfEntries++;\n ensureCapacity(); // Ensure enough room for next add\n } // end if \n return result;\n } // end if\n }",
"@Override\n\tpublic void add(Integer value) {\n\t\troot=add(root,value);\n\t\tcount++;\n\t}",
"public void add(int value){\n \n // Case 1: The tree is empty - allocate the root\n if(root==null){\n root = new BSTNode(value);\n }\n \n // Case 2: The tree is not empty \n // find the right location to insert value\n else{\n addTo(root, value);\n } \n count++; // update the number of nodes\n }",
"public MapComp<K, V> add(K k, V v) {\n return new MapBST<K, V>(this.bst.add(new KVPairof<>(k, v)));\n }",
"private void insertAux2(K key, V val) {\n if(root == null) { //empty tree\n X = new Node(key, val);\n root = X;\n return;\n }\n Node temp = root;\n while(true) {\n int cmp = key.compareTo(temp.key);\n if (cmp < 0 && temp.left != null) { //go left\n comparisons += 1;\n temp = temp.left;\n } else if (cmp < 0 && temp.left == null) { //it goes in the next left\n comparisons += 1;\n X = new Node(key, val);\n temp.left = X;\n X.parent = temp;\n break;\n }\n if (cmp > 0 && temp.right != null) { //go right\n comparisons += 1;\n temp = temp.right;\n } else if (cmp > 0 && temp.right == null) { //it goes in the next right\n comparisons += 1;\n X = new Node(key, val);\n temp.right = X;\n X.parent = temp;\n break;\n }\n if(cmp == 0) { //no doubles, overlap pre-existing node\n comparisons += 1;\n temp.key = key;\n temp.val = val;\n X = temp;\n break;\n }\n }\n }",
"public HPTNode<K, V> insert(List<K> key) {\n check(key);\n init();\n int size = key.size();\n HPTNode<K, V> current = root;\n for (int i = 0; i < size; i++) {\n HPTNode<K, V> result = find(current, i, key.get(i), true);\n current.maxDepth = Math.max(current.maxDepth, size - i);\n current = result;\n }\n return current;\n }",
"public void addKey(Node target, String key, String value){\n\t\tElement child = (Element) target;\n\t\tchild.setAttribute(key, value);\n\t\twrite();\n\t}",
"public void insert(K k, V v) {\n if (k == null) {\n throw new IllegalArgumentException();\n }\n Item<K,V> i = new Item<K,V>(k, v);\n size += 1;\n if (root == null) {\n root = i;\n return;\n }\n\n Item<K,V> x = root;\n Item<K,V> p = root;\n while (true) {\n if (x == null) {\n break;\n }\n p = x;\n // less than\n if (x.getK().compareTo(k) <= 0){ \n x = x.getR();\n } else {\n x = x.getL();\n }\n }\n i.setP(p);\n if (p.getK().compareTo(k) <= 0){\n p.setR(i);\n } else {\n p.setL(i);\n }\n }"
] | [
"0.7845929",
"0.77158356",
"0.7335465",
"0.7289132",
"0.7205823",
"0.7147434",
"0.7110337",
"0.7073955",
"0.70708966",
"0.6966852",
"0.69657683",
"0.6910254",
"0.69093853",
"0.68754417",
"0.6839094",
"0.67775595",
"0.67697906",
"0.6762102",
"0.67070043",
"0.6700125",
"0.6686027",
"0.66525465",
"0.6630233",
"0.6622622",
"0.65751946",
"0.657417",
"0.653566",
"0.6535414",
"0.6523942",
"0.6457524",
"0.6407721",
"0.6378934",
"0.6375025",
"0.63607633",
"0.6355068",
"0.63500106",
"0.6346701",
"0.632517",
"0.63094467",
"0.6299573",
"0.6297915",
"0.6292686",
"0.62898636",
"0.62841845",
"0.6279762",
"0.6214908",
"0.62105334",
"0.6186514",
"0.61646605",
"0.61597276",
"0.61597276",
"0.6152533",
"0.61490905",
"0.613941",
"0.6133932",
"0.6118516",
"0.61042434",
"0.6100354",
"0.60999686",
"0.60949117",
"0.6080222",
"0.6078434",
"0.6074753",
"0.60620135",
"0.60526454",
"0.6026479",
"0.6022052",
"0.60166466",
"0.60082877",
"0.60079545",
"0.6007632",
"0.6002783",
"0.6001336",
"0.598008",
"0.59673387",
"0.59663236",
"0.59652734",
"0.59481686",
"0.5946109",
"0.5943916",
"0.5934299",
"0.5931389",
"0.5925987",
"0.5914263",
"0.59097844",
"0.5905254",
"0.58980715",
"0.58913994",
"0.58749145",
"0.587201",
"0.58691615",
"0.5868521",
"0.5854475",
"0.58417636",
"0.58231413",
"0.5823082",
"0.5809637",
"0.5808923",
"0.5805378",
"0.58042824"
] | 0.64539015 | 30 |
Gets the value for the key | public T getValue(String key) {
Node node = getNode(root, key, 0);
return node == null ? null : node.value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Value get(Key key);",
"public V getValue(K key);",
"public V getValue(K key);",
"public Value get(Key key) ;",
"String getValue(String type, String key);",
"public String get(String key) {\n return getData().get(key);\n }",
"public V get(K key);",
"public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V result = null;\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n result = node.getData().value;\n }\n\n return result;\n\n }",
"public Value get(Value key) {\n\t\treturn storage.get(key);\n\t}",
"public V get(String key);",
"public V getValue(Object key) {\n\t\treturn super.get(key);\n\t}",
"V get(Object key);",
"public Object get(String key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public V getValue(K key)\n {\n V result = null;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n result = dictionary[keyIndex].getValue();\n return result;\n }",
"public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"V get(final K key);",
"private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }",
"public String getValue(String key) {\r\n\t\t\treturn prop.getProperty(key);\r\n\t\t}",
"String get(Integer key);",
"Object get(String key);",
"Object get(String key);",
"public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}",
"public String get(String key) {\n return this.map.get(key);\n }",
"@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}",
"public Object get(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null)\n\t\t\treturn null;\n\t\treturn value.value;\n\t}",
"public V get(K key) {\n V value = null;\n\n if (key != null) {\n int index = indexFor(key);\n if (container[index] != null) {\n value = (V) container[index].value;\n }\n }\n return value;\n }",
"<T> T getValue(DataKey<T> key);",
"public V get(Object key) { return _map.get(key); }",
"public native V get(K key);",
"public int get(int key) {\n return store[key]; // get the value for the key\n }",
"public V get(K key) {\r\n\t\t\tif (key == null) {\r\n\t\t\t\tthrow new NullPointerException();\r\n\t\t\t} else if (find(key) == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\treturn find(key).value;\r\n\t\t\t}\r\n\t\t}",
"public abstract V get(K key);",
"Object get(Object key);",
"public V value(K key) {\n for(MapEntry<K, V> t : this) {\n if (t == null) continue;\n if (t.key().equals(key)) return t.value();\n }\n\n return null;\n }",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"String getValue(Key key) {\n return this.parameters.get(key);\n }",
"public static String getValue(String key) {\r\n\t\tload();\r\n\t\treturn properties.getProperty(key);\r\n\t}",
"public V get(K key) throws InvalidKeyException;",
"public Value get(Key key) {\r\n\t\t\tValue ret = null;\r\n\t\t\t\r\n\t\t\tdata.reset();\r\n\t\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\t\tif (data.get().getKey().compareTo(key) == 0) {\r\n\t\t\t\t\tret = data.get().getValue();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdata.next();\r\n\t\t\t}\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\treturn ret;\r\n\t\t}",
"protected abstract V get(K key);",
"public String getValue(final String key)\r\n {\r\n m_keys.addElement(key);\r\n return m_value;\r\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public Value get(String key)\r\n {\r\n if (key.equals(\"\")) return null_str_val;\r\n Node<Value> x = get(root, key, 0);\r\n return x == null ? null : x.val;\r\n }",
"public V getValue(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\t\r\n\t\tif (slot < 0) \r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tMapEntry<K, V> e = table[slot];\r\n\t\treturn e.getValue();\r\n\t}",
"public V get(K key){\n\t\t\n\n\t\tNode n=searchkey(root, key);\n\n\t\t\n\t\tif(n!=null && n.value!=null){\n\t\t\treturn n.value;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"public T get(K key);",
"V getValue(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return (V)v[i];\r\n }\r\n return null;\r\n }",
"public V get(K key) {\n int index = findIndex(key);\n if (keys[index] == null)\n return null;\n else\n return values[index];\n }",
"public CompoundValue getValue(Object key);",
"public String get(String key) {\n return mMap.get(key);\n }",
"public V getValue(K key) {\n int i = findPosition(key);\n if (i==DsConst.NOT_FOUND) {\n return null;\n }\n DictionaryPair p = list.get(i);\n return p.getValue();\n }",
"public java.lang.String getKeyValue() {\n return keyValue;\n }",
"public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public String getValue(final String key) {\n\n\t\treturn config.getString(StringUtils.lowerCase(key));\n\t\t\t}",
"public String getValue(String key) {\n\t\t\treturn properties.get(key);\n\t\t}",
"public V getValue( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\t\r\n\t}",
"public String get(String key) {\n \ttmp = getNode(key);\n \tif (tmp != null) { \n \t\treturn tmp.getVal();\n \t}\n \treturn null;\n }",
"private V get(K key) {\n\t\t\tif (keySet.contains(key)) {\n\t\t\t\treturn valueSet.get(keySet.indexOf(key));\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"StoragePrimitive get(String key);",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public V get(final K key)\n {\n final StackElement element = this.hashMap.get(key);\n\n if (element != null)\n {\n return element.value;\n }\n\n return null;\n }",
"public String get(String key) {\n return this._map.get(key);\n }",
"public V get(K key) {\n if (key == null) {\n MyEntry<K, V> entry = null;\n try {\n entry = bucket[0];\n if (entry != null) {\n return entry.getValue();\n }\n } catch (NullPointerException e) {\n }\n } else {\n // other keys\n MyEntry<K, V> entry = null;\n int location = hashFunction(key.hashCode());\n entry = bucket[location];\n if (entry != null && entry.getKey() == key) {\n return entry.getValue();\n }\n }\n return null;\n }",
"public final synchronized V get(final K key) {\n\t\treturn map.get(key);\n\t}",
"public java.lang.String getKeyValue() {\n return keyValue;\n }",
"public V get(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\tif (entries[n] == null)\n\t\t\treturn null;\n\t\t\n\t\tfor (Entry e : entries[n])\n\t\t{\n\t\t\tif (key.equals(e.key) == true)\n\t\t\t\treturn e.value;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}",
"public String getValue(String key) {\n\t\tfinal Iterator<Map.Entry<String, String>> iter = entries.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tfinal Map.Entry<String, String> entry = iter.next();\n\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void get(String key){\n KeyValueObj obj = this.handler.getObj(key);\n if (obj == null){\n System.out.println(\"[User] value with key \" + key + \" was not found\");\n return;\n }\n System.out.println(obj.toString());\n }",
"public Object getValue(String key)\n {\n if (otherDetails == null)\n {\n return null;\n }\n else\n {\n return otherDetails.get(key);\n }\n }",
"final String get(String key) {\n return get(key,null);\n }",
"public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Optional<Value> get(Key k) {\n\t\treturn bst.find(k);\n\t}",
"@Override\r\n public V get(K key){\r\n // Return the value given by overloaded get function\r\n return get(root, key);\r\n }",
"public V get(K key) {\n\t\treturn table.get(calcIndex(key)).get(key);\n\t}",
"public String getValue(String keyName)\n {\n if (keyName == null || keyName.trim().length() == 0)\n throw new IllegalArgumentException(\"keyName may not be null or empty\");\n\n String keyValue = null;\n\n for (int i=0; i < m_keyNames.size(); i++)\n {\n if (((String)m_keyNames.get(i)).equals(keyName))\n {\n keyValue = (String)m_keyValues.get(i);\n break;\n }\n }\n\n return keyValue;\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"T get(String key);",
"@Override\n public V get(K key) {\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[Math.floorMod(key.hashCode(), entryArr.length)];\n return pointer.stream().filter(x->x.key.equals(key))\n .collect(Collectors.toList()).get(0).value;\n }\n return null;\n }",
"public Value get(String key) {\n Node x = get(root, key, 0);\n if (x == null) return null; //node does not exist\n else return (Value) x.val; //found node, but key could be null\n }",
"public V get(String key) {\n int index = hashOf(key);\n if (index >= capacity) return null;\n return (V) values[index];\n }",
"@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}",
"public Serializable get(String key) throws ValueRetrievalException\n {\n Request req = new Request(key, \"get\", id);\n\n Response resp = sender.sendMessage(req, TIMEOUT);\n\n if(!resp.responseCode() || resp.getItems() == null)\n {\n throw new ValueRetrievalException(resp.getResponseMessage());\n }\n\n return resp.getItems().get(0);\n }",
"public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }",
"public V get(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return null;\n }\n\n if (!entry.hasNext()) {\n return entry.getValue();\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return entry.getValue();\n entry = entry.getNext();\n }\n\n if (entry.getKey().equals(key))\n return entry.getValue();\n\n return null;\n }",
"T get(@NonNull String key);",
"@Override\r\n public V get(Object key) {\r\n return get(key,table);\r\n }",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }",
"public Value get(final Key key) {\n int r = rank(key);\n if (r < size && (keys[r].compareTo(key) == 0)) {\n return values[r];\n }\n return null;\n }",
"@Override\n public V get(K key) {\n return get(root, key);\n }",
"public String get(String key) {\n Node pos = find(key);\n if (pos == null) {\n return null;\n } else {\n return pos.pairStringString.getValue();\n }\n }"
] | [
"0.81906235",
"0.80345047",
"0.80345047",
"0.7962681",
"0.7726903",
"0.767447",
"0.7668869",
"0.7646224",
"0.7629525",
"0.7623098",
"0.7580264",
"0.75735337",
"0.7557683",
"0.7522518",
"0.7522518",
"0.7522518",
"0.7522518",
"0.7522518",
"0.7522518",
"0.7522518",
"0.7519215",
"0.75148827",
"0.7514611",
"0.7507398",
"0.7474342",
"0.7463206",
"0.74480265",
"0.74480265",
"0.74385244",
"0.74238116",
"0.7416412",
"0.7409265",
"0.7403782",
"0.74017656",
"0.7348025",
"0.73331016",
"0.73233294",
"0.73220485",
"0.73147637",
"0.7309529",
"0.7271041",
"0.7268561",
"0.72559506",
"0.72537756",
"0.7250617",
"0.7248699",
"0.72479486",
"0.72395533",
"0.7228975",
"0.7213437",
"0.72060615",
"0.7195217",
"0.7186778",
"0.71856135",
"0.7179199",
"0.71762043",
"0.71742415",
"0.7138256",
"0.70985144",
"0.70931077",
"0.7090583",
"0.7089904",
"0.7054907",
"0.7050967",
"0.7029618",
"0.70239925",
"0.70125663",
"0.70093113",
"0.70083517",
"0.70054",
"0.7005138",
"0.6985779",
"0.697697",
"0.69726884",
"0.6971963",
"0.6961964",
"0.69613504",
"0.6945858",
"0.6938467",
"0.6935084",
"0.69334936",
"0.69232786",
"0.69211036",
"0.69022006",
"0.6894069",
"0.6885702",
"0.6881273",
"0.68782526",
"0.6858301",
"0.685332",
"0.6844664",
"0.683665",
"0.6830005",
"0.682148",
"0.6821282",
"0.68205404",
"0.68205345",
"0.68199116",
"0.6817966",
"0.6817906"
] | 0.74831706 | 24 |
Checks whether the key exists in the tree | public boolean contains(String key) {
return getValue(key) != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }",
"public boolean containsKey(String key) {\n \treturn (getNode(key) != null);\n }",
"@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }",
"@Override\n public boolean search(K key) {\n if (rootNode == null)\n return false;\n try {\n return exist(key, rootNode);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }",
"public boolean containsKey(TKey key) {\n return !(bstFind(key, mRoot) == null);\n }",
"public boolean contains(Key key) {\n return auxContains(root, key);\n }",
"public boolean contains(int key) { return contains(root, key); }",
"public final boolean containsKey(final E key) {\r\n if (key == null) throw new NullPointerException();\r\n Node<E,V> l = root.c.get(0);\r\n while (l.c != null) l = child(key, l); /* while l is internal */\r\n return l.hasKey(key);\r\n }",
"private boolean exist(K key, BSTNode<K> currentNode) throws IllegalArgumentException {\n // if key is null, throw an IllegalArgumentException\n if (key == null) {\n throw new IllegalArgumentException(\"Please input a valid key\");\n }\n \n switch (key.compareTo(currentNode.getId())) {\n case -1:\n if (currentNode.getLeftChild() != null)\n return exist(key, currentNode.getLeftChild());\n else\n return false;\n case 1:\n if (currentNode.getRightChild() != null)\n return exist(key, currentNode.getRightChild());\n else\n return false;\n case 0:\n return true;\n }\n \n return false;\n }",
"@Override\n public boolean contains(String key) {\n if (key == null || key.length() == 0 || root == null)\n return false;\n Node p = root;\n for (int i = 0; i < key.length(); i++) {\n char current = key.charAt(i);\n Node next = p.next.get(current);\n if (next == null) {\n return false;\n }\n p = next;\n }\n return p.isKey;\n }",
"@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean containsKey(Key key) ;",
"@Override\r\n\tpublic boolean exists(T key) {\r\n\t\treturn existsRec(raiz, key);\r\n\t}",
"private boolean containsKeyHelper(Node n, K key) {\n // base case\n if (n == null) {\n return false;\n }\n\n int compareResult = key.compareTo(n.key);\n if (compareResult == 0) {\n return true;\n } else if (compareResult < 0) {\n return containsKeyHelper(n.leftChild, key);\n } else {\n return containsKeyHelper(n.rightChild, key);\n }\n }",
"public boolean existsKey(String inKey);",
"boolean containsKey(Object key) throws NullPointerException;",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }",
"public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }",
"boolean hasKey(String key);",
"public abstract boolean containsKey(K key);",
"public boolean search(T key) {\r\n\t\tRBNode<T, E> c = root;\r\n\t\twhile (c != nillLeaf) {\r\n\t\t\t// If Node is less than the current Node then go left.\r\n\t\t\tif (key.compareTo(c.uniqueKey) < 0) {\r\n\t\t\t\t// we go left\r\n\t\t\t\tc = c.leftChild;\r\n\t\t\t}\r\n\t\t\t// If Node is bigger than the current Node then go right.\r\n\t\t\telse if (key.compareTo(c.uniqueKey) > 0) {\r\n\t\t\t\t// we go right\r\n\t\t\t\tc = c.rightChild;\r\n\t\t\t}\r\n\t\t\t// Else they are equal\r\n\t\t\telse {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// OtherWise return false, it doesnt exist.\r\n\t\treturn false;\r\n\t}",
"private boolean contains(TreeNode t, T key) {\n\t\tif (t == null) {\n\t\t\treturn false;\n\t\t} else if (t.myItem.compareTo(key) == 0) {\n\t\t\treturn true;\n\t\t} else if (t.myItem.compareTo(key) > 0) {\n\t\t\treturn contains(t.myLeft, key);\n\t\t} else {\n\t\t\treturn contains(t.myRight, key);\n\t\t}\n\t}",
"public boolean \n childExists\n (\n Comparable key\n ) \n {\n return pChildren.containsKey(key);\n }",
"@Override\r\n\tpublic boolean containsKey(Object key) {\r\n\t\tif (key == null) throw new NullPointerException();\r\n\t\treturn get(key) != null;\r\n\t}",
"public boolean contains(Key key);",
"public boolean contains(String key) {\r\n return attributeMap.containsKey(key)\r\n || (parent.isPresent() && parent.get().contains(key));\r\n }",
"boolean containsKey(K key);",
"boolean containsKey(K key);",
"public boolean containsKey(int key) {\n return getElement(key) != null;\n }",
"public boolean containsKey(String key);",
"boolean exists(Integer key);",
"public boolean contains(K key){\r\n int loc = find(key);\r\n if((hashTable[loc]!= null) && hashTable[loc].equals(key))\r\n return true;\r\n else\r\n return false;\r\n }",
"public native Boolean has(K key);",
"boolean containsKey(CoreLabel key);",
"public boolean containsKey(K key)\r\n\t{\r\n\t\treturn data.contains(new Entry(key,null));\r\n\t}",
"public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }",
"public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }",
"@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean contains(K key);",
"public boolean contains(int key) {\n int i = index(key);\n if(nodes[i] == null) {\n \treturn false;\n }\n Node prev = find(nodes[i], key);\n if(prev.next == null) {\n \treturn false;\n }\n return true;\n }",
"boolean has(String key);",
"private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}",
"boolean nameExists(Key name);",
"public boolean contains(String key)\r\n { return get(key) != null; }",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}",
"@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }",
"public synchronized boolean hasKey(K key) {\n return getValue(key) != null;\n }",
"public boolean contains(Key key) {\n return get(key) != null;\n }",
"boolean containsKey(long key);",
"boolean containsKeyLocalOnHeap(Object key);",
"public boolean contains(String key) {\n return find(key) != null;\n }",
"@Override\n public boolean containsKey(Object key) {\n LinkedList<Entry> tempBucket = chooseBucket(key);\n \n for(int i=0;i<tempBucket.size();i++) {\n \t\tEntry tempEntry = tempBucket.get(i);\n \t\t\n \t\tif(tempEntry.getKey() == key) {\n \t\t\treturn true;\n \t\t}\n \t}\n \n return false;\n }",
"public Boolean containsKey(K key) {\n return this.entries.ormap(kvp -> kvp.left.equals(key));\n }",
"@Override\n\tpublic boolean containsKey(Key k) {\n\t\treturn bst.has(k);\n\t}",
"public boolean containsKey(String key) {\n int keyBucket = hash(key);\n \n HashNode temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }",
"@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}",
"public boolean containsKey(K key) {\n\t\t\n\t\t\n\t\treturn keySet.contains(key);\n }",
"public boolean containsKey(K key) {\n return keys[findIndex(key)] != null;\n }",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn map.containsKey(key);\n\t}",
"public boolean containsKey(K key) {\r\n\t\tif (get(key) == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}",
"public boolean containsKey(Comparable key) { return this.store.containsKey(key); }",
"boolean containsKey(int key) throws ContentStoreException;",
"final boolean hasKey(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return true;\r\n }\r\n return false;\r\n }",
"public boolean search(String key){\n DataPair dp = getDataPair(key);\n BTNode out=null;\n if (dp != null)\n out = search(dp);\n return out != null;\n }",
"public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equals( key ) ) \n return true;\n \n return false;\n }",
"public boolean hasKey() {\n return key_ != null;\n }",
"public boolean containsKey(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn false;\r\n\t}",
"boolean containsKeyLocalOffHeap(Object key);",
"public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}",
"public boolean hasKey(String key) {\n return data.containsKey(key);\n }",
"public boolean contains(String key);",
"public boolean containsKey(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\treturn slot >= 0;\r\n\t}",
"public boolean containsKey(String key) throws Exception {\n //return properties.containsKey(key);\n if (config != null) {\n Configuration[] props = config.getChildren(\"property\");\n for (int i = 0; i < props.length; i++) {\n if (props[i].getAttribute(\"name\") != null && props[i].getAttribute(\"name\").equals(key)) return true;\n }\n }\n return false;\n }",
"public boolean contains(String key) {\n\t\treturn recContains(head, key);\n\t}",
"public boolean contains(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\treturn (entries[n] == null) ? false : entries[n].contains(new Entry(key, null));\n\t}",
"boolean hasTreeNodeId();",
"@Override\n public boolean isKeyPresent(K key){\n return (this.cache.get(key) != null);\n }",
"public boolean contains(long key){\n for (int i = 0; i < numKeys; i++){\n if (keys[i].key == key){\n return true;\n }\n }\n return false;\n }",
"public boolean containsKey(Object key)\n {\n // check if the cache needs flushing\n checkFlush();\n\n return getEntryInternal(key) != null;\n }",
"boolean containsInfo(\n int key);",
"@Override\r\n public boolean containsKey(K key) {\r\n int index = getIndex(key);\r\n if (index != -1) {\r\n IDictionary<K, V> temp = chains[index];\r\n if (temp!= null && temp.containsKey(key)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean hasProperty( String key );",
"public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }",
"public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}",
"@Override\n public boolean containsKey(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return false;\n }\n for (Entry<K,V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n return true;\n }\n }\n return false;\n }",
"static boolean tagExists(CompoundTag tag, String key) {\n return tag.getValue().get(key) != null;\n }",
"public boolean containsKey(K key) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }",
"public abstract boolean lookup(Key key);",
"public boolean hasKey() {\n return result.hasKey();\n }",
"public boolean hasKey() {\n return result.hasKey();\n }",
"public boolean hasKey() {\n return result.hasKey();\n }",
"public boolean hasKey() {\n return result.hasKey();\n }",
"public boolean hasKey() {\n return result.hasKey();\n }"
] | [
"0.7845527",
"0.7778096",
"0.7764536",
"0.77319205",
"0.77097607",
"0.76538336",
"0.7560837",
"0.7553928",
"0.7549111",
"0.7468734",
"0.744665",
"0.74385804",
"0.7392979",
"0.7382304",
"0.73727036",
"0.72973585",
"0.72834474",
"0.72834474",
"0.72834474",
"0.72834474",
"0.72834474",
"0.72797334",
"0.72668344",
"0.72543174",
"0.72242033",
"0.72102827",
"0.72031254",
"0.71994585",
"0.71268904",
"0.70985365",
"0.7091725",
"0.70845383",
"0.70845383",
"0.7043301",
"0.7031432",
"0.6948646",
"0.693988",
"0.69305724",
"0.69133574",
"0.69056195",
"0.6884049",
"0.6867861",
"0.68628377",
"0.6845144",
"0.6834272",
"0.68157756",
"0.6796299",
"0.6786752",
"0.67738825",
"0.6770841",
"0.67454547",
"0.6740117",
"0.6739423",
"0.67314404",
"0.6717981",
"0.6715385",
"0.6708661",
"0.6705825",
"0.66940683",
"0.66882616",
"0.6687886",
"0.6687812",
"0.66856056",
"0.6678503",
"0.6660595",
"0.6656519",
"0.66546893",
"0.664444",
"0.6613621",
"0.6613396",
"0.65959346",
"0.658426",
"0.65831566",
"0.6579055",
"0.65742487",
"0.6571669",
"0.65610564",
"0.65486634",
"0.65405154",
"0.6531993",
"0.6520981",
"0.6517679",
"0.6514553",
"0.64912355",
"0.648654",
"0.6484576",
"0.6479167",
"0.6478073",
"0.6476398",
"0.6472042",
"0.6458184",
"0.6456878",
"0.6446201",
"0.6438517",
"0.64308965",
"0.6424256",
"0.6424256",
"0.6424256",
"0.6424256",
"0.6424256"
] | 0.65147716 | 82 |
Get the picker's current picking request. | public Optional<PickingRequest> getTask() {
return Optional.ofNullable(task);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final PickResult getPickResult() {\n return pickResult;\n }",
"public String getDevicePickupId() {\n return this.devicePickupId;\n }",
"static synchronized RequestProcessor getSelectionProcessor() {\n if (selectionProcessor == null) {\n selectionProcessor = new RequestProcessor(\"ExplorerManager-selection\"); //NOI18N\n }\n\n return selectionProcessor;\n }",
"public Intent getRequestIntent() {\n return requestIntent;\n }",
"public String getRequested() {\n return this.requested;\n }",
"public String getPickUpKey() {\n return this.pickUpKey;\n }",
"public final int getSelectedBonePickSpot() {\n return selectedBonePickSpot;\n }",
"public synchronized RestRequest getRequest() {\n\t\treturn getContext().getLocalSession().getOpSession().getRequest();\n\t}",
"public PendingIntent getRequestPendingIntent() {\n return createRequestPendingIntent();\n }",
"public org.naru.park.ParkModel.UIParkRequest getRequest() {\n return request_ == null ? org.naru.park.ParkModel.UIParkRequest.getDefaultInstance() : request_;\n }",
"protected TrellisRequest getRequest() {\n return request;\n }",
"public void pickRingtone() {\n final Uri currentTone = getCurrentRingtone();\n Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, R.string.label_ringtone);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, currentTone);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true);\n startActivityForResult(intent, RINGTONE_PICKER_REQUEST_CODE);\n }",
"public String getPartyStateRetrieveActionRequest() {\n return partyStateRetrieveActionRequest;\n }",
"public String getAssistedRetrieveActionRequest() {\n return assistedRetrieveActionRequest;\n }",
"public static String getRequest() {\n return request;\n }",
"public int getCurrentChoice() {\n return currentChoice;\n }",
"public KafkaRequestParam getRequest() {\n return request_;\n }",
"org.naru.park.ParkModel.UIParkRequest getRequest();",
"public REQ getRequest() {\n return request;\n }",
"public String getRequestedBy() {\n return this.requestedBy;\n }",
"public String getRequest() {\n return request;\n }",
"AssistantQrCodeImagePickerModel getImagePickerModel() {\n return mImagePickerModel;\n }",
"public static Intent getImagePickingIntent(Context context) {\r\n if (context == null) return null;\r\n\r\n Intent chooserIntent = null;\r\n\r\n List<Intent> intentList = new ArrayList<>();\r\n\r\n Intent pickPhotoIntent = new Intent();\r\n pickPhotoIntent.setType(\"image/*\");\r\n pickPhotoIntent.setAction(Intent.ACTION_GET_CONTENT);\r\n\r\n intentList = addIntentsToList(context, intentList, pickPhotoIntent);\r\n\r\n if (intentList.size() > 0) {\r\n chooserIntent =\r\n Intent.createChooser(intentList.remove(intentList.size() - 1), PICKER_TITLE);\r\n chooserIntent\r\n .putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));\r\n }\r\n\r\n return chooserIntent;\r\n }",
"public GhRequest getRequest() {\r\n return localRequest;\r\n }",
"public GhRequest getRequest() {\r\n return localRequest;\r\n }",
"public T getSelection() {\n ButtonModel selected = buttonGroup.getSelection();\n if (selected == null) {\n return null;\n }\n T key = modelToKeyMap.get(selected);\n if (key == null) {\n throw new IllegalArgumentException(\"Key not found for selected radio button: \" + selected);\n }\n return (key != NULL ? key : null);\n }",
"public User getRequester() {\n return requester;\n }",
"public org.naru.park.ParkModel.UIParkRequest getRequest() {\n if (requestBuilder_ == null) {\n return request_ == null ? org.naru.park.ParkModel.UIParkRequest.getDefaultInstance() : request_;\n } else {\n return requestBuilder_.getMessage();\n }\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"public Request getRequest() {\r\n return localRequest;\r\n }",
"private PR1Model.Shape getSelection() { return selection.get(); }",
"public static Intent getIntent(){\n Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\tpickIntent.setType(\"image/*\");\n\tpickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\tpickIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\t\n\treturn pickIntent;\n }",
"public FxRequest getRequest() {\n return FxJsfUtils.getRequest();\n }",
"public T getSelectedItem() {\n\t\tT selectedItem = null;\n\t\tint position = spinner.getSelectedItemPosition();\n\t\tif(position >= 0) {\n\t\t\tselectedItem = adapter.getItem(position);\n\t\t}\n\t\treturn selectedItem;\n\t}",
"@Nullable String pickItem();",
"@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t\t// get the plant that was selected.\r\n\t\tBundle bundle = data.getExtras();\r\n\t\t\r\n\t\tPlant selectedPlant = (Plant) bundle.getSerializable(PlantResultsActivity.PLANT_RESULT);\r\n\t\t\r\n\t\tToast.makeText(this, \"Plant: \" + selectedPlant, Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}",
"protected SelectionText input() {\n return inputter;\n }",
"public E getSelected() {\n ButtonModel selection = selectedModelRef.get();\n //noinspection UseOfSystemOutOrSystemErr\n final String actionCommand = selection.getActionCommand();\n //noinspection HardCodedStringLiteral,UseOfSystemOutOrSystemErr\n return Objects.requireNonNull(textMap.get(actionCommand));\n }",
"private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }",
"public String getFinancialMarketInsightRetrieveActionRequest() {\n return financialMarketInsightRetrieveActionRequest;\n }",
"@JsonGetter(\"request\")\n public EventRequestModel getRequest ( ) {\n return this.request;\n }",
"public Prompt getCurrent() {\n\t\t\treturn current;\n\t\t}",
"public com.google.openrtb.OpenRtb.BidRequest getRequest() {\n return request_;\n }",
"public DocWriteRequest<?> getCurrent() {\n return getCurrentItem().request();\n }",
"public static Intent getPickImageIntent(Context context) {\n Intent chooserIntent = null;\n\n List<Intent> intentList = new ArrayList<>();\n\n Intent pickIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n Intent takePhotoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n takePhotoIntent.putExtra(\"return-data\", true);\n takePhotoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getEmptyTempFile(context)));\n intentList = addIntentsToList(context, intentList, pickIntent);\n intentList = addIntentsToList(context, intentList, takePhotoIntent);\n\n if (intentList.size() > 0) {\n chooserIntent = Intent.createChooser(intentList.remove(intentList.size() - 1),\n \"Pick image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));\n }\n\n return chooserIntent;\n }",
"private void pickLocation() {\n // By default the location picker will enable all the included buttons like\n // Satellite view and position me\n Intent locationPicker = new LocationPickerActivity.Builder().build(this.getContext());\n startActivityForResult(locationPicker, LOCATION_REQUEST_CODE);\n }",
"private String getPickUpLocation() {\n return priceDetailsModule.findElement(By.className(\"seleniumPickupLocation\")).getText();\n }",
"public net.iGap.proto.ProtoRequest.Request getRequest() {\n return instance.getRequest();\n }",
"public static String getTempRequest() {\n\t\treturn MDC.get(ApplicationConstants.TEMP_REQUEST);\n\t}",
"public String selection() {\n return inputter.selection();\n }",
"public java.lang.Integer getCarrierSelection() {\r\n return carrierSelection;\r\n }",
"public Object getCustomerBehaviorModelSpecificationRequestActionTaskRecord() {\n return customerBehaviorModelSpecificationRequestActionTaskRecord;\n }",
"protected void requestShowPicker() {\n if (widgetListener != null) widgetListener.onShowItemChooser(this);\n }",
"@java.lang.Override\n public long getRequesterId() {\n return requesterId_;\n }",
"public PlaySourceInternal getPlayPrompt() {\n return this.playPrompt;\n }",
"public java.lang.CharSequence getRequestingProductId() {\n return requesting_product_id;\n }",
"public AUndertaking getSelectedTask()\n {\n String errorMsg;\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n if (taskIt.hasNext()) {\n AUndertaking selectedTask = taskIt.next();\n\n if (! taskIt.hasNext()) {\n return selectedTask;\n }\n\n errorMsg = \"Selection is multiple\";\n }\n else {\n errorMsg = \"Nothing is selected\";\n }\n\n throw new IllegalStateException(errorMsg);\n }",
"public HttpServletRequest getRequest() {\r\n\t\treturn request_;\r\n\t}",
"@java.lang.Override\n public long getRequesterId() {\n return requesterId_;\n }",
"public Object getCallInput() {\n\t\treturn null;\n\t}",
"public static Request getRequest() {\n return request;\n }",
"public java.lang.CharSequence getRequestingProductId() {\n return requesting_product_id;\n }",
"@NonNull\n public T getRequestedValue() {\n return mRequestedValue;\n }",
"public Integer getCurrentColor() {\n for (int i = 0; i < colorPickers.size(); i++) {\n if (colorPickers.get(i).isSelected()) {\n return colorPickers.get(i).getColor();\n }\n }\n return null;\n }",
"public HttpServletRequest getRequest() {\r\n return request;\r\n }",
"public String getSelection() {\n\t\tif (selection == null) {\n\t\t\treturn Floor.NO_FLOOR_IMAGE_SELECTION;\n\t\t} else {\n\t\t\treturn selection;\n\t\t}\n\t}",
"public java.util.Calendar getRequestDate() {\r\n return requestDate;\r\n }",
"public void setTask(PickingRequest task) {\n this.task = task;\n }",
"public static HttpServletRequest getRequest() {\r\n\t\treturn (HttpServletRequest) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequest();\r\n\t}",
"public static String getRequestType(){\n return requestType;\n }",
"public RequestedUserInfo getRequestedUserInfo() {\n\t\treturn requestedUserInfo;\n\t}",
"public int getPickedPlayerID()\n {\n return picked;\n }",
"IProductInfo getM_piSelectedItem();",
"@Override\r\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if (resultCode != Activity.RESULT_OK)\r\n return;\r\n int pickedNumber = data.getIntExtra(NumberPickerDialog.EXTRA_PICKED_NUMBER, 0);\r\n switch (requestCode) {\r\n case HEADING_REQUEST:\r\n mHeadingTextView.setText(String.valueOf(pickedNumber));\r\n Mission.get().getFlightDirector().setHeading(pickedNumber);\r\n break;\r\n case ALTITUDE_REQUEST:\r\n mAltitudeTextView.setText(String.valueOf(pickedNumber));\r\n Mission.get().getFlightDirector().setAltitude(pickedNumber);\r\n break;\r\n case SPEED_REQUEST:\r\n mAirspeedTextView.setText(String.valueOf(pickedNumber));\r\n Mission.get().getFlightDirector().setAirspeed(pickedNumber);\r\n break;\r\n case VS_REQUEST:\r\n mVertSpeedTextView.setText(String.valueOf(pickedNumber));\r\n Mission.get().getFlightDirector().setVertSpeed(pickedNumber);\r\n break;\r\n default:\r\n break;\r\n }\r\n }",
"protected HttpServletRequest getRequest() {\n return RequestUtil.getRequest();\n }"
] | [
"0.6085582",
"0.54948807",
"0.5354878",
"0.53517795",
"0.5332991",
"0.5268638",
"0.52121204",
"0.5200554",
"0.51851904",
"0.51584584",
"0.5152097",
"0.51421875",
"0.5129302",
"0.5122476",
"0.51215595",
"0.50998366",
"0.5096336",
"0.5093233",
"0.5088309",
"0.5079368",
"0.50791246",
"0.50762993",
"0.5065976",
"0.5053967",
"0.5053967",
"0.5047891",
"0.50421035",
"0.50385386",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.5030498",
"0.50274795",
"0.5018404",
"0.5010306",
"0.49817032",
"0.49723458",
"0.49651295",
"0.49556813",
"0.4941201",
"0.49386737",
"0.49330443",
"0.49103266",
"0.49028975",
"0.48872384",
"0.48867163",
"0.4875563",
"0.485325",
"0.48478872",
"0.4836904",
"0.48258877",
"0.48072216",
"0.47731674",
"0.47724533",
"0.47693586",
"0.47680613",
"0.47669142",
"0.47656596",
"0.47640908",
"0.47555727",
"0.4753995",
"0.47457942",
"0.47434765",
"0.47412968",
"0.47360623",
"0.4733829",
"0.47331002",
"0.47323665",
"0.47268122",
"0.4724028",
"0.47200504",
"0.47129506",
"0.47018895",
"0.46942368",
"0.46809322",
"0.46799484",
"0.46798038"
] | 0.5775332 | 1 |
Set the task of the picker. | public void setTask(PickingRequest task) {
this.task = task;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTask(Task inTask){\n punchTask = inTask;\n }",
"public void setTask(Task task) {\n this.task = task;\n }",
"public void setTask(TaskDTO task) {\n\t\tthis.task = task;\r\n\t\t\r\n\t\t\r\n\t}",
"public Builder setTaskId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n taskId_ = value;\n onChanged();\n return this;\n }",
"public void setTaskType(int taskType) throws java.beans.PropertyVetoException {\n\t\tif (fieldTaskType != taskType) {\n\t\t\tint oldValue = fieldTaskType;\n\t\t\tfireVetoableChange(\"taskType\", new Integer(oldValue), new Integer(taskType));\n\t\t\tfieldTaskType = taskType;\n\t\t\tfirePropertyChange(\"taskType\", new Integer(oldValue), new Integer(taskType));\n\t\t}\n\t}",
"public void editTask(String newTask) {\n task = newTask;\n }",
"public void setCurrentTaskName(String name);",
"protected void setupTask(Task task) {\n }",
"boolean setTask(UUID uuid, IAnimeTask task);",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setTaskId(java.lang.String value) {\n validate(fields()[23], value);\n this.taskId = value;\n fieldSetFlags()[23] = true;\n return this;\n }",
"public void setTaskInstance(Task taskInstance) {\n\t\tthis.taskInstance = taskInstance;\n\t}",
"public void updateTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n todoTaskGui(\"Update\", task);\r\n }\r\n }",
"public Builder setTaskId(\n int index, String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTaskIdIsMutable();\n taskId_.set(index, value);\n onChanged();\n return this;\n }",
"@Override\n public void onRecorridoActualItemSelected(Task task) {\n }",
"public void populateTaskList(String _task){\n\t\ttaskList.getItems().add(_task);\n\t}",
"protected void setCurrentTaskNumber( final int value )\r\n {\r\n jProgressBarGlobal.setValue( value );\r\n }",
"public void initiateValues(Task task)\r\n {\n int icon;\r\n switch (task.getType()) {\r\n case Task.TASK_DELIVERY:\r\n icon = R.drawable.ic_delivery;\r\n break;\r\n case Task.TASK_PICKUP:\r\n icon = R.drawable.ic_pickup;\r\n break;\r\n default:\r\n icon = R.drawable.ic_delivery;\r\n }\r\n ((Toolbar)findViewById(R.id.package_toolbar)).setNavigationIcon(icon);\r\n\r\n //task fields\r\n TextView number = (TextView)findViewById(R.id.route_id_field);\r\n TextView type = (TextView)findViewById(R.id.task_type_field);\r\n TextView address = (TextView)findViewById(R.id.task_address_field);\r\n TextView timeslot = (TextView)findViewById(R.id.task_timeslot_field);\r\n\r\n number.setText(task.getId()+\"\");\r\n type.setText(((task.getType()==0)?\"Levering\":\"Henting\")+ \" (\" + task.getSize() + \" kolli)\");\r\n address.setText(task.getAddress() + \", \" + task.getZip() + \" \" + task.getCity());\r\n long timeSlotStart = task.getTimeSlotStart();\r\n long timeSlotEnd = task.getTimeSlotEnd();\r\n //set timeslot for package if it exists\r\n if(timeSlotStart != 0 && timeSlotEnd != 0)\r\n timeslot.setText(task.getTimeSlotStartString() + \" - \" + task.getTimeSlotEndString());\r\n\r\n //sender fields\r\n TextView sender_name = (TextView)findViewById(R.id.sender_name_field);\r\n TextView sender_phone = (TextView)findViewById(R.id.sender_phone_field);\r\n TextView sender_address = (TextView)findViewById(R.id.sender_address_field);\r\n\r\n sender_name.setText(task.getSender().getName());\r\n sender_phone.setText(task.getSender().getPhone());\r\n sender_address.setText(task.getSender().getAddress());\r\n\r\n //receiver fields\r\n TextView receiver_name = (TextView)findViewById(R.id.receiver_name_field);\r\n TextView receiver_phone = (TextView)findViewById(R.id.receiver_phone_field);\r\n TextView receiver_address = (TextView)findViewById(R.id.receiver_address_field);\r\n\r\n receiver_name.setText(task.getReceiver().getName());\r\n receiver_phone.setText(task.getReceiver().getPhone());\r\n receiver_address.setText(task.getReceiver().getAddress());\r\n }",
"@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View actionView, int position,\n\t\t\tlong id) {\n\t\tTask task = this.tasks.get(position);\n\t\t//Set text boxes to selected task's properties\n\t\ttaskId.setText( Long.toString(task.id) );\n\t\ttaskName.setText( task.name );\n\t\ttaskDetails.setText( task.details );\n\t\t//TODO Add alarm\n\t\t\n\t}",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setTaskId(java.lang.String value) {\n validate(fields()[9], value);\n this.taskId = value;\n fieldSetFlags()[9] = true;\n return this;\n }",
"public void setSelection(T t) {\n\t\tspinner.setSelection(adapter.getPosition(t));\n\t}",
"public void setTaskId(UUID taskId) {\n this.taskId = taskId;\n }",
"public Builder setTaskName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n taskName_ = value;\n onChanged();\n return this;\n }",
"public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }",
"public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n int mYear = year;\n int mMonth = monthOfYear;\n int mDay = dayOfMonth;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n String formatedDate = sdf.format(new Date(year-1900, mMonth, mDay));\n\n SimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyyMMdd\");\n formatedDateMYSQL = sdf2.format(new Date(year-1900, mMonth, mDay));\n\n buttonDate.setText(\"\"+formatedDate+\"\");\n buttonDate.setTag(formatedDateMYSQL);\n\n mAuthTask = new getTaskDetail(useremail,\"\");\n\n mAuthTask.execute((Void) null);\n\n }",
"void setTaskOwner(ConversationalObject taskOwner);",
"@Override\n public void onTaskSelected(String taskId) {\n }",
"private void populateFromTask(String actionTitle, Task task) {\r\n if (task == null || actionTitle.equals(\"Create\")) {\r\n myTask = null;\r\n return;\r\n }\r\n myTask = task;\r\n }",
"public void setTaskExecutor(Executor taskExecutor) {\n this.taskExecutor = taskExecutor;\n }",
"public void setupTask(TaskAttemptContext context) throws IOException {\n }",
"public void setTaskId(Integer taskId) {\n\t\tthis.taskId = taskId;\n\t}",
"@Override\n public void onClick(View v) {\n TimePickerDialog timePicker = new TimePickerDialog(\n PHUpdateNonRecurringScheduleActivity.this,\n mTimeSetListener, mHour, mMinute, true);\n\n timePicker.show();\n }",
"public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }",
"@Override\n\t\tpublic void setTaskName(String arg0) {\n\n\t\t}",
"@Override\r\n\tpublic void setTaskPanel(BackOfficePanel panel) {\n\t\ttaskPanel = (TaskPanel) panel;\r\n\t}",
"@Override\r\n\tpublic void setTaskName(String name) {\n\r\n\t}",
"@Override\n public void activateTask(@NonNull String taskId) {\n }",
"public void setTaskID(java.lang.Object taskID) {\n this.taskID = taskID;\n }",
"public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }",
"public void chooseArrayList(TaskList taskList) {\n this.taskList = taskList;\n }",
"@Override\n public void onClick(View v) {\n \tToast.makeText(TaskActivity.this, \"Setting dates!\", Toast.LENGTH_SHORT).show();\n \tshowDatePickerDialog(mSelectedYear, mSelectedMonth, mSelectedDay, mOnDateSetListener);\n }",
"public void assignTask(String employee, String taskName) {\n \tSystem.out.println(\"Inside assignDeadline()\");\n \t//Task t = new Task();\n \tint count = 0;\n \tfor(Task task : toDoList) {\n \t\tif(task.getTaskName().equals(taskName)) {\n \t\t\t//t = task;\n \t\t\ttask.setEmployee(employee);\n \t\t\ttoDoList.set(count, task);\n \t\t}\n \t\tcount++;\n \t}\n \tSystem.out.println(\"Task Assigned to Employee Sucessfully\");\n \t\n \tdisplay();\n }",
"private void showEditor(EditableTask task) {\n \t\tif (task == selectedTask) {\n \t\t\tTaskEditor editor = getTaskEditor(task);\n \t\t\tif (editor!= null) {\n \t\t\t\tif (!task.isEditorInitialized()) {\n \t\t\t\t\ttask.setInput(model.getTaskMemento(task.getId()));\n \t\t\t\t}\n \t\t\t\tsetCurrentEditor(editor.getControl().getParent());\n \t\t\t}\n \t\t}\n \t}",
"private void assignControls()\n {\n \ttaskSpinner = (Spinner) findViewById(R.id.taskSpinner);\n \ttaskName = (EditText) findViewById(R.id.txtTaskName);\n \ttaskDetails = (EditText) findViewById(R.id.txtTaskDetails);\n \ttaskId = (EditText) findViewById(R.id.txtTaskId);\n \ttaskId.setEnabled(false); //This is not an editable field\n }",
"@FXML\r\n public void executer()\r\n {\r\n startTask(new MajSuiviExcelTask(typeMaj), typeMaj.toString());\r\n }",
"@Override\n public void onClick(View v) {\n setTaskShowType();\n }",
"public static void setTasks(TaskList tasks) {\n Parser.tasks = tasks;\n }",
"private void populateUI(TaskEntry task) {\n if (task == null) {\n return;\n }\n mHeaderText.setText(task.getHeader());\n mDescription.setText(task.getDescription());\n\n }",
"private void updateTask(ICompositeCheatSheetTask task) {\n \t\tif (task==null || task != selectedTask) return;\n \t\tif ( task instanceof EditableTask) {\n \t\t\tEditableTask editable = (EditableTask)task;\n \t\t\tif (editable.getState() == ICompositeCheatSheetTask.IN_PROGRESS) {\n \t\t\t\tshowEditor(editable);\n \t\t\t\treturn;\n \t\t\t} else if (editable.isUnderReview()) {\n \t\t\t\tif (editable.getState() == ICompositeCheatSheetTask.COMPLETED) {\n \t\t\t\t\tshowEditor(editable);\n \t\t\t\t} else {\n \t\t\t\t\tendReview(editable);\n \t\t\t\t}\n \t\t\t\treturn;\n \t\t\t}\n \t\t} \n \t\tshowDescription(task);\n \t}",
"public String getTask() {\n return task;\n }",
"public String getTask() {\n return task;\n }",
"public void resetTask() {}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"public void setValue(final Object value) {\n spinner.setValue(value);\n }",
"public void setPickerTime(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(TimePicker.class.getName())))\n .perform(PickerActions.setTime(date.getHour(), date.getMinute()));\n new Dialog().confirmDialog();\n }",
"@Override\n public void select(TaskView selectedCard) {\n if(selectedTask != null) {\n selectedTask.deselectCard();\n }\n selectedTask = selectedCard;\n selectedTask.selectCard();\n }",
"public void setTaskId(String taskId) {\r\n\t\tthis.taskId=taskId;\r\n\t}",
"public JBombardierAntTask(Task owner) {\r\n bindToOwner(owner);\r\n }",
"void onTaskSelected(T t) {\n metrics.markSelection(t);\n for (CompletableTask.Listener<T> listener : listeners) {\n listener.onCreate(t);\n }\n }",
"void editTask(ReadOnlyTask taskToEdit, Name taskName, Date startDate, Date endDate, Priority priority,\n\t\t\tRecurrenceRate recurrenceRate);",
"private void assignComponents() {\r\n if (myTask != null) {\r\n textFieldName.setText(myTask.getName());\r\n textFieldDescription.setText(myTask.getDescription());\r\n textFieldDueDate.setText(myTask.getDueDate().toString());\r\n comboPriority.setSelectedItem(myTask.getPriority());\r\n } else {\r\n textFieldName.setText(null);\r\n textFieldDescription.setText(null);\r\n textFieldDueDate.setText(null);\r\n comboPriority.setSelectedItem(-1);\r\n }\r\n }",
"@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}",
"@Override\n\t\t\tpublic void setTaskName(String name) {\n\t\t\t\t\n\t\t\t}",
"public Task(String task, boolean isDone) {\n this.task = task;\n this.isDone = isDone;\n }",
"void setRunMode(TaskRunMode runMode);",
"public void setTaskId(String taskId) {\n this.taskId = taskId;\n }",
"public void setTaskId(String taskId) {\n this.taskId = taskId;\n }",
"private void updateValue(Widget sender){\r\n\t\tint index = getWidgetIndex(sender) - 1;\r\n\t\tTaskParam param = taskDef.getParamAt(index);\r\n\t\tparam.setValue(((TextBox)sender).getText());\r\n\t\ttaskDef.setDirty(true);\r\n\t}",
"public void get(final Task task) {\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n edtSelectTimeForMeet.setText( \"\" + selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"public void setUp() {\n instance = new Task();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"public static void setTaskName1(Context context, String taskName) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"taskName\", taskName);\n editor.commit();\n }",
"public Task getTask(){\n return punchTask;\n }",
"@Override\n\tpublic void initTask() {\n\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\tif(rankInfo!=null){\n\t\t\tgetTask().getTaskInfo().setProcess((int)rankInfo.getSoul());\n\t\t}\n\t}",
"int getTask() {\n return task;\n }",
"public void setTaskData(String mID) throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\ttCollect = new TaskCollection(mID, ConnectionManager.getInstance().currentSensor(0).getSerialNumber());\n\t\t\t\n\t\t\tif (tCollect.getMeasTask().isEmpty())\n\t\t\t{\n\t\t\t\tmeasurTaskText.setText(\" \");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < tCollect.getMeasTask().size(); i++)\n\t\t\t\t{\n\t\t\t\t\tmeasurTaskText.setText(tCollect.getMeasTask().get(i).getTaskDetails());\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (!sensorTaskText.equals(\"\"))\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < tCollect.getSensorTask().size(); i++)\n\t\t\t\t{\n\t\t\t\t\tsensorTaskText.setText(tCollect.getSensorTask().get(i).getTaskDetails());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t}",
"void onStartEditTask(String taskId) {\n mNavigationProvider.startActivityForResultWithExtra(AddEditTaskActivity.class,\n TaskDetailActivity.REQUEST_EDIT_TASK, AddEditTaskFragment.ARGUMENT_EDIT_TASK_ID,\n taskId);\n }",
"private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }",
"public Ui(TaskList tasks) {\n this.tasks = tasks;\n }",
"@Override\n public void init(TaskManager tm, Ui ui) {\n setResponse(ui.askEventName());\n setUtility(tm, ui);\n }",
"public TaskControlButton(Context context) {\n super(context);\n }",
"private void updateAction(String taskId) {\n setupPrioritySpinner();\n try {\n QueryBuilder<Task, String> queryBuilder = taskDao.queryBuilder();\n taskForUpdate = taskDao.queryForFirst(queryBuilder.where().eq(Task.TASK_ID, taskId).prepare());\n mTitle.setText(taskForUpdate.getTitle());\n mDescription.setText(taskForUpdate.getDescription());\n mDate.setDate(taskForUpdate.getDate().getTime());\n mPriority.setSelection(taskForUpdate.getPriority());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void setTaskName(String taskName) {\r\n\t\tthis.taskName=taskName;\r\n\t}",
"@Override\n protected void onStart()\n {\n \ttaskSpinner.setOnItemSelectedListener(this);\n \t\n \tsuper.onStart();\n }",
"public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }",
"@Override\n public void onClick(View v) {\n picker.openChooser(MainActivity.this);\n\n }",
"public void setTaskName(String taskName) {\n this.taskName = taskName;\n }",
"public void setTaskName(String taskName) {\n this.taskName = taskName;\n }",
"private void assignWork(String worker, String task) {\n System.out.println(\"assign work and create node \" + worker + \"/task\");\n zk.setData(worker, task.getBytes(), -1,\n (rc, path, ctx, data) -> {\n System.out.println(KeeperException.Code.get(rc));\n logger.info(\"DISTMASTER: task \" + task + \" has been created\");\n }, null);\n }",
"public void setActivity(BaseActivity act)\n {\n this.activity = act;\n\n if (act == null) {\n //dismiss the dialog if there is no\n //activity associated with this task\n dismissProgressDialog();\n }\n else\n {\n //activity is being attached to the background thread.\n //Check if the task is already completed\n if (taskCompleted && getStatus().equals(AsyncTask.Status.FINISHED)\n && updateOnActivityAttach) {\n \tif (!isCancelled()) {\n\t //yes, notify about completion of task\n\t notifyTaskCompletion(null);\n \t}\n \telse {\n \t\tnotifyTaskCancelled(null);\n \t}\n }\n else\n {\n //no, display the progress dialog indicating the\n //background task is still running.\n showProgressDialog();\n }\n }\n }",
"SetupTask(KaldiActivity activity) {\n this.activityReference = new WeakReference<>(activity);\n }",
"public void setTaskMonitor(TaskMonitor taskMonitor)\n\t\t\tthrows IllegalThreadStateException {\n\t\tthis.taskMonitor = taskMonitor;\n\t}",
"public void setCombatTask() {\n\t\tif (this.level != null && !this.level.isClientSide) {\n\t\t\tthis.goalSelector.removeGoal(this.aiAttackOnCollide);\n\t\t\tthis.goalSelector.removeGoal(this.aiShotgunAttack);\n\t\t\tItemStack itemstack = this.getItemInHand(ProjectileHelper.getWeaponHoldingHand(this, DeferredRegistryHandler.BLUNDERBUSS.get()));\n\t\t\tif (itemstack.getItem() == DeferredRegistryHandler.BLUNDERBUSS.get()) {\n\t\t\t\tint i = 25;\n\t\t\t\tif (this.level.getDifficulty() != Difficulty.HARD) {\n\t\t\t\t\ti = 45;\n\t\t\t\t}\n\n\t\t\t\tthis.aiShotgunAttack.setAttackCooldown(i);\n\t\t\t\tthis.goalSelector.addGoal(16, this.aiShotgunAttack);\n\t\t\t} else {\n\t\t\t\tthis.goalSelector.addGoal(12, this.aiAttackOnCollide);\n\t\t\t}\n\n\t\t}\n\t}",
"private void displayTask() {\n this.task = new Task();\n Color color = this.task.getColor();\n this.taskPanel.displayColor(color);\n }",
"public void setTaskCompleted(TaskAttemptID taskID) {\n taskStatuses.get(taskID).setState(TaskStatus.SUCCEEDED);\n successfulTaskID = taskID;\n activeTasks.remove(taskID);\n }",
"public void startTask() {\n\t}",
"public void showTask(View v) {\n String taskIdStr = txtId.getText().toString();\n if (taskIdStr.isEmpty() || taskIdStr == null) {\n Toast.makeText(this, \"Please Insert task ID\", Toast.LENGTH_LONG).show();\n } else {\n try {\n int taskId = Integer.parseInt(taskIdStr);\n TaskModel taskmodel = taskManager.getTaskById(taskId);\n txtTaskName.setText(taskmodel.getTaskName());\n txtTaskDescription.setText(taskmodel.getTaskDescription());\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }",
"public void setTasks(List<TaskEntry> taskEntries) {\n mTaskEntries = taskEntries;\n notifyDataSetChanged();\n }",
"public void onClick(View v) {\n Task task = new Task();\n task.setTask_id(key); // Use the generated key from the database as id.\n task.setMessage(editText.getText().toString());\n String rating = spinner.getSelectedItem().toString();\n task.setPriority(rating);\n\n // we need to convert our model into a Hashmap since Firebase cannot save custom classes.\n // String/ArrayList/Integer and Hashmap are the only supported types.\n Map<String, Object> childUpdates = new HashMap<>();\n childUpdates.put( key, task.toFirebaseObject());\n\n database.child(\"users\").child(currentUserID).child(\"taskList\").updateChildren(childUpdates, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n if (databaseError == null) {\n // Return to previous activity\n finish();\n }\n }\n });\n }"
] | [
"0.6823399",
"0.67863554",
"0.6418745",
"0.6057908",
"0.60470515",
"0.6040919",
"0.6020674",
"0.59547895",
"0.58914757",
"0.58881307",
"0.58719015",
"0.5833784",
"0.5717071",
"0.5681587",
"0.5649182",
"0.56482106",
"0.5638421",
"0.56078345",
"0.5589552",
"0.55876833",
"0.5580672",
"0.5565311",
"0.55125606",
"0.55125606",
"0.5470004",
"0.5464542",
"0.5437249",
"0.543099",
"0.53980017",
"0.5390174",
"0.5370104",
"0.5358363",
"0.53522086",
"0.534108",
"0.53387064",
"0.5304846",
"0.530318",
"0.5294716",
"0.5279368",
"0.5272217",
"0.5267913",
"0.52607906",
"0.52597415",
"0.52469134",
"0.5234012",
"0.5220808",
"0.52147645",
"0.52081835",
"0.52038014",
"0.5165888",
"0.5165888",
"0.51605666",
"0.51564515",
"0.51498085",
"0.51480824",
"0.51445246",
"0.5141287",
"0.51403546",
"0.51236945",
"0.5117059",
"0.5113372",
"0.51073384",
"0.5098173",
"0.50965416",
"0.50940454",
"0.5081467",
"0.5081467",
"0.5080331",
"0.508012",
"0.50773215",
"0.5058981",
"0.5057114",
"0.50378615",
"0.5036811",
"0.5030414",
"0.5029381",
"0.5024262",
"0.50102067",
"0.5002209",
"0.49998915",
"0.49994949",
"0.4994368",
"0.49894145",
"0.49873412",
"0.49685472",
"0.49640757",
"0.49539983",
"0.49523002",
"0.49523002",
"0.4947459",
"0.49473536",
"0.49404672",
"0.49392217",
"0.49383232",
"0.49328947",
"0.4931363",
"0.49268967",
"0.49231988",
"0.49211892",
"0.49211377"
] | 0.73973286 | 0 |
Creates an image pane with no set image. | public LImagePane() {
setLayout(null);
setOpaque(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ImagePane() {\r\n\t\tsuper();\r\n\t}",
"private ImageView createImageView(final File imageFile) {\n\n ImageView imageView = null;\n try {\n final Image image = new Image(new FileInputStream(imageFile), 150, 0, true,\n true);\n imageView = new ImageView(image);\n imageView.setFitWidth(150);\n imageView.setOnMouseClicked(new EventHandler<MouseEvent>() {\n\n @Override\n public void handle(MouseEvent mouseEvent) {\n\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\n\n if(mouseEvent.getClickCount() == 2){\n try {\n BorderPane borderPane = new BorderPane();\n ImageView imageView = new ImageView();\n Image image = new Image(new FileInputStream(imageFile));\n imageView.setImage(image);\n imageView.setStyle(\"-fx-background-color: BLACK\");\n imageView.setFitHeight(window1Stage.getHeight() - 10);\n imageView.setPreserveRatio(true);\n imageView.setSmooth(true);\n imageView.setCache(true);\n borderPane.setCenter(imageView);\n borderPane.setStyle(\"-fx-background-color: BLACK\");\n Stage newStage = new Stage();\n newStage.setWidth(window1Stage.getWidth());\n newStage.setHeight(window1Stage.getHeight());\n newStage.setTitle(imageFile.getName());\n Scene scene = new Scene(borderPane, Color.BLACK);\n newStage.setScene(scene);\n newStage.show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }\n }\n }\n });\n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n return imageView;\n }",
"public ImagePane(BufferedImage im) {\r\n\t\tsuper();\r\n\t\timage = im;\r\n\t}",
"public Image() {\n\t\t\tthis(Color.white, 0);\n\t\t}",
"private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}",
"public Image()\r\n {\r\n super();\r\n setBounds( 0, 0, 10, 10 );\r\n }",
"protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }",
"private void createXONImageMakerIconPane() throws Exception {\r\n\t\tif (m_XONImageMakerIconPanel != null)\r\n\t\t\treturn;\r\n\t\tImageUtils iu = new ImageUtils();\r\n\t\tm_XONImageMakerIconPanel = new JPanel() {\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tRectangle visibleRect = this.getVisibleRect();\r\n\t\t\t\tDimension panelSize = new Dimension(\r\n\t\t\t\t\t\t(int) visibleRect.getWidth(),\r\n\t\t\t\t\t\t(int) visibleRect.getHeight());\r\n\t\t\t\t// RGPTLogger.logToConsole(\"Panel Size: \"+panelSize);\r\n\t\t\t\tg.drawImage(XON_IMAGE_MAKER_ICON, 0, 0, panelSize.width,\r\n\t\t\t\t\t\tpanelSize.height, this);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"private Panel buildPanelImg() {\n\t\tpanelImg = new Panel();\r\n\t\tpanelImg.setImmediate(false);\r\n\t\tpanelImg.setWidth(\"-1px\");\r\n\t\tpanelImg.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// gridImg\r\n\t\tgridImg = new HorizontalLayout();\r\n\t\tgridImg.setImmediate(false);\r\n\t\tgridImg.setWidth(\"128px\");\r\n\t\tgridImg.setHeight(\"128px\");\r\n\t\tgridImg.setMargin(false);\r\n\t\tpanelImg.setContent(gridImg);\r\n\t\t\r\n\t\treturn panelImg;\r\n\t}",
"private void createAndInitScrollingImage() {\r\n\t\tif (this.scrollPane != null) {\r\n\t\t\tthis.pictureFrame.getContentPane().remove(this.scrollPane);\r\n\r\n }\r\n\r\n\t\tthis.scrollPane = new JScrollPane();\r\n\t\tthis.pictureFrame.getContentPane().add(this.scrollPane, BorderLayout.CENTER);\r\n\t\tthis.pictureFrame.validate();\r\n\t}",
"public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void createAreaWithoutBorder(){\n image.setColor(backgroundColor);\n image.fillRect(0, 0, fieldWidth, fieldHeight);\n }",
"public ImageDisplay()\n\t{\n initComponents();\n }",
"public VisualizadorImagemJFrame() {\n initComponents();\n \n setLocationRelativeTo(null);\n \n AbrirAction abrirAction = new AbrirAction(this);\n jMenuItemAbrir.setAction(abrirAction);\n abrirBtn.setAction(abrirAction);\n intFrameImage.setVisible(false);\n }",
"@FXML\n public void pickOwnPicture(ActionEvent event) {\n FileChooser fc = new FileChooser();\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"Image Files\", \"*.jpg\", \"*.png\"));\n File selectedFile = fc.showOpenDialog(null);\n\n\n if (selectedFile != null) {\n pathToFile = selectedFile.getAbsolutePath();\n ;\n Image img = new Image(selectedFile.toURI().toString());\n\n ImageView mainImageView = new ImageView(img);\n mainImageView.setPreserveRatio(true);\n mainImageView.setFitWidth(imageStackPane.getWidth());\n mainImageView.setFitHeight(imageStackPane.getHeight());\n imageStackPane.getChildren().clear();\n imageStackPane.getChildren().add(mainImageView);\n\n\n }\n }",
"private Images() {}",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }",
"public PanelImage( )\r\n {\r\n JLabel image = new JLabel( );\r\n ImageIcon icon = new ImageIcon( \"./data/img/header.png\" );\r\n image = new JLabel( \"\" );\r\n image.setIcon( icon );\r\n add( image );\r\n }",
"public ImagePane(Image imageIcon, int width, int height) {\n this.image = imageIcon;\n setMaximumSize(new Dimension(width, height));\n }",
"public void createPaneClose(ActionEvent actionEvent) {\n createTeamPane.setDisable(true);\n createTeamPane.setVisible(false);\n darkPane.setDisable(true);\n darkPane.setVisible(false);\n logoChangeImageCreate.setImage(new Image(\"/Resources/Images/emptyTeamLogo.png\"));\n createTeamLogoFile = null;\n }",
"public NewJFrame() {\n \n this.setIconImage(img.getImage());\n initComponents();\n \n }",
"public YourImage() {\n initComponents();\n }",
"public Image() {\n \n }",
"public static void showImage(Stage primaryStage) {\n Pane pane = new HBox(10);\n pane.setPadding(new Insets(5, 5, 5, 5));\n Image image = new Image(\"image/us.gif\"); //load image from file\n pane.getChildren().add(new ImageView(image));\n\n ImageView imageView2 = new ImageView(image);\n imageView2.setFitHeight(100);\n imageView2.setFitWidth(100);\n pane.getChildren().add(imageView2);\n\n ImageView imageView3 = new ImageView(image);\n imageView3.setRotate(90);\n pane.getChildren().add(imageView3);\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(pane);\n primaryStage.setTitle(\"ShowImage\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }",
"Image createImage();",
"public IImage createImage(IImage source) {\n return null;\r\n }",
"private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"public EditorPane() {\r\n\t\tsuper(true);\r\n\t\tsetPreferredSize(new Dimension(800, 600));\r\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(\"map2.png\"));\r\n\t\timg = ii.getImage();\r\n\r\n\t\taddMouseListener(this);\r\n\t\tsetFocusable(true);\r\n\t\trequestFocus();\r\n\t}",
"public ImageCanvas() {\r\n super();\r\n }",
"public Image createImage() {\n if (source == null) {\n source = new MemoryImageSource(width, height, cModel, pixels, 0, width);\n source.setAnimated(true);\n }\n Image img = Toolkit.getDefaultToolkit().createImage(source);\n return img;\n }",
"private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }",
"public void setTempImage()\n {\n URL url = this.getClass().getResource(lastselection.getImage());\n\t\tImage image = Toolkit.getDefaultToolkit().getImage(url);\n\t\ttempImage = new PImage(image);\n\t\ttempImage.setBounds(0,0,65,170);\n\t\ttempImage.setTransparency(0);\n\t\tlayer.addChild(tempImage);\n\t}",
"public BufferedImage create() {\n checkDimensions();\n final BufferedImage image = createImage();\n getImagePainter().paint(image);\n return image;\n }",
"IMG createIMG();",
"public Builder clearImage() {\n \n image_ = getDefaultInstance().getImage();\n onChanged();\n return this;\n }",
"private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }",
"protected ImageView makeTrashImage() {\n\ttrashImage.setOnDragDropped(new EventHandler <DragEvent>() {\n\t @Override\n\t public void handle(DragEvent event) {\n\t\tevent.acceptTransferModes(TransferMode.ANY);\n\t\tDragboard db = event.getDragboard();\n\t\tboolean success = false;\n\t\tif (db.hasImage()) {\n\t\t success = true;\n\t\t}\n\t\tevent.setDropCompleted(success);\n\t\tevent.consume();\n\t }\n\t});\n\treturn trashImage;\n }",
"public PhotoViewerGUI() {\r\n initComponents();\r\n }",
"void resetDragImage();",
"public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }",
"public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}",
"public FilePane() {\n this(null);\n }",
"@FXML\n private void initialize() {\n playImage.setId(\"play-image\");\n playImage.setPickOnBounds(false);\n }",
"public SplashWindow() {\n imagem = new JLabel(new ToImageIcon().toImageIcon(new ImagemLoad().imageLoader(img)));\n imagem.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n }",
"public void panelGone() {\n\t\tdisplayPanel.removeImage(this);\r\n\r\n\t}",
"public Graphics setOffScreen() {\n\t\tjava.awt.Image tempSignal;\n\t\tGraphics g;\n\n\t\ttempSignal = image;\n\t\timage = this.createImage(image.getWidth(this), image.getHeight(this));\n\t\tg = image.getGraphics();\n\t\tg.drawImage(tempSignal, 0, 0, this);\n\n\t\treturn g;\n\n\t}",
"private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }",
"@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }",
"public ImagePicture(ImageIcon img) { \r\n\t\tsuper();\r\n\t\tsetxPos(0);\r\n\t\tsetyPos(0);\r\n\t\tthis.image = img;\r\n\t\trepaint();\r\n\t}",
"public ImageEditor() {\r\n initComponents(); \r\n }",
"@Override\r\n\tpublic View makeView() {\n\t\tImageView image = new ImageView(this);\r\n\t\t// cente会让居中显示并缩放\r\n\t\timage.setScaleType(ScaleType.FIT_CENTER);\r\n\t\treturn image;\r\n\t}",
"public Z4Frame() {\n initComponents();\n setSize(new Dimension(330, 370));\n setResizable(false);\n setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\n\n FlowLayout layout = new FlowLayout();\n\n Container contentPane = getContentPane();\n contentPane.setLayout(layout);\n\n JPanel imagePanel = new JPanel();\n imagePanel.setBackground(new Color(0, 0, 0));\n imagePanel.setPreferredSize(new Dimension(300, 300));\n imagePanel.setVisible(true);\n imagePanel.setLayout(new GridLayout(10, 10, 1, 1));\n\n for (int i = 0; i < BoxPanel.SIZE; i++) {\n for (int j = 0; j < BoxPanel.SIZE; j++) {\n boxes[i][j] = new BoxPanel();\n imagePanel.add(boxes[i][j]);\n }\n }\n\n KolejnyPrzyklad pokazPrzyklad = new KolejnyPrzyklad();\n HopfieldButton hopfieldButton = new HopfieldButton();\n\n contentPane.add(imagePanel);\n\n contentPane.add(pokazPrzyklad);\n contentPane.add(hopfieldButton);\n contentPane.add(new JSeparator(SwingConstants.HORIZONTAL));\n\n setVisible(true);\n }",
"private Component getPreviewPane() {\n\t\tImageIcon img = new ImageIcon(image.getScaledInstance(100, 140, Image.SCALE_DEFAULT));\n\t\tJLabel preview = new JLabel(img);\n\t\t\n\t\treturn preview;\n\t}",
"private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }",
"public XONImageMaker() {\r\n\t\tthis(true, null);\r\n\t}",
"public Image() {\n }",
"@Deprecated\n public void popupStartingImage(){\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.welcomepage);\n startingImage = new ImageView(this);\n startingImage.setImageBitmap(bitmap);\n\n windowManager = getWindowManager();\n WindowManager.LayoutParams params = new WindowManager.LayoutParams();\n params.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;\n params.gravity = Gravity.NO_GRAVITY;\n params.width = WindowManager.LayoutParams.MATCH_PARENT;\n params.height = WindowManager.LayoutParams.MATCH_PARENT;\n\n windowManager.addView(startingImage, params);\n }",
"public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }",
"public GUISignUp() {\n initComponents();\n setLocationRelativeTo(null);\n this.getContentPane().setBackground(new java.awt.Color(72, 72, 72));\n resizeImage();\n }",
"private void createUIComponents() {\n Fond = new JLabel(new ImageIcon(\"maxresdefault.jpg\"));\r\n Fond.setIcon(new ImageIcon(\"maxresdefault.jpg\"));\r\n }",
"public pn_Creating() {\n initComponents();\n imageCreating.start();\n }",
"public MainWindow()\n {\n initComponents();\n\n // Asignamos los eventos de los controles propios\n this.setCustomControlEvents();\n // Desactivamos por defecto todos los elementos de las barras de imagen\n this.setImageWindowDeactivated();\n \n this.jSplitPane1.setDividerLocation(0.9);\n }",
"private void createRootPanel() {\n\t\tString clearTooltip =\n\t\t\tI18n.getHierarchyTreeConstants().clearListFilterTooltip();\n\t\tcreateAnchor(I18n.getHierarchyTreeConstants().listFilterRootText(),\n\t\t\tnull, clearHandler, clearTooltip);\n\t\tcreateImage(HierarchyResources.INSTANCE.clear(), clearHandler,\n\t\t\tclearTooltip);\n\t\taddGeneralInnerImages();\n\t}",
"private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}",
"private BufferedImage createBlankImage(int width, int height){\n\t\t\tBufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D g2 = img.createGraphics();\n\t\t\tg2.setColor(Color.WHITE);\n\t\t\tg2.fillRect(0, 0, width, height);\n\t\t\tg2.dispose();\n\t\t\treturn img;\n\t\t}",
"public void removeImage() {\n setFileImage(null);\n getSelected().setUrlImage(null);\n RequestContext.getCurrentInstance().update(\"image\");\n }",
"private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }",
"public PlainImage(Image image) {\r\n\t\tthis.image = image;\r\n\t}",
"public ImageFactoryImpl()\n\t{\n\t\tsuper();\n\t}",
"private void createLayeredPane(){\n\t\tcontentPane = new JLayeredPane();\n\t\tcontentPane.setPreferredSize(windowSize);\n\t\tcontentPane.setOpaque(true);\n\t\tcontentPane.setVisible(true);\n\t}",
"public OptionPane() {\n\t\t\n\t\tinit();\n\t}",
"void disableAutomaticHeaderImage();",
"public UI() {\n initComponents();\n setResizable(false);\n }",
"private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }",
"public ImageViewer(Image image) {\n JLabel label = new JLabel();\n label.setIcon(new ImageIcon(image));\n label.addMouseListener(this);\n getContentPane().add(label);\n \n setLocation(100, 300);\n setSize(image.getWidth(null), image.getHeight(null));\n setVisible(true);\n }",
"@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}",
"public void removeFromRoot(){\n Main.getRootPlayGround().getChildren().remove(imageView);\n }",
"public void openCustomPictureCreator() {\n\n\t\tFXMLLoader fxmlL = new FXMLLoader(getClass().getResource(\"AvatarDrawingTool.fxml\"));\n\t\ttry {\n\t\t\tBorderPane login = (BorderPane) fxmlL.load();\n\n\t\t\tScene scene = new Scene(login, 600, 400);\n\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\n\t\t\tstage.showAndWait();\n\t\t\t\n\t\t\tif(custom) {\n\t\t\t\tsetImg();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}",
"@Override \n\t\t// Override the start method in the Application class.\n\t\t\n\t\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tPane pane = new FlowPane();\n\t\t\tpane.setPadding(new Insets (10, 10, 10, 10));\n\t\t\t\n\t\t\t\n\t\t\t//Place nodes in the pane.\n\t\t\tpane.getChildren().add(new ImageView(\"rose_blue.jpeg\"));\n\t\t\tpane.getChildren().add(new ImageView(\"neptune.jpg\"));\n\t\t\tpane.getChildren().add(new ImageView(\"purple_jellies.jpg\"));\n\t\t\tpane.getChildren().add(new ImageView(\"water_lily.jpg\"));\n\t\t\t\n\t\t\t\n\t\t\t//Create scene & place it in the stage.\n\t\t\tScene scene1 = new Scene(pane, 1000, 1000);\n\t\t\tprimaryStage.setTitle(\"ShowImage\"); // Set title.\n\t\t\tprimaryStage.setScene(scene1); // Place scene in stage.\n\t\t\tprimaryStage.show(); // Display the stage.\n\t\n\t}",
"TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}",
"public XONImageMaker(boolean isWindowsApp, Dimension contentPaneSize) {\r\n\t\t// AppletParameters.createServerProperties(this.getClass(), false);\r\n\t\tm_WorkflowPanelItems = new HashMap<Integer, JComponent>();\r\n\t\tm_XONImageContentItem = new HashMap<Integer, JComponent>();\r\n\t\tm_WFActionSteps = new HashMap<String, Vector>();\r\n\t\tm_WFImageAction = new HashMap<String, String>();\r\n\t\tm_ActionPopupMenu = new HashMap<String, JPopupMenu>();\r\n\t\tm_PopupMenuImageAction = new HashMap<String, String>();\r\n\t\tm_XONImageViewerPanel = new XONImagePanel(this);\r\n\t\tm_WestPanelWidth = RGPTParams.getIntVal(\"WestPanelWidth\");\r\n\t\tm_SouthPanelHeight = RGPTParams.getIntVal(\"SouthPanelHeight\");\r\n\t\tm_ActionWFPanelMap = new HashMap<String, JPanel>();\r\n\t\tm_ActionButtonMap = new HashMap<String, JButton>();\r\n\t\tif (isWindowsApp)\r\n\t\t\tthis.setLookAndFeel();\r\n\t\telse\r\n\t\t\tm_ContentPaneSize = contentPaneSize;\r\n\t\tm_IsWindowsApp = isWindowsApp;\r\n\t\tif (m_IsWindowsApp) {\r\n\t\t\tthis.createContentPane();\r\n\t\t\tthis.setContentPane(m_ContentPane);\r\n\t\t\tJComponent cont = (JComponent) getContentPane();\r\n\t\t\tBorder raisedBorder = BorderFactory.createRaisedBevelBorder();\r\n\t\t\tcont.setBorder(raisedBorder);\r\n\t\t\tthis.pack();\r\n\t\t\tthis.show();\r\n\t\t}\r\n\t}",
"private Parent rootScene() {\r\n hBox = new HBox();\r\n hBox.setSpacing(10);\r\n hBox.setStyle(\"-fx-background-color: #082B59;\");\r\n hBox.getChildren().addAll(btnCam, btnManAut);\r\n\r\n root.setBottom(hBox);\r\n root.setCenter(imageView);\r\n root.setStyle(\"-fx-background-color: #0A2D68;\");\r\n\r\n return root;\r\n }",
"public IImage createImage(String name) throws IOException {\n return null;\r\n }",
"public JImageEditor() {\n initComponents();\n \n m_Img = null;\n m_maxsize = null;\n m_icon = new ZoomIcon();\n m_jImage.setIcon(m_icon);\n m_jPercent.setText(m_percentformat.format(m_icon.getZoom()));\n privateSetEnabled(isEnabled());\n }",
"public ImagePanelView(ImageModel imageModel) {\n\t\tthis.imageModel = imageModel;\n\t\t\n\t\tsetAlignmentY(TOP_ALIGNMENT);\n\t\tsetBounds(0, 0, WIDTH, HEIGHT);\n\t\tsetPreferredSize(new Dimension(WIDTH, HEIGHT));\n\t\tsetMaximumSize(new Dimension(WIDTH, HEIGHT));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tsetLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\t\n\t\t// Create on click event\n\t\tcreateClickEvent();\n\t\t\n\t\t// Add components to the panel\n\t\tinitializeComponents();\n\t}",
"CreateMosaic(String title) {\n super(title);\n\n Container contentPane = getContentPane();\n\n // Create a user interface.\n\n // Components\n autoLayout = new JCheckBox(\"Auto Layout\");\n autoLayout.setToolTipText(\"For n photos, creates a ~sqrt(n) x ~sqrt(n) grid.\");\n\n byColumns = new JCheckBox(\"By Columns\");\n byColumns.setToolTipText(\"If checked, aligns photos in columns, else by rows.\");\n\n checkBoxArea = new CheckBoxList();\n checkScroll = new JScrollPane(checkBoxArea);\n\n layoutField = new JTextField(100);\n layoutField.setToolTipText(\"#Pic in each row, separated by space.\");\n\n sizeField = new JTextField(50);\n sizeField.setToolTipText(\"If by columns, set height, else set width.\");\n borderField = new JTextField(50);\n\n layoutLabel = new JLabel(\"Layout:\");\n sizeLabel = new JLabel(\"Side:\");\n borderLabel = new JLabel(\"Border:\");\n\n contentPane.setLayout(layout(contentPane));\n\n // Use the helper method makeMenuItem\n // for making the menu items and registering\n // their listener.\n JMenu m = new JMenu(\"File\");\n\n // Modify task names to something relevant to\n // the particular program.\n m.add(fMenuOpen = makeMenuItem(\"Add\"));\n m.add(fMenuApply = makeMenuItem(\"Apply\"));\n m.add(fMenuClose = makeMenuItem(\"Quit\"));\n\n JMenuBar mb = new JMenuBar();\n mb.add(m);\n\n setJMenuBar(mb);\n setSize(500,500);\n }",
"public ImageSection() { // required by the SessionLoader (should not be used elsewhere)\n hasImage = new HasImage();\n }",
"public void clear() {\n\t\tsetImageResource(R.drawable.barcode);\n\t\tthis.setScaleType(ScaleType.CENTER);\n\t}",
"private void createJPanelWithManual() {\r\n URL imageURL = getClass().getResource(manualPath);\r\n\r\n Image image = null;\r\n try {\r\n image = ImageIO.read(imageURL);\r\n } catch (IOException e) {\r\n new IOExceptionCall().getCall();\r\n }\r\n\r\n //scaling the image containing manual.jpg to width and height of panel and converting it to ImageIcon for its\r\n //setting to JLabel\r\n Image image2 = image.getScaledInstance(panel.getWidth(), panel.getHeight(), Image.SCALE_SMOOTH);\r\n ImageIcon imageIcon = new ImageIcon(image2);\r\n\r\n label.setIcon(imageIcon);\r\n panel.add(label, BorderLayout.CENTER);\r\n\r\n }",
"public YuiImage getDefaultImg() {\r\n\t\treturn defaultImg;\r\n\t}",
"public void clearImage() {\n // Clear Image Area\n paint = false;\n this.repaint();\n }",
"private void createImageView() {\n /**\n * We use @{@link AdjustableImageView} so that we can have behaviour like setAdjustViewBounds(true)\n * for Android below API 18\n */\n viewsToBeInflated.add(new AdjustableImageView(getActivityContext()));\n }",
"private JPanel getJPGraficoCusto()\n\t{\n\t\tif ( jPGraficoCusto == null )\n\t\t{\n\t\t\tjPGraficoCusto = new JPanel();\n\t\t\tjPGraficoCusto.setLayout(null);\n\t\t\tjPGraficoCusto.setBounds(new Rectangle(15, 210, 500, 400));\n\t\t}\n\t\treturn jPGraficoCusto;\n\t}",
"public void clear() {\n if (Platform.isFxApplicationThread()) {\n clearImage();\n } else {\n Platform.runLater(() -> clearImage());\n }\n }",
"public ImageView makePic(Image pic,int hNw){\n ImageView v = new ImageView(pic);\n v.setFitHeight(hNw);\n v.setFitWidth(hNw);\n v.setPreserveRatio(true);\n return v;\n }",
"public PgmImage() {\r\n int[][] defaultPixels = {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}};\r\n pixels = new int[defaultPixels.length][defaultPixels[0].length];\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[0].length; ++col) {\r\n pixels[row][col] = (int) (defaultPixels[row][col] * 255.0 / 12);\r\n }\r\n }\r\n pix2img();\r\n }",
"public PublishNoImgJoke() {\n\t\tsuper();\n\t}",
"private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}"
] | [
"0.7800026",
"0.64362586",
"0.63562405",
"0.630541",
"0.62363726",
"0.6193035",
"0.6147309",
"0.5991254",
"0.5958052",
"0.58986485",
"0.58771074",
"0.5848691",
"0.5842481",
"0.58377165",
"0.57902074",
"0.5771693",
"0.57434845",
"0.5717545",
"0.57071906",
"0.56858206",
"0.56649125",
"0.56619465",
"0.5651297",
"0.56487703",
"0.56365615",
"0.56310546",
"0.56305516",
"0.5616103",
"0.5605844",
"0.56039476",
"0.5587027",
"0.5580152",
"0.5565175",
"0.5557002",
"0.5547774",
"0.5527296",
"0.5521408",
"0.5511945",
"0.55018884",
"0.54887617",
"0.54748076",
"0.54747623",
"0.5472264",
"0.5455471",
"0.5443129",
"0.54371226",
"0.5418187",
"0.541148",
"0.54095453",
"0.5394442",
"0.53737515",
"0.53728145",
"0.5368987",
"0.53602725",
"0.53434044",
"0.53230256",
"0.5317674",
"0.5306215",
"0.5295184",
"0.5293393",
"0.5286134",
"0.52807844",
"0.5269254",
"0.526533",
"0.5254151",
"0.5247572",
"0.5247478",
"0.5244326",
"0.52416366",
"0.5237205",
"0.52273524",
"0.52242076",
"0.5221539",
"0.5212256",
"0.5204372",
"0.5200223",
"0.51996315",
"0.51986957",
"0.51892877",
"0.5187795",
"0.51770043",
"0.51749194",
"0.5167773",
"0.5166182",
"0.5166097",
"0.5164458",
"0.5159795",
"0.5159606",
"0.5151076",
"0.51482934",
"0.5144787",
"0.5139971",
"0.51394385",
"0.51393837",
"0.51387274",
"0.5137271",
"0.5134369",
"0.51209885",
"0.511636",
"0.5114287"
] | 0.75973564 | 1 |
Default constructor using default endpoint configuration. | public SftpServer() {
this(new SftpEndpointConfiguration());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}",
"public EndpointDetail() {\n }",
"public void init(EndpointConfig arg0) {\n\t\t\n\t}",
"public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}",
"public EndpointPropertiesBaseInner() {\n }",
"public WSDL() {\r\n\t\tthis(\"\", \"\");\r\n\t}",
"Endpoint getDefaultEndpoint();",
"void setDefaultEndpoint(Endpoint defaultEndpoint);",
"public OServerConfiguration() {}",
"private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }",
"void setDefaultEndpointUri(String endpointUri);",
"public OIDCProviderEndpointMetadata() {\n }",
"public HttpEndpoint( String theEndpoint ) {\n\t\tthis( theEndpoint, true );\n\t}",
"public VantiqEndpoint(String uri, VantiqComponent component) throws Exception {\n // A bit of a strange construct, but necessary given the required interface and Java's requirement that the\n // super() call be the first functional line of a constructor. A \"factory method\" here might be a better\n // choice, but the constructor interface is fixed by Camel.\n super( (uri != null && new URI(uri).getHost().equalsIgnoreCase(SERVER_CONFIG_FILENAME)) ?\n null : uri, component);\n log.debug(\"Creating VantiqEndpoint for uri: {} with sourceName: {}, accessToken: {}\",\n uri, sourceName, accessTokenForLog());\n utils = new InstanceConfigUtils();\n }",
"public LoadTestingClientImpl(String endpoint, LoadTestingServiceVersion serviceVersion) {\n this(\n new HttpPipelineBuilder()\n .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())\n .build(),\n JacksonAdapter.createDefaultSerializerAdapter(),\n endpoint,\n serviceVersion);\n }",
"void setEndpoint(String endpoint);",
"private APIClient() {\n }",
"private CloudEndpointBuilderHelper() {\n }",
"void configureEndpoint(Endpoint endpoint);",
"public ProfileService() {\n\t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n\t}",
"public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }",
"protected Configuration() {\r\n }",
"private ApiConfig() {\n }",
"public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}",
"public API() {}",
"public RestService() {\r\n }",
"public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }",
"public ServiceClient() {\n\t\tsuper();\n\t}",
"public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }",
"public ConfigExample() {\n }",
"protected GaConnector() {\n }",
"protected RestClient() {\n }",
"public LpsClient() {\n super();\n }",
"public ExternalNodeServiceClient() {\n this(ExternalNodeService.DEFAULT_PORT);\n }",
"public DefaultCoupledResource() {\n }",
"public EndPoint(String endpointId, String friendlyName) {\n this.endpointId = endpointId;\n this.manufacturerName = \"Manniu tech\";\n this.modelName = \"model23\";\n this.friendlyName = friendlyName;\n this.description = \"This is a manniu camera\";\n this.displayCategories = new String[]{\"CAMERA\"};\n }",
"public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}",
"protected AmqpTransportConfig() {\n\t\tsuper();\n\t}",
"public CamelREST() throws JAXBException, ParserConfigurationException {\n this.vehicles_interactor = new VehiclesInteractor(\"data/vehicles.xml\");\n this.timetables_interactor = new TimeTablesInteractor(\"data/timetables.xml\");\n this.stations_interactor = new StationsInteractor(\"data/statii-ratt.xml\");\n this.putils = new ParserUtils(\"data/statii-ratt.xml\");\n }",
"public RestService() {\r\n \r\n }",
"public APIOperation()\n {\n super();\n }",
"private Conf() {\n // empty hidden constructor\n }",
"public EndPointAdapter(final SequelDatabase database) {\n\t\tsuper(database, \"endpoint\");\n\t}",
"public DefaultRouterNode() {\n }",
"public Server() {\n\t\tinit(new Config());\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public api() {}",
"private RelayConfig () {}",
"public URIBuilder() {\n super();\n this.port = -1;\n }",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"public Gateway() {\n genClient = new GenericClient<Gateway>(this);\n }",
"public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }",
"public KorisniciREST() {\n }",
"public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }",
"public CalculadoraRESTfulWS() {\n }",
"private Config() {\n }",
"protected Depot() {\n\t\tthis(null);\n\t}",
"public LanguageTranslator() {\n super(SERVICE_NAME);\n if ((getEndPoint() == null) || getEndPoint().isEmpty()) {\n setEndPoint(URL);\n }\n }",
"public ConfigParserHandler() {\n\t}",
"public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}",
"public BrokerAlgo() {}",
"public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }",
"public DefaultHttpRequest() {\n }",
"protected abstract String getBaseEndpoint();",
"public HGDClient() {\n \n \t}",
"public Builder url(URI endpoint) {\n return server(endpoint);\n }",
"public Client() {}",
"public ProfileService(String endpoint) {\n\t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n\t}",
"public EventoWS() {\n }",
"public BrowseOffenceAMClient() {\r\n }",
"public Adsconfig() {\n this(\"AdsConfig\", null);\n }",
"public RiftsawServiceLocator() {\n }",
"private ServiceLocator(){}",
"protected AuctionServer()\n\t{\n\t}",
"public ClienteServicio() {\n }",
"public NetworkFunctionUserConfiguration() {\n }",
"public PanoramaConfig() {\n }",
"private ApiUrlCreator() {\n }",
"private RestClient() {\n }",
"public LoadBalancedSOAPClientImpl(List<String> endpointUrls) throws SOAPException {\n this.endpointUrls = endpointUrls;\n this.soapClient = new SOAPClientImpl();\n this.nextTarget = 0;\n LOGGER.debug(\"Create new LoadBalancedSOAPClientImpl with {} endpoint URLs\", endpointUrls.size());\n for (String url : this.endpointUrls) {\n LOGGER.debug(\"Found URL: \\\"{}\\\"\", url);\n }\n }",
"public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}",
"public DefaultDigitalTransferOptions() {\n }",
"public JerseyWrapper() {\n super(prc);\n }",
"public PushPluginConfigurationImpl() {\n }",
"public JiraManagerWebServiceDelegate() {\r\n this(DEFAULT_CONFIG_PATH, DEFAULT_NAMESPACE);\r\n }",
"public ProfileService(String endpoint) {\n \t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}",
"public SapFactoryImpl() {\n super();\n }",
"public ProfileService(String endpoint, int cacheSize) {\n\t\tsuper(endpoint, cacheSize);\n\t}",
"public interface ApiEndpointDefinition extends Serializable {\n\n\t/**\n\t * Get the endpoint class.\n\t * @return the endpoint class\n\t */\n\tClass<?> getEndpointClass();\n\n\t/**\n\t * Get the endpoint type.\n\t * @return the endpoint type\n\t */\n\tApiEndpointType getType();\n\n\t/**\n\t * Get the scanner type.\n\t * @return the scanner type\n\t */\n\tJaxrsScannerType getScannerType();\n\n\t/**\n\t * Get the endpoint path.\n\t * @return the endpoint path\n\t */\n\tString getPath();\n\n\t/**\n\t * Get the API context id to which the endpoint is bound.\n\t * @return the API context id to which the endpoint is bound\n\t */\n\tString getContextId();\n\n\t/**\n\t * Init the endpoint context.\n\t * @return <code>true</code> if initialized, <code>false</code> if already initialized\n\t */\n\tboolean init();\n\n\t/**\n\t * Create a new {@link ApiEndpointDefinition}.\n\t * @param endpointClass The endpoint class (not null)\n\t * @param type The endpoint type\n\t * @param scannerType The scanner type\n\t * @param path The endpoint path\n\t * @param contextId the API context id to which the endpoint is bound\n\t * @param initializer Initializer (not null)\n\t * @return A new {@link ApiEndpointDefinition} instance\n\t */\n\tstatic ApiEndpointDefinition create(Class<?> endpointClass, ApiEndpointType type, JaxrsScannerType scannerType,\n\t\t\tString path, String contextId, Callable<Void> initializer) {\n\t\treturn new DefaultApiEndpointDefinition(endpointClass, type, scannerType, path, contextId, initializer);\n\t}\n\n}",
"public OpticalHopAccessBean () {\n super();\n }",
"public abstract Endpoint createEndpoint(String bindingId, Object implementor);",
"public DefaultNashRequestImpl() {\n\t\t\n\t}",
"public IheConfiguration() {\n }",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public SeleniumServerConfiguration() {\n }",
"public RequestOptions() {}",
"public RestClient(){\n }",
"public Webinar() {\n\t\t\n\t}",
"public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}"
] | [
"0.7438557",
"0.73872745",
"0.73872745",
"0.72102296",
"0.71328354",
"0.70777524",
"0.6854074",
"0.67956436",
"0.678899",
"0.67129964",
"0.66988593",
"0.6676337",
"0.66718704",
"0.6666831",
"0.6578339",
"0.65739006",
"0.6475434",
"0.643309",
"0.6381265",
"0.63759667",
"0.6370149",
"0.6334995",
"0.63315296",
"0.62911946",
"0.6279491",
"0.62173826",
"0.61735594",
"0.61577094",
"0.61565566",
"0.6155345",
"0.614667",
"0.6146445",
"0.61208415",
"0.60714805",
"0.60673684",
"0.60521454",
"0.6043883",
"0.6034835",
"0.60230494",
"0.6007648",
"0.6002177",
"0.60017383",
"0.5994645",
"0.5983704",
"0.5982683",
"0.5982173",
"0.59818333",
"0.5979941",
"0.59774506",
"0.5961557",
"0.59432214",
"0.5940916",
"0.59216195",
"0.591212",
"0.58938235",
"0.5884577",
"0.5876888",
"0.5876189",
"0.587423",
"0.5858093",
"0.58574593",
"0.5853715",
"0.58414984",
"0.58366805",
"0.5836305",
"0.5835783",
"0.58346057",
"0.5832878",
"0.5813299",
"0.5811848",
"0.5807635",
"0.58028996",
"0.58006126",
"0.57985914",
"0.57982177",
"0.57950634",
"0.5794702",
"0.57897687",
"0.57776225",
"0.5776676",
"0.57741046",
"0.5765235",
"0.5757741",
"0.5757056",
"0.57566226",
"0.57530683",
"0.5750261",
"0.57497424",
"0.57491255",
"0.5748937",
"0.5736073",
"0.5730189",
"0.5720818",
"0.57183945",
"0.57072216",
"0.57013506",
"0.569906",
"0.5690135",
"0.56864023",
"0.56852925",
"0.5677657"
] | 0.0 | -1 |
Constructor using endpoint configuration. | public SftpServer(SftpEndpointConfiguration endpointConfiguration) {
this.endpointConfiguration = endpointConfiguration;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}",
"public EndpointDetail() {\n }",
"public void init(EndpointConfig arg0) {\n\t\t\n\t}",
"public EndpointPropertiesBaseInner() {\n }",
"void configureEndpoint(Endpoint endpoint);",
"public OIDCProviderEndpointMetadata() {\n }",
"void setEndpoint(String endpoint);",
"public VantiqEndpoint(String uri, VantiqComponent component) throws Exception {\n // A bit of a strange construct, but necessary given the required interface and Java's requirement that the\n // super() call be the first functional line of a constructor. A \"factory method\" here might be a better\n // choice, but the constructor interface is fixed by Camel.\n super( (uri != null && new URI(uri).getHost().equalsIgnoreCase(SERVER_CONFIG_FILENAME)) ?\n null : uri, component);\n log.debug(\"Creating VantiqEndpoint for uri: {} with sourceName: {}, accessToken: {}\",\n uri, sourceName, accessTokenForLog());\n utils = new InstanceConfigUtils();\n }",
"private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }",
"public HttpEndpoint( String theEndpoint ) {\n\t\tthis( theEndpoint, true );\n\t}",
"public LoadTestingClientImpl(String endpoint, LoadTestingServiceVersion serviceVersion) {\n this(\n new HttpPipelineBuilder()\n .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())\n .build(),\n JacksonAdapter.createDefaultSerializerAdapter(),\n endpoint,\n serviceVersion);\n }",
"private CloudEndpointBuilderHelper() {\n }",
"public OServerConfiguration() {}",
"private APIClient() {\n }",
"public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }",
"public EndPointAdapter(final SequelDatabase database) {\n\t\tsuper(database, \"endpoint\");\n\t}",
"private ApiConfig() {\n }",
"public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}",
"public Builder url(URI endpoint) {\n return server(endpoint);\n }",
"public interface ApiEndpointDefinition extends Serializable {\n\n\t/**\n\t * Get the endpoint class.\n\t * @return the endpoint class\n\t */\n\tClass<?> getEndpointClass();\n\n\t/**\n\t * Get the endpoint type.\n\t * @return the endpoint type\n\t */\n\tApiEndpointType getType();\n\n\t/**\n\t * Get the scanner type.\n\t * @return the scanner type\n\t */\n\tJaxrsScannerType getScannerType();\n\n\t/**\n\t * Get the endpoint path.\n\t * @return the endpoint path\n\t */\n\tString getPath();\n\n\t/**\n\t * Get the API context id to which the endpoint is bound.\n\t * @return the API context id to which the endpoint is bound\n\t */\n\tString getContextId();\n\n\t/**\n\t * Init the endpoint context.\n\t * @return <code>true</code> if initialized, <code>false</code> if already initialized\n\t */\n\tboolean init();\n\n\t/**\n\t * Create a new {@link ApiEndpointDefinition}.\n\t * @param endpointClass The endpoint class (not null)\n\t * @param type The endpoint type\n\t * @param scannerType The scanner type\n\t * @param path The endpoint path\n\t * @param contextId the API context id to which the endpoint is bound\n\t * @param initializer Initializer (not null)\n\t * @return A new {@link ApiEndpointDefinition} instance\n\t */\n\tstatic ApiEndpointDefinition create(Class<?> endpointClass, ApiEndpointType type, JaxrsScannerType scannerType,\n\t\t\tString path, String contextId, Callable<Void> initializer) {\n\t\treturn new DefaultApiEndpointDefinition(endpointClass, type, scannerType, path, contextId, initializer);\n\t}\n\n}",
"public EndPoint(String endpointId, String friendlyName) {\n this.endpointId = endpointId;\n this.manufacturerName = \"Manniu tech\";\n this.modelName = \"model23\";\n this.friendlyName = friendlyName;\n this.description = \"This is a manniu camera\";\n this.displayCategories = new String[]{\"CAMERA\"};\n }",
"public WSDL() {\r\n\t\tthis(\"\", \"\");\r\n\t}",
"public CamelREST() throws JAXBException, ParserConfigurationException {\n this.vehicles_interactor = new VehiclesInteractor(\"data/vehicles.xml\");\n this.timetables_interactor = new TimeTablesInteractor(\"data/timetables.xml\");\n this.stations_interactor = new StationsInteractor(\"data/statii-ratt.xml\");\n this.putils = new ParserUtils(\"data/statii-ratt.xml\");\n }",
"public RestService() {\r\n }",
"public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);",
"public abstract Endpoint createEndpoint(String bindingId, Object implementor);",
"void setDefaultEndpointUri(String endpointUri);",
"public ProfileService(String endpoint, int cacheSize) {\n\t\tsuper(endpoint, cacheSize);\n\t}",
"public LoadBalancedSOAPClientImpl(List<String> endpointUrls) throws SOAPException {\n this.endpointUrls = endpointUrls;\n this.soapClient = new SOAPClientImpl();\n this.nextTarget = 0;\n LOGGER.debug(\"Create new LoadBalancedSOAPClientImpl with {} endpoint URLs\", endpointUrls.size());\n for (String url : this.endpointUrls) {\n LOGGER.debug(\"Found URL: \\\"{}\\\"\", url);\n }\n }",
"protected RestClient() {\n }",
"public ProfileService(String endpoint) {\n\t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n\t}",
"public ProfileService(String endpoint) {\n \t\tthis(endpoint, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}",
"public ProfileService(String endpoint, int cacheSize) {\n \t\tsuper(endpoint, cacheSize);\n \t\tinitializeCache(cacheSize);\n \t}",
"public RestService() {\r\n \r\n }",
"protected Configuration() {\r\n }",
"public ServiceClient() {\n\t\tsuper();\n\t}",
"public void setEndpoint(com.quikj.server.app.EndPointInterface endpoint) {\n\t\tthis.endpoint = endpoint;\n\t}",
"protected GaConnector() {\n }",
"public APIOperation()\n {\n super();\n }",
"@Autowired\n public RESTTelemetryAdapter(ServiceProperties serviceProperties) {\n super(serviceProperties);\n setServicePath(TELEMETRY_CONNECTOR_CONTEXT_PATH);\n }",
"public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}",
"public API() {}",
"public void setEndpointId(String endpointId);",
"public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}",
"public AbstractReceiverRest(String platformEndpoint) {\n \t\tthis(platformEndpoint + SubscriptionService.PATH, platformEndpoint + TopicService.PATH);\n \t}",
"public void setEndpointUrl(final String endpointUrl) {\n\t\tthis.endpointUrl = endpointUrl;\n\t}",
"protected AmqpTransportConfig() {\n\t\tsuper();\n\t}",
"public ProfileService() {\n\t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n\t}",
"private ResolverService(Peer peer, EndpointService epService)\n {\n super(peer, RESSERVICE_NAME);\n\n // init fields\n initFields();\n \n \n this.epService = epService;\n epService.addListener(serviceName, this); //adding listener to end\n // point service\n\n cache = Cache.createInstance(); //creating cache\n cache.addResource(peer);\n \n\n // get SeedPeerList\n EndpointAddress[] seedPeerList = getSeedURIs();\n \n if (seedPeerList != null && seedPeerList.length > 0)\n {\n int seedListSize = (neighbors > seedPeerList.length ? seedPeerList.length : neighbors);\n seedURI = new EndpointAddress[seedListSize][1];\n for (int i = 0; i < seedListSize; i++)\n {\n seedURI[i][0] = seedPeerList[i];\n }\n }\n// try\n// {\n// mcastURI = new EndpointAddress(null, null, 0);\n// } catch (Exception e)\n// {\n// e.printStackTrace();\n// }\n\n// myPeer = peer;\n peerId = peer.getID().toString(); //TBD kuldeep - Is this needed?\n// peername = myPeer.getName();\n }",
"public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}",
"private ServiceLocator(){}",
"public ConfigExample() {\n }",
"public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }",
"protected abstract String getBaseEndpoint();",
"private Configuration(String location) {\n this.location = location;\n }",
"EndPoint createEndPoint();",
"public RiftsawServiceLocator() {\n }",
"public interface PreconfiguredEndpoint {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the description property: The description of the endpoint.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the endpoint property: The endpoint that is preconfigured.\n *\n * @return the endpoint value.\n */\n String endpoint();\n\n /**\n * Gets the endpointType property: The type of endpoint.\n *\n * @return the endpointType value.\n */\n EndpointType endpointType();\n\n /**\n * Gets the backend property: The preconfigured endpoint backend.\n *\n * @return the backend value.\n */\n String backend();\n\n /**\n * Gets the inner com.azure.resourcemanager.frontdoor.fluent.models.PreconfiguredEndpointInner object.\n *\n * @return the inner object.\n */\n PreconfiguredEndpointInner innerModel();\n}",
"public OSSUtil(String endpoint, String accessKeyId, String secretAccessKey) {\n this.accessKeyId = accessKeyId;\n this.secretAccessKey = secretAccessKey;\n this.endpoint = endpoint;\n initClient(endpoint, accessKeyId, secretAccessKey);\n }",
"@Autowired\n public FoDRestConnectionService(final HubFoDConfigProperties appProps) {\n this.appProps = appProps;\n client = Create();\n\n }",
"private ApiUrlCreator() {\n }",
"public RestClient(){\n }",
"public JerseyWrapper() {\n super(prc);\n }",
"PreconfiguredEndpointInner innerModel();",
"public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public RemoteFacadeServiceLocator() {\r\n }",
"public Client(Configuration config) {\n if (config == null)\n throw new IllegalArgumentException(\"Null argument supplied\");\n this.config = config;\n connectivityStatus = ConnectivityStatus.Initial;\n lastInteraction = new Date(0l);\n recentPeers = new PeerList();\n refreshInterval = 30000l;\n randomizedRefreshInterval = (int)(refreshInterval * (1 - 0.25 * new Random ().nextDouble()));\n myLinkLocalAdress = Inet6Address.getByAddress(,, LINKLOCAL)\n }",
"public TwilioLinkedServiceTypeProperties() {\n }",
"public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }",
"EndpointDetails getEndpointDetails();",
"Endpoint getDefaultEndpoint();",
"public Factory() {\n this(getInternalClient());\n }",
"public EventoWS() {\n }",
"public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }",
"public void init() {\n configuration.init();\n \n //Connections connections = configuration.getBroker().getConnections(\"topic\");\n Connections connections = configuration.getBrokerPool().getBroker().getConnections(\"topic\");\n \n if (connections == null) {\n handleException(\"Couldn't find the connection factor: \" + \"topic\");\n }\n \n sensorCatalog = new SensorCatalog();\n clientCatalog = new ClientCatalog();\n \n nodeCatalog = new NodeCatalog();\n \n updateManager = new UpdateManager(configuration, sensorCatalog, this);\n updateManager.init();\n \n endpointAllocator = new EndpointAllocator(configuration, nodeCatalog);\n\n registry = new JCRRegistry(this);\n registry.init();\n\n // Initialize Public-End-Point\n if(!isPublicEndPointInit) {\n \tinitPublicEndpoint();\n }\n }",
"private RestClient() {\n }",
"private EndpointSettings loadEndpoint(String type) {\n\t\tEndpointSettings endpoint = new EndpointSettings();\n\t\tif (\"UVC\".equals(type)) {\n\t\t\tendpoint.setENDPOINT_TRANSFER_TYPE(\"Bulk\");\n\t\t\tendpoint.setRESERVED(\"FF\");\n\t\t}\n\t\tendpoint.setBURST_LENGTH(1);\n\t\tendpoint.setBUFFER_SIZE(16);\n\t\tendpoint.setBUFFER_COUNT(1);\n\t\tendpoint.setUSED_BUFFER_SPACE(0);\n\t\treturn endpoint;\n\t}",
"public PanoramaConfig() {\n }",
"public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }",
"public LoadTestingClientImpl(\n HttpPipeline httpPipeline,\n SerializerAdapter serializerAdapter,\n String endpoint,\n LoadTestingServiceVersion serviceVersion) {\n this.httpPipeline = httpPipeline;\n this.serializerAdapter = serializerAdapter;\n this.endpoint = endpoint;\n this.serviceVersion = serviceVersion;\n this.loadTestAdministrations = new LoadTestAdministrationsImpl(this);\n this.loadTestRuns = new LoadTestRunsImpl(this);\n }",
"public GetMembersREST() {\n }",
"public LpsClient() {\n super();\n }",
"public GoodreadsApiService() throws JAXBException {\n // TODO make beans out of these and inject them into this to enable proper testing of this class\n JAXBContext jaxbContext = JAXBContext.newInstance(GoodreadsResponse.class);\n unmarshaller = jaxbContext.createUnmarshaller();\n restTemplate = new RestTemplate();\n }",
"public Gateway() {\n genClient = new GenericClient<Gateway>(this);\n }",
"void setupEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String endpointGUID,\n Date effectiveFrom,\n Date effectiveTo,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"public URIBuilder() {\n super();\n this.port = -1;\n }",
"public ServiceConfig(ServiceConfig source) {\n if (source.Product != null) {\n this.Product = new String(source.Product);\n }\n if (source.UniqVpcId != null) {\n this.UniqVpcId = new String(source.UniqVpcId);\n }\n if (source.Url != null) {\n this.Url = new String(source.Url);\n }\n if (source.Path != null) {\n this.Path = new String(source.Path);\n }\n if (source.Method != null) {\n this.Method = new String(source.Method);\n }\n if (source.UpstreamId != null) {\n this.UpstreamId = new String(source.UpstreamId);\n }\n if (source.CosConfig != null) {\n this.CosConfig = new CosConfig(source.CosConfig);\n }\n }",
"public ServiceConnectionFactory(HttpUrl __url)\n\t\tthrows NullPointerException\n\t{\n\t\tif (__url == null)\n\t\t\tthrow new NullPointerException();\n\t\t\n\t\tthis.url = __url;\n\t}",
"public ControllerClientConfig(String host, int port) {\n this.host = host;\n this.port = port;\n }",
"public api() {}",
"private RelayConfig () {}",
"private Config() {\n }",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public BeerServiceClient(RestTemplateBuilder restTemplateBuilder) {\n this.restTemplate = restTemplateBuilder.build();\n }",
"public ExternalNodeServiceClient() {\n this(ExternalNodeService.DEFAULT_PORT);\n }",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"public RgwAdminBuilder endpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }"
] | [
"0.75072247",
"0.74590963",
"0.74590963",
"0.73502666",
"0.7182448",
"0.7122103",
"0.70066595",
"0.67832804",
"0.6732964",
"0.6689107",
"0.66496897",
"0.6610354",
"0.65201086",
"0.6375776",
"0.63141227",
"0.6265788",
"0.6252103",
"0.61697215",
"0.6149635",
"0.61315674",
"0.606337",
"0.6037173",
"0.60366815",
"0.60258317",
"0.59973717",
"0.59759545",
"0.5969026",
"0.5942415",
"0.59416425",
"0.5907599",
"0.59040153",
"0.5901506",
"0.5895655",
"0.5895617",
"0.5889554",
"0.5876557",
"0.5874785",
"0.58613527",
"0.5858742",
"0.5838599",
"0.58381754",
"0.5826774",
"0.5825222",
"0.582252",
"0.58222985",
"0.58092266",
"0.5803735",
"0.5800958",
"0.5783184",
"0.5781766",
"0.577599",
"0.5767347",
"0.5767313",
"0.5765728",
"0.57601887",
"0.5758208",
"0.57564586",
"0.5755904",
"0.5749643",
"0.5738193",
"0.5734567",
"0.57319844",
"0.5730032",
"0.5728451",
"0.5721677",
"0.57201964",
"0.57199496",
"0.5704519",
"0.5704519",
"0.5695619",
"0.56876475",
"0.5685867",
"0.56844383",
"0.5683631",
"0.566949",
"0.56529915",
"0.56511647",
"0.56509185",
"0.5649096",
"0.5644142",
"0.5642324",
"0.56392235",
"0.5632783",
"0.56222945",
"0.56219894",
"0.5620427",
"0.56199235",
"0.5614084",
"0.5612646",
"0.56106514",
"0.56072354",
"0.56039244",
"0.56032366",
"0.5598529",
"0.55966336",
"0.5595772",
"0.5592011",
"0.5590859",
"0.5578483",
"0.5577642",
"0.55722314"
] | 0.0 | -1 |
Applies textures and models to a given block and it's item form. | public static void render(Block block) {
Item item = Item.getItemFromBlock(block);
ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 static void addFakeItemDataToInWorldBlocksAndCleanUpFakeData() {\n\n Map<String, Materials> MATERIALS_MAP = null;\n\n try {\n Field f = Materials.class.getDeclaredField(\"MATERIALS_MAP\");\n f.setAccessible(true);\n MATERIALS_MAP = (Map<String, Materials>) f.get(null);\n } catch (NoSuchFieldException | IllegalAccessException | ClassCastException e) {\n e.printStackTrace();\n }\n\n if (MATERIALS_MAP == null)\n throw new NullPointerException(\"MATERIALS_MAP null!\");\n\n Materials oreMat = new Materials(-1, null, 0, 0, 0, false, \"bwores\", \"bwores\", null, true, null);\n Materials smallOreMat = new Materials(-1, null, 0, 0, 0, false, \"bwsmallores\", \"bwsmallores\", null, true, null);\n Materials blockMat = new Materials(-1, null, 0, 0, 0, false, \"bwblocks\", \"bwblocks\", null, true, null);\n\n for (int i = 0; i < 16; i++) {\n GT_OreDictUnificator.addAssociation(ore, oreMat, new ItemStack(BWOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(oreSmall, smallOreMat, new ItemStack(BWSmallOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(block, blockMat, new ItemStack(BWBlocks, 1, i), true);\n }\n\n MATERIALS_MAP.remove(\"bwores\");\n MATERIALS_MAP.remove(\"bwsmallores\");\n MATERIALS_MAP.remove(\"bwblocks\");\n }",
"private static void registerBlocks() {\n for(Block block : modBlocks) {\n ForgeRegistries.BLOCKS.register(block);\n\n ItemBlock itemBlock = new ItemBlock(block);\n itemBlock.setRegistryName(block.getRegistryName());\n ForgeRegistries.ITEMS.register(itemBlock);\n }\n }",
"public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}",
"public static void renderItemIntoGUIScalable(ItemStack stack, int width, int height, IBakedModel bakedmodel, ItemRenderer renderer, TextureManager textureManager) {\n\t\tRenderSystem.pushMatrix();\n\t\ttextureManager.bindTexture(AtlasTexture.LOCATION_BLOCKS_TEXTURE);\n\t\tTexture texture = textureManager.getTexture(AtlasTexture.LOCATION_BLOCKS_TEXTURE);\n\t\tif (texture != null) {\n\t\t\ttexture.setBlurMipmapDirect(false, false);\n\t\t}\n\t\tRenderSystem.enableRescaleNormal();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.defaultAlphaFunc();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);\n\t\tRenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t\tRenderSystem.translatef((float) 0, (float) 0, 100.0F + renderer.zLevel);\n\t\tRenderSystem.translatef(8.0F, 8.0F, 0.0F);\n\t\tRenderSystem.scalef(1.0F, -1.0F, 1.0F);\n\t\tRenderSystem.scalef(48.0F, 48.0F, 48.0F);\n\t\tMatrixStack matrixstack = new MatrixStack();\n\t\tIRenderTypeBuffer.Impl irendertypebuffer$impl = Minecraft.getInstance().getRenderTypeBuffers().getBufferSource();\n\t\tboolean flag = !bakedmodel.isSideLit();\n\t\tif (flag) {\n\t\t\tRenderHelper.setupGuiFlatDiffuseLighting();\n\t\t}\n\n\t\trenderer.renderItem(stack, ItemCameraTransforms.TransformType.GUI, false, matrixstack, irendertypebuffer$impl, 15728880, OverlayTexture.NO_OVERLAY, bakedmodel);\n\t\tirendertypebuffer$impl.finish();\n\t\tRenderSystem.enableDepthTest();\n\t\tif (flag) {\n\t\t\tRenderHelper.setupGui3DDiffuseLighting();\n\t\t}\n\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.disableRescaleNormal();\n\t\tRenderSystem.popMatrix();\n\t}",
"public void renderInvBlock(bbb renderblocks, int md)\r\n/* 73: */ {\r\n/* 74: 72 */ this.block.f();\r\n/* 75: */ \r\n/* 76: 74 */ this.context.setDefaults();\r\n/* 77: 75 */ this.context.setPos(-0.5D, -0.5D, -0.5D);\r\n/* 78: 76 */ this.context.useNormal = true;\r\n/* 79: 77 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 80: */ \r\n/* 81: 79 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 82: 80 */ baz tessellator = baz.a;\r\n/* 83: */ \r\n/* 84: 82 */ tessellator.b();\r\n/* 85: 83 */ this.context.useNormal = true;\r\n/* 86: */ \r\n/* 87: */ \r\n/* 88: 86 */ this.context.setTex(28, 28, 26, 26, 26, 26);\r\n/* 89: */ \r\n/* 90: 88 */ this.context.renderBox(60, 0.375D, 0.0D, 0.375D, 0.625D, 1.0D, 0.625D);\r\n/* 91: 89 */ this.context.renderBox(60, 0.6240000128746033D, 0.9990000128746033D, 0.6240000128746033D, 0.3759999871253967D, 0.001000000047497451D, 0.3759999871253967D);\r\n/* 92: 90 */ renderFlanges(3, 27);\r\n/* 93: */ \r\n/* 94: 92 */ tessellator.a();\r\n/* 95: 93 */ RenderLib.unbindTexture();\r\n/* 96: 94 */ this.context.useNormal = false;\r\n/* 97: */ }",
"@Override\n @SuppressWarnings(\"unchecked\")\n @SideOnly(Side.CLIENT)\n public void registerItemModels() {\n final Item item = this;\n final ResourceLocation loc = ForgeRegistries.BLOCKS.getKey(block);\n\n for(T o : (Collection<T>) mappingProperty.getAllowedValues()) {\n int meta = block.getMetaFromState(block.getDefaultState().withProperty(mappingProperty, o));\n String name = mappingProperty.getName(o);\n\n ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(loc, \"half=bottom,\" + mappingProperty.getName() + \"=\" + name));\n }\n }",
"public static ItemFrame addItemFrame(Block block, BlockFace face) {\n\t\tfinal Material mat = Material.GLASS;\n\t\tBlock northBlock = block.getWorld().getBlockAt(block.getX(), block.getY(), block.getZ() - 1);\n\t\tBlock southBlock = block.getWorld().getBlockAt(block.getX(), block.getY(), block.getZ() + 1);\n\t\tBlock eastBlock = block.getWorld().getBlockAt(block.getX() - 1, block.getY(), block.getZ());\n\t\tBlock westBlock = block.getWorld().getBlockAt(block.getX() + 1, block.getY(), block.getZ());\n\n\t\tif (northBlock.getType() == Material.AIR) {\n\t\t\tnorthBlock.setType(mat);\n\t\t}\n\t\tif (southBlock.getType() == Material.AIR) {\n\t\t\tsouthBlock.setType(mat);\n\t\t}\n\t\tif (eastBlock.getType() == Material.AIR) {\n\t\t\teastBlock.setType(mat);\n\t\t}\n\t\tif (westBlock.getType() == Material.AIR) {\n\t\t\twestBlock.setType(mat);\n\t\t}\n\n\t\tif (face == BlockFace.NORTH) {\n\t\t\tnorthBlock.setType(Material.AIR);\n\t\t} else if (face == BlockFace.SOUTH) {\n\t\t\tsouthBlock.setType(Material.AIR);\n\t\t} else if (face == BlockFace.EAST) {\n\t\t\teastBlock.setType(Material.AIR);\n\t\t} else if (face == BlockFace.WEST) {\n\t\t\twestBlock.setType(Material.AIR);\n\t\t}\n\n\t\tItemFrame itemFrame = (ItemFrame) block.getWorld().spawnEntity(block.getLocation(), EntityType.ITEM_FRAME);\n\n\t\tif (northBlock.getType() == mat) {\n\t\t\tnorthBlock.setType(Material.AIR);\n\t\t}\n\t\tif (southBlock.getType() == mat) {\n\t\t\tsouthBlock.setType(Material.AIR);\n\t\t}\n\t\tif (eastBlock.getType() == mat) {\n\t\t\teastBlock.setType(Material.AIR);\n\t\t}\n\t\tif (westBlock.getType() == mat) {\n\t\t\twestBlock.setType(Material.AIR);\n\t\t}\n\n\t\treturn itemFrame;\n\t}",
"@Override\n\tpublic void postinit(FMLPostInitializationEvent event) {\n\t\t\n\t\tRenderItem renderItem = Minecraft.getMinecraft().getRenderItem();\n\t\t\n\t\t//blocks\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.bonepile), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockBonePile) TCMBlocks.bonepile).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.obsidianpressureplate), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockObsidianPressurePlate) TCMBlocks.obsidianpressureplate).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.invisiblepressureplate), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockInvisiblePressurePlate) TCMBlocks.invisiblepressureplate).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.crystaltorch), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockCrystalTorch) TCMBlocks.crystaltorch).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.solidglass), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockSolidGlass) TCMBlocks.solidglass).getName(), \"inventory\"));\n\n\t\t//items\n\t\trenderItem.getItemModelMesher().register(TCMItems.firestaff, 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((ItemFireStaff) TCMItems.firestaff).getName(), \"inventory\"));\n\n\t}",
"void updateBlock(Block block) ;",
"public static void register(Block block, ItemBlock itemBlock) {\n\t\tGameRegistry.register(block);\n\t\tGameRegistry.register(itemBlock);\n\t}",
"public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }",
"public void setBlockBoundsForItemRender() {\n\t\tthis.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\n\t}",
"public static void loadItemTextures() {\n\t\tspriteTItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteRItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t}",
"public void PlantMe(Block block){\n \tplugin.getReplant().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeplant_Timer().getPoolSize() < plugin.getTreeplant_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeplant_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getReplant().isEmpty())){\r\n \t\t\t\t\t\tBlock loadedBlock = plugin.getReplant().get(0);\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getReplant().remove(0);\r\n \t\t\t\t\t\t//protect it\r\n \t\t\t\t\t\tProtectMe(loadedBlock);\r\n \t\t\t\t\t\t//made into a sap\r\n \t\t\t\t\t\tif( (loadedBlock.getType().equals(Material.AIR)) || (loadedBlock.getType().equals(Material.FIRE)) ) //just incase it was on fire\r\n \t\t\t\t\t\t\tloadedBlock.setType(Material.SAPLING);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\t/* No longer needed! Didn't realized leaves light blocking changed way back when.\r\n \t\t\t\t\t\t * for(int i=loadedBlock.getY(); i < 128; i++){\r\n \t\t\t\t\t\t\t//delete all the leaves in a line to the sky limit\r\n \t\t\t\t\t\t\tif(loadedBlock.getType()==Material.LEAVES){\r\n \t\t\t\t\t\t\t\t//it's a leaf delete it\r\n \t\t\t\t\t\t\t\tloadedBlock.setType(Material.AIR);\r\n \t\t\t\t\t\t\t\t//update on server | Not needed?\r\n \t\t\t\t\t\t\t\t//etc.getServer().setBlock(leafToDelete);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t//go up one\r\n \t\t\t\t\t\t\tloadedBlock = loadedBlock.getFace(BlockFace.UP);\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}, plugin.getdelayTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}",
"private static void craftSlab(Block block)\r\n\t{\r\n\t\tBlockExtraSlab input = ((BlockExtraSlab)block);\r\n\t\tBlock parent = input.getParent();\r\n\t\tint parentMeta = input.getParentMeta();\r\n\t\t\r\n\t\tGameRegistry.addRecipe(new ItemStack(block, 6, 0), new Object[] { \"###\", '#', new ItemStack(parent, 1, parentMeta) });\r\n\t\tGameRegistry.addRecipe(new ItemStack(parent, 1, parentMeta), new Object[] { \"#\", \"#\", '#', new ItemStack(block) });\r\n\t}",
"public void setBlockBoundsForItemRender()\n {\n if (this.isFullBlock)\n {\n this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\n }\n else\n {\n this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);\n }\n }",
"@Overwrite\n public void renderItemAndEffectIntoGUI(FontRenderer fontRenderer, TextureManager textureManager, final ItemStack final_item, int p_82406_4_, int p_82406_5_) {\n\n ItemStack itemStack = ItemUtils.changeRenderTarget(final_item);\n\n if (itemStack != null) {\n this.zLevel += 50.0F;\n\n try {\n if (!ForgeHooksClient.renderInventoryItem(this.field_147909_c, textureManager, itemStack, renderWithColor, zLevel, (float) p_82406_4_, (float) p_82406_5_)) {\n this.renderItemIntoGUI(fontRenderer, textureManager, itemStack, p_82406_4_, p_82406_5_, true);\n }\n } catch (Throwable throwable) {\n CrashReport crashreport = CrashReport.makeCrashReport(throwable, \"Rendering item\");\n CrashReportCategory crashreportcategory = crashreport.makeCategory(\"Item being rendered\");\n crashreportcategory.addCrashSection(\"Item Type\", String.valueOf(itemStack.getItem()));\n crashreportcategory.addCrashSection(\"Item Aux\", String.valueOf(itemStack.getItemDamage()));\n crashreportcategory.addCrashSection(\"Item NBT\", String.valueOf(itemStack.getTagCompound()));\n crashreportcategory.addCrashSection(\"Item Foil\", String.valueOf(itemStack.hasEffect()));\n throw new ReportedException(crashreport);\n }\n\n // Forge: Bugfix, Move this to a per-render pass, modders must handle themselves\n if (false && itemStack.hasEffect()) {\n GL11.glDepthFunc(GL11.GL_EQUAL);\n GL11.glDisable(GL11.GL_LIGHTING);\n GL11.glDepthMask(false);\n textureManager.bindTexture(RES_ITEM_GLINT);\n GL11.glEnable(GL11.GL_ALPHA_TEST);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);\n this.renderGlint(p_82406_4_ * 431278612 + p_82406_5_ * 32178161, p_82406_4_ - 2, p_82406_5_ - 2, 20, 20);\n OpenGlHelper.glBlendFunc(770, 771, 1, 0);\n GL11.glDepthMask(true);\n GL11.glEnable(GL11.GL_LIGHTING);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n }\n\n this.zLevel -= 50.0F;\n }\n }",
"@Override\r\n public void preInit(FMLPreInitializationEvent e) {\n \tModBlocks.registerBlockModels();\r\n \tnet.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityTribeling.class, RenderTribeling.FACTORY);\r\n super.preInit(e);\r\n }",
"public interface ICustomRenderedBlock<T extends TileEntityBase> {\n /**\n * Gets called to create the IBlockRenderingHandler instance to render this block with\n * @return a new IBlockRenderingHandler object for this block\n */\n @SideOnly(Side.CLIENT)\n IBlockRenderingHandler getRenderer();\n\n /**\n * Gets an array of ResourceLocations used for the model of this block, all block states for this block will use this as key in the model registry\n * @return a unique ModelResourceLocation for this block\n */\n @SideOnly(Side.CLIENT)\n ModelResourceLocation getBlockModelResourceLocation();\n\n /**\n * Quads are cached and only recalculated when a render update is necessary. If this block does not have a tile entity, this method will not be called,\n * instead the previous block state is compared with the new block state to determine if a render update is needed.\n * @param world world object\n * @param pos position of the block\n * @param state block state of the block\n * @param tile tile entity at the passed position\n * @return if the appearance of the block has changed and quads need to be redrawn\n */\n @SideOnly(Side.CLIENT)\n boolean needsRenderUpdate(World world, BlockPos pos, IBlockState state, T tile);\n\n List<ResourceLocation> getTextures();\n}",
"public static void registerRenders() {\n for(Block block : modBlocks)\n BlockHelper.registerRender(block);\n }",
"private void Management_Block(Block block){\n\t\t\n\t\t switch(block.BlockState){\n\t\t \n\t\t case 0: // player is not lost game. continue with tile micro managment\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\n\t\t\t\t boolean CoinCollision = CollisionDetection(playerUser.bounds,rectTile);\n\t\t\t\t \n\t\t\t\t switch(tile.state)\n\t\t\t\t {\n\t\t\t\t \n\t\t\t\t case 0: // no collision, show the block\n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\n\t\t\t\t\t \n\t\t\t\t\t if (PauseGame) \n\t\t\t\t\t\t continue;\n\t\t\t\t\t\t \n\t\t\t\t\t\t if (CoinCollision==true){\n\t\t\t\t\t\t\t tile.state++; \t\t\t\t\t\t\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 \n\t\t\t\t\t\t else if (ThisGameRound==GameState.Running){\t \n\t\t\t\t\t\t\t if (block.Passed==false){\n\t\t\t\t\t\t\t\t if (playerUser.position.x > block.Wall.get(0).rectTile.x){\n\t\t\t\t\t\t\t\t\t levelbuilder.gamePoints = levelbuilder.gamePoints + 1;\n\t\t\t\t\t\t\t\t\t fntScore.setBitmapText(\"Score: \" + String.valueOf(levelbuilder.gamePoints));\n\t\t\t\t\t\t\t\t\t block.Passed=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\t else if (block.Passed==true){\n\t\t\t\t\t\t\t\t //do nothing.\n\t\t\t\t\t\t\t }\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t case 1: \n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(),rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t \n\t\t\t\t\t // if there is a collotion, draw it one time only \t\t\t \t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t// collision, but player has key\n\t\t\t\t\t\t PhoneDevice.Vibrate();\t\n\t\t\t\t\t\t if ((playerUser.color==block.color) || (playerUser.color==Color.ALL)){\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\ttile.setBlockImg(tile.BlockType);\t\n\t\t\t\t\t \t\ttile.PlayBreakThoughSound();\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t // collision, but player dont have a key: break from tile loop and \n\t\t\t\t\t \t // draw block crash effect\n\t\t\t\t\t\t else if (DEBUG==false){\n\t\t\t\t\t\t\t block.BlockState=1;\n\t\t\t\t\t\t\t ThisGameRound = GameState.GameOver;\t\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t tile.pe = Effects.setNewEffect(enumEffects.TileDistruction, block.color);\t\t\t\t\t\t \n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t tile.pe.start();\t\n\t\t\t\t\t tile.state++;\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t case 2:\n\t\t\t\t\t // continue to draw the effect: no matter collision result\n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t \n\t\t\t\t\t tile.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t\t tile.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t break;\n\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 break;\n\t\t case 1: // player hit the wall without key\t\t\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.PlayCrashSound();\t\t\n\t\t\t block.pe = Effects.setNewEffect(enumEffects.Crash, block.color);\t\t\t\t\t\t \n\t\t\t block.pe.setPosition(playerUser.bounds.x + playerUser.bounds.width,\n\t\t\t\t\t playerUser.bounds.y + playerUser.bounds.height/2);\t\n\t\t\t block.pe.start();\n\t\t\t block.BlockState++;\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t block.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\n\t\t\t break;\n\t\t }\t\t\n\t }",
"public void importExternal(Block block, Map<Integer,Integer> binding) {\r\n\t\tint freeSlot = numSlots();\r\n\t\t\r\n\t\t// First, sanity check that all input variables are bound\r\n\t\tHashMap<Integer,Integer> nbinding = new HashMap<Integer,Integer>();\r\n\t\tfor(int i=0;i!=block.numInputs;++i) {\r\n\t\t\tInteger target = binding.get(i);\r\n\t\t\tif(target == null) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Input not mapped by input\");\r\n\t\t\t}\r\n\t\t\tnbinding.put(i,target);\r\n\t\t\tfreeSlot = Math.max(target+1,freeSlot);\r\n\t\t}\r\n\t\t\r\n\t\t// Second, determine binding for temporary variables\t\t\r\n\t\tfor(int i=block.numInputs;i!=block.numSlots();++i) {\r\n\t\t\tnbinding.put(i,i+freeSlot);\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Third, determine relabelling\r\n\t\tHashMap<String,String> labels = new HashMap<String,String>();\r\n\t\t\r\n\t\tfor (Entry s : block) {\r\n\t\t\tif (s.code instanceof Code.Label) {\r\n\t\t\t\tCode.Label l = (Code.Label) s.code;\r\n\t\t\t\tlabels.put(l.label, freshLabel());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Finally, apply the binding and relabel any labels as well.\r\n\t\tfor(Entry s : block) {\r\n\t\t\tCode ncode = s.code.remap(nbinding).relabel(labels);\r\n\t\t\tappend(ncode,s.attributes());\r\n\t\t}\r\n\t}",
"private static Item registerBlockItem(Block block, Item.Settings settings){\n Identifier id = Registry.BLOCK.getId(block);\n return CottonItemHelper.registerItem(id.getNamespace(), id.getPath(), new BlockItem(block, settings));\n }",
"public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }",
"public void doRender(ModEntityTNTPrimed par1TNTPrimed, double x, double y, double z, float par5, float par6)\n {\n GL11.glPushMatrix();\n GL11.glTranslatef((float)x, (float)y, (float)z);\n float f2;\n\n if ((float)par1TNTPrimed.getFuse() - par6 + 1.0F < 10.0F)\n {\n f2 = 1.0F - ((float)par1TNTPrimed.getFuse() - par6 + 1.0F) / 10.0F;\n\n if (f2 < 0.0F)\n {\n f2 = 0.0F;\n }\n\n if (f2 > 1.0F)\n {\n f2 = 1.0F;\n }\n\n f2 *= f2;\n f2 *= f2;\n float f3 = 1.0F + f2 * 0.3F;\n GL11.glScalef(f3, f3, f3);\n }\n\n f2 = (1.0F - ((float)par1TNTPrimed.getFuse() - par6 + 1.0F) / 100.0F) * 0.8F;\n this.bindEntityTexture(par1TNTPrimed);\n this.blockRenderer.renderBlockAsItem(ModBlocks.modTNT[(par1TNTPrimed.getFuse() / 20) + 1], 0, par1TNTPrimed.getBrightness(par6));\n\n// if (par1TNTPrimed.getFuse() / 5 % 2 == 0)\n// {\n// GL11.glDisable(GL11.GL_TEXTURE_2D);\n// GL11.glDisable(GL11.GL_LIGHTING);\n// GL11.glEnable(GL11.GL_BLEND);\n// GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_DST_ALPHA);\n// GL11.glColor4f(1.0F, 1.0F, 1.0F, f2);\n// this.blockRenderer.renderBlockAsItem(ModBlocks.modTNT[(par1TNTPrimed.getFuse() / 20) + 1], 0, 1.0F);\n// GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n// GL11.glDisable(GL11.GL_BLEND);\n// GL11.glEnable(GL11.GL_LIGHTING);\n// GL11.glEnable(GL11.GL_TEXTURE_2D);\n// }\n\n GL11.glPopMatrix();\n }",
"public static boolean renderCustomEffect(RenderItem renderItem, ItemStack itemStack, IBakedModel model) {\n/* 765 */ if (enchantmentProperties == null)\n/* */ {\n/* 767 */ return false;\n/* */ }\n/* 769 */ if (itemStack == null)\n/* */ {\n/* 771 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 775 */ int[][] idLevels = getEnchantmentIdLevels(itemStack);\n/* */ \n/* 777 */ if (idLevels.length <= 0)\n/* */ {\n/* 779 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 783 */ HashSet<Integer> layersRendered = null;\n/* 784 */ boolean rendered = false;\n/* 785 */ TextureManager textureManager = Config.getTextureManager();\n/* */ \n/* 787 */ for (int i = 0; i < idLevels.length; i++) {\n/* */ \n/* 789 */ int id = idLevels[i][0];\n/* */ \n/* 791 */ if (id >= 0 && id < enchantmentProperties.length) {\n/* */ \n/* 793 */ CustomItemProperties[] cips = enchantmentProperties[id];\n/* */ \n/* 795 */ if (cips != null)\n/* */ {\n/* 797 */ for (int p = 0; p < cips.length; p++) {\n/* */ \n/* 799 */ CustomItemProperties cip = cips[p];\n/* */ \n/* 801 */ if (layersRendered == null)\n/* */ {\n/* 803 */ layersRendered = new HashSet();\n/* */ }\n/* */ \n/* 806 */ if (layersRendered.add(Integer.valueOf(id)) && matchesProperties(cip, itemStack, idLevels) && cip.textureLocation != null) {\n/* */ \n/* 808 */ textureManager.bindTexture(cip.textureLocation);\n/* 809 */ float width = cip.getTextureWidth(textureManager);\n/* */ \n/* 811 */ if (!rendered) {\n/* */ \n/* 813 */ rendered = true;\n/* 814 */ GlStateManager.depthMask(false);\n/* 815 */ GlStateManager.depthFunc(514);\n/* 816 */ GlStateManager.disableLighting();\n/* 817 */ GlStateManager.matrixMode(5890);\n/* */ } \n/* */ \n/* 820 */ Blender.setupBlend(cip.blend, 1.0F);\n/* 821 */ GlStateManager.pushMatrix();\n/* 822 */ GlStateManager.scale(width / 2.0F, width / 2.0F, width / 2.0F);\n/* 823 */ float offset = cip.speed * (float)(Minecraft.getSystemTime() % 3000L) / 3000.0F / 8.0F;\n/* 824 */ GlStateManager.translate(offset, 0.0F, 0.0F);\n/* 825 */ GlStateManager.rotate(cip.rotation, 0.0F, 0.0F, 1.0F);\n/* 826 */ renderItem.func_175035_a(model, -1);\n/* 827 */ GlStateManager.popMatrix();\n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* 834 */ if (rendered) {\n/* */ \n/* 836 */ GlStateManager.enableAlpha();\n/* 837 */ GlStateManager.enableBlend();\n/* 838 */ GlStateManager.blendFunc(770, 771);\n/* 839 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 840 */ GlStateManager.matrixMode(5888);\n/* 841 */ GlStateManager.enableLighting();\n/* 842 */ GlStateManager.depthFunc(515);\n/* 843 */ GlStateManager.depthMask(true);\n/* 844 */ textureManager.bindTexture(TextureMap.locationBlocksTexture);\n/* */ } \n/* */ \n/* 847 */ return rendered;\n/* */ }",
"public static void revertBlock(final Block block, final Material defaulttype) {\r\n\t\tif (instances_.containsKey(block)) {\r\n\t\t\t//We clone the list first, then remove before reverting. The tempblock list is cloned so we get no concurrent modification exceptions\r\n\t\t\tList<TempBlock> tempBlocks = new ArrayList<>(instances_.get(block));\r\n\t\t\ttempBlocks.forEach((b) -> {\r\n\t\t\t\tTempBlock.remove(b);\r\n\t\t\t\tb.trueRevertBlock();\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tif ((defaulttype == Material.LAVA) && GeneralMethods.isAdjacentToThreeOrMoreSources(block, true)) {\r\n\t\t\t\tfinal BlockData data = Material.LAVA.createBlockData();\r\n\r\n\t\t\t\tif (data instanceof Levelled) {\r\n\t\t\t\t\t((Levelled) data).setLevel(0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tblock.setBlockData(data, applyPhysics(data.getMaterial()));\r\n\t\t\t} else if ((defaulttype == Material.WATER) && GeneralMethods.isAdjacentToThreeOrMoreSources(block)) {\r\n\t\t\t\tfinal BlockData data = Material.WATER.createBlockData();\r\n\r\n\t\t\t\tif (data instanceof Levelled) {\r\n\t\t\t\t\t((Levelled) data).setLevel(0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tblock.setBlockData(data, applyPhysics(data.getMaterial()));\r\n\t\t\t} else {\r\n\t\t\t\tblock.setType(defaulttype, applyPhysics(defaulttype));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void saveBlocks() {\n\n if (blockCount == 0 || leftBlockIndex < 0)\n return;\n\n EditText blockTitleView1 = (EditText)block1ViewSet.get(BLOCK_TITLE);\n model.getBlocks().get(leftBlockIndex).setTitle( blockTitleView1.getText().toString());\n\n if (model.getBlocks().get(leftBlockIndex).getSubBlock1() != null) {\n if (model.getBlocks().get(leftBlockIndex).getSubBlock1().getType() == SubBlockType.TEXT) {\n\n EditText textView1 = (EditText) block1ViewSet.get(SB1_TEXT);\n model.getBlocks().get(leftBlockIndex).getSubBlock1().setText(textView1.getText().toString());\n\n } else {\n\n EditText subtitleView1 = (EditText) block1ViewSet.get(SB1_SUBTITLE);\n model.getBlocks().get(leftBlockIndex).getSubBlock1().setSubtitle(subtitleView1.getText().toString());\n\n }\n }\n\n if (model.getBlocks().get(leftBlockIndex).getSubBlock2() != null) {\n if (model.getBlocks().get(leftBlockIndex).getSubBlock2().getType() == SubBlockType.TEXT) {\n\n EditText textView2 = (EditText) block1ViewSet.get(SB2_TEXT);\n model.getBlocks().get(leftBlockIndex).getSubBlock2().setText(textView2.getText().toString());\n\n } else {\n\n EditText subtitleView2 = (EditText) block1ViewSet.get(SB2_SUBTITLE);\n model.getBlocks().get(leftBlockIndex).getSubBlock2().setSubtitle(subtitleView2.getText().toString());\n\n }\n }\n\n //check if there are 2 blocks\n if(blockCount>1) {\n\n\n EditText blockTitleView2 = (EditText)block2ViewSet.get(BLOCK_TITLE);\n model.getBlocks().get(leftBlockIndex+1).setTitle( blockTitleView2.getText().toString());\n\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock1() != null) {\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock1().getType() == SubBlockType.TEXT) {\n\n EditText textView3 = (EditText) block2ViewSet.get(SB1_TEXT);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock1().setText(textView3.getText().toString());\n\n } else {\n\n EditText subtitleView3 = (EditText) block2ViewSet.get(SB1_SUBTITLE);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock1().setSubtitle(subtitleView3.getText().toString());\n\n }\n }\n\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock2() != null) {\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock2().getType() == SubBlockType.TEXT) {\n\n EditText textView4 = (EditText) block2ViewSet.get(SB2_TEXT);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock2().setText(textView4.getText().toString());\n\n } else {\n\n EditText subtitleView4 = (EditText) block2ViewSet.get(SB2_SUBTITLE);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock2().setSubtitle(subtitleView4.getText().toString());\n\n }\n }\n }\n\n }",
"private void adjustLightFixture(World world, int i, int j, int k, Block block)\n\t{\n\t\tTessellator tess = Tessellator.instance;\n float brightness = block.getLightValue(world, i, j, k);\n int skyLight = world.getLightBrightnessForSkyBlocks(i, j, k, 0);\n int modulousModifier = skyLight % 65536;\n int divModifier = skyLight / 65536;\n tess.setColorOpaque_F(brightness, brightness, brightness);\n OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) modulousModifier, divModifier);\n\t}",
"private void setBlock(Block block) {\r\n this.block = block;\r\n }",
"public void preInit() {\n \tfor(int i=1;i<ItemAmmo.AMMO_TYPES.length;i++){\n \t\tif(i!=10 && i !=12){\n \t\tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmo, i, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_\"+ItemAmmo.AMMO_TYPES[i], \"inventory\"));\n \t\t}\n \t}\n \t\n \t//ModelLoader.registerItemVariants(TF2weapons.itemTF2, new ModelResourceLocation(TF2weapons.MOD_ID+\":copper_ingot\", \"inventory\"),new ModelResourceLocation(TF2weapons.MOD_ID+\":lead_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmoFire, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_fire\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemChocolate, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":chocolate\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemHorn, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":horn\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemMantreads, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":mantreads\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemScoutBoots, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":scout_shoes\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmoMedigun, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_medigun\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":copper_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 1, new ModelResourceLocation(TF2weapons.MOD_ID+\":lead_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 2, new ModelResourceLocation(TF2weapons.MOD_ID+\":australium_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 3, new ModelResourceLocation(TF2weapons.MOD_ID+\":scrap_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 4, new ModelResourceLocation(TF2weapons.MOD_ID+\":reclaimed_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 5, new ModelResourceLocation(TF2weapons.MOD_ID+\":refined_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 6, new ModelResourceLocation(TF2weapons.MOD_ID+\":australium_nugget\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 7, new ModelResourceLocation(TF2weapons.MOD_ID+\":key\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 8, new ModelResourceLocation(TF2weapons.MOD_ID+\":crate\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 9, new ModelResourceLocation(TF2weapons.MOD_ID+\":random_weapon\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 10, new ModelResourceLocation(TF2weapons.MOD_ID+\":random_hat\", \"inventory\"));\n \t\n \tRenderingRegistry.registerEntityRenderingHandler(EntityTF2Character.class, new IRenderFactory<EntityTF2Character>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityTF2Character> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderTF2Character(manager);\n\t\t\t}\n \t});\n \t/*RenderingRegistry.registerEntityRenderingHandler(EntityProjectileBase.class, new IRenderFactory<Entity>(){\n\t\t\t@Override\n\t\t\tpublic Render<Entity> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderEntity(manager);\n\t\t\t}\n \t});*/\n \tRenderingRegistry.registerEntityRenderingHandler(EntityRocket.class, new IRenderFactory<EntityRocket>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityRocket> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderRocket(manager);\n\t\t\t}\n \t});\n \t/*RenderingRegistry.registerEntityRenderingHandler(EntityFlame.class, new IRenderFactory<EntityFlame>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityFlame> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn (Render<EntityFlame>) new RenderEntity();\n\t\t\t}\n \t});*/\n \tRenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, new IRenderFactory<EntityGrenade>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityGrenade> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderGrenade(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityStickybomb.class, new IRenderFactory<EntityStickybomb>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityStickybomb> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderStickybomb(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySyringe.class, new IRenderFactory<EntitySyringe>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySyringe> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderSyringe(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityBall.class, new IRenderFactory<EntityBall>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityBall> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderBall(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityFlare.class, new IRenderFactory<EntityFlare>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityFlare> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderFlare(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityJar.class, new IRenderFactory<EntityJar>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityJar> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderJar(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySentry.class, new IRenderFactory<EntitySentry>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySentry> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderSentry(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityDispenser.class, new IRenderFactory<EntityDispenser>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityDispenser> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderDispenser(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityTeleporter.class, new IRenderFactory<EntityTeleporter>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityTeleporter> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderTeleporter(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityStatue.class, new IRenderFactory<EntityStatue>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityStatue> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderStatue(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySaxtonHale.class, new IRenderFactory<EntitySaxtonHale>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySaxtonHale> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderBiped<EntitySaxtonHale>(manager, new ModelBiped(), 0.5F, 1.0F){\n\t\t\t\t\tprivate final ResourceLocation TEXTURE=new ResourceLocation(TF2weapons.MOD_ID,\"textures/entity/tf2/SaxtonHale.png\");\n\t\t\t\t\tprotected ResourceLocation getEntityTexture(EntitySaxtonHale entity)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn TEXTURE;\n\t\t\t\t }\n\t\t\t\t};\n\t\t\t}\n \t});\n\t}",
"LocalMaterialData withDefaultBlockData();",
"public void addExistingBlockAsProgram(IGUIBlock block) {\n Block toAdd = blockLink.getBlockFromGUIBlock(block);\n blockHandler.addToPA(toAdd);\n }",
"@Override\n protected void setBlock(Block block) {\n super.setBlock(block);\n updateAffectedBlocks();\n }",
"public static void registerBlocks() {\n\t\tRegistry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"egg_block\"), EGG_BLOCK);\n\t\t\n\t\t// Yolk\n\t\tSTILL_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_flow\"), new YolkFluid.Still());\n\t\tFLOWING_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_still\"), new YolkFluid.Flowing());\n\t\tYOLK = Registry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"yolk\"), new FluidBlock(STILL_YOLK, FabricBlockSettings.copy(Blocks.WATER)){});\n\t}",
"private void updateNames() {\n //Get all pack indexes.\t\t\n List<AItemPack<?>> packItems = PackParser.getAllItemsForPack(currentItem.definition.packID, true);\n int currentItemIndex = packItems.indexOf(currentItem);\n\n //Loop forwards in our pack to find the next item in that pack.\n nextSubItem = null;\n if (currentItemIndex < packItems.size()) {\n for (int i = currentItemIndex + 1; i < packItems.size() && nextSubItem == null; ++i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n nextSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //Loop backwards in our pack to find the prev item in that pack.\n prevSubItem = null;\n if (currentItemIndex > 0) {\n for (int i = currentItemIndex - 1; i >= 0 && prevSubItem == null; --i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n prevSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //All item bits are now set and updated. Update info labels and item icons.\n partName.text = currentItem.getItemName();\n\n //Parse crafting items and set icon items.\n //Check all possible recipes, since some might be for other mods or versions.\n String errorMessage = \"\";\n do {\n materials = PackMaterialComponent.parseFromJSON(currentItem, recipeIndex, false, true, false, false);\n if (materials == null) {\n if (++recipeIndex == currentItem.subDefinition.extraMaterialLists.size()) {\n recipeIndex = 0;\n }\n errorMessage += PackMaterialComponent.lastErrorMessage + \"\\n\";\n if (recipeIndex == 0) {\n InterfaceManager.coreInterface.logError(errorMessage);\n break;\n }\n }\n } while (materials == null);\n\n //Set model render properties.\n modelRender.modelLocation = currentItem.definition.getModelLocation(currentItem.subDefinition);\n modelRender.textureLocation = currentItem.definition.getTextureLocation(currentItem.subDefinition);\n }",
"public void putBlock(Block block){\n\t \n\t BlockPosX = 5;\n\t BlockPosY = 0;\n\t int posX = 5;\n\t int posY = 0;\n\t BlockInControl = block;\n\t \n\t int x = 0;\n\t for(int i=0;i<MAX_COL;i++){\n\t\tif(board[posY+1][i] == 1)\n\t\t x = 1;\n\t }\n\t if(x==1)\n\t\tthis.clearBoard();\n\t \n\t \n\t for(int r=0;r<4;r++){\n\t\tfor(int c=0;c<4;c++){\n\t\t if(block.getRowCol(r,c) == 1)\n\t\t\t{\n\t\t\t board[posY][posX]=1;\n\t\t\t \n\t\t\t switch(whichType){\n\t\t\t case 1: color[posY][posX] = 1;\n\t\t\t\tbreak;\n\t\t\t case 2: color[posY][posX] = 2;\n\t\t\t\tbreak;\n\t\t\t case 3: color[posY][posX] = 3;\n\t\t\t\tbreak;\n\t\t\t case 4: color[posY][posX] = 4;\n\t\t\t\tbreak;\n\t\t\t case 5: color[posY][posX] = 5;\n\t\t\t\tbreak;\n\t\t\t case 6: color[posY][posX] = 6;\n\t\t\t\tbreak;\n\t\t\t case 7: color[posY][posX] = 7;\n\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t \n\t\t posX++;\n\t\t}\n\t posY++;\n\t posX-=4;\n\t }\n\t}",
"public static void registerBlockEntities()\n\t{\n\t}",
"@Override\n\tpublic void registerRecipes() {\n\n\t\tItemStack block, ingot;\n\n\t\tfor (MetalType metal : MetalType.VALUES) {\n\n\t\t\tblock = this.createItemStack(metal, 1);\n\t\t\tingot = BrItems.ingotMetals.createItemStack(metal, 1);\n\n\t\t\tGameRegistry.addShapelessRecipe(block, ingot, ingot, ingot, ingot, ingot, ingot, ingot, ingot, ingot);\n\t\t\tingot.stackSize = 9;\n\t\t\tGameRegistry.addShapelessRecipe(ingot, block);\n\t\t}\n\n\t\t// Ludicrite block. Because.\n\n\t\tfinal ItemStack ludicriteBlock = this.createItemStack(MetalType.Ludicrite, 1);\n\n\t\tGameRegistry.addRecipe(new ShapedOreRecipe(ludicriteBlock, \"BPB\", \"ENE\", \"BPB\",\n\t\t\t\t'N', Items.NETHER_STAR, 'P', Items.ENDER_PEARL, 'E', Blocks.EMERALD_BLOCK,\n\t\t\t\t'B', BigReactors.CONFIG.recipeBlutoniumIngotName));\n\n\t\tif (OreDictionaryHelper.doesOreNameExist(\"blockEnderium\")) {\n\n\t\t\t// Ok, how about some ludicrous shit here. Enderium and blaze rods. Have fun, bucko.\n\t\t\tGameRegistry.addRecipe(new ShapedOreRecipe(ludicriteBlock, \"BRB\", \"E E\", \"BRB\",\n\t\t\t\t\t'B', BigReactors.CONFIG.recipeBlutoniumIngotName, 'R', Items.BLAZE_ROD, 'E', \"blockEnderium\"));\n\t\t}\n\t}",
"public void addBlockToPA(IGUIBlock block, int index) {\n blockLink.addBlockPair(block, blockHandler.getFromPalette(index));\n addExistingBlockAsProgram(block);\n }",
"Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }",
"public static <BLOCK extends Block> BLOCK register(@Nonnull final BLOCK block, @Nullable final ItemBlock itemBlock) {\n\t\tfinal ResourceLocation resourceLocation = block.getRegistryName();\n\t\tif (resourceLocation == null) {\n\t\t\tWarpDrive.logger.error(String.format(\"Missing registry name for block %s, ignoring registration...\",\n\t\t\t block));\n\t\t\treturn block;\n\t\t}\n\t\t\n\t\tassert !blocks.contains(block);\n\t\tblocks.add(block);\n\t\t\n\t\tif (itemBlock != null) {\n\t\t\titemBlock.setRegistryName(resourceLocation);\n\t\t\tregister(itemBlock);\n\t\t}\n\t\t\n\t\treturn block;\n\t}",
"public static void makeGeometry(AssetManager am) {\n geom = am.loadModel(\"Models/container/container.j3o\");\n mat = new Material(am, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Texture Tex = am.loadTexture(\n \"Textures/Container/Template/texture.png\");\n\n\n Colors.add(am.loadTexture(\n \"Textures/Container/blue.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/green.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/purple.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/red.png\"));\n companyTextures.put(\"UPS\", am.loadTexture(\n \"Textures/Container/UPS.png\"));\n companyTextures.put(\"CocaCola\", am.loadTexture(\n \"Textures/Container/cocacola.png\"));\n companyTextures.put(\"McDonalds\", am.loadTexture(\n \"Textures/Container/mac.png\"));\n\n companyTextures.put(\"Grolsch\", am.loadTexture(\n \"Textures/Container/grolsch.png\"));\n companyTextures.put(\"Heineken\", am.loadTexture(\n \"Textures/Container/heineken.png\"));\n companyTextures.put(\"Nestle\", am.loadTexture(\n \"Textures/Container/nestle.png\"));\n companyTextures.put(\"Shell\", am.loadTexture(\n \"Textures/Container/shell.png\"));\n companyTextures.put(\"DeutschePost\", am.loadTexture(\n \"Textures/Container/post.png\"));\n companyTextures.put(\"PostBank\", am.loadTexture(\n \"Textures/Container/postbank.png\"));\n companyTextures.put(\"Airfrance\", am.loadTexture(\n \"Textures/Container/airfrance.png\"));\n\n companyTextures.put(\"BallastNedam\", am.loadTexture(\n \"Textures/Container/ballastnedam.png\"));\n companyTextures.put(\"Manpower\", am.loadTexture(\n \"Textures/Container/manpower.png\"));\n\n companyTextures.put(\"Lufthansa\", am.loadTexture(\n \"Textures/Container/lufthansa.png\"));\n companyTextures.put(\"Bayer\", am.loadTexture(\n \"Textures/Container/bayer.png\"));\n\n\n companyTextures.put(\"Danone\", am.loadTexture(\n \"Textures/Container/danone.png\"));\n companyTextures.put(\"Ericsson\", am.loadTexture(\n \"Textures/Container/ericsson.png\"));\n\n companyTextures.put(\"Danone\", am.loadTexture(\n \"Textures/Container/danone.png\"));\n companyTextures.put(\"Ericsson\", am.loadTexture(\n \"Textures/Container/ericsson.png\"));\n\n\n companyTextures.put(\"OCE\", am.loadTexture(\n \"Textures/Container/oce.png\"));\n companyTextures.put(\"BeterBed\", am.loadTexture(\n \"Textures/Container/beterbed.png\"));\n\n companyTextures.put(\"TenCate\", am.loadTexture(\n \"Textures/Container/tencate.png\"));\n\n companyTextures.put(\"FederalExpress\", am.loadTexture(\n \"Textures/Container/fedex.png\"));\n companyTextures.put(\"IBM\", am.loadTexture(\n \"Textures/Container/IBM.png\"));\n companyTextures.put(\"KraftFoods\", am.loadTexture(\n \"Textures/Container/kraft.png\"));\n companyTextures.put(\"Hanjin\", am.loadTexture(\n \"Textures/Container/hanjin.png\"));\n companyTextures.put(\"CargoTrans\", am.loadTexture(\n \"Textures/Container/cargotrans.png\"));\n\n\n companyTextures.put(\"Metro\", am.loadTexture(\n \"Textures/Container/metro.png\"));\n companyTextures.put(\"Carrefour\", am.loadTexture(\n \"Textures/Container/carefour.png\"));\n companyTextures.put(\"Amstel\", am.loadTexture(\n \"Textures/Container/amstel.png\"));\n companyTextures.put(\"TransNL\", am.loadTexture(\n \"Textures/Container/transnl.png\"));\n companyTextures.put(\"Gilette\", am.loadTexture(\n \"Textures/Container/gillete.png\"));\n\n\n companyTextures.put(\"WalMart\", am.loadTexture(\n \"Textures/Container/walmart.png\"));\n companyTextures.put(\"Delhaize\", am.loadTexture(\n \"Textures/Container/delhaize.png\"));\n companyTextures.put(\"BASF\", am.loadTexture(\n \"Textures/Container/basf.png\"));\n companyTextures.put(\"SeaTrans\", am.loadTexture(\n \"Textures/Container/seatrans.png\"));\n companyTextures.put(\"DowChemical\", am.loadTexture(\n \"Textures/Container/dow.png\"));\n\n companyTextures.put(\"AXA\", am.loadTexture(\n \"Textures/Container/axe.png\"));\n companyTextures.put(\"LLyod\", am.loadTexture(\n \"Textures/Container/lloyd.png\"));\n \n companyTextures.put(\"GJMW\", am.loadTexture(\n \"Textures/Container/GJMW.png\"));\n companyTextures.put(\"WoodNorge\", am.loadTexture(\n \"Textures/Container/woodnorge.png\"));\n companyTextures.put(\"FlowersNL\", am.loadTexture(\n \"Textures/Container/flowersnl.png\"));\n \n companyTextures.put(\"FruitINT\", am.loadTexture(\n \"Textures/Container/fruitint.png\"));\n companyTextures.put(\"IntTrans\", am.loadTexture(\n \"Textures/Container/inttrans.png\"));\n companyTextures.put(\"MaasHolland\", am.loadTexture(\n \"Textures/Container/maasholland.png\"));\n\n mat.setTexture(\"ColorMap\", Tex);\n r = new Random();\n\n mat.setColor(\"Color\", ColorRGBA.White);\n\n geom.setMaterial(mat);\n }",
"protected final Model loadBlockModel(BlockRenderOptions blockRenderOptions) {\n if (blockRenderOptions.getBlockData().isType(Material.AIR)) {\n return new Model(); // air. No model.\n }\n\n BlockRenderProvider oldProvider = this.currProvider;\n try {\n // Some blocks are handled by providers\n this.currProvider = BlockRenderProvider.get(blockRenderOptions.getBlockData());\n if (this.currProvider != null) {\n Model model = this.currProvider.createModel(this, blockRenderOptions);\n if (model != null) {\n return model;\n }\n }\n\n String blockName = blockRenderOptions.lookupModelName();\n\n // Find the blockstate\n BlockModelState state = this.openGsonObject(BlockModelState.class, ResourceType.BLOCKSTATES, blockName);\n\n // Find out the variant that is used\n List<BlockModelState.Variant> variants;\n if (state != null) {\n // Figure out from the blockstate what variant to use\n variants = state.findVariants(blockRenderOptions);\n } else {\n // Default variant based on block name\n BlockModelState.Variant variant = new BlockModelState.Variant();\n variant.modelName = blockName;\n variants = Arrays.asList(variant);\n }\n\n // If no variants are found, render nothing (AIR)\n if (variants.isEmpty()) {\n return new Model();\n }\n\n // Not multipart, then simply load the one variant\n if (variants.size() == 1) {\n return this.loadBlockVariant(variants.get(0), blockRenderOptions);\n }\n\n // Add all variant elements to the model\n Model result = new Model();\n boolean succ = true;\n for (BlockModelState.Variant variant : variants) {\n Model subModel = this.loadBlockVariant(variant, blockRenderOptions);\n if (subModel != null) {\n result.elements.addAll(subModel.elements);\n } else {\n succ = false;\n }\n }\n if (!succ && result.elements.isEmpty()) {\n return null;\n } else {\n return result;\n }\n } finally {\n this.currProvider = oldProvider; // restore\n }\n }",
"public static void init()\n {\n oreStarSteel = new BlockOreStarSteel(MSAConfig.ores, Material.rock);\n storageStarSteel = new BlockStorageStarSteel(MSAConfig.storageBlock, Material.iron);\n // tech blocks\n launchTower = new BlockLaunchTower(MSAConfig.launchTower, Material.iron);\n launchTowerController = new BlockLaunchControl(MSAConfig.launchController, Material.iron);\n rocketAssembler = new BlockRocketAssembler(MSAConfig.rocketAssembler, Material.iron);\n comSatellite = new BlockComSatellite(MSAConfig.comSatellite, Material.iron);\n ssBuilding = new BlockSSBuilding(MSAConfig.ssBuilding, Material.rock);\n commandCenter = new BlockCommandCenter(MSAConfig.commandCenter, Material.iron);\n\n /* Register Blocks */\n // ore blocks\n GameRegistry.registerBlock(oreStarSteel, \"oreStarSteel\");\n GameRegistry.registerBlock(storageStarSteel, \"storageStarSteel\");\n // tech blocks\n GameRegistry.registerBlock(launchTower, \"launchTower\");\n GameRegistry.registerBlock(launchTowerController, \"launchTowerController\");\n GameRegistry.registerBlock(rocketAssembler, \"rocketAssembler\");\n GameRegistry.registerBlock(comSatellite, \"comSatellite\");\n GameRegistry.registerBlock(ssBuilding, \"ssBuilding\");\n GameRegistry.registerBlock(commandCenter, \"commandCenter\");\n\n /* Set block harvest level */\n // ore blocks\n MinecraftForge.setBlockHarvestLevel(oreStarSteel, \"pickaxe\", 2);\n MinecraftForge.setBlockHarvestLevel(storageStarSteel, \"pickaxe\", 2);\n // building blocks\n MinecraftForge.setBlockHarvestLevel(ssBuilding, \"pickaxe\", 2);\n // tech blocks\n MinecraftForge.setBlockHarvestLevel(launchTower, \"pickaxe\", 1);\n }",
"public void SetBlockList() {\r\n int width = ScreenWidth / MatrixWidth;\r\n int hight = ScreenHeight / MatrixHeight;\r\n this.blockList = new BlockList();\r\n Bitmap blocks = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.blocks), width * 5, hight * 10, false);\r\n for (int i = 0; i < map.length; i++) {\r\n for (int j = 0; j < map[i].length; j++) {\r\n if(i==0 && j<3){//if its true so its wall or button so the type of block is 0\r\n this.blockList.AddBlock(i, j, 0, j, blocks, width, hight);\r\n }\r\n if (map[i][j] != '0')\r\n this.blockList.AddBlock(i, j, Integer.valueOf(String.valueOf(map[i][j])), 0, blocks, width, hight);\r\n }\r\n }\r\n }",
"private void readBlocks(List<Element> blockElements, Model model)\n throws ObjectExistsException {\n // Add the blocks.\n for (int i = 0; i < blockElements.size(); i++) {\n Element curBlockElement = blockElements.get(i);\n Integer blockID;\n try {\n blockID = Integer.valueOf(curBlockElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n blockID = null;\n }\n Block curBlock = model.createBlock(blockID);\n TCSObjectReference<Block> blockRef = curBlock.getReference();\n String blockName = curBlockElement.getAttributeValue(\"name\");\n if (blockName == null || blockName.isEmpty()) {\n blockName = \"BlockName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(curBlock.getReference(), blockName);\n // Add members.\n List<Element> memberElements = curBlockElement.getChildren(\"member\");\n for (int j = 0; j < memberElements.size(); j++) {\n Element curMemberElement = memberElements.get(j);\n String memberName = curMemberElement.getAttributeValue(\"name\");\n if (memberName == null || memberName.isEmpty()) {\n memberName = \"MemberName\" + j + \"Unknown\";\n }\n TCSResource<?> curMember\n = (TCSResource<?>) model.getObjectPool().getObject(memberName);\n curBlock.addMember(curMember.getReference());\n }\n List<Element> properties = curBlockElement.getChildren(\"property\");\n for (int k = 0; k < properties.size(); k++) {\n Element curPropElement = properties.get(k);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + k + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + k + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(blockRef, curKey, curValue);\n }\n }\n }",
"public static void reci(){\n\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(generatorBase, 1),\"XXX\", \"XXX\", \"XXX\", 'X', ItemHandler.ironHard));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(generatorCombust, 1), \"XYX\", \"DFD\", \"XXX\", 'X', generatorBase, 'Y', \"gemDiamond\", 'D', \"dustRedstone\", 'F', Blocks.furnace));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(tank, 1), \"XXX\", \"XYX\", \"XXX\", 'X', ItemHandler.ironHard, 'Y', \"blockGlass\"));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(charcoalBlock, 1), \"CCC\", \"CCC\", \"CCC\", 'C', new ItemStack(Items.coal, 1, 1)));\n GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.coal, 9, 1), new ItemStack(charcoalBlock)));\n }",
"@EventHandler\n public void onCobbleFormation(BlockFormEvent e) {\n long now = System.currentTimeMillis();\n\n // Get Config Values\n final int MIN_X = config.getInt(\"bounds.x.min\");\n final int MAX_X = config.getInt(\"bounds.x.max\");\n final int MIN_Y = config.getInt(\"bounds.y.min\");\n final int MAX_Y = config.getInt(\"bounds.y.max\");\n\n // Get the information of the Block\n Block block = e.getBlock();\n Material type = block.getType();\n int x = block.getX();\n int y = block.getY();\n\n // Check if x and y coords are valid\n boolean xvalid = MIN_X <= x && x <= MAX_Y;\n boolean yvalid = MIN_Y <= y && y <= MAX_Y;\n\n if (xvalid && yvalid && type == Material.LAVA) {\n // Add time of cast to lists\n casts.addLast(now);\n lastX = x; \n lastY = y;\n\n refresh();\n\n if(cancelled) {\n // Cancel the formation of cobble or any other block\n e.setCancelled(true);\n block.setType(Material.AIR);\n }\n }\n }",
"private void destroyBlockAndDropItem(final Location at) {\n if (at == null) {\n return;\n }\n\n final Block b = at.getBlock();\n\n if (!MaterialManager.getInstance().contains(b.getType().name())) {\n return;\n }\n\n double chance = MaterialManager.getInstance().getChanceToDropBlock(b.getType().name());\n\n if (chance > 1.0)\n chance = 1.0;\n if (chance < 0.0)\n chance = 0.0;\n\n final double random = Math.random();\n\n if (chance == 1.0 || chance <= random) {\n ItemStack is = new ItemStack(b.getType(), 1);\n\n if (is.getType() == Material.AIR) {\n return;\n }\n\n // drop item\n at.getWorld().dropItemNaturally(at, is);\n }\n\n // changes original block to Air block\n b.setType(Material.AIR);\n }",
"@Overwrite\n public void doRender(EntityItem entityItem, double x, double y, double z, float p_76986_8_, float p_76986_9_) {\n\n ItemStack itemstack = ItemUtils.changeRenderTarget(entityItem.getEntityItem());\n\n if (itemstack.getItem() != null) {\n this.bindEntityTexture(entityItem);\n TextureUtil.func_152777_a(false, false, 1.0F);\n this.random.setSeed(187L);\n GL11.glPushMatrix();\n float f2 = shouldBob() ? MathHelper.sin(((float) entityItem.age + p_76986_9_) / 10.0F + entityItem.hoverStart) * 0.1F + 0.1F : 0F;\n float f3 = (((float) entityItem.age + p_76986_9_) / 20.0F + entityItem.hoverStart) * (180F / (float) Math.PI);\n byte b0 = 1;\n\n if (entityItem.getEntityItem().stackSize > 1) {\n b0 = 2;\n }\n\n if (entityItem.getEntityItem().stackSize > 5) {\n b0 = 3;\n }\n\n if (entityItem.getEntityItem().stackSize > 20) {\n b0 = 4;\n }\n\n if (entityItem.getEntityItem().stackSize > 40) {\n b0 = 5;\n }\n\n b0 = getMiniBlockCount(itemstack, b0);\n\n GL11.glTranslatef((float) x, (float) y + f2, (float) z);\n GL11.glEnable(GL12.GL_RESCALE_NORMAL);\n float f6;\n float f7;\n int k;\n\n if (ForgeHooksClient.renderEntityItem(entityItem, itemstack, f2, f3, random, renderManager.renderEngine, field_147909_c, b0)) {\n } else // Code Style break here to prevent the patch from editing this line\n if (itemstack.getItemSpriteNumber() == 0 && itemstack.getItem() instanceof ItemBlock && RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemstack.getItem()).getRenderType())) {\n Block block = Block.getBlockFromItem(itemstack.getItem());\n GL11.glRotatef(f3, 0.0F, 1.0F, 0.0F);\n\n if (renderInFrame) {\n GL11.glScalef(1.25F, 1.25F, 1.25F);\n GL11.glTranslatef(0.0F, 0.05F, 0.0F);\n GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);\n }\n\n float f9 = 0.25F;\n k = block.getRenderType();\n\n if (k == 1 || k == 19 || k == 12 || k == 2) {\n f9 = 0.5F;\n }\n\n if (block.getRenderBlockPass() > 0) {\n GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);\n GL11.glEnable(GL11.GL_BLEND);\n OpenGlHelper.glBlendFunc(770, 771, 1, 0);\n }\n\n GL11.glScalef(f9, f9, f9);\n\n for (int l = 0; l < b0; ++l) {\n GL11.glPushMatrix();\n\n if (l > 0) {\n f6 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.2F / f9;\n f7 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.2F / f9;\n float f8 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.2F / f9;\n GL11.glTranslatef(f6, f7, f8);\n }\n\n this.renderBlocksRi.renderBlockAsItem(block, itemstack.getItemDamage(), 1.0F);\n GL11.glPopMatrix();\n }\n\n if (block.getRenderBlockPass() > 0) {\n GL11.glDisable(GL11.GL_BLEND);\n }\n } else {\n float f5;\n\n if (/*itemstack.getItemSpriteNumber() == 1 &&*/ itemstack.getItem().requiresMultipleRenderPasses()) {\n if (renderInFrame) {\n GL11.glScalef(0.5128205F, 0.5128205F, 0.5128205F);\n GL11.glTranslatef(0.0F, -0.05F, 0.0F);\n } else {\n GL11.glScalef(0.5F, 0.5F, 0.5F);\n }\n\n for (int j = 0; j < itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); ++j) {\n this.random.setSeed(187L);\n IIcon iicon1 = itemstack.getItem().getIcon(itemstack, j);\n\n if (this.renderWithColor) {\n k = itemstack.getItem().getColorFromItemStack(itemstack, j);\n f5 = (float) (k >> 16 & 255) / 255.0F;\n f6 = (float) (k >> 8 & 255) / 255.0F;\n f7 = (float) (k & 255) / 255.0F;\n GL11.glColor4f(f5, f6, f7, 1.0F);\n this.renderDroppedItem(entityItem, iicon1, b0, p_76986_9_, f5, f6, f7, j);\n } else {\n this.renderDroppedItem(entityItem, iicon1, b0, p_76986_9_, 1.0F, 1.0F, 1.0F, j);\n }\n }\n } else {\n if (itemstack != null && itemstack.getItem() instanceof ItemCloth) {\n GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);\n GL11.glEnable(GL11.GL_BLEND);\n OpenGlHelper.glBlendFunc(770, 771, 1, 0);\n }\n\n if (renderInFrame) {\n GL11.glScalef(0.5128205F, 0.5128205F, 0.5128205F);\n GL11.glTranslatef(0.0F, -0.05F, 0.0F);\n } else {\n GL11.glScalef(0.5F, 0.5F, 0.5F);\n }\n\n IIcon iicon = itemstack.getIconIndex();\n\n if (this.renderWithColor) {\n int i = itemstack.getItem().getColorFromItemStack(itemstack, 0);\n float f4 = (float) (i >> 16 & 255) / 255.0F;\n f5 = (float) (i >> 8 & 255) / 255.0F;\n f6 = (float) (i & 255) / 255.0F;\n this.renderDroppedItem(entityItem, iicon, b0, p_76986_9_, f4, f5, f6, 0);\n } else {\n this.renderDroppedItem(entityItem, iicon, b0, p_76986_9_, 1.0F, 1.0F, 1.0F, 0);\n }\n\n if (itemstack != null && itemstack.getItem() instanceof ItemCloth) {\n GL11.glDisable(GL11.GL_BLEND);\n }\n }\n }\n\n GL11.glDisable(GL12.GL_RESCALE_NORMAL);\n GL11.glPopMatrix();\n this.bindEntityTexture(entityItem);\n TextureUtil.func_147945_b();\n }\n }",
"public EntangledChaliceItem(Block block) {\n super(block);\n }",
"public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}",
"public static Geometry assembleBlock(Block block, Vector3f location) {\n Geometry g = createLimb(block.collisionShapeType, block.width, block.height, block.length, location, block.mass, block.rotation, block.rotationForYRP);\n block.applyProperties(g);\n return g;\n }",
"public static void LoadItems() {\r\n\t\t\r\n\t\t/*\r\n\t\t * Basic Minecraft Hammers (Ex. Vannila Ores)\r\n\t\t */\r\n\t\r\n\t\tItemWoodHammer = new ItemWoodHammer(HammerModMain.MODID + \":ItemWoodHammer\", \"HammerMod-DZ_res/items/ItemWoodHammer.png\");\r\n\t\tItemStoneHammer = new ItemStoneHammer(HammerModMain.MODID + \":ItemStoneHammer\", \"HammerMod-DZ_res/items/ItemStoneHammer.png\");\r\n\t\t//ItemIronHammer = new ItemIronHammer(HammerModMain.MODID + \":ItemIronHammer\", \"HammerMod-DZ_res/items/ItemIronHammer.png\");\r\n\t\t//ItemGoldHammer = new ItemGoldHammer(HammerModMain.MODID + \":ItemGoldHammer\", \"HammerMod-DZ_res/items/ItemGoldHammer.png\");\r\n\t\tItemDiamondHammer = new ItemDiamondHammer(HammerModMain.MODID + \":ItemDiamondHammer\", \"HammerMod-DZ_res/items/ItemDiamondHammer.png\");\r\n\t\tItemDirtHammer = new ItemDirtHammer(HammerModMain.MODID + \":ItemDirtHammer\", \"HammerMod-DZ_res/items/ItemDirtHammer.png\");\r\n\t\tItemGlassHammer = new ItemGlassHammer(HammerModMain.MODID + \":ItemGlassHammer\", \"HammerMod-DZ_res/items/ItemGlassHammer.png\");\r\n\t\tItemSandHammer = new ItemSandHammer(HammerModMain.MODID + \":ItemSandHammer\", \"HammerMod-DZ_res/items/ItemSandHammer.png\");\r\n\t\t//ItemCactusHammer = new ItemCactusHammer(HammerModMain.MODID + \":ItemCactusHammer\", \"HammerMod-DZ_res/items/ItemCactusHammer.png\");\r\n\t\t//ItemGravelHammer = new ItemGravelHammer(HammerModMain.MODID + \":ItemGravelHammer\", \"HammerMod-DZ_res/items/ItemGravelHammer.png\");\r\n\t\t//ItemWoolHammer_white = new ItemWoolHammer_white(HammerModMain.MODID + \":ItemWoolHammer_white\", \"HammerMod-DZ_res/items/ItemWoolHammer_white.png\");\r\n\t\tItemEmeraldHammer = new ItemEmeraldHammer(HammerModMain.MODID + \":ItemEmeraldHammer\", \"HammerMod-DZ_res/items/ItemEmeraldHammer.png\");\r\n\t\tItemGrassHammer = new ItemGrassHammer(HammerModMain.MODID + \":ItemGrassHammer\", \"HammerMod-DZ_res/items/ItemGrassHammer.png\");\r\n\t\t//ItemObsidianHammer = new ItemObsidianHammer(HammerModMain.MODID + \":ItemObsidianHammer\", \"HammerMod-DZ_res/items/ItemObsidianHammer.png\");\r\n\t\t//ItemGlowstoneHammer = new ItemGlowstoneHammer(HammerModMain.MODID + \":ItemGlowstoneHammer\", \"HammerMod-DZ_res/items/ItemGlowstoneHammer.png\");\r\n\t\t//ItemRedstoneHammer = new ItemRedstoneHammer(HammerModMain.MODID + \":ItemRedstoneHammer\", \"HammerMod-DZ_res/items/ItemRedstoneHammer.png\");\r\n\t\t//ItemLapizHammer = new ItemLapizHammer(HammerModMain.MODID + \":ItemLapizHammer\", \"HammerMod-DZ_res/items/ItemLapizHammer.png\");\r\n\t\t//ItemNetherackHammer = new ItemNetherackHammer(HammerModMain.MODID + \":ItemNetherackHammer\", \"HammerMod-DZ_res/items/ItemNetherackHammer.png\");\r\n\t\t//ItemSoulSandHammer = new ItemSoulSandHammer(HammerModMain.MODID + \":ItemSoulSandHammer\", \"HammerMod-DZ_res/items/ItemSoulSandHammer.png\");\r\n\t\tItemCoalHammer = new ItemCoalHammer(HammerModMain.MODID + \":ItemCoalHammer\", \"HammerMod-DZ_res/items/ItemCoalHammer.png\");\r\n\t\tItemCharcoalHammer = new ItemCharcoalHammer(HammerModMain.MODID + \":ItemCharcoalHammer\", \"HammerMod-DZ_res/items/ItemCharcoalHammer.png\");\r\n\t\t//ItemEndstoneHammer = new ItemEndstoneHammer(HammerModMain.MODID + \":ItemEndstoneHammer\", \"HammerMod-DZ_res/items/ItemEndstoneHammer.png\");\r\n\t\tItemBoneHammer = new ItemBoneHammer(HammerModMain.MODID + \":ItemBoneHammer\", \"HammerMod-DZ_res/items/ItemBoneHammer.png\");\r\n\t\t//ItemSpongeHammer = new ItemSpongeHammer(HammerModMain.MODID + \":ItemSpongeHammer\", \"HammerMod-DZ_res/items/ItemSpongeHammer.png\");\r\n\t\t//ItemBrickHammer = new ItemBrickHammer(HammerModMain.MODID + \":ItemBrickHammer\", \"HammerMod-DZ_res/items/ItemBrickHammer.png\");\r\n\t\t//ItemSugarHammer = new ItemSugarHammer(HammerModMain.MODID + \":ItemSugarHammer\", \"HammerMod-DZ_res/items/ItemSugarHammer.png\");\r\n\t\t//ItemSlimeHammer = new ItemSlimeHammer(HammerModMain.MODID + \":ItemSlimeHammer\", \"HammerMod-DZ_res/items/ItemSlimeHammer.png\");\r\n\t\t//ItemMelonHammer = new ItemMelonHammer(HammerModMain.MODID + \":ItemMelonHammer\", \"HammerMod-DZ_res/items/ItemMelonHammer.png\");\r\n\t\t//ItemPumpkinHammer = new ItemPumpkinHammer(HammerModMain.MODID + \":ItemPumpkinHammer\", \"HammerMod-DZ_res/items/ItemPumpkinHammer.png\");\r\n\t\t//ItemPotatoHammer = new ItemPotatoHammer(HammerModMain.MODID + \":ItemPotatoHammer\", \"HammerMod-DZ_res/items/ItemPotatoHammer.png\");\r\n\t\t//ItemCarrotHammer = new ItemCarrotHammer(HammerModMain.MODID + \":ItemCarrotHammer\", \"HammerMod-DZ_res/items/ItemCarrotHammer.png\");\r\n\t\tItemAppleHammer = new ItemAppleHammer(HammerModMain.MODID + \":ItemAppleHammer\", \"HammerMod-DZ_res/items/ItemAppleHammer.png\");\r\n\t\t//ItemIceHammer = new ItemIceHammer(HammerModMain.MODID + \":ItemIceHammer\", \"HammerMod-DZ_res/items/ItemIceHammer.png\");\r\n\t\t//ItemPackedIceHammer = new ItemPackedIceHammer(HammerModMain.MODID + \":ItemPackedIceHammer\", \"HammerMod-DZ_res/items/ItemPackedIceHammer.png\");\r\n\t\t//ItemSnowHammer = new ItemSnowHammer(HammerModMain.MODID + \":ItemSnowHammer\", \"HammerMod-DZ_res/items/ItemSnowHammer.png\");\r\n\t\t//ItemCakeHammer = new ItemCakeHammer(HammerModMain.MODID + \":ItemCakeHammer\", \"HammerMod-DZ_res/items/ItemCakeHammer.png\");\r\n\t\t//ItemDragonEggHammer = new ItemDragonEggHammer(HammerModMain.MODID + \":ItemDragonEggHammer\", \"HammerMod-DZ_res/items/ItemDragonEggHammer.png\");\r\n\t\t//ItemTntHammer = new ItemTntHammer(HammerModMain.MODID + \":ItemTntHammer\", \"HammerMod-DZ_res/items/ItemTntHammer.png\");\r\n\t\t//ItemBedrockHammer = new ItemBedrockHammer(HammerModMain.MODID + \":ItemBedrockHammer\", \"HammerMod-DZ_res/items/ItemBedrockHammer.png\");\r\n\r\n\t\t/*\r\n\t\t * Mob Hammers\r\n\t\t */\r\n\t\t//ItemCreeperHammer = new ItemCreeperHammer(CREEPER).setUnlocalizedName(\"ItemCreeperHammer\").setTextureName(\"hammermod:ItemCreeperHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemPigHammer = new ItemPigHammer(PIG).setUnlocalizedName(\"ItemPigHammer\").setTextureName(\"hammermod:ItemPigHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemCowHammer = new ItemCowHammer(COW).setUnlocalizedName(\"ItemCowHammer\").setTextureName(\"hammermod:ItemCowHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItemCopperHammer = new ItemCopperHammer(HammerModMain.MODID + \":ItemCopperHammer\", \"HammerMod-DZ_res/items/ItemCopperHammer.png\");\r\n\t\tItemBronzeHammer = new ItemBronzeHammer(HammerModMain.MODID + \":ItemBronzeHammer\", \"HammerMod-DZ_res/items/ItemBronzeHammer.png\");\r\n\t\tItemSilverHammer = new ItemSilverHammer(HammerModMain.MODID + \":ItemSilverHammer\", \"HammerMod-DZ_res/items/ItemSilverHammer.png\");\r\n\t\tItemTungstenHammer = new ItemTungstenHammer(HammerModMain.MODID + \":ItemTungstenHammer\", \"HammerMod-DZ_res/items/ItemTungstenHammer.png\");\r\n\t\tItemRubyHammer = new ItemRubyHammer(HammerModMain.MODID + \":ItemRubyHammer\", \"HammerMod-DZ_res/items/ItemRubyHammer.png\");\r\n\t\tItemTinHammer = new ItemTinHammer(HammerModMain.MODID + \":ItemTinHammer\", \"HammerMod-DZ_res/items/ItemTinHammer.png\");\r\n\t\tItemJadeHammer = new ItemJadeHammer(HammerModMain.MODID + \":ItemJadeHammer\", \"HammerMod-DZ_res/items/ItemJadeHammer.png\");\r\n\t\tItemAmethystHammer = new ItemAmethystHammer(HammerModMain.MODID + \":ItemAmethystHammer\", \"HammerMod-DZ_res/items/ItemAmethystHammer.png\");\r\n\t\tItemGraphiteHammer = new ItemGraphiteHammer(HammerModMain.MODID + \":ItemGraphiteHammer\", \"HammerMod-DZ_res/items/ItemGraphiteHammer.png\");\r\n\t\tItemCitrineHammer = new ItemCitrineHammer(HammerModMain.MODID + \":ItemCitrineHammer\", \"HammerMod-DZ_res/items/ItemCitrineHammer.png\");\r\n\t\tItemPierreHammer = new ItemPierreHammer(HammerModMain.MODID + \":ItemPierreHammer\", \"HammerMod-DZ_res/items/ItemPierreHammer.png\");\r\n\t\tItemSapphireHammer = new ItemSapphireHammer(HammerModMain.MODID + \":ItemSapphireHammer\", \"HammerMod-DZ_res/items/ItemSapphireHammer.png\");\r\n\t\tItemOnyxHammer = new ItemOnyxHammer(HammerModMain.MODID + \":ItemOnyxHammer\", \"HammerMod-DZ_res/items/ItemOnyxHammer.png\");\r\n\t\tItemNikoliteHammer = new ItemNikoliteHammer(HammerModMain.MODID + \":ItemNikoliteHammer\", \"HammerMod-DZ_res/items/ItemNikoliteHammer.png\");\r\n\t\tItemSilicaHammer = new ItemSilicaHammer(HammerModMain.MODID + \":ItemSilicaHammer\", \"HammerMod-DZ_res/items/ItemSilicaHammer.png\");\r\n\t\tItemCinnabarHammer = new ItemCinnabarHammer(HammerModMain.MODID + \":ItemCinnabarHammer\", \"HammerMod-DZ_res/items/ItemCinnabarHammer.png\");\r\n\t\tItemAmberBearingStoneHammer = new ItemAmberBearingStoneHammer(HammerModMain.MODID + \":ItemAmberBearingStoneHammer\", \"HammerMod-DZ_res/items/ItemAmberBearingStoneHammer.png\");\r\n\t\tItemFerrousHammer = new ItemFerrousHammer(HammerModMain.MODID + \":ItemFerrousHammer\", \"HammerMod-DZ_res/items/ItemFerrousHammer.png\");\r\n\t\tItemAdaminiteHammer = new ItemAdaminiteHammer(HammerModMain.MODID + \":ItemAdaminiteHammer\", \"HammerMod-DZ_res/items/ItemAdaminiteHammer.png\");\r\n\t\tItemShinyHammer = new ItemShinyHammer(HammerModMain.MODID + \":ItemShinyHammer\", \"HammerMod-DZ_res/items/ItemShinyHammer.png\");\r\n\t\tItemXychoriumHammer = new ItemXychoriumHammer(HammerModMain.MODID + \":ItemXychoriumHammer\", \"HammerMod-DZ_res/items/ItemXychoriumHammer.png\");\r\n\t\tItemUraniumHammer = new ItemUraniumHammer(HammerModMain.MODID + \":ItemUraniumHammer\", \"HammerMod-DZ_res/items/ItemUraniumHammer.png\");\r\n\t\tItemTitaniumHammer = new ItemTitaniumHammer(HammerModMain.MODID + \":ItemTitaniumHammer\", \"HammerMod-DZ_res/items/ItemTitaniumHammer.png\");\r\n\t\tItemBloodStoneHammer = new ItemBloodStoneHammer(HammerModMain.MODID + \":ItemBloodStoneHammer\", \"HammerMod-DZ_res/items/ItemBloodStoneHammer.png\");\r\n\t\tItemRustedHammer = new ItemRustedHammer(HammerModMain.MODID + \":ItemRustedHammer\", \"HammerMod-DZ_res/items/ItemRustedHammer.png\");\r\n\t\tItemRositeHammer = new ItemRositeHammer(HammerModMain.MODID + \":ItemRositeHammer\", \"HammerMod-DZ_res/items/ItemRositeHammer.png\");\r\n\t\tItemLimoniteHammer = new ItemLimoniteHammer(HammerModMain.MODID + \":ItemLimoniteHammer\", \"HammerMod-DZ_res/items/ItemLimoniteHammer.png\");\r\n\t\tItemMithrilHammer = new ItemMithrilHammer(HammerModMain.MODID + \":ItemMithrilHammer\", \"HammerMod-DZ_res/items/ItemMithrilHammer.png\");\r\n\t\tItemPrometheumHammer = new ItemPrometheumHammer(HammerModMain.MODID + \":ItemPrometheumHammer\", \"HammerMod-DZ_res/items/ItemPrometheumHammer.png\");\r\n\t\tItemHepatizonHammer = new ItemHepatizonHammer(HammerModMain.MODID + \":ItemHepatizonHammer\", \"HammerMod-DZ_res/items/ItemHepatizonHammer.png\");\r\n\t\tItemPoopHammer = new ItemPoopHammer(HammerModMain.MODID + \":ItemPoopHammer\", \"HammerMod-DZ_res/items/ItemPoopHammer.png\");\r\n\t\tItemAngmallenHammer = new ItemAngmallenHammer(HammerModMain.MODID + \":ItemAngmallenHammer\", \"HammerMod-DZ_res/items/ItemAngmallenHammer.png\");\r\n\t\tItemManganeseHammer = new ItemManganeseHammer(HammerModMain.MODID + \":ItemManganeseHammer\", \"HammerMod-DZ_res/items/ItemManganeseHammer.png\");\r\n\t\tItemSearedBrickHammer = new ItemSearedBrickHammer(HammerModMain.MODID + \":ItemSearedBrickHammer\", \"HammerMod-DZ_res/items/ItemSearedBrickHammer.png\");\r\n\t\tItemElectrumHammer = new ItemElectrumHammer(HammerModMain.MODID + \":ItemElectrumHammer\", \"HammerMod-DZ_res/items/ItemElectrumHammer.png\");\r\n\t\tItemPigIronHammer = new ItemPigIronHammer(HammerModMain.MODID + \":ItemPigIronHammer\", \"HammerMod-DZ_res/items/ItemPigIronHammer.png\");\r\n\t\tItemArditeHammer = new ItemArditeHammer(HammerModMain.MODID + \":ItemArditeHammer\", \"HammerMod-DZ_res/items/ItemArditeHammer.png\");\r\n\t\tItemAlumiteHammer = new ItemAlumiteHammer(HammerModMain.MODID + \":ItemAlumiteHammer\", \"HammerMod-DZ_res/items/ItemAlumiteHammer.png\");\r\n\t\tItemCobaltHammer = new ItemCobaltHammer(HammerModMain.MODID + \":ItemCobaltHammer\", \"HammerMod-DZ_res/items/ItemCobaltHammer.png\");\r\n\t\tItemManyullynHammer = new ItemManyullynHammer(HammerModMain.MODID + \":ItemManyullynHammer\", \"HammerMod-DZ_res/items/ItemManyullynHammer.png\");\r\n\t\tItemOureclaseHammer = new ItemOureclaseHammer(HammerModMain.MODID + \":ItemOureclaseHammer\", \"HammerMod-DZ_res/items/ItemOureclaseHammer.png\");\r\n\t\tItemHaderothHammer = new ItemHaderothHammer(HammerModMain.MODID + \":ItemHaderothHammer\", \"HammerMod-DZ_res/items/ItemHaderothHammer.png\");\r\n\t\tItemInfuscoliumHammer = new ItemInfuscoliumHammer(HammerModMain.MODID + \":ItemInfuscoliumHammer\", \"HammerMod-DZ_res/items/ItemInfuscoliumHammer.png\");\r\n\t\tItemRubberHammer = new ItemRubberHammer(HammerModMain.MODID + \":ItemRubberHammer\", \"HammerMod-DZ_res/items/ItemRubberHammer.png\");\r\n\t\tItemDesichalkosHammer = new ItemDesichalkosHammer(HammerModMain.MODID + \":ItemDesichalkosHammer\", \"HammerMod-DZ_res/items/ItemDesichalkosHammer.png\");\r\n\t\tItemMeutoiteHammer = new ItemMeutoiteHammer(HammerModMain.MODID + \":ItemMeutoiteHammer\", \"HammerMod-DZ_res/items/ItemMeutoiteHammer.png\");\r\n\t\tItemEximiteHammer = new ItemEximiteHammer(HammerModMain.MODID + \":ItemEximiteHammer\", \"HammerMod-DZ_res/items/ItemEximiteHammer.png\");\r\n\t\tItemMidasiumHammer = new ItemMidasiumHammer(HammerModMain.MODID + \":ItemMidasiumHammer\", \"HammerMod-DZ_res/items/ItemMidasiumHammer.png\");\r\n\t\tItemSanguiniteHammer = new ItemSanguiniteHammer(HammerModMain.MODID + \":ItemSanguiniteHammer\", \"HammerMod-DZ_res/items/ItemSanguiniteHammer.png\");\r\n\t\tItemInolashiteHammer = new ItemInolashiteHammer(HammerModMain.MODID + \":ItemInolashiteHammer\", \"HammerMod-DZ_res/items/ItemInolashiteHammer.png\");\r\n\t\tItemVulcaniteHammer = new ItemVulcaniteHammer(HammerModMain.MODID + \":ItemVulcaniteHammer\", \"HammerMod-DZ_res/items/ItemVulcaniteHammer.png\");\r\n\t\tItemLemuriteHammer = new ItemLemuriteHammer(HammerModMain.MODID + \":ItemLemuriteHammer\", \"HammerMod-DZ_res/items/ItemLemuriteHammer.png\");\r\n\t\tItemAmordrineHammer = new ItemAmordrineHammer(HammerModMain.MODID + \":ItemAmordrineHammer\", \"HammerMod-DZ_res/items/ItemAmordrineHammer.png\");\r\n\t\tItemCeruclaseHammer = new ItemCeruclaseHammer(HammerModMain.MODID + \":ItemCeruclaseHammer\", \"HammerMod-DZ_res/items/ItemCeruclaseHammer.png\");\r\n\t\tItemKalendriteHammer = new ItemKalendriteHammer(HammerModMain.MODID + \":ItemKalendriteHammer\", \"HammerMod-DZ_res/items/ItemKalendriteHammer.png\");\r\n\t\tItemVyroxeresHammer = new ItemVyroxeresHammer(HammerModMain.MODID + \":ItemVyroxeresHammer\", \"HammerMod-DZ_res/items/ItemVyroxeresHammer.png\");\r\n\t\tItemCarmotHammer = new ItemCarmotHammer(HammerModMain.MODID + \":ItemCarmotHammer\", \"HammerMod-DZ_res/items/ItemCarmotHammer.png\");\r\n\t\tItemTartariteHammer = new ItemTartariteHammer(HammerModMain.MODID + \":ItemTartariteHammer\", \"HammerMod-DZ_res/items/ItemTartariteHammer.png\");\r\n\t\tItemAtlarusHammer = new ItemAtlarusHammer(HammerModMain.MODID + \":ItemAtlarusHammer\", \"HammerMod-DZ_res/items/ItemAtlarusHammer.png\");\r\n\t\tItemAstralHammer = new ItemAstralHammer(HammerModMain.MODID + \":ItemAstralHammer\", \"HammerMod-DZ_res/items/ItemAstralHammer.png\");\r\n\t\tItemCelenegilHammer = new ItemCelenegilHammer(HammerModMain.MODID + \":ItemCelenegilHammer\", \"HammerMod-DZ_res/items/ItemCelenegilHammer.png\");\r\n\t\tItemAredriteHammer = new ItemAredriteHammer(HammerModMain.MODID + \":ItemAredriteHammer\", \"HammerMod-DZ_res/items/ItemAredriteHammer.png\");\r\n\t\tItemOrichalcumHammer = new ItemOrichalcumHammer(HammerModMain.MODID + \":ItemOrichalcumHammer\", \"HammerMod-DZ_res/items/ItemOrichalcumHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItemPatHammer = new ItemPatHammer(HammerModMain.MODID + \":ItemPatHammer\", \"HammerMod-DZ_res/items/ItemPatHammer.png\");\r\n\t\tItemJenHammer = new ItemJenHammer(HammerModMain.MODID + \":ItemJenHammer\", \"HammerMod-DZ_res/items/ItemJenHammer.png\");\r\n\t\tItemDanTDMHammer = new ItemDanTDMHammer(HammerModMain.MODID + \":ItemDanTDMHammer\", \"HammerMod-DZ_res/items/ItemDanTDMHammer.png\");\r\n\t\tItemxJSQHammer = new ItemxJSQHammer(HammerModMain.MODID + \":ItemxJSQHammer\", \"HammerMod-DZ_res/items/ItemxJSQHammer.png\");\r\n\t\tItemSkyTheKidRSHammer = new ItemSkyTheKidRSHammer(HammerModMain.MODID + \":ItemSkyTheKidRSHammer\", \"HammerMod-DZ_res/items/ItemSkyTheKidRSHammer.png\");\r\n\t\tItemThackAttack_MCHammer = new ItemThackAttack_MCHammer(HammerModMain.MODID + \":ItemThackAttack_MCHammer\", \"HammerMod-DZ_res/items/ItemThackAttack_MCHammer.png\");\r\n\t\tItem_MrGregor_Hammer = new Item_MrGregor_Hammer(HammerModMain.MODID + \":Item_MrGregor_Hammer\", \"HammerMod-DZ_res/items/Item_MrGregor_Hammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItemDeeAxelJayHammer = new ItemDeeAxelJayHammer(HammerModMain.MODID + \":ItemDeeAxelJayHammer\", \"HammerMod-DZ_res/items/ItemDeeAxelJayHammer.png\");\r\n\t\tItemincapablegamerHammer = new ItemincapablegamerHammer(HammerModMain.MODID + \":ItemincapablegamerHammer\", \"HammerMod-DZ_res/items/ItemincapablegamerHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItemCryingObsidainHammer = new ItemCryingObsidainHammer(HammerModMain.MODID + \":ItemCryingObsidainHammer\", \"HammerMod-DZ_res/items/ItemCryingObsidainHammer.png\");\r\n\t\tItemMythicalHammer = new ItemMythicalHammer(HammerModMain.MODID + \":ItemMythicalHammer\", \"HammerMod-DZ_res/items/ItemMythicalHammer.png\");\r\n\t\tItemToasterHammer = new ItemToasterHammer(HammerModMain.MODID + \":ItemToasterHammer\", \"HammerMod-DZ_res/items/ItemToasterHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItemRainbowHammer = new ItemRainbowHammer(HammerModMain.MODID + \":ItemRainbowHammer\", \"HammerMod-DZ_res/items/ItemRainbowHammer.png\");\r\n\t\tItemMissingTextureHammer = new ItemMissingTextureHammer(HammerModMain.MODID + \":ItemMissingTextureHammer\", \"HammerMod-DZ_res/items/ItemMissingTextureHammer.png\");\r\n\r\n\t\tregisterItems();\r\n\t}",
"@Override\n\tpublic void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale)\n\t{\n\t\tGL11.glPushMatrix();\n\t\t//This is setting the initial location.\n\t\tGL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);\n\n\t\t//Set Rotation\n\t\tsetRotation();\n\t\t\n\t\t//Use metadata and to determine what model and textures to use\n\t\tif(te.getBlockMetadata() == 0)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/CoffeeStage0.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage0 model = new ModelPlantStage0();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 1)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage1_3.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage1 model = new ModelPlantStage1();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 2)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage1_3.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage2 model = new ModelPlantStage2();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 3)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage1_3.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage3 model = new ModelPlantStage3();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 4)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage4_5.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage4 model = new ModelPlantStage4();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 5)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage4_5.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage5 model = new ModelPlantStage5();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 6)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage6.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage6 model = new ModelPlantStage6();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\telse if(te.getBlockMetadata() == 7)\n\t\t{\n\t\t\t//Set Texture\n\t\t\tResourceLocation texture = (new ResourceLocation(\"teamod:textures/blocks/TeaStage7.png\"));\n\t\t\tMinecraft.getMinecraft().renderEngine.bindTexture(texture);\n\t\t\t\n\t\t\t//Render Model\n\t\t\tModelPlantStage7 model = new ModelPlantStage7();\n\t\t\tmodel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);\n\t\t}\n\t\t\n\t\t//Tell it to stop rendering for both the PushMatrix's\n\t\tGL11.glPopMatrix();\n\t\tGL11.glPopMatrix();\n\t}",
"private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public ModelBakery(IResourceManager p_i46085_1_, TextureMap p_i46085_2_, BlockModelShapes p_i46085_3_) {\n/* 78 */ this.resourceManager = p_i46085_1_;\n/* 79 */ this.textureMap = p_i46085_2_;\n/* 80 */ this.blockModelShapes = p_i46085_3_;\n/* */ }",
"public void addBlock(Block newBlock) {\n\t\tBLOCK_LIST.add(newBlock);\n\t\tSPRITE_LIST.add(newBlock);\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic <TileEntityType extends ATileEntityBase<JSONDefinition>, JSONDefinition extends AJSONMultiModelProvider> boolean setBlock(ABlockBase block, Point3d position, WrapperPlayer playerWrapper, Axis axis){\r\n \tif(!world.isRemote){\r\n \t\tBuilderBlock wrapper = BuilderBlock.blockMap.get(block);\r\n \t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n \t\tif(playerWrapper != null){\r\n \t\t\tWrapperPlayer player = playerWrapper;\r\n \t \tItemStack stack = playerWrapper.getHeldStack();\r\n \t \tAItemBase item = player.getHeldItem();\r\n \t \tEnumFacing facing = EnumFacing.valueOf(axis.name());\r\n \t \tif(!world.getBlockState(pos).getBlock().isReplaceable(world, pos)){\r\n \t pos = pos.offset(facing);\r\n \t position.add(facing.getXOffset(), facing.getYOffset(), facing.getZOffset());\r\n \t \t}\r\n \t \t\r\n\t if(item != null && player.player.canPlayerEdit(pos, facing, stack) && world.mayPlace(wrapper, pos, false, facing, null)){\r\n\t \tIBlockState newState = wrapper.getStateForPlacement(world, pos, facing, 0, 0, 0, 0, player.player, EnumHand.MAIN_HAND);\r\n\t \tif(world.setBlockState(pos, newState, 11)){\r\n\t\t \t//Block is set. See if we need to set TE data.\r\n\t\t \tif(block instanceof ABlockBaseTileEntity){\r\n\t\t \t\tBuilderTileEntity<TileEntityType> builderTile = (BuilderTileEntity<TileEntityType>) world.getTileEntity(pos);\r\n\t\t \t\tWrapperNBT data;\r\n\t\t \t\tif(stack.hasTagCompound()){\r\n\t\t \t\t\tdata = new WrapperNBT(stack);\r\n\t\t \t\t}else{\r\n\t\t \t\t\tdata = new WrapperNBT();\r\n\t\t \t\t\tif(item instanceof AItemPack){\r\n\t\t\t \t\t\tdata.setString(\"packID\", ((AItemPack<?>) item).definition.packID);\r\n\t\t\t\t \t\tdata.setString(\"systemName\", ((AItemPack<?>) item).definition.systemName);\r\n\t\t\t\t \t\tif(item instanceof AItemSubTyped){\r\n\t\t\t\t \t\t\tdata.setString(\"subName\", ((AItemSubTyped<?>) item).subName);\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\tbuilderTile.tileEntity = (TileEntityType) ((ABlockBaseTileEntity) block).createTileEntity(this, position, player, data);\r\n\t\t \t}\r\n\t\t \t//Shrink stack as we placed this block.\r\n\t\t stack.shrink(1);\r\n\t\t return true;\r\n\t\t }\r\n\t }\r\n \t\t}else{\r\n \t\t\tIBlockState newState = wrapper.getDefaultState();\r\n \t\t\tif(world.setBlockState(pos, newState, 11)){\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }",
"@Overwrite(remap = false)\n private void renderDroppedItem(EntityItem entityItem, IIcon icon, int p_77020_3_, float p_77020_4_, float p_77020_5_, float p_77020_6_, float p_77020_7_, int pass) {\n Tessellator tessellator = Tessellator.instance;\n ItemStack itemStack = ItemUtils.changeRenderTarget(entityItem.getEntityItem());\n\n\n if (icon == null) {\n TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();\n ResourceLocation resourcelocation = texturemanager.getResourceLocation(itemStack.getItemSpriteNumber());\n icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite(\"missingno\");\n }\n\n float f14 = icon.getMinU();\n float f15 = icon.getMaxU();\n float f4 = icon.getMinV();\n float f5 = icon.getMaxV();\n float f6 = 1.0F;\n float f7 = 0.5F;\n float f8 = 0.25F;\n float f10;\n\n if (this.renderManager.options.fancyGraphics) {\n GL11.glPushMatrix();\n\n if (renderInFrame) {\n GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);\n } else {\n GL11.glRotatef((((float) entityItem.age + p_77020_4_) / 20.0F + entityItem.hoverStart) * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);\n }\n\n float f9 = 0.0625F;\n f10 = 0.021875F;\n //ItemStack itemStack = entityItem.getEntityItem();\n int j = itemStack.stackSize;\n byte b0;\n\n if (j < 2) {\n b0 = 1;\n } else if (j < 16) {\n b0 = 2;\n } else if (j < 32) {\n b0 = 3;\n } else {\n b0 = 4;\n }\n\n b0 = getMiniItemCount(itemStack, b0);\n\n GL11.glTranslatef(-f7, -f8, -((f9 + f10) * (float) b0 / 2.0F));\n\n for (int k = 0; k < b0; ++k) {\n // Makes items offset when in 3D, like when in 2D, looks much better. Considered a vanilla bug...\n if (k > 0 && shouldSpreadItems()) {\n float x = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n float y = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n float z = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n GL11.glTranslatef(x, y, f9 + f10);\n } else {\n GL11.glTranslatef(0f, 0f, f9 + f10);\n }\n\n if (itemStack.getItemSpriteNumber() == 0) {\n this.bindTexture(TextureMap.locationBlocksTexture);\n } else {\n this.bindTexture(TextureMap.locationItemsTexture);\n }\n\n GL11.glColor4f(p_77020_5_, p_77020_6_, p_77020_7_, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, f15, f4, f14, f5, icon.getIconWidth(), icon.getIconHeight(), f9);\n\n if (itemStack.hasEffect(pass)) {\n GL11.glDepthFunc(GL11.GL_EQUAL);\n GL11.glDisable(GL11.GL_LIGHTING);\n this.renderManager.renderEngine.bindTexture(RES_ITEM_GLINT);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);\n float f11 = 0.76F;\n GL11.glColor4f(0.5F * f11, 0.25F * f11, 0.8F * f11, 1.0F);\n GL11.glMatrixMode(GL11.GL_TEXTURE);\n GL11.glPushMatrix();\n float f12 = 0.125F;\n GL11.glScalef(f12, f12, f12);\n float f13 = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 8.0F;\n GL11.glTranslatef(f13, 0.0F, 0.0F);\n GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f9);\n GL11.glPopMatrix();\n GL11.glPushMatrix();\n GL11.glScalef(f12, f12, f12);\n f13 = (float) (Minecraft.getSystemTime() % 4873L) / 4873.0F * 8.0F;\n GL11.glTranslatef(-f13, 0.0F, 0.0F);\n GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f9);\n GL11.glPopMatrix();\n GL11.glMatrixMode(GL11.GL_MODELVIEW);\n GL11.glDisable(GL11.GL_BLEND);\n GL11.glEnable(GL11.GL_LIGHTING);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n }\n }\n\n GL11.glPopMatrix();\n } else {\n for (int l = 0; l < p_77020_3_; ++l) {\n GL11.glPushMatrix();\n\n if (l > 0) {\n f10 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n float f16 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n float f17 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n GL11.glTranslatef(f10, f16, f17);\n }\n\n if (!renderInFrame) {\n GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);\n }\n\n GL11.glColor4f(p_77020_5_, p_77020_6_, p_77020_7_, 1.0F);\n tessellator.startDrawingQuads();\n tessellator.setNormal(0.0F, 1.0F, 0.0F);\n tessellator.addVertexWithUV((double) (0.0F - f7), (double) (0.0F - f8), 0.0D, (double) f14, (double) f5);\n tessellator.addVertexWithUV((double) (f6 - f7), (double) (0.0F - f8), 0.0D, (double) f15, (double) f5);\n tessellator.addVertexWithUV((double) (f6 - f7), (double) (1.0F - f8), 0.0D, (double) f15, (double) f4);\n tessellator.addVertexWithUV((double) (0.0F - f7), (double) (1.0F - f8), 0.0D, (double) f14, (double) f4);\n tessellator.draw();\n GL11.glPopMatrix();\n }\n }\n }",
"public void addItemElementsFromBillOfMaterials(Item item) throws CdbException {\n List<InventoryBillOfMaterialItem> bomItems = item.getInventoryDomainBillOfMaterialList();\n\n if (bomItems != null) {\n for (InventoryBillOfMaterialItem bomItem : bomItems) {\n if (bomItem.getState().equals(InventoryBillOfMaterialItemStates.unspecifiedOptional.getValue())) {\n continue;\n }\n\n // Check if current catalog item element already has an item element defined. \n ItemElement catalogItemElement = bomItem.getCatalogItemElement();\n ItemElement currentInventoryItemElement = null;\n for (ItemElement inventoryItemElement : item.getFullItemElementList()) {\n if (inventoryItemElement.getDerivedFromItemElement() == catalogItemElement) {\n currentInventoryItemElement = inventoryItemElement;\n logger.debug(\"Updating element \" + currentInventoryItemElement + \" to item \" + item);\n break;\n }\n }\n\n if (currentInventoryItemElement == null) {\n currentInventoryItemElement = new ItemElement();\n currentInventoryItemElement.init(item, bomItem.getCatalogItemElement());\n item.getFullItemElementList().add(currentInventoryItemElement);\n logger.debug(\"Creating instance adding element \" + currentInventoryItemElement + \" to item \" + item);\n }\n\n // User has specified to create a new item for this bill of materials item. \n String currentBomState = bomItem.getState();\n if (currentBomState.equals(InventoryBillOfMaterialItemStates.newItem.getValue())\n || currentBomState.equals(InventoryBillOfMaterialItemStates.existingItem.getValue())) {\n if (bomItem.getInventoryItem() == null) {\n\n String actionWord = \"defined\";\n if (currentBomState.equals(InventoryBillOfMaterialItemStates.existingItem.getValue())) {\n actionWord = \"selected\";\n }\n\n throw new CdbException(\"An item for: \" + bomItem.getCatalogItemElement().getName() + \" is not \" + actionWord + \".\");\n }\n\n Item inventoryItem = bomItem.getInventoryItem();\n\n // No need to do that for existing items. \n if (currentBomState.equals(InventoryBillOfMaterialItemStates.newItem.getValue())) {\n addItemElementsFromBillOfMaterials(inventoryItem);\n currentInventoryItemElement.setContainedItem(inventoryItem);\n\n } else if (currentBomState.equals(InventoryBillOfMaterialItemStates.existingItem.getValue())) {\n if (currentInventoryItemElement.getContainedItem() == inventoryItem == false) {\n currentInventoryItemElement.setContainedItem(itemFacade.find(inventoryItem.getId()));\n }\n }\n } else if (currentBomState.equals(InventoryBillOfMaterialItemStates.placeholder.getValue())) {\n currentInventoryItemElement.setContainedItem(null);\n }\n\n // Use permissions defined in parent of the item for the item element. \n updateItemElementPermissionsToItem(currentInventoryItemElement, bomItem.getParentItemInstance());\n }\n }\n\n }",
"public final Model getBlockModel(Block block) {\n return getBlockModel(WorldUtil.getBlockData(block).getRenderOptions(block));\n }",
"private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}",
"public MapTexture getItemTexture(ItemStack item, int width, int height) {\n Model model = this.getItemModel(item);\n if (model == null || model.placeholder) {\n return createPlaceholderTexture(width, height);\n }\n\n MapTexture texture = MapTexture.createEmpty(width, height);\n Matrix4x4 transform = new Matrix4x4();\n if (width != 16 || height != 16) {\n transform.scale((double) width / 16.0, 1.0, (double) height / 16.0);\n }\n Model.Display display = model.display.get(\"gui\");\n if (display != null) {\n display.apply(transform);\n texture.setLightOptions(0.0f, 1.0f, new Vector3(-1, 1, -1));\n } else {\n //System.out.println(\"GUI DISPLAY ELEMENT NOT FOUND\");\n }\n\n texture.drawModel(model, transform);\n return texture;\n }",
"public static void initializeBlocks() {\n if (Config.enableGiveADamn) {\n giveADamn = new GiveADamn();\n }\n\n if (Config.enableGlowstone) {\n glowstone = new HeavyLight();\n }\n\n if (Config.enableSpicedSand) {\n sandSpiced = new SpicedSand();\n }\n /*\n\n if (Config.enableMuffler){\n muffler = new Muffler();\n }\n */\n }",
"public boolean onItemUse(ItemStack is, EntityPlayer player, World w, int x, int y, int z, int l, float f, float f1, float f3){\n\t\tif(w.getBlockId(x, y, z) == Block.planks.blockID){ //If blockId at x y z is planks:\n\t\t\tw.setBlockMetadataWithNotify(x, y, z, w.getBlockMetadata(x, y, z)+1); //Increase the metadata\n\t\t\t\n\t\t\tif(w.getBlockMetadata(x, y, z) == 4){ //If metadata is 4\n\t\t\t\tw.setBlockMetadata(x, y, z, 0); //Reset to 0\n\t\t\t}\n\t\t\t\n\t\t}else if(w.getBlockId(x, y, z) == Block.plantRed.blockID){ //If block id is red plant\n\t\t\tw.setBlockWithNotify(x, y, z, Block.plantYellow.blockID); //Changing block to yellow plant\n\t\t\t\n\t\t}else if(w.getBlockId(x, y, z) == Block.plantYellow.blockID){ //Vice Versa\n\t\t\tw.setBlockWithNotify(x, y, z, Block.plantRed.blockID);\n\t\t}else if(w.getBlockId(x, y, z) == Block.cobblestone.blockID){ //If block is cobble\n\t\t\tw.setBlockWithNotify(x, y, z, Block.cobblestoneMossy.blockID); //Set to mossy\n\t\t}else if(w.getBlockId(x, y, z) == Block.cobblestoneMossy.blockID){ //Vice versa\n\t\t\tw.setBlockWithNotify(x, y, z, Block.cobblestone.blockID);\n\t\t}\n\t\treturn false;\n\t}",
"private void apply() {\n\t\tArrayList<NPC> templates = new ArrayList<NPC>();\n\t\tfor (int i = 0; i < npcList.size(); i++) {\n\t\t\tDocument doc = ParserHelper.LoadXML(\"assets/data/npcs/\" + npcList.get(i) + \".xml\");\n\t\t\tElement root = doc.getDocumentElement();\n\t\t\tElement n = (Element) doc.getFirstChild();\n\t\t\tNPC template = new NPC(n, new Vec2f(0, 0), npcList.get(i));\n\t\t\ttemplates.add(template);\n\t\t}\n\n\t\tfor (int i = 0; i < blockGrid.length; i++) {\n\t\t\tfor (int j = 0; j < blockGrid[i].length; j++) {\n\t\t\t\tif (blockGrid[i][j] < 0 && blockGrid[i][j] > -100) {\n\t\t\t\t\tkeyBlocks.get((blockGrid[i][j] * -1) - 1).apply(i, j, zoneGrid, zone, widgetLoader, templates);\n\t\t\t\t}\n\t\t\t\tif (blockGrid[i][j] > 0 && blockGrid[i][j] < 100) {\n\t\t\t\t\tblockList.get(blockGrid[i][j] - 1).apply(i, j, zoneGrid, zone, widgetLoader, templates);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void updateAffectedBlocks() {\n Location blockLocation = getBlock().getLocation();\n \n affectedBlocks.clear();\n \n for (int x = -(radius / 2); x <= radius / 2; x++) {\n for (int z = -(radius / 2); z <= radius / 2; z++) {\n affectedBlocks.add(blockLocation.getWorld().getBlockAt(blockLocation.getBlockX() + x, blockLocation.getBlockY(), blockLocation.getBlockZ() + z));\n }\n }\n }",
"@Override\n\tpublic void initializeItemFields(CharacterClass item) {\n\t\titem.setStartingMainhandInstance(weaponBag.getItem(item.getStartingMainhand()));\n\t\titem.setStartingOffhandInstance(weaponBag.getItem(item.getStartingOffhand()));\n\n\t\titem.setStartingHelmetInstance(equipmentBag.getItem(item.getStartingHelmet()));\n\t\titem.setStartingChestInstance(equipmentBag.getItem(item.getStartingChest()));\n\t\titem.setStartingGlovesInstance(equipmentBag.getItem(item.getStartingGloves()));\n\t\titem.setStartingPantsInstance(equipmentBag.getItem(item.getStartingPants()));\n\t\titem.setStartingBootsInstance(equipmentBag.getItem(item.getStartingBoots()));\n\t\titem.setStartingRing1Instance(equipmentBag.getItem(item.getStartingRing1()));\n\t\titem.setStartingRing2Instance(equipmentBag.getItem(item.getStartingRing2()));\n\t\titem.setStartingNeckInstance(equipmentBag.getItem(item.getStartingNeck()));\n\n\t\t// Initialize Skills\n\t\tif(item.getSkillInstances() == null)\n\t\t\titem.setSkillInstances(new ArrayList<>());\n\n\t\tfor(String id: item.getSkills()) {\n\t\t\tSkill skill = skillBag.getItem(id);\n\t\t\titem.getSkillInstances().add(skill);\n\t\t}\n\t}",
"private static void loadBlockFromArray(ArrayList<String> items, int start, int end) {\n int id = -1;\n String speciesName = null;\n Long speciesID = new Long(0);\n String label = null;\n //String command = null;\n boolean hasBreed = false;\n String breed = null;\n double xcor = 0.0, ycor = 0.0;\n int numSockets = 0;\n int[] socketBlockIDs = new int[0];\n int plugID = -1;\n int controlNextID = -1, controlPrevID = -1;\n String shapeName = null;\n boolean procedureShown = true;\n /*int correspondingParameterID = -1;*/\n boolean isBad = false;\n// boolean isPermanentlyBad = false;\n\n int i = start;\n while (i<end) {\n String item = items.get(i).toString();\n\n if (item.equals(\"species-name\")) {\n speciesName = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"Species name \" + speciesName);\n continue;\n }\n\n if (item.equals(\"id\")) {\n String value = items.get(i+1).toString();\n id = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"block id \" + id);\n continue;\n }\n\n if (item.equals(\"species-id\")) {\n String value = items.get(i+1).toString();\n speciesID = Long.valueOf(value);\n i += 2;\n //System.out.println(\"Species id \" + speciesID);\n continue;\n }\n\n if (item.equals(\"label\")) {\n label = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"label \" + label);\n continue;\n }\n\n if (item.equals(\"command\")) {\n //command = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"command \" + command);\n continue;\n }\n\n if (item.equals(\"has-breed\")) {\n String value = items.get(i+1).toString();\n hasBreed = (value.equals(\"true\"));\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n\n if (item.equals(\"breed\")) {\n breed = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"breed \" + breed);\n continue;\n }\n\n if (item.equals(\"xcor\")) {\n String value = items.get(i+1).toString();\n xcor = Double.parseDouble(value);\n i += 2;\n //System.out.println(\"xcor \" + xcor);\n continue;\n }\n\n if (item.equals(\"ycor\")) {\n String value = items.get(i+1).toString();\n ycor = Double.parseDouble(value);\n i += 2;\n //System.out.println(\"ycor \" + ycor);\n continue;\n }\n \n if (item.equals(\"is-bad\")) {\n String value = items.get(i+1).toString();\n isBad = value.equals(\"true\");\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n \n if (item.equals(\"is-bad\")) {\n// String value = items.get(i+1).toString();\n// isPermanentlyBad = value.equals(\"true\");\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n\n if (item.equals(\"plug\")) {\n String value = items.get(i+1).toString();\n plugID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"plug \" + plugID);\n continue;\n }\n\n if (item.equals(\"control-prev\")) {\n String value = items.get(i+1).toString();\n controlPrevID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"control prev \" + controlPrevID);\n continue;\n }\n\n if (item.equals(\"control-next\")) {\n String value = items.get(i+1).toString();\n controlNextID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"control next \" + controlNextID);\n continue;\n }\n\n if (item.equals(\"sockets\")) {\n String value = items.get(i+1).toString();\n //System.out.println(\"found sockets \" + value);\n numSockets = Integer.parseInt(value);\n i += 2;\n\n socketBlockIDs = new int[numSockets];\n\n for(int currentSocket = 0; currentSocket < numSockets; currentSocket++) {\n String sockLabel = items.get(i).toString();\n assert(sockLabel.equals(\"socket\"));\n socketBlockIDs[currentSocket] = Integer.parseInt(items.get(i+1).toString());\n //System.out.println(\"socket \" + currentSocket + \" block id \" + socketBlockIDs[currentSocket]);\n i += 2;\n }\n continue;\n }\n\n if(item.equals(\"shape-icon\")) {\n shapeName = items.get(i + 1).toString();\n i += 2;\n //System.out.println(\"shape-icon = \" + value);\n //shape = AvailableShapes.getShape(value);\n continue;\n }\n\n if (item.equals(\"procedure-shown\")) {\n String value = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"procedure-shown \" + value);\n procedureShown = value.equalsIgnoreCase(\"true\");\n //this is the isMinimized value for procedures\n continue;\n }\n \n if (item.equals(\"parent\")) {\n //String value = items.get(i+1).toString();\n i += 2;\n //correspondingParameterID = Integer.parseInt(value);\n //System.out.println(\"parentID \" + value);\n continue;\n }\n\n // skip the next if we haven't found anything we know\n //System.out.println(\"unknown tag \" + items.get(i).toString());\n i+=2;\n }\n \n assert(id >= 0);\n //assert(speciesName != null);\n assert(speciesID >= 0);\n assert( (hasBreed && breed != null) || !hasBreed);\n \n //apply constraints if any\n VariableConstraints constraint = null;\n if(speciesName.equals(\"global-var-decl-num\") && (constraintsMap.containsKey(label))){\n \tconstraint = constraintsMap.get(label);\n }\n \n //instantiate block data\n BlockData bd = new BlockData(id, speciesName, speciesMap.get(speciesID+speciesName), \n label, xcor, ycor, socketBlockIDs, hasBreed, \n breed, plugID, controlNextID, controlPrevID, isBad, procedureShown, shapeName, constraint);\n \n //for run blocks: forever, runonce, runforsometime, set their labels to be\n //the breeds\n if(bd.getGenusName().equals(\"forever\") || bd.getGenusName().equals(\"runonce\") ||\n bd.getGenusName().equals(\"runforsometime\")){\n bd.setBreedLabels(pages);\n }\n \n //check if block has negative coors, if so translate the coors\n if(bd.getXCor() < 0)\n \tbd.setXCor(-bd.getXCor());\n if(bd.getYCor() < 0)\n \tbd.setYCor(-bd.getYCor());\n \n blocks.add(bd);\n \n if(DEBUG) \n \t System.out.println(\"Loaded: \"+bd);\n \n \n \n }",
"public void updateStructure()\n\t{\n\t\tboolean itWorked = true;\n\t\t\n\t\t// Get block's rotational information as a ForgeDirection\n\t\tForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)));\n\t\t\n\t\t//\n\t\t// Step one: validate all blocks\n\t\t//\n\t\t\n\t\t// Get the MachineStructures from the MachineStructureRegistrar\n\t\t// But if the machine is already set up it should only check the desired structure.\n\t\tfor (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID())))\n\t\t{\n\t\t\t// Check each block in requirements\n\t\t\tfor (PReq req : struct.requirements)\n\t\t\t{\n\t\t\t\t// Get the rotated block coordinates.\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\n\t\t\t\t// Check the requirement.\n\t\t\t\tif (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord))\n\t\t\t\t{\n\t\t\t\t\t// If it didn't work, stop checking.\n\t\t\t\t\titWorked = false; break;\n\t\t\t\t}\n\t\t\t\t// If it did work keep calm and carry on\n\t\t\t}\n\t\t\t\n\t\t\t// We've gone through all the blocks. They all match up!\n\t\t\tif (itWorked)\n\t\t\t{\n\t\t\t\t// **If the structure is new only**\n\t\t\t\t// Which implies the blocks have changed between checks\n\t\t\t\tif (struct.ID != structureID)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// This is only called when structures are changed/first created.\n\t\t\t\t\t//\n\t\t\t\t\t\n\t\t\t\t\t// Save what structure we have.\n\t\t\t\t\tstructureID = struct.ID;\n\t\t\t\t\t\n\t\t\t\t\t// Make an arraylist to save all teh structures\n\t\t\t\t\tArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>();\n\n\t\t\t\t\t// Tell all of the blocks to join us!\n\t\t\t\t\tfor (PReq req : struct.requirements)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the blocks that the structure has checked.\n\t\t\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue;\n\n\t\t\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t\t\t((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check the tile entity for upgrades\n\t\t\t\t\t\tTileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z);\n\t\t\t\t\t\tif (ent != null && ent instanceof StructureUpgradeEntity)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent;\n\t\t\t\t\t\t\tnewEntities.add(structEnt);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* // Not sure about this.\n\t\t\t\t\t\t\tif (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstructEnt.onCoreConnected()\n\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\t// do stuff with that\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// I haven't figured out how the hell to do toArray() in this crap\n\t\t\t\t\t// so here's a weird combination of iterator and for loop\n\t\t\t\t\tupgrades = new StructureUpgradeEntity[newEntities.size()];\n\t\t\t\t\tfor (int i = 0; i < newEntities.size(); i++)\n\t\t\t\t\t\tupgrades[i] = newEntities.get(i);\n\n\t\t\t\t\t// Tell all of the structure blocks to stripe it up!\n\t\t\t\t\tfor (RelativeFaceCoords relPos : struct.relativeStriped)\n\t\t\t\t\t{\n\t\t\t\t\t\tBlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If it's a structure block tell it to stripe up\n\t\t\t\t\t\tif (brock != null && brock instanceof StructureBlock)\n\t\t\t\t\t\t\tworldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If not, reset the loop and try again.\n\t\t\telse { itWorked = true; continue; }\n\t\t}\n\t\t\n\t\t//\n\t\t// None of the structures worked!\n\t\t//\n\t\t\n\t\t// If we had a structure before, we need to clear it\n\t\tif (structureComplete())\n\t\t{\n\t\t\tfor (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements)\n\t\t\t{\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\n\t\t\t\t// This will also un-stripe all structure blocks.\n\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t}\n\t\t\t// We don't have a structure.\n\t\t\tstructureID = null;\n\t\t}\n\t\t\n\t}",
"public BuildingBlock(int blockId, Color color) {\n Image bbGreenImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_LONGER_BONUS.getImage()));\n bbGreen = new ImagePattern(bbGreenImage);\n VisibleObjects.MAKE_LONGER_BONUS.setBlockImage(bbGreen);\n Image bbYellowImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_FASTER_BONUS.getImage()));\n bbYellow = new ImagePattern(bbYellowImage);\n VisibleObjects.MAKE_FASTER_BONUS.setBlockImage(bbYellow);\n Image bbRedImage = new Image(getClass().getResourceAsStream(VisibleObjects.SHOOT_BONUS.getImage()));\n bbRed = new ImagePattern(bbRedImage);\n VisibleObjects.SHOOT_BONUS.setBlockImage(bbRed);\n Image bbGreyImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH.getImage()));\n bbGrey = new ImagePattern(bbGreyImage);\n VisibleObjects.DEATH.setBlockImage(bbGrey);\n Image playerOneImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_ONE.getImage()));\n playerOneImage = new ImagePattern(playerOneImageImage);\n VisibleObjects.PLAYER_ONE.setBlockImage(playerOneImage);\n Image playerTwoImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_TWO.getImage()));\n playerTwoImage = new ImagePattern(playerTwoImageImage);\n VisibleObjects.PLAYER_TWO.setBlockImage(playerTwoImage);\n Image playerThreeImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_THREE.getImage()));\n playerThreeImage = new ImagePattern(playerThreeImageImage);\n VisibleObjects.PLAYER_THREE.setBlockImage(playerThreeImage);\n Image playerFourImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_FOUR.getImage()));\n playerFourImage = new ImagePattern(playerFourImageImage);\n VisibleObjects.PLAYER_FOUR.setBlockImage(playerFourImage);\n Image playerOneImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_ONE.getImage()));\n playerOneImageRIP = new ImagePattern(playerOneImageImageRIP);\n PlayerEnum.PLAYER_ONE.setPlayerDeathImage(playerOneImageRIP);\n Image playerTwoImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_TWO.getImage()));\n playerTwoImageRIP = new ImagePattern(playerTwoImageImageRIP);\n PlayerEnum.PLAYER_TWO.setPlayerDeathImage(playerTwoImageRIP);\n Image playerThreeImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_THREE.getImage()));\n playerThreeImageRIP = new ImagePattern(playerThreeImageImageRIP);\n PlayerEnum.PLAYER_THREE.setPlayerDeathImage(playerThreeImageRIP);\n Image playerFourImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_FOUR.getImage()));\n playerFourImageRIP = new ImagePattern(playerFourImageImageRIP);\n PlayerEnum.PLAYER_FOUR.setPlayerDeathImage(playerFourImageRIP);\n Image deathImage = new Image(getClass().getResourceAsStream(\"rip.png\"));\n deathPattern = new ImagePattern(deathImage);\n Image deathPlayerImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH_PLAYER.getImage()));\n deathPlayerPattern = new ImagePattern(deathPlayerImage);\n VisibleObjects.DEATH_PLAYER.setBlockImage(deathPlayerPattern);\n \n Image eplosionImage = new Image(getClass().getResourceAsStream(\"explosion.gif\"));\n explosionView = new ImagePattern(eplosionImage);\n \n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n \n explosionSound.play(0);\n \n this.blockId = blockId;\n this.revertColor = color;\n rectangle = new Rectangle();\n rectangle.setFill(color);\n occupant = new Death(VisibleObjects.DEATH);\n gridList.put(blockId, this);\n }",
"@Override\n @SideOnly(Side.CLIENT)\n public void getSubItems(Item itemIn, CreativeTabs tab, List subItems)\n {\n ImmutableSet<IBlockState> presets = BlockStateUtils.getBlockPresets(this.block);\n if (presets.isEmpty())\n {\n subItems.add(new ItemStack(this.block, 1, 0));\n }\n else\n {\n for (IBlockState state : presets)\n {\n subItems.add(new ItemStack(this.block, 1, this.block.getMetaFromState(state)));\n }\n }\n }",
"@Override\n public void updateEntity()\n {\n super.updateEntity();\n\n // Updates heat level of the block based on internal tank amount.\n checkHeatLevels();\n\n // Server side processing for furnace.\n if (!this.worldObj.isRemote)\n {\n // Checks to see if we can add a bucket of water to internal tank.\n this.addBucketToInternalTank();\n\n // First tick for new item being cooked in furnace.\n if (this.getProgressValue() == 0 && this.canSmelt() && this.isPowered() && this.isRedstonePowered())\n {\n // Calculate length of time it should take to compute these genome combinations.\n ItemStack currentRecipe = this.getRecipeResult(\n SlotContainerTypeEnum.INPUT_INGREDIENT1,\n SlotContainerTypeEnum.INPUT_INGREDIENT2,\n SlotContainerTypeEnum.INPUT_EXTRA,\n SlotContainerTypeEnum.OUTPUT_RESULT1);\n \n if (currentRecipe == null)\n {\n // Default value for cooking genome if we have none.\n this.setProgressMaximum(200);\n }\n else\n {\n // Defined in MadEntities during mob init.\n this.setProgressMaximum(66);\n }\n\n // Increments the timer to kickstart the cooking loop.\n this.incrementProgressValue();\n }\n else if (this.getProgressValue() > 0 && this.canSmelt() && this.isPowered() && this.isRedstonePowered())\n {\n // Run on server when we have items and electrical power.\n // Note: This is the main work loop for the block!\n\n // Increments the timer to kickstart the cooking loop.\n this.incrementProgressValue();\n\n // Check if furnace has exceeded total amount of time to cook.\n if (this.getProgressValue() >= this.getProgressMaximum())\n {\n // Convert one item into another via 'cooking' process.\n this.setProgressValue(0);\n this.smeltItem();\n this.setInventoriesChanged();\n }\n }\n else\n {\n // Reset loop, prepare for next item or closure.\n this.setProgressValue(0);\n }\n }\n }",
"Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }",
"public void loadAllTextures()\n {\n int numChildren = androidRobot3DObject.numChildren();\n for(int i = 0;i<numChildren;i++)\n {\n String name = androidRobot3DObject.getChildAt(i).name();\n\n Log.d(\"min3d\", \"Texture name: \" + name);\n\n // The name is either extracted from the _mtl file\n // or directly from the *.3ds file\n // The name can be given directly into Blender\n if(name.indexOf(\"body\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_body\");\n }\n\n if(name.indexOf(\"head\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_head\");\n }\n\n if(name.indexOf(\"foot\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_foot\");\n }\n\n\n if(name.indexOf(\"arm\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_arm\");\n }\n\n if(name.indexOf(\"antenna\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_antenna\");\n }\n }\n\n }",
"LocalMaterialData withBlockData(int newData);",
"public void transform() {\n\t\tthis.targetRootBlock = copy(this.sourceRootBlock);\n\n\t\tList<BlockImpl> blocks = allSubobjectsOfKind(targetRootBlock,\n\t\t\t\tBlockImpl.class);\n\t\tList<Block> emptyBlocks = new LinkedList<Block>();\n\t\tfor (Block block : blocks) {\n\t\t\tif (block.getModelElement().size() == 0) {\n\t\t\t\temptyBlocks.add(block);\n\t\t\t}\n\t\t}\n\n\t\tfor (Block block : emptyBlocks) {\n\t\t\tcreateSquare(block);\n\t\t\tEcoreUtil.delete(block);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Completed Transformation\");\n\t\t}\n\t}",
"public void fillBlock(Block block) {\n\n\t\tfor (int j = block.UpperLeft().x; j <= block.LowerRight().x; j++) { \n\t\t\tfor (int k = block.UpperLeft().y; k <= block.LowerRight().y; k++) { \n\t\t\t\tblocksPosition.put(new Point(j,k), block); \n\t\t\t\t//Blocks.add(block); \n\t\t\t} \n\t\t} \n\t}",
"public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }",
"public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {\n/* 98 */ EnumType[] var4 = EnumType.values();\n/* 99 */ int var5 = var4.length;\n/* */ \n/* 101 */ for (int var6 = 0; var6 < var5; var6++) {\n/* */ \n/* 103 */ EnumType var7 = var4[var6];\n/* 104 */ list.add(new ItemStack(itemIn, 1, var7.func_176881_a()));\n/* */ } \n/* */ }",
"@Override\n public void run() {\n if (config.DebugLogging) {\n getLogger().info(\"Reverting Ice to Water to prevent server overload\");\n }\n\n Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc);\n fixblock.setType(Material.STATIONARY_WATER);\n\n }",
"@EventHandler\n public void onBlockDropEvent(BlockBreakEvent event) {\n if (!plugin.config.enabled) {\n //plugin is not enabled.. do nothing\n return;\n }\n\n Player player = event.getPlayer();\n //message for debug\n String debugMSG = \"\";\n //test if player is in creative\n if (player.getGameMode().equals(GameMode.CREATIVE)){\n //don't drop anything\n if (plugin.config.debug) {\n debugMSG = ChatColor.DARK_GREEN + \"[DEBUG]\"\n + ChatColor.YELLOW + \"[\" + player.getDisplayName() + \"]\"\n + ChatColor.RESET;\n plugin.console.log(debugMSG + \"Player in Creative Mode. Not Dropping Items.\");\n }\n return;\n }\n\n Block block = event.getBlock();\n\n\n String blockLocation = \"\";\n if (plugin.config.debug) {\n debugMSG = ChatColor.DARK_GREEN + \"[DEBUG]\"\n + ChatColor.YELLOW + \"[\" + player.getDisplayName() + \"]\"\n + ChatColor.BLUE + \"[\" + block.getType().name() + \"]\"\n + ChatColor.RESET;\n blockLocation = ChatColor.DARK_AQUA + \" X:\" + ChatColor.GRAY + block.getLocation().getBlockX()\n + ChatColor.DARK_AQUA + \" Y:\" + ChatColor.GRAY + block.getLocation().getBlockY()\n + ChatColor.DARK_AQUA + \" Z:\" + ChatColor.GRAY + block.getLocation().getBlockZ();\n }\n\n //test to see if this block was placed\n List<MetadataValue> blockD = block.getMetadata(placeBlock);\n if (blockD.size() != 0) {\n //block was placed\n // don't drop anything\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Block Was Placed. No Drops Allowed. \"\n + blockLocation\n );\n }\n return;\n }\n\n Material brokenBlock = block.getType();//gets the material that was just broken\n\n\n //test if we need to check out list of Ores,\n // OR... are we doing it for ALL Blocks\n Ore tempOre = new Ore();//set up tempOre for good measure\n\n if (plugin.config.allBlocks) {\n //we are looking at all blocks\n // make tempOre equal to the block that we broke\n tempOre.setBlock(brokenBlock);\n tempOre.setExp(plugin.config.allBlocks_exp);\n tempOre.setMultiplier(plugin.config.allBlocks_multiplier);\n tempOre.setChance(plugin.config.allBlocks_chance);\n } else {\n //find a Material in our list that matches\n tempOre = plugin.ores.stream().filter((ore) -> brokenBlock.name().contains(ore.getName())).findFirst().orElse(null);\n }\n\n\n if (tempOre == null) {\n //ore was not in our list.\n //stop method\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Block was not Registered in config. No Drops Allowed. \"\n );\n }\n\n return;\n }\n\n //find out if we hit the right chance and go from there\n int chance = plugin.rnd.nextInt(100);//get a percentage\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Chance Needed: \" + tempOre.getChance()\n + \" Chance Received: \" + chance + \" \"\n + blockLocation\n );\n }\n\n if (chance <= tempOre.getChance()) {\n //success on the chance\\\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drops Allowed. \"\n + blockLocation\n );\n }\n\n Collection<ItemStack> droppedItems = event.getBlock().getDrops();//get what ever was dropped\n int initialDrop = 0;//variable to hold how many items were dropped to begin with\n //drop an extra item per drop\n for (ItemStack i : droppedItems) {\n initialDrop = i.getAmount();\n i.setAmount(i.getAmount()*tempOre.getMultiplier() - 1);//set amount to drop\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drop: \" + i.getType().name()\n + \" Amount: \" + initialDrop\n + \" Multiplier: \" + tempOre.getMultiplier()\n + \" Extra Given: \" + (i.getAmount())\n + blockLocation\n );\n }\n\n event.getBlock().getWorld().dropItemNaturally(\n event.getBlock().getLocation(), i\n );\n }\n\n //find out if we need to give experience\n if (tempOre.isExp()) {\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drop includes XP\"\n + \" Amount: \" + event.getExpToDrop()\n + \" Multiplier: \" + tempOre.getMultiplier()\n + \" Total Given: \" + (event.getExpToDrop() * tempOre.getMultiplier())\n + blockLocation\n );\n }\n\n event.setExpToDrop(event.getExpToDrop() * tempOre.getMultiplier());\n }\n\n\n }\n\n\n }",
"public void prepareBillOfMaterialsForCurrentItem() {\n newItemsToAdd = new ArrayList<>();\n InventoryBillOfMaterialItem iBom = new InventoryBillOfMaterialItem(getCurrent());\n InventoryBillOfMaterialItem.setBillOfMaterialsListForItem(getCurrent(), iBom);\n }",
"Block saveBlock(Block block) throws BlockExistsException;",
"@Override\n protected void handleBlockTraits(final Block block) {\n final float borderPaddingStart = block.getBorderAndPaddingWidthStart() / 1000f;\n final float borderPaddingEnd = block.getBorderAndPaddingWidthEnd() / 1000f;\n final float borderPaddingBefore = block\n .getBorderAndPaddingWidthBefore() / 1000f;\n final float borderPaddingAfter = block.getBorderAndPaddingWidthAfter() / 1000f;\n\n float startx = this.currentIPPosition / 1000f;\n final float starty = this.currentBPPosition / 1000f;\n float width = block.getIPD() / 1000f;\n float height = block.getBPD() / 1000f;\n\n final int level = block.getBidiLevel();\n if (level == -1 || (level & 1) == 0) {\n startx += block.getStartIndent() / 1000f;\n startx -= borderPaddingStart;\n } else {\n startx += block.getEndIndent() / 1000f;\n startx -= borderPaddingEnd;\n }\n\n width += borderPaddingStart;\n width += borderPaddingEnd;\n height += borderPaddingBefore;\n height += borderPaddingAfter;\n\n drawBackAndBorders(block, startx, starty, width, height);\n }",
"public static void recursivelyAddBlocks(Block rootBlock, Block parentBlock, Geometry parentGeometry, AlienNode alienNode) {\n for (Block b : parentBlock.getConnectedLimbs()) {\n Geometry g = createLimb(b.collisionShapeType, b.width, b.height, b.length, parentGeometry.getControl(RigidBodyControl.class).getPhysicsLocation().add(b.getPosition()), b.mass, b.rotation, b.rotationForYRP);\n b.applyProperties(g);\n\n //printVector3f(b.getHingePosition());\n float hingeMin = b.hingeMin;\n float hingeMax = b.hingeMax;\n HingeJoint joint = joinHingeJoint(parentGeometry, g, parentGeometry.getControl(RigidBodyControl.class).getPhysicsLocation().add(b.getHingePosition()), b.hingeType, b.restrictHinges, hingeMin, hingeMax);\n alienNode.attachChild(g);\n alienNode.joints.add(joint);\n alienNode.geometries.add(g);\n recursivelyAddBlocks(rootBlock, b, g, alienNode);\n }\n }",
"LocalMaterialData getSurfaceBlock();",
"public void saveMaterials() {\n\t}",
"public static void register(GenericBlock block)\n\t{\n\t\tBLOCKS.add(block);\n\t}",
"void buildBlock(Tile t);",
"@SideOnly(Side.CLIENT)\n\t@Override\n\tpublic void getSubBlocks(Item item, CreativeTabs tab, List<ItemStack> list) {\n\n\t\tif (null == this._subBlocks) {\n\n\t\t\tMetalType[] types = MetalType.VALUES;\n\t\t\tint length = types.length;\n\n\t\t\tthis._subBlocks = new ArrayList<>(length);\n\n\t\t\tfor (int i = 0; i < length; ++i)\n\t\t\t\tthis._subBlocks.add(new ItemStack(item, 1, types[i].toMeta()));\n\t\t}\n\n\t\tlist.addAll(this._subBlocks);\n\t}",
"public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}",
"public void addBlock(Block block){\n\t\tblocks.addElement(block);\n\t}",
"public BlockExtra(Pixy2 pixy, Block block) {\n\t\tthis(pixy, block.getSignature(), block.getX(), block.getY(), block.getWidth(), block.getHeight(), block.getAngle(), block.getIndex(), block.getAge());\n\t}",
"public abstract void updateBlockRecord();",
"@Override\n\tpublic void getSubBlocks(Item i, CreativeTabs tab, List l)\n\t{\n\t\tl.add(new ItemStack(i, 1, 0));\n\t}",
"public void addBlock(Block block)\n {\n SolrInputDocument solr_doc = new SolrInputDocument();\n solr_doc.setField(\"type\",\"Block\");\n solr_doc.setField(\"hash\", block.getHash_block());\n solr_doc.setField(\"block_num\", block.getBlock_num());\n solr_doc.setField(\"version\", block.getVersion());\n solr_doc.setField(\"transaction_merkle_root\", block.getTransac_merkle_root());\n solr_doc.setField(\"timestamps\", block.getTimestamp());\n solr_doc.setField(\"datetime\", block.getDatetime());\n solr_doc.setField(\"difficulty\", block.getDifficulty());\n solr_doc.setField(\"cumulative_difficulty\", block.getCumulative_difficulty());\n solr_doc.setField(\"nonce\", block.getNonce());\n solr_doc.setField(\"how_much_transaction\", block.getHow_much_transaction());\n solr_doc.setField(\"value_out\", block.getValue_out());\n solr_doc.setField(\"block_fee\", block.getBlock_fee());\n solr_doc.setField(\"avg_coin_out\", block.getAvg_coin_age());\n solr_doc.setField(\"coin_days_destroyed\", block.getCoin_days_destroyed());\n solr_doc.setField(\"cumulative_coin_days_destroyed\", block.getCumulative_coin_days_destroyed());\n\n try {\n client.add(solr_doc);\n } catch (SolrServerException | IOException e) {\n e.printStackTrace();\n }\n\n commit();\n }"
] | [
"0.6336106",
"0.61915344",
"0.5928253",
"0.58889043",
"0.58178586",
"0.5800948",
"0.5718055",
"0.56085646",
"0.5605717",
"0.56023973",
"0.55576146",
"0.5525948",
"0.548305",
"0.5473552",
"0.5440928",
"0.5388374",
"0.5373895",
"0.53282124",
"0.5271816",
"0.5201814",
"0.51855826",
"0.51391965",
"0.51074487",
"0.5103952",
"0.51039195",
"0.50949395",
"0.5088344",
"0.507716",
"0.5073984",
"0.50497407",
"0.5045646",
"0.5041221",
"0.5037926",
"0.50324076",
"0.49983194",
"0.49788144",
"0.49773335",
"0.49532637",
"0.4947096",
"0.4945869",
"0.49296504",
"0.49267063",
"0.49219018",
"0.48973954",
"0.48868904",
"0.48860267",
"0.4884658",
"0.48757952",
"0.48721775",
"0.48690897",
"0.48673216",
"0.4866962",
"0.48601148",
"0.4857899",
"0.48536766",
"0.48503503",
"0.4847417",
"0.4838149",
"0.48343137",
"0.48254177",
"0.48203492",
"0.48129818",
"0.4810357",
"0.48000202",
"0.47982168",
"0.47964337",
"0.4778406",
"0.4775472",
"0.47731367",
"0.47688538",
"0.47575134",
"0.47568184",
"0.4747946",
"0.4747044",
"0.4742409",
"0.47336203",
"0.4731676",
"0.47285718",
"0.47227287",
"0.4707498",
"0.4702995",
"0.47027764",
"0.46720824",
"0.46705335",
"0.46693793",
"0.4667045",
"0.4657538",
"0.46546626",
"0.46544778",
"0.46478653",
"0.46455356",
"0.46454594",
"0.46424094",
"0.46400028",
"0.4636319",
"0.46142814",
"0.46111348",
"0.4605716",
"0.46050078",
"0.45951292"
] | 0.6855298 | 0 |
Registers a block and itemblock pair. This exists for the sake of compactness. | public static void register(Block block, ItemBlock itemBlock) {
GameRegistry.register(block);
GameRegistry.register(itemBlock);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Item registerBlockItem(Block block, Item.Settings settings){\n Identifier id = Registry.BLOCK.getId(block);\n return CottonItemHelper.registerItem(id.getNamespace(), id.getPath(), new BlockItem(block, settings));\n }",
"@SubscribeEvent\n public static void registerItem(final RegistryEvent.Register<Item> event){\n Item.Properties properties = new Item.Properties().maxStackSize(1).group(ItemGroup.MISC);\n walletBlockItem = new BlockItem(walletBlock, properties);\n walletBlockItem.setRegistryName(walletBlock.getRegistryName());\n event.getRegistry().register(walletBlockItem);\n }",
"public static <BLOCK extends Block> BLOCK register(@Nonnull final BLOCK block, @Nullable final ItemBlock itemBlock) {\n\t\tfinal ResourceLocation resourceLocation = block.getRegistryName();\n\t\tif (resourceLocation == null) {\n\t\t\tWarpDrive.logger.error(String.format(\"Missing registry name for block %s, ignoring registration...\",\n\t\t\t block));\n\t\t\treturn block;\n\t\t}\n\t\t\n\t\tassert !blocks.contains(block);\n\t\tblocks.add(block);\n\t\t\n\t\tif (itemBlock != null) {\n\t\t\titemBlock.setRegistryName(resourceLocation);\n\t\t\tregister(itemBlock);\n\t\t}\n\t\t\n\t\treturn block;\n\t}",
"private static void registerBlocks() {\n for(Block block : modBlocks) {\n ForgeRegistries.BLOCKS.register(block);\n\n ItemBlock itemBlock = new ItemBlock(block);\n itemBlock.setRegistryName(block.getRegistryName());\n ForgeRegistries.ITEMS.register(itemBlock);\n }\n }",
"private static void registerBlock(Block b)\n\t{\n\t}",
"public static void register(GenericBlock block)\n\t{\n\t\tBLOCKS.add(block);\n\t}",
"public static <T extends Block> T register(T block, String name, ItemGroup group, boolean hasItem) {\n ResourceLocation loc = new ResourceLocation(Missy.MODID, name);\n // Set the block to it.\n block.setRegistryName(loc);\n\n if(hasItem) {\n if(block instanceof IMakeItem) {\n ITEMS.add(((IMakeItem) block).getItem().setRegistryName(loc));\n }\n else ITEMS.add(new BlockItem(block, MItemProperties.BLOCK.group(group)).setRegistryName(loc));\n }\n\n BLOCKS.add(block);\n\n return block;\n }",
"public static <BLOCK extends Block> BLOCK register(@Nonnull final BLOCK block) {\n\t\tassert block instanceof IBlockBase;\n\t\treturn register(block, ((IBlockBase) block).createItemBlock());\n\t}",
"public static Block registerBlock(String MODID, String name, Block block, ItemGroup itemGroup){\n return registerBlock(MODID, name, block, (new Item.Settings()).itemGroup(itemGroup));\n }",
"public static Block registerBlock(String MODID, String name, Block block, Item.Settings settings){\n block = registerBlockWithoutItem(MODID, name, block);\n registerBlockItem(block, settings);\n return block;\n }",
"public void addBlock(int x, int y) {\r\n\t\tthis.blockMap.add(new Block(x, y));\r\n\t}",
"public static void registerBlocks() {\n\t\tRegistry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"egg_block\"), EGG_BLOCK);\n\t\t\n\t\t// Yolk\n\t\tSTILL_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_flow\"), new YolkFluid.Still());\n\t\tFLOWING_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_still\"), new YolkFluid.Flowing());\n\t\tYOLK = Registry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"yolk\"), new FluidBlock(STILL_YOLK, FabricBlockSettings.copy(Blocks.WATER)){});\n\t}",
"@SubscribeEvent\n public static void registerBlock(final RegistryEvent.Register<Block> event){\n walletBlock = new WalletBlock();\n event.getRegistry().register(walletBlock);\n }",
"public void addBlock(Block block){\n\t\tblocks.addElement(block);\n\t}",
"public void addBlock(Block block) {\n\t\tblock.setId(this.generateID());\n\t\tthis.blocks.put(block.getId(), block);\n\t}",
"public static void register() {\n Registry.register(Registry.BLOCK, new Identifier(\"cultivation\", \"sieve_block\"), SIEVE_BLOCK);\n Registry.register(Registry.ITEM, new Identifier(\"cultivation\", \"sieve_block\"), new BlockItem(SIEVE_BLOCK, new Item.Settings().group(Cultivation.GROUP)));\n Registry.register(Registry.BLOCK, new Identifier(\"cultivation\", \"pod_shell\"), POD_SHELL);\n }",
"public static void registerBlocks() {\n\t\tModLoader.registerBlock(blockWirelessR,\n\t\t\t\tBlockItemRedstoneWirelessR.class);\n\t\tModLoader.addName(blockWirelessR, \"Wireless Receiver\");\n\t\tModLoader.addName(blockWirelessR, \"de_DE\", \"Drahtloser Empfänger\");\n\t\tModLoader.registerTileEntity(TileEntityRedstoneWirelessR.class,\n\t\t\t\t\"Wireless Receiver\", new TileEntityRedstoneWirelessRenderer());\n\n\t\tModLoader.registerBlock(blockWirelessT,\n\t\t\t\tBlockItemRedstoneWirelessT.class);\n\t\tModLoader.addName(blockWirelessT, \"Wireless Transmitter\");\n\t\tModLoader.addName(blockWirelessT, \"de_DE\", \"Drahtloser Sender\");\n\t\tModLoader.registerTileEntity(TileEntityRedstoneWirelessT.class,\n\t\t\t\t\"Wireless Transmitter\",\n\t\t\t\tnew TileEntityRedstoneWirelessRenderer());\n\t\tregisterBlockForCreativeGui(blockWirelessR);\n\t\tregisterBlockForCreativeGui(blockWirelessT);\n\t}",
"private static void put(Block block, TempBlock tempBlock) {\r\n\t\tif (!instances_.containsKey(block)) {\r\n\t\t\tinstances_.put(block, new LinkedList<>());\r\n\t\t}\r\n\t\tinstances_.get(block).add(tempBlock);\r\n\t}",
"public void addBlock(Block block) {\n this.blocks.add(block);\n }",
"synchronized void putBlock(ICBlock block) {\n mQueue.add(block);\n }",
"public static void BlockRegister()\n\t{\n\t\tString[] umberstoneBlock = {\"umberstone\"};\n\t\tString[] umbercobbleBlock = {\"cobbleUmber\"};\n\t\tStoneRegister umberstone = getStoneRegister(ModBlocks.umberstone, ModBlocks.umberstone, \"umberstone\", umberstoneBlock, umbercobbleBlock, \"erebus\");\n\t\tumberstone.mossyCobble = false;\n\t\tumberstone.genReplaceable = false;\n\t\tumberstone.register();\n\t}",
"public void putBlock(JsonObject block){\n blocks.put(Hash.getHashString(block.toString()), block);\n }",
"private static Block registerBlockWithoutItem(String MODID, String name, Block b){\n return Registry.register(Registry.BLOCK, MODID+\":\"+name, b);\n }",
"public void addBlock(Block newBlock) {\n\t\tBLOCK_LIST.add(newBlock);\n\t\tSPRITE_LIST.add(newBlock);\n\t}",
"public static void registerBlockSmelting(){\n\t\t\n\t\tGameRegistry.addSmelting(blockInfo.myWood_ID, new ItemStack(items.compressedAir, 2), 0.1f);\n\t\t\n\t}",
"public static ItemFrame addItemFrame(Block block, BlockFace face) {\n\t\tfinal Material mat = Material.GLASS;\n\t\tBlock northBlock = block.getWorld().getBlockAt(block.getX(), block.getY(), block.getZ() - 1);\n\t\tBlock southBlock = block.getWorld().getBlockAt(block.getX(), block.getY(), block.getZ() + 1);\n\t\tBlock eastBlock = block.getWorld().getBlockAt(block.getX() - 1, block.getY(), block.getZ());\n\t\tBlock westBlock = block.getWorld().getBlockAt(block.getX() + 1, block.getY(), block.getZ());\n\n\t\tif (northBlock.getType() == Material.AIR) {\n\t\t\tnorthBlock.setType(mat);\n\t\t}\n\t\tif (southBlock.getType() == Material.AIR) {\n\t\t\tsouthBlock.setType(mat);\n\t\t}\n\t\tif (eastBlock.getType() == Material.AIR) {\n\t\t\teastBlock.setType(mat);\n\t\t}\n\t\tif (westBlock.getType() == Material.AIR) {\n\t\t\twestBlock.setType(mat);\n\t\t}\n\n\t\tif (face == BlockFace.NORTH) {\n\t\t\tnorthBlock.setType(Material.AIR);\n\t\t} else if (face == BlockFace.SOUTH) {\n\t\t\tsouthBlock.setType(Material.AIR);\n\t\t} else if (face == BlockFace.EAST) {\n\t\t\teastBlock.setType(Material.AIR);\n\t\t} else if (face == BlockFace.WEST) {\n\t\t\twestBlock.setType(Material.AIR);\n\t\t}\n\n\t\tItemFrame itemFrame = (ItemFrame) block.getWorld().spawnEntity(block.getLocation(), EntityType.ITEM_FRAME);\n\n\t\tif (northBlock.getType() == mat) {\n\t\t\tnorthBlock.setType(Material.AIR);\n\t\t}\n\t\tif (southBlock.getType() == mat) {\n\t\t\tsouthBlock.setType(Material.AIR);\n\t\t}\n\t\tif (eastBlock.getType() == mat) {\n\t\t\teastBlock.setType(Material.AIR);\n\t\t}\n\t\tif (westBlock.getType() == mat) {\n\t\t\twestBlock.setType(Material.AIR);\n\t\t}\n\n\t\treturn itemFrame;\n\t}",
"public void addBlockToPA(IGUIBlock block, int index) {\n blockLink.addBlockPair(block, blockHandler.getFromPalette(index));\n addExistingBlockAsProgram(block);\n }",
"@Override\n\tpublic void registerRecipes() {\n\n\t\tItemStack block, ingot;\n\n\t\tfor (MetalType metal : MetalType.VALUES) {\n\n\t\t\tblock = this.createItemStack(metal, 1);\n\t\t\tingot = BrItems.ingotMetals.createItemStack(metal, 1);\n\n\t\t\tGameRegistry.addShapelessRecipe(block, ingot, ingot, ingot, ingot, ingot, ingot, ingot, ingot, ingot);\n\t\t\tingot.stackSize = 9;\n\t\t\tGameRegistry.addShapelessRecipe(ingot, block);\n\t\t}\n\n\t\t// Ludicrite block. Because.\n\n\t\tfinal ItemStack ludicriteBlock = this.createItemStack(MetalType.Ludicrite, 1);\n\n\t\tGameRegistry.addRecipe(new ShapedOreRecipe(ludicriteBlock, \"BPB\", \"ENE\", \"BPB\",\n\t\t\t\t'N', Items.NETHER_STAR, 'P', Items.ENDER_PEARL, 'E', Blocks.EMERALD_BLOCK,\n\t\t\t\t'B', BigReactors.CONFIG.recipeBlutoniumIngotName));\n\n\t\tif (OreDictionaryHelper.doesOreNameExist(\"blockEnderium\")) {\n\n\t\t\t// Ok, how about some ludicrous shit here. Enderium and blaze rods. Have fun, bucko.\n\t\t\tGameRegistry.addRecipe(new ShapedOreRecipe(ludicriteBlock, \"BRB\", \"E E\", \"BRB\",\n\t\t\t\t\t'B', BigReactors.CONFIG.recipeBlutoniumIngotName, 'R', Items.BLAZE_ROD, 'E', \"blockEnderium\"));\n\t\t}\n\t}",
"public static void registerBlockEntities()\n\t{\n\t}",
"public ItemBlock createItemBlock() {\n\t\treturn new GenericItemBlock(this);\n\t}",
"void addBlock(final Block block, final int i) {\n days.get(i).addBlock(block);\n }",
"protected abstract int addBlock(Collection<Record> candidates,\n Map.Entry block);",
"public void blockAdded(Response block) {\n try {\n long id = block.getId(\"block\");\n blockList.add(0, block);\n blockMap.put(block.getId(\"block\"), block);\n fireTableRowsInserted(0, 0);\n } catch (IdentifierException exc) {\n // Ignore the block\n }\n }",
"public void addToBlock(Instruction instn){\n\t\tinstns.add(instn);\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n @SideOnly(Side.CLIENT)\n public void registerItemModels() {\n final Item item = this;\n final ResourceLocation loc = ForgeRegistries.BLOCKS.getKey(block);\n\n for(T o : (Collection<T>) mappingProperty.getAllowedValues()) {\n int meta = block.getMetaFromState(block.getDefaultState().withProperty(mappingProperty, o));\n String name = mappingProperty.getName(o);\n\n ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(loc, \"half=bottom,\" + mappingProperty.getName() + \"=\" + name));\n }\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}",
"@SubscribeEvent\n public static void onRegisterBlocks(RegistryEvent.Register<Block> event) {\n CoffeeMachineBlock coffeMachine = new CoffeeMachineBlock(\n Block.Properties.create(Material.ANVIL)\n .hardnessAndResistance(-1.0F, 360000F));\n event.getRegistry().registerAll(setup(coffeMachine, \"coffee_machine\"));\n }",
"public static void registerBlock(boolean fireproof, ItemGroup group, String name, Block block) {\n Item.Settings normalSettings = new Item.Settings().group(group);\n Item.Settings fireproofSettings = new Item.Settings().group(group).fireproof();\n\n Registry.register(Registry.BLOCK, newID(name), block);\n Registry.register(Registry.ITEM, newID(name), new BlockItem(block, (fireproof ? fireproofSettings : normalSettings)));\n }",
"@SubscribeEvent\n public static void onBlocksRegistry(final RegistryEvent.Register<Block> blockRegistryEvent) {\n LOGGER.info(\"HELLO from Register Block\");\n }",
"@Override\n\tpublic void addBlock(Block block) {\n\t\tem.persist(block);\n\t}",
"public void addPendingBlock(Block block) {\n\n\t\tList<Block> sameIndexBlocks = pendingBlocks.get(block.getIndex());\n\t\tif(sameIndexBlocks == null) {\n\t\t\tsameIndexBlocks = new ArrayList<Block>();\n\t\t\tpendingBlocks.put(block.getIndex(), sameIndexBlocks);\n\t\t}\n\t\tsameIndexBlocks.add(block);\n\t}",
"public void addBlock(int row, int col, Block block, GameplayState gps) {\n if (row < 4) {\n gps.setGameIsLost(true);\n }\n\n cells[row][col] = block;\n }",
"public void addRegenBlock(Material material, int percent) {\n blockValues.put(material, percent);\n }",
"public void addBlock(Block block) {\r\n if (null == blocks) {\r\n blocks = new ArrayList<Block>();\r\n }\r\n blocks.add(block);\r\n maxEntries += block.getHowMany();\r\n }",
"public void addBlock(int x, int y, int health) {\r\n\t\tthis.blockMap.add(new Block(x, y, health));\r\n\t}",
"Block saveBlock(Block block) throws BlockExistsException;",
"public void insert(int index, Block block) {\r\n\t\tfor(Entry s : block) {\r\n\t\t\tinsert(index++, s.code,s.attributes());\r\n\t\t}\r\n\t}",
"public void store(Item item) {\n this.items.add(item);\n }",
"private static void craftSlab(Block block)\r\n\t{\r\n\t\tBlockExtraSlab input = ((BlockExtraSlab)block);\r\n\t\tBlock parent = input.getParent();\r\n\t\tint parentMeta = input.getParentMeta();\r\n\t\t\r\n\t\tGameRegistry.addRecipe(new ItemStack(block, 6, 0), new Object[] { \"###\", '#', new ItemStack(parent, 1, parentMeta) });\r\n\t\tGameRegistry.addRecipe(new ItemStack(parent, 1, parentMeta), new Object[] { \"#\", \"#\", '#', new ItemStack(block) });\r\n\t}",
"private void setBlock(Block block) {\r\n this.block = block;\r\n }",
"public void addExistingBlockAsProgram(IGUIBlock block) {\n Block toAdd = blockLink.getBlockFromGUIBlock(block);\n blockHandler.addToPA(toAdd);\n }",
"public void register(WorldGenKawaiiBaseWorldGen.WorldGen gen)\r\n\t{\t\r\n\t\tif (!this.Enabled) return; \r\n\t\tGameRegistry.registerBlock(this, this.getUnlocalizedName());\r\n\t\t\r\n\t\tString saplingName = name + \".sapling\";\r\n\t\tSapling = new ItemKawaiiSeed(saplingName, SaplingToolTip, this);\r\n\t\tSapling.OreDict = SaplingOreDict;\r\n\t\tSapling.MysterySeedWeight = SeedsMysterySeedWeight;\r\n\t\tSapling.register();\r\n\r\n\t\tString fruitName = name + \".fruit\";\r\n\t\tif (FruitEdible)\r\n\t\t{\r\n\t\t\tItemKawaiiFood fruit = new ItemKawaiiFood(fruitName, FruitToolTip, FruitHunger, FruitSaturation, FruitPotionEffets);\r\n\t\t\tFruit = fruit;\r\n\t\t\tfruit.OreDict = FruitOreDict;\r\n\t\t\t\r\n\t\t\tfruit.register();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tItemKawaiiIngredient fruit = new ItemKawaiiIngredient(fruitName, FruitToolTip);\r\n\t\t\tFruit = fruit;\r\n\t\t\tfruit.OreDict = FruitOreDict;\r\n\t\t\t\r\n\t\t\tfruit.register();\r\n\t\t}\r\n\t\t\r\n\t\tif (gen.weight > 0)\r\n\t\t{\r\n\t\t\tgen.generator = new WorldGenKawaiiTree(this);\r\n\t\t\tModWorldGen.WorldGen.generators.add(gen);\r\n\t\t}\r\n\r\n\t\tModBlocks.AllTrees.add(this);\t\t\r\n\t}",
"public EntangledChaliceItem(Block block) {\n super(block);\n }",
"public void fillBlock(Block block) {\n\n\t\tfor (int j = block.UpperLeft().x; j <= block.LowerRight().x; j++) { \n\t\t\tfor (int k = block.UpperLeft().y; k <= block.LowerRight().y; k++) { \n\t\t\t\tblocksPosition.put(new Point(j,k), block); \n\t\t\t\t//Blocks.add(block); \n\t\t\t} \n\t\t} \n\t}",
"void addInlineBlockWriter(InlineBlockWriter bloomWriter);",
"private void addBlock(Block one)\n\t{\n\t\tgetChildren().add(one);\n\t\tblocks1.add(one);\n\t\tblocks2.add(one);\n\t}",
"public void Add(String item) {\n byte[] bites = Utils.hexToBytes(item);\n mpBuffer += Utils.bytesToHex(bites);\n mLenght += bites.length;\n mBackOffset = mLenght;\n }",
"@SubscribeEvent\n public static void registerTileEntity(final RegistryEvent.Register<TileEntityType<?>> event){\n walletBlockTileEntityType = TileEntityType.Builder.create(WalletBlockTileEntity::new, walletBlock).build(null);\n walletBlockTileEntityType.setRegistryName(\"bitcoinmod:wallet_block_tile_entity\");\n event.getRegistry().register(walletBlockTileEntityType);\n }",
"public static void render(Block block) {\n\t\tItem item = Item.getItemFromBlock(block);\n\t\tModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), \"inventory\"));\n\t}",
"@Override\n\tpublic void getSubBlocks(Item i, CreativeTabs tab, List l)\n\t{\n\t\tl.add(new ItemStack(i, 1, 0));\n\t}",
"void updateBlock(Block block) ;",
"public void placeBlockInTopResSpace(Block block, TT tt){\n ResidualSpace res = rs_stack.pop();\n\n // Place the block, this also updates the locations of the parcels inside it\n block.setLocation(res.getLocation().clone());\n\n block_placements.add(block.getId()); // Add the id of the placed block\n\n for(Parcel p:block.getPacking()){\n packing.addParcel(p);\n }\n\n this.total_value = packing.getTotalValue();\n\n // Update the hashkey\n// hashKey = tt.updateHash(hashKey, block_placements.size(), block.getId());\n\n // Remove parcels from the availability\n removeFromBres(block);\n\n // Calculate the new residual spaces\n generateDaughterResSpaces(block, res);\n }",
"private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }",
"public void addAttachedBlock(TempBlock tempBlock) {\r\n\t\tthis.attachedTempBlocks.add(tempBlock);\r\n\t\ttempBlock.attachedTempBlocks.add(this);\r\n\t}",
"public void putBlock(Boolean trackStats, MemoryBlock block){\r\n\t\tif(DEBUG_LEVEL >= 1)System.out.println(\"Memory.putBlock(\" + block.getBlockAddress() + \")\");\r\n\t\t\r\n\t\t// Validate\r\n\t\tif(block == null)throw new NullPointerException(\"block Can Not Be Null\");\r\n\t\tif((block.getBlockAddress() + block.getSize() - 1) > totalSize)throw new IllegalArgumentException(\"block Can Not Be Greater Than total Size\");\r\n\t\t\r\n\t\t// Write MemoryElements to Memory\r\n\t\tMemoryElementIterator meIterator = block.getIterator();\r\n\t\twhile(meIterator.hasNext()){\r\n\t\t\tMemoryElement element = meIterator.next();\r\n\t\t\t\r\n\t\t\tif(DEBUG_LEVEL >= 4)System.out.println(\"Memory.putBlock()...Writing memory[\" + element.getElementAddress() + \"]\");\r\n\t\t\t\r\n\t\t\tmemory[element.getElementAddress()].setData(element.getData());\r\n\t\t}\r\n\t\t\r\n\t\tif(trackStats)cacheStats.ACCESS++;\r\n\t\tif(trackStats)cacheStats.BLOCKWRITE_HIT++;\r\n\t\t\r\n\t\tif(DEBUG_LEVEL >= 2)System.out.println(\"Memory.putBlock()...Finished\");\r\n\t}",
"public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}",
"public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}",
"public void addBlock(Block b) {\n String previousHash = \"\";\n if (blockChain.size() == 0) {\n previousHash = \"\";\n } else {\n previousHash = getLatestBlock().proofOfWork();\n }\n b.previousHash = previousHash;\n chainHash = b.proofOfWork();\n blockChain.add(b);\n }",
"public void blocksAdded(List<Response> blocks) {\n for (Response block : blocks) {\n try {\n long id = block.getId(\"block\");\n blockList.add(block);\n blockMap.put(id, block);\n } catch (IdentifierException exc) {\n // Ignore the block\n }\n }\n fireTableDataChanged();\n }",
"public void setBlockBoundsForItemRender() {\n\t\tthis.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\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}",
"@SubscribeEvent\n public static void registerContainer(final RegistryEvent.Register<ContainerType<?>> event){\n walletBlockContainerType = IForgeContainerType.create(WalletBlockContainer::createForClientSide);\n walletBlockContainerType.setRegistryName(\"wallet_block_container\");\n event.getRegistry().register(walletBlockContainerType);\n }",
"private void addStackBlocks() {\n\n for (int x = numBlocks; x > 0; x--) {\n\n double blockHeight = totalBLockHeight / numBlocks;\n double blockWidthChange = (maxBlockWidth - minBlockWidth) / numBlocks;\n double blockWidth = minBlockWidth + ((x - 1) * blockWidthChange);\n\n TowerBlock newBlock = new TowerBlock(blockWidth, blockHeight, x);\n towerOne.push(newBlock);\n\n }\n addBlocks = false;\n\n }",
"public void addItem(Item item, int x, int y) {\n\t\tInventory items = getItemsAt(x, y);\n\t\titems.add(item);\n\t}",
"public void registerRecipe() {\n\t ItemStack itemStackDroidParts = new ItemStack(SuperDopeJediMod.entityManager.droidParts);\n\t ItemStack itemStackQuadaniumSteelIngot = new ItemStack(SuperDopeJediMod.quadaniumSteelIngot); \n\t ItemStack itemStackThis = new ItemStack(this);\n\t \n\t GameRegistry.addRecipe(itemStackThis, \"xxx\", \"xyx\", \"xxx\", 'x', itemStackDroidParts,\n\t \t\t\t'y', itemStackQuadaniumSteelIngot);\t\n\t}",
"public void putBlock(Block block){\n\t \n\t BlockPosX = 5;\n\t BlockPosY = 0;\n\t int posX = 5;\n\t int posY = 0;\n\t BlockInControl = block;\n\t \n\t int x = 0;\n\t for(int i=0;i<MAX_COL;i++){\n\t\tif(board[posY+1][i] == 1)\n\t\t x = 1;\n\t }\n\t if(x==1)\n\t\tthis.clearBoard();\n\t \n\t \n\t for(int r=0;r<4;r++){\n\t\tfor(int c=0;c<4;c++){\n\t\t if(block.getRowCol(r,c) == 1)\n\t\t\t{\n\t\t\t board[posY][posX]=1;\n\t\t\t \n\t\t\t switch(whichType){\n\t\t\t case 1: color[posY][posX] = 1;\n\t\t\t\tbreak;\n\t\t\t case 2: color[posY][posX] = 2;\n\t\t\t\tbreak;\n\t\t\t case 3: color[posY][posX] = 3;\n\t\t\t\tbreak;\n\t\t\t case 4: color[posY][posX] = 4;\n\t\t\t\tbreak;\n\t\t\t case 5: color[posY][posX] = 5;\n\t\t\t\tbreak;\n\t\t\t case 6: color[posY][posX] = 6;\n\t\t\t\tbreak;\n\t\t\t case 7: color[posY][posX] = 7;\n\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t \n\t\t posX++;\n\t\t}\n\t posY++;\n\t posX-=4;\n\t }\n\t}",
"@SideOnly(Side.CLIENT)\n public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n }",
"public void buildBlock(BptSlotInfo slot, IBptContext context)\r\n/* 26: */ {\r\n/* 27:33 */ context.world().d(slot.x, slot.y, slot.z, amq.y.cm, slot.meta);\r\n/* 28: */ }",
"private static void addFakeItemDataToInWorldBlocksAndCleanUpFakeData() {\n\n Map<String, Materials> MATERIALS_MAP = null;\n\n try {\n Field f = Materials.class.getDeclaredField(\"MATERIALS_MAP\");\n f.setAccessible(true);\n MATERIALS_MAP = (Map<String, Materials>) f.get(null);\n } catch (NoSuchFieldException | IllegalAccessException | ClassCastException e) {\n e.printStackTrace();\n }\n\n if (MATERIALS_MAP == null)\n throw new NullPointerException(\"MATERIALS_MAP null!\");\n\n Materials oreMat = new Materials(-1, null, 0, 0, 0, false, \"bwores\", \"bwores\", null, true, null);\n Materials smallOreMat = new Materials(-1, null, 0, 0, 0, false, \"bwsmallores\", \"bwsmallores\", null, true, null);\n Materials blockMat = new Materials(-1, null, 0, 0, 0, false, \"bwblocks\", \"bwblocks\", null, true, null);\n\n for (int i = 0; i < 16; i++) {\n GT_OreDictUnificator.addAssociation(ore, oreMat, new ItemStack(BWOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(oreSmall, smallOreMat, new ItemStack(BWSmallOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(block, blockMat, new ItemStack(BWBlocks, 1, i), true);\n }\n\n MATERIALS_MAP.remove(\"bwores\");\n MATERIALS_MAP.remove(\"bwsmallores\");\n MATERIALS_MAP.remove(\"bwblocks\");\n }",
"Block createBlock();",
"public BlockAdapter(Context context, ArrayList<BlockItem> blockItems) {\n this.context = context;\n this.blockItems = blockItems;\n }",
"public interface IBlockAdded {\n\t\n\tpublic void setItemBlock(@Nullable IItemAddedBlock itemBlock);\n\t\n\tpublic void setDisplayName(String displayName);\n\t\n\tpublic void setBlockMaterial(Material blockMaterial);\n\t\n\tpublic void setPlaceSound(SoundEvent sound);\n\t\n\tpublic void setBreakSound(SoundEvent sound);\n\t\n\tpublic void setHitSound(SoundEvent sound);\n\t\n\tpublic void setStepSound(SoundEvent sound);\n\t\n\tpublic void setFallSound(SoundEvent sound);\n\t\n\tpublic void setBlockMapColor(@Nullable MapColor mapColor);\n\t\n\tpublic void setHarvestLevel(int harvestLevel);\n\t\n\tpublic void setHarvestTool(String harvestTool);\n\t\n\tpublic void setEffectiveTools(List<String> effectiveTools);\n\t\n\tpublic void setBookshelfStrength(int bookshelfStrength);\n\t\n\tpublic void setBeaconColorMultiplier(@Nullable float[] beaconColorMultiplier);\n\t\n\tpublic void setSlipperiness(float slipperiness);\n\t\n\tpublic void setIsSlime(boolean isSlime);\n\t\n\tpublic void setIsBeaconBase(boolean isBeaconBase);\n\t\n\tpublic void setCanPistonsPush(boolean canPistonsPush);\n\t\n\tpublic void setSemiTransparent(boolean semiTransparent);\n\t\n\tpublic void setXpDroppedMin(int xpMin);\n\t\n\tpublic void setXpDroppedMax(int xpMax);\n\t\n\tpublic void setDroppedFromExplosions(Boolean droppedFromExplosions);\n\t\n\tpublic default void setCanEndermenCarry(boolean canEndermenCarry) {\n\t\tif (EntityEnderman.getCarriable(this.getAsBlock()) != canEndermenCarry) {\n\t\t\tEntityEnderman.setCarriable(this.getAsBlock(), canEndermenCarry);\n\t\t}\n\t}\n\t\n\t@Nullable\n\tpublic IItemAddedBlock getItemBlock();\n\t\n\tpublic String getDisplayName();\n\t\n\tpublic Material getBlockMaterial();\n\t\n\tpublic SoundEvent getPlaceSound();\n\t\n\tpublic SoundEvent getBreakSound();\n\t\n\tpublic SoundEvent getHitSound();\n\t\n\tpublic SoundEvent getStepSound();\n\t\n\tpublic SoundEvent getFallSound();\n\t\n\t@Nullable\n\tpublic MapColor getBlockMapColor();\n\t\n\tpublic int getHarvestLevel();\n\t\n\tpublic String getHarvestTool();\n\t\n\tpublic List<String> getEffectiveTools();\n\t\n\tpublic int getBookshelfStrength();\n\t\n\t@Nullable\n\tpublic float[] getBeaconColorMultiplier();\n\t\n\tpublic float getSlipperiness();\n\t\n\tpublic boolean isSlime();\n\t\n\tpublic boolean isBeaconBase();\n\t\n\tpublic boolean canPistonsPush();\n\t\n\tpublic float getHardness();\n\t\n\tpublic float getResistance();\n\t\n\tpublic int getOpacity();\n\t\n\tpublic boolean isSemiTransparent();\n\t\n\tpublic int getLightLevel();\n\t\n\tpublic int getXpDroppedMin();\n\t\n\tpublic int getXpDroppedMax();\n\t\n\tpublic Boolean getDroppedFromExplosions();\n\t\n\tpublic default boolean canEndermenCarry() {\n\t\treturn EntityEnderman.getCarriable(this.getAsBlock());\n\t}\n\t\n\tpublic default void registerModels() {\n\t\tAdditionsMod.proxy.registerBlockRender(this.getAsBlock());\n\t}\n\t\n\tpublic default Block getAsBlock() {\n\t\tif (!(this instanceof Block)) {\n\t\t\tthrow new IllegalArgumentException(\"An IBlockAdded must be an instance of Block.\");\n\t\t}\n\t\treturn (Block) this;\n\t}\n\t\n public default String getId() {\n \tResourceLocation registryName = this.getAsBlock().getRegistryName();\n \t\n \tif (registryName != null) {\n \t\treturn registryName.getResourcePath();\n \t}\n \t\n String unlocalizedName = this.getAsBlock().getUnlocalizedName();\n \n if (unlocalizedName.startsWith(\"tile.\")) {\n \treturn unlocalizedName.substring(5);\n }\n \n return unlocalizedName;\n }\n\n public abstract static class Serializer<T extends IBlockAdded> {\n\t\t\n\t\tprivate final ResourceLocation blockAddedType;\n private final Class<T> blockAddedClass;\n\n protected Serializer(ResourceLocation location, Class<T> clazz)\n {\n this.blockAddedType = location;\n this.blockAddedClass = clazz;\n }\n\n\t\tpublic ResourceLocation getBlockAddedType() {\n\t\t\treturn this.blockAddedType;\n\t\t}\n\t\t\n\t\tpublic Class<T> getBlockAddedClass() {\n\t\t\treturn this.blockAddedClass;\n\t\t}\n\n\t\tpublic JsonObject serialize(T blockAddedObj, JsonSerializationContext context) {\n\t\t\tJsonObject json = new JsonObject();\n\t\t\tBlock blockAdded = blockAddedObj.getAsBlock();\n\t\t\t\n\t\t\tif (blockAddedObj.getItemBlock() != null) {\n\t\t\t\tjson.add(\"item_block\", AdditionTypeItem.GSON.toJsonTree(blockAddedObj.getItemBlock()));\n\t\t\t}\n\t\t\t\n\t\t\tjson.addProperty(\"name\", blockAddedObj.getDisplayName());\n\t\t\tjson.add(\"material\", OtherSerializers.BlockMaterialSerializer.serialize(blockAddedObj.getBlockMaterial()));\n\t\t\t\n\t\t\tif (blockAddedObj.getPlaceSound() != null) {\n\t\t\t\tjson.add(\"place_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getPlaceSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBreakSound() != null) {\n\t\t\t\tjson.add(\"break_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getBreakSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHitSound() != null) {\n\t\t\t\tjson.add(\"hit_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getHitSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getStepSound() != null) {\n\t\t\t\tjson.add(\"step_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getStepSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getFallSound() != null) {\n\t\t\t\tjson.add(\"fall_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getFallSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBlockMapColor() != null) {\n\t\t\t\tjson.add(\"map_color\", OtherSerializers.BlockMapColorSerializer.serialize(blockAddedObj.getBlockMapColor()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHardness() > 0) {\n\t\t\t\tjson.addProperty(\"hardness\", blockAddedObj.getHardness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getResistance() > 0) {\n\t\t\t\tjson.addProperty(\"resistance\", blockAddedObj.getResistance() / 3.0f);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHarvestLevel() != 0) {\n\t\t\t\tjson.addProperty(\"harvest_level\", blockAddedObj.getHarvestLevel());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getHarvestTool().isEmpty()) {\n\t\t\t\tjson.addProperty(\"harvest_tool\", blockAddedObj.getHarvestTool());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getEffectiveTools().isEmpty()) {\n\t\t\t\tjson.add(\"effective_tools\", OtherSerializers.StringListSerializer.serialize(blockAddedObj.getEffectiveTools()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightOpacity(blockAdded.getDefaultState()) != 15) {\n\t\t\t\tjson.addProperty(\"light_opacity\", blockAdded.getLightOpacity(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightValue(blockAdded.getDefaultState()) > 0) {\n\t\t\t\tjson.addProperty(\"light_level\", blockAdded.getLightValue(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getFlammability(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"flammability\", Blocks.FIRE.getFlammability(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getEncouragement(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"fire_spread_speed\", Blocks.FIRE.getEncouragement(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBookshelfStrength() > 0) {\n\t\t\t\tjson.addProperty(\"bookshelf_strength\", blockAddedObj.getBookshelfStrength());\n\t\t\t}\n\t\t\t\n\t\t\tfloat[] beaconColorsMultiplier = blockAddedObj.getBeaconColorMultiplier();\n\t\t\tif (beaconColorsMultiplier != null && beaconColorsMultiplier.length == 3) {\n\t\t\t\tJsonObject beaconColorObj = new JsonObject();\n\t\t\t\tbeaconColorObj.addProperty(\"red\", beaconColorsMultiplier[0]);\n\t\t\t\tbeaconColorObj.addProperty(\"green\", beaconColorsMultiplier[1]);\n\t\t\t\tbeaconColorObj.addProperty(\"blue\", beaconColorsMultiplier[2]);\n\t\t\t\tjson.add(\"beacon_color_multiplier\", beaconColorObj);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getSlipperiness() != 0.6f) {\n\t\t\t\tjson.addProperty(\"slipperiness\", blockAddedObj.getSlipperiness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSlime()) {\n\t\t\t\tjson.addProperty(\"is_slime\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isBeaconBase()) {\n\t\t\t\tjson.addProperty(\"is_beacon_base\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.canPistonsPush()) {\n\t\t\t\tjson.addProperty(\"can_pistons_push\", false);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSemiTransparent()) {\n\t\t\t\tjson.addProperty(\"semi_transparent\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMin() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_min\", blockAddedObj.getXpDroppedMin());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMax() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_max\", blockAddedObj.getXpDroppedMax());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getDroppedFromExplosions() != null) {\n\t\t\t\tjson.addProperty(\"dropped_from_explosions\", blockAddedObj.getDroppedFromExplosions());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.canEndermenCarry()) {\n\t\t\t\tjson.addProperty(\"can_endermen_carry\", true);\n\t\t\t}\n\t\t\t\n\t\t\treturn json;\n }\n\n\t\tpublic abstract T deserialize(JsonObject json, JsonDeserializationContext context);\n\t\t\n\t\tpublic <V extends Block & IBlockAdded> V deserializeDefaults(JsonObject json, JsonDeserializationContext context, V blockAdded) {\n\t\t\t\n\t\t\tif (json.has(\"item_block\")) {\n\t\t\t\tIItemAdded itemAdded = AdditionTypeItem.GSON.fromJson(json.get(\"item_block\"), IItemAdded.class);\n\t\t\t\t\n\t\t\t\tif (itemAdded instanceof IItemAddedBlock) {\n\t\t\t\t\tIItemAddedBlock itemAddedBlock = (IItemAddedBlock)itemAdded;\n\t\t\t\t\titemAddedBlock.setBlock(blockAdded);\n\t\t\t\t\tblockAdded.setItemBlock(itemAddedBlock);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n \tblockAdded.setDisplayName(JsonUtils.getString(json, \"name\"));\n \tblockAdded.setBlockMaterial(OtherSerializers.BlockMaterialSerializer.deserialize(json, \"material\"));\n\t\t\t\n\t\t\tif (json.has(\"map_color\")) {\n\t\t\t\tblockAdded.setBlockMapColor(OtherSerializers.BlockMapColorSerializer.deserialize(json, \"map_color\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setHardness(JsonUtils.getFloat(json, \"hardness\", 0));\n\t\t\tblockAdded.setResistance(JsonUtils.getFloat(json, \"resistance\", 0));\n\t\t\tblockAdded.setHarvestLevel(JsonUtils.getInt(json, \"harvest_level\", 0));\n\t\t\tblockAdded.setHarvestTool(JsonUtils.getString(json, \"harvest_tool\", \"\"));\n\t\t\t\n\t\t\tif (json.has(\"effective_tools\")) {\n\t\t\t\tblockAdded.setEffectiveTools(OtherSerializers.StringListSerializer.deserialize(json.get(\"effective_tools\"), \"effective_tools\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setLightOpacity(MathHelper.clamp(JsonUtils.getInt(json, \"light_opacity\", 15), 0, 15));\n\t\t\tblockAdded.setLightLevel(MathHelper.clamp(JsonUtils.getInt(json, \"light_level\", 0), 0, 15) / 15F);\n\t\t\t\n\t\t\tint flammability = JsonUtils.getInt(json, \"flammability\", 0);\n\t\t\tint fireSpreadSpeed = JsonUtils.getInt(json, \"fire_spread_speed\", 0);\n\t\t\tif (flammability > 0 || fireSpreadSpeed > 0) {\n\t\t\t\tBlocks.FIRE.setFireInfo(blockAdded, fireSpreadSpeed, flammability);\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setBookshelfStrength(JsonUtils.getInt(json, \"bookshelf_strength\", 0));\n\t\t\t\n\t\t\tif (json.has(\"beacon_color_multiplier\")) {\n\t\t\t\tJsonObject beaconColorObj = JsonUtils.getJsonObject(json, \"beacon_color_multiplier\");\n\t\t\t\tblockAdded.setBeaconColorMultiplier(new float[]{JsonUtils.getFloat(beaconColorObj, \"red\"), JsonUtils.getFloat(beaconColorObj, \"green\"), JsonUtils.getFloat(beaconColorObj, \"blue\")});\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setSlipperiness(JsonUtils.getFloat(json, \"slipperiness\", 0.6f));\n\t\t\tblockAdded.setIsSlime(JsonUtils.getBoolean(json, \"is_slime\", false));\n\t\t\tblockAdded.setIsBeaconBase(JsonUtils.getBoolean(json, \"is_beacon_base\", false));\n\t\t\tblockAdded.setCanPistonsPush(JsonUtils.getBoolean(json, \"can_pistons_push\", true));\n\t\t\tblockAdded.setSemiTransparent(JsonUtils.getBoolean(json, \"semi_transparent\", false));\n\t\t\tblockAdded.setXpDroppedMin(JsonUtils.getInt(json, \"xp_dropped_min\", 0));\n\t\t\tblockAdded.setXpDroppedMax(JsonUtils.getInt(json, \"xp_dropped_max\", 0));\n\t\t\tblockAdded.setCanEndermenCarry(JsonUtils.getBoolean(json, \"can_endermen_carry\", false));\n\t\t\t\n\t\t\tif (json.has(\"dropped_by_explosions\")) {\n\t\t\t\tblockAdded.setDroppedFromExplosions(JsonUtils.getBoolean(json, \"dropped_by_explosions\"));\n\t\t\t}\n \t\n \treturn blockAdded;\n }\n\t\t\n\t\tpublic void postDeserializeBlockAdded(JsonObject json, IBlockAdded blockAddedObj) {\n\t\t\tif (blockAddedObj.getClass() != this.blockAddedClass) {\n\t\t\t\tthrow new IllegalArgumentException(\"Tried to call post serialize for an object of the wrong type! Expected: \" + this.blockAddedClass + \", Actual: \" + blockAddedObj.getClass());\n\t\t\t}\n\t\t\t\n\t\t\tpostDeserialize(json, (T) blockAddedObj);\n\t\t}\n\t\t\n\t\tpublic void postDeserialize(JsonObject json, T blockAdded) {\n\t\t\tthis.postDeserializeDefaults(json, blockAdded);\n\t\t}\n\t\t\n\t\tpublic void postDeserializeDefaults(JsonObject json, T blockAdded) {\n \t\n \tIItemAdded itemAdded = blockAdded.getItemBlock();\n \tif (itemAdded != null) {\n \t\tItemAddedManager.Serializer.postDeserialize(JsonUtils.getJsonObject(json, \"item_block\"), itemAdded);\n \t}\n \t\n \tif (json.has(\"place_sound\")) {\n \t\tblockAdded.setPlaceSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"place_sound\"));\n \t}\n \t\n \tif (json.has(\"break_sound\")) {\n \t\tblockAdded.setBreakSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"break_sound\"));\n \t}\n \t\n \tif (json.has(\"hit_sound\")) {\n \t\tblockAdded.setHitSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"hit_sound\"));\n \t}\n \t\n \tif (json.has(\"step_sound\")) {\n \t\tblockAdded.setStepSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"step_sound\"));\n \t}\n \t\n \tif (json.has(\"fall_sound\")) {\n \t\tblockAdded.setFallSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"fall_sound\"));\n \t}\n }\n }\n}",
"public static void register(CustomItem item) {\n CUSTOM_ITEMS.put(item.getInternalName(), item);\n\n if (item.getInternalID() == 0) {\n item.setInternalID(NEXT_ID);\n\n NEXT_ID++;\n if (NEXT_ID == INVALID_ID) NEXT_ID++;\n }\n\n EventCache.registerEvents(item);\n }",
"public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n //par3List.add(new ItemStack(par1, 1, 1));\n //par3List.add(new ItemStack(par1, 1, 2));\n //par3List.add(new ItemStack(par1, 1, 3));\n }",
"public void insert(DataItem item){\n\t\tint key = item.getKey();\n\t\tint hashVal = hashFunc(key);\n\t\tint stepSize = hashFunc2(key); //get step size until empty cell or -1;\n\t\t\n\t\twhile(hashArray[hashVal] != null &&\n\t\t\t\thashArray[hashVal].getKey() != -1){\n\t\t\thashVal += stepSize; // go to the next cell\n\t\t\thashVal %= arraySize;\t\t\t\t\t//wrap around if necessary\n\t\t}\n\t\thashArray[hashVal] = item;\n\t}",
"void writeBlock(int blockId, byte[] buffer) throws IOException;",
"public <T extends Item> void registerItem(Supplier<T> itemSupplier, ICapabilityConstructor<?, T, ItemStack> constructor) {\n checkNotBaked();\n capabilityConstructorsItemInstancePending.add((Pair) Pair.of(itemSupplier, constructor));\n\n if (!registeredItemStackEventListener) {\n registeredItemStackEventListener = true;\n MinecraftForge.EVENT_BUS.register(new ItemStackEventListener());\n }\n }",
"public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}",
"private void addValidItem(Item item){\r\n\t\titems.put(item.getItemIdentifier(), item);\r\n\t\ttotal.updateTotal(item);\r\n\t}",
"public void put(T bufferItem);",
"private void registerFleshBlock(){\n\t\tgetVariantBuilder(OrganicTechBlocks.FLESH_BLOCK.get()).forAllStates(state -> {\n\t\t\t//Generate the set of rotations for a flesh block w/o eyes\n\t\t\tConfiguredModel[] rotations = ConfiguredModel.allRotations(models().cubeAll(\"flesh_block\", modLoc(BLOCK_DIR + \"/flesh_block\")), false, 4);\n\t\t\t//then append the rotations for one eye\n\t\t\trotations = ArrayUtils.addAll(rotations, ConfiguredModel.allRotations(models().cubeAll(\"flesh_block_1eye\", modLoc(BLOCK_DIR + \"/flesh_block_1eye\")), false, 1));\n\t\t\t//then append the rotations for two eyes and return\n\t\t\treturn ArrayUtils.addAll(rotations, ConfiguredModel.allRotations(models().cubeAll(\"flesh_block_2eye\", modLoc(BLOCK_DIR + \"/flesh_block_2eye\")), false, 1));\n\t\t});\n\t}",
"public Item(Integer itemSlot) {\n this.itemSlot = itemSlot;\n }",
"protected void doStore(String description, Object item, String supplier) {\n items.put(description, item);\n suppliers.put(supplier, description);\n }",
"public void registerIcons(IconRegister register)\n {\n this.blockIcon = register.registerIcon(\"decoBlockMud\");\n }",
"void putBarcodeItem(String barcode, Item item) {\n BarcodeDataCache d = getBarcodeData();\n if (d != null) {\n d.put(barcode, item);\n }\n cacheData.postValue(d);\n }",
"public BlockExtra(Pixy2 pixy, Block block) {\n\t\tthis(pixy, block.getSignature(), block.getX(), block.getY(), block.getWidth(), block.getHeight(), block.getAngle(), block.getIndex(), block.getAge());\n\t}",
"public void setMappingItem(String lovDefinitionItemName, String blockItemName)\n {\n Iterator<EJCoreLovItemMappingProperties> itemMappings = getAllItemMappingProperties().iterator();\n while (itemMappings.hasNext())\n {\n EJCoreLovItemMappingProperties props = itemMappings.next();\n if ((props.getLovDefinitionItemName().equalsIgnoreCase(lovDefinitionItemName)))\n {\n props.setBlockItemName(blockItemName);\n break;\n }\n }\n }",
"public void addBlock(Block block)\n {\n SolrInputDocument solr_doc = new SolrInputDocument();\n solr_doc.setField(\"type\",\"Block\");\n solr_doc.setField(\"hash\", block.getHash_block());\n solr_doc.setField(\"block_num\", block.getBlock_num());\n solr_doc.setField(\"version\", block.getVersion());\n solr_doc.setField(\"transaction_merkle_root\", block.getTransac_merkle_root());\n solr_doc.setField(\"timestamps\", block.getTimestamp());\n solr_doc.setField(\"datetime\", block.getDatetime());\n solr_doc.setField(\"difficulty\", block.getDifficulty());\n solr_doc.setField(\"cumulative_difficulty\", block.getCumulative_difficulty());\n solr_doc.setField(\"nonce\", block.getNonce());\n solr_doc.setField(\"how_much_transaction\", block.getHow_much_transaction());\n solr_doc.setField(\"value_out\", block.getValue_out());\n solr_doc.setField(\"block_fee\", block.getBlock_fee());\n solr_doc.setField(\"avg_coin_out\", block.getAvg_coin_age());\n solr_doc.setField(\"coin_days_destroyed\", block.getCoin_days_destroyed());\n solr_doc.setField(\"cumulative_coin_days_destroyed\", block.getCumulative_coin_days_destroyed());\n\n try {\n client.add(solr_doc);\n } catch (SolrServerException | IOException e) {\n e.printStackTrace();\n }\n\n commit();\n }",
"public <T extends Item> void registerItem(Class<T> clazz, ICapabilityConstructor<?, T, ItemStack> constructor) {\n checkNotBaked();\n List<ICapabilityConstructor<?, ? extends Item, ? extends ItemStack>> constructors = capabilityConstructorsItem.get(clazz);\n if (constructors == null) {\n constructors = Lists.newArrayList();\n capabilityConstructorsItem.put(clazz, constructors);\n }\n constructors.add(constructor);\n\n if (!registeredItemStackEventListener) {\n registeredItemStackEventListener = true;\n MinecraftForge.EVENT_BUS.register(new ItemStackEventListener());\n }\n }",
"public void getSubBlocks(int var1, CreativeTabs var2, List var3)\n {\n var3.add(new ItemStack(this));\n }"
] | [
"0.7055655",
"0.70347035",
"0.6832996",
"0.68272007",
"0.67614084",
"0.651037",
"0.6468266",
"0.6336359",
"0.62370944",
"0.6107178",
"0.60698485",
"0.6053917",
"0.6013415",
"0.59734225",
"0.5947515",
"0.58751315",
"0.58305943",
"0.57736325",
"0.5758082",
"0.57548875",
"0.5736992",
"0.5726022",
"0.568134",
"0.5663144",
"0.55940545",
"0.5576448",
"0.55762047",
"0.5567479",
"0.55641776",
"0.5557716",
"0.5524992",
"0.54992914",
"0.5473862",
"0.5445221",
"0.5442696",
"0.5439791",
"0.5428453",
"0.5406248",
"0.54042184",
"0.5391068",
"0.53825444",
"0.5341726",
"0.52885115",
"0.52577543",
"0.52489936",
"0.5215896",
"0.51952606",
"0.515113",
"0.51481813",
"0.5146756",
"0.5140003",
"0.5138512",
"0.5127814",
"0.51224947",
"0.5114791",
"0.51070863",
"0.50824106",
"0.5071429",
"0.50690997",
"0.50640327",
"0.5063906",
"0.50424993",
"0.5041263",
"0.50358",
"0.5019739",
"0.5016675",
"0.5014658",
"0.50091434",
"0.4998173",
"0.49976054",
"0.4992409",
"0.49743912",
"0.49743682",
"0.49667743",
"0.49643752",
"0.49566376",
"0.49538144",
"0.49511313",
"0.49460763",
"0.4939083",
"0.49373215",
"0.49349332",
"0.49266252",
"0.48980778",
"0.48871708",
"0.4871018",
"0.4856332",
"0.4854356",
"0.4853015",
"0.48527113",
"0.4850945",
"0.48434746",
"0.48396075",
"0.48389733",
"0.48306048",
"0.48302203",
"0.4823452",
"0.4822083",
"0.48084474",
"0.48039392"
] | 0.7295433 | 0 |
TODO Autogenerated method stub | @Override
public int getIntersert() {
return (8);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public ModelAndView dataPreview(HttpServletRequest request, HttpServletResponse response) throws Exception {
return null;
} | {
"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 |
Extract data included in the Intent | @Override
public void onReceive(Context context, Intent intent) {
String message = intent.getStringExtra("message");
Log.d("receiver", "Got message: " + message);
switch (message){
case "prev":
currPic -= 1;
if (currPic < 0)
currPic = picsList.size()-1;
displayPicture(picsList.get(currPic).getID());
break;
case "next":
currPic += 1;
if (currPic > picsList.size()-1)
currPic = 0;
displayPicture(picsList.get(currPic).getID());
break;
case "zoomIn":
x = pictures.getScaleX();
y = pictures.getScaleY();
if ( x != X_MAX_VALUE && y != Y_MAX_VALUE) {
pictures.setScaleX(x + 1);
pictures.setScaleY(y + 1);
}
break;
case "zoomOut":
x = pictures.getScaleX();
y = pictures.getScaleY();
if ( x != X_MIN_VALUE && y != Y_MIN_VALUE) {
pictures.setScaleX(x - 1);
pictures.setScaleY(y - 1);
}
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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}",
"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 getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\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 }",
"void getBundleData(Intent intent);",
"private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }",
"private void getDataFromIntent(Intent intent) {\n panAadharCardDetail = intent.getParcelableExtra(\"panAadharDetail\");\n card_type = intent.getIntExtra(\"card_type\", 0);\n imageFileUri = intent.getStringExtra(\"imageFile\");\n }",
"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 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 getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\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}",
"private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }",
"private void extractData() {\n String[] info = request.split(\";\");\n actionCode = info[0];\n\n // if the code is 102, 103... then it has data attached\n List listOfCodes = Arrays.asList(\"102\", \"103\", \"104\", \"202\", \"203\");\n\n // extract data attached with the action code\n if (listOfCodes.contains(actionCode)) {\n data = info[1];\n }\n }",
"@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}",
"private void extractDataPackage() {\n ArrayList<Parcelable> arrayListBundle = new ArrayList<Parcelable>();\n arrayListBundle = getIntent().getParcelableArrayListExtra(\"usersList\");\n\n UserEntity userEntity;\n StringBuilder builder = new StringBuilder();\n\n for (Parcelable bundle : arrayListBundle) {\n\n //Tracking Data by UserEntity Object ;\n userEntity = (UserEntity) bundle;\n //Set StringBuilder Object ;\n builder.append(userEntity.getId() + \" : \" + userEntity.getUsername() + \" / \" + userEntity.getEmailAddress() + \" / \" + userEntity.getPhoneNumber() + \" / \" + userEntity.getJobTitle() + \"\\n\\n\");\n }\n extractedData = builder.toString();\n }",
"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 }",
"private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }",
"String getExtra();",
"public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }",
"@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\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 }",
"private void getDataFromIntent(){\n Bundle extras = getIntent().getExtras();\n //para recibir los datos de una manera segura, se hace una verificacion\n //para ver si los extras no son nulos\n if (extras!=null){\n //en caso de tener datos en el extra, se obtendran y guardaran en variables para su uso deseado\n String data = extras.getString(\"data\");\n boolean isTrue = extras.getBoolean(\"boolean\");\n if (isTrue){\n tvData.setText(data);\n Toast.makeText(this, \"Se recibio un booleano desde MainActivity.\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(this, \"No se recibio nada :c\", Toast.LENGTH_LONG).show();\n }\n //en caso de no tener daos dentro dle extra, entrara a esta parte de la condicion\n }else{\n Toast.makeText(this, \"No hay datos extras\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}",
"private void receiveData()\n {\n Intent i = getIntent();\n productSelected = Paper.book().read(Prevalent.currentProductKey);\n vendorID = i.getStringExtra(\"vendorID\");\n if (productSelected != null) {\n\n productName = i.getStringExtra(\"productName\");\n productImage = i.getStringExtra(\"imageUrl\");\n productLongDescription = i.getStringExtra(\"productLongDescription\");\n productCategory = i.getStringExtra(\"productCategory\");\n productPrice = i.getStringExtra(\"productPrice\");\n productSizesSmall = i.getStringExtra(\"productSizesSmall\");\n productSizesMedium = i.getStringExtra(\"productSizesMedium\");\n productSizesLarge = i.getStringExtra(\"productSizesLarge\");\n productSizesXL = i.getStringExtra(\"productSizesXL\");\n productSizesXXL = i.getStringExtra(\"productSizesXXL\");\n productSizesXXXL = i.getStringExtra(\"productSizesXXXL\");\n productQuantity = i.getStringExtra(\"productQuantity\");\n }\n }",
"public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }",
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }",
"void mo21580A(Intent intent);",
"protected String getBundleData() {\n Bundle bundle = getIntent().getExtras();\n StringBuilder temp = new StringBuilder();\n SessionManager session = new SessionManager(getApplicationContext());\n\n temp.append(\"User: \").append(session.getUserName()).append(\"\\r\\n\");\n temp.append(\"Layout: \").append(getBundle(bundle, \"layout\")).append(\"\\r\\n\");\n temp.append(\"Orientation: \").append(getBundle(bundle, \"orientation\")).append(\"\\r\\n\");\n temp.append(\"Variation: \").append(getBundle(bundle, \"variation\")).append(\"\\r\\n\");\n temp.append(\"Hardwareaddons: \").append(getBundle(bundle, \"hardwareaddons\")).append(\"\\r\\n\");\n temp.append(\"Input: \").append(getBundle(bundle, \"input\")).append(\"\\r\\n\");\n temp.append(\"Posture: \").append(getBundle(bundle, \"posture\")).append(\"\\r\\n\");\n temp.append(\"Externalfactors: \").append(getBundle(bundle, \"externalfactors\")).append(\"\\r\\n\").append(\"\\r\\n\");\n //data = temp.toString();\n return temp.toString();\n }",
"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 }",
"private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\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 }",
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }",
"protected abstract Intent getIntent();",
"@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }",
"private void getIntentAndDisplayData(Intent i) {\n\t\t\tif (!isCancelled()) {\n\t\t\t\tforumTopicID = i.getStringExtra(\"topicID\");\n\t\t\t\tuserID = i.getStringExtra(\"userID\");\n\t\t\t\tgetDataFromServer(forumTopicID);\n\t\t\t}\n\t\t}",
"public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\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 }",
"@Override\n protected void onHandleIntent(Intent workIntent) {\n String dataString = workIntent.getDataString();\n\tif(null == dataString) {\n\t\tLog.i(\"BluetoothEventService\", dataString);\n\t}\n// ...\n // Do work here, based on the contents of dataString\n// ...\n }",
"public static Bundle m3a(Intent intent) {\n return intent.getBundleExtra(\"al_applink_data\");\n }",
"private Order getIntentData(Intent intent) {\n\t\treturn intent != null ? (Order) intent\n\t\t\t\t.getSerializableExtra(TarrifActivity.TICKET_CONTIANS_ORDER_SERIALIZABLE_KEY)\n\t\t\t\t: null;\n\t}",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }",
"public String data() {\n\t\tBundle bundle = this.getIntent().getExtras();\n\t\t// ii == 從 schedule_id取得的專案ID\n\t\tii = bundle.getString(\"id\");\n\t\tLog.d(\"data\", ii);\n\t\treturn ii;\n\t}",
"@Override\n public void handleResult(Intent data) {\n }",
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == 1) {\n // Extract name value from result extras\n site = data.getExtras().getString(\"site\");\n color = data.getExtras().getString(\"color\");\n type = data.getExtras().getString(\"type\");\n size = data.getExtras().getString(\"size\");\n // Toast the name to display temporarily on screen\n\n }\n }",
"private void buildIntent() {\n ReportLogic.report(this, \"POST\", mInfo.c_rpt, 0, null);\n Intent intent = new Intent();\n Bundle bundle = new Bundle();\n bundle.putString(PKG_NAME, mInfo.href);\n bundle.putString(APP_NAME, mInfo.name);\n intent.putExtra(DetailActivity.DETAIL, bundle);\n intent.setClass(this, DetailActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n\n if( messageEvent.getPath().equalsIgnoreCase(\"/0\")) {\n String value = new String(messageEvent.getData(), StandardCharsets.UTF_8);\n Intent intent = new Intent(this, MainActivity.class );\n\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n //you need to add this flag since you're starting a new activity from a service\n String string = value;\n String[] parts = string.split(\",\");\n String part1 = parts[0];\n String part2 = parts[1];\n String part3 = parts[2];\n\n\n intent.putExtra(\"0\", part1);\n intent.putExtra(\"1\", part2);\n intent.putExtra(\"2\", part3);\n startActivity(intent);\n } else {\n super.onMessageReceived( messageEvent );\n }\n\n }",
"@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }",
"private void getIntentDataAndSetTextView() {\n\t\tBundle bagObtained= this.getIntent().getExtras();\r\n\t\tlong startTime= bagObtained.getLong(\"startTime\");\r\n\t\tlong endTime= bagObtained.getLong(\"endTime\");\r\n\t\t\r\n\t\t\r\n\t\tString callingNumber=bagObtained.getString(\"callingNumber\");\r\n\t\t\r\n\t\t\r\n\t\tString calltype=bagObtained.getString(\"status\");\r\n\t\t\r\n\t\tCalendar mycal= Calendar.getInstance();\r\n\t\tmycal.setTimeInMillis(startTime);\r\n\t\tDate callTiming=mycal.getTime();\r\n\t\t\r\n\t\t\r\n\t\tdouble callduration= (endTime-startTime)/1000;\t\t//this is in milliseconds so conversion needed\r\n\t\t@SuppressWarnings(\"deprecation\")\r\n\t\tString calltime=callTiming.getHours() + \" \"+callTiming.getMinutes() ;\r\n\t\t@SuppressWarnings(\"deprecation\")\r\n//LOGIC\r\n\t\t//getyear() brings the count starting from 1900, getMonth() brings 0 indexed months\r\n\t\t\r\n\t\tString calldate=callTiming.getYear()+1900 + \" \"+((int) callTiming.getMonth()+1) + \" \"+callTiming.getDate();\r\n\t\t\r\n\t\tLog.d(\"checkpoint\",calldate);\r\n\t\tLog.d(\"checkpoint\",calltime);\r\n\t\t\r\n\t\ttvTimeShow.setText(callingNumber+\"(\"+calltype+\") called you at \"+mycal.getTime()+\"\\nTotal call time is: \"+callduration+\"seconds \\n StartTime was:::\"+startTime+\"\\n end time was::::\"+endTime);\r\n\t\t\r\n\t\t/*\r\n\t\t * What if we insert this information in the database and leave\r\n\t\t * This information is a one row and will take split second and hence we wont do much on the background too\r\n\t\t * \r\n\t\t * \r\n\t\t * We also need to check the logic for alerting the user at this point\r\n\t\t * if the alert has to be made then we need to set the pending intent and the notification at this point too\r\n\t\t */\r\n\t\t\r\n\t\tLocalDb ldb= new LocalDb(this.getApplicationContext());\r\n\t\tldb.insertCallDetail(callingNumber, calltime, calldate, calltype, callduration);\r\n\t\tldb.close();\r\n\t\t\r\n\t}",
"private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }",
"@Override\n\tprotected void obtainIntentValue() {\n\n\t}",
"@Override\n public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n IntentResult intentResult = IntentIntegrator.parseActivityResult(requestCode,resultCode,data);\n if (intentResult.getContents() != null) {\n String scannedText = intentResult.getContents();\n\n // Get product data associated with the UPC barcode\n Uri uri = api.getURL(scannedText);\n api.getData(uri, this::productBarcodeHandler);\n }\n else {\n Toast.makeText(getApplicationContext(),\"Nothing was scanned\", Toast.LENGTH_SHORT).show();\n }\n }",
"public java.util.Map getExtra(int status) throws android.os.RemoteException;",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(data!=null&&data.getStringExtra(\"Format\")!=null)\n Toast.makeText(this, \"Contents = \" + data.getStringExtra(\"Contents\") +\n \", Format = \" + data.getStringExtra(\"Format\"), Toast.LENGTH_SHORT).show();\n }",
"Map<String, Object> extras();",
"public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }",
"public void getDetails() {\n presenter = new SkillPresenter(this, this);\n try {\n if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notification\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notificationAdapter\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else {\n presenter.getSkills(this);\n }\n }catch (Exception e){\n e.printStackTrace();\n presenter.getSkills(this);\n }\n }",
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n String s = new String(msg.getRecords()[0].getPayload());\n nfcTagCode = s.substring(3);\n\n textView.setText(nfcTagCode); // Sets the textview as the Text read from NFC TAG\n }",
"public Intent getIntent() {\n return mIntent;\n }",
"static /* synthetic */ byte[] m10276k(Intent intent) {\n if (intent == null) {\n return null;\n }\n Parcel obtain = Parcel.obtain();\n obtain.setDataPosition(0);\n intent.writeToParcel(obtain, 0);\n byte[] marshall = obtain.marshall();\n obtain.recycle();\n return marshall;\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context,\"静态广播:\"+intent.getAction()+\":\"+intent.getStringExtra(\"tv\"),\n Toast.LENGTH_LONG).show();\n System.out.println(intent.getStringExtra(\"tv\"));\n }",
"String getDataFromScreen();",
"public Intent getIntent() {\n return mIntent;\n }",
"public static Object getExtraObject(Activity context, String key) {\n \tObject param = null;\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.get(key);\n \t}\n \treturn param;\n\t}",
"private ArrayList<TodoData> getTodos() {\n Intent intent = (Intent) getIntent();\n return (ArrayList<TodoData>) intent.getSerializableExtra(\"todos\");\n }",
"public static ParsedMwmRequest extractFromIntent(Intent data)\n {\n final ParsedMwmRequest request = new ParsedMwmRequest();\n\n request.mCallerInfo = data.getParcelableExtra(Const.EXTRA_CALLER_APP_INFO);\n request.mTitle = data.getStringExtra(Const.EXTRA_TITLE);\n request.mReturnOnBalloonClick = data.getBooleanExtra(Const.EXTRA_RETURN_ON_BALLOON_CLICK, false);\n request.mPickPoint = data.getBooleanExtra(Const.EXTRA_PICK_POINT, false);\n request.mCustomButtonName = data.getStringExtra(Const.EXTRA_CUSTOM_BUTTON_NAME);\n\n if (data.getBooleanExtra(Const.EXTRA_HAS_PENDING_INTENT, false))\n request.mPendingIntent = data.getParcelableExtra(Const.EXTRA_CALLER_PENDING_INTENT);\n\n return request;\n }",
"protected abstract ContentValues getDataFromInput();",
"@Override\n public void onReceive(Context context, Intent intent) {\n /*\n * Handle Intents here.\n */\n Log.d(TAG, \"onReceive: Called\");\n Bundle extras = intent.getExtras();\n Bundle details = (Bundle)extras.get(Constants.EXTENDED_DATA_STATUS);\n for (String key : xData) {\n int value = details.getInt(key);\n try {\n int pos = getPos(key);\n yData[pos] = value;\n }\n catch (KeyException ke) {\n Log.e(TAG, \"onReceive: Bad Activity string received\", ke);\n }\n }\n addDataSet(); // updated yData - now process and show\n }",
"private void TransferDataToMainActivity(){\n Intent intent = new Intent(ChooseService.this, MainActivity.class);\n intent.putExtra(\"Professional\", professionalName);\n intent.putExtra(\"Service\", serviceName);\n intent.putExtra(\"Price\", servicePrice);\n startActivity(intent);\n }",
"public void onIntentReceived(final String payload) {\n this.WriteLine(\"--- Intent received by onIntentReceived() ---\");\n this.WriteLine(payload);\n this.WriteLine();\n }",
"static long m43010a(Intent intent) {\n if (intent == null) {\n return -1;\n }\n return intent.getLongExtra(\"com.tonyodev.fetch.extra_id\", -1);\n }",
"@Override\n public void onNewIntent(Activity activity, Intent data) {\n }",
"@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}",
"@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\n\t\tString activityName = \"com.sonyericsson.media.infinite.EXTRA_ACTIVITY_NAME\";\n\n\t\tif (intent.getStringExtra(activityName) != null && intent.getStringExtra(activityName).equals(MusicPreferenceActivity.class.getName())) {\n\n\t\t\tBundle extras = new Bundle();\n\n\t\t\t// Build a URI for the string resource for the description text\n\t\t\tString description = new Uri.Builder().scheme(ContentResolver.SCHEME_ANDROID_RESOURCE).authority(context.getPackageName()).appendPath(Integer.toString(R.string.description)).build()\n\t\t\t\t\t.toString();\n\n\t\t\t// And return it to the infinite framework as an extra\n\t\t\textras.putString(\"com.sonyericsson.media.infinite.EXTRA_DESCRIPTION\", description);\n\t\t\tsetResultExtras(extras);\n\n\t\t}\n\t}",
"private Intent prepareIntentForResult() {\n Intent intent = new Intent(this, PackActivity.class);\n Settings settings = new Settings();\n Settings.City city = new Settings.City();\n city.setCityCode((long) input.get(CommonConstants.ARRIVAL_CITY_ID));\n city.setName(String.valueOf(input.get(CommonConstants.ARRIVAL_CITY_INFO)));\n city.setLocation((Location) input.get(CommonConstants.ARRIVAL_CITY_LOCATION));\n settings.setCity(city);\n settings.setCategories(getNames(\"category\"));\n settings.setTransportTypes(getNames(\"transport\"));\n settings.setGenders(getNames(\"gender\"));\n settings.setWeight(thingSelectListener.getAllWeight());\n try {\n DateFormat format = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());\n settings.setTravelStartDate(format.parse(String.valueOf(input.get(CommonConstants.TRAVEL_START_DATE))));\n settings.setTravelEndDate(format.parse(String.valueOf(input.get(CommonConstants.TRAVEL_END_DATE))));\n } catch (ParseException e) {\n Log.e(TAG, \"onPreviewCloseClick: \" + e.getMessage(), e);\n }\n settings.setSelections(getSelections());\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n intent.putExtra(CommonConstants.NEW_LIST_TAG, mapper.writeValueAsString(settings));\n } catch (JsonProcessingException e) {\n Log.e(TAG, \"onPreviewCloseClick: \" + e.getMessage(), e);\n }\n return intent;\n }",
"@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}",
"@Override\n public void dataAvailable(Intent intent) {\n String uuid = BLEService.getmCharacteristicToPass().getUuid().toString();\n }",
"public static String getExtraString(Activity context, String key) {\n \tString param = \"\";\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.getString(key);\n \t}\n \treturn param;\n\t}",
"@Override\n protected void onHandleIntent(Intent intent) {\n\n }",
"public static void printContent(Intent intent) {\n if (intent == null) {\n logE(\"Intent is null\");\n return;\n }\n\n printContent(intent.getExtras());\n\n }",
"public void getSceneDetails() {\n Intent sceneIntent = getIntent();\n //TODO: set member strings = intent extras\n storyId = sceneIntent.getStringExtra(\"storyId\");\n chapterId = sceneIntent.getStringExtra(\"chapterId\");\n sceneId = sceneIntent.getStringExtra(\"selectedSceneId\");\n\n getAllFormFields();\n\n setSceneFormFields();\n }",
"public static String getStringIntent(Intent intent, String name) {\n\t\tString retval = null;\n\t\tif (intent != null) {\n\t\t\tif (intent.hasExtra(name))\n\t\t\t\tretval = intent.getStringExtra(name);\n\t\t}\n\t\treturn retval;\n\t}",
"private Intent setIntentDataForActivities(int activity)\n {\n\t\tIntent i=new Intent();\n\t\tfor(int j=0;j<Name.length;j++)\n\t\t{\n\t\t Log.d(\"Data sent from DashBoard\", \"depName= \"+Designation[j]+ \" \"+\"realNumber= \"+extension[j]+\" \"+\"username= \"+Name[j]+\" \");\n\t\t}\n\t\tif(activity==0)\n\t\t{\n\t\t i = new Intent(this, EXT_Board.class);\n\t\t i.putExtra(\"Name\", Name);\n\t i.putExtra(\"Designation\", Designation);\n\t i.putExtra(\"Extension\",extension);\n\t \n\t\t}\n\t\telse if(activity==1)\n\t\t{\n\t\t\t i = new Intent(this, Dialer_main.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t \n\t\t}\n\t\telse if(activity==2)\n\t\t{\n\t\t\t i = new Intent(this, Settings_Password.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t \n\t\t}\n\t\telse if(activity==3)\n\t\t{\n\t\t\t i = new Intent(this, Settings_Call_Routingg.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t\n\t\t}\n\t\treturn i;\n }",
"public void onIntentReceived(final String payload) {\n }",
"private void logPushExtras(Intent intent) {\n Set<String> keys = intent.getExtras().keySet();\n for (String key : keys) {\n\n // ignore standard C2DM extra keys\n List<String> ignoredKeys = (List<String>) Arrays.asList(\n \"collapse_key\",// c2dm collapse key\n \"from\",// c2dm sender\n PushManager.EXTRA_NOTIFICATION_ID,// int id of generated notification (ACTION_PUSH_RECEIVED only)\n PushManager.EXTRA_PUSH_ID,// internal UA push id\n PushManager.EXTRA_ALERT);// ignore alert\n if (ignoredKeys.contains(key)) {\n continue;\n }\n Log.i(logTag,\n \"Push Notification Extra: [\" + key + \" : \"\n + intent.getStringExtra(key) + \"]\"\n );\n }\n }",
"public Bundle getExtras() {\n }",
"@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }",
"static final /* synthetic */ void m50993b(ane ane, Map map) {\n PackageManager packageManager = ane.getContext().getPackageManager();\n try {\n try {\n JSONArray jSONArray = new JSONObject((String) map.get(\"data\")).getJSONArray(\"intents\");\n JSONObject jSONObject = new JSONObject();\n for (int i = 0; i < jSONArray.length(); i++) {\n try {\n JSONObject jSONObject2 = jSONArray.getJSONObject(i);\n String optString = jSONObject2.optString(\"id\");\n String optString2 = jSONObject2.optString(\"u\");\n String optString3 = jSONObject2.optString(C42323i.f110089f);\n String optString4 = jSONObject2.optString(C13192m.f34940a);\n String optString5 = jSONObject2.optString(\"p\");\n String optString6 = jSONObject2.optString(\"c\");\n jSONObject2.optString(\"f\");\n jSONObject2.optString(\"e\");\n String optString7 = jSONObject2.optString(\"intent_url\");\n Intent intent = null;\n if (!TextUtils.isEmpty(optString7)) {\n try {\n intent = Intent.parseUri(optString7, 0);\n } catch (URISyntaxException e) {\n URISyntaxException uRISyntaxException = e;\n String str = \"Error parsing the url: \";\n String valueOf = String.valueOf(optString7);\n acd.m45778b(valueOf.length() != 0 ? str.concat(valueOf) : new String(str), uRISyntaxException);\n }\n }\n boolean z = true;\n if (intent == null) {\n intent = new Intent();\n if (!TextUtils.isEmpty(optString2)) {\n intent.setData(Uri.parse(optString2));\n }\n if (!TextUtils.isEmpty(optString3)) {\n intent.setAction(optString3);\n }\n if (!TextUtils.isEmpty(optString4)) {\n intent.setType(optString4);\n }\n if (!TextUtils.isEmpty(optString5)) {\n intent.setPackage(optString5);\n }\n if (!TextUtils.isEmpty(optString6)) {\n String[] split = optString6.split(\"/\", 2);\n if (split.length == 2) {\n intent.setComponent(new ComponentName(split[0], split[1]));\n }\n }\n }\n if (packageManager.resolveActivity(intent, 65536) == null) {\n z = false;\n }\n try {\n jSONObject.put(optString, z);\n } catch (JSONException e2) {\n acd.m45778b(\"Error constructing openable urls response.\", e2);\n }\n } catch (JSONException e3) {\n acd.m45778b(\"Error parsing the intent data.\", e3);\n }\n }\n ((C15836lc) ane).mo39810a(\"openableIntents\", jSONObject);\n } catch (JSONException unused) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n } catch (JSONException unused2) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\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 void obtener(){\n Bundle bundle = getIntent().getExtras();\n id = bundle.getString(\"id\");\n nombre = bundle.getString(\"nombre\");\n apellido = bundle.getString(\"apellido\");\n telefono = bundle.getInt(\"telefono\");\n //seteo de datos\n editTextN.setText(nombre);\n editTextA.setText(apellido);\n editTextT.setText(String.valueOf(telefono));\n }",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"private void describe() {\n\n GridPoint geotag = myGridPoint();\n\n MarkerOptions marker = new MarkerOptions().gridPoint(geotag);\n marker.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));\n mMap.addMarker(marker);\n\n Intent data = getIntent();\n String name = (String) data.getSerializableExtra(\"name\");\n String number = (String) data.getSerializableExtra(\"number\");\n Intent intent = new Intent(MainActivity.this,Description.class);\n intent.putExtra(\"name\", name);\n intent.putExtra(\"number\", number);\n startActivityForResult(intent,101);\n\n }",
"@Override \n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent); \n \n initData();\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n if (result.getContents() == null) {\n Toast.makeText(this, \"Result Not Found\", Toast.LENGTH_LONG).show();\n } else {\n partNumber = result.getContents();\n new BackgroundTaskScanQrCode().execute();\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }",
"void decodeAndAnalyzeData(Intent x)\n {\n if(x.getExtras()==null)\n return;\n N=x.getIntExtra(\"N\",0);\n if(N==0)\n return;\n Names=new String[6];\n for(int i=0;i<N;i++)\n Names[i]=x.getStringExtra(Integer.toString(i));\n int n=x.getIntExtra(\"n\",0);\n if(n==0)\n return;\n Paid=new Double[6];\n Used=new Double[6];\n Balance=new Double[6];\n for(int i=0;i<6;i++)\n {\n Paid[i]=0d;\n Used[i]=0d;\n Balance[i]=0d;\n }\n for(int i=0;i<n;i++)\n {\n double _price = x.getDoubleExtra(\"iP\"+String.format(\"%03d\", i),0);\n if(_price==-0.01)\n _price=0;\n int _users = x.getIntExtra(\"iU\"+String.format(\"%03d\", i),0);\n String _buyer = x.getStringExtra(\"iB\"+String.format(\"%03d\", i));\n String _name = x.getStringExtra(\"iN\"+String.format(\"%03d\", i));\n int uid=findUserId(_buyer);\n if(uid==-1)\n continue;\n Paid[uid]+=_price;\n boolean[] c = new boolean[6];\n for (int j = 0; j < 6; j++)\n c[j] = (_users % Math.pow(2, j + 1)) >= Math.pow(2, j);\n int m=0;\n for(int j=0;j<6;j++)\n if(c[j])\n m++;\n if(m==0)\n {\n m=1;\n c[uid]=true;\n }\n double up=_price/m;\n for(int j=0;j<6;j++)\n if(c[j])\n Used[j]+=up;\n\n }\n for(int j=0;j<6;j++)\n Balance[j]=Paid[j]-Used[j];\n// //Checksum TODO\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n //if qrcode has nothing in it\n if (result.getContents() == null) {\n Toast.makeText(this, \"Result Not Found\", Toast.LENGTH_LONG).show();\n } else {\n //if qr contains data\n try {\n //converting the data to json\n JSONObject obj = new JSONObject(result.getContents());\n //setting values to textviews\n textViewName.setText(obj.getString(\"name\"));\n textViewAddress.setText(obj.getString(\"address\"));\n } catch (JSONException e) {\n e.printStackTrace();\n //if control comes here\n //that means the encoded format not matches\n //in this case you can display whatever data is available on the qrcode\n //to a toast\n Toast.makeText(this, result.getContents(), Toast.LENGTH_LONG).show();\n }\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }",
"@SuppressWarnings(\"unused\")\npublic interface Constants {\n /**\n * Extra data key. Used with intent or some others.\n */\n class Extras {\n public static final String TAG = \"ext_tag\";\n public static final String FLAG = \"ext_flag\";\n public static final String DATA = \"ext_data0\";\n public static final String DATA_1 = \"ext_data1\";\n public static final String DATA_2 = \"ext_data2\";\n public static final String DATA_3 = \"ext_data3\";\n public static final String DATA_4 = \"ext_data4\";\n public static final String DATA_5 = \"ext_data5\";\n public static final String DATA_6 = \"ext_data6\";\n public static final String DATA_7 = \"ext_data7\";\n public static final String DATA_8 = \"ext_data8\";\n public static final String GRADE_INFO = \"ext_grade_info\";\n public static final String MEMBER_VP_INFO = \"ext_member_vp_info\";\n public static final String MEMBER_VP_POSITION = \"ext_member_vp_position\";\n }\n\n\n}",
"public String[] getInfoData();",
"@Override\n public void onClick(View v) {\n Bundle extras = getIntent().getExtras();\n if (extras != null) {\n str = extras.getString(\"data_to_be_sent\") + \"\\r\\n\" + answer.getText().toString() ;\n }\n Intent intent = new Intent(getBaseContext(), Question4.class);\n intent.putExtra(\"data_to_be_sent\",str);\n startActivity(intent);\n }",
"public String getIntent() {\n/* 329 */ return getCOSObject().getNameAsString(COSName.IT);\n/* */ }"
] | [
"0.75900763",
"0.7584439",
"0.73961705",
"0.73166925",
"0.72308016",
"0.69476646",
"0.6936286",
"0.68751186",
"0.6744542",
"0.6669544",
"0.66489804",
"0.6646749",
"0.6632755",
"0.6632531",
"0.6567754",
"0.6523626",
"0.64673245",
"0.64544547",
"0.6428623",
"0.64271057",
"0.63813895",
"0.6338758",
"0.63029456",
"0.62999094",
"0.6171143",
"0.61584496",
"0.6107682",
"0.61056703",
"0.6028765",
"0.6015882",
"0.5950946",
"0.5948068",
"0.5907508",
"0.58850294",
"0.5867237",
"0.5855562",
"0.5808866",
"0.57790184",
"0.5767255",
"0.5764673",
"0.5754378",
"0.5746591",
"0.57365996",
"0.5734181",
"0.5698137",
"0.56899035",
"0.5681648",
"0.567635",
"0.5672175",
"0.5654547",
"0.5640151",
"0.56334853",
"0.56048656",
"0.560271",
"0.55976677",
"0.55919075",
"0.5586772",
"0.556455",
"0.5559778",
"0.55438733",
"0.5542783",
"0.5535815",
"0.55055124",
"0.5505331",
"0.5504597",
"0.5503555",
"0.5501906",
"0.54988426",
"0.5494736",
"0.5493246",
"0.5489972",
"0.54800874",
"0.5467443",
"0.546155",
"0.54442275",
"0.54438066",
"0.54381174",
"0.5413481",
"0.5412527",
"0.54124725",
"0.53974485",
"0.5393718",
"0.5376042",
"0.5372132",
"0.536385",
"0.53437495",
"0.5334697",
"0.5332114",
"0.53299797",
"0.5321741",
"0.53182906",
"0.53125674",
"0.53109884",
"0.53049004",
"0.5304724",
"0.528431",
"0.5282804",
"0.52807313",
"0.52788794",
"0.5267355",
"0.5266832"
] | 0.0 | -1 |
Get gets the latest date of ingestion. | public DateTime ingestionTime() {
return this.ingestionTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}",
"@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}",
"long getFetchedDate();",
"Date getForLastUpdate();",
"@Override\n public DateTime getMaxIngestedEventTime()\n {\n return getMaxTime();\n }",
"@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}",
"public Date getLastImportDate(TransportClient client, SimpleDateFormat formatter) {\n SearchResponse response = client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)\n .setQuery(QueryBuilders.matchAllQuery()) // Query\n .addSort(SortBuilders.fieldSort(\"insertDate\").order(SortOrder.DESC))\n .setFrom(0).setSize(1).setExplain(true)\n .get();\n try {\n return formatter.parse(response.getHits().getAt(0).getSource().get(\"insertDate\").toString());\n } catch (ParseException ex) {\n Logger.getLogger(Services.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"public Date getLatestProkaryoteUpdate() {\n return getLatestUpdate(namespace + \".genome_prok\");\n }",
"public Date getDate() {\n/* 150 */ Date[] dates = getDates();\n/* 151 */ if (dates != null) {\n/* 152 */ Date latest = null;\n/* 153 */ for (int i = 0, c = dates.length; i < c; i++) {\n/* 154 */ if (latest == null || dates[i].getTime() > latest.getTime()) {\n/* 155 */ latest = dates[i];\n/* */ }\n/* */ } \n/* 158 */ return latest;\n/* */ } \n/* 160 */ return null;\n/* */ }",
"Date getEventFiredAt();",
"public Date getLastRequest() {\n\t\treturn _last_request;\n\t}",
"private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}",
"public DateAdp Modified_latest() {return modified_latest;}",
"long getLastBonusTicketDate();",
"public Date getAutoDate() {\r\n return autoDate;\r\n }",
"public Date getInstdte() {\r\n return instdte;\r\n }",
"public Date getLastlogintime() {\n return lastlogintime;\n }",
"long getLastFetchTimeMs();",
"Date getUpdatedDate();",
"public String getEventDate() {\n\t\treturn date;\n\t}",
"java.lang.String getFoundingDate();",
"Date getLastServerUpdate();",
"org.naru.park.ParkController.CommonAction getGetLatestReading();",
"@RequestMapping(path = \"/last24hDeliveredItems\", method = RequestMethod.GET)\n public List<DeliveredItem> getLast24hDeliveredItems() {\n Query queryObject = new Query(\"Select * from delivery_item\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<DeliveredItem> deliveredItemList = resultMapper\n .toPOJO(queryResult, DeliveredItem.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return deliveredItemList.stream().filter(deliveredItem -> instantIsBetweenDates(deliveredItem.getTime(), start, stop)).collect(Collectors.toList());\n }",
"public Date getLast_seen() {\n return last_seen;\n }",
"long getLastAccessedTime();",
"public Date getLastPublished() {\n return lastPublished;\n }",
"@JsonSerialize(using=AfJson.CalendarSerializer.class)\n public Long getLastScan()\n {\n return _lastScan;\n }",
"public long getDate() {\n return date;\n }",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"public Date getDataGatheringDateTime() { return this.dataGatheringDateTime; }",
"public Date getLastupdatedate() {\n return lastupdatedate;\n }",
"public java.util.Date getLatestActivityTaskTimestamp() {\n return latestActivityTaskTimestamp;\n }",
"public long getDate() {\n return date;\n }",
"public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }",
"long getLastAccessed( );",
"public Date getLastUpdated() {\n return lastUpdated;\n }",
"public Date getLastUpdated() {\n return lastUpdated;\n }",
"public Date getLastUpdated() {\n return lastUpdated;\n }",
"public Timestamp getLastLogintime() {\n return lastLogintime;\n }",
"public Date getLastUpdate() {\r\n return lastUpdate;\r\n }",
"List<Expenses> latestExpenses();",
"public String Get_date() \n {\n \n return date;\n }",
"public String getLastUpdatedDateItem() {\n return lastUpdatedDateItem;\n }",
"private String getLatestMarketData() {\n\t\treturn latestMarketData;\n\t}",
"@Override\n\tpublic java.util.Date getLastSavePoint() {\n\t\treturn _keHoachKiemDemNuoc.getLastSavePoint();\n\t}",
"public Date getEarliestFinishingDate();",
"@ApiModelProperty(value = \"Data related to the last job run for this Flow\")\n public Object getLatestJob() {\n return latestJob;\n }",
"public int getDate() {\n return date ;\n }",
"static String getRefreshDate(){\n if (updateTime == null){\n updateTime = \"ERROR RETRIEVING CURRENT RATES\";\n }\n return conversionRates.get(\"date\").getAsString() + \" \" + updateTime;\n\n }",
"public Date getGioBatDau();",
"@Override\n\tpublic Date getDbDate() {\n\t\treturn systemMapper.selectNow();\n\t}",
"String getEndDate();",
"long getDate();",
"default long getLastFetchTimeMs() {\n return 0;\n }",
"public SensorBean getLatestReading() {\n return latestReading;\n }",
"private long getNow()\n {\n // no need to convert to collection if had an Iterables.max(), but not present in standard toolkit, and not worth adding\n List<SSTableReader> list = new ArrayList<>();\n Iterables.addAll(list, cfs.getSSTables(SSTableSet.LIVE));\n if (list.isEmpty())\n return 0;\n return Collections.max(list, (o1, o2) -> Long.compare(o1.getMaxTimestamp(), o2.getMaxTimestamp()))\n .getMaxTimestamp();\n }",
"public long getDate() {\n return date_;\n }",
"Date getEDate();",
"long getEndDate();",
"long getEndDate();",
"public String getEndDate();",
"public Date getUpdatedOn();",
"public Date getPublishtime() {\n return publishtime;\n }",
"@Override\r\n\tpublic NotesDateTime getCutoffDate() throws NotesApiException {\n\t\treturn null;\r\n\t}",
"@Override\n public Date getDate() {\n return date;\n }",
"public int getDate() {\n return date;\n }",
"public int getDate() {\n return date;\n }",
"public int getDate(){\n return date;\n }",
"public String getLastDateHistory( String code) {\n String query = \"SELECT * FROM \"+ code +\"R where time > '2015-06-01T00:00:00Z'\";\n QueryResult list = InfluxDaoConnector.getPoints(query,dbName);\n\n if (!checker(list))\n return null;\n\n int size = list.getResults().get(0).getSeries().get(0).getValues().size();\n\n\n return (String) list.getResults().get(0).getSeries().get(0).getValues().get(size-1).get(0);\n\n }",
"public String getDate(){\n return date;\n }",
"public Long getLastOnsetTime() {\n if (timeInfos.isEmpty()) {\n return null;\n } else {\n int size = timeInfos.size();\n return timeInfos.get(size - 1).getOnsetTime();\n }\n }",
"public Date getDate() {\n return this.currentDate;\n }",
"Date getLastTime();",
"public Date getDate()\n {\n return this.date;\n }",
"public static Date getLastTradeDate() {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select max(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt\");\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\tDate lastTradeDate = (Date) query.getSingleResult();\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn lastTradeDate;\r\n\t}",
"public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;",
"public String getDate(){\n\n return this.date;\n }",
"public static long getNewestMeetingDate() {\n return SP_UTILS.getLong(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT);\n }",
"public String getLastSynchronisationMoment() {\n\n String lastSynchronisationDate;\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(GET_LAST_SYNCHRONISATION_DATE_SQL)) {\n\n ResultSet resultSet = stmt.executeQuery();\n boolean resultStatus = resultSet.next();\n\n if (!resultStatus) {\n throw new LastSynchronisationDateNotFoundException();\n }\n\n lastSynchronisationDate = resultSet.getString(\"synchronisation_moment\");\n\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"getLastSynchronisationMoment\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n\n return lastSynchronisationDate;\n\n }",
"@Override\n\tpublic Date getLastServiced() {\n\t\treturn lastServiced;\n\t}",
"long getDateTime();",
"public Date getDate() {\n return dateTime;\n }",
"T latest();",
"public java.util.Date getLastUsedDate() {\n\t\treturn this.lastUsedDate;\n\t}",
"public Date getTimeRead() {\n\t\treturn new Date(timeRead.getTime());\n\t}",
"public java.lang.String getDate_last_update() {\n return date_last_update;\n }",
"public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"OffsetDateTime lastActionDateTime();",
"public String getReturnDate();",
"public String getDate() {\n return date;\n }",
"long getTradeDate();",
"public long getDate() {\n return date_;\n }",
"public String getLatestDateOnActions(String rpiId) throws SQLException, IOException;",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastStatusChangeDate();",
"private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }",
"public Date getDate()\n {\n return date;\n }",
"long getRetrievedTime();",
"public java.util.Date getDateHist() {\n\t\treturn _pnaAlerta.getDateHist();\n\t}",
"public String getDate(){\n return date;\n }"
] | [
"0.6433337",
"0.64096",
"0.6397471",
"0.62735",
"0.6259098",
"0.61784303",
"0.60558563",
"0.5987354",
"0.5948008",
"0.5838857",
"0.58351994",
"0.5828656",
"0.58186555",
"0.5804575",
"0.5790618",
"0.5774107",
"0.5768687",
"0.57541907",
"0.5748413",
"0.5742093",
"0.57374173",
"0.57125473",
"0.571007",
"0.5707255",
"0.57035327",
"0.5691718",
"0.5686033",
"0.5679252",
"0.567713",
"0.56688696",
"0.5664331",
"0.56549335",
"0.56526375",
"0.56438106",
"0.5641051",
"0.56325537",
"0.5628464",
"0.5628464",
"0.5628464",
"0.56270015",
"0.5626513",
"0.5621",
"0.56176144",
"0.5616895",
"0.56111693",
"0.56100684",
"0.56059515",
"0.560398",
"0.55927736",
"0.5586876",
"0.5580414",
"0.55737627",
"0.555478",
"0.55538714",
"0.5547357",
"0.5538047",
"0.5534389",
"0.5533914",
"0.5533489",
"0.55316335",
"0.55316335",
"0.553127",
"0.5531041",
"0.5530792",
"0.552873",
"0.55247337",
"0.5518992",
"0.5518992",
"0.551547",
"0.5514572",
"0.5511695",
"0.5505935",
"0.55054253",
"0.5504576",
"0.549919",
"0.5495721",
"0.5495618",
"0.54950726",
"0.54934585",
"0.54915756",
"0.54900604",
"0.54893947",
"0.54877275",
"0.54784924",
"0.5476376",
"0.54701984",
"0.54688215",
"0.54687476",
"0.5466218",
"0.5464471",
"0.54591054",
"0.5454104",
"0.5453734",
"0.5451432",
"0.5445776",
"0.54412305",
"0.5441148",
"0.54402906",
"0.5438232",
"0.5436942"
] | 0.62229186 | 5 |
Set gets the latest date of ingestion. | public ProfileStoreStateInfo withIngestionTime(DateTime ingestionTime) {
this.ingestionTime = ingestionTime;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDate() {\n this.date = new Date();\n }",
"public void SetDate(Date date);",
"@Override\n\tprotected void setDate() {\n\n\t}",
"void setDate(Date data);",
"public void setDate(long value) {\n this.date = value;\n }",
"public abstract void setDate(Timestamp uneDate);",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}",
"@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"void setFetchedDate(long time);",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setDate(int date){\n this.date = date;\n }",
"public void setDate(int dt) {\n date = dt;\n }",
"public void setDate(Date date) {\n mDate = date;\n }",
"public void setDate(String date){\n this.date = date;\n }",
"public void setLast_seen(Date last_seen) {\n this.last_seen = last_seen;\n }",
"public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}",
"public void setDate(final Date date) {\n this.date = date;\n }",
"public void setUpdatedOn(Date updatedOn);",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }",
"public void setDate(long date) {\n\t\tthis.date = date;\n\t}",
"public void setValue(java.util.Date value) {\n this.value = value;\n }",
"void setDate(java.lang.String date);",
"public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }",
"public void setDate(Date date) {\n\t\tthis._date = date;\n\t}",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public void setDate(String date){\n this.date = date;\n }",
"void setUpdatedDate(Date updatedDate);",
"public void setDate(Date date) {\n setDate(date, null);\n }",
"public void setUpdateDatetime(Date updateDatetime);",
"public void setRequestDate(Date requestDate);",
"public void setStartDate(Date s);",
"public void setDate(String date) {\r\n this.date = date;\r\n }",
"@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}",
"private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}",
"public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}",
"public void setInstdte(Date instdte) {\r\n this.instdte = instdte;\r\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}",
"@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}",
"protected void setTimeStamp(Date date) {\n\t\tsetPurchaseDate(date);\n\t}",
"public void setDate (String s) {\n date = s;\n }",
"void setCreateDate(Date date);",
"public void setSetUpDate(Date setUpDate) {\n this.setUpDate = setUpDate;\n }",
"public void setUpddte(Date upddte) {\r\n this.upddte = upddte;\r\n }",
"public void setServiceDate(java.util.Date value);",
"public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }",
"public void setDateOrdered (Timestamp DateOrdered);",
"void setLastAccessDate();",
"void setInvoicedDate(Date invoicedDate);",
"public void setFirst_seen(Date first_seen) {\n this.first_seen = first_seen;\n }",
"public void setDate(Date newDate) {\n this.currentDate = newDate;\n }",
"public void setDatasetLastAddedToNow() {\n this.datasetLastAdded = new Date();\n }",
"public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }",
"public void setShipped(){\n this.shipped = new Date();\n }",
"public void setAutoDate(Date autoDate) {\r\n this.autoDate = autoDate;\r\n }",
"public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}",
"void setDateUpdated(final Date dateUpdated);",
"public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}",
"public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}",
"public abstract void setFecha_fin(java.sql.Timestamp newFecha_fin);",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }",
"public void setDateInvoiced (Timestamp DateInvoiced);",
"abstract public void setServiceAppointment(Date serviceAppointment);",
"public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }",
"public void setDateAdded(Date dateAdded);",
"@Override\n\tpublic void setLastSavePoint(java.util.Date lastSavePoint) {\n\t\t_keHoachKiemDemNuoc.setLastSavePoint(lastSavePoint);\n\t}",
"public void set(final Timestamp timestamp) {\n stamp = timestamp.get();\n }",
"public void setDateSaved(String dateSaved)\n {\n this.dateSaved = dateSaved; \n }",
"public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);",
"void setStartDate(Date startDate);",
"public void setDate(String date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(String date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(String parName, Date parVal) throws HibException;",
"public void setArrivalDate(Date arrivalDate);",
"public void setDateDoc (Timestamp DateDoc);"
] | [
"0.67376226",
"0.6660524",
"0.6651326",
"0.65999776",
"0.647429",
"0.6447813",
"0.64331454",
"0.6374869",
"0.6374869",
"0.6374869",
"0.6374869",
"0.6374869",
"0.6374869",
"0.6374869",
"0.6374869",
"0.6374869",
"0.63727134",
"0.62832767",
"0.62752825",
"0.62731063",
"0.62731063",
"0.62731063",
"0.62651646",
"0.62363535",
"0.62353045",
"0.62348366",
"0.6212998",
"0.62099904",
"0.61869794",
"0.61590034",
"0.6149209",
"0.6134649",
"0.61330885",
"0.61238176",
"0.61213595",
"0.6114146",
"0.6107658",
"0.6107658",
"0.6107658",
"0.6102666",
"0.610041",
"0.6086587",
"0.6081377",
"0.6068065",
"0.6043667",
"0.6036705",
"0.6035379",
"0.6033076",
"0.6016598",
"0.6014017",
"0.6013456",
"0.59931535",
"0.59788907",
"0.59732896",
"0.59416604",
"0.5932231",
"0.59303373",
"0.59268314",
"0.59268314",
"0.59268314",
"0.59268314",
"0.59268314",
"0.5925096",
"0.59249467",
"0.59104437",
"0.59086734",
"0.5875065",
"0.5872851",
"0.58672965",
"0.5865058",
"0.58610386",
"0.5857579",
"0.5840925",
"0.5837782",
"0.58349496",
"0.5831878",
"0.5821622",
"0.5820447",
"0.58091235",
"0.5805974",
"0.580532",
"0.5798151",
"0.5798068",
"0.5786684",
"0.5786015",
"0.57816494",
"0.57794684",
"0.5775107",
"0.5762819",
"0.5750575",
"0.57371426",
"0.5736095",
"0.57332414",
"0.5728945",
"0.57225627",
"0.5719077",
"0.57185173",
"0.57185173",
"0.5716961",
"0.5715478",
"0.57088846"
] | 0.0 | -1 |
Get the primaryInfo value. | public ProfileStoreCollectionInfo primaryInfo() {
return this.primaryInfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String primary() {\n return this.primary;\n }",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public Boolean primary() {\n return this.primary;\n }",
"public java.lang.String getPrimaryName() {\n return primaryName;\n }",
"public String getPrimaryUser () {\n return primaryUser;\n }",
"public UniqueInfo getPrimaryUniqueInfo() {\r\n throw new UnsupportedOperationException(\"The table does not have primary key: \" + getTableDbName());\r\n }",
"public java.lang.String getPrimaryContact() {\n return primaryContact;\n }",
"public java.lang.String getPrimaryCuid() {\n return primaryCuid;\n }",
"public PrimaryElements getPrimaryAccess() {\n\t\treturn pPrimary;\n\t}",
"public final int get_configured_primary () {\n\t\treturn configured_primary;\n\t}",
"public final String get_configured_primary_as_string () {\n\t\treturn \"P\" + configured_primary;\n\t}",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"PrimaryKey getPrimarykey();",
"public boolean isPrimary()\r\n\t{\treturn this.primary;\t}",
"public boolean getIsPrimary();",
"private String getPrimaryNumber(long _id) {\n String primaryNumber = null;\n try {\n Cursor cursor = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.TYPE},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID +\" = \"+ _id, // We need to add more selection for phone type\n null,\n null);\n if(cursor != null) {\n while(cursor.moveToNext()){\n switch(cursor.getInt(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE))){\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_OTHER :\n }\n if(primaryNumber != null)\n break;\n }\n }\n } catch (Exception e) {\n Log.i(\"test\", \"Exception \" + e.toString());\n } finally {\n if(cursor != null) {\n cursor.deactivate();\n cursor.close();\n }\n }\n return primaryNumber;\n }",
"public boolean isIsPrimary() {\r\n return isPrimary;\r\n }",
"public PrimaryGridUnit getPrimary() {\n return primary;\n }",
"public static ReadShellPreference primary() {\n return PRIMARY;\n }",
"public Resource getPrimaryResource() {\n return primaryResource;\n }",
"public int getInfo()\r\n\t{\r\n\t\treturn info;\r\n\t}",
"public Integer getPrimaryOwnerId() {\n return primaryOwnerId;\n }",
"public int getInfo ()\n\t\t{\n\t\t\treturn info;\n\t\t}",
"public java.lang.Boolean getPrimaryProduct() {\n return primaryProduct;\n }",
"public Image getPrimaryImage() {\n return primaryImage;\n }",
"public String getPrimaryContact();",
"public Integer getIdPro() {\n return idPro;\n }",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public ForecastingPrimaryMetrics primaryMetric() {\n return this.primaryMetric;\n }",
"java.lang.String getDataInfoId();",
"public File getPrimaryFile() {\n return primaryFile;\n }",
"public String getInfo() {\n return this.info;\n }",
"public String getProId() {\n return proId;\n }",
"public java.lang.String getPrimaryStudent_id() {\n\t\treturn _primarySchoolStudent.getPrimaryStudent_id();\n\t}",
"public String getInfo() {\n\t\t\n\t\treturn this.appTda_.getInfo( 0 );\n\t}",
"public Integer processInfoId() {\n return this.processInfoId;\n }",
"public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }",
"public Integer getMajorPid() {\n return majorPid;\n }",
"public String getEmailPrimary() {\n\t\t\treturn emailPrimary;\n\t\t}",
"public String getPrimaryKey() {\n return this.getString(R.string.primaryKey);\n }",
"public String getPrimaryExec() {\n return primaryExec;\n }",
"public java.lang.String getPrimaryKey() {\n\t\treturn _pnaAlerta.getPrimaryKey();\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }",
"public boolean isIsPrimary();",
"public IndexShard getPrimary() {\n return primary;\n }",
"public String getPriId() {\n return priId;\n }",
"public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}",
"public ProfileStoreStateInfo withPrimaryInfo(ProfileStoreCollectionInfo primaryInfo) {\n this.primaryInfo = primaryInfo;\n return this;\n }",
"public Boolean getPrimaryNode() {\n return primaryNode;\n }",
"public String getProID() {\n\t\treturn sh_ProductID;\n\t}",
"public ConfigurationKey getInformationId() {\n return informationId;\n }",
"public MappingTable getPrimaryMappingTable() {\n return primaryTable;\n }",
"public ProteinIdentifier getProteinIdentifier() {\n return proteinIdentifier;\n }",
"public String getInfo() {\n return info;\n }",
"@Override\n public String getInfo() {\n return this.info;\n }",
"Information getInfo();",
"public String getInfo()\n {\n return info;\n }",
"@KeepForSdk\n public abstract String getPrimaryDataMarkerColumn();",
"public Object getInfo() {\n return info;\n }",
"public String getInfo() {\n\t\treturn null;\r\n\t}",
"public java.lang.String getPrimaryKey() {\n\t\treturn _primarySchoolStudent.getPrimaryKey();\n\t}",
"public Integer getMajorId() {\n return majorId;\n }",
"PrimaryKey getPrimaryKey();",
"public java.lang.String getInfoCode() {\n return infoCode;\n }",
"public PrimaryKey getPrimaryKey();",
"public String getPIFirstName() {\n if (_piInfo == null)\n return null;\n return _piInfo.getFirstName();\n }",
"public String getInfo() {\n return null;\n }",
"public String getPrimaryKey() {\r\n return primaryKey;\r\n }",
"public boolean isPrimary() {\n return false;\n }",
"public boolean isPrimary() {\n return false;\n }",
"public String getPrimaryContactEmail() {\n return _primaryContactEmail;\n }",
"public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }",
"public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }",
"public java.lang.String getProtein_id() {\n return protein_id;\n }",
"public SingularAttribute<? super T, ?> getPKAttribute() {\n\t\tMetamodel metaModel = this.em.getMetamodel();\n\t\tIdentifiableType<T> identityType = (IdentifiableType<T>) metaModel.managedType(type);\n\t\treturn identityType.getId(identityType.getIdType().getJavaType());\n\t}",
"public ProfileStoreCollectionInfo secondaryInfo() {\n return this.secondaryInfo;\n }",
"public String getPrimaryLanguage(){\n return sharedPreferences.getString(PRIMARY_LANGUAGE, \"LANG_NOT_FOUND\");\n }",
"public PersonalInfo getPersonalInfo() {\n\n return personalInfo;\n }",
"public ProjectInfo getProjectInfo()\n {\n\treturn c_projectInfo;\n }",
"public java.lang.String getPrimaryPrintIndicator(){\n return localPrimaryPrintIndicator;\n }",
"public String getPrimaryCompanyName() {\r\n return primaryCompanyName;\r\n }",
"static ReadShellPreference primaryPreferred() {\n return PRIMARY_PREFERRED;\n }",
"public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}",
"public String getPrimaryKey() {\n return getBasicChar().getPrimaryKey();\n }",
"public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}",
"String getFirstValue()\n {\n String value = \"0\";\n if (miscData.size() > 0)\n {\n String firstVal = miscData.get(0);\n if (firstVal.equals(ERC20_APPROVE_ALL))\n {\n value = \"All\"; //Can't localise here because no App context.\n }\n else\n {\n //convert to big integer\n BigInteger bi = new BigInteger(miscData.get(0), 16);\n value = bi.toString(10);\n }\n }\n return value;\n }",
"public String getPrikey() {\r\n return (String) getAttributeInternal(PRIKEY);\r\n }",
"public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }",
"public Integer getFirstAtt() {\r\n return firstAtt;\r\n }",
"public String getInformation() {\n return mInformation;\n }",
"@Nullable\n public CharSequence getLabel() {\n return mPrimaryLabel;\n }",
"public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"atrfAudUid\", getAtrfAudUid());\n return ret;\n }",
"public String getPrimaryKey() {\n\t\treturn primaryKey;\n\t}",
"public final String getRefPKVal() {\n\t\tString str = this.getRequest().getParameter(\"RefPKVal\");\n\t\tif (str == null) {\n\t\t\treturn \"1\";\n\t\t}\n\t\treturn str;\n\t}",
"public String getPId() {\n return (String)getAttributeInternal(PID);\n }"
] | [
"0.76530755",
"0.67106384",
"0.66668856",
"0.6649322",
"0.65523326",
"0.6541241",
"0.65078014",
"0.6496764",
"0.649328",
"0.6442115",
"0.6394224",
"0.6292538",
"0.6285813",
"0.62699634",
"0.62350136",
"0.61894184",
"0.6186681",
"0.6184003",
"0.616485",
"0.6131844",
"0.6114086",
"0.60859585",
"0.60789204",
"0.60527104",
"0.6046569",
"0.6035486",
"0.6018726",
"0.5984889",
"0.5984889",
"0.5975297",
"0.5975297",
"0.5965745",
"0.5955929",
"0.59343845",
"0.58697975",
"0.58688",
"0.58656466",
"0.5846586",
"0.5844495",
"0.5842459",
"0.5824793",
"0.58180535",
"0.58089465",
"0.58049345",
"0.579685",
"0.5781364",
"0.5781364",
"0.5749034",
"0.5743479",
"0.57433647",
"0.57280886",
"0.5723584",
"0.57140654",
"0.56850314",
"0.56821567",
"0.56675786",
"0.5665569",
"0.5665519",
"0.56635815",
"0.5658292",
"0.5630035",
"0.5612575",
"0.56086147",
"0.56044674",
"0.5597184",
"0.55943185",
"0.5579461",
"0.55696493",
"0.55687755",
"0.55617917",
"0.55272514",
"0.5524778",
"0.5515986",
"0.5513562",
"0.5513562",
"0.5506462",
"0.5499769",
"0.5491191",
"0.54840684",
"0.5476973",
"0.5471065",
"0.54674643",
"0.5466414",
"0.5460541",
"0.5457543",
"0.5455469",
"0.5451607",
"0.5450935",
"0.5448808",
"0.5448131",
"0.54363555",
"0.5427752",
"0.54217666",
"0.5402353",
"0.5396479",
"0.53931546",
"0.53808576",
"0.53795975",
"0.5378808",
"0.5378307"
] | 0.7532694 | 1 |
Set the primaryInfo value. | public ProfileStoreStateInfo withPrimaryInfo(ProfileStoreCollectionInfo primaryInfo) {
this.primaryInfo = primaryInfo;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}",
"public void setPrimaryUser ( final String primaryUser ) {\n this.primaryUser = primaryUser;\n }",
"public void setPrimaryColor(String primaryColor) {\r\n //System.out.print(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = primaryColor;\r\n }",
"public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}",
"public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }",
"public void set_force_primary (int the_force_primary) {\n\t\tforce_primary = the_force_primary;\n\t\treturn;\n\t}",
"void setPrimaryColor(String primaryColor){\n this.primaryColor = primaryColor;\n }",
"public void setPrimaryName(java.lang.String primaryName) {\n this.primaryName = primaryName;\n }",
"@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }",
"public void setInfoPkid(String infoPkid) {\n this.infoPkid = infoPkid == null ? null : infoPkid.trim();\n }",
"public void setPrimaryProduct(java.lang.Boolean primaryProduct) {\n this.primaryProduct = primaryProduct;\n }",
"public void setPrimaryOwnerId(Integer primaryOwnerId) {\n this.primaryOwnerId = primaryOwnerId;\n }",
"public void setPrimaryCuid(java.lang.String primaryCuid) {\n this.primaryCuid = primaryCuid;\n }",
"public void setPrimaryKey(long primaryKey) {\n\t\t_telefonoSolicitudProducto.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_second.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_scienceApp.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGastoCategoria.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryContact(java.lang.String primaryContact) {\n this.primaryContact = primaryContact;\n }",
"public final void setInfo(Info info)\n {\n this.info = info;\n }",
"public void setPrimaryKey(long primaryKey) {\n\t\t_tempNoTiceShipMessage.setPrimaryKey(primaryKey);\n\t}",
"public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }",
"public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dictData.setPrimaryKey(primaryKey);\n\t}",
"public void setMajorPid(Integer majorPid) {\n this.majorPid = majorPid;\n }",
"public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }",
"public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }",
"public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_primarySchoolStudent.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}",
"public ProfileStoreCollectionInfo primaryInfo() {\n return this.primaryInfo;\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_paper.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_keHoachKiemDemNuoc.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_state.setPrimaryKey(primaryKey);\n\t}",
"public void setProductInfo(ProductInfoType productInfo) {\n\t this.productInfo = productInfo;\n\t}",
"public JVMControllerDiagnosticsSnapshotDTOBuilder setPrimaryNode(final Boolean primaryNode) {\n this.primaryNode = primaryNode;\n return this;\n }",
"public String primary() {\n return this.primary;\n }",
"public void setPrimaryKey(String primaryKey) {\n getBasicChar().setPrimaryKey(primaryKey);\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_permissionType.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryStudent_id(java.lang.String primaryStudent_id) {\n\t\t_primarySchoolStudent.setPrimaryStudent_id(primaryStudent_id);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n _sTransaction.setPrimaryKey(primaryKey);\n }",
"public void setIsPrimary(boolean isPrimary);",
"public void setPrimaryKey(int primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGTShipPosition.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n\t\t_forumUser.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryContact(String contact);",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userTracker.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryExec(String primaryExec) {\n this.primaryExec = primaryExec;\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_contentupdate.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_pnaAlerta.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}",
"public void setInfo(int i)\r\n\t{\r\n\t\tinfo = i;\r\n\t}",
"public void setPrimaryKey(int primaryKey);",
"public final void mT__210() throws RecognitionException {\r\n try {\r\n int _type = T__210;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:211:8: ( 'primary=' )\r\n // InternalSpringConfigDsl.g:211:10: 'primary='\r\n {\r\n match(\"primary=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}",
"void setUserInfo(UserInfo info);",
"public void setInfoId(java.lang.String infoId) {\n this.infoId = infoId;\n }",
"public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}",
"public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }",
"@Override\n\tpublic void setPrimaryKey(\n\t\torg.kisti.edison.science.service.persistence.ScienceAppPaperPK primaryKey) {\n\t\t_scienceAppPaper.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userSync.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setProductInfo (java.lang.String productInfo) {\n\t\tthis.productInfo = productInfo;\n\t}",
"public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }",
"public void setIdPro(Integer idPro) {\n this.idPro = idPro;\n }",
"public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"public void setPageInfo(PageInfo pageInfo) {\n this.pageInfo = pageInfo;\n }",
"public Builder setPrimaryText(CharSequence text) {\n this.primaryText = text;\n return this;\n }",
"public void setPIInfo(PIInfo newValue) {\n PIInfo oldValue = _piInfo;\n _piInfo = newValue;\n firePropertyChange(PI_INFO_PROP, oldValue, newValue);\n }",
"public void setInfo(String i)\n {\n info = i;\n }",
"public Builder setPrimaryIcon(Bitmap bitmap){\n this.primaryIcon = bitmap;\n return this;\n }",
"public void setInfo(String info) {\n this.info = info;\n }",
"public void setPrimaryKey(int primaryKey) {\n\t\t_dmHistoryMaritime.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}"
] | [
"0.7087913",
"0.6394838",
"0.6328885",
"0.6314564",
"0.6248605",
"0.6104597",
"0.61018294",
"0.602801",
"0.59632516",
"0.5948551",
"0.59398365",
"0.5937289",
"0.59333694",
"0.5927437",
"0.59033525",
"0.5901134",
"0.5898025",
"0.5885063",
"0.5876618",
"0.58742666",
"0.58016735",
"0.5792374",
"0.5792374",
"0.5778338",
"0.5730631",
"0.57298005",
"0.57080775",
"0.5695469",
"0.5686326",
"0.56854814",
"0.56835353",
"0.5680112",
"0.5670123",
"0.5666702",
"0.565641",
"0.564395",
"0.5642094",
"0.5633088",
"0.5620655",
"0.5614779",
"0.56102675",
"0.5606234",
"0.5605743",
"0.5603702",
"0.55956185",
"0.5584464",
"0.55801666",
"0.5563863",
"0.5560605",
"0.5550055",
"0.55448735",
"0.5534522",
"0.5517495",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.55165184",
"0.54837245",
"0.547992",
"0.5471431",
"0.5470117",
"0.54497",
"0.54477173",
"0.54477173",
"0.54477173",
"0.54436123",
"0.54432225",
"0.5442105",
"0.54334426",
"0.54334396",
"0.5420606",
"0.54174566",
"0.54174566",
"0.54174566",
"0.5398442",
"0.5393382",
"0.53719175",
"0.5371406",
"0.5349863",
"0.53386676",
"0.5335011",
"0.53176814",
"0.5316058",
"0.53126043",
"0.5298235",
"0.5295653",
"0.5295254"
] | 0.6258449 | 4 |
Get the secondaryInfo value. | public ProfileStoreCollectionInfo secondaryInfo() {
return this.secondaryInfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String secondary() {\n return this.secondary;\n }",
"public java.lang.String getSecondary2() {\n return secondary2;\n }",
"public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }",
"public java.lang.String getSecondary1() {\n return secondary1;\n }",
"public String getSecondaryUser () {\n\n return secondaryUser;\n }",
"public java.lang.String getSecondary3() {\n return secondary3;\n }",
"public Resource getSecondaryResource() {\n return secondaryResource;\n }",
"public String getSecondaryLanguage(){\n return sharedPreferences.getString(SECONDARY_LANGUAGE, \"LANG_NOT_FOUND\");\n }",
"public boolean isSecondary()\r\n\t{\treturn this.secondary;\t}",
"@Nullable\n public CharSequence getSecondaryLabel(int index) {\n return mSecondaryLabels.get(index);\n }",
"String getSecondaryColor(){\n return this.secondaryColor;\n }",
"public String getOtherinfo() {\n return otherinfo;\n }",
"@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"@ZAttr(id=668)\n public String getSkinSecondaryColor() {\n return getAttr(Provisioning.A_zimbraSkinSecondaryColor, null);\n }",
"public void setSecondary2(java.lang.String secondary2) {\n this.secondary2 = secondary2;\n }",
"public int getSecondaryVisibility() {\n return mSecondaryView == null ? GONE : mSecondaryView.getVisibility();\n }",
"public final String zzb() {\n return this.secondaryText;\n }",
"public java.lang.String getSecondary5() {\n return secondary5;\n }",
"public java.lang.String getSecondary4() {\n return secondary4;\n }",
"public int getSecondaryColor(int i) {\n return secondary[i];\n }",
"public Integer getSecondaryOwnerId() {\n return secondaryOwnerId;\n }",
"public Map<String, Object> getOtherInfo() {\n return otherInfo;\n }",
"@Override\r\n\t\tpublic V getValue() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"public TextView getSecondaryView() {\n return mSecondaryView;\n }",
"public Integer getSecond(){\n return this.second;\n }",
"@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"public boolean isSecondary() {\n return true;\n }",
"public String getInfo() {\n return this.info;\n }",
"public int getInfo()\r\n\t{\r\n\t\treturn info;\r\n\t}",
"@Override\r\n\t\tpublic S getSecond() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getSecond();\r\n\t\t\t}\r\n\t\t}",
"public int getInfo ()\n\t\t{\n\t\t\treturn info;\n\t\t}",
"public static ReadShellPreference secondary() {\n return SECONDARY;\n }",
"public java.lang.CharSequence get2420DREF02SupervisingProviderSecondaryIdentifier$1() {\n return _2420DREF02SupervisingProviderSecondaryIdentifier;\n }",
"public T2 getSecond() {\n\t\treturn second;\n\t}",
"public java.lang.CharSequence get2420DREF02SupervisingProviderSecondaryIdentifier$1() {\n return _2420DREF02SupervisingProviderSecondaryIdentifier;\n }",
"public String getDescInfo() {\n return descInfo;\n }",
"public java.lang.String getValue2() {\n return this.value2;\n }",
"public ProfileStoreStateInfo withSecondaryInfo(ProfileStoreCollectionInfo secondaryInfo) {\n this.secondaryInfo = secondaryInfo;\n return this;\n }",
"public String getAdditionalInfo() {\r\n return additionalInfo;\r\n }",
"public String getExtra2() {\n return extra2;\n }",
"public String getInfo() {\n\t\treturn null;\r\n\t}",
"@Nullable\n public Drawable getSecondaryIcon(int index) {\n return mSecondaryIcons.get(index);\n }",
"public String getInfo() {\n return info;\n }",
"public String getInfo()\n {\n return info;\n }",
"@Override\n public String getInfo() {\n return this.info;\n }",
"public String getInfo() {\n\t\t\n\t\treturn this.appTda_.getInfo( 0 );\n\t}",
"public int getSecond() {\n\t\treturn second;\n\t}",
"public String getAdditionalInfo() {\n return additionalInfo;\n }",
"public String getAdditionalInfo() {\n return additionalInfo;\n }",
"public V getSecond() {\r\n\t\treturn second;\r\n\t}",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"String getAdditionalInfo();",
"public java.lang.String getSecondaryPrintIndicator(){\n return localSecondaryPrintIndicator;\n }",
"public String getInfo() {\n return null;\n }",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"public void setSecondary(boolean secondary)\r\n\t{\tthis.secondary = secondary;\t}",
"public String getSchool(){\n return info;\n }",
"public S second() {\n return this.second;\n }",
"void setSecondaryColor(String secondaryColor){\n this.secondaryColor = secondaryColor;\n }",
"Information getInfo();",
"public YangEnumeration getSecondaryApnSourceEpcValue() throws JNCException {\n YangEnumeration secondaryApnSourceEpc = (YangEnumeration)getValue(\"secondary-apn-source-epc\");\n if (secondaryApnSourceEpc == null) {\n secondaryApnSourceEpc = new YangEnumeration(\"off\", new String[] { // default\n \"default-subscription\",\n \"local-config\",\n \"off\",\n });\n }\n return secondaryApnSourceEpc;\n }",
"public int getSecond() { return this.second; }",
"public Object getInfo() {\n return info;\n }",
"@NotNull\n public S getSecond() {\n return second;\n }",
"public int getProperty2() {\n return property2_;\n }",
"public PToP.S2InfoRelay getS2InfoRsp() {\n return instance.getS2InfoRsp();\n }",
"public String getComplementary_info() {\n return complementary_info;\n }",
"com.google.privacy.dlp.v2.InfoType getInfoType();",
"public String getMoreInfo() {\n\t\treturn moreInfo;\n\t}",
"public String getMoreInfo() {\n\t\treturn moreInfo;\n\t}",
"@Nullable\n public final CharSequence getLabel2() {\n return mLabel2;\n }",
"public String getSecondWord()\r\n {\r\n return this.aSecondWord; \r\n }",
"public String getHigh() {\n return this.high.toString();\n }",
"public String getSecondLine() {\n return this.secondLine;\n }",
"public long getInformationSystem() {\n return informationSystem;\n }",
"public String getInfoString() {\n/* 140 */ return this.info;\n/* */ }",
"public String getAnotherValue()\n {\n return this.anotherValue;\n }",
"public String getCol2value() {\n return col2value;\n }",
"public static MountInfo getSecondaryStorageInfo() {\n File sd = getRemovableStorage();\n if (sd == null) {\n return null;\n };\n try {\n MountInfo mountInfo = new MountInfo();\n mountInfo.mpoint = sd.getAbsolutePath();\n StatFs statFs = new StatFs(mountInfo.mpoint);\n long total = ((long) statFs.getBlockCount() * (long) statFs.getBlockSize());\n long free = (statFs.getAvailableBlocks() * (long) statFs.getBlockSize());\n mountInfo.used = total - free;\n mountInfo.free = free;\n mountInfo.total = total;\n return mountInfo;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public void setSecondary1(java.lang.String secondary1) {\n this.secondary1 = secondary1;\n }",
"@Override\r\n\tpublic String getInfo() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getInfo() {\n\t\treturn null;\r\n\t}",
"public String getLoseinfo() {\n return loseinfo;\n }",
"public T getSecond() {\n\t\t\treturn t;\n\t\t}",
"public Position getSecond() {\n return positions[1];\n }",
"public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}",
"static ReadShellPreference secondaryPreferred() {\n return SECONDARY_PREFERRED;\n }",
"public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }",
"public int getData2() {\n return data2_;\n }",
"public int getData2() {\n return data2_;\n }",
"public String getInfo() {\n Object ref = info_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public PToP.S2InfoReq getS2InfoReq() {\n return instance.getS2InfoReq();\n }",
"String getInfo();",
"public String getAnotherDetail();",
"public java.lang.String getFld02ResData () {\n\t\treturn fld02ResData;\n\t}",
"public int getProperty2() {\n return property2_;\n }",
"@Override\n\tprotected void extractSecondaryConcept() {\n\t\tthis.finalTokenPos = 2;\n\n\t\tString currentToken = getCurrentToken();\n\t\tif (isVariableConceptName(currentToken)) {\n\t\t\t//This is a token variable (e.g. #C) so store it accordingly\n\t\t\tthis.secConVariable = currentToken;\n\t\t} else {\n\t\t\t//This is a normal concept name so defer to the normal parent processing\n\t\t\tsuper.extractSecondaryConcept();\n\t\t}\n\t}",
"@Override\n public String getInfo(){\n return info;\n }"
] | [
"0.7887718",
"0.7521613",
"0.68877393",
"0.6824989",
"0.66237074",
"0.6391504",
"0.6309593",
"0.6298504",
"0.6279711",
"0.62195915",
"0.6217635",
"0.6120146",
"0.6053906",
"0.60280925",
"0.6006692",
"0.59888196",
"0.591023",
"0.5884671",
"0.58677316",
"0.58174413",
"0.58165294",
"0.58018583",
"0.5785797",
"0.5769684",
"0.5716418",
"0.57061744",
"0.57061744",
"0.56997836",
"0.5696757",
"0.56925464",
"0.56748116",
"0.5660326",
"0.5626303",
"0.5613163",
"0.560735",
"0.55739135",
"0.55700517",
"0.55470175",
"0.55385685",
"0.55037606",
"0.5501085",
"0.5497422",
"0.5495602",
"0.5492402",
"0.54752123",
"0.5455603",
"0.54474217",
"0.5444231",
"0.54418546",
"0.54418546",
"0.5423335",
"0.5419813",
"0.5409346",
"0.5408138",
"0.53891766",
"0.53732723",
"0.53665775",
"0.53552514",
"0.5346408",
"0.533971",
"0.53308845",
"0.5314923",
"0.5278269",
"0.52664477",
"0.5260211",
"0.5256642",
"0.524121",
"0.5228326",
"0.522137",
"0.5218191",
"0.52100253",
"0.52100253",
"0.52026224",
"0.5197441",
"0.51831007",
"0.5178921",
"0.5177924",
"0.5169887",
"0.51693887",
"0.5168327",
"0.5164741",
"0.51571435",
"0.5148109",
"0.5148109",
"0.5139255",
"0.5137793",
"0.51291263",
"0.51236105",
"0.51224625",
"0.5121181",
"0.51126933",
"0.51126933",
"0.5110798",
"0.51084155",
"0.51012915",
"0.5097302",
"0.5085073",
"0.50836414",
"0.5083233",
"0.5082289"
] | 0.7614152 | 1 |
Set the secondaryInfo value. | public ProfileStoreStateInfo withSecondaryInfo(ProfileStoreCollectionInfo secondaryInfo) {
this.secondaryInfo = secondaryInfo;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSecondary(boolean secondary)\r\n\t{\tthis.secondary = secondary;\t}",
"void setSecondaryColor(String secondaryColor){\n this.secondaryColor = secondaryColor;\n }",
"public void setSecondary2(java.lang.String secondary2) {\n this.secondary2 = secondary2;\n }",
"public void setSecondaryUser ( final String secondaryUser ) {\n this.secondaryUser = secondaryUser;\n }",
"public void setSecondary1(java.lang.String secondary1) {\n this.secondary1 = secondary1;\n }",
"public void set2420DREF02SupervisingProviderSecondaryIdentifier$1(java.lang.CharSequence value) {\n this._2420DREF02SupervisingProviderSecondaryIdentifier = value;\n }",
"@ZAttr(id=668)\n public void setSkinSecondaryColor(String zimbraSkinSecondaryColor) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinSecondaryColor, zimbraSkinSecondaryColor);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public net.explorys.samhat.z12.r837.X837Pro_2420D_REF_SupervisingProviderSecondaryIdentification.Builder set2420DREF02SupervisingProviderSecondaryIdentifier$1(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this._2420DREF02SupervisingProviderSecondaryIdentifier = value;\n fieldSetFlags()[1] = true;\n return this; \n }",
"public final void setInfo(Info info)\n {\n this.info = info;\n }",
"public Builder setSecondaryText(CharSequence text) {\n this.secondaryText = text;\n return this;\n }",
"public void setOtherInfo(Map<String, Object> otherInfo) {\n this.otherInfo = TimelineServiceHelper.mapCastToHashMap(otherInfo);\n }",
"public ProfileStoreCollectionInfo secondaryInfo() {\n return this.secondaryInfo;\n }",
"public String secondary() {\n return this.secondary;\n }",
"public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }",
"@ZAttr(id=668)\n public Map<String,Object> setSkinSecondaryColor(String zimbraSkinSecondaryColor, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinSecondaryColor, zimbraSkinSecondaryColor);\n return attrs;\n }",
"public void setOtherinfo(String otherinfo) {\n this.otherinfo = otherinfo;\n }",
"public Builder setSecondaryIcon(Bitmap bitmap){\n this.secondaryIcon = bitmap;\n return this;\n }",
"public void setSecondaryCategoryid(String secondaryCategoryid) {\r\n this.secondaryCategoryid = secondaryCategoryid == null ? null : secondaryCategoryid.trim();\r\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"@Override\n public void setInfo(String s) {\n this.info = s;\n\n }",
"public java.lang.String getSecondary2() {\n return secondary2;\n }",
"public void setInfo(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value) {\n this.info = value;\n }",
"public void setInfo(int i)\r\n\t{\r\n\t\tinfo = i;\r\n\t}",
"public void putSecondaryLanguage(String value){\n editor.putString(SECONDARY_LANGUAGE, value);\n editor.apply();\n }",
"public void setInfo(Object o) {\n info = o;\n }",
"public void setInfo (int n)\n\t\t{\n\t\t\tinfo = n ;\n\t\t}",
"public void setInfo(String i)\n {\n info = i;\n }",
"public boolean isSecondary()\r\n\t{\treturn this.secondary;\t}",
"public void setSecondaryOwnerId(Integer secondaryOwnerId) {\n this.secondaryOwnerId = secondaryOwnerId;\n }",
"void setUserInfo(UserInfo info);",
"public void setInfo(String info) {\n this.info = info;\n }",
"public void setSecondaryApnSourceEpcValue(String secondaryApnSourceEpcValue)\n throws JNCException {\n setSecondaryApnSourceEpcValue(new YangEnumeration(secondaryApnSourceEpcValue, new String[] {\n \"default-subscription\",\n \"local-config\",\n \"off\",\n }));\n }",
"public void setSecondary5(java.lang.String secondary5) {\n this.secondary5 = secondary5;\n }",
"public void setDescInfo(String descInfo) {\n this.descInfo = descInfo == null ? null : descInfo.trim();\n }",
"public void setSecond(V second) {\r\n\t\tthis.second = second;\r\n\t}",
"private void setS2InfoRsp(PToP.S2InfoRelay value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 25;\n }",
"public void setProductInfo(ProductInfoType productInfo) {\n\t this.productInfo = productInfo;\n\t}",
"public void setSecondaryApnSourceEpcValue(YangEnumeration secondaryApnSourceEpcValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"secondary-apn-source-epc\",\n secondaryApnSourceEpcValue,\n childrenNames());\n }",
"public void setPersonalInfo(PersonalInfo personalInfo) {\n\n this.personalInfo = personalInfo;\n }",
"private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }",
"public void setSecond(@NotNull S second) {\n Condition.argNotNull(\"second\", second);\n this.second = second;\n }",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"public void setSecondary4(java.lang.String secondary4) {\n this.secondary4 = secondary4;\n }",
"public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;",
"public void setInfoId(java.lang.String infoId) {\n this.infoId = infoId;\n }",
"public void setInformationSystem(long informationSystem) {\n this.informationSystem = informationSystem;\n }",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"public void setMyInfo( String toSet ) {\n\t\tmyScoreField.setText( toSet );\n\t}",
"public void setSubtitle(String subtitle) {\n m_subTitle.setText(subtitle);\n }",
"public void setProductInfo (java.lang.String productInfo) {\n\t\tthis.productInfo = productInfo;\n\t}",
"private void setInfo(String newinfo){\n SFNode textField = (SFNode)getField(\"text\");\n Node textNode = (Node)textField.getValue();\n \n\n // Get the \"string\" exposed field of the Text node\n MFString stringField = (MFString)textNode.getExposedField(\"string\");\n\n // Get the name of the user. This is a privileged method call that\n // will throw an AccessControlException when we do not give this\n // script the right to read that property.\n //String username = System.getProperty(\"user.name\");\n\n // Write the user name into the \"string\" field of the Text node\n //stringField.set1Value(1, username);\n stringField.set1Value(0, newinfo);\n }",
"protected final void setExtraInfo(final String info) {\n\t\tif (info == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid extra info\");\n\t\t}\n\t\textras = info;\n\t}",
"protected void setInfoFile(String[] info){\n\n }",
"public void secondarySetPeople(com.hps.july.persistence.People aPeople) throws java.rmi.RemoteException {\n\tthis.getPeopleLink().secondarySet(aPeople);\n}",
"public String getSecondaryUser () {\n\n return secondaryUser;\n }",
"public void secondaryHit(Hit hit) {\n this.setSecondaryHit(hit);\n this.getFlags().flag(Flag.HIT_2);\n\n if (this instanceof Player) {\n Player player = (Player) this;\n\n player.getSkills().getTrainable()[Skill.HITPOINTS.ordinal()].decreaseLevel(player.getPrimaryHit().getDamage());\n SkillManager.getSingleton().refresh(player, Skill.HITPOINTS);\n }\n }",
"public void setBiblioInfo(String _biblio_info) { biblio_info = _biblio_info; }",
"public void setInfoText(String infoText);",
"@Override\n\tpublic void setPlayerTwoScore(int playerTwoScore) {\n\t\tsuper.setPlayerTwoScore(playerTwoScore);\n\t}",
"public void setSubtitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public X837Pro_2420D_REF_SupervisingProviderSecondaryIdentification() {}",
"public net.explorys.samhat.z12.r837.X837Pro_2420D_REF_SupervisingProviderSecondaryIdentification.Builder clear2420DREF02SupervisingProviderSecondaryIdentifier$1() {\n _2420DREF02SupervisingProviderSecondaryIdentifier = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public boolean isSecondary() {\n return true;\n }",
"public void setSecond(double value) {\n this.second = value;\n }",
"public LLDPOrganizationalTLV setInfoString(final String infoString) {\n final byte[] infoStringBytes = infoString.getBytes(StandardCharsets.UTF_8);\n return this.setInfoString(infoStringBytes);\n }",
"@Override\n\tpublic void setSubtitle(int resId) {\n\t\t\n\t}",
"public void setAdditionalInfo(String additionalInfo) {\r\n this.additionalInfo = additionalInfo;\r\n }",
"public void setSecondaryVisibility(int visibility) {\n if (mSecondaryView != null && mSecondaryView.getVisibility() != visibility) {\n mSecondaryView.setVisibility(visibility);\n adjustPrimaryState();\n }\n }",
"public LLDPOrganizationalTLV setInfoString(final byte[] infoString) {\n if (infoString.length > LLDPOrganizationalTLV.MAX_INFOSTRING_LENGTH) {\n throw new IllegalArgumentException(\n \"The length of infoString cannot exceed \"\n + LLDPOrganizationalTLV.MAX_INFOSTRING_LENGTH);\n }\n this.infoString = Arrays.copyOf(infoString, infoString.length);\n return this;\n }",
"public void setInformation(String information);",
"public void setInfo(final URL info) {\n this.info = info;\n }",
"String getSecondaryColor(){\n return this.secondaryColor;\n }",
"protected void setSecondPlayer(TennisPlayer tennisPlayer) {\r\n this.secondPlayer = tennisPlayer;\r\n }",
"public void changeSubtitle (final Path newSubtitle) {\n\t\tsetModelProperty(SUBTITLE_PROPERTY, newSubtitle);\n\t}",
"public void setMessageInfo(String messageInfo);",
"public void setAdditionalInfo(String aAdditionalInfo) {\n additionalInfo = aAdditionalInfo;\n }",
"void setUserInfo(final UserInfo userInfo);",
"public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }",
"public void setInfo(InformationField i)\n\tthrows SdpException {\n\tif (i == null)\n\t throw new SdpException(\"The info is null\");\n\tthis.informationField = i;\n }",
"public void setSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"@Override\r\n\t\tpublic S setSecond(S second) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.setSecond(second);\r\n\t\t\t}\r\n\t\t}",
"public void setGradeInfo(GradeInfo[] gradeInfo) {\n this.gradeInfo = gradeInfo;\n }",
"public void addOtherInfo(Map<String, Object> otherInfo) {\n this.otherInfo.putAll(otherInfo);\n }",
"boolean setInfo();",
"public void setComplementary_info(String complementary_info) {\n this.complementary_info = complementary_info;\n }",
"public void setSecond(T tt) {\n\t\t\tthis.t = tt;\n\t\t}",
"public void setUriInfo(UriInfo uriInfo) {\n this._uriInfo = uriInfo;\n }",
"private void setMinor(long value) {\n bitField0_ |= 0x00000002;\n minor_ = value;\n }",
"public synchronized void setContactInfo(final Contact newValue) {\n checkWritePermission();\n contactInfo = newValue;\n }",
"private void setS2InfoReq(PToP.S2InfoReq value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 17;\n }",
"@Override\r\n\t\tpublic E setSecond(E second) {\n\t\t\treturn pair.setSecond(second);\r\n\t\t}",
"public void setLocationInfo(Location locationInfo) {\n\tthis.locationInfo = locationInfo;\n}",
"public void setLocationInfo(boolean locationInfo) {\n this.locationInfo = locationInfo;\n }",
"public void secondarySetPosition(com.hps.july.persistence.Position arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetPosition(arg0);\n }",
"public void setPathInfo(String pathInfo) {\n this.pathInfo = pathInfo;\n }",
"protected void setTestInfo(final String testInfo) {\n assertActivityNotNull();\n try {\n runTestOnUiThread(new Runnable() {\n @Override\n public void run() {\n mActivity.setTestInfo(testInfo);\n }\n });\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n }",
"public void setLoseinfo(String loseinfo) {\n this.loseinfo = loseinfo;\n }",
"private void updateTeacherSecurityInfo() {\n\t\t\n\t\tteacher.setPassword(tOldPasswordPF.getPassword());\n\t\tteacher.setSecuirtyAnswer1(tSecurityQ1TF.getText());\n\t\tteacher.setSecurityQuestion1((String)tSecurityList1.getSelectedItem());\n\t\tteacher.setSecurityAnswer2(tSecurityQ2TF.getText());\n\t\tteacher.setSecurityQuestion2((String)tSecurityList1.getSelectedItem());\n\t\t\n\t\t//Update Teacher security information in database\n\t\t\n\t}",
"public Resource getSecondaryResource() {\n return secondaryResource;\n }",
"public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n }"
] | [
"0.6776382",
"0.6618872",
"0.6615341",
"0.6177702",
"0.60824114",
"0.5999895",
"0.5850767",
"0.569381",
"0.5676053",
"0.56469566",
"0.5635778",
"0.56350404",
"0.55915254",
"0.55756783",
"0.5540818",
"0.5518379",
"0.55067945",
"0.54498017",
"0.5414436",
"0.5368005",
"0.533886",
"0.5326456",
"0.5319093",
"0.5300565",
"0.52921176",
"0.5291566",
"0.524979",
"0.52475935",
"0.51960987",
"0.51827025",
"0.51605725",
"0.5155042",
"0.51449895",
"0.5135632",
"0.5127852",
"0.511004",
"0.5103585",
"0.5102866",
"0.50932974",
"0.5069739",
"0.506321",
"0.5045575",
"0.5038936",
"0.50183856",
"0.4998484",
"0.49963307",
"0.49914002",
"0.49891156",
"0.49683857",
"0.49664995",
"0.49661323",
"0.49652955",
"0.49449527",
"0.49440283",
"0.493753",
"0.49372998",
"0.4936221",
"0.4918021",
"0.49072546",
"0.48931488",
"0.48911294",
"0.48909017",
"0.48753628",
"0.4872194",
"0.48644555",
"0.485153",
"0.4849248",
"0.4846156",
"0.48404795",
"0.48401192",
"0.48357996",
"0.48356208",
"0.48246944",
"0.47926784",
"0.47830555",
"0.4775617",
"0.47751814",
"0.47721034",
"0.47701386",
"0.47673506",
"0.4764391",
"0.4755153",
"0.4738817",
"0.4730673",
"0.47244424",
"0.47234625",
"0.4722227",
"0.47122288",
"0.47106305",
"0.47089314",
"0.4704624",
"0.47014913",
"0.47001132",
"0.46961933",
"0.46961603",
"0.46955025",
"0.46920243",
"0.4669807",
"0.4668433",
"0.4654861"
] | 0.6165544 | 4 |
Get customer Insights instance id associated with this object. | public UUID instanceId() {
return this.instanceId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public int getInstanceId(){\n\t\treturn this._instanceId;\n\t}",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public Integer getCustomerID() {\n return customerID;\n }",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public String getInstanceId() {\n return this.instanceId;\n }",
"public String getInstanceId() {\n return this.instanceId;\n }",
"public Long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }",
"public int getCustomerId() {\n\t\treturn customerId;\n\t}",
"public int getCustomerID() {\n\t\treturn customerID;\n\t}",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"int getIdInstance();",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"public int getCustomerID() {\n return customerID;\n }",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public Long getIncidentId();",
"String getCustomerID();",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public String getInstId() {\r\n return instId;\r\n }",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public Long getCustId() {\n return custId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getCustId() {\n return custId;\n }",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public String getInstanceId() {\r\n\t\treturn instanceId;\r\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"public InstanceConfigId getId() {\n return id;\n }",
"public int toInt(){\n\t\treturn CustomerId;\n\t}",
"@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }",
"public final String getIdentity() {\n return this.identity;\n }",
"public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }",
"public String getInstanceIdentifier();",
"public String getCustID()\n\t{\n\t\treturn custID;\n\t}",
"public String getIncidentId() {\n return this.incidentId;\n }",
"public Integer getCustomer() {\n return customer;\n }",
"public String getInstanceNumber()\n {\n return m_instanceNumber;\n }",
"public byte[] getInstanceId() {\n if (byteInstanceID == null) {\n final Device device = Device.getInstance();\n final byte[] deviceid = device.getWDeviceId();\n byteInstanceID = Encryption.SHA1(deviceid);\n }\n return byteInstanceID;\n }",
"public String getCustomerid() {\n return customerid;\n }",
"public String getObjectId() {\n switch (getObjectType()) {\n case Campaign:\n return campaignId;\n case Ad:\n return adId;\n case AdSet:\n return adSetId;\n case Account:\n return accountId;\n default:\n throw new IllegalArgumentException(\"Unknown object type\");\n }\n }",
"public int getCustomerId() \n {\n return customerId;\n }",
"public int getIdentity(){\r\n\t\treturn identity;\r\n\t}",
"public int getCustId(){\n return this.custId;\r\n }",
"public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}",
"String getProcessInstanceID();",
"public String getInstanceId();",
"public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }",
"@Nullable\n abstract String getInstanceId();",
"int getInstanceId();",
"int getInstanceId();",
"int getInstanceId();",
"public Integer getClassId() {\n return classId;\n }",
"public Integer getClassId() {\r\n return classId;\r\n }",
"@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }",
"public Long getVmInstanceId() {\n return vmInstanceId;\n }",
"public String getIncidentId() {\n\t\treturn incidentId;\n\t}",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"String getIdentityId();",
"@Override\n public String provideCustomerConnectionId( )\n {\n return _signaleur.getGuid( );\n }",
"public java.lang.String getInstanceGuid() {\r\n return instanceGuid;\r\n }",
"public int getClientID() {\r\n\t\treturn this.clientID;\r\n\t}",
"long getInstanceID();",
"public int getInstanceID()\n {\n return super.getPersistenceID();\n }",
"public Object getID()\n {\n return data.siObjectID;\n }",
"public String getIdentity() {\n\t\treturn identity;\n\t}",
"public int getEnterId() {\n return enterId_;\n }",
"public int getEnterId() {\n return enterId_;\n }",
"public int getEnterId() {\n return enterId_;\n }",
"public int getEnterId() {\n return enterId_;\n }",
"public UUID getXMsClientRequestId() {\n return this.xMsClientRequestId;\n }",
"int getEnterId();",
"int getEnterId();"
] | [
"0.64660704",
"0.64514905",
"0.6425787",
"0.6368884",
"0.6368884",
"0.6368884",
"0.6368884",
"0.6368884",
"0.6368884",
"0.6368884",
"0.631052",
"0.6226819",
"0.61503685",
"0.60912246",
"0.60612345",
"0.60457593",
"0.60457593",
"0.6038769",
"0.60337156",
"0.60337156",
"0.6016314",
"0.6016314",
"0.6009863",
"0.6009863",
"0.6006242",
"0.59937304",
"0.59937304",
"0.59854084",
"0.5982341",
"0.5955492",
"0.59440327",
"0.5934504",
"0.5922238",
"0.5917764",
"0.591598",
"0.59116405",
"0.59066284",
"0.58985",
"0.58985",
"0.58985",
"0.58985",
"0.58985",
"0.58985",
"0.5890865",
"0.5887946",
"0.5864695",
"0.58532584",
"0.58532584",
"0.58532584",
"0.5852454",
"0.5851028",
"0.58216447",
"0.58122545",
"0.58122545",
"0.5758142",
"0.5638218",
"0.56353813",
"0.560867",
"0.5600357",
"0.5593147",
"0.55819637",
"0.55678517",
"0.5565265",
"0.556171",
"0.5558972",
"0.55512136",
"0.5541776",
"0.5521573",
"0.55096287",
"0.5491002",
"0.54815894",
"0.5462631",
"0.5457328",
"0.5441901",
"0.54418534",
"0.5433225",
"0.5422918",
"0.5422918",
"0.5422918",
"0.5416617",
"0.5405364",
"0.5393531",
"0.53889656",
"0.5388728",
"0.5382148",
"0.5378973",
"0.53718626",
"0.53632826",
"0.5360184",
"0.535992",
"0.53547615",
"0.5353943",
"0.5346464",
"0.53306323",
"0.53306323",
"0.53306323",
"0.53306323",
"0.53246427",
"0.5313623",
"0.5313623"
] | 0.6029463 | 20 |
Set customer Insights instance id associated with this object. | public ProfileStoreStateInfo withInstanceId(UUID instanceId) {
this.instanceId = instanceId;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public void setCustomer(Integer customer) {\n this.customer = customer;\n }",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"void setIdentityId(String identityId);",
"void setInstanceId(int instanceId);",
"void setInstanceId(int instanceId);",
"void setInstanceId(int instanceId);",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setInstanceId(int instanceId){\n\t\tthis._instanceId = instanceId;\n\t}",
"public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }",
"public void setCustID(String custID) {\r\n this.custID = custID;\r\n }",
"@Override\n public void setIdInstagram(String idInstagram) {\n this.idInstagram = idInstagram;\n }",
"public void setCurrentById(BigDecimal id){\n Customer customer = ejbFacade.find(id);\n current = customer;\n }",
"public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }",
"public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}",
"public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }",
"protected void setCustomer(Customer customer) {\n this.customer = customer;\n }",
"public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }",
"void setInstId(String instId);",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public int getCustomerId() {\n\t\treturn customerId;\n\t}",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"public Long getCustomerId() {\n return customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }",
"public void setId(final int identity) {\n this.id = identity;\n }",
"public static void setInstance(IdServer inInstance) {\n\t\tserver = inInstance;\n\t}",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"public void setMemberId(Integer value) {\n set(2, value);\n }",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public int getCustomerID() {\n\t\treturn customerID;\n\t}",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public void setInstId(String instId) {\r\n this.instId = instId == null ? null : instId.trim();\r\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"public Integer getCustomerID() {\n return customerID;\n }",
"public void setInstanceId(String instanceId);",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"@Override\n public void setClientId(int clientId) {\n _entityCustomer.setClientId(clientId);\n }",
"public void setM_AttributeSetInstance_ID(int M_AttributeSetInstance_ID) {\n\t\tif (M_AttributeSetInstance_ID <= 0)\n\t\t\tset_Value(\"M_AttributeSetInstance_ID\", null);\n\t\telse\n\t\t\tset_Value(\"M_AttributeSetInstance_ID\", new Integer(\n\t\t\t\t\tM_AttributeSetInstance_ID));\n\t}",
"public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }",
"public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}",
"public void setInstanceId(String instanceId) {\n this.instanceId = instanceId;\n }",
"public void setInstanceId(String instanceId) {\n this.instanceId = instanceId;\n }",
"public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"public String getCustomerid() {\n return customerid;\n }",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }",
"public io.confluent.developer.InterceptTest.Builder setReqCustid(int value) {\n validate(fields()[0], value);\n this.req_custid = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setInstanceId(String InstanceId) {\n this.InstanceId = InstanceId;\n }",
"public void setInstanceId(String InstanceId) {\n this.InstanceId = InstanceId;\n }",
"public void setInstanceId(String InstanceId) {\n this.InstanceId = InstanceId;\n }",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"public int getCustomerID() {\n return customerID;\n }",
"public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}",
"public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public void setCustomer(final Customer customer) {\n\t\tthis.customer = customer;\n\t}",
"public void setCustomerCatId(int v) throws TorqueException\n {\n \n if (this.customerCatId != v)\n {\n this.customerCatId = v;\n setModified(true);\n }\n \n \n if (aCustomerCategory != null && !(aCustomerCategory.getCustomerCatId() == v))\n {\n aCustomerCategory = null;\n }\n \n }",
"void updateCustomerById(Customer customer);",
"public void setCustId(Long custId) {\n\t\tsetField(\"custId\", custId);\n\t}",
"public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }",
"public void setId(String idIn) {\n this.id = idIn;\n }",
"public void setCustomer(com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer customer) {\r\n this.customer = customer;\r\n }",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setInstanceMetadataId(InstanceMetadataId imi)\n\t{\n\t\tthis.imi = imi;\n\t}",
"public void setId(Long objectId) {\r\n\t\tthis.objectId = objectId;\r\n\t}",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public Customer(int id) {\n\t\tthis.id = id;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }"
] | [
"0.62881947",
"0.60387975",
"0.59754837",
"0.58916295",
"0.588489",
"0.58460474",
"0.5745659",
"0.5689296",
"0.5686535",
"0.5667318",
"0.5667318",
"0.5667318",
"0.5606011",
"0.5606011",
"0.55979615",
"0.5514695",
"0.54857445",
"0.5483531",
"0.54581493",
"0.545637",
"0.54432523",
"0.5416439",
"0.541334",
"0.5398532",
"0.5397487",
"0.53919286",
"0.53913987",
"0.5376518",
"0.5350274",
"0.53408855",
"0.53408855",
"0.533713",
"0.5310836",
"0.5297194",
"0.5283938",
"0.527107",
"0.52644247",
"0.5258931",
"0.52411634",
"0.52343035",
"0.52343035",
"0.5218109",
"0.52124816",
"0.5197538",
"0.5160943",
"0.51545846",
"0.5151371",
"0.5151371",
"0.5148713",
"0.51461697",
"0.51461697",
"0.51461697",
"0.51461697",
"0.51461697",
"0.51461697",
"0.5131128",
"0.51285344",
"0.5125542",
"0.5121181",
"0.50969183",
"0.5081984",
"0.50802827",
"0.50688004",
"0.50688004",
"0.5060595",
"0.50565845",
"0.50209403",
"0.49949536",
"0.49925497",
"0.49894875",
"0.4982856",
"0.49815935",
"0.4979835",
"0.4979835",
"0.4979835",
"0.49674013",
"0.49628782",
"0.4962601",
"0.49548352",
"0.49545124",
"0.49545124",
"0.49545124",
"0.49545124",
"0.49382585",
"0.49362773",
"0.49314696",
"0.49298677",
"0.49282783",
"0.49251455",
"0.49173447",
"0.49031174",
"0.48947278",
"0.48947278",
"0.4884384",
"0.48765987",
"0.4875321",
"0.4875321",
"0.4875316",
"0.48730466",
"0.48730466",
"0.4863431"
] | 0.0 | -1 |
/ Returns concats the given character to the given name until reached the given string length. | public static String bufferLeft(char c, int i, String name) {
while (name.length() < i) {
name = c + name;
}
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n\n String name = \"Gokyuzum\";\n int charCount = name.length();\n int lastCharIndex = charCount-1;\n\n // my condition is x <= charCount - 2 or lastCharIndex-1\n\n for (int x = 0; x <= lastCharIndex-1; x += 2){\n System.out.println(name.substring(x,x+2));\n }\n\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Type your name: \");\n String name = scanner.nextLine();\n int i = 0;\n while((i<3)&& name.length()>3){\n\n System.out.println((i+1)+\". \"+\"character: \" + name.charAt(i));\n i++;\n }\n\n }",
"public static String buildString(char character, int length) {\r\n\t\tStringBuilder sb = new StringBuilder(length);\r\n\t\tfor(int index = length - 1; index >= 0; index--)\r\n\t\t\tsb.append(character);\r\n\t\treturn sb.toString();\r\n\t}",
"public static void main(String[] args) {\n String name = \"Georgesa\";\n int charCount = name.length();\n int lastCharIndex = charCount - 1;\n\n\n // System.out.println( name.substring (0,2));\n // System.out.println( name.substring (2,4));\n // System.out.println( name.substring (4,6));\n //System.out.println( name.substring (6,8));\n\n\n }",
"private static void capMid(String name){\n int mid= name.length()/2;\n System.out.print(name.toUpperCase().substring(mid,(mid+1)));\n }",
"private static void last(String name){\n int last= name.length();\n System.out.print(name.toLowerCase().substring(last-1));\n }",
"public static String truncate(String name, int length) {\n return normalizer.truncateName(defaultRule, name, length);\n }",
"private static String makeName(int len, Random r) {\n StringBuffer sb = new StringBuffer();\n sb.append(start.get(r.nextInt(start.size())));\n while (sb.length() < len)\n sb.append(part.get(r.nextInt(part.size())));\n return sb.toString();\n }",
"public String newName(int maxLength) {\n return newName(maxLength / 2, maxLength);\n }",
"public static String substring(String s, int index, int length) {\r\tString result = \"\";\r\r\tfor (int i = 0; i < length; i++)\r\t result += s.charAt(index + i);\r\r\treturn result;\r\r }",
"private static String padActorName(String name) {\n\t\tif(name.length() >= 29) {\n\t\t\tname = name.substring(0, 25);\n\t\t\tname += \"...\";\n\t\t}\n\t\twhile(name.length() != 28) {\n\t\t\tname += \" \";\n\t\t}\n\t\treturn name;\n\t}",
"private static String pad(String s, int len, char j) {\n\n\t\tif (s.length() >= len) {\n\t\t\treturn s;\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tfor (int i = 0; i < len - s.length(); ++i) {\n\t\t\tsb.append(j);\n\t\t}\n\t\tsb.append(s);\n\n\t\treturn sb.toString();\n\t}",
"public static String expandString(int count, String s){\n String ss = \"\";\n for(int i=0; i<count; i++)\n ss += s;\n return ss;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t String word = scan.nextLine();\r\n\t\tint a = word.length();\r\n\t\tint lastCar= a-1; // last index number\r\n\t\t\r\n\t\tchar FirstLetter = word.charAt(0); // first character 0\r\n\t\t\r\n\t\tchar LastLetter = word.charAt(a-1);\r\n\t\t\r\n\t\tString Concat = LastLetter+word.substring(1,lastCar)+FirstLetter;\r\n\t\t\r\n\t\tSystem.out.println(Concat);\r\n\t}",
"private String spacer(int length, char spacer) {\n // Do fancy centering\n StringBuilder sb = new StringBuilder();\n Stream.generate(() -> spacer).limit(length).forEach(sb::append);\n return sb.toString();\n }",
"private String centerName(int totalLength) {\n\t\tString name = getHotel().getName().toUpperCase();\n\t\tint spaces = totalLength - name.length();\n\t\tif (!(spaces % 2 == 1)) {\n\t\t\tspaces--;\n\t\t\tname += \" \";\n\t\t}\n\t\tfor (int i = 0; i < spaces / 2; i++) {\n\t\t\tname = \" \" + name + \" \";\n\t\t}\n\t\treturn \" \" + name;\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner (System.in);\n System.out.println(\"Enter your word here please\");\n String str = input.nextLine();\n int length = str.length();\n\n System.out.println(str.substring(length-1)+ str + ( str.substring(length-1)));\n\n }",
"public static String fillupStringToCertainLength(final String sourceString, int size, char fillupchar) {\n\t\tStringBuilder result = new StringBuilder(size);\n\t\tString string = sourceString;\n\t\tif (string == null)\n\t\t\tstring = \"\";\n\t\tStringBuilder fillup = new StringBuilder();\n\t\tfor (int i = 0; i < size - string.length(); i++) {\n\t\t\tfillup.append(fillupchar);\n\t\t}\n\t\tresult.append(fillup).append(string);\n\t\treturn result.toString();\n\n\t}",
"public static String completeChaine(String p_in, char c, int n) {\n\n\t\t\n\t\tString ret=p_in\t;\n\t\tif (ret!=null){\n\t\t\tfor (int i=0;i<n-p_in.length();i++){\n\t\t\t\tret = c + ret;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"private final static String truncate( String s, int slength ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [slength];\n\n\n if (slength < ca.length) { // if string is longer than allowed\n\n for ( int i=0; i<slength; i++ ) {\n ca2[i] = ca[i];\n } // end for\n\n } else {\n\n return (s);\n }\n\n return new String (ca2);\n\n }",
"public void addCharToName(char c) {\n \t\tif (state == 4) {\n \t\t\t/*\n \t\t\t * if (playerName.equals(\"PLAYER\")) { playerName = \"\"; }\n \t\t\t */\n \t\t\tif (playerName.length() < 16) {\n \t\t\t\tplayerName = playerName + c;\n \t\t\t}\n \t\t}\n \n \t}",
"public static String shorten(String s, int len) {\n\t\tif (s==null) return null;\n\t\tif (s.length()>len) s=s.substring(0, len-2)+\"..\";\n\t\treturn s;\n\t}",
"public static String lpad(int i, int length, char c) {\n StringBuffer buf = new StringBuffer(String.valueOf(i));\n while (buf.length() < length) {\n buf.insert(0, c);\n }\n return buf.toString();\n }",
"public String endUp(String str) {\n if (str.length() <= 3) {\n return str.toUpperCase();\n } else {\n return str.substring(0, str.length()-3) + str.substring(str.length()-3).toUpperCase();\n }\n}",
"private String shiftingBack(String s) {\n int diff = s.charAt(0) - 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) - 'a' >= diff) {\n char c = (char) (s.charAt(i) - diff);\n sb.append(c);\n } else {\n char c = (char) (s.charAt(i) - diff + 26);\n sb.append(c);\n }\n }\n return new String(sb);\n }",
"List<String> getAllNamesTrunc(int maxLength);",
"public String getCutString(final String s, final int i) {\n final String emptyString = \"\";\n\n final String dotted = \"...\";\n if (s.length() > (i + dotted.length())) {\n return s.substring(0, i) + dotted;\n } else if (s.length() == 0) {\n return emptyString;\n } else {\n return s;\n }\n\n }",
"private String stringShortener(String str) {\n if (str.length() <= 5) {\n return str;\n }\n str = str.substring(0, 5);\n str = str + \"...\";\n return str;\n }",
"public static void main(String[] args) {\n\r\n\r\n Scanner scan = new Scanner(System.in);\r\n String word = scan.next();\r\n String separator = scan.next();\r\n int count = scan.nextInt();\r\n\r\n\r\n String name = \"\";\r\n for (int i = 1; i <= count; i++) {\r\n\r\n name = name +word + separator ;\r\n\r\n if (i == count) {\r\n\r\n System.out.print(name.substring(0, name.length()-separator.length() ));\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n }",
"public String generateName(final Random random, final int length) {\n if(length == 0) {\n return \"LENGTH_WAS_ZERO\";\n }\n\n final StringBuilder sb = new StringBuilder();\n\n // Initalize the first two characters of the name:\n int initialSequenceIndex = random.nextInt(sequences.size());\n sb.append(sequences.get(initialSequenceIndex));\n\n int counter = 1;\n\n char previousChar;\n char currentChar;\n String key;\n\n // Ensure that the name, if no error occurs, will be at-least\n // as long as the preferred length.\n while(sb.length() < length) {\n // Get the current and previous character, then combine\n // them to create a key.\n previousChar = sb.charAt(counter - 1);\n currentChar = sb.charAt(counter);\n\n key = String.valueOf(previousChar) + String.valueOf(currentChar);\n\n //\n try {\n sb.append(chooseNextCharacter(random, key));\n } catch(final NoSuchElementException e) {\n break;\n }\n\n counter++;\n }\n\n // Return Name:\n if(length > 0 && length <= sb.length()) {\n return formatName(sb.substring(0, length));\n } else {\n return formatName(sb.toString());\n }\n }",
"public static String extendStringToLength(String stringToExtend, int length)\n\t{\n\t\tif(stringToExtend.length() >= length) return stringToExtend.substring(0, length-1);\n\t\telse \n\t\t{\n\t\t\tfor (int i = stringToExtend.length(); i < length; i++) stringToExtend += \" \";\n\t\t\treturn stringToExtend;\n\t\t}\n\t}",
"private static String makeLatinName(int len, Random r) {\n final String lc = \"abcdefghijklmnopqrstuvwxyz\";\n final String alphabet = lc + lc.toUpperCase();\n final String start = \"$_\" + alphabet;\n final String part = start + \"0123456789\";\n\n StringBuffer sb = new StringBuffer();\n sb.append(start.charAt(r.nextInt(start.length())));\n while (sb.length() < len)\n sb.append(part.charAt(r.nextInt(part.length())));\n return sb.toString();\n }",
"public static String rpad(String s, int len, char ch)\r\n {\r\n if (s == null || s.length() >= len)\r\n return s;\r\n \r\n StringBuffer buf = new StringBuffer(len);\r\n buf.append(s);\r\n for (len -= s.length(); len > 0; len--)\r\n buf.append(ch);\r\n \r\n return buf.toString();\r\n }",
"private static StringBuilder generatePaddings(String name, int expectedLength) {\r\n\t\tStringBuilder fixedName = new StringBuilder(name);\r\n\t\tint fixedNameLength = fixedName.length();\r\n\t\tif(fixedName.length() < expectedLength) {\r\n\t\t\tfor (int i = 0; i < expectedLength - fixedNameLength; i++) {\r\n\t\t\t\tfixedName.append(\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn fixedName;\r\n\t}",
"public static String lpad(String s, int len, char ch)\r\n {\r\n if (s == null || s.length() >= len)\r\n return s;\r\n \r\n StringBuffer buf = new StringBuffer(len);\r\n for (len -= s.length(); len > 0; len--)\r\n buf.append(ch);\r\n \r\n buf.append(s);\r\n return buf.toString();\r\n }",
"private String LeftPad(String str, int length)\n {\n //pad and return String\n return String.format(\"%1$\" + length + \"s\", str);\n }",
"public String EndUp(String s) {\r\n if (s.length() >= 3) {\r\n return s.substring(0, s.length()-3)+s.substring(s.length()-3).toUpperCase();\r\n } else {\r\n return s.toUpperCase();\r\n }\r\n }",
"private boolean expandCompositCharAtEnd(char[] dest,int start, int length,\n int lacount){\n boolean spaceNotFound = false;\n\n if (lacount > countSpacesLeft(dest, start, length)) {\n spaceNotFound = true;\n return spaceNotFound;\n }\n for (int r = start + lacount, w = start, e = start + length; r < e; ++r) {\n char ch = dest[r];\n if (isNormalizedLamAlefChar(ch)) {\n dest[w++] = convertNormalizedLamAlef[ch - '\\u065C'];\n dest[w++] = LAM_CHAR;\n } else {\n dest[w++] = ch;\n }\n }\n return spaceNotFound;\n }",
"private String formatName(String name) {\n Character firstCharacter = name.charAt(0);\n firstCharacter = Character.toUpperCase(firstCharacter);\n\n final String remainingCharacters = name.substring(1);\n\n return String.valueOf(firstCharacter) + remainingCharacters;\n }",
"public static final String repeat(char key, int count) {\n return repeat(String.valueOf(key), count);\n }",
"protected String limit(String value, int length)\n\t{\n\t\tif (value == null) return null;\n\t\tif (value.length() > length)\n\t\t{\n\t\t\treturn value.substring(0, length);\n\t\t}\n\t\treturn value;\n\t}",
"private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }",
"public static String padRight ( final String padThis, final char withThis, final int toThisLength )\n {\n final int inLen, diff, rem;\n final StringBuilder sb;\n\n if (null == padThis) return null;\n if (0 >= toThisLength) return padThis;\n\n inLen = padThis.length();\n\n if (inLen >= toThisLength) return padThis;\n\n diff = toThisLength - inLen;\n\n sb = new StringBuilder(padThis);\n\n if (diff > 5) {\n final char[] f = new char[] { withThis, withThis, withThis, withThis, withThis };\n final int div;\n rem = diff % 5;\n div = (diff - rem) / 5;\n for (int i = 0; i < div; i++) sb.append(f);\n } else {\n rem = diff;\n }\n\n for (int i = 0; i < rem; i++) sb.append(withThis);\n\n return sb.toString();\n }",
"private String pad(String s, int l){ String p=\"\"; for(int i=0; i<l-s.length();i++)p+=\" \"; return \" \"+p+s; }",
"public static String padRight(String src, char fill, int length) {\n\t\treturn pad(src, fill, length, true);\n\t}",
"static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}",
"public static String replicate(char c, int n)\n {\n String replicado = \"\";\n for (int i=0;i<n;i++){\n replicado += c;\n }\n return replicado;\n }",
"private String limitString(String str, int max_chars)\n {\n if(str != null && str.length() > max_chars)\n {\n return str.substring(0, max_chars - 2) + \"..\";\n }\n \n else return str;\n }",
"public void subCharacter() {\n\t\t\tString name = \"martin\";\n\t\t\tString subCharacter = name.substring(2, 4);\n\t\t\tSystem.out.println(subCharacter);\n\t\t}",
"public static String nTimes(String word, int n) {\n\t\tString concatWord = \"\";\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tconcatWord += word;\n\t\treturn concatWord;\n\t}",
"private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));\r\n }\r\n }\r\n if (b.length() < 3) {\r\n b.append(Integer.toString(name.length() % 10));\r\n }\r\n return b.toString().toLowerCase();\r\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(name.charAt(3));\n\t\t\n\t\t// .indexOf('h') method will provide the index of the character we need\n\t\tSystem.out.println((name.indexOf('h')));\n\t\t\n\t\t// .substring(3, 7) will have two arguments start and end index\n\t\tSystem.out.println(name.substring(3, 7));\n\t\t\n\t\t// .concat(\" swaminathan\") to concat the string\n\t\tSystem.out.println(name.concat(\" swaminathan\"));\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"private String reduce(String str, int i) {\n\t\tString ret = str;\n\t\tif (i == 8) {\n\t\t\tif (str.length() > 2) {\n\t\t\t\tret = str.substring(str.length()-2);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ret;\n\t}",
"public String generateKey(String str, String key)\n{\n int x = str.length();\n \n for (int i = 0; ; i++)\n {\n if (x == i)\n i = 0;\n if (key.length() == str.length())\n break;\n key+=(key.charAt(i));\n }\n return key;\n}",
"public static void main(String[] args) {\n\n String s = \"a2b5c7a9f0dafa2s6a8d5a\";\n String a =\"\";\n String rest = \"\";\n\n for (int i = 0; i<s.length(); i++) {\n\n if (s.charAt(i)=='a') {\n a+=s.charAt(i);\n } else {\n rest+=s.charAt(i);\n }\n\n\n }\n System.out.println(a+rest);\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"public String missingChar(String str, int n) {\n String front = str.substring(0, n);\n String back = str.substring(n+1, str.length());\n \n return front + back;\n}",
"@Override\n\tpublic void characters(char ch[], int start, int length) {\n\t\tchars.append(new String(ch, start, length));\n\t}",
"static String adjustStringLength(String s, int newLength)\n\t{\n\t\tchar[] res = new char[newLength];\n\t\tres[0] = s.charAt(0);\n\t\t\n\t\tif(newLength == s.length())\n\t\t{\n\t\t\t// In this case no insertions or deletions are needed\n\t\t\tfor(int i = 1; i<res.length; i++)\n\t\t\t{\n\t\t\t\tres[i] = s.charAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(newLength < s.length())\n\t\t{\n\t\t\t// Deletions needed so pick random subsequence of indices to keep\n\t\t\tint[] subseq = getRandomSubsequence(1, s.length() - 1, newLength - 1);\n\t\t\tfor(int i = 1; i<res.length; i++)\n\t\t\t{\n\t\t\t\tres[i] = s.charAt(subseq[i-1]);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Insert random bases in gaps\n\t\t\tfor(int i = 1; i<res.length; i++)\n\t\t\t{\n\t\t\t\tres[i] = intToBase(rand.nextInt(4));\n\t\t\t}\n\t\t\t\n\t\t\t// Randomly select how the bases from the original sequence get placed\n\t\t\tint[] subseq = getRandomSubsequence(1, newLength - 1, s.length() - 1);\n\t\t\tfor(int i = 0; i<subseq.length; i++)\n\t\t\t{\n\t\t\t\tres[subseq[i]] = s.charAt(i+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Mutate each base with a fixed probability\n\t\tfor(int i = 1; i<res.length; i++)\n\t\t{\n\t\t\tres[i] = mutateBaseWithProb(res[i], SEQ_ERROR);\n\t\t}\n\t\t\n\t\treturn new String(res);\n\t}",
"public static String MissingChar(String str, int n) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.deleteCharAt(n);\n return sb.toString();\n}",
"private String concatNcopies(int n,String str){\n\t\tString result = \"\";\n\t\tfor (int i=0;i<n;i++){\n\t\t\tresult +=str;\n\t\t}\n\t\treturn result;\n\t}",
"public String repeatFront(String str, int n) {\n StringBuilder result = new StringBuilder(str.length() * n);\n for (int i = n; i > 0; i--) {\n result.append(str.substring(0, i));\n }\n return String.valueOf(result);\n }",
"public static String randomString(Random r, char from, char to, int length) {\n return r.ints(from, to + 1).limit(length).mapToObj(x -> Character.toString((char)x)).collect(joining());\n }",
"private String removeFirstChar(String name) {\n\t\treturn name.substring(1, name.length());\n\t}",
"public ILoString append(String that) {\n return new ConsLoString(this.first, this.rest.append(that)); \n }",
"public static String RemoveDuplicatedLetters(String s, int k) {\n if (s.length() < k) {\n return s;\n }\n String result = \"\";\n int counter = 1;\n Stack<String> stack = new Stack<>();\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n result += stack.pop();\n\n while (!stack.isEmpty()) {\n if (stack.peek().equals(result.charAt(0) + \"\")) {\n counter += 1;\n } else {\n counter = 1;\n }\n result = stack.pop() + result;\n if (counter == k) {\n result = result.length() == k ? \"\" : result.substring(k);\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n counter = 0;\n }\n }\n return result;\n }",
"public static String lpad(String s, int n, char c)\r\n\t{\r\n\t\tint charsToAdd = n - s.length();\r\n\t\treturn replicate(c, charsToAdd) + s;\r\n\t}",
"public static void main(String[] args) {\n String word = \"java\";\n int length=word.length();\n int a =length/2;\n\n System.out.println(word.substring(0,a)+word.substring(0,a));\n }",
"public void printCharsWhile(String s){\n while int i = 0(i < s.lenth){\n println(s.charAt(i));\n x++;\n }",
"public static String lpad(String s, int n, char c)\n {\n String lpad = replicate(c,n-s.length())+s;\n return lpad;\n }",
"private String getAbbreviatedName(String name) {\n if (!isTooLarge(name)) {\n return name;\n }\n\n String[] partNames = name.split(\" \");\n\n // Abbreviate middle names:\n for (int i = 1; i < partNames.length - 1 && isTooLarge(Utils.join(\" \", partNames)); i++) {\n partNames[i] = partNames[i].charAt(0) + \".\";\n }\n\n // Remove middle names:\n while (partNames.length > 2 && isTooLarge(Utils.join(\" \", partNames))) {\n String[] newPartNames = new String[partNames.length - 1];\n newPartNames[0] = partNames[0];\n for (int i = 1; i < newPartNames.length; i++) {\n newPartNames[i] = partNames[i + 1];\n }\n partNames = newPartNames;\n }\n\n if (!isTooLarge(Utils.join(\" \", partNames))) {\n return Utils.join(\" \", partNames);\n } else if (!isTooLarge(partNames[0].charAt(0) + \". \" + partNames[1])) {\n return partNames[0].charAt(0) + \". \" + partNames[1];\n } else if (!isTooLarge(partNames[0] + \" \" + partNames[1].charAt(0) + \".\")) {\n return partNames[0] + \" \" + partNames[1].charAt(0) + \".\";\n } else {\n return partNames[0].charAt(0) + \". \" + partNames[1].charAt(0) + \".\";\n }\n }",
"public String lastChars(String a, String b) {\r\n String result = \"\";\r\n\r\n if (a.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += a.charAt(0);\r\n }\r\n\r\n if (b.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += b.charAt(b.length() - 1);\r\n }\r\n\r\n return result;\r\n }",
"public static String repeat2(char character, int repeats) {\n java.lang.StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < repeats; j++) {\n stringBuilder.append(character);\n }\n return stringBuilder.toString();\n }",
"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 replicate(char c,int n)\r\n\t{\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (int i = 0; i < n; ++i) {\r\n\t\t\tresult.append(c);\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"public static String right(String str, int len) {\n return StringUtils.right(str, len);\n }",
"public static void main(String[] args) {\n\r\n\t\tString str1=\"mohan\";\r\n\t\tString str2=\"\";\r\n\t\t\r\n\t\tfor(int i=str1.length()-1; i>=0 ; i--)\r\n\t\t{\r\n\t\tstr2=str2+str1.charAt(i);\r\n\t\t}\r\n\t\tSystem.out.println(str2);\r\n\t}",
"protected static String fixFilenameLength(String input, int maxLength) {\n String result = input;\n result = StringUtils.stripAccents(result);\n result =\n result.replaceAll(\"\\uF022\", \"_\")\n .replaceAll(\"„\", \"_\")\n .replaceAll(\"“\", \"_\")\n .replaceAll(\":\", \".\")\n .replaceAll(\"'\", \"_\")\n .replaceAll(\"..mp3\", \".mp3\")\n ;\n int length = maxLength;\n while (result.getBytes(StandardCharsets.UTF_8).length > maxLength) {\n length--;\n result = StringUtils.abbreviate(result, \"...\", length);\n }\n return result;\n }",
"public static String repeat1(char character, int repeats) {\n String answer = \"\";\n for (int j = 0; j < repeats; j++) {\n answer += character;\n }\n return answer;\n }",
"public void characters(String arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"private boolean expandCompositCharAtBegin(char[] dest,int start, int length,\n int lacount) {\n boolean spaceNotFound = false;\n\n if (lacount > countSpacesRight(dest, start, length)) {\n spaceNotFound = true;\n return spaceNotFound;\n }\n for (int r = start + length - lacount, w = start + length; --r >= start;) {\n char ch = dest[r];\n if (isNormalizedLamAlefChar(ch)) {\n dest[--w] = LAM_CHAR;\n dest[--w] = convertNormalizedLamAlef[ch - '\\u065C'];\n } else {\n dest[--w] = ch;\n }\n }\n return spaceNotFound;\n\n }",
"public String front22(String str) {\n String front2;\n if (str.length() <= 2) {\n front2 = str;\n } else {\n front2 = str.substring(0, 2);\n }\n \n return front2 + str + front2;\n}",
"private String addCharacter() {\n\t\t// Two Parameters: CharaNumber, CharaName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|chara\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}",
"public String rightPad2(String str, int size, char padChar) {\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tsb.append(str);\n\t\tfor( int i=0 ; i<size-str.length() ; i++ ) {\n\t\t\tsb.append(padChar);\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t\t\n\t}",
"public String newName(int minLength, int maxLength) {\n int length = rand.nextInt(maxLength - minLength) + minLength;\n boolean vowel = rand.nextBoolean();\n StringBuilder name = new StringBuilder();\n while (name.length() < length) {\n if (vowel) {\n name.append(CONSONANTS[rand.nextInt(CONSONANTS.length)]);\n } else {\n name.append(VOWELS[rand.nextInt(VOWELS.length)]);\n }\n vowel = !vowel;\n }\n return java.lang.Character.toUpperCase(name.charAt(0)) + name.substring(1);\n }",
"public static void main(String[] args) {\nString str=\"subbu\";\nSystem.out.println(str.charAt(9));\n\t}",
"public static String truncate(String string, int len) {\n Preconditions.checkArgument(len >= 4, \"len < 4\");\n if (string.length() <= len)\n return string;\n return string.substring(0, len - 3) + \"...\";\n }",
"static String trimTo(String text, int length) {\n if (text.length() < length) {\n return text;\n } else {\n return text.substring(\n 0,\n length\n ) + \"...\";\n }\n }",
"private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}",
"protected char randomChar(int length) {\n\n int randomLetter = (int) (Math.random() * length);\n char letter = this.alphabet[randomLetter];\n return letter;\n }",
"private String fixName(String aName) {\n final String firstToken = new StringTokenizer(aName, \" \").nextToken();\n int iRepeatedNamePos = aName.indexOf(firstToken, 1);\n if (iRepeatedNamePos > 0) {\n return aName.substring(0, iRepeatedNamePos).trim();\n }\n return aName;\n }",
"public static String padRightChar(final String s, final int n, final char c) {\n\t\treturn padRightSpaces(s, n).replace(' ', c);\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 static String addRightPadding(String text, int length) {\n return String.format(\"%-\" + length + \".\" + length + \"s\", text);\n }",
"public boolean strCopies(String str, String sub, int n) {\n//Solution to problem coming soon\n}",
"public static String padLeft(String src, char fill, int length) {\n\t\treturn pad(src, fill, length, false);\n\t}",
"static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }",
"int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}",
"public String setTenLenString(String sInput) {\n String sReturn = sInput;\n int nCount = 10 - sReturn.length();\n for (int i = 0; i < nCount; i++) {\n sReturn += \" \";\n }\n return sReturn;\n\n }",
"public String randomString(int Length, String s) {\n\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\tStringBuilder sb = new StringBuilder(Length);\n\t\t\t\t\tfor (int i = 0; i < Length; i++) { sb.append(s.charAt(rand.nextInt(s.length()))); }\n\t\t\t\t\treturn sb.toString();\n\t\t\t\t}",
"public static String moreLenString(int n) {\n\t\tif (n <= 0) {\n\t\t\tthrow new ArgsErrorException();\n\t\t}\n\t\treturn String.format(RString.MORE_LEN_STRING, n);\n\t}"
] | [
"0.5960483",
"0.5801117",
"0.57594347",
"0.5757547",
"0.57305384",
"0.5721253",
"0.5649502",
"0.55828196",
"0.5559707",
"0.553574",
"0.5454845",
"0.5445935",
"0.5416952",
"0.540611",
"0.5395893",
"0.53878903",
"0.53876996",
"0.5356059",
"0.5341252",
"0.5316033",
"0.53134364",
"0.5310395",
"0.5308623",
"0.530455",
"0.5302013",
"0.52938247",
"0.52924985",
"0.52882177",
"0.5287488",
"0.5281887",
"0.52596337",
"0.5235826",
"0.5230801",
"0.52227086",
"0.52118033",
"0.5209218",
"0.5205124",
"0.5188401",
"0.5173491",
"0.5168974",
"0.51679057",
"0.51651293",
"0.51595056",
"0.51464933",
"0.51409847",
"0.5140809",
"0.5130129",
"0.5123212",
"0.5100128",
"0.50928754",
"0.5089122",
"0.5085902",
"0.50821626",
"0.50817895",
"0.50629616",
"0.50479746",
"0.5046028",
"0.5044094",
"0.50183886",
"0.5009652",
"0.50072247",
"0.5001111",
"0.49978524",
"0.49892545",
"0.49812213",
"0.49780655",
"0.49760452",
"0.49739277",
"0.49726152",
"0.49690652",
"0.49612084",
"0.49607372",
"0.49595782",
"0.49575788",
"0.49521986",
"0.4952164",
"0.4947591",
"0.49451843",
"0.49417984",
"0.49400252",
"0.49363533",
"0.49281082",
"0.49280533",
"0.4918251",
"0.4911435",
"0.49109912",
"0.4909622",
"0.49064767",
"0.4904598",
"0.48999217",
"0.4898776",
"0.4894037",
"0.4893535",
"0.48878145",
"0.48863077",
"0.48843554",
"0.48749793",
"0.48734882",
"0.48608816",
"0.4856584"
] | 0.66069865 | 0 |
Initialize a random array to sort | public static void main(String[] args)
{
int[] array=new int[5];
Random ran=new Random();
for(int i=0;i<array.length;i++)
{
//assign each item a value range from 0~99
array[i]=ran.nextInt(100);
}
System.out.println("Before Insertion Sort: "+Arrays.toString(array));
insertionSort(array,array.length);
System.out.println("After Insertion Sort : "+Arrays.toString(array));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = data.clone();\n\t\tquickData = data.clone();\n\n\t}",
"public static void TestRandomArray() {\n\tSystem.out.println(\"\\nQuestion (6) Create Random Array & Sort it\");\n\tSystem.out.println(\"------------------------------------------\");\n\tint [] A = createRandomIntArray(20,101); \n\tSystem.out.println( \"Array Before Sort\");\n\tprint(A);\n\tSystem.out.println( \"Array After Sort\");\n\tArrays.sort(A);\n\tprint(A);\n }",
"@SortingMethod\n public static int[] getSortdedWithOneRandomArray(int length) {\n int[] array = new int[length];\n for (int i = 0; i < length - 1; i++) {\n array[i] = i;\n }\n array[length - 1] = new Random().nextInt(50);\n return array;\n }",
"static void initializeArray2() {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\t// Hash implementation\n\t\t\tint mod = val % m;\n\t\t\tarray[mod] = val;\n\t\t\tresult[1]++;\n\t\t}\n\t}",
"public SortedArrayInfo sortArray(List<Integer> randomNumbers);",
"public void random_init()\r\n\t{\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tchromosome[i] = random_generator.nextInt(num_colors)+1;\r\n\t\t}\r\n\t}",
"static void initializeArray(boolean firstTime) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\tint mod = val % m;\n\t\t\tif (array[mod] == -1) {\n\t\t\t\tarray[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tcount++;\n\t\t\t} else if (firstTime) {\n\t\t\t\tresult[0] = count;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}",
"public void generateRandomArray() {\n for (int i = 0; i < arraySize; i++) {\n theArray[i] = (int) (Math.random() * 10) + 10;\n }\n }",
"public Qsort(int n){\n\tRandom r = new Random();\n\ta = new int[n];\n\tfor (int i = 0; i < a.length; i++) {\n\t a[i] = r.nextInt(100);\n\t}\n }",
"@Test\r\n public void testRandArr() {\r\n System.out.println(\"RandArr\");\r\n int length = 0;\r\n Class sortClass = null;\r\n int[] expResult = null;\r\n int[] result = GenerateArr.RandArr(length, sortClass);\r\n assertArrayEquals(expResult, result);\r\n }",
"static void fillArray(int[] ar)\n\t{\n\t Random r= new Random();\n\t for(int i = 0; i< ar.length; i++)\n\t {\n\t\t ar[i]= r.nextInt(100);\n\t }\n\t}",
"private static int[] arrayInitializer(int length) {\n int[] myArray = new int[length];\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n myArray[i] = rand.nextInt(1000);\n }\n return myArray;\n }",
"private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}",
"private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }",
"@Override\r\n\tpublic void initialize() {\n\t\tRandom randomGenerator = new Random();\r\n\t\tthis.size = Helper.getRandomInRange(1, 9, randomGenerator);\r\n\t\tif (this.size % 2 == 0)\r\n\t\t\tthis.size--;\r\n\t}",
"@SortingMethod\n public static int[] getRandomArray(int length) {\n int[] array = new int[length];\n Random random = new Random();\n for (int i = 0; i < length; i++) {\n array[i] = random.nextInt(50);\n }\n return array;\n }",
"public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}",
"private static int[] initArray(int N){\n int[] a = new int[N];\n for (int i=0;i<N;i++)\n a[i] = (int)(Math.random()*99999 + 100000);\n return a;\n }",
"static void populateArray(int[] array) {\n\n Random r = new Random();\n\n for (int i = 0; i < array.length; i++) {\n\n array[i] = r.nextInt() % 100;\n\n if (array[i] < 0) array[i] = array[i] * -1;\n\n }\n\n }",
"static void initValues()\n\t // Initializes the values array with random integers from 0 to 99.\n\t {\n\t Random rand = new Random();\n\t for (int index = 0; index < SIZE; index++)\n\t values[index] = Math.abs(rand.nextInt(100001));\n\t for (int i = 0; i < RANDSAMP; i++)\n\t \tvalues2[i] = values[Math.abs(rand.nextInt(SIZE+1))]; \n\t }",
"public static void randomArray(int n) \r\n\t{\r\n\t\tnum = new int[n];\r\n\t\tRandom r = new Random();\r\n\t\tint Low = 1;\r\n\t\tint High = 10;\r\n\t\t\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tnum[i] = r.nextInt(High - Low) + Low;\r\n\t\t}\r\n\t\t\r\n\t}",
"private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }",
"public static void fillArray() {\r\n\t\tfor (int i = 0; i < myOriginalArray.length - 1; i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tmyOriginalArray[i] = rand.nextInt(250);\r\n\t\t}\r\n\t\t// Copies original array 4 times for algorithm arrays\r\n\t\tmyBubbleArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmySelectionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyInsertionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyQuickArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t}",
"public static void initOneD(int[] array) {\n for (int i = 0; i < array.length; i++) {\n array[i] = (int) (Math.random() * 100);\n }\n }",
"private short[] makeRandomArray(Random r) {\n short[] array = new short[r.nextInt(100)];\n for (int j = 0; j < array.length; j++) {\n array[j] = (short) r.nextInt();\n }\n return array;\n }",
"private static void shuffleArray(int[] ar) {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n return data_random;\n }",
"void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }",
"public int[] initializingArray(int size) {\n\t\tint [] array = createArrays(size);\n\t\tfor(int i = 0;i < array.length; i++) {\n\t\t\tarray[i] = rand.nextInt(10);\n\t\t}\n\t\treturn array;\n\t}",
"public static void initIntegerArray(int[] arr) {\r\n\t\tRandom ra = new Random();\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i] = ra.nextInt(arr.length); \r\n\t\t}\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tif (arr[i] - ra.nextInt(arr.length) <5) {\r\n\t\t\t\tarr[i] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n int[] arr = ArrayTools.getRandomIntArray(0, 10000, 10);\n ArrayTools.printIntArray(arr);\n int[] sorted = MergeSort.sort(arr);\n ArrayTools.printIntArray(sorted);\n }",
"RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }",
"private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }",
"private void initialize(int[] arr) {\n a = ArraysUtils.sortAndRemoveDuplicates(arr);\n if (a.length != arr.length) {\n throw new IllegalArgumentException(\"Need unique list of numbers\");\n }\n numLeft = new BigInteger(total.toString());\n }",
"private Countable[] generateArray(int rank){\n var numbers = new Countable[rank];\n for (int i = 0; i < rank; i++) {\n numbers[i] = getRandomCountable();\n }\n return numbers;\n }",
"static void randomize(int arr[], Random r) {\n for (int i = arr.length - 1; i > 0; i--) {\n\n // Pick a random index from 0 to i\n int j = r.nextInt(i);\n\n // Swap arr[i] with the element at random index\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n\n }",
"public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }",
"static void fill(int[] array)\n\t{\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tarray[i] = r.nextInt(100);\n\t\t}\n\t}",
"private static int[] sortedArray(int[] randomArray) {\n\t\tint temp = 0;\r\n\t\tfor (int i = 0; i < randomArray.length; i++) {\r\n\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\tif (randomArray[i] > randomArray[j]) {\r\n\t\t\t\t\ttemp = randomArray[i];\r\n\t\t\t\t\trandomArray[i] = randomArray[j];\r\n\t\t\t\t\trandomArray[j] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}",
"static int[] populateArray(int lenght) {\n\t\tint[] A = new int[lenght];\n\t\t\n\t\tfor(int i=0; i < A.length; i++) {\n\t\t\tA[i] = (int)(Integer.MAX_VALUE * Math.random());\n\t\t}\n\t\t\n\t\treturn A;\n\t}",
"public BucketSort()\n {\n for(int i = 0; i < 30; i++)\n {\n a[i] = generator.nextInt(50)+1;\n b[i] = a[i];\n }\n }",
"private void getArr()\r\n {\r\n // Create array of '0'\r\n Random rand = new Random();\r\n arr = new int[Integer.parseInt(SizeField.getText())];\r\n\r\n // InOrder creates a list in ascending order\r\n if (InOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n // AlmostOrder creates a list which is 50% sorted and 50% unsorted\r\n } else if (AlmostOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length / 2; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n for (int i = arr.length / 2; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n\r\n // ReverseOrder creates list in descending order\r\n } else if (ReverseOrderRadio.isSelected())\r\n {\r\n for (int i = arr.length, j = 0; i > 0; i--, j++)\r\n {\r\n arr[j] = i;\r\n }\r\n\r\n // RandomOrder creates 100% unsorted list\r\n } else\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n }\r\n }",
"@Test\r\n public void testRandElem() {\r\n System.out.println(\"RandElem\");\r\n int length = 0;\r\n Class sortClass = null;\r\n int[] expResult = null;\r\n int[] result = GenerateArr.RandElem(length, sortClass);\r\n assertArrayEquals(expResult, result);\r\n }",
"@Test\n public void newSortingTest2() {\n newSorting sort = new newSorting();\n int[] arr = {0, 5, 1, 8, 0, 0};\n int[] expected = {0, 0, 0, 1, 5, 8};\n sort.newSorting(arr, 4);\n assertArrayEquals(arr, expected);\n }",
"public static int[] shuffle() {\n Random random = new Random();\n for (int i = 0; i < len; i++) {\n int j = random.nextInt(len);\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }\n return nums;\n }",
"private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}",
"static void shuffleArray(int[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"public void populateArray()\n { \n Random rand = new Random(); // calling random class to generate random numbers\n randInt = new int[this.getWidth()]; // initializing array to its panel width\n rand.setSeed(System.currentTimeMillis());\n for(int i = 0; i < this.getWidth();i++) // assigning the random values to array \n {\n randInt[i] = rand.nextInt(this.getHeight() -1) + 1;\n }\n this.repaint(); // calling paint method\n }",
"private static void shuffleArray(int[] array)\n {\n int index, temp;\n Random random = new Random();\n for (int i = array.length - 1; i > 0; i--)\n {\n index = random.nextInt(i + 1);\n temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }",
"public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public static void randFillArray(int[] array) {\r\n\t\tRandom random = new Random();\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY; i++)\r\n\t\t\tarray[i] = random.nextInt(100);\r\n\t}",
"static void shuffleArray(String[] ar)\r\n {\n Random rnd = ThreadLocalRandom.current();\r\n for (int i = ar.length - 1; i > 0; i--)\r\n {\r\n int index = rnd.nextInt(i + 1);\r\n // Simple swap\r\n String a = ar[index];\r\n ar[index] = ar[i];\r\n ar[i] = a;\r\n }\r\n }",
"private void buildArray() throws VerificationException\n {\n \tindices = new int[length];\n \tcommonality = new int[length];\n \n \tcommonality[0] = -1;\n \tfor( int i=0; i<indices.length; i++ ){\n \t indices[i] = i;\n \t}\n \n sort();\n }",
"@Test\n public void newSortingTest() {\n newSorting sort = new newSorting();\n int[] arr = {3, 2, 6, 5, 1, 7, 4};\n int[] expected = {1, 2, 3, 4, 5, 6, 7};\n sort.newSorting(arr, 4);\n assertArrayEquals(arr, expected);\n }",
"public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public static void shuffle( int[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"@Test\r\n public void trivialTest() {\r\n int[] unsorted = new int[0];\r\n int[] expResult = new int[0];\r\n int[] result = arraySorter.sort(unsorted);\r\n assertArrayEquals(expResult, result);\r\n }",
"public static int[] constructor(int n) {\r\n int v[] = new int[n];\r\n\r\n for (int i = 0; i < v.length; i++) {\r\n int dato = (int) (Math.random() * 20);\r\n v[i] = dato;\r\n }\r\n return v;\r\n }",
"@Test\n public void newSortingTest5() {\n newSorting sort = new newSorting();\n int[] arr = {10, 100, 20, 90, 30, 80, 40, 70, 50, 60};\n int[] expected = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};\n sort.newSorting(arr, 2);\n assertArrayEquals(arr, expected);\n }",
"public void randomize()\n {\n int max = list.length;\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * max) + 1;\n }",
"private void initializeAndShuffle() {\r\n\t\t\tsuffixes = new byte[256];\r\n\t\t\tfor (int i = 0; i < ALL_BYTE_VALUES.length; i++) {\r\n\t\t\t\tint j = RAND.nextInt(i + 1);\r\n\t\t\t\tif (j != i) {\r\n\t\t\t\t\tsuffixes[i] = suffixes[j];\r\n\t\t\t\t}\r\n\t\t\t\tsuffixes[j] = ALL_BYTE_VALUES[i];\r\n\t\t\t}\r\n\t\t}",
"public void randomArray(int size){\n paintIntegers[] arrayNew = new paintIntegers[size];\n paintIntegers.initPaint(arrayNew);\n //updates n\n n = size;\n for(int i = 0; i < arrayNew.length; i++){\n arrayNew[i].val = i + 1;\n }//init the array with 0 to n;\n for(int i = 0; i < arrayNew.length; i++){ // shuffles the array\n //random index past current -> thats why random\n int ridx = i + rand.nextInt(arrayNew.length - i);\n //swap values\n int temp = arrayNew[ridx].val;\n arrayNew[ridx].val = arrayNew[i].val;\n arrayNew[i].val = temp;\n }\n // new origarray array\n origArray = arrayNew.clone();\n }",
"public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }",
"public static int[] generateRandomArray(){\n return new Random().ints(0, 100000)\n .distinct()\n .limit(1000).toArray();\n }",
"void shuffleArray(String[] ar) {\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"public static void knuthShuffle(Comparable[] a) {\n int r, n = a.length;\n for (int i = 1; i < n; i++) {\n r = randInt(0, i);\n exch(a, i, r);\n }\n }",
"private ArrayIterator(){\n itemsRemaining = itemCount;\n temp = (Item[]) new Object[itemCount]; //slightly less than N\n reset();\n StdRandom.shuffle(temp);\n }",
"public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }",
"static void fillArray(int[] array) {\n\t\tint i = 0;\r\n\t\tint number = 1;\r\n\t\twhile (i < array.length) {\r\n\t\t\tif ((int) Math.floor(Math.random() * Integer.MAX_VALUE) % 2 == 0) {\r\n\t\t\t\tnumber = number + (int) Math.floor(Math.random() * 5);\r\n\t\t\t\tarray[i] = number;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnumber++;\r\n\t\t\t\tarray[i] = number;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private int[] sortIntegers(int n) {\n\n int nArray[] = new int[n];\n int temp, s;\n Random myRandom = new Random();\n //initialize array from 0 to n - 1\n for (int i = 0; i < n; i++) {\n nArray[i] = i;\n }\n //i is number ot items remaining in list\n for (int i = n; i >= 1; i--) {\n s = myRandom.nextInt(i);\n temp = nArray[s];\n nArray[s] = nArray[i - 1];\n nArray[i - 1] = temp;\n }\n return (nArray);\n }",
"private static int[] generate_random_array(int max) {\n int size = ThreadLocalRandom.current().nextInt(2, max + 1);\n int[] array = new int[size];\n for (int i = 0; i < size - 1; i++) {\n int distance = size - i > i ? size - i : i;\n array[i] = ThreadLocalRandom.current().nextInt(1, distance);\n }\n array[size - 1] = 0;\n return array;\n }",
"public static void shuffle(double[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n double temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tint[][] arr = new int[6][7];\n\n\t\tRandom rand = new Random();\n\t\t\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; i < arr[i].length; j++) {\n\t\t\t\tarr[i][j] = rand.nextInt(10);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tsort(arr[i]);\n\t\t}\n\t\tSystem.out.println(Arrays.deepToString(arr));\n \n\t}",
"public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }",
"public static int[][] raggedArray(){\n int n=(int)(Math.random()*11);\n n+=10; \n //this randomly assigns n to between 10 and 20\n int[][] ragged=new int[n][];\n //initialize this array with n first components\n //forloop to assign each inner array a length\n for(int i=0; i<n; i++){\n int m=(int)(Math.random()*11);\n m+=10; //m is between 10 and 20\n ragged[i]=new int[m];\n //another for loop to assign values\n for(int k=0; k<m; k++){\n int val=(int)(Math.random()*1001);\n int sign=(int)(Math.random()*2);\n if(sign==0){\n \n }\n else{\n val*=-1;\n //makes it 50/50 to be negative\n }\n ragged[i][k]=val;\n //assigns value to that spot of array\n }\n }\n return ragged;\n }",
"@Test\n public void newSortingTest4() {\n newSorting sort = new newSorting();\n int[] arr = {-1, 0, 1, 0, 1, 0, -1};\n int[] expected = {-1, -1, 0, 0, 0, 1, 1};\n sort.newSorting(arr, 3);\n assertArrayEquals(arr, expected);\n\n }",
"public static void main(String[] args){\n\n StopWatch watch1 = new StopWatch();\n int row = 100000;\n int[] array = new int[row];\n for(int i=0; i<row; i++){\n array[i] = RandomNumber(1,1000);\n }\n\n array = SortArray(array);\n\n double time1 = watch1.getElapsedTime();\n System.out.printf(\"%.2f seconds\\n\",time1);\n }",
"private static void scrambleArray(Integer[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) {\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else {\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}",
"private void populate ()\n\t{\n\t\t//create a random object\n\t\tRandom rand = new Random(); \n\t\t//for loop for row\n\t\tfor (int row =0; row < currentVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor(int column = 0; column < currentVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assign byte values from [0 to state-1] into array\n\t\t\t\tcurrentVersion[row][column] = (byte) rand.nextInt((this.state-1));\n\t\t\t}\n\t\t}\n\t}",
"public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }",
"private static void scrambleArray(int[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) // use unpredictable random shuffle\n\t\t{\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else // use repeatable math formula for shuffle\n\t\t{\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}",
"@Test\n public void newSortingTest3() {\n newSorting sort = new newSorting();\n int[] arr = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n int[] expected = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\n sort.newSorting(arr, 5);\n assertArrayEquals(arr, expected);\n\n }",
"public static void shuffle( double[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n double temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"public static void s1RandomTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Random\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }",
"public int[] shuffle() {\n\t\t\tif (originalArr == null)\n\t\t\t\treturn null;\n\t\t\tint randomArr[] = originalArr.clone();\n\t\t\tfor (int i = 1; i < originalArr.length; i++) {\n\t\t\t\tint newIndex = random.nextInt(i + 1);\n\t\t\t\tswap(i, newIndex, randomArr);\n\t\t\t}\n\t\t\treturn randomArr;\n\t\t}",
"public static long sortRandomArray(int length) {\n int[] array = generateRandomArray(length);\n System.currentTimeMillis();\n sort(array);\n System.currentTimeMillis();\n\n\n\n return System.currentTimeMillis();\n\n }",
"public static int[] populateRandomNumber(int count) {\n\t\tif (count < 1) {\n\t\t\tthrow new IllegalArgumentException(\"count less than 0\");\n\t\t}\n\t\tint[] data = new int[count];\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tdata[i] = i + 1;\n\t\t}\n\t\tfor (int i = count - 1; i >= 0; i--) {\n\t\t\t// Find random between 0 to i-1.\n\t\t\tint random = new Random().nextInt(i);\n\t\t\t// swap.\n\t\t\tint temp = data[i];\n\t\t\tdata[i] = data[random];\n\t\t\tdata[random] = temp;\n\t\t}\n\t\treturn data;\n\t}",
"public void init(int[] a){\n this.array = a;\n moves = 0; \n }",
"public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }",
"public static void main(String[] args) {\n\t\tint[] arr = new int[10]; \n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tarr[i] = (int)(Math.random()*100 + 1);\n\t\t}\n\n\n\t\tSystem.out.println(\"ramdom integer array: \" + Arrays.toString(arr));\n\n\t\tSystem.out.println(\"sorting...\");\n\t\t//sort the array\n\t\tbubbleSort(arr);\n\t\tSystem.out.println(\"sorted: \" + Arrays.toString(arr));\n\n\t}",
"public static void arraySwaping(int array[]) {\r\n\r\n\t\tint temp, randInt;\r\n\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\r\n\t\t\trandInt = rand.nextInt(array.length);\r\n\r\n\t\t\ttemp = array[i];\r\n\t\t\tarray[i] = array[randInt];\r\n\t\t\tarray[randInt] = temp;\r\n\r\n\t\t}\r\n\r\n\t}",
"public void randomize(){\r\n int random = (int) (Math.random()*36);\r\n for(int i = 0;i<7;i++){\r\n for(int j = 0;j<36;j++){\r\n temparray[1] = gameBoard[random];\r\n temparray[2] = gameBoard[j];\r\n gameBoard[j] = temparray[1];\r\n gameBoard[random] = temparray[2];\r\n \r\n }\r\n }\r\n \r\n }",
"Actor[] shuffle(Actor[] array) {\n for (int i = array.length; i > 0; i--) {\n int k = rand.nextInt(i);\n Actor tmp = array[k];\n array[k] = array[i - 1];\n array[i - 1] = tmp;\n }\n return array;\n }",
"void myshuffleArray(String[] ar1, String[] ar2) {\n for (int i = ar1.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i+1);\n // Simple swap\n String a1 = ar1[index];\n String a2 = ar2[index];\n ar1[index] = ar1[i];\n ar2[index] = ar2[i];\n ar1[i]=a1;\n ar2[i]=a2;\n }\n }",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }"
] | [
"0.71236306",
"0.71082675",
"0.676497",
"0.67476726",
"0.6713415",
"0.6704165",
"0.6702927",
"0.6609328",
"0.6598126",
"0.65925044",
"0.6587699",
"0.657604",
"0.6555265",
"0.64971966",
"0.6430861",
"0.6415372",
"0.6389752",
"0.63304174",
"0.6313689",
"0.6305048",
"0.6263871",
"0.6255556",
"0.624957",
"0.6247804",
"0.62369126",
"0.62184757",
"0.6218446",
"0.6207485",
"0.6200436",
"0.6185217",
"0.618083",
"0.6180626",
"0.61669296",
"0.6153916",
"0.614333",
"0.6133122",
"0.6132522",
"0.61166936",
"0.6103899",
"0.6063789",
"0.60579425",
"0.6044762",
"0.60403657",
"0.60320944",
"0.6031583",
"0.6021901",
"0.6015134",
"0.6012174",
"0.6009355",
"0.6008176",
"0.5985846",
"0.5973631",
"0.59602976",
"0.5959673",
"0.5943374",
"0.59412724",
"0.5937159",
"0.5934534",
"0.5934127",
"0.59290355",
"0.59255743",
"0.5921703",
"0.5919928",
"0.591878",
"0.5915643",
"0.5913967",
"0.59135115",
"0.5908619",
"0.59020936",
"0.58999753",
"0.58981055",
"0.58965665",
"0.58922106",
"0.58906734",
"0.58888555",
"0.58847344",
"0.5880707",
"0.5878859",
"0.58745587",
"0.5871953",
"0.5871698",
"0.5862396",
"0.5860521",
"0.5850536",
"0.5847896",
"0.58456993",
"0.5842461",
"0.58368653",
"0.58316094",
"0.58191746",
"0.58164024",
"0.5810375",
"0.5805616",
"0.57952756",
"0.57950914",
"0.5788379",
"0.578819",
"0.5781456",
"0.57808864",
"0.5777306"
] | 0.58255965 | 89 |
mimic some longrunning process here... | @Override
protected Void doInBackground() throws Exception {
Thread.sleep(SLEEP_TIME);
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract long doWork();",
"private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }",
"protected abstract void process(WorkerThread current_, double now_);",
"public interface LongProcessOperations \n{\n ServoConRemote.LongProcessPackage.Status Completed ();\n\n //message is empty on success\n String Message ();\n double Progress ();\n void Detach ();\n}",
"@Override\n\t\tprotected Bitmap doInBackground(Integer... resId) {\n\t\t\tBitmap bitmapImage = BitmapFactory.decodeResource(getResources(), resId[0]);\n\t\t\t\n\t\t\t// Simulate long-running operation\n\t\t\tfor (int i = 1; i < 11; i++) {\n\t\t\t\tsleep();\n\t\t\t\tpublishProgress(i * 10);\n\t\t\t}\n\t\t\t\n\t\t\treturn bitmapImage;\n\t\t}",
"abstract void doJob();",
"public abstract List<C_result> processJob(C_request processing_cmd);",
"protected abstract long waitToTravel();",
"protected void internalRun() {\n work();\n }",
"abstract void doTaskOnRun();",
"private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }",
"void arrivingProcess(process theProcess, int time);",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"protected abstract long waitOnQueue();",
"private void executeConcurrently() {\n String[] commandArgs = SysLib.stringToArgs(command);\n prevPID = SysLib.exec(commandArgs); //run command\n command = \"\"; //clear command\n }",
"protected void onQueued() {}",
"protected void execute() {\n\t\t//execution handled by pid thread\n\t}",
"SporadicProcess getSporadic();",
"public void run(){\t\n\t\tComputingRequest pathCompReq;\n\t\tlong timeIniNanos;\n\t\tlong timeEndNanos;\n\t\tlong timePreNanos=System.nanoTime();\n\t\twhile (running) {\n\t\t\tlog.info(\"Waiting for a new Computing Request to process\");\n\t\t\ttry {\n\t\t\t\tpathCompReq=pathComputingRequestQueue.take();\n\n\t\t\t\tif (analyzeRequestTime){\n\t\t\t\t\tdouble idleTimeV=(System.nanoTime()-timePreNanos)/(double)1000000;\n\t\t\t\t\tif (idleTimeV<20000){\n\t\t\t\t\t\tidleTime.analyze(idleTimeV);\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.warn(\"There is no path to compute\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttimeIniNanos=System.nanoTime();\n\n\t\t\tif (pathCompReq.getRequestList().size()==1){\n\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\n\t\t\t}\n\t\t\t//FIXME: ESTA PARTE PUEDE FALLAR SI MANDAN OTRA COSA QUE NO SEAN IPV4 o GEN END POINTS\n\t\t\t//POR AHORA PONGO TRY CATH Y MANDO NOPATH\n\t\t\tlong sourceIF=0;\n\t\t\tlong destIF=0;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tP2PEndpoints p2pep=null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t//For the IT case\n\t\t\t\tif (ted.isITtedb()){\n\t\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\t\n\t\t\t\t\tsource =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getSourceEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t\tdest =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t}else {\n\t\t\t\t\ttry { //EndPointsIPv4\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\tsource = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\t\tdest = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\t\tsourceIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIF();\n\t\t\t\t\t\t\tdestIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIF();\n\t\t\t\t\t\t\tlog.info(\"SubObjeto: EP-Unnumbered Interface: \"+((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).toString());\n\t\t\t\t\t\t\tEndPointsIPv4 ep= new EndPointsIPv4();\n\t\t\t\t\t\t\tep.setDestIP(dest);\n\t\t\t\t\t\t\tep.setSourceIP(source);\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\tdest = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\tlog.info(\" XXXX try source: \"+source);\n\t\t\t\t\t\tlog.info(\" XXXX try dest: \"+dest);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { //GeneralizedEndPoints\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\n\t\t\t\t\t\t\t//P2PEndpoints p2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\t\t\t\t\t\t\tlog.info(\"RequestProcessorThread GeneralizedEndPoints -> sourceDataPath:: \"+p2pep.getSourceEndPoint()+\" destDataPath :: \"+p2pep.getDestinationEndPoint());\n\n\t\t\t\t\t\t\tGeneralizedEndPoints ep= new GeneralizedEndPoints();\n\t\t\t\t\t\t\tep.setP2PEndpoints(p2pep); \t\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsource = p2pep.getSourceEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t\tdest = p2pep.getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\t//If fails, we send NoPath, by now (reasons later...)\n\t\t\t\t//FIXME\n\t\t\t\tlog.info(\"Shouldn't be here except in WLANs\");\n\t\t\t\t//log.info(FuncionesUtiles.exceptionToString(e));\n\t\t\t\t//this.sendNoPath(pathCompReq);\n\t\t\t}\n\t\t\t//In case it is a child PCE with a parent, requestToParent = true\n\t\t\tboolean requestToParent = false;\n\t\t\n\t\t\tif (this.isChildPCE==true){\n\t\t\t\t//Before sending to the parent, check that the source and destinations don't belong to the domain\n\t\t\t\t\n\t\t\t\tif((!(((DomainTEDB)ted).belongsToDomain(source))||(!(((DomainTEDB)ted).belongsToDomain(dest))))){\t\t\t\t\t\n\t\t\t\t\trequestToParent = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t//In case we need to send the request to the parent... this way...\n\t\t\tif (requestToParent == true) {\n\t\t\t\tlog.info(\"Child PCE: Request is going to be fowarded to the Parent PCE\");\n\t\t\t\tPCEPRequest pcreq = new PCEPRequest();\n\t\t\t\tRequest request=pathCompReq.getRequestList().get(0).duplicate();\n\t\t\t\t//FIXME: hay que poner un nuevo requestID, si no... la podemos liar\n\t\t\t\tpcreq.addRequest(request);\n\t\t\t\tPCEPResponse p_rep = cpcerm.newRequest(pcreq);\n\n\n\t\t\t\tif (p_rep==null){\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tthis.sendNoPath(pathCompReq);\n\t\t\t\t}else {\n\t\t\t\t\tlog.info(\"RESP: \"+p_rep.toString());\n\t\t\t\t}\n\n\t\t\t\tComputingResponse pcepresp = new ComputingResponse();\n\t\t\t\tpcepresp.setResponsetList(p_rep.getResponseList());\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tlog.info(\"Encoding Computing Request\");\n\t\t\t\t\tpcepresp.encode();\n\t\t\t\t} \n\t\t\t\tcatch (PCEPProtocolViolationException e1)\n\t\t\t\t{\n\t\t\t\t\tlog.info(UtilsFunctions.exceptionToString(e1));\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"oNE OF THE NODES IS NOT IN THE DOMAIN. Send Request to parent PCE,pcepresp:\"+pcepresp+\",pathCompReq.getOut():\"+pathCompReq.getOut());\n\t\t\t\t\tpathCompReq.getOut().write(p_rep.getBytes());\n\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tComputingResponse m_resp=new ComputingResponse();\n\t\t\t\t\tResponse response=new Response();\n\t\t\t\t\tRequestParameters rp = new RequestParameters();\n\t\t\t\t\trp.setRequestID(request.getRequestParameters().requestID);\n\t\t\t\t\tresponse.setRequestParameters(rp);\n\t\t\t\t\tNoPath noPath= new NoPath();\n\t\t\t\t\tnoPath.setNatureOfIssue(ObjectParameters.NOPATH_NOPATH_SAT_CONSTRAINTS);\n\t\t\t\t\tNoPathTLV noPathTLV=new NoPathTLV();\n\t\t\t\t\tnoPath.setNoPathTLV(noPathTLV);\t\t\t\t\n\t\t\t\t\tresponse.setNoPath(noPath);\n\t\t\t\t\tm_resp.addResponse(response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_resp.encode();\n\t\t\t\t\t\tpathCompReq.getOut().write(m_resp.getBytes());\n\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t} catch (PCEPProtocolViolationException e3) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te3.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"Send NO PATH\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Response sent!!\");\n\t\t\t\t//\t}\n\t\t\t\t//}\n\t\t\t\tft=null;\n\n\t\t\t} else {\n\t\t\t\tint of=0;\n\t\t\t\tComputingAlgorithmManager algortithmManager=null;\n\t\t\t\tComputingAlgorithmManagerSSON algortithmManagerSSON=null;\n\t\t\t\tif (pathCompReq.getSvec()!=null){\n\t\t\t\t\tlog.info(\"SVEC Request \");\n\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getSvec().getObjectiveFunction();\n\t\t\t\t\tif (objectiveFunctionObject!=null){\n\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\t\t\t\t\t\tlog.info(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\talgortithmManager =svecAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\tif (algortithmManager==null){\n\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\tlog.warn(\"OF not supported\");\n\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: \"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE:\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.warn(\"USING Default SVEC \");\n\t\t\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tlog.info(\"Custom SVEC OF \"+of);\n\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlog.info(\"Default SVEC \");\n\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}//aqui se acaba el de svec!=null\n\t\t\t\telse {\n\t\t\t\t\tboolean nopath=false;\n\t\t\t\t\tlog.debug(\"Non-svec request\");\n\t\t\t\t\tdouble totalTimeNs=System.nanoTime()-pathCompReq.getTimeStampNs();\n\t\t\t\t\tdouble totalTimeMs=totalTimeNs/1000000L;\n\t\t\t\t\tif (useMaxReqTime==true){\n\t\t\t\t\t\tif (totalTimeMs>pathCompReq.getMaxTimeInPCE()){\n\t\t\t\t\t\t\tlog.info(\"Request execeeded time, sending nopath\");\n\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\tlog.info(\"Mando no path request execeeded time.totalTimeMs \"+totalTimeMs+\"pathCompReq.getMaxTimeInPCE()\");\n\t\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (nopath==false){\n\t\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getRequestList().get(0).getObjectiveFunction();\n\t\t\t\t\t\tif (objectiveFunctionObject!=null){ \t\t\t\t\n\t\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\n\t\t\t\t\t\t\tlog.debug(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\t\talgortithmManager =singleAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\talgortithmManagerSSON = singleAlgorithmListsson.get(new Integer(of));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (algortithmManager==null && algortithmManagerSSON==null){\n\t\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\t\tlog.warn(\"OF not supported!!\");\n\t\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\t\terror_c.getRequestIdList().add(pathCompReq.getRequestList().get(0).getRequestParameters());\n\t\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE. nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\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\tnopath=true;\n\t\t\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\t\t\tlog.warn(\"error message informing sent.\"+pathCompReq.getRequestList().get(0).toString());\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\tlog.info(\"Choosing default algotithm 1\");\n\t\t\t\t\t\t\t\t\tlog.info(\"pathCompReq:: \"+pathCompReq.toString());\n\t\t\t\t\t\t\t\t\t//log.info(\"ted:: \"+ted.printTopology());\n\t\t\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.info(\"Choosing algorithm of OF \"+of);\n\t\t\t\t\t\t\t\tboolean ssonAlgorithm = false;\n\t\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\t\tif (singleAlgorithmListsson.size()!=0){\n\t\t\t\t\t\t\t\t\t\tssonAlgorithm = true;\n\t\t\t\t\t\t\t\t\t\t//FIXME: Hay que declarar el parametro \"modulation format\".\n\t\t\t\t\t\t\t\t\t\tint mf=0;\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManagerSSON.getComputingAlgorithm(pathCompReq, ted, mf);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\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\tif (!ssonAlgorithm){\n\t\t\t\t\t\t\t\t\tif (isMultilayer==true){\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted, opCounter);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\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\telse {\n\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 2\");\n\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ft!=null)\t{\n\t\t\t\t//Here the task will be executed. n\n\t\t\t\tComputingResponse rep;\n\t\t\t\ttry {\n\t\t\t\t\tft.run();\n\t\t\t\t\trep=ft.get(pathCompReq.getMaxTimeInPCE(),TimeUnit.MILLISECONDS);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlog.warn(\"Computation failed: \"+e.getMessage()+\" || \"+UtilsFunctions.exceptionToString(e)+\" || \" +\",MAXTIME: \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\trep=null;\n\t\t\t\t}\n\t\t\t\tlog.info(\"ReppPP:::\"+rep);\n\t\t\t\t//FIXME: There's a trap here. We change Response to send an unnumbered interface\n\t\t\t\tif ((sourceIF!=0)&&(destIF!=0))//Esto ocurre en el caso de recibir UnnumberedInterface EndPoints (Caso VNTM)\n\t\t\t\t\ttrappingResponse(rep, sourceIF, destIF);\n\t\t\t\ttry {\n\t\t\t\t\t//FIXME: WE ARE USING THE MAX TIME IN PCE, REGARDLESS THE TIME IN THE PCE\n\t\t\t\t\t//log.error(\"Esperamos \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\t//FIXME: \t\t\t\t\n\t\t\t\t\tif (rep!=null){\n\t\t\t\t\t\t//log.info(\"rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\t\t\t\t\t\tComputingResponse repRes=ft.executeReservation();\n\t\t\t\t\t\tif (repRes!=null){\n\t\t\t\t\t\t\trep=repRes;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimeEndNanos=System.nanoTime();\n\n\t\t\t\t\t\tdouble compTimeMicroSec=(timeEndNanos-timeIniNanos)/(double)1000;\n\t\t\t\t\t\tdouble toTimeMicroSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000;\n\t\t\t\t\t\tdouble toTimeMiliSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000000;\n\t\t\t\t\t\t//In some no path cases, we can retry\n\t\t\t\t\t\t//here it is the right place\n\t\t\t\t\t\tboolean retry=false;\n\t\t\t\t\t\tif ((rep.ResponseList.getFirst().getNoPath()!=null)&&(pathCompReq.getRequestList().getFirst().getRequestParameters().isRetry())){\n\t\t\t\t\t\t\tdouble totalTimeMs=(System.nanoTime()-pathCompReq.getTimeStampNs())/1000000L;\n\t\t\t\t\t\t\tif (pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV()!=null){\n\t\t\t\t\t\t\t\tlong maxReqTimeMs=pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV().getMaxRequestTime();\n\t\t\t\t\t\t\t\tif (totalTimeMs<=maxReqTimeMs){\n\t\t\t\t\t\t\t\t\tif (totalTimeMs<60000){//FIXME: LIMITE DE 1 MINUTO, PARA EVITAR ATAQUE MALINTENCIONADO\n\t\t\t\t\t\t\t\t\t\tlog.info(\"Re-queueing comp req\");\n\t\t\t\t\t\t\t\t\t\tpathComputingRequestRetryQueue.add(pathCompReq);\t\n\t\t\t\t\t\t\t\t\t\tretry=true;\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\tif (retry==false) {\n\t\t\t\t\t\t\tif (pathCompReq.getPccReqId()!=null){\n\t\t\t\t\t\t\t\trep.getResponse(0).setPccIdreq(pathCompReq.getPccReqId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pathCompReq.getMonitoring()!=null){\n\t\t\t\t\t\t\t\tlog.info(\"Monitoring Info is requested\");\n\t\t\t\t\t\t\t\tMetricPCE metricPCE=new MetricPCE();\n\t\t\t\t\t\t\t\tPceIdIPv4 pceId=new PceIdIPv4();\n\t\t\t\t\t\t\t\tInet4Address pceIPAddress=null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpceIPAddress = (Inet4Address) Inet4Address.getByName(\"0.0.0.0\");\n\t\t\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpceId.setPceIPAddress(pceIPAddress);\n\t\t\t\t\t\t\t\tmetricPCE.setPceId(pceId);\n\t\t\t\t\t\t\t\tProcTime procTime=new ProcTime();\n\t\t\t\t\t\t\t\tmetricPCE.setProcTime(procTime);\n\t\t\t\t\t\t\t\t//FIXME: Ahora lo pongo en us para unas pruebas\n\t\t\t\t\t\t\t\t//en la RFC esta en ms\n\t\t\t\t\t\t\t\tprocTime.setCurrentProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\t//procTime.setMaxProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\trep.getResponse(0).getMetricPCEList().add(metricPCE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry { \t\t\n\t\t\t\t\t\t\t\tlog.info(rep.toString());\n\t\t\t\t\t\t\t\trep.encode();\n\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlog.error(\"PROBLEM ENCONDING RESPONSE, CHECK CODE!!\"+e.getMessage());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tlog.info(\"Request processeed, about to send response\");\n\t\t\t\t\t\t\t\tpathCompReq.getOut().write(rep.getBytes());\n\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tlog.warn(\"Could not send the response \"+e.getMessage());\n\t\t\t\t\t\t\t\tif (rep.getResponse(0).getResConf()!=null){\n\t\t\t\t\t\t\t\t\t//FIXME\n\t\t\t\t\t\t\t\t\tlog.warn(\"If your are using WLANs this is not going to work!!\");\n\t\t\t\t\t\t\t\t\tthis.reservationManager.cancelReservation(rep.getResponse(0).getResConf().getReservationID());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//log.info(\"Response sent number \"+rep.getResponseList().getFirst().getRequestParameters().getRequestID()+\",rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\n\t\t\t\t\t\t\t/*** STRONGEST: Collaborative PCEs ***/\t\n\t\t\t\t\t\t\t//FIXME: pasarlo al reservation manager\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (collaborationPCESessionManager!=null){\n\t\t\t\t\t\t\t\tif (!(rep.getResponseList().isEmpty())){\n\t\t\t\t\t\t\t\t\tif (!(rep.getResponseList().get(0).getNoPath()!=null)){\n\t\t\t\t\t\t\t\t\t\tPCEPNotification m_not = createNotificationMessage(rep,pathCompReq.getRequestList().get(0).getReservation().getTimer());\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tcollaborationPCESessionManager.sendNotifyMessage(m_not);\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}else {\n\t\t\t\t\t\tlog.info(\"COMPUTING TIME execeeded time, sending NOPATH\");\n\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (analyzeRequestTime){\n\n\t\t\t\tdouble comp=(System.nanoTime()-timeIniNanos)/(double)1000000;\n\t\t\t\tprocTime.analyze(comp);\n\t\t\t\ttimePreNanos=System.nanoTime();\n\t\t\t\tif (comp>maxProcTime){\n\t\t\t\t\tmaxProcTime=comp;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}",
"@Override\npublic void run() {\n perform();\t\n}",
"public void loopExecute(){\n\n }",
"@Override\n public void run() {\n\tprocess();\n }",
"public interface RunnableTask {\n ProcessResult run();\n}",
"long start();",
"public static void main(String[] args) throws Exception {\n // construct a new executor that will run async tasks\n AsyncExecutor executor = new ThreadAsyncExecutor();\n\n // start few async tasks with varying processing times, two last with callback handlers\n AsyncResult<Integer> asyncResult1 = executor.startProcess(lazyval(10, 5000));\n AsyncResult<String> asyncResult2 = executor.startProcess(lazyval(\"test\", 3000));\n AsyncResult<Long> asyncResult3 = executor.startProcess(lazyval(50L, 7000));\n AsyncResult<Integer> asyncResult4 = executor.startProcess(lazyval(20, 4000), callback(9999));\n AsyncResult<String> asyncResult5 =\n executor.startProcess(lazyval(\"I am result5\", 6000), callback(\"Callback result 5\"));\n\n // emulate processing in the current thread while async tasks are running in their own threads\n Thread.sleep(3500); // Oh boy I'm working hard here\n log(\"Some hard work done\");\n\n // wait for completion of the tasks\n Integer result1 = executor.endProcess(asyncResult1);\n String result2 = executor.endProcess(asyncResult2);\n Long result3 = executor.endProcess(asyncResult3);\n asyncResult4.await();\n asyncResult5.await();\n\n // log the results of the tasks, callbacks log immediately when complete\n log(\"Result 1: \" + result1);\n log(\"Result 2: \" + result2);\n log(\"Result 3: \" + result3);\n log(\"Result 4: \" + asyncResult4.getValue());\n log(\"Result 5: \" + asyncResult5.getValue());\n }",
"JobResponse apply();",
"public abstract void run();",
"public abstract void run();",
"public abstract void run();",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}",
"ProcessRunner waitFor();",
"public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public abstract void processJob() throws Exception;",
"public abstract void task();",
"void run();",
"void run();",
"void run();",
"void run();",
"public void run() {\n int done = 0;\n int len = 0;\n int off = 0;\n int rv = 0;\n _running = true;\n try {\n edu.hkust.clap.monitor.Monitor.loopBegin(143);\nwhile (_running) { \nedu.hkust.clap.monitor.Monitor.loopInc(143);\n{\n rv = _stream.read(_buffer);\n if (!PushCacheProtocol.instance().isValidProtocolTag(_buffer)) {\n throw new Exception(\"Bad protocol tag\");\n }\n _dataStream = new DataInputStream(new ByteArrayInputStream(_buffer));\n _dataStream.skipBytes(PushCacheProtocol.TAG_LEN);\n short maj = _dataStream.readShort();\n short min = _dataStream.readShort();\n if (maj != PushCacheProtocol.MAJ_PROTO_VERSION || min > PushCacheProtocol.MIN_PROTO_VERSION) {\n throw new Exception(\"Bad protocol version\");\n }\n String command = new String(_buffer, PushCacheProtocol.HEADER_LEN, PushCacheProtocol.COMMAND_LEN);\n int com = PushCacheProtocol.instance().parseCommand(command);\n readPayload();\n switch(com) {\n case PushCacheProtocol.ADD:\n add();\n break;\n case PushCacheProtocol.BYE:\n stopRunning();\n break;\n case PushCacheProtocol.DEL:\n del();\n break;\n case PushCacheProtocol.CLN:\n clean();\n break;\n case PushCacheProtocol.PRS:\n present();\n break;\n case PushCacheProtocol.NOP:\n nop();\n break;\n default:\n throw new Exception(\"Unrecognised command \\\"\" + command + \"\\\"\");\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(143);\n\n } catch (Exception e) {\n e.printStackTrace();\n _running = false;\n reply_error(e.getMessage());\n }\n cleanup();\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"worker(long workOn) {\n this.workOn = workOn;\n }",
"@Override\r\n\tpublic abstract void run();",
"@Override\n public void run()\n {\n final long expectedTimeBetweenCalls = TimeUnit.SECONDS.toMillis(1) / MAX_EXPECTED_EXECUTIONS_PER_SECOND;\n\n // Calculate the next call time, the first time should be immediate\n long nextCallTime = System.currentTimeMillis();\n\n // Execute the operation the required number of times\n for(int i = 0; i < NUM_EXECUTIONS; i++)\n {\n // Wait until the next call must be sent\n while(System.currentTimeMillis() < nextCallTime);\n\n // TODO Compute latency for each operation in milliseconds\n\n // Execute the operation, it will sleep for 10 milliseconds\n syncOpSimulator.executeOp();\n\n // TODO Record latency into histogram\n\n // TODO Compute accumulated latency and record it\n\n // Calculate the next time to call execute op\n nextCallTime += expectedTimeBetweenCalls;\n }\n\n finished = true;\n }",
"public abstract void run() ;",
"@Override\r\n\tabstract public void run();",
"public synchronized void execute() {\n\t\tthis.timeoutFuture = SCHEDULER.schedule(this::processTimeout, 5, TimeUnit.SECONDS);\n\t\tthis.statuses.put(this.localNode.getInfo(), NodeStatus.Unasked);\n\t\tcheckFinishAndProcess();\n\t}",
"public void run(){\n \tProcess p = null;\n \ttry{\n \t\twhile(!Thread.currentThread().isInterrupted()){\n\t\t \tNmapJob njob = (NmapJob) queue.take();\n\t\t \tSystem.out.println(\"\\nOneTime thread with ID = \" \n\t\t \t\t+ Thread.currentThread().getId() + \" took job with ID = \"\n\t\t \t\t\t\t\t+ njob.getID() + \"\\n\");\n\t\t \t\n\t\t String command = \"sudo nmap \" + njob.getParams();\t \t\n\t\t\t\t//execute \"nmap\" command as superuser\n\t\t p = Runtime.getRuntime().exec(command);\n\t\t\t\t//wait the command to end before putting result in queue \"results\"\n\t\t if(p.waitFor() == 0){\n\t\t \tinput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t \tResults res = new Results(njob.getID(), input);\n\t\t \tresults.put(res);\n\t\t }\n\t\t }\n\t\t \n \t}catch (InterruptedException ie){\n \t\tif(p!=null){\n \t\t\tp.destroy();\n \t\t}\n \t\tSystem.out.println(\"OneTime thread with ID = \" \n \t\t\t\t+ Thread.currentThread().getId() + \" exited normally\" );\n \t\treturn;\n\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"Task poll();",
"public Object doProcess() {\n List<Result> retv = new ArrayList<Result>();\n try {\n current_time = NTPDate.currentTimeMillis();\n current_time_nano = Utils.nanoNow();\n\n try {\n currentProcs = ProcFSUtil.getCurrentProcsHash();\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \" [ myMon ] ProcFSUtil.getCurrentProcsHash exc\", t);\n }\n }\n final Result result = getResult();\n if(result != null) {\n result.addSet(\"Max Memory\", Runtime.getRuntime().maxMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Memory\", Runtime.getRuntime().totalMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Free Memory\", Runtime.getRuntime().freeMemory() / MEGABYTE_FACTOR);\n retv.add(result);\n }\n\n Result r = fillMLCPUTimeStats();\n if (r != null)\n retv.add(r);\n\n r = fillParamStats();\n if (r != null)\n retv.add(r);\n\n r = fillProcsStats();\n if (r != null)\n retv.add(r);\n\n if (currentProcs != null && currentProcs.size() > 0) {\n prevProcs = currentProcs;\n }\n\n r = fillPMSStats();\n if (r != null)\n retv.add(r);\n\n r = fillMLLUSHelperStats();\n if (r != null)\n retv.add(r);\n\n r = fillPWStats();\n if (r != null)\n retv.add(r);\n\n r = fillTCWStats();\n if (r != null)\n retv.add(r);\n\n if (IS_MAC) {\n r = fillFromMAC();\n if (r != null)\n retv.add(r);\n }\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \"[ myMon ] [ HANDLED ] got ex main loop ... \", t);\n }\n return null;\n } finally {\n last_time_nano = current_time_nano;\n }\n\n currentProcs = null;\n if (logger.isLoggable(Level.FINEST)) {\n logger.log(Level.FINEST, \" [ myMon ] Returning ... \\n\" + retv);\n }\n return retv;\n }",
"Long getRunningCount();",
"@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 }",
"void consumeWorkUnit();",
"@Override\r\n\tpublic void doTask() {\n\t}",
"abstract Object doPMJob() throws PackageManagerException;",
"@Override\n abstract public void run();",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"private void scheduleJob() {\n Log.d(TAG, \"Long lived task is done.\");\n }",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}",
"void execute(Runnable job);",
"public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }",
"public void doIdleTasks();",
"public abstract void runProcess();",
"<T> AsyncResult<T> startProcess(Callable<T> task);",
"public abstract void onWait();",
"public abstract void onProcess();",
"@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n while (!sh.liftReady && time.milliseconds() < 1500) {\n }\n //\n sh.pivotPID(650, true, .07/650, .01, .01/650, 2);\n sh.pivotPID(640, false, .07/640, .01, .01/640, 2);\n\n\n\n }",
"@Override\r\n public void run() {}",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"@Override\r\n\tpublic void process(ResultItems arg0, Task arg1) {\n\t\t\r\n\t}",
"protected abstract void work();",
"<T> AsyncResult<T> startProcess(Callable<T> task, AsyncCallback<T> callback);",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public void process();",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"public interface AsyncResponse {\n void processFinish(double calories, double date);\n}",
"public abstract void runOperation();",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"private void executeProcessWithPolling(T input) {\n\t\t// switch to progress bar mode\n\t\tprogressMode();\n\n\t\t// start a thread to update the progress\n\t\ttry {\n\t\t\tint estimatedSize = estimateSize.applyAsInt(input);\n\n\t\t\tcounter.reset();\n\t\t\tui.setPollInterval(POLL_INTERVAL);\n\n\t\t\tProgressBarUpdater updater = new ProgressBarUpdater(ui, this, estimatedSize);\n\n\t\t\t// the thread that updates the progress bar\n\t\t\tThread updateThread = new Thread(updater);\n\t\t\tupdateThread.start();\n\n\t\t\t// the thread that performs the actual work\n\t\t\tThread worker = new Thread(() -> {\n\t\t\t\ttry {\n\t\t\t\t\tprocess.accept(input, estimatedSize);\n\t\t\t\t} finally {\n\t\t\t\t\tupdater.setStopped(true);\n\t\t\t\t\tsignalDone(false);\n\t\t\t\t}\n\t\t\t});\n\t\t\tworker.start();\n\t\t} catch (RuntimeException ex) {\n\t\t\tlog.error(ex.getMessage(), ex);\n\t\t\t// exception during size estimation\n\t\t\tshowNotification(ex.getMessage());\n\t\t\tsignalDone(true);\n\t\t}\n\t}",
"void completeJob();",
"public void processing();",
"public void backgroundProcess();",
"@Override\n public void run() {\n MemUsage memUsage = new MemUsage();\n Runtime run = Runtime.getRuntime();\n String memPath = \"/proc/\" + processId + \"/status\";\n LOG.info(\"Reading the file for memory: \" + memPath);\n String currentTime;\n File statusFile;\n float pcpu;\n int pmem;\n ProcessInfoBean processInfoBean = new ProcessInfoBean();\n processInfoBean.setLocalHostIp(ip);\n processInfoBean.setProceeName(processName);\n while (running) {\n pcpu = getCPUUsageByTopCommond(run, cmd);\n if (pcpu != -1) {\n statusFile = new File(memPath);\n if (statusFile.exists()) {\n pmem = memUsage.getMemUsage(statusFile);\n if (pmem != -1) {\n currentTime = TimeUtils.getCurrentTime();//获取系统当前时间\n processInfoBean.setUpdateTime(currentTime);\n processInfoBean.setCpuUsage(pcpu);\n processInfoBean.setMemUsage(pmem);\n processInfoBean.setPid(Integer.parseInt(processId));\n processInfoDao.insert_process_monitor(processInfoBean);\n MybatisUtils.session.commit();\n try {\n Thread.sleep(intervalTime);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n }\n }\n }",
"@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\r\n FutureService futureService = new FutureService();\r\n Future<String> future = futureService.submit(() -> {\r\n try {\r\n Thread.sleep(10_000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n return \"FINISH\";\r\n }, System.out::println);\r\n System.out.println(\"================\");\r\n System.out.println(\"do other thing.\");\r\n Thread.sleep(1_000L);\r\n System.out.println(\"================\");\r\n\r\n// System.out.println(future.get());\r\n }",
"private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\n\tpublic Result doProcessing() {\n\t\treturn doProcessing1();\n\t}",
"private void workOnQueue() {\n }",
"abstract void runRoutine();",
"@Override\r\n public void run() { \r\n do{\r\n if(resList[resId].semaphore.tryLock()){ //gets lock and returns true if free (basically wait)\r\n try{\r\n this.doJob();\r\n }\r\n catch(Exception e){ //just in case\r\n System.out.println(e.toString());\r\n }\r\n finally{\r\n resList[resId].semaphore.unlock(); //frees resource (basically signal)\r\n }\r\n }\r\n } while(!shutdown);\r\n \r\n System.out.println(name + \" stopped.\"); //notify that the thread has stopped.\r\n }",
"public void executeASync (ProcessInfo pi)\r\n\t {\r\n\t }",
"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 }",
"void backgroundProcess();",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tBitmap bit = InputStream2Bimap( taskModel.domainInputStreamResult ) ; \n\t\t\t\t\tMessage msg = new Message(); \n\t\t\t\t\tmsg.obj = bit ; \n\t\t\t\t\tmsg.what = 4 ; \n\t\t\t\t\thandler.sendMessage(msg) ;\n\t\t\t\t}"
] | [
"0.64571196",
"0.6018424",
"0.59426624",
"0.58245164",
"0.5815585",
"0.57886654",
"0.5784486",
"0.5765948",
"0.57561016",
"0.57029855",
"0.56865627",
"0.5681897",
"0.56678647",
"0.5635529",
"0.56273675",
"0.56013197",
"0.5594603",
"0.55726194",
"0.5563944",
"0.55614185",
"0.55609757",
"0.5547027",
"0.5544474",
"0.5513693",
"0.54951006",
"0.5482733",
"0.54821706",
"0.54821706",
"0.54821706",
"0.54813945",
"0.5437184",
"0.5424631",
"0.54240704",
"0.54238284",
"0.54213065",
"0.54213065",
"0.54213065",
"0.54213065",
"0.5405651",
"0.54036283",
"0.54036283",
"0.54003793",
"0.53891087",
"0.5385208",
"0.53808314",
"0.5380544",
"0.5371877",
"0.53671527",
"0.53625447",
"0.53589463",
"0.5354654",
"0.53477925",
"0.5338331",
"0.5336936",
"0.53302526",
"0.5324122",
"0.53137803",
"0.530588",
"0.5305472",
"0.5296521",
"0.5293431",
"0.5286279",
"0.5274373",
"0.52688235",
"0.52681243",
"0.52663153",
"0.52570146",
"0.5256836",
"0.52535874",
"0.52524877",
"0.52524877",
"0.52524877",
"0.52524877",
"0.52524877",
"0.5249411",
"0.5244851",
"0.52412856",
"0.52306527",
"0.5229261",
"0.5227585",
"0.522719",
"0.52230465",
"0.52224666",
"0.52224666",
"0.5219774",
"0.5217257",
"0.521318",
"0.5209532",
"0.5207826",
"0.5202995",
"0.52022135",
"0.5201836",
"0.5198291",
"0.5187131",
"0.51843107",
"0.51812726",
"0.51746666",
"0.51700777",
"0.5167737",
"0.5162496",
"0.51576096"
] | 0.0 | -1 |
Initialize the contents of the frame. | private void initialize() {
ClassLoader classLoader = ClassLoader.getSystemClassLoader();
frmSteapps = new JFrame();
frmSteapps.setTitle("STEApps");
frmSteapps.setResizable(false);
frmSteapps.setBounds(100, 100, 1080, 720);
frmSteapps.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frmSteapps.getContentPane().setLayout(new CardLayout());
ImageIcon iconApps = new ImageIcon(classLoader.getResource("ico.png"));
frmSteapps.setIconImage(iconApps.getImage());
JPanel panelLogin = new JPanel();
JPanel panelMain = new JPanel();
frmSteapps.getContentPane().add(panelLogin, PANEL_LOGIN);
panelLogin.setLayout(new BorderLayout(0, 0));
frmSteapps.getContentPane().add(panelMain, PANEL_MAIN);
panelMain.setLayout(null);
JPanel _panelLogin = new JPanel();
_panelLogin.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
panelLogin.add(_panelLogin, BorderLayout.CENTER);
_panelLogin.setLayout(new MigLayout("", "[grow][108.00][171.00][grow]", "[grow][][][][][][][grow]"));
ImageIcon icon = new ImageIcon(classLoader.getResource("logo.png"));
JLabel lblLogo = new JLabel(icon);
_panelLogin.add(lblLogo, "cell 1 1 2 1,alignx center");
JLabel lblAdminName = new JLabel("Admin Name");
_panelLogin.add(lblAdminName, "cell 1 3,alignx leading");
textFieldAdminName = new JTextField();
_panelLogin.add(textFieldAdminName, "cell 2 3,growx");
textFieldAdminName.setColumns(10);
JLabel lblAdminPass = new JLabel("Password");
_panelLogin.add(lblAdminPass, "cell 1 4,alignx leading");
textFieldAdminPass = new JPasswordField();
_panelLogin.add(textFieldAdminPass, "cell 2 4,growx");
textFieldAdminPass.setColumns(10);
btnLogin = new JButton("Login");
btnLogin.setMinimumSize(new Dimension(150, 23));
_panelLogin.add(btnLogin, "cell 1 6 2 1,alignx center");
JMenuBar menuBar = new JMenuBar();
menuBar.setBounds(0, 0, 1074, 23);
//ImageIcon icon = new ImageIcon("exit.png");
JMenu menuFile = new JMenu("File");
menuFile.setMnemonic(KeyEvent.VK_F);
JMenuItem menuItemLogout = new JMenuItem("Logout");
menuItemLogout.setMnemonic(KeyEvent.VK_L);
menuItemLogout.setToolTipText("Logout from admin");
menuItemLogout.addActionListener((ActionEvent event) -> {
JPanel parent = (JPanel) frmSteapps.getContentPane();
((CardLayout)parent.getLayout()).show(parent, PANEL_LOGIN);
});
menuFile.add(menuItemLogout);
JMenuItem menuItemExit = new JMenuItem("Exit");
menuItemExit.setMnemonic(KeyEvent.VK_E);
menuItemExit.setToolTipText("Exit application");
menuItemExit.addActionListener((ActionEvent event) -> {
System.exit(0);
});
menuFile.add(menuItemExit);
menuBar.add(menuFile);
panelMain.add(menuBar);
JTabbedPane b1TabPaneUserPost = new JTabbedPane(JTabbedPane.BOTTOM);
b1TabPaneUserPost.setBorder(new TitledBorder(null, "User Post", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b1TabPaneUserPost.setBounds(10, 32, 502, 382);
panelMain.add(b1TabPaneUserPost);
b2JlistPost = new JList<Post.PostEntry>();
b2JlistPost.setCellRenderer(new Post.PostRenderer());
JScrollPane _b2JScrollPostGui = new JScrollPane(b2JlistPost);
b1TabPaneUserPost.addTab("Graphical", null, _b2JScrollPostGui, null);
b2JToolBarPostGui = new JToolBar(JToolBar.VERTICAL);
_b2JScrollPostGui.setRowHeaderView(b2JToolBarPostGui);
b2TextAreaPostRaw = new JTextArea();
JScrollPane _b2JScrollPostRaw = new JScrollPane(b2TextAreaPostRaw);
b1TabPaneUserPost.addTab("Raw", null, _b2JScrollPostRaw, null);
JTabbedPane b1TabPanelPostDetail = new JTabbedPane();
b1TabPanelPostDetail.setBorder(new TitledBorder(null, "Post Details", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b1TabPanelPostDetail.setTabPlacement(JTabbedPane.BOTTOM);
b1TabPanelPostDetail.setBounds(522, 32, 542, 382);
panelMain.add(b1TabPanelPostDetail);
JPanel b2PanelPostDetailGui = new JPanel();
JScrollPane _b2ScrollPanePostDetailGui = new JScrollPane(b2PanelPostDetailGui);
_b2ScrollPanePostDetailGui.getVerticalScrollBar().setUnitIncrement(25);
b2PanelPostDetailGui.setLayout(new BoxLayout(b2PanelPostDetailGui, BoxLayout.Y_AXIS));
JPanel panelApd = new JPanel();
panelApd.setBorder(new TitledBorder(null, "Kelengkapan APD Driver", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b2PanelPostDetailGui.add(panelApd);
panelApd.setLayout(new MigLayout("", "[125.00][grow]", "[][][][][][]"));
JLabel lblHelm = new JLabel("Helm");
panelApd.add(lblHelm, "cell 0 0");
f_chckbxHelm = new JCheckBox("Ada");
panelApd.add(f_chckbxHelm, "cell 1 0");
JLabel lblSafetyShoes = new JLabel("Safety Shoes");
panelApd.add(lblSafetyShoes, "cell 0 1");
f_chckbxSafetyShoes = new JCheckBox("Ada");
panelApd.add(f_chckbxSafetyShoes, "cell 1 1");
JLabel lblSafetyGlasses = new JLabel("Safety Glasses");
panelApd.add(lblSafetyGlasses, "cell 0 2");
f_chckbxSafetyGlasses = new JCheckBox("Ada");
panelApd.add(f_chckbxSafetyGlasses, "cell 1 2");
JLabel lblBodyVest = new JLabel("Body Vest");
panelApd.add(lblBodyVest, "cell 0 3");
f_chckbxBodyVest = new JCheckBox("Ada");
panelApd.add(f_chckbxBodyVest, "cell 1 3");
JLabel lblSarungTangan = new JLabel("Sarung Tangan");
panelApd.add(lblSarungTangan, "cell 0 4");
f_chckbxSarungTangan = new JCheckBox("Ada");
panelApd.add(f_chckbxSarungTangan, "cell 1 4");
JLabel lblDuskMask = new JLabel("Dusk mask");
panelApd.add(lblDuskMask, "cell 0 5");
f_chckbxDuskMask = new JCheckBox("Ada");
panelApd.add(f_chckbxDuskMask, "cell 1 5");
JPanel panelKelengkapanKendaraan = new JPanel();
panelKelengkapanKendaraan.setBorder(new TitledBorder(null, "Kelengkapan Kendaraan", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b2PanelPostDetailGui.add(panelKelengkapanKendaraan);
panelKelengkapanKendaraan.setLayout(new MigLayout("", "[125.00,leading][grow]", "[][grow][][][][]"));
JLabel lblApar = new JLabel("Apar");
panelKelengkapanKendaraan.add(lblApar, "cell 0 0");
f_chckbxApar = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxApar, "cell 1 0");
JPanel panelSpillKits = new JPanel();
panelSpillKits.setBorder(new TitledBorder(null, "Spill Kits", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panelKelengkapanKendaraan.add(panelSpillKits, "cell 0 1 2 1,grow");
panelSpillKits.setLayout(new MigLayout("", "[112.00][grow]", "[][][]"));
JLabel lblSkop = new JLabel("Skop");
panelSpillKits.add(lblSkop, "cell 0 0");
f_chckbxSkop = new JCheckBox("Ada");
panelSpillKits.add(f_chckbxSkop, "cell 1 0");
JLabel lblSapuLidi = new JLabel("Sapu Lidi");
panelSpillKits.add(lblSapuLidi, "cell 0 1");
f_chckbxSapuLidi = new JCheckBox("Ada");
panelSpillKits.add(f_chckbxSapuLidi, "cell 1 1");
JLabel lblSawDust = new JLabel("Saw Dust");
panelSpillKits.add(lblSawDust, "cell 0 2");
f_chckbxSawDust = new JCheckBox("Ada");
panelSpillKits.add(f_chckbxSawDust, "cell 1 2");
JLabel lblGps = new JLabel("GPS");
panelKelengkapanKendaraan.add(lblGps, "cell 0 2");
f_chckbxGps = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxGps, "cell 1 2");
JLabel lblLampuRotary = new JLabel("Lampu Rotary");
panelKelengkapanKendaraan.add(lblLampuRotary, "cell 0 3");
f_chckbxLampuRotary = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxLampuRotary, "cell 1 3");
JLabel lblRambuPortable = new JLabel("Rambu Portable");
panelKelengkapanKendaraan.add(lblRambuPortable, "cell 0 4");
f_chckbxRambuPortable = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxRambuPortable, "cell 1 4");
JLabel lblKerucutPengaman = new JLabel("Kerucut Pengaman");
panelKelengkapanKendaraan.add(lblKerucutPengaman, "cell 0 5");
f_chckbxKerucutPengaman = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxKerucutPengaman, "cell 1 5");
JLabel lblSegitigaPengaman = new JLabel("Segitiga Pengaman");
panelKelengkapanKendaraan.add(lblSegitigaPengaman, "cell 0 6");
f_chckbxSegtigaPengaman = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxSegtigaPengaman, "cell 1 6");
JLabel lblDongkrak = new JLabel("Dongkrak");
panelKelengkapanKendaraan.add(lblDongkrak, "cell 0 7");
f_chckbxDongkrak = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxDongkrak, "cell 1 7");
JLabel lblPitaPembatas = new JLabel("Pita Pembatas");
panelKelengkapanKendaraan.add(lblPitaPembatas, "cell 0 8");
f_chckbxPitaPembatas = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxPitaPembatas, "cell 1 8");
JLabel lblGanjalRoda = new JLabel("Ganjal Roda");
panelKelengkapanKendaraan.add(lblGanjalRoda, "cell 0 9");
f_chckbxGanjalRoda = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxGanjalRoda, "cell 1 9");
JLabel lblKotakObat = new JLabel("Kotak Obat");
panelKelengkapanKendaraan.add(lblKotakObat, "cell 0 10");
f_chckbxKotakObat = new JCheckBox("Ada");
panelKelengkapanKendaraan.add(f_chckbxKotakObat, "cell 1 10");
JPanel panelPlacard = new JPanel();
panelPlacard.setBorder(new TitledBorder(null, "Placard", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b2PanelPostDetailGui.add(panelPlacard);
panelPlacard.setLayout(new MigLayout("", "[129.00][118.00,grow,fill]", "[][][][]"));
JLabel lblKanan = new JLabel("Kanan");
panelPlacard.add(lblKanan, "cell 0 0,alignx leading");
f_comboBoxKanan = new JComboBox();
f_comboBoxKanan.setModel(new DefaultComboBoxModel(ThreeChoice.values()));
panelPlacard.add(f_comboBoxKanan, "cell 1 0,growx");
JLabel lblKiri = new JLabel("Kiri");
panelPlacard.add(lblKiri, "cell 0 1,alignx leading");
f_comboBoxKiri = new JComboBox();
f_comboBoxKiri.setModel(new DefaultComboBoxModel(ThreeChoice.values()));
panelPlacard.add(f_comboBoxKiri, "cell 1 1,growx");
JLabel lblDepan = new JLabel("Depan");
panelPlacard.add(lblDepan, "cell 0 2,alignx leading");
f_comboBoxDepan = new JComboBox();
f_comboBoxDepan.setModel(new DefaultComboBoxModel(ThreeChoice.values()));
panelPlacard.add(f_comboBoxDepan, "cell 1 2,growx");
JLabel lblBelakang = new JLabel("Belakang");
panelPlacard.add(lblBelakang, "cell 0 3,alignx leading");
f_comboBoxBelakang = new JComboBox();
f_comboBoxBelakang.setModel(new DefaultComboBoxModel(ThreeChoice.values()));
panelPlacard.add(f_comboBoxBelakang, "cell 1 3,growx");
b2PanelPostDetailGui.add(panelPlacard, "cell 0 2,grow");
JPanel panelSuratDanBerlaku = new JPanel();
panelSuratDanBerlaku.setBorder(new TitledBorder(null, "Surat & Masa Berlaku", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b2PanelPostDetailGui.add(panelSuratDanBerlaku);
panelSuratDanBerlaku.setLayout(new MigLayout("", "[125.00][grow]", "[][][][][][][][]"));
JLabel lblIjinB = new JLabel("Ijin B3");
panelSuratDanBerlaku.add(lblIjinB, "cell 0 0,alignx leading");
f_textFieldIjinB3 = new JTextField();
panelSuratDanBerlaku.add(f_textFieldIjinB3, "cell 1 0,growx");
f_textFieldIjinB3.setColumns(10);
JLabel lblSim = new JLabel("SIM");
panelSuratDanBerlaku.add(lblSim, "cell 0 1,alignx leading");
f_textFieldSim = new JTextField();
panelSuratDanBerlaku.add(f_textFieldSim, "cell 1 1,growx");
f_textFieldSim.setColumns(10);
JLabel lblKir = new JLabel("KIR");
panelSuratDanBerlaku.add(lblKir, "cell 0 2,alignx leading");
f_textFieldKir = new JTextField();
panelSuratDanBerlaku.add(f_textFieldKir, "cell 1 2,growx");
f_textFieldKir.setColumns(10);
JLabel lblStnk = new JLabel("STNK");
panelSuratDanBerlaku.add(lblStnk, "cell 0 3,alignx leading");
f_textFieldStnk = new JTextField();
panelSuratDanBerlaku.add(f_textFieldStnk, "cell 1 3,growx");
f_textFieldStnk.setColumns(10);
JLabel lblUjiEmisi = new JLabel("Uji Emisi");
panelSuratDanBerlaku.add(lblUjiEmisi, "cell 0 4,alignx leading");
f_textFieldUjiEmisi = new JTextField();
panelSuratDanBerlaku.add(f_textFieldUjiEmisi, "cell 1 4,growx");
f_textFieldUjiEmisi.setColumns(10);
JLabel lblKetDokter = new JLabel("Ket. Dokter");
panelSuratDanBerlaku.add(lblKetDokter, "cell 0 5,alignx leading");
f_textFieldKetDokter = new JTextField();
panelSuratDanBerlaku.add(f_textFieldKetDokter, "cell 1 5,growx");
f_textFieldKetDokter.setColumns(10);
JLabel lblSertifikat = new JLabel("Sertifikat");
panelSuratDanBerlaku.add(lblSertifikat, "cell 0 6,alignx leading");
f_chckbxSertifikat = new JCheckBox("Ada");
panelSuratDanBerlaku.add(f_chckbxSertifikat, "cell 1 6");
JLabel lblIdCard = new JLabel("ID Card");
panelSuratDanBerlaku.add(lblIdCard, "cell 0 7,alignx leading");
f_chckbxIdCard = new JCheckBox("Ada");
panelSuratDanBerlaku.add(f_chckbxIdCard, "cell 1 7");
b2PanelPostDetailGui.add(panelSuratDanBerlaku);
JPanel panelCodeTruck = new JPanel();
panelCodeTruck.setBorder(new TitledBorder(null, "Code Truck", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b2PanelPostDetailGui.add(panelCodeTruck);
panelCodeTruck.setLayout(new MigLayout("", "[125.00][grow]", "[]"));
JLabel lblCodeTruck = new JLabel("Code Truck");
panelCodeTruck.add(lblCodeTruck, "cell 0 0,alignx leading");
f_textFieldCodeTruck = new JTextField();
panelCodeTruck.add(f_textFieldCodeTruck, "cell 1 0,growx");
f_textFieldCodeTruck.setColumns(10);
b2PanelPostDetailGui.add(panelCodeTruck);
b1TabPanelPostDetail.addTab("Graphical", null, _b2ScrollPanePostDetailGui, null);
b2JTextPanePostDetailRaw = new JTextPane();
JScrollPane _b2ScrollPanePostDetailRaw = new JScrollPane(b2JTextPanePostDetailRaw);
b1TabPanelPostDetail.addTab("Raw", null, _b2ScrollPanePostDetailRaw, null);
JPanel b1PanelUserDetail = new JPanel();
b1PanelUserDetail.setBounds(522, 425, 542, 255);
panelMain.add(b1PanelUserDetail);
b1PanelUserDetail.setLayout(new BorderLayout(0, 0));
JTabbedPane b2TabbedPanelDetails = new JTabbedPane(JTabbedPane.BOTTOM);
b2TabbedPanelDetails.setBorder(new TitledBorder(null, "User Details", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b1PanelUserDetail.add(b2TabbedPanelDetails, BorderLayout.CENTER);
JPanel b3PanelUserDetailGui = new JPanel();
b3PanelUserDetailGui.setLayout(new MigLayout("", "[166.00][grow]", "[][][][][][][]"));
JScrollPane _b3ScrollPanelUserDetailGui = new JScrollPane();
_b3ScrollPanelUserDetailGui.setViewportView(b3PanelUserDetailGui);
JLabel b4LblNama = new JLabel("Nama Lengkap");
b3PanelUserDetailGui.add(b4LblNama, "cell 0 0,alignx leading");
b4TextFieldNama = new JTextField();
b4TextFieldNama.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldNama, "cell 1 0,growx");
b4TextFieldNama.setColumns(10);
JLabel b4LblUserName = new JLabel("User Name");
b3PanelUserDetailGui.add(b4LblUserName, "cell 0 1,alignx leading");
b4TextFieldUserName = new JTextField();
b4TextFieldUserName.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldUserName, "cell 1 1,growx");
b4TextFieldUserName.setColumns(10);
JLabel b4LblIdCard = new JLabel("ID Card");
b3PanelUserDetailGui.add(b4LblIdCard, "cell 0 2,alignx leading");
b4TextFieldIdCard = new JTextField();
b4TextFieldIdCard.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldIdCard, "cell 1 2,growx");
b4TextFieldIdCard.setColumns(10);
JLabel b4LblTtl = new JLabel("TTL");
b3PanelUserDetailGui.add(b4LblTtl, "cell 0 3,alignx leading");
b4TextFieldTTL = new JTextField();
b4TextFieldTTL.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldTTL, "cell 1 3,growx");
b4TextFieldTTL.setColumns(10);
JLabel b4LblTanggalMasukPerusahaan = new JLabel("Tanggal Masuk Perusahaan");
b3PanelUserDetailGui.add(b4LblTanggalMasukPerusahaan, "cell 0 4,alignx leading");
b4TextFieldTanggaLMasuk = new JTextField();
b4TextFieldTanggaLMasuk.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldTanggaLMasuk, "cell 1 4,growx");
b4TextFieldTanggaLMasuk.setColumns(10);
JLabel b4LblNoTelp = new JLabel("No. Telp");
b3PanelUserDetailGui.add(b4LblNoTelp, "cell 0 5,alignx leading");
b4TextFieldNoTelp = new JTextField();
b4TextFieldNoTelp.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldNoTelp, "cell 1 5,growx");
b4TextFieldNoTelp.setColumns(10);
JLabel b4LblEmail = new JLabel("Email");
b3PanelUserDetailGui.add(b4LblEmail, "cell 0 6,alignx leading");
b4TextFieldEmail = new JTextField();
b4TextFieldEmail.setEditable(false);
b3PanelUserDetailGui.add(b4TextFieldEmail, "cell 1 6,growx");
b4TextFieldEmail.setColumns(10);
b2TabbedPanelDetails.addTab("Graphical", null, _b3ScrollPanelUserDetailGui , null);
b3TextAreaUserDetailRaw = new JTextArea();
JScrollPane _b3PanelUserDetailRaw = new JScrollPane(b3TextAreaUserDetailRaw);
b2TabbedPanelDetails.addTab("Raw", null, _b3PanelUserDetailRaw, null);
JPanel b1PanelUserList = new JPanel();
b1PanelUserList.setBounds(10, 425, 502, 255);
panelMain.add(b1PanelUserList);
b1PanelUserList.setLayout(new BorderLayout(0, 0));
JTabbedPane b2TabbedPanelUserList = new JTabbedPane(JTabbedPane.BOTTOM);
b2TabbedPanelUserList.setBorder(new TitledBorder(null, "User List", TitledBorder.LEADING, TitledBorder.TOP, null, null));
b1PanelUserList.add(b2TabbedPanelUserList, BorderLayout.CENTER);
b4JlistUserList = new JList();
b4JlistUserList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
JScrollPane b3ScrollPaneUserList1 = new JScrollPane(b4JlistUserList);
b2TabbedPanelUserList.addTab("Graphical", null, b3ScrollPaneUserList1, null);
b4TextPaneUserList = new JTextPane();
JScrollPane b3ScrollPaneUserList2 = new JScrollPane(b4TextPaneUserList);
b2TabbedPanelUserList.addTab("Raw", null, b3ScrollPaneUserList2, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"protected HFrame(){\n\t\tinit();\n\t}",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initFrame() {\n setLayout(new BorderLayout());\n }",
"private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}",
"public FrameControl() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"public MainFrame() {\n initComponents();\n \n }",
"private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}",
"public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"public Mainframe() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }",
"private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}",
"public mainframe() {\n initComponents();\n }",
"public FrameDesign() {\n initComponents();\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public JGSFrame() {\n\tsuper();\n\tinitialize();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }",
"private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}",
"private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"public PilaFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}",
"StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public SerialCommFrame()\n {\n super();\n initialize();\n }",
"public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public BaseFrame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"public MercadoFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}",
"public holdersframe() {\n initComponents();\n }",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"public addStFrame() {\n initComponents();\n }",
"public JFrame() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}",
"public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}",
"public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}"
] | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.7107974",
"0.7100368",
"0.7092515",
"0.708178",
"0.70652425",
"0.70630395",
"0.70621413",
"0.7060283",
"0.70517516",
"0.7043992",
"0.6996167",
"0.6978269",
"0.6971387",
"0.6956391",
"0.6938475",
"0.6929829",
"0.6929629",
"0.69251114",
"0.6921989",
"0.6920365",
"0.6914633",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.69020075",
"0.68911743",
"0.6886017",
"0.6873457",
"0.6870402",
"0.68686837",
"0.68669385",
"0.686311",
"0.68616706",
"0.68552315",
"0.68537515",
"0.681551",
"0.68141145",
"0.68094325",
"0.67992085",
"0.67930394",
"0.6782133",
"0.6765297",
"0.6748138",
"0.6731745",
"0.6716807",
"0.6711878",
"0.6706194",
"0.6697453",
"0.6692831",
"0.66927665",
"0.6689213",
"0.66724384",
"0.66606426",
"0.664954",
"0.6642464",
"0.6640775",
"0.6638488",
"0.663824",
"0.663545",
"0.66264987",
"0.6625419",
"0.6611392",
"0.6608291",
"0.6600817",
"0.66005784",
"0.6591052",
"0.65869486",
"0.65862876",
"0.65753394",
"0.6575285",
"0.6570335",
"0.655961"
] | 0.0 | -1 |
Creates new form Kalkulator | public Kalkulator() {
initComponents();
angka="";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public Kalkulator() {\n initComponents();\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public FormInserir() {\n initComponents();\n }",
"public BtxDetailsKcFormDefinition() {\n super();\n }",
"public FrmKashidashi() {\n initComponents();\n }",
"private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}",
"public Kalkulator() {\n initComponents();\n this.setLocation(300, 200);\n }",
"public Calculator()\r\n {\r\n //Creating Choice group list\r\n options = new ChoiceGroup(\"Main Form\",Choice.EXCLUSIVE);\r\n options.append(\"ADDITION\",null);\r\n options.append(\"SUBTRACTION\",null);\r\n options.append(\"MULTIPLICATION\",null);\r\n options.append(\"DIVISION\",null);\r\n \r\n display = Display.getDisplay(this);\r\n \r\n //Creating Forms\r\n main = new Form(\"MAIN FORM\");\r\n ChoiceGroupAppend=main.append(options);\r\n operation = new Form(\"OPERATION\");\r\n \r\n //Initializing different command buttons \r\n exit = new Command(\"EXIT\",Command.EXIT,0);\r\n select = new Command(\"SELECT\",Command.OK,0);\r\n back = new Command(\"BACK\",Command.BACK,0);\r\n result = new Command(\"RESULT\",Command.OK,0);\r\n clear = new Command(\"CLEAR\",Command.OK,0);\r\n //Adding command buttons to different forms\r\n main.addCommand(exit);\r\n main.addCommand(select);\r\n operation.addCommand(result);\r\n operation.addCommand(back);\r\n operation.addCommand(clear);\r\n main.setCommandListener(this);\r\n operation.setCommandListener(this);\r\n \r\n display.setCurrent(main);\r\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }",
"public FormProduct() {\n initComponents();\n getData();\n }",
"public Formulario() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\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 myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public quanlixe_form() {\n initComponents();\n }",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"public KamarFrom() {\n \n initComponents();\n tabel();\n \n }",
"@AutoGenerated\n\tprivate FormLayout buildFormLayout() {\n\t\tformLayout = new FormLayout();\n\t\tformLayout.setImmediate(false);\n\t\tformLayout.setWidth(\"400px\");\n\t\tformLayout.setHeight(\"-1px\");\n\t\tformLayout.setMargin(false);\n\t\tformLayout.setSpacing(true);\n\t\t\n\t\t// fieldArtist\n\t\tfieldArtist = new TextField();\n\t\tfieldArtist.setCaption(\"Artist\");\n\t\tfieldArtist.setImmediate(true);\n\t\tfieldArtist.setWidth(\"100.0%\");\n\t\tfieldArtist.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldArtist);\n\t\t\n\t\t// fieldTitle\n\t\tfieldTitle = new TextField();\n\t\tfieldTitle.setCaption(\"Title\");\n\t\tfieldTitle.setImmediate(true);\n\t\tfieldTitle.setWidth(\"100.0%\");\n\t\tfieldTitle.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldTitle);\n\t\t\n\t\treturn formLayout;\n\t}",
"public form() {\n initComponents();\n }",
"public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }",
"public form_for_bd() {\n initComponents();\n }",
"public StokEkle() {\n initComponents();\n \n }",
"private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }",
"@Override\n public void buildView(IModelForm modelForm) {\n FormSection inputSection = modelForm.addSection(\"Input\");\n inputSection.addEntityListField(_inputGrids, new Grid3dTimeDepthSpecification());\n inputSection.addEntityComboField(_velocityVolume, new VelocityVolumeSpecification());\n inputSection.addEntityComboField(_aoi, AreaOfInterest.class).showActiveFieldToggle(_aoiFlag);\n\n // Build the conversion section.\n FormSection parameterSection = modelForm.addSection(\"Conversion\");\n parameterSection.addRadioGroupField(_conversionMethod, Method.values());\n\n // Build the output section.\n FormSection outputSection = modelForm.addSection(\"Output\");\n outputSection.addTextField(_outputGridSuffix);\n }",
"public CrearProductos() {\n initComponents();\n }",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}",
"public ProductCreate() {\n initComponents();\n }",
"private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }",
"public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }",
"public FormPemilihan() {\n initComponents();\n }",
"public Form_soal() {\n initComponents();\n tampil_soal();\n }",
"public AuditFunctionForm() {\n initComponents();\n init();\n }",
"public Kost() {\n initComponents();\n }",
"private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public AlleleFreq(FormCreator f) {\r\n\t\tsuper(f, name);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}",
"public Formulario() {\n initComponents();\n modelo = (DefaultTableModel) jTable2.getModel();\n }",
"public AddExpensesForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public JFrameFormularioProducto() {\n initComponents();\n }",
"public FmKlijent() {\n initComponents();\n// napuniKombo();\n// srediTabelu();\n }",
"public FormularioP() {\n initComponents();\n }",
"public HarvesterAdminForm() {\n\n\t\tsetShSet(\"split\");\n\n\t\tprtln(\"HarvesterAdminForm() \");\n\n\t}",
"public RecipeForm(){\n\t\tFactory ingredientFactory = new Factory() {\n\t\t\tpublic Object create() {\n\t\t\t\treturn new Ingredient();\n\t\t }\n\t\t};\n\t\tFactory quantityFactory = new Factory(){\n\t\t\tpublic Object create(){\n\t\t\t\treturn new Quantity();\n\t\t\t}\n\t\t};\n\t\t\n\t\tingredientsList = LazyList.decorate(new ArrayList<Ingredient>(), ingredientFactory);\n\t\tquantities = LazyList.decorate(new ArrayList<Quantity>(), quantityFactory);\n\t}",
"private FormMediator() {\n queryViews = new LinkedList<QueryView>();\n searchAction = Actions.SEARCH_ACTION;\n }",
"public ValidFrequencyForm() {\r\n initComponents();\r\n }",
"private FrmMainForm() {\n }",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"public Form() {\n initComponents();\n }",
"public kart() {\n initComponents();\n }",
"public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }",
"public OrderForm() {\n initComponents();\n mWaffleList = new ArrayList<Product>();\n mCoffeeList = new ArrayList<Product>();\n mbdb = new BelgianDatabaseHandler(dbpath+menuDbName);\n resetQuantityBox();\n generateMenu();\n //if done generating menu\n //update orderhandler BelgianWaffle class for the items\n mbw = new BelgianWaffle(mWaffleList,mCoffeeList,mbdb);\n model = new DefaultListModel();\n \n }",
"public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }",
"public AwardAmountFNADistributionForm() {\r\n initComponents();\r\n }",
"public Kelola_Data_Dokter() {\n initComponents();\n }",
"public rentForm() {\n initComponents();\n }",
"@AutoGenerated\n\tprivate GridLayout buildGridLayout_1() {\n\t\tgridLayout_1 = new GridLayout();\n\t\tgridLayout_1.setImmediate(false);\n\t\tgridLayout_1.setWidth(\"-1px\");\n\t\tgridLayout_1.setHeight(\"-1px\");\n\t\tgridLayout_1.setMargin(true);\n\t\tgridLayout_1.setSpacing(true);\n\t\tgridLayout_1.setColumns(2);\n\t\tgridLayout_1.setRows(13);\n\t\t\n\t\t// l_nombre\n\t\tl_nombre = new Label();\n\t\tl_nombre.setImmediate(false);\n\t\tl_nombre.setWidth(\"200px\");\n\t\tl_nombre.setHeight(\"18px\");\n\t\tl_nombre.setValue(\"Nombres:\");\n\t\tgridLayout_1.addComponent(l_nombre, 0, 0);\n\t\t\n\t\t// tf_nombres\n\t\ttf_nombres = new TextField();\n\t\ttf_nombres.setImmediate(false);\n\t\ttf_nombres.setWidth(\"300px\");\n\t\ttf_nombres.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_nombres, 1, 0);\n\t\t\n\t\t// l_apellidos\n\t\tl_apellidos = new Label();\n\t\tl_apellidos.setImmediate(false);\n\t\tl_apellidos.setWidth(\"-1px\");\n\t\tl_apellidos.setHeight(\"-1px\");\n\t\tl_apellidos.setValue(\"Apellidos:\");\n\t\tgridLayout_1.addComponent(l_apellidos, 0, 1);\n\t\t\n\t\t// tf_apellidos\n\t\ttf_apellidos = new TextField();\n\t\ttf_apellidos.setImmediate(false);\n\t\ttf_apellidos.setWidth(\"100.0%\");\n\t\ttf_apellidos.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_apellidos, 1, 1);\n\t\t\n\t\t// l_pass\n\t\tl_pass = new Label();\n\t\tl_pass.setImmediate(false);\n\t\tl_pass.setWidth(\"-1px\");\n\t\tl_pass.setHeight(\"-1px\");\n\t\tl_pass.setValue(\"Contraseña:\");\n\t\tgridLayout_1.addComponent(l_pass, 0, 2);\n\t\t\n\t\t// pw_pass\n\t\tpw_pass = new PasswordField();\n\t\tpw_pass.setImmediate(false);\n\t\tpw_pass.setWidth(\"100.0%\");\n\t\tpw_pass.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(pw_pass, 1, 2);\n\t\t\n\t\t// l_confirmarPass\n\t\tl_confirmarPass = new Label();\n\t\tl_confirmarPass.setImmediate(false);\n\t\tl_confirmarPass.setWidth(\"-1px\");\n\t\tl_confirmarPass.setHeight(\"-1px\");\n\t\tl_confirmarPass.setValue(\"Confirmar Contraseña:\");\n\t\tgridLayout_1.addComponent(l_confirmarPass, 0, 3);\n\t\t\n\t\t// pw_confirmarPass\n\t\tpw_confirmarPass = new PasswordField();\n\t\tpw_confirmarPass.setImmediate(false);\n\t\tpw_confirmarPass.setWidth(\"100.0%\");\n\t\tpw_confirmarPass.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(pw_confirmarPass, 1, 3);\n\t\t\n\t\t// l_nick\n\t\tl_nick = new Label();\n\t\tl_nick.setImmediate(false);\n\t\tl_nick.setWidth(\"-1px\");\n\t\tl_nick.setHeight(\"-1px\");\n\t\tl_nick.setValue(\"Nombre Usuario/Nick:\");\n\t\tgridLayout_1.addComponent(l_nick, 0, 4);\n\t\t\n\t\t// tf_nick\n\t\ttf_nick = new TextField();\n\t\ttf_nick.setImmediate(false);\n\t\ttf_nick.setWidth(\"100.0%\");\n\t\ttf_nick.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_nick, 1, 4);\n\t\t\n\t\t// l_Registro\n\t\tl_Registro = new Label();\n\t\tl_Registro.setImmediate(false);\n\t\tl_Registro.setWidth(\"-1px\");\n\t\tl_Registro.setHeight(\"-1px\");\n\t\tl_Registro.setValue(\"Fecha de Registro:\");\n\t\tgridLayout_1.addComponent(l_Registro, 0, 5);\n\t\t\n\t\t// l_fechaRegistro\n\t\tl_fechaRegistro = new Label();\n\t\tl_fechaRegistro.setImmediate(false);\n\t\tl_fechaRegistro.setWidth(\"100.0%\");\n\t\tl_fechaRegistro.setHeight(\"-1px\");\n\t\tl_fechaRegistro.setValue(\"---------\");\n\t\tgridLayout_1.addComponent(l_fechaRegistro, 1, 5);\n\t\t\n\t\t// l_genero\n\t\tl_genero = new Label();\n\t\tl_genero.setImmediate(false);\n\t\tl_genero.setWidth(\"-1px\");\n\t\tl_genero.setHeight(\"-1px\");\n\t\tl_genero.setValue(\"Genero:\");\n\t\tgridLayout_1.addComponent(l_genero, 0, 6);\n\t\t\n\t\t// opg_sexo\n\t\topg_sexo = new OptionGroup();\n\t\topg_sexo.setImmediate(false);\n\t\topg_sexo.setWidth(\"100.0%\");\n\t\topg_sexo.setHeight(\"30px\");\n\t\tgridLayout_1.addComponent(opg_sexo, 1, 6);\n\t\t\n\t\t// l_email\n\t\tl_email = new Label();\n\t\tl_email.setImmediate(false);\n\t\tl_email.setWidth(\"-1px\");\n\t\tl_email.setHeight(\"-1px\");\n\t\tl_email.setValue(\"Email:\");\n\t\tgridLayout_1.addComponent(l_email, 0, 7);\n\t\t\n\t\t// tf_email\n\t\ttf_email = new TextField();\n\t\ttf_email.setImmediate(false);\n\t\ttf_email.setWidth(\"100.0%\");\n\t\ttf_email.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_email, 1, 7);\n\t\t\n\t\t// l_nacionalidad\n\t\tl_nacionalidad = new Label();\n\t\tl_nacionalidad.setImmediate(false);\n\t\tl_nacionalidad.setWidth(\"-1px\");\n\t\tl_nacionalidad.setHeight(\"-1px\");\n\t\tl_nacionalidad.setValue(\"Nacionalidad:\");\n\t\tgridLayout_1.addComponent(l_nacionalidad, 0, 8);\n\t\t\n\t\t// cb_nacionalidad\n\t\tcb_nacionalidad = new ComboBox();\n\t\tcb_nacionalidad.setImmediate(false);\n\t\tcb_nacionalidad.setWidth(\"100%\");\n\t\tcb_nacionalidad.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(cb_nacionalidad, 1, 8);\n\t\t\n\t\t// l_blog\n\t\tl_blog = new Label();\n\t\tl_blog.setImmediate(false);\n\t\tl_blog.setWidth(\"-1px\");\n\t\tl_blog.setHeight(\"-1px\");\n\t\tl_blog.setValue(\"Tu Blog/Web:\");\n\t\tgridLayout_1.addComponent(l_blog, 0, 9);\n\t\t\n\t\t// tf_blogWeb\n\t\ttf_blogWeb = new TextField();\n\t\ttf_blogWeb.setImmediate(false);\n\t\ttf_blogWeb.setWidth(\"100.0%\");\n\t\ttf_blogWeb.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_blogWeb, 1, 9);\n\t\t\n\t\t// l_facebook\n\t\tl_facebook = new Label();\n\t\tl_facebook.setImmediate(false);\n\t\tl_facebook.setWidth(\"-1px\");\n\t\tl_facebook.setHeight(\"-1px\");\n\t\tl_facebook.setValue(\"Facebook:\");\n\t\tgridLayout_1.addComponent(l_facebook, 0, 10);\n\t\t\n\t\t// tf_facebook\n\t\ttf_facebook = new TextField();\n\t\ttf_facebook.setImmediate(false);\n\t\ttf_facebook.setWidth(\"100.0%\");\n\t\ttf_facebook.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_facebook, 1, 10);\n\t\t\n\t\t// l_twitter\n\t\tl_twitter = new Label();\n\t\tl_twitter.setImmediate(false);\n\t\tl_twitter.setWidth(\"-1px\");\n\t\tl_twitter.setHeight(\"-1px\");\n\t\tl_twitter.setValue(\"Twitter:\");\n\t\tgridLayout_1.addComponent(l_twitter, 0, 11);\n\t\t\n\t\t// tf_twitter\n\t\ttf_twitter = new TextField();\n\t\ttf_twitter.setImmediate(false);\n\t\ttf_twitter.setWidth(\"100.0%\");\n\t\ttf_twitter.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_twitter, 1, 11);\n\t\t\n\t\t// l_descripcion\n\t\tl_descripcion = new Label();\n\t\tl_descripcion.setImmediate(false);\n\t\tl_descripcion.setWidth(\"-1px\");\n\t\tl_descripcion.setHeight(\"-1px\");\n\t\tl_descripcion.setValue(\"Descripción:\");\n\t\tgridLayout_1.addComponent(l_descripcion, 0, 12);\n\t\t\n\t\t// ta_descripcion\n\t\tta_descripcion = new TextArea();\n\t\tta_descripcion.setImmediate(false);\n\t\tta_descripcion.setWidth(\"100.0%\");\n\t\tta_descripcion.setHeight(\"60px\");\n\t\tgridLayout_1.addComponent(ta_descripcion, 1, 12);\n\t\t\n\t\treturn gridLayout_1;\n\t}",
"@Override\n\tprotected BaseProcesoForm devuelveFormProceso() throws Exception {\n\t\tProcesoBASLoggerForm objForm = new ProcesoBASLoggerForm();\n\t\treturn objForm;\n\t}",
"public MenuGroupForm() {\n this(new MenuGroup());\n }",
"public FormUtama() {\n initComponents();\n }",
"public JajarGenjang() {\n initComponents();\n }",
"public Form2() {\n initComponents();\n\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Kumpulan Nama-Nama\");\n\n root.add(new DefaultMutableTreeNode(new Nama(\"eko\", \"khannedy\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"tono\", \"sumarno\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"tini\", \"sumarni\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"marzu\", \"kilana\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"sumaroh\", \"munaroh\")));\n\n DefaultTreeModel model = new DefaultTreeModel(root);\n\n jTree1.setModel(model);\n jTree1.setCellRenderer(new RenderNama());\n }",
"public kamar() {\n initComponents();\n datatableKamar();\n Validasi();\n }",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public loanform() {\n assets = 0;\n initComponents();\n assettypeinputs = new ArrayList();\n assetvalueinputs = new ArrayList();\n assetassesedinputs = new ArrayList();\n assettypelabels = new ArrayList();\n assetvaluelabels = new ArrayList();\n assetassesedlabels = new ArrayList();\n //jPanel6.setLayout(new FlowLayout());\n jPanel6.setLayout(new GridLayout(0,2));\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"public FormCompra() {\n initComponents();\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}",
"public MainForm(IEngine engine) {\n\n this.engine = engine;\n generalConfigurationButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n PanelForm panelForm = new PanelForm(engine);\n panelForm.initialize();\n }\n });\n //preferencje\n edytujPreferencjeButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n Choice preferencje=new Choice(engine,preferences);\n }\n });\n\n generateButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n List<Group> g= DataLoader.loadGroups();\n List<Room> r = DataLoader.loadRooms();\n try {\n List<Teacher> t = DataLoader.loadTeachers(preferences);\n JOptionPane.showMessageDialog(new JFrame(), GenereteTametable.generuj(g,r,t) );\n }\n catch (Exception e)\n {\n JOptionPane.showMessageDialog(new JFrame(), \"Brak przedmiotu! \\n\" +\n \"Przedmioty odpowiadaja prowadzacy w kolejnosci wpisywania\\n\" +\n \"upewnij sie ze dane zostaly wprowadzone poprawnie!\");\n }\n\n }\n });\n }",
"private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}",
"public Ventaform() {\n initComponents();\n }",
"private void initComponents() {\n\n\t\tkDefLabel = new javax.swing.JLabel();\n\t\tjSeparator1 = new javax.swing.JSeparator();\n\t\tcancelButton = new javax.swing.JButton();\n\t\tkLabel = new javax.swing.JLabel();\n\t\tsaveButton = new javax.swing.JButton();\n\t\tTitleLabel = new javax.swing.JLabel();\n\t\tjSeparator2 = new javax.swing.JSeparator();\n\t\tkTextField = new javax.swing.JTextField();\n\t\tkLabel1 = new javax.swing.JLabel();\n\t\tkTextField1 = new javax.swing.JTextField();\n\t\tkDefLabel1 = new javax.swing.JLabel();\n\n\t\t//setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Configuración de Algoritmo\");\n\n\t\tkDefLabel.setText(\"(default = 10)\");\n\n\t\tcancelButton.setText(\"Cancelar\");\n\t\tcancelButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tkLabel.setText(\"Número de reglas a buscar:\");\n\n\t\tkLabel1.setText(\"Confianza mínima de una regla: \");\n\n\t\tsaveButton.setText(\"Guardar\");\n\t\tsaveButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGlobalData.getInstance().setCurrentTechnique(FuzzyDataMining.MODEL_FUZZY_APRIORI);\n\t\t\t\tHashMap<String, Object> options = new HashMap<String, Object>();\n\t\t\t\tif(!kTextField.getText().isEmpty())\n\t\t\t\t\toptions.put(\"nr\", kTextField.getText());\n\t\t\t\telse\n\t\t\t\t\toptions.put(\"nr\", \"10\");\n\t\t\t\tif(!kTextField1.getText().isEmpty())\n\t\t\t\t\toptions.put(\"mc\", kTextField1.getText());\n\t\t\t\telse\n\t\t\t\t\toptions.put(\"mc\", \"0.9\");\n\t\t\t\tGlobalData.getInstance().setConfiguredTechnique(options);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tTitleLabel.setText(\"Configuración de Apriori Difuso\");\n\n\t\tkDefLabel1.setText(\"(default = 0.9)\");\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator1)\n\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t.addComponent(TitleLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\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.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\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(kTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel1))\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.addComponent(kTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(0, 9, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.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.addGap(0, 0, Short.MAX_VALUE)\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(saveButton)\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.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\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(cancelButton)\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.addContainerGap())))\n\t\t\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(TitleLabel)\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(kLabel)\n\t\t\t\t\t\t\t\t.addComponent(kTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(kDefLabel))\n\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel1)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel1))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(saveButton))\n\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\n\t\tpack();\n\t}",
"public abstract void addSelectorForm();",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n HL = new javax.swing.JLabel();\n TL1 = new javax.swing.JLabel();\n TL2 = new javax.swing.JLabel();\n TL3 = new javax.swing.JLabel();\n TL4 = new javax.swing.JLabel();\n TB1 = new javax.swing.JTextField();\n TB2 = new javax.swing.JTextField();\n TB3 = new javax.swing.JTextField();\n TB4 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n AL = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMaximumSize(new java.awt.Dimension(1500, 1000));\n setMinimumSize(new java.awt.Dimension(1500, 1000));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n HL.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n HL.setText(\"Add Clerk\");\n\n TL1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TL1.setText(\"Clerk Name:\");\n\n TL2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TL2.setText(\"Clerk Address:\");\n\n TL3.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TL3.setText(\"Clerk Phone:\");\n\n TL4.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TL4.setText(\"Clerk Salary:\");\n\n TB1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TB1.setName(\"ClerkNameTextBox\"); // NOI18N\n TB1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TB1ActionPerformed(evt);\n }\n });\n\n TB2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TB2.setName(\"ClerkAddressTextBox\"); // NOI18N\n\n TB3.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TB3.setName(\"ClerkPhoneTextBox\"); // NOI18N\n\n TB4.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n TB4.setName(\"ClerkSalaryTextBox\"); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jButton1.setText(\"Add\");\n jButton1.setName(\"AddClerkButton\"); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n AL.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jButton2.setText(\"< Back\");\n jButton2.setName(\"BackButton\"); // NOI18N\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(430, 430, 430)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(TL4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TB4, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(TL3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TB3, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(TL2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TB2, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(TL1)\n .addGap(48, 48, 48)\n .addComponent(TB1, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(AL)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(700, 700, 700))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 443, Short.MAX_VALUE)\n .addComponent(HL)\n .addGap(647, 647, 647))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(HL))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addComponent(jButton2)))\n .addGap(113, 113, 113)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(TL1))\n .addComponent(TB1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(47, 47, 47)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(TL2))\n .addComponent(TB2, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(57, 57, 57)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TB3, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(TL3)\n .addGap(8, 8, 8)))\n .addGap(62, 62, 62)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(TL4))\n .addComponent(TB4, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(88, 88, 88)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(67, 67, 67)\n .addComponent(AL)\n .addContainerGap(165, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public MakeroidDynamicTextBox(com.google.appinventor.components.runtime.ComponentContainer r7) {\n /*\n r6 = this;\n r0 = r6\n r1 = r7\n r2 = r0\n r3 = r1\n com.google.appinventor.components.runtime.Form r3 = r3.$form()\n r2.<init>(r3)\n r2 = r0\n java.lang.String r3 = \"KodularDynamicTextBox\"\n r2.LOG_TAG = r3\n r2 = r0\n java.util.ArrayList r3 = new java.util.ArrayList\n r5 = r3\n r3 = r5\n r4 = r5\n r4.<init>()\n r2.kodularDynamicModelList = r3\n r2 = r0\n r3 = r1\n android.app.Activity r3 = r3.$context()\n r2.context = r3\n r2 = r1\n android.app.Activity r2 = r2.$context()\n com.google.appinventor.components.runtime.util.TextViewUtil.setContext(r2)\n android.widget.EditText r2 = new android.widget.EditText\n r5 = r2\n r2 = r5\n r3 = r5\n r4 = r0\n android.content.Context r4 = r4.context\n r3.<init>(r4)\n r1 = r2\n r2 = r0\n r3 = r1\n android.graphics.drawable.Drawable r3 = r3.getBackground()\n r2.hR11jdqaRrvBRiBFd4KN6gI7d8MNQVP5Yc7fufDZjGGTeTxaualejjrhiR1Iz2xO = r3\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.appinventor.components.runtime.MakeroidDynamicTextBox.<init>(com.google.appinventor.components.runtime.ComponentContainer):void\");\n }",
"protected TransactionFactory(TransactionTypeKeys key) {\n\t\tsetForm(new Form(key, new ActionHandler()));\n\t\tsetLastUsedDate(new Date());\n\n\t\t// Build panel.\n\t\tsetFill(GridBagConstraints.BOTH);\n\t\tadd(getForm(), 0, 0, 1, 1, 100, 100);\n\n\t\tclear();\n\t\tenableForm(false);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(200, 200, 900, 600);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJLabel lblMedicineId = new JLabel(\"Surgeon ID\");\n\t\t\n\t\tsid = new JTextField();\n\t\tsid.setColumns(10);\n\t\t\n\t\tJLabel lblPrice = new JLabel(\"Operation ID\");\n\t\t\n\t\topid = new JTextField();\n\t\topid.setColumns(10);\n\t\t\n\t\tJButton btnSubmit = new JButton(\"SUBMIT\");\n\t\tbtnSubmit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString ssid=sid.getText();\n\t\t\t\tString oopid=opid.getText();\n\t\t\t\tinserts.performs_o(ssid, oopid);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbutton = new JButton(\"BACK\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tenterform1 ef=new enterform1();\n\t\t\t\tframe.dispose();\n\t\t\t\tef.frame.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addContainerGap(340, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(lblMedicineId)\n\t\t\t\t\t\t\t\t.addComponent(lblPrice))\n\t\t\t\t\t\t\t.addGap(34)\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(sid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(opid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(361)\n\t\t\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 77, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(28)\n\t\t\t\t\t\t\t.addComponent(btnSubmit)))\n\t\t\t\t\t.addContainerGap(322, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(208)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblMedicineId)\n\t\t\t\t\t\t.addComponent(sid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(13)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblPrice)\n\t\t\t\t\t\t.addComponent(opid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(button)\n\t\t\t\t\t\t.addComponent(btnSubmit))\n\t\t\t\t\t.addContainerGap(258, Short.MAX_VALUE))\n\t\t);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\t}",
"private void initialize() {\r\n\t\tfrmProduto = new JFrame();\r\n\t\tfrmProduto.setTitle(\"Produto\");\r\n\t\tfrmProduto.getContentPane().setBackground(Color.LIGHT_GRAY);\r\n\t\tfrmProduto.setBounds(100, 100, 450, 300);\r\n\t\tfrmProduto.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmProduto.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Insira o nome do produto :\");\r\n\t\tlblNewLabel.setForeground(Color.BLUE);\r\n\t\tlblNewLabel.setFont(new Font(\"Arial\", Font.BOLD, 16));\r\n\t\tlblNewLabel.setBounds(29, 11, 255, 50);\r\n\t\tfrmProduto.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(53, 72, 316, 32);\r\n\t\tfrmProduto.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Quantidade :\");\r\n\t\tlblNewLabel_1.setForeground(Color.BLUE);\r\n\t\tlblNewLabel_1.setFont(new Font(\"Arial\", Font.BOLD, 14));\r\n\t\tlblNewLabel_1.setBounds(28, 125, 89, 14);\r\n\t\tfrmProduto.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Valor :\");\r\n\t\tlblNewLabel_2.setForeground(Color.BLUE);\r\n\t\tlblNewLabel_2.setFont(new Font(\"Arial\", Font.BOLD, 14));\r\n\t\tlblNewLabel_2.setBounds(29, 155, 89, 32);\r\n\t\tfrmProduto.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(127, 115, 89, 24);\r\n\t\tfrmProduto.getContentPane().add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(88, 160, 86, 25);\r\n\t\tfrmProduto.getContentPane().add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\t}",
"public Form getForm() {\n if (form == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n form = new Form(\"Form\", new Item[] { getStringItem() });//GEN-BEGIN:|14-getter|1|14-postInit\n form.addCommand(getExitCommand());\n form.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return form;\n }",
"public ServerskaForma() {\n initComponents();\n \n \n \n }",
"public NewFetureKeyPanel() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public FormMenu() {\n initComponents();\n menuController = new MenuController(this);\n menuController.nonAktif();\n }",
"public FormularioCliente() {\n initComponents();\n }",
"public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }",
"public FormImportar() {\n initComponents();\n }"
] | [
"0.6721123",
"0.668086",
"0.6536288",
"0.59480244",
"0.5874434",
"0.58600885",
"0.5677919",
"0.56628966",
"0.56605625",
"0.5629462",
"0.5622538",
"0.5619092",
"0.5616992",
"0.5611941",
"0.5584548",
"0.55805504",
"0.55744046",
"0.55721307",
"0.555338",
"0.55381364",
"0.5521548",
"0.55182093",
"0.5517481",
"0.5506024",
"0.5493203",
"0.54864395",
"0.5472935",
"0.5468986",
"0.5464243",
"0.54550487",
"0.5448129",
"0.54305667",
"0.54006773",
"0.5384232",
"0.53673106",
"0.53567845",
"0.53544086",
"0.5351982",
"0.5348109",
"0.53389406",
"0.5331036",
"0.5327821",
"0.53259706",
"0.5320956",
"0.53197855",
"0.53146374",
"0.5314549",
"0.5310485",
"0.5299167",
"0.5296377",
"0.52955055",
"0.5294286",
"0.52899647",
"0.5281961",
"0.5274504",
"0.5271177",
"0.5270058",
"0.526207",
"0.5262012",
"0.52611244",
"0.526073",
"0.525855",
"0.5257902",
"0.5257756",
"0.52510977",
"0.5249281",
"0.5249249",
"0.52446544",
"0.52394307",
"0.5239225",
"0.5238176",
"0.52368885",
"0.52330023",
"0.5232065",
"0.5226793",
"0.5221954",
"0.52208525",
"0.52153456",
"0.5211788",
"0.5210999",
"0.5203628",
"0.5197707",
"0.5166666",
"0.51652616",
"0.51561546",
"0.51529413",
"0.51507884",
"0.51459795",
"0.5143207",
"0.5142316",
"0.51383317",
"0.5136155",
"0.51293015",
"0.512752",
"0.5123138",
"0.51209813",
"0.51180357",
"0.5112538",
"0.5111201",
"0.5110878"
] | 0.62676483 | 3 |
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() {
jb7 = new javax.swing.JButton();
jb8 = new javax.swing.JButton();
jb9 = new javax.swing.JButton();
jbtambah = new javax.swing.JButton();
jb4 = new javax.swing.JButton();
jb5 = new javax.swing.JButton();
jb6 = new javax.swing.JButton();
jbkurang = new javax.swing.JButton();
jb0 = new javax.swing.JButton();
jbbagi = new javax.swing.JButton();
jbclear = new javax.swing.JButton();
jb1 = new javax.swing.JButton();
jb2 = new javax.swing.JButton();
jb3 = new javax.swing.JButton();
jbkali = new javax.swing.JButton();
jbkoma = new javax.swing.JButton();
jbplusmin = new javax.swing.JButton();
jbsamadengan = new javax.swing.JButton();
tampil = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("KALKULATOR SEDERHANA");
jb7.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb7.setText("7");
jb7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb7ActionPerformed(evt);
}
});
jb8.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb8.setText("8");
jb8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb8ActionPerformed(evt);
}
});
jb9.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb9.setText("9");
jb9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb9ActionPerformed(evt);
}
});
jbtambah.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbtambah.setText("+");
jbtambah.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbtambahActionPerformed(evt);
}
});
jb4.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb4.setText("4");
jb4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb4ActionPerformed(evt);
}
});
jb5.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb5.setText("5");
jb5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb5ActionPerformed(evt);
}
});
jb6.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb6.setText("6");
jb6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb6ActionPerformed(evt);
}
});
jbkurang.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbkurang.setText("-");
jbkurang.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbkurangActionPerformed(evt);
}
});
jb0.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb0.setText("0");
jb0.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb0ActionPerformed(evt);
}
});
jbbagi.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbbagi.setText("/");
jbbagi.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbbagiActionPerformed(evt);
}
});
jbclear.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbclear.setText("C");
jbclear.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbclearActionPerformed(evt);
}
});
jb1.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb1.setText("1");
jb1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb1ActionPerformed(evt);
}
});
jb2.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb2.setText("2");
jb2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb2ActionPerformed(evt);
}
});
jb3.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jb3.setText("3");
jb3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jb3ActionPerformed(evt);
}
});
jbkali.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbkali.setText("*");
jbkali.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbkaliActionPerformed(evt);
}
});
jbkoma.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbkoma.setText(".");
jbkoma.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbkomaActionPerformed(evt);
}
});
jbplusmin.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbplusmin.setText("+/-");
jbplusmin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbplusminActionPerformed(evt);
}
});
jbsamadengan.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
jbsamadengan.setText("=");
jbsamadengan.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbsamadenganActionPerformed(evt);
}
});
tampil.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
tampil.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jb7, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb8, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb9, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jbtambah, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jb4, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb5, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb6, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jbkurang, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jb1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jbkali, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jbplusmin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addComponent(jbkoma, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jb0, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jbclear, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jbbagi, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jbsamadengan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addComponent(tampil, javax.swing.GroupLayout.Alignment.TRAILING))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(tampil, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jb7)
.addComponent(jb8)
.addComponent(jb9)
.addComponent(jbtambah))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jb4)
.addComponent(jb5)
.addComponent(jb6)
.addComponent(jbkurang))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jb1)
.addComponent(jb2)
.addComponent(jb3)
.addComponent(jbkali))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jbkoma)
.addComponent(jb0)
.addComponent(jbclear)
.addComponent(jbbagi))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jbplusmin)
.addComponent(jbsamadengan))
.addContainerGap(21, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\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 UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\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 Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\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 POS1() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7319396",
"0.7290941",
"0.7290941",
"0.7290941",
"0.7285927",
"0.7248002",
"0.72139066",
"0.72086275",
"0.71958303",
"0.718997",
"0.7184516",
"0.7159095",
"0.71481097",
"0.709288",
"0.70806605",
"0.70578784",
"0.6986726",
"0.6977067",
"0.6955257",
"0.6954392",
"0.6945326",
"0.69436216",
"0.6935779",
"0.69320637",
"0.6928225",
"0.6924907",
"0.69248605",
"0.6911609",
"0.6911109",
"0.6892906",
"0.6892066",
"0.68918383",
"0.6891177",
"0.6889087",
"0.6883209",
"0.6882372",
"0.6880651",
"0.68782973",
"0.6876634",
"0.6874696",
"0.68711734",
"0.6859314",
"0.68565166",
"0.6855607",
"0.68552643",
"0.6854565",
"0.68534696",
"0.68530536",
"0.68530536",
"0.6843682",
"0.6836637",
"0.6836613",
"0.6829145",
"0.68281287",
"0.682634",
"0.6824281",
"0.68238854",
"0.681735",
"0.6816949",
"0.6811127",
"0.68091583",
"0.6808792",
"0.680855",
"0.6808137",
"0.6802665",
"0.67954504",
"0.67941535",
"0.6793186",
"0.6791855",
"0.67899567",
"0.67891306",
"0.678766",
"0.67817825",
"0.67669976",
"0.67660517",
"0.6764966",
"0.67571455",
"0.6755968",
"0.6752885",
"0.6751322",
"0.6742087",
"0.6739845",
"0.673701",
"0.6736383",
"0.67338026",
"0.6727401",
"0.67262983",
"0.67209303",
"0.67158926",
"0.6715857",
"0.67147917",
"0.67091477",
"0.6708007",
"0.6704485",
"0.6701657",
"0.67003953",
"0.6699588",
"0.6698673",
"0.66944015",
"0.6690715",
"0.6689867"
] | 0.0 | -1 |
parametro do usuario que esta acessando | MenuPrincipal(String pLogin, String pUsuario)
{
setTitle("Sistema de Gerenciamento de Estoque e Frente de Caixa - Não Fiscal");
setSize(1100,700);
setLocationRelativeTo(null);
// painel
p1 = new JPanel();
p1.setLayout(null);
p1.setBackground(new Color(192,192,192));
getContentPane().add(p1);
//recebendo parametro
login = pLogin;
usuario = pUsuario;
//icone
icone = new ImageIcon("Imagens/icon_sge.jpg");
setIconImage(icone.getImage());
//definindo imagem em JLabel
iImagem = new ImageIcon("Imagens/logo_sge.png");
lImagem = new JLabel(iImagem);
lImagem.setBounds(20,78,1040,526);
p1.add(lImagem);
// Data
agora = new Date();
df = DateFormat.getDateInstance(DateFormat.FULL);
data = df.format(agora);
lData = new JLabel(data);
lData.setBounds(5,615,310,30);
lData.setForeground(Color.white);
lData.setFont(new Font("Arial",Font.PLAIN,16));
p1.add(lData);
// usuario
lUsuario = new JLabel("Usuário: "+usuario);
lUsuario.setFont(new Font("Arial",Font.BOLD,16));
lUsuario.setBounds(315,615,200,30);
p1.add(lUsuario);
// Estoque crítico e produtos indisponiveis
lQuantidadeProdutosEstoqueCritico = new JLabel("Quantidade de Produtos em Estoque Crítico");
lQuantidadeProdutosEstoqueCritico.setBounds(10,10,250,20);
p1.add(lQuantidadeProdutosEstoqueCritico);
tQuantidadeProdutosEstoqueCritico = new JTextField();
tQuantidadeProdutosEstoqueCritico.setBounds(10,30,100,30);
tQuantidadeProdutosEstoqueCritico.setEditable(false);
p1.add(tQuantidadeProdutosEstoqueCritico);
// indisponiveis
lQuantidadeProdutosIndisponiveis = new JLabel("Quantidade de Produtos Indisponíveis");
lQuantidadeProdutosIndisponiveis.setBounds(280,10,250,20);
p1.add(lQuantidadeProdutosIndisponiveis);
tQuantidadeProdutosIndisponiveis = new JTextField();
tQuantidadeProdutosIndisponiveis.setBounds(280,30,100,30);
tQuantidadeProdutosIndisponiveis.setEditable(false);
p1.add(tQuantidadeProdutosIndisponiveis);
bAtualizar = new JButton("Atualizar");
bAtualizar.addActionListener(this);
bAtualizar.setBounds(515,30,100,30);
p1.add(bAtualizar);
// menu
barraMenu = new JMenuBar();
//Instanciando JMenu e declarando Mnemonics
cadastros = new JMenu("Cadastros");
cadastros.setMnemonic(KeyEvent.VK_C);
vendas = new JMenu("Vendas");
vendas.setMnemonic(KeyEvent.VK_V);
financeiro = new JMenu("Financeiro");
financeiro.setMnemonic(KeyEvent.VK_F);
relatorios = new JMenu("Relatórios");
relatorios.setMnemonic(KeyEvent.VK_R);
usuarios = new JMenu("Usuários");
usuarios.setMnemonic(KeyEvent.VK_U);
mSair = new JMenu("Sair");
mSair.setMnemonic(KeyEvent.VK_S);
//Inserindo icones
//Instanciando menuItens e declarando os ActionListener para esta classe
//Declarando accelerator e mnemonic
produtos = new JMenuItem("Produtos", new ImageIcon("Imagens/cad_pro.png"));
produtos.addActionListener(this);
produtos.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.ALT_MASK));
produtos.setMnemonic(KeyEvent.VK_P);
clientes = new JMenuItem("Clientes", new ImageIcon("Imagens/cad_cli.png"));
clientes.addActionListener(this);
clientes.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.ALT_MASK));
clientes.setMnemonic(KeyEvent.VK_L);
fornecedores = new JMenuItem("Fornecedores", new ImageIcon("Imagens/cad_for.png"));
fornecedores.addActionListener(this);
fornecedores.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));
fornecedores.setMnemonic(KeyEvent.VK_F);
funcionarios = new JMenuItem("Funcionários", new ImageIcon("Imagens/cad_fun.png"));
funcionarios.addActionListener(this);
funcionarios.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK));
funcionarios.setMnemonic(KeyEvent.VK_U);
vender = new JMenuItem("Vender", new ImageIcon("Imagens/vender.png"));
vender.addActionListener(this);
vender.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0));
caixaDoDia = new JMenuItem("Caixa do Dia", new ImageIcon("Imagens/cx_dia.png"));
caixaDoDia.addActionListener(this);
caixaDoDia.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.ALT_MASK));
caixaDoDia.setMnemonic(KeyEvent.VK_A);
historicoVendas = new JMenuItem("Histórico de Vendas", new ImageIcon("Imagens/historico.png"));
historicoVendas.addActionListener(this);
historicoVendas.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.ALT_MASK));
historicoVendas.setMnemonic(KeyEvent.VK_H);
analiticoVendas = new JMenuItem("Analítico de Vendas", new ImageIcon("Imagens/analitico.png"));
analiticoVendas.addActionListener(this);
analiticoVendas.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.ALT_MASK));
analiticoVendas.setMnemonic(KeyEvent.VK_N);
cadastroUsuario = new JMenuItem("Cadastro de Usuário", new ImageIcon("Imagens/cad_usu.png"));
cadastroUsuario.addActionListener(this);
cadastroUsuario.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, ActionEvent.ALT_MASK));
cadastroUsuario.setMnemonic(KeyEvent.VK_D);
trocarUsuario = new JMenuItem("Trocar Usuário", new ImageIcon("Imagens/troca_usu.png"));
trocarUsuario.addActionListener(this);
trocarUsuario.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T, ActionEvent.ALT_MASK));
trocarUsuario.setMnemonic(KeyEvent.VK_T);
trocarSenha = new JMenuItem("Trocar Senha", new ImageIcon("Imagens/troca_usu.png"));
trocarSenha.addActionListener(this);
trocarSenha.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.ALT_MASK));
trocarSenha.setMnemonic(KeyEvent.VK_O);
iSair = new JMenuItem("Sair", new ImageIcon("Imagens/sair.png"));
iSair.addActionListener(this);
iSair.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0));
iSair.setMnemonic(KeyEvent.VK_ESCAPE);
//Adicionando JMenuItem aos JMenu
cadastros.add(produtos);
cadastros.add(clientes);
cadastros.add(fornecedores);
cadastros.add(funcionarios);
vendas.add(vender);
financeiro.add(caixaDoDia);
relatorios.add(historicoVendas);
relatorios.add(analiticoVendas);
usuarios.add(cadastroUsuario);
usuarios.add(trocarUsuario);
usuarios.add(trocarSenha);
mSair.add(iSair);
//Adicionando JMenu ao JMenuBar
barraMenu.add(cadastros);
barraMenu.add(vendas);
barraMenu.add(financeiro);
barraMenu.add(relatorios);
barraMenu.add(usuarios);
barraMenu.add(mSair);
//Setando JMenuBAr
setJMenuBar(barraMenu);
carregaResultSet();
setandoAcessos();
carregarTextField();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void accionUsuario() {\n\t\t\r\n\t}",
"public java.lang.String getUsuario();",
"public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }",
"public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tnome = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tnome = principal.toString();\n\t\t}\n\t\t// System.out.println(nome);\n\t\treturn nome;\n\t}",
"public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }",
"public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }",
"public Usuarios(String Cedula){ //método que retorna atributos asociados con la cedula que recibamos\n conexion = base.GetConnection();\n PreparedStatement select;\n try {\n select = conexion.prepareStatement(\"select * from usuarios where Cedula = ?\");\n select.setString(1, Cedula);\n boolean consulta = select.execute();\n if(consulta){\n ResultSet resultado = select.getResultSet();\n if(resultado.next()){\n this.Cedula= resultado.getString(1);\n this.Nombres= resultado.getString(2);\n \n this.Sexo= resultado.getString(3);\n this.Edad= resultado.getInt(4);\n this.Direccion= resultado.getString(5);\n this.Ciudad=resultado.getString(6);\n this.Contrasena=resultado.getString(7);\n this.Estrato=resultado.getInt(8);\n this.Rol=resultado.getString(9);\n }\n resultado.close();\n }\n conexion.close();\n } catch (SQLException ex) {\n System.err.println(\"Ocurrió un error: \"+ex.getMessage().toString());\n }\n}",
"protected String getUsuario() {\n return this.usuario;\n }",
"public String getUsuario() {\r\n return usuario;\r\n }",
"public String getUsuario() {\r\n return usuario;\r\n }",
"User getPassedUser();",
"public Usuario(String usuario, String contrasena) {\n \tthis.usuario = usuario;\n \tthis.contrasena = contrasena;\n }",
"protected void setUsuario(String usuario) {\n this.usuario = usuario;\n }",
"public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}",
"public void altaUsuario();",
"public String getUsuario() {\r\n return Usuario;\r\n }",
"private static int login(String username, String passe) {\n PreparedStatement stmt;\r\n try {\r\n stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome = ? and passe = ?;\");\r\n stmt.setString(1, username);\r\n stmt.setString(2, passe);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n utilizador_corrente = new Utilizador(username, passe, rs.getBoolean(4));\r\n cartao_cidadao = rs.getInt(1);\r\n if (rs.getBoolean(4))//tem direitos\r\n return 2;\r\n else if (!rs.getBoolean(4))//nao tem direitos\r\n return 1;\r\n stmt.close();\r\n } catch (SQLException e) {\r\n }\r\n return 0;\r\n }",
"@Override\n\tpublic Usuario read(String nomuser) {\n\t\tString SQL = \"SELECT * FROM usuario WHERE username=?\";\n\t\treturn jdbc.queryForObject(SQL, new Object[] {nomuser}, new BeanPropertyRowMapper<Usuario>(Usuario.class));\n\n\t}",
"public void setUsuario(java.lang.String usuario) {\n this.usuario = usuario;\n }",
"public DataUsuario obtenerUsuario(String nickName) throws Exception;",
"public int getusuarioPorNombre(String nombre) \n {\n int usuario = 0;\n try \n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT ID_User FROM Usuario WHERE username = ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, nombre);\n rs = pstm.executeQuery();\n if(rs.next())\n { \n usuario = rs.getInt(\"ID_User\");\n }\n }catch(Exception ex)\n {\n ex.printStackTrace(); \n } \n return usuario;\n }",
"@Override\r\n\tpublic Usuario read(String nomuser) {\n\t\tString SQL = \"select *from usuario where nomuser=?\";\r\n\t\treturn jdbctemplate.queryForObject(SQL, new Object[] {nomuser},new BeanPropertyRowMapper<Usuario>(Usuario.class));\r\n\t}",
"public void setUsuario(String usuario) {\n\t\tthis.usuario = usuario;\n\t}",
"private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }",
"public String getPassUsuario() {\r\n return passUsuario;\r\n }",
"public Usuario ObtenerUsuario(String nombre)\n {\n /*creamos una instancia de la clase usuario que sera donde almacenaremos la informacion\n del usuario que deseemos analizar*/\n Usuario jugador = new Usuario(); \n //encerramos todo en un try para manejar los errores\n try\n {\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"SELECT * FROM puntajes WHERE nombre = ?\"; \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, nombre);\n ResultSet result = statement.executeQuery();\n \n result.next();\n //agregamos toda la informacion obtenida a la instancia del objeto\n jugador = new Usuario(result.getString(1),result.getInt(2)); \n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n \n //retornamos dicho producto o instancia\n return jugador;\n }",
"private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public void setLoggedUser(PersAdministrativo usuario){\n this.usuario = usuario;\n }",
"public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }",
"public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }",
"@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }",
"public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }",
"public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }",
"public UsuarioTable getUsuarioLogueado() {\n String usuario = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n return getUsuarioFacade().obtenerIDPorNombre(usuario);\n }",
"public Usuario(String nombre, int edad) {\n this.rvNombreUsuario = nombre;\n this.rvEdadUsuario = edad;\n }",
"public Usuario(String nome, String email, String celular, String classe,String identificacao,String status) {\n\t\t\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.celular = celular;\n\t\tthis.classe = classe;\n\t\tthis.identificacao = identificacao;\n\t\tthis.status = status;\n\t\t\n\t}",
"public String getUsuario() {\n\t\treturn this.usuario;\n\t}",
"public Usuario(int idUsuario, String nome, String email, String telefone, int motorista){\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.telefone = telefone;\n\t\tthis.motorista = motorista;\n\t}",
"public UsuarioBean Login(String email_usuario, String pwd_usuario){\n UsuarioBean bean = null;\n MiConexion con = new MiConexion(contexto, null, null, 1);\n SQLiteDatabase sql = con.getReadableDatabase();\n Cursor cur = sql.rawQuery(\"SELECT * FROM Tb_Usuario where email_usuario=? and pwd_usuario=?\",\n new String[]{email_usuario, pwd_usuario});\n\n if(cur.moveToNext()){\n bean = new UsuarioBean();\n bean.setId_cargo(cur.getString(0));\n bean.setNom_usuario(cur.getString(1));\n bean.setApe_usuario(cur.getString(2));\n bean.setTip_usuario(cur.getString(3));\n bean.setEmail_usuario( cur.getString(4));\n bean.setPwd_usuario(cur.getString(5));\n bean.setId_cargo(cur.getString(6));\n\n }\n return bean;\n }",
"public Usuario buscarUsuario(String usuario) {\n Usuario usuario1 = new Usuario();\n try{\n\t\tString seleccion = \"SELECT usuario, nombre, clave FROM usuarios where usuario=? \";\n\t\tPreparedStatement ps = con.prepareStatement(seleccion);\n ps.setString(1, usuario);\n \n\t\t//Savepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\n \n\t\tResultSet rs = ps.executeQuery();\n\t\tcon.commit();\n\t\twhile(rs.next()){\n usuario1.setUsuario(rs.getString(\"usuario\")); \n usuario1.setNombre(rs.getString(\"nombre\")); \n usuario1.setClave(rs.getString(\"clave\")); \n return usuario1;\n\t\t} \n \n }catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return null; \n\n }",
"public String getUserName();",
"java.lang.String getUser();",
"public void CargarDatosUsuario(String nickname, String mail, String nombre, String pass, DataDireccion direccion, String apellido, Date fechaNacimiento, String rutaImagen);",
"@SuppressWarnings(\"unchecked\")\n public UsuarioDto obtenerUsuarioPorNombre(String nombre) {\n HashMap<String, Object> params = new HashMap<>();\n params.put(\"V_NOMBRE\", nombre);\n List<UsuarioDto> list = (List<UsuarioDto>) executeList(UsuarioDto.class, \"PRC_LOGIN_SPRING\", params);\n if (list.isEmpty())\n return null;\n return list.get(0);\n }",
"public Usuario getUsuario(Usuario creador, int id){\r\n Usuario u=null;\r\n if (creador.isAdmin() || creador.getId()==id){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios where id=\"+id;\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n u= new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\"));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return u;\r\n }",
"String getUser();",
"String getUser();",
"public void setUsuario(Usuario usuario) {\r\n\t\tthis.usuario = usuario;\r\n\t}",
"private static boolean verificaUser(String username) {\n String user = null;\r\n try {\r\n PreparedStatement stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome=?;\");\r\n stmt.setString(1, username);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n user = rs.getString(\"nome\");\r\n if (user.equals(username)) {\r\n return true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n return false;\r\n }",
"private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }",
"public void login (String pUsuario, int pDificultad)\n {\n nombreUsuario = pUsuario;\n dificultad = pDificultad;\n\n iniciarPartida();\n }",
"@Override\n\t/*Método que se va a utilizar cuando el usuario inicie sesión, para ver si los datos son o no correctos*/\n\tpublic String comprobarinicio(String nombreusuario, String clave) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sql=\"Select * from usuarios where nombreusuario='\"+nombreusuario+\"'and clave='\"+clave+\"'\"; //búsqueda del usuario en la BD\n\t\tBoolean encontrado=false; //Booleano que indicará si el usuario está o no en la BD\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t/*De lo que devuelve la consulta, se va a coger el nombre de usuario y la clave (aunque no haya datos en ellos lo devuelve pero vacio)*/\n\t\t\twhile(rs.next()) {\n\t\t\tString nombre_usu= rs.getString(\"nombreusuario\");\n\t\t\tString pass= rs.getString(\"clave\");\n\t\t\t/*En caso de que los datos coincidan con los que se han pasado como parámetros desde el inicio de sesión, significará que los datos son correctos\n\t\t\t * y la variable encontrado cambia su valor para dejar constancia de que el usuario es correcto*/\n\t\t\tif(nombre_usu.equals(nombreusuario) && pass.equals(clave)) {\n\t\t\t\tencontrado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tst.close();\n\t\t\t//En caso del valor de encontrado, se devolverá ok (si se encuentra) o not ok (\"si no se encuentra\")\n\t\t\tif(encontrado) {\n\t\t\t\treturn \"ok\";\n\t\t\t}else {\n\t\t\t\treturn \"not ok\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n return(e.getMessage());\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t\t\n\t\t\n\t}",
"public void setPassUsuario(String passUsuario) {\r\n this.passUsuario = passUsuario;\r\n }",
"public User getUser(String userName, String password);",
"public abstract co.com.telefonica.atiempo.ejb.eb.UsuarioLocal getUsuario();",
"public Cgg_res_oficial_seguimiento_usuario(){}",
"public Usuario iniciarSesion(Usuario u) {\n Usuario user = null;\n\n try {\n if (this.em.isOpen()) {\n user = (Usuario) this.em.createNamedQuery(\"Usuario.findByUsernamePass\")\n .setParameter(\"username\", u.getUsername())\n .setParameter(\"password\", u.getPassword()).getSingleResult();\n em.refresh(user);\n }\n\n } catch (Exception e) {\n //e.printStackTrace();\n\n }\n\n return (user);\n }",
"User selectUserByUserNameAndPassword(@Param(\"username\") String username, @Param(\"password\") String password);",
"public void setUsuarioID(int usuarioID) {\r\n this.usuarioID = usuarioID;\r\n }",
"public abstract String getUser() throws DataServiceException;",
"public User getUser(String nombre) {\n User u = new User();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM user WHERE name= ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, nombre);\n rs = pstm.executeQuery();\n while (rs.next()) {\n u.setName(rs.getString(\"name\"));\n u.setEmail(rs.getString(\"email\"));\n u.setPicture(rs.getString(\"imagen_user\"));\n u.setPassword(rs.getString(\"password\"));\n u.setId_role(rs.getInt(\"ID_Rol\"));\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return u;\n }",
"public usuarios Cargar_Usuario(int cedula) {\r\n base_datos_Usuarios ae_db = new base_datos_Usuarios();\r\n usuarios informacion_usuario = ae_db.Buscar_Usuario_DB(cedula);\r\n return informacion_usuario;\r\n }",
"public boolean crarUsuario(Usuario creador, String nombre, String nombreMostrar, String contrasena, boolean cambiarContra,boolean admin,int tipoPersonal,int tipodescuento, boolean notas, boolean habilitacion,boolean profesor, int ciProfesor){\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"insert into sistemasEM.usuarios (nombre, mostrar, contrasena,cambiarContra,admin,permisosPersonal,permisosDescuento,notas, habilitacion,profesor,ciProfesor) values(?,?,MD5(?),?,?,?,?,?,?,?,?)\";\r\n PreparedStatement s= connection.prepareStatement(sql);\r\n int i=1;\r\n s.setString(i++, nombre);\r\n s.setString(i++, nombreMostrar);\r\n s.setString(i++, contrasena);\r\n s.setBoolean(i++, cambiarContra);\r\n s.setBoolean(i++, admin);\r\n s.setInt(i++, tipoPersonal);\r\n s.setInt(i++, tipodescuento);\r\n s.setBoolean(i++, notas);\r\n s.setBoolean(i++, habilitacion);\r\n s.setBoolean(i++, profesor);\r\n s.setInt(i++, ciProfesor);\r\n int result = s.executeUpdate();\r\n if(result>0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return false;\r\n }",
"public Usuario getUsuario() {\n return usuario;\n }",
"public Usuario getUsuario() {\n return usuario;\n }",
"public Usuario(String idUsuario, String contrasena) {\n\t\tsuper();\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.contrasena = contrasena;\n\t}",
"public boolean existeUser(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }",
"public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }",
"@RequestMapping(value = \"/consultarusuario\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse finduser(@RequestParam String usuario, @RequestParam String llave_seguridad, HttpServletRequest request)\n {\n CommonsResponse response = new CommonsResponse();\n try\n {\n logger.debug(\"Se valida la licencia si puede consumir los procesos.\");\n GatewayBaseBean.validateLicenceToWS(llave_seguridad, webUtils.getClientIp(request));\n response.setResponse(userServices.findUser(usuario));\n }\n catch (ParamsException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.error(\"Parametros de Licencia Errados WS [consultarusuario], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (LicenseException ex)\n {\n response.toLicenceWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode(), llave_seguridad);\n logger.error(\"Parametros de Licencia Errados WS [consultarusuario].\", ex);\n return response;\n }\n catch (ServiceException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.warn(\"Error de Servicio WS [consultarusuario].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.error(\"Error Generico en WS [consultarusuario].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [consultarusuario].\");\n return response.toOk();\n }",
"public boolean login(String Usuario, String Password)\n {\n try\n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT ID_User FROM Usuario WHERE username = ? AND password = ? AND status = ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, Usuario);//convertir a String el parametro Usuario\n pstm.setString(2, Password);//convertir a String el parametro Password\n pstm.setBoolean(3, true);//convertir a boolean \n rs = pstm.executeQuery();//ejecutar el query \n if(rs.next())\n {\n return true;\n }else{\n return false;\n }\n }catch(Exception ex)\n {\n ex.printStackTrace();\n return false;\n }\n }",
"public User getUser (String userName);",
"@Override\n\t/*Método que se va a usar para comprobar el saldo del usuario que esté logueado nada más entrar en el panel del usuario*/\n\tpublic String comprobarDatos(String nombreusuario) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"SELECT * from usuarios where nombreusuario LIKE '\"+nombreusuario+\"'\"; //consulta para obtener el saldo\n\t\tString datos=\"\";\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs=st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tString saldo=Float.toString(rs.getFloat(\"saldo\")); //cojo el saldo de la consulta y haco la conversion de float a string\n\t\t\t\tString nombre=rs.getString(\"nombre\");\n\t\t\t\tString apellidos=rs.getString(\"apellidos\");\n\t\t\t\tString clave=rs.getString(\"clave\");\n\t\t\t\tString email=rs.getString(\"email\");\n\t\t\t\tString premium=rs.getString(\"premium\");\n\t\t\t\t\n\t\t\t\tdatos=nombre+\",\"+apellidos+\",\"+clave+\",\"+email+\",\"+premium+\",\"+saldo; //se almacenan los datos obtenidos en la cadena que se va a devolver\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tst.close();\n\t\t\treturn datos; //devuelvo todos los datos que se han obtenido\n\t\t}catch(Exception e) {\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t\t}\n\t\t\n\t}",
"public UsuarioTO validarUsuario(UsuarioTO usuarioTO){\n\t\tUsuarioTO usuarioTOResul=null;\r\n\t\ttry {\r\n\r\n\t\t\tList<Object> ListaUsuario = userDAO.listar(usuarioTO);\r\n\r\n\t\t\tif (ListaUsuario.size() > 0){\r\n\r\n\t\t\t\tusuarioTOResul = (UsuarioTO) ListaUsuario.get(0);\r\n\t\t\t}\r\n\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn usuarioTOResul;\r\n\r\n\t}",
"public void setUsuario(Usuario usuario) {\n\t\tthis.usuario = usuario;\n\t}",
"@Override\r\n\tpublic Utilisateur getUser(String nom) {\n\t\treturn null;\r\n\t}",
"public Usuario(String nickUsuario, String nombreUsuario, String correoUsuario, String passUsuario) {\r\n this.nickUsuario = nickUsuario;\r\n this.nombreUsuario = nombreUsuario;\r\n this.correoUsuario = correoUsuario;\r\n this.passUsuario = passUsuario;\r\n }",
"public Usuario(String nickUsuario, String nombreUsuario, String correoUsuario) {\r\n this.nickUsuario = nickUsuario;\r\n this.nombreUsuario = nombreUsuario;\r\n this.correoUsuario = correoUsuario;\r\n }",
"public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;",
"public VentanaBuscarUsuarios(ControladorUsuario controladorUsuario, TelefonoDAO telefonoDAO) {\n initComponents();\n this.controladorUsuario = controladorUsuario;\n this.telefonoDAO = telefonoDAO;\n alerta16=\"No se ha encontrado el usuario con la cedula \";\n }",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"public abstract String getUser();",
"public Usuario verificarDatos(String usuario, String password) throws Exception{\n Usuario us = new Usuario(usuario, password);\n try {\n Session session = HibernateUtil.getSessionFactory().openSession();\n String hql = \"from Usuario where usuario = '\" + usuario\n + \"' and password = '\" + password + \"'\";\n Query query = session.createQuery(hql);\n \n if(!query.list().isEmpty()) {\n us = (Usuario) query.list().get(0);\n } \n } catch (Exception e){\n throw e;\n }\n return us;\n /*\n desde el if se cambia\n query.setParameter(\"usuario\", usuario);\n query.setParameter(\"password\", password);\n us = (Usuario) query.uniqueResult();\n \n \n */\n }",
"String getUserName();",
"String getUserName();",
"User getUser();",
"User getUser();",
"public Usuario buscarUsuario(String cedula) {\n\n usuario = usuarioDAO.read(cedula);\n\n return usuario;\n\n }",
"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}",
"@Override\n public long getUserId() {\n return _partido.getUserId();\n }",
"@Override\n\tpublic User CheckUser(String username,String password,String administra) {\n\t\tSession session=sessionFactory.openSession();\n\t\tTransaction tr = session.beginTransaction();\n\t\tList<User> list=null;\n\t\t//String sqlString =\"select*from user where username= '\"+username+\"' and password= '\"+password+\"' \";\n\t\tString sqlString=\"select * from user where username = '\"+username+\"' and password = '\"+password+\"' and administra = '0' \";\n\t\ttry {\n\t\t\tQuery query=session.createSQLQuery(sqlString).addScalar(\"id\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"username\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"password\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"administra\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"balance\",FloatType.INSTANCE);\n\t\t\tquery.setResultTransformer(Transformers.aliasToBean(User.class));\n\t\t\tlist= query.list();\n\t\t} catch (HibernateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttr.commit();\n\t\t session.close();\n\t\t}\n\t\tif (list.size()==0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn list.get(0);\n\t}",
"public java.lang.String getUsuario() {\n return usuario;\n }",
"public Usuario(String nombre,String correo,Uri Ringstone){\n this.correo=correo;\n this.nombre = nombre;\n this.Ringstone = Ringstone;\n reservas = new ArrayList<Reserva>();\n }",
"private void mostrarUsuario(Usuario usuario) {\n\t\tSystem.out.println(usuario.getId()+\" - \"+usuario.getNombre()+\" \"+usuario.getApellido()+\" / \"+usuario.getEdad()+\" / \"+usuario.getDni()+\" / \"+usuario.getFecha_nac());\r\n\t}",
"public Usuario getUsuario(String usuario) {\r\n\t\tUsuario user = null;\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\tuser = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Usuario>() {\r\n\t\t\t\t public Usuario mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t Usuario user = new Usuario();\r\n\t\t\t\t user.setId(rs.getLong(\"id\"));\r\n\t\t\t\t user.setUsuarioAlias(rs.getString(\"usuario\"));\r\n\t\t\t\t user.setUsuarioPwd(rs.getString(\"clave\"));\r\n\t\t\t\t user.setUsuarioEstatus(rs.getBoolean(\"estatus\"));\r\n\t\t\t\t return user;\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\t\t\t\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tRol rol = new Rol();\r\n\t\trol.setId(100);\r\n\t\trol.setDescripcion(\"inatec\");\r\n\t\trol.setNombre(\"inatec\");\r\n\t\trol.setEstatus(true);\t\t\r\n\t\tuser.setRol(rol);\r\n\t\treturn user;\r\n\t}",
"public int getRolByUsuario(int id_usuario) \n {\n int id_rol = 0;\n try \n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT ID_Rol FROM Usuario WHERE ID_User = ?\";\n pstm = con.prepareStatement(query);\n pstm.setInt(1, id_usuario);\n rs = pstm.executeQuery();\n if(rs.next())\n { \n id_rol = rs.getInt(\"ID_Rol\");\n }\n }catch(Exception ex){\n ex.printStackTrace(); \n } \n return id_rol;\n }",
"public boolean existUser(String campo1, String campo2);"
] | [
"0.7080693",
"0.6993699",
"0.68708444",
"0.68425804",
"0.6822199",
"0.6822199",
"0.66418153",
"0.660702",
"0.6603903",
"0.6603903",
"0.6543668",
"0.6518252",
"0.65129036",
"0.6500355",
"0.64878964",
"0.6486154",
"0.6478076",
"0.6475412",
"0.6467126",
"0.6464943",
"0.642739",
"0.64238185",
"0.6412849",
"0.6383834",
"0.63822204",
"0.63592625",
"0.63548994",
"0.6347593",
"0.6347593",
"0.6347593",
"0.6331461",
"0.63241565",
"0.63241565",
"0.6297759",
"0.6294308",
"0.6294308",
"0.6286323",
"0.62587625",
"0.62532485",
"0.6244971",
"0.6244899",
"0.6239754",
"0.62361306",
"0.62324256",
"0.62309444",
"0.621784",
"0.6209418",
"0.62083685",
"0.6202546",
"0.6202546",
"0.62019545",
"0.62008935",
"0.61991554",
"0.619157",
"0.61811453",
"0.61805904",
"0.6180273",
"0.6165388",
"0.6162184",
"0.61601454",
"0.6156947",
"0.61540014",
"0.61530787",
"0.6151773",
"0.6149383",
"0.6145786",
"0.6143805",
"0.6143805",
"0.6141727",
"0.61297435",
"0.6125788",
"0.61233944",
"0.61152726",
"0.6113073",
"0.6109986",
"0.6107715",
"0.6101987",
"0.6100385",
"0.6098278",
"0.6098084",
"0.60974",
"0.6097269",
"0.60958713",
"0.60958713",
"0.60958713",
"0.60944384",
"0.60883254",
"0.60876024",
"0.60876024",
"0.60821307",
"0.60821307",
"0.6079643",
"0.60746735",
"0.60688287",
"0.60686004",
"0.6064757",
"0.6048715",
"0.604601",
"0.6043045",
"0.60365415",
"0.6032412"
] | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
return super.onCreateOptionsMenu(menu);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_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 {\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\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\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\n if (item.getItemId() == 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\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\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\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\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.79046476",
"0.7805623",
"0.7766615",
"0.77274555",
"0.7632045",
"0.76220745",
"0.75848633",
"0.7531134",
"0.74884325",
"0.74575055",
"0.74575055",
"0.74388313",
"0.74218154",
"0.7403308",
"0.7391667",
"0.7386889",
"0.73792624",
"0.73705244",
"0.7362704",
"0.7355958",
"0.73457336",
"0.73412824",
"0.73301464",
"0.73288566",
"0.73257905",
"0.7318758",
"0.7316527",
"0.7313703",
"0.7304158",
"0.7304158",
"0.7302085",
"0.72983634",
"0.7293686",
"0.72866",
"0.7283303",
"0.728145",
"0.72787505",
"0.7260023",
"0.7260023",
"0.7260023",
"0.7259934",
"0.72594047",
"0.7249977",
"0.72246146",
"0.7219595",
"0.72166914",
"0.7204287",
"0.72013676",
"0.72004634",
"0.71934885",
"0.7185269",
"0.7177778",
"0.71687645",
"0.7167653",
"0.71539253",
"0.7153525",
"0.7136213",
"0.7134901",
"0.7134901",
"0.7129261",
"0.7129006",
"0.71241",
"0.712339",
"0.71232814",
"0.71220535",
"0.7117341",
"0.7117331",
"0.7117331",
"0.7117331",
"0.7117331",
"0.71168953",
"0.71166164",
"0.71150327",
"0.71121156",
"0.71098715",
"0.7108862",
"0.7105525",
"0.7099833",
"0.7098193",
"0.7095489",
"0.709369",
"0.709369",
"0.70865035",
"0.7083285",
"0.70810497",
"0.70802194",
"0.70737916",
"0.7068235",
"0.70619094",
"0.70604193",
"0.7060166",
"0.7051441",
"0.70377",
"0.70377",
"0.7035963",
"0.703536",
"0.703536",
"0.70326227",
"0.703064",
"0.70297664",
"0.7018773"
] | 0.0 | -1 |
This method overrides Application start method. It takes image url and create image. Images are placed on Gridpane with centre alignment. | @Override
public void start(Stage primaryStage) throws Exception {
GridPane pane = new GridPane();
pane.setAlignment(Pos.CENTER);
pane.setPadding(new Insets(10,10,10,10));
pane.setHgap(5.5);
pane.setVgap(5.5);
ImageView i1 = new ImageView(establishConnection("https://cdn.pixabay.com/photo/2017/03/14/21/00/american-flag-2144392_1280.png"));
i1.fitHeightProperty().bind(pane.heightProperty().divide(4));
i1.fitWidthProperty().bind(pane.widthProperty().divide(4));
ImageView i2 = new ImageView(establishConnection("https://cdn.pixabay.com/photo/2015/11/06/13/29/union-jack-1027898_1280.jpg"));
i2.fitHeightProperty().bind(pane.heightProperty().divide(4));
i2.fitWidthProperty().bind(pane.widthProperty().divide(4));
ImageView i3 = new ImageView(establishConnection("https://cdn.pixabay.com/photo/2012/04/10/23/27/canada-27003_1280.png"));
i3.fitHeightProperty().bind(pane.heightProperty().divide(4));
i3.fitWidthProperty().bind(pane.widthProperty().divide(4));
ImageView i4 = new ImageView(establishConnection("https://cdn.pixabay.com/photo/2017/05/12/09/07/china-2306580_1280.png"));
i4.fitHeightProperty().bind(pane.heightProperty().divide(4));
i4.fitWidthProperty().bind(pane.widthProperty().divide(4));
pane.add(i2, 0, 0, 1, 1);
pane.add(i3, 1, 0, 1, 1);
pane.add(i1, 1, 1, 1, 1);
pane.add(i4, 0, 1, 1, 1);
Scene s1 = new Scene(pane, 200, 200);
primaryStage.setScene(s1);
primaryStage.setTitle("Exercise14_01");
primaryStage.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override \n\t\t// Override the start method in the Application class.\n\t\t\n\t\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tPane pane = new FlowPane();\n\t\t\tpane.setPadding(new Insets (10, 10, 10, 10));\n\t\t\t\n\t\t\t\n\t\t\t//Place nodes in the pane.\n\t\t\tpane.getChildren().add(new ImageView(\"rose_blue.jpeg\"));\n\t\t\tpane.getChildren().add(new ImageView(\"neptune.jpg\"));\n\t\t\tpane.getChildren().add(new ImageView(\"purple_jellies.jpg\"));\n\t\t\tpane.getChildren().add(new ImageView(\"water_lily.jpg\"));\n\t\t\t\n\t\t\t\n\t\t\t//Create scene & place it in the stage.\n\t\t\tScene scene1 = new Scene(pane, 1000, 1000);\n\t\t\tprimaryStage.setTitle(\"ShowImage\"); // Set title.\n\t\t\tprimaryStage.setScene(scene1); // Place scene in stage.\n\t\t\tprimaryStage.show(); // Display the stage.\n\t\n\t}",
"private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n // TODO\n processImage = new Image(\"/icons/process.gif\");\n processImageView = new ImageView(processImage);\n processImageView.setVisible(false);\n Rectangle2D d = Screen.getPrimary().getVisualBounds();\n Format format = new SimpleDateFormat(\"d-M-yyyy\");\n tableList = FXCollections.observableArrayList();\n db = new DBAccess();\n dateLabel.setText(format.format(new Date()));\n prevDateBtn.setText(\"<\");\n refreshGrid.add(processImageView, 0, 0);\n setColumnSize((d.getWidth() - 302) / 5);\n setProcess();\n } catch (Exception ex) { System.out.println(ex); }\n }",
"public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }",
"private ImageView createImageView(final File imageFile) {\n\n ImageView imageView = null;\n try {\n final Image image = new Image(new FileInputStream(imageFile), 150, 0, true,\n true);\n imageView = new ImageView(image);\n imageView.setFitWidth(150);\n imageView.setOnMouseClicked(new EventHandler<MouseEvent>() {\n\n @Override\n public void handle(MouseEvent mouseEvent) {\n\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\n\n if(mouseEvent.getClickCount() == 2){\n try {\n BorderPane borderPane = new BorderPane();\n ImageView imageView = new ImageView();\n Image image = new Image(new FileInputStream(imageFile));\n imageView.setImage(image);\n imageView.setStyle(\"-fx-background-color: BLACK\");\n imageView.setFitHeight(window1Stage.getHeight() - 10);\n imageView.setPreserveRatio(true);\n imageView.setSmooth(true);\n imageView.setCache(true);\n borderPane.setCenter(imageView);\n borderPane.setStyle(\"-fx-background-color: BLACK\");\n Stage newStage = new Stage();\n newStage.setWidth(window1Stage.getWidth());\n newStage.setHeight(window1Stage.getHeight());\n newStage.setTitle(imageFile.getName());\n Scene scene = new Scene(borderPane, Color.BLACK);\n newStage.setScene(scene);\n newStage.show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }\n }\n }\n });\n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n return imageView;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n // TODO\n processImage = new Image(\"/icons/process.gif\");\n processImageView = new ImageView(processImage);\n processImageView.setVisible(false);\n Rectangle2D d = Screen.getPrimary().getVisualBounds();\n Format format = new SimpleDateFormat(\"d-M-yyyy\");\n tableList = FXCollections.observableArrayList();\n allMembers = FXCollections.observableArrayList();\n db = new DBAccess();\n dateLabel.setText(format.format(new Date()));\n prevDateBtn.setText(\"<\");\n refreshGrid.add(processImageView, 0, 0);\n setColumnSize((d.getWidth() - 265) / 6);\n setProcess();\n prevDateBtn.setVisible(false);\n nextDateBtn.setVisible(false);\n } catch (Exception ex) { System.out.println(ex); }\n }",
"protected abstract void setupImages(Context context);",
"@FXML\n private void initialize() {\n logo.setImage(new Image(\n FileLoader.class.getResourceAsStream(\"panama_express_logo_big.jpg\")));\n\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n// Image image = new Image(\"/Icons/communication.jpg\");\r\n// ImageView iv = new ImageView();\r\n// imgA.setImage(image);\r\n }",
"public pn_Creating() {\n initComponents();\n imageCreating.start();\n }",
"private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }",
"public void openCustomPictureCreator() {\n\n\t\tFXMLLoader fxmlL = new FXMLLoader(getClass().getResource(\"AvatarDrawingTool.fxml\"));\n\t\ttry {\n\t\t\tBorderPane login = (BorderPane) fxmlL.load();\n\n\t\t\tScene scene = new Scene(login, 600, 400);\n\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\n\t\t\tstage.showAndWait();\n\t\t\t\n\t\t\tif(custom) {\n\t\t\t\tsetImg();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n homeScreen = HomeScreenController.getInstance();\n User u = homeScreen.getCurrentUser();\n CRUDUser cr = new CRUDUser();\n this.username.setText(u.getUserInfoIdId().getUserFirstName());\nBufferedImage image = null;\n\n if(u.getUserInfoIdId().getUserImage()!=null){\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/\" + u.getUserInfoIdId().getUserImage()));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/avatar.jpg\"));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n WritableImage img = SwingFXUtils.toFXImage(image, null);\n this.imageUser.setFill(new ImagePattern(img));\n \n this.showUsers();\n }",
"@Deprecated\n public void popupStartingImage(){\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.welcomepage);\n startingImage = new ImageView(this);\n startingImage.setImageBitmap(bitmap);\n\n windowManager = getWindowManager();\n WindowManager.LayoutParams params = new WindowManager.LayoutParams();\n params.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;\n params.gravity = Gravity.NO_GRAVITY;\n params.width = WindowManager.LayoutParams.MATCH_PARENT;\n params.height = WindowManager.LayoutParams.MATCH_PARENT;\n\n windowManager.addView(startingImage, params);\n }",
"private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }",
"public SplashScreen (String imageFileName)\n {\n super (new Frame2());\n try {\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n \n URL imageUrl = getClass().getResource (imageFileName);\n image_ = ImageIO.read(imageUrl);\n\n MediaTracker mediaTracker = new MediaTracker (this);\n mediaTracker.addImage (image_, 0);\n mediaTracker.waitForID (0);\n\n width_ = image_.getWidth (this);\n height_ = image_.getHeight (this);\n\n Dimension screenSize = toolkit.getScreenSize();\n \n x_ = (screenSize.width - width_) / 2;\n y_ = (screenSize.height - height_) / 2;\n }\n catch (Exception exception) {\n exception.printStackTrace();\n image_ = null;\n }\n }",
"@Override\r\n public void start(Stage stage) {\r\n primaryStage = stage;\r\n\r\n Image image = new Image(icon);\r\n ImageView imageView = new ImageView(image);\r\n\r\n VBox rootLayout = new VBox();\r\n rootLayout.setSpacing(15.0);\r\n rootLayout.setAlignment(Pos.CENTER);\r\n rootLayout.getChildren().add(imageView);\r\n rootLayout.getStyleClass().setAll(\"splash-screen\");\r\n\r\n Scene scene = new Scene(rootLayout, width, height);\r\n scene.getStylesheets().add(Application.styleSheet);\r\n\r\n stage.setResizable(false);\r\n stage.setScene(scene);\r\n stage.initStyle(StageStyle.UNDECORATED);\r\n stage.show();\r\n\r\n centerWindowOnScreen();\r\n }",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }",
"public homegallery(String image_url)\n {\n this.image_url=image_url;\n }",
"public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }",
"private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }",
"private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }",
"public void setStartingImages() {\n\t\t\n\t}",
"public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }",
"public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }",
"public SplashWindow() {\n imagem = new JLabel(new ToImageIcon().toImageIcon(new ImagemLoad().imageLoader(img)));\n imagem.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n }",
"public static void showImage(Stage primaryStage) {\n Pane pane = new HBox(10);\n pane.setPadding(new Insets(5, 5, 5, 5));\n Image image = new Image(\"image/us.gif\"); //load image from file\n pane.getChildren().add(new ImageView(image));\n\n ImageView imageView2 = new ImageView(image);\n imageView2.setFitHeight(100);\n imageView2.setFitWidth(100);\n pane.getChildren().add(imageView2);\n\n ImageView imageView3 = new ImageView(image);\n imageView3.setRotate(90);\n pane.getChildren().add(imageView3);\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(pane);\n primaryStage.setTitle(\"ShowImage\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }",
"public ImagePane() {\r\n\t\tsuper();\r\n\t}",
"private void setup() {\n setPreferredSize(DEFAULT_SIZE);\n setBackground(Color.WHITE);\n addComponentsTopane();\n \n File f = new File(\"icons/title.png\");\n try {\n myImage = ImageIO.read(f);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void createXONImageMakerIconPane() throws Exception {\r\n\t\tif (m_XONImageMakerIconPanel != null)\r\n\t\t\treturn;\r\n\t\tImageUtils iu = new ImageUtils();\r\n\t\tm_XONImageMakerIconPanel = new JPanel() {\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tRectangle visibleRect = this.getVisibleRect();\r\n\t\t\t\tDimension panelSize = new Dimension(\r\n\t\t\t\t\t\t(int) visibleRect.getWidth(),\r\n\t\t\t\t\t\t(int) visibleRect.getHeight());\r\n\t\t\t\t// RGPTLogger.logToConsole(\"Panel Size: \"+panelSize);\r\n\t\t\t\tg.drawImage(XON_IMAGE_MAKER_ICON, 0, 0, panelSize.width,\r\n\t\t\t\t\t\tpanelSize.height, this);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public void displayImage() {\n JLabel picLabel = new JLabel(new ImageIcon(this.bi));\n JPanel jp = new JPanel();\n jp.add(picLabel);\n\n JFrame f = new JFrame();\n f.setSize(this.width, this.height);\n f.add(jp);\n f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n f.setVisible(true);\n\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n f.setLocation(dim.width/2-f.getSize().width/2, dim.height/2-f.getSize().height/2);\n\n }",
"public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"@Override\n \n \n public void initialize(URL url, ResourceBundle rb) {\n retornararImg();\n\n }",
"@FXML\r\n void initialize() {\r\n \tApplicationMethods.Years(year);\r\n \tjavafx.scene.image.Image i = new javafx.scene.image.Image(\"file:resources/qublogo.png\");\r\n \tImage.setImage(i);\r\n }",
"@FXML\n private void handlePlayImage() {\n if (!getClientBG().isConnected()) {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/FXML/game_init/serverIPChoice.fxml\"));\n\n try {\n\n Stage stage = GuiStarter.getPrimaryStage();\n Scene scene = new Scene(loader.load());\n\n scene.getStylesheets().add(getClass().getResource(\"/CSS/game_init/style.css\").toExternalForm());\n\n stage.setMinHeight(400);\n stage.setMinWidth(600);\n stage.setResizable(true);\n stage.setScene(scene);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else {\n Stage stage = GuiStarter.getPrimaryStage();\n stage.setMinHeight(450);\n stage.setMinWidth(600);\n stage.setResizable(true);\n ServerIPChoiceController.connectionUp();\n }\n\n }",
"public XONImageMaker(boolean isWindowsApp, Dimension contentPaneSize) {\r\n\t\t// AppletParameters.createServerProperties(this.getClass(), false);\r\n\t\tm_WorkflowPanelItems = new HashMap<Integer, JComponent>();\r\n\t\tm_XONImageContentItem = new HashMap<Integer, JComponent>();\r\n\t\tm_WFActionSteps = new HashMap<String, Vector>();\r\n\t\tm_WFImageAction = new HashMap<String, String>();\r\n\t\tm_ActionPopupMenu = new HashMap<String, JPopupMenu>();\r\n\t\tm_PopupMenuImageAction = new HashMap<String, String>();\r\n\t\tm_XONImageViewerPanel = new XONImagePanel(this);\r\n\t\tm_WestPanelWidth = RGPTParams.getIntVal(\"WestPanelWidth\");\r\n\t\tm_SouthPanelHeight = RGPTParams.getIntVal(\"SouthPanelHeight\");\r\n\t\tm_ActionWFPanelMap = new HashMap<String, JPanel>();\r\n\t\tm_ActionButtonMap = new HashMap<String, JButton>();\r\n\t\tif (isWindowsApp)\r\n\t\t\tthis.setLookAndFeel();\r\n\t\telse\r\n\t\t\tm_ContentPaneSize = contentPaneSize;\r\n\t\tm_IsWindowsApp = isWindowsApp;\r\n\t\tif (m_IsWindowsApp) {\r\n\t\t\tthis.createContentPane();\r\n\t\t\tthis.setContentPane(m_ContentPane);\r\n\t\t\tJComponent cont = (JComponent) getContentPane();\r\n\t\t\tBorder raisedBorder = BorderFactory.createRaisedBevelBorder();\r\n\t\t\tcont.setBorder(raisedBorder);\r\n\t\t\tthis.pack();\r\n\t\t\tthis.show();\r\n\t\t}\r\n\t}",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //create our gameboard \r\n start();\r\n //cardval Variable used to store the value of cardCount\r\n cardVal = new int[36];\r\n //initialize our grid\r\n grid = new GridPane();\r\n //cardIndex used to store the column index and row index of our imageArray\r\n cardIndx = new cardIndex[36];\r\n for(int row = 0;row<6;row++){\r\n for(int col = 0;col<6;col++){ \r\n //cardVal[col is equal to cardCount(0) and then val is equal to cardCount(0) val = 0 etc etc important\r\n //because val stops at 35 instead of 36\r\n cardVal[col] = cardCount;\r\n val = cardVal[col];\r\n //we created CardIndex object to store col and row values, and store them into an array to sync them up\r\n //with our imageArr[]\r\n cardIndx[cardCount] = new cardIndex(col, row);\r\n imageArr[cardCount] = new ImageView(new Image(\"Cards/back.jpg\"));\r\n //call our function to add the val to each Event in our image array\r\n setImageOnPress(imageArr[cardCount], val);\r\n \r\n grid.add(imageArr[cardCount],col,row);\r\n grid.setHgap(5);\r\n grid.setVgap(5);\r\n //System.out.println(grid);\r\n //grid.setStyle(\"-fx-background-color: white; -fx-grid-lines-visible: true\"); \r\n //mainPane.getChildren().add(grid);\r\n \r\n cardCount++;\r\n }\r\n }\r\n vBoxPane.setAlignment(Pos.CENTER);\r\n vBoxPane.getChildren().add(grid);\r\n \r\n }",
"private void loadShipImage() {\r\n\t\tshipImageView = Ship.getImage();\r\n\t\tshipImageView.setX(ship.getCurrentLocation().x * scalingFactor);\r\n\t\tshipImageView.setY(ship.getCurrentLocation().y * scalingFactor);\r\n\r\n\t\troot.getChildren().add(shipImageView);\r\n\r\n\t}",
"public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }",
"public ImageView genererImage(String urlImage, String nomImage) {\n File imgEmpty = new File(urlImage);\n Image img = new Image(imgEmpty.toURI().toString());\n ImageView imgE = new ImageView(img);\n imgE.setFitHeight(0.155 * GLOBALS.MAINACTIVITY_HEIGHT);\n imgE.setFitWidth(0.095 * GLOBALS.MAINACTIVITY_WIDTH);\n imgE.setId(nomImage);\n imgE.setOnMouseEntered(new ActionImg(imgE, this));\n imgE.setOnMouseClicked(new MouseImg(imgE, this, this.p4));\n return imgE;\n }",
"public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n File folder = new File(classLoader.getResource(\"sampleMemes\").getFile());\n File[] listOfFiles = folder.listFiles();\n TilePane tilePane = new TilePane();\n tilePane.setHgap(5);\n tilePane.setVgap(5);\n tilePane.setMaxWidth(200);\n\n for (int i = 0; i < listOfFiles.length; ++i) {\n Image image = new Image(listOfFiles[i].toURI().toString());\n MyImageView imageView = new MyImageView(image);\n imageView.setImagePath(listOfFiles[i].toURI().toString());\n imageView.setId(listOfFiles[i].getAbsolutePath());\n imageView.setFitHeight(200);\n imageView.setFitWidth(190);\n imageView.setPreserveRatio(true);\n tilePane.getChildren().addAll(imageView);\n addEventToImageView(imageView);\n\n }\n\n imageSlider.setContent(tilePane);\n\n }",
"@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}",
"private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }",
"@Override\n /**\n * Start method that runs at the start of the photos app\n * @param primaryStage - main stage\n * @throws Exception\n */\n public void start(Stage primaryStage) throws Exception{\n\t\tFile dir = new File(\"photoData\");\n\t\tif(!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n window = primaryStage;\n\t\tsetStage(\"Login Page\", \"../view/login.fxml\");\n errorWindow = new Alert(AlertType.ERROR);\n errorWindow.initOwner(primaryStage);\n }",
"@SuppressLint({\"NewApi\"})\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(C0073R.layout.activity_show_public_images);\n if (VERSION.SDK_INT > 9) {\n StrictMode.setThreadPolicy(new Builder().permitAll().build());\n }\n this.context = getApplicationContext();\n String text = null;\n try {\n text = Utils.GetText(\"mobile/public_images/\");\n Log.i(\"ShowPublicImage\", \"text ==> \" + text);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n String[] tempImageUrls = text.split(\"\\n\");\n this.imageUrls = new String[(tempImageUrls.length - 1)];\n int i = 1;\n int j = 0;\n while (i < tempImageUrls.length) {\n this.imageUrls[j] = \"http://mb.fotodekho.com/\" + tempImageUrls[i];\n Log.i(\"ShowPublicImage\", \"imageUrls[j] => \" + this.imageUrls[j]);\n i++;\n j++;\n }\n this.logoutbutton = (Button) findViewById(C0073R.C0075id.logoutbutton);\n this.logoutbutton.setOnClickListener(this);\n final String[] allImageUrls = this.imageUrls;\n GridView gv = (GridView) findViewById(C0073R.C0075id.publicImageGrid);\n gv.setAdapter(new GridViewAdapter(this, this.imageUrls));\n gv.setOnScrollListener(new SampleScrollListener(this));\n gv.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> adapterView, View v, int position, long id) {\n Intent i1 = new Intent(ShowPublicImages.this.getApplicationContext(), SlideShowActivity.class);\n i1.putExtra(\"allImageUrls\", allImageUrls);\n i1.putExtra(\"position\", position);\n ShowPublicImages.this.startActivity(i1);\n }\n });\n }",
"public void init() throws MalformedURLException {\n Parent root = loadHierarchy(\"src/main/java/com/mycompany/propertytycoon/gui/mainmenu/homepage.fxml\");\n Scene scene = new Scene(root);\n\n currStage.setTitle(\"Property Tycoon\");\n currStage.setScene(scene);\n URL url = new File(\"src/main/java/resources/img/PTBarLogo.png\").toURI().toURL();\n Image i = new Image(url.toString());\n currStage.getIcons().add(i);\n currStage.show();\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 }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n photo.setImage(new Image(\"/Image/photobtn.png\"));\n KING.setImage(new Image(\"/Image/king-8.png\"));\n validerbtn.setImage(new Image(\"/Image/validerbtn.png\"));\n retourbtn.setImage(new Image(\"/Image/retour-8.png\"));\n bgimg.setImage(new Image(\"/Image/bgmain.png\"));\n }",
"public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}",
"public void getImages(ObservableList<Artwork> observeArrayList) {\n\n Stage stage = new Stage();\n\n ArrayList<String> artworkPhoto = new ArrayList<>();\n ArrayList<String> artworkTitle = new ArrayList<>();\n\n\n Image[] images = new Image[observeArrayList.size()]; //images to add into grid pane.\n ImageView[] imageViews = new ImageView[observeArrayList.size()]; //imageViews to add into grid pane.\n VBox[] vBoxes = new VBox[observeArrayList.size()]; //vboxs to add in grid pane.\n Label[] labels = new Label[observeArrayList.size()];\n\n\n artworkScrollPane.setPadding(new Insets(10, 0, 0, 0));\n artworkTilePane.setPadding(new Insets(10, 0, 0, 0));\n artworkTilePane.setStyle(\"-fx-background-color: #DCDCDC\");\n artworkScrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); //scroller can't move horizontally.\n artworkScrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); //scroller can move vertically.\n artworkScrollPane.setFitToHeight(true);\n artworkScrollPane.setContent(artworkTilePane);\n artworkTilePane.setHgap(GAP);\n artworkTilePane.setVgap(GAP);\n\n //Get location of artwork photos.\n for (Artwork artwork : observeArrayList) {\n artworkPhoto.add(artwork.getPhoto());\n artworkTitle.add(artwork.getTitle());\n }\n\n String[] imageLocation = artworkPhoto.toArray(new String[observeArrayList.size()]); //convert array list to array.\n String[] labelOfTitles = artworkTitle.toArray(new String[observeArrayList.size()]);\n\n for (int i = 0; i < imageLocation.length; i++) {\n\n final int currentI = i;\n images[i] = new Image(imageLocation[i], IMAGE_WIDTH, 0, true, true); //get image.\n imageViews[i] = new ImageView(images[i]); //add image to image view.\n imageViews[i].setFitWidth(IMAGE_WIDTH); //formatting:\n imageViews[i].setFitHeight(stage.getHeight() - 10);\n imageViews[i].setPreserveRatio(true);\n imageViews[i].setSmooth(true);\n imageViews[i].setCache(true);\n labels[i] = new Label(labelOfTitles[i]);\n labels[i].setFont(Font.font(\"Verdana\", FontPosture.ITALIC, 12));\n\n\n //Add event handler.\n //Opens show auction when clicking on an auction for sale.\n imageViews[i].setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getClassLoader().getResource(\"co/uk/artatawe/gui/ShowAuction.fxml\"));\n\n //creates new controller\n ShowAuctionController showAuctionController = new ShowAuctionController();\n\n showAuctionController.setUsername(getUsername());\n\n showAuctionController.setPhoto(imageLocation[currentI]); //photo location.\n //set controller manually\n fxmlLoader.setController(showAuctionController);\n\n try {\n centerPane.setCenter(fxmlLoader.load()); //set the center of the pane to show auction scene\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n vBoxes[i] = new VBox();\n vBoxes[i].getChildren().addAll(labels[i]);\n vBoxes[i].getChildren().addAll(imageViews[i]); //add vbox inside gridpane.\n artworkTilePane.getChildren().add(vBoxes[i]); //add image to gridpane.\n artworkTilePane.setAlignment(Pos.CENTER);\n }\n }",
"@Override\n public void onCreateImageSpace(int index, String src, int left, int top, int width, int height) {\n ImgContainer container = imgContainerMap.get(index);\n\n if (container == null){\n container = new ImgContainer(getContext(), adapter, index, src);\n container.width = width;\n container.height = height;\n container.containerView.setTag(R.id.htmltextview_viewholder_index, index);\n container.containerView.setTag(R.id.htmltextview_viewholder_type, VIEWHOLDER_TYPE_IMG);\n overlay.addView(container.containerView);\n\n imgContainerMap.put(index, container);\n }\n\n LayoutParams lp = new LayoutParams(width, height);\n lp.setMargins(left, top, 0, 0);\n container.containerView.setLayoutParams(lp);\n\n recycleCheck();\n }",
"public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }",
"public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }",
"public ImageHandler() {\n if (System.getProperty(\"os.name\").toLowerCase().contains(\"win\")) {\n this.OS = \"windows/\";\n } else {\n this.OS = \"mac/\";\n }\n }",
"private void loadImage() {\r\n\t\tthis.background = GraphicsUtil.resize(ImageLoader.getImage(\"resources/img/loginScreen/LoginBackground.jpg\"),\r\n\t\t\t\tFRAME_X, FRAME_Y);\r\n\t}",
"@FXML\n public void setUp() {\n players = db.getPlayers();\n creatures = db.getCreatures();\n Random rand = new Random();\n creatureId = rand.nextInt(creatures.size()); \n playerId = rand.nextInt(players.size());\n CreaturePic.setImage(db.getCreaturePic(creatures.get(creatureId).getId()));\n PlayerPic.setImage(db.getPlayerPic(players.get(playerId).getId()));\n try{\n int backgroundNumber = rand.nextInt(10) + 21; //21 - 30\n \n byte[] array = db.getPicture(backgroundNumber);\n ByteArrayInputStream bis = new ByteArrayInputStream(array);\n BufferedImage b = ImageIO.read(bis);\n Image backim = SwingFXUtils.toFXImage(b,null);\n BackgroundPic.setFitHeight(720);\n BackgroundPic.setFitWidth(1280);\n BackgroundPic.setImage(backim);\n setTextFields();\n }\n catch(Exception e) {\n System.out.println(e);\n }\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n // TOP1\n idrecette1.setText(String.valueOf(RS.findById(VS.TOP1()).getId()));\n usernameR1.setText(RS.findById(VS.TOP1()).getIduser().getUsername());\n nomR1.setText(RS.findById(VS.TOP1()).getNom());\n //image1.setImage(new Image(RS.findById(VS.TOP1()).getNom_image()));\n ScoreR1.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP1()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP1()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image1.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image1.setImage(imageB);\n }\n //TOP2\n idrecette2.setText(String.valueOf(RS.findById(VS.TOP2()).getId()));\n usernameR2.setText(RS.findById(VS.TOP2()).getIduser().getUsername());\n nomR2.setText(RS.findById(VS.TOP2()).getNom());\n ScoreR2.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP2()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP2()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image2.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image2.setImage(imageB);\n }\n //TOP3\n idrecette3.setText(String.valueOf(RS.findById(VS.TOP3()).getId()));\n usernameR3.setText(RS.findById(VS.TOP3()).getIduser().getUsername());\n nomR3.setText(RS.findById(VS.TOP3()).getNom());\n ScoreR3.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP3()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP3()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image3.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image3.setImage(imageB);\n }\n //TOP4\n idrecette4.setText(String.valueOf(RS.findById(VS.TOP4()).getId()));\n usernameR4.setText(RS.findById(VS.TOP4()).getIduser().getUsername());\n nomR4.setText(RS.findById(VS.TOP4()).getNom());\n ScoreR4.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP4()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP4()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image4.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image4.setImage(imageB);\n }\n //TOP5\n idrecette5.setText(String.valueOf(RS.findById(VS.TOP5()).getId()));\n usernameR5.setText(RS.findById(VS.TOP5()).getIduser().getUsername());\n nomR5.setText(RS.findById(VS.TOP5()).getNom());\n ScoreR5.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP5()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP5()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image5.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image5.setImage(imageB);\n } \n }",
"@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }",
"@FXML\n /**\n * use initialize method to get the metadata of the image file and set the metadata properties on the UI display\n */\n public void initialize() {\n messaging.onMessage(MessageObject.SubjectEnum.ImageIdToShow, (file) -> {\n\n if (this.imageViewContainer == null) {\n return;\n }\n\n //get image and restrict the maximum width to 400\n Image image = ImageUtil.getImageFromFile((File) file);\n //get imageView and set its width and height\n ImageView imageView = ImageUtil.getImageViewByImage(image, \"\", 400, 400);\n //clear the HBox imageViewContainer\n this.imageViewContainer.getChildren().clear();\n //add imageView to the HBox imageViewContainer\n this.imageViewContainer.getChildren().add(\n imageView\n );\n //set an hgrow constraint on the imageView\n this.imageViewContainer.setHgrow(imageView, Priority.NEVER);\n //get metadata from the image file\n Metadata metadata = null;\n try {\n metadata = ImageMetadataReader.readMetadata((File) file);\n } catch (ImageProcessingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //get the width and height of the image\n int width = (int)image.getWidth();\n int height = (int)image.getHeight();\n //set text of Label width and height on the UI display\n this.width.setText(\"\" + width);\n this.height.setText(\"\" + height);\n //get ExifIFD0Directory from metadata\n ExifIFD0Directory exifIFD0Directory = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);\n //initialize make and model of camera\n String NA = MsIsConstant.NAPlaceholder;\n String make = NA;\n String model = NA;\n if (exifIFD0Directory != null) {\n //get the value of make and model properties\n make = exifIFD0Directory.getString(ExifIFD0Directory.TAG_MAKE);\n model = exifIFD0Directory.getString(ExifIFD0Directory.TAG_MODEL);\n if (make == null || model == null) {\n make = NA;\n model = NA;\n }\n }\n //set text of Label make and model of camera on the UI display\n this.cameraMakeAndModel.setText(String.format(\"%s, %s\", make, model));\n\n GpsDirectory gpsDirectory = metadata.getFirstDirectoryOfType(GpsDirectory.class);\n showGeo(gpsDirectory);\n\n });\n }",
"@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n File file = new File(\"src/chat/images/send.png\");\n Image image = new Image(file.toURI().toString());\n sendButton.setImage(image);\n\n // change list background\n messagesList.setStyle(\"-fx-control-inner-background: none;\");\n usersList.setStyle(\"-fx-control-inner-background: none;\");\n\n }",
"public void createImages(){\r\n\t\ttry {\r\n\t\t\timg_bg = Image.createImage(GAME_BG);\r\n\t\t\timg_backBtn = Image.createImage(BACK_BTN);\r\n\t\t\timg_muteBtn = Image.createImage(MUTE_BTN);\r\n\t\t\timg_resetBtn = Image.createImage(RESET_BTN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void runSlideshow(ActionEvent actionEvent) {\n Picture pictureToDisplay = getNextPicture();\n try {\n InputStream inputStream = new FileInputStream(pictureToDisplay.getAbsolutePath());\n BufferedImage bufferedImage = ImageIO.read(inputStream);\n Image image = SwingFXUtils.toFXImage(bufferedImage, null);\n\n this.imageView.setImage(image);\n inputStream.close();\n } catch (IOException ignored) {\n }\n }",
"public void insertImage(String imageName, double locationX,\n\t\t\t double locationY, double widthSize,\n\t\t\t double heightSize, double rotationDegree,\n\t\t\t boolean scaleBased) {\n\t /* Size parameters */\n\t\tdouble imageWidth;\n\t\tdouble imageHeight;\n\t\t\n\t\t/* Declare an image object */\n\t\tImage image;\n\n\t\t/* Check if the source is online or local */\n\t\tif (imageName.startsWith(\"http\")) {\n\t\t\t/*File is a web resource, check that it exists*/\n\t\t\tif(!mediaExists(imageName)) {\n\t\t\t\t/* Media is not accessible, add a label to notify user */\n Label label = new Label(\"Media Unavailable\");\n label.relocate(locationX, locationY);\n group.getChildren().add(label);\n \n /* Return immediately to halt creation of image */\n return;\n\t\t\t}\n\t\t\t\n\t\t\t/* Instantiate the image */\n\t\t\timage = new Image(\"URL:\" + imageName);\n\t\t} else {\n\t\t\t/*File is a local Resource*/\n\t\t\timage = new Image(\"file:\" + imageName);\n\t\t}\n\t\t\n\t\t/* Get size information */\n\t\timageWidth = image.getWidth();\n\t\timageHeight = image.getHeight();\n\t\t\n\t\t/* Create an image view */\n\t\tImageView imageView = new ImageView(image);\n\t\timageView = new ImageView();\n\t\timageView.setImage(image);\n\t\t\n\t\t/* Check if the image is being drawn based on scale */\n\t\tif(scaleBased) {\n\t\t imageView.setFitWidth(imageWidth * widthSize);\n imageView.setFitHeight(imageHeight *heightSize);\n\t\t} else {\n\t\t imageView.setFitWidth(widthSize);\n\t\t imageView.setFitHeight(heightSize);\n\t\t}\n\t\t\n\t\t/* Apply rotation and location */\n\t\timageView.setRotate(rotationDegree);\n\t\timageView.relocate(locationX, locationY);\n\t\t\n\t\t/* Add the image view to the list */\n\t\timages.add(imageView);\n\t\t\n\t\t/* Add the image to the group */\n\t\tgroup.getChildren().add(imageView);\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n Image img = new Image(\"/circle/my_image.jpg\");\n circle.setFill(new ImagePattern(img));\n }",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"Application.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tImage icon = new Image(getClass().getResourceAsStream(\"/resources/icon.png\"));\n\t\t\tprimaryStage.getIcons().add(icon);\n\t\t\t\n\t\t\tprimaryStage.setTitle(\"Billing Manager\");\n\t\t\tprimaryStage.setMaximized(true);\n\t\t\t//primaryStage.setFullScreen(true);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t\n\t}",
"@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }",
"@Override\n public void start(Stage primaryStage) {\n primaryStage.setTitle(\"Inventory Home\");\n Image img = new Image(\"file:resources/img/logo.png\");\n primaryStage.getIcons().add(img);\n //log.info(\"before initLoginProcess() method\");\n \tfinal Task<Boolean> startRestTask = new Task<Boolean>() {\n\t\t\t@Override\n\t\t\tprotected Boolean call() throws Exception {\n\t\t\t\tupdateMessage(\"Application is starting the services . . . \");\n\t\t\t\tstartRestAPI(arguments);\n\t\t\t\tupdateMessage(\"All services started successfully . . . \");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tshowSplash(\n primaryStage,\n startRestTask,\n () -> initLoginProcess()\n );\n new Thread(startRestTask).start(); \n }",
"public void initialize()\r\n {\r\n ceresImage = new Image(\"Ceres.png\");\r\n erisImage = new Image(\"Eris.png\");\r\n haumeaImage = new Image(\"Haumea.png\");\r\n makemakeImage = new Image(\"MakeMake.png\");\r\n plutoImage = new Image(\"Pluto.png\");\r\n }",
"public Sniffer() { \n initComponents(); \n setLocationRelativeTo(getRootPane());\n setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(\"/views/images/sam_icon.png\")));\n }",
"private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }",
"public void run() {\n\n // JFrame\n jf = new JFrame(\"Image Peer\");\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.setSize(700, 720);\n jf.setResizable(false);\n\n // Image blocks\n imgBlock = new JPanel();\n imgBlock.setSize(700, 700);\n imgBlock.setLayout(new GridLayout(10, 10, 0, 0));\n imgBlock.setPreferredSize(new Dimension(700, 700));\n jf.getContentPane().add(BorderLayout.NORTH, imgBlock);\n\n // Load default photo\n try {\n\n img = resizeImage(new File(\"default.png\"), 700, 700);\n\n } catch (Exception e) {\n\n img = null;\n\n }\n divideImage();\n setImages();\n\n jf.setVisible(true);\n }",
"private void createAndInitScrollingImage() {\r\n\t\tif (this.scrollPane != null) {\r\n\t\t\tthis.pictureFrame.getContentPane().remove(this.scrollPane);\r\n\r\n }\r\n\r\n\t\tthis.scrollPane = new JScrollPane();\r\n\t\tthis.pictureFrame.getContentPane().add(this.scrollPane, BorderLayout.CENTER);\r\n\t\tthis.pictureFrame.validate();\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\tnew ToolTipFrame( \t\t\t\n \t\t\t\"<html>\"+\n \t\t\t\"<br>If you have worked on a resized (reduced) version of source and \"+\n \t\t\t\"<br> of target image for time and memory purpose, \"+\n \t\t\t\"<br> the transfo computed from this reduced image will be rescale to fit the original size\" +\n \t\t\t\"<br> of your source and target images\"+\n \t\t\t\"<br><b> Source binning </b> is the reduced scale for source that you used to compute the transfo, \"+\n \t\t\t\"<br><b> Target binning </b> is the reduced scale for target that you used to compute the transfo, \"+\n \t\t\t\" <br>Example : you have processed reduced size source of 512*512 of a 2048x2048 original source file\"+\n \t\t\t\" <br>and a reduced size target of 512*512 of a 4096x4096 original target file\"+\n \t\t\t\" <br>Source binning will be 4 (2048/ 512) and target binning will be 8 (4096 / 512)\"+\n \t\t\t\"</html>\"\n \t\t\t);\n\n\t\tsource=new EzVarSequence(\"Select Source Image Full Size (will be transformed from xml file)\");\n\t\tString varName =\"Xml file containing list of transformation (computed on reduced images)\";\n\t\tif (source.getValue()!=null)\n\t\t\txmlFile=new EzVarFile(varName, source.getValue().getFilename());\n\t\telse\n\t\t\txmlFile=new EzVarFile(varName, ApplicationPreferences.getPreferences().node(\"frame/imageLoader\").get(\"path\", \".\"));\n\t\tsourcebinning= new EzVarInteger(\"Source Binning \",1, 100, 1);\n\t\ttargetbinning=new EzVarInteger(\"Target Binning \",1, 100, 1);\n\t\t\n\t\t\n\t\taddEzComponent(source);\n\t\taddEzComponent(xmlFile);\n\t\taddEzComponent(sourcebinning);\n\t\taddEzComponent(targetbinning);\n\t\t\n\t}",
"@Override\n\tpublic void start( Stage primaryStage ) throws Exception\n\t{\n\t\t// Load the FXML file containing all of the UI elements.\n\t\tParent rootNode = new FXMLLoader( getClass().getResource( \"../../../view/RootLayout.fxml\" ) ).load();\n\n\t\t// Create the stage and set the window title.\n\t\tprimaryStage.setTitle( \"SNMP Link Utilization\" );\n\n\t\t// Set the scene using root, with the specified width and height.\n\t\tprimaryStage.setScene( new Scene( rootNode, 500, 600 ) );\n\n\t\t// Set the icon for a non-Maven build: \"file:resources/images/nic.png\"\n\t\t// Set the icon for a Maven build.\n\t\tprimaryStage.getIcons().add( new Image( \"images/nic.png\" ) );\n\n\t\tprimaryStage.show();\n\t}",
"public ImageDisplay()\n\t{\n initComponents();\n }",
"@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}",
"private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/battlemap0_background@2x.png\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/battlemap0_foreground_002@2x.png\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }",
"@Override\r\n public void start(Stage primaryStage) {\r\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n btnCam = new Button(\"Start camera\");\r\n btnManAut = new Button(\"Manual\");\r\n manualMode = true;\r\n camRunning = false;\r\n this.primaryStage = primaryStage;\r\n root = new BorderPane();\r\n\r\n loadImage();\r\n createScene();\r\n handleUI();\r\n updateGUIStatus();\r\n }",
"private void initTabImage() {\n firstImage.setImageResource(R.drawable.home);\n secondImage.setImageResource(R.drawable.profile);\n// thirdImage.setImageResource(R.drawable.addcontent);\n fourthImage.setImageResource(R.drawable.channels);\n fifthImage.setImageResource(R.drawable.search);\n }",
"public void titleImage(){\r\n\t\tint x = 75;\r\n\t\tint y = 100;\r\n\t\t//Title is displayed\r\n\t\tString title = \"Ticket Master\";\r\n\t\ttitleImage = new GLabel(title,x,y);\r\n\t\ttitleImage.setColor(Color.green);\r\n\t\ttitleImage.setFont(\"Arial-100\");\r\n\t\tcanvas.add(titleImage);\r\n\t}",
"private void createImages(){\n icon=new ImageIcon(PATH_TO_FOLDER+\"guiResourses\\\\icon.jpg\").getImage();\n /*\n Image resizedImage=null;\n try {\n resizedImage =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\Gold_Button_009.png\"))\n .getScaledInstance(100, 50, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n buttonStart.setIcon(new ImageIcon(resizedImage));\n buttonStart.setRolloverIcon(new ImageIcon(resizedImage1));\n buttonStart.setBorderPainted(false);\n buttonStart.setFocusPainted(false);\n buttonStart.setContentAreaFilled(false);\n */\n Image resizedImageF=null;\n Image resizedImageFP=null;\n Image resizedImageFF=null;\n Image resizedImageT=null;\n Image resizedImageTP=null;\n Image resizedImageTF=null;\n Image resizedImageB=null;\n Image resizedImageBP=null;\n Image resizedImageBF=null;\n Image resizedImageR=null;\n Image resizedImageRP=null;\n Image resizedImageRF=null;\n try {\n resizedImageF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlight.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageT =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrain.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageTP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageTF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageB =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBus.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageBP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageBF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageR =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoom.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageRP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageRF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n flightButton.setFocusPainted(false);\n flightButton.setRolloverEnabled(true);\n flightButton.setRolloverIcon(new ImageIcon(resizedImageFF));\n flightButton.setIcon(new ImageIcon(resizedImageF));\n flightButton.setPressedIcon(new ImageIcon(resizedImageFP));\n\n trainButton.setFocusPainted(false);\n trainButton.setRolloverEnabled(true);\n trainButton.setRolloverIcon(new ImageIcon(resizedImageTF));\n trainButton.setIcon(new ImageIcon(resizedImageT));\n trainButton.setPressedIcon(new ImageIcon(resizedImageTF));\n busButton.setFocusPainted(false);\n busButton.setRolloverEnabled(true);\n busButton.setRolloverIcon(new ImageIcon(resizedImageBF));\n busButton.setIcon(new ImageIcon(resizedImageB));\n busButton.setPressedIcon(new ImageIcon(resizedImageBF));\n roomButton.setFocusPainted(false);\n roomButton.setRolloverEnabled(true);\n roomButton.setRolloverIcon(new ImageIcon(resizedImageRF));\n roomButton.setIcon(new ImageIcon(resizedImageR));\n roomButton.setPressedIcon(new ImageIcon(resizedImageRF));\n }",
"public AdminMainScreen() {\n try{\n ImageIcon icon=new ImageIcon(getClass().getResource(\"/Adminui/ex.png\"));\n setIconImage(icon.getImage());\n }catch(Exception ex){\n \n }\n initComponents();\n setSize(1000, 600);\n setLocationRelativeTo(null);\n }",
"TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}",
"public void startUpMain() {\r\n ImageIcon icon = new ImageIcon(\"./data/Untitled.png\");\r\n JLabel accountImage = new JLabel(icon);\r\n accountImage.setPreferredSize(new Dimension(938, 536));\r\n main.add(accountImage);\r\n playSound(\"./data/welcometolol.wav\");\r\n }",
"@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\tcurrentAlbumTitle.setText(AccessibleUsersList.masterUserList.userLoggedIn + \"/ \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum);\n\t\t\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\t/*\n\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.getUsername().equals(\"stock\")) {\n\t\t\tbackButton.setVisible(false);\n\t\t}\n\t\t*/\n\t\t\n\t\t/*\n\t\tFile file = new File(\"stockphotos/Bahamas.jpg\");\n Image image = new Image(file.toURI().toString());\n //DisplayedImage.setImage(image);\n ImageView pic = new ImageView();\n\t\tpic.setFitWidth(400);\n\t\tpic.setFitHeight(330);\n\t\tpic.setImage(image);\n\t\tdisplayedPhoto.add(pic);\n DisplayedImage.setItems(displayedPhoto);\n\t\t*/\n\t\t\n Album currAlbum = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum;\n //System.out.println(\"Accessing Album: \" + currAlbum.getName());\n ArrayList<Photo> phots = currAlbum.getAlbum();\n //System.out.println(phots);\n //listOfPhotos = FXCollections.observableList(phots);\n //photoDisplay.setItems(listOfPhotos);\n printPhotos();\n \n //load the OTHER Albums\n ArrayList<Album> oAlbums = AccessibleUsersList.masterUserList.userLoggedIn.getOtherAlbums();\n otherAlbums = FXCollections.observableList(oAlbums);\n OtherAlbumsDisplay.setItems(otherAlbums);\n \n tagNameLabel.setVisible(false);\n \ttagValueLabel.setVisible(false);\n \tsubmitNewTagButton.setVisible(false);\n \tcancelNewTagButton.setVisible(false);\n \tnewTagName.setVisible(false);\n \tnewTagValue.setVisible(false);\n \tFriendsListButton.setDisable(false);\n \t\n \tif(AccessibleUsersList.masterUserList.userLoggedIn.getUsername().equals(\"stock\")) {\n \t\tFriendsListButton.setDisable(true);\n \t}\n \n\t\t//DisplayedImage.setImage(image1);\n\t\t\n\t}",
"public AlternateImageRenderer() {\r\n super(\"\");\r\n images = new Image[2];\r\n try {\r\n Resources imageRes = UIDemoMain.getResource(\"images\");\r\n images[0] = imageRes.getImage(\"sady.png\");\r\n images[1] = imageRes.getImage(\"smily.png\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n setUIID(\"ListRenderer\");\r\n }",
"private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }",
"public void startProcessingImage() {\n if (loadBitmap()) {\n this.mImageProcessHelper.start(this.mBitmap);\n }\n }",
"void setImageFromURL(String imageURL);",
"@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 627, 663);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setResizable(false);\n\t\tframe.setBackground(Color.red);\n\t\t//frame.setOpacity(0);\n\t\tframe.getContentPane().setBackground(new Color(254, 219, 208));\n\t\tImage icon = Toolkit.getDefaultToolkit().getImage(\"images/background0001.jpg\");\n\t frame.setIconImage(icon);\n\t\t//frame.setIconImage(new Image(\"images/background0001.jpg\"));\n\t\t\n\t\tmyGrids[0] = new JLabel();\n\t\tmyGrids[0].setBackground(Color.BLACK);\n\t\tmyGrids[0].setOpaque(true);\n\t\tmyGrids[0].setBounds(10, 11, 50, 50);\n\t\tframe.getContentPane().add(myGrids[0]);\n\t\t\n\t\tJLabel label = new JLabel(\"hi\");\n\t\tlabel.setBounds(70, 11, 50, 50);\n\t\t//myGrids[0].setOpaque(true);\n\t\t\n\t\t\n\t\t\n\t\tImageIcon iconLogo = new ImageIcon(\"images/green_monster.png\");\n\t\t// In init() method write this code\n\t\tImage img = iconLogo.getImage();\n\t\tImage newimg = img.getScaledInstance(50, 50, java.awt.Image.SCALE_SMOOTH);\n\t\ticonLogo = new ImageIcon(newimg);\n\t\t\n\t\t//lblNewLabel.setIcon(iconLogo);\n\t\t\n\t\t\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"New label\");\n\t\tlabel_1.setBounds(130, 11, 50, 50);\n\t\tframe.getContentPane().add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"New label\");\n\t\tlabel_2.setBounds(190, 11, 50, 50);\n\t\tframe.getContentPane().add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"New label\");\n\t\tlabel_3.setBounds(250, 11, 50, 50);\n\t\tframe.getContentPane().add(label_3);\n\t\t\n\t\tJLabel label_4 = new JLabel(\"New label\");\n\t\tlabel_4.setBounds(310, 11, 50, 50);\n\t\tframe.getContentPane().add(label_4);\n\t\t\n\t\tJLabel label_5 = new JLabel(\"New label\");\n\t\tlabel_5.setBounds(370, 11, 50, 50);\n\t\tframe.getContentPane().add(label_5);\n\t\t\n\t\tJLabel label_6 = new JLabel(\"New label\");\n\t\tlabel_6.setBounds(430, 11, 50, 50);\n\t\tframe.getContentPane().add(label_6);\n\t\t\n\t\tJLabel label_7 = new JLabel(\"New label\");\n\t\tlabel_7.setBounds(490, 11, 50, 50);\n\t\tframe.getContentPane().add(label_7);\n\t\t\n\t\tJLabel label_8 = new JLabel(\"New label\");\n\t\tlabel_8.setBounds(550, 11, 50, 50);\n\t\tframe.getContentPane().add(label_8);\n\t\t\n\t\tJLabel label_9 = new JLabel(\"New label\");\n\t\tlabel_9.setBounds(550, 72, 50, 50);\n\t\tframe.getContentPane().add(label_9);\n\t\t\n\t\tJLabel label_10 = new JLabel(\"New label\");\n\t\tlabel_10.setBounds(490, 72, 50, 50);\n\t\tframe.getContentPane().add(label_10);\n\t\t\n\t\tJLabel label_11 = new JLabel(\"New label\");\n\t\tlabel_11.setBounds(430, 72, 50, 50);\n\t\tframe.getContentPane().add(label_11);\n\t\t\n\t\tJLabel label_12 = new JLabel(\"New label\");\n\t\tlabel_12.setBounds(370, 72, 50, 50);\n\t\tframe.getContentPane().add(label_12);\n\t\t\n\t\tJLabel label_13 = new JLabel(\"New label\");\n\t\tlabel_13.setBounds(310, 72, 50, 50);\n\t\tframe.getContentPane().add(label_13);\n\t\t\n\t\tJLabel label_14 = new JLabel(\"New label\");\n\t\tlabel_14.setBounds(250, 72, 50, 50);\n\t\tframe.getContentPane().add(label_14);\n\t\t\n\t\tJLabel label_15 = new JLabel(\"New label\");\n\t\tlabel_15.setBounds(190, 72, 50, 50);\n\t\tframe.getContentPane().add(label_15);\n\t\t\n\t\tJLabel label_16 = new JLabel(\"New label\");\n\t\tlabel_16.setBounds(130, 72, 50, 50);\n\t\tframe.getContentPane().add(label_16);\n\t\t\n\t\tJLabel label_17 = new JLabel(\"New label\");\n\t\tlabel_17.setBounds(70, 72, 50, 50);\n\t\tframe.getContentPane().add(label_17);\n\t\t\n\t\tJLabel label_18 = new JLabel(\"New label\");\n\t\tlabel_18.setBounds(10, 72, 50, 50);\n\t\tframe.getContentPane().add(label_18);\n\t\t\n\t\tJLabel label_19 = new JLabel(\"New label\");\n\t\tlabel_19.setBounds(550, 133, 50, 50);\n\t\tframe.getContentPane().add(label_19);\n\t\t\n\t\tJLabel label_20 = new JLabel(\"New label\");\n\t\tlabel_20.setBounds(490, 133, 50, 50);\n\t\tframe.getContentPane().add(label_20);\n\t\t\n\t\tJLabel label_21 = new JLabel(\"New label\");\n\t\tlabel_21.setBounds(430, 133, 50, 50);\n\t\tframe.getContentPane().add(label_21);\n\t\t\n\t\tJLabel label_22 = new JLabel(\"New label\");\n\t\tlabel_22.setBounds(370, 133, 50, 50);\n\t\tframe.getContentPane().add(label_22);\n\t\t\n\t\tJLabel label_23 = new JLabel(\"New label\");\n\t\tlabel_23.setBounds(310, 133, 50, 50);\n\t\tframe.getContentPane().add(label_23);\n\t\t\n\t\tJLabel label_24 = new JLabel(\"New label\");\n\t\tlabel_24.setBounds(250, 133, 50, 50);\n\t\tframe.getContentPane().add(label_24);\n\t\t\n\t\tJLabel label_25 = new JLabel(\"New label\");\n\t\tlabel_25.setBounds(190, 133, 50, 50);\n\t\tframe.getContentPane().add(label_25);\n\t\t\n\t\tJLabel label_26 = new JLabel(\"New label\");\n\t\tlabel_26.setBounds(130, 133, 50, 50);\n\t\tframe.getContentPane().add(label_26);\n\t\t\n\t\tJLabel label_27 = new JLabel(\"New label\");\n\t\tlabel_27.setBounds(70, 133, 50, 50);\n\t\tframe.getContentPane().add(label_27);\n\t\t\n\t\tJLabel label_28 = new JLabel(\"New label\");\n\t\tlabel_28.setBounds(10, 133, 50, 50);\n\t\tframe.getContentPane().add(label_28);\n\t\t\n\t\tJLabel label_29 = new JLabel(\"New label\");\n\t\tlabel_29.setBounds(550, 194, 50, 50);\n\t\tframe.getContentPane().add(label_29);\n\t\t\n\t\tJLabel label_30 = new JLabel(\"New label\");\n\t\tlabel_30.setBounds(490, 194, 50, 50);\n\t\tframe.getContentPane().add(label_30);\n\t\t\n\t\tJLabel label_31 = new JLabel(\"New label\");\n\t\tlabel_31.setBounds(430, 194, 50, 50);\n\t\tframe.getContentPane().add(label_31);\n\t\t\n\t\tJLabel label_32 = new JLabel(\"New label\");\n\t\tlabel_32.setBounds(370, 194, 50, 50);\n\t\tframe.getContentPane().add(label_32);\n\t\t\n\t\tJLabel label_33 = new JLabel(\"New label\");\n\t\tlabel_33.setBounds(310, 194, 50, 50);\n\t\tframe.getContentPane().add(label_33);\n\t\t\n\t\tJLabel label_34 = new JLabel(\"New label\");\n\t\tlabel_34.setBounds(250, 194, 50, 50);\n\t\tframe.getContentPane().add(label_34);\n\t\t\n\t\tJLabel label_35 = new JLabel(\"New label\");\n\t\tlabel_35.setBounds(190, 194, 50, 50);\n\t\tframe.getContentPane().add(label_35);\n\t\t\n\t\tJLabel label_36 = new JLabel(\"New label\");\n\t\tlabel_36.setBounds(130, 194, 50, 50);\n\t\tframe.getContentPane().add(label_36);\n\t\t\n\t\tJLabel label_37 = new JLabel(\"New label\");\n\t\tlabel_37.setBounds(70, 194, 50, 50);\n\t\tframe.getContentPane().add(label_37);\n\t\t\n\t\tJLabel label_38 = new JLabel(\"New label\");\n\t\tlabel_38.setBounds(10, 194, 50, 50);\n\t\tframe.getContentPane().add(label_38);\n\t\t\n\t\tJLabel label_39 = new JLabel(\"New label\");\n\t\tlabel_39.setBounds(550, 255, 50, 50);\n\t\tframe.getContentPane().add(label_39);\n\t\t\n\t\tJLabel label_40 = new JLabel(\"New label\");\n\t\tlabel_40.setBounds(490, 255, 50, 50);\n\t\tframe.getContentPane().add(label_40);\n\t\t\n\t\tJLabel label_41 = new JLabel(\"New label\");\n\t\tlabel_41.setBounds(430, 255, 50, 50);\n\t\tframe.getContentPane().add(label_41);\n\t\t\n\t\tJLabel label_42 = new JLabel(\"New label\");\n\t\tlabel_42.setBounds(370, 255, 50, 50);\n\t\tframe.getContentPane().add(label_42);\n\t\t\n\t\tJLabel label_43 = new JLabel(\"New label\");\n\t\tlabel_43.setBounds(310, 255, 50, 50);\n\t\tframe.getContentPane().add(label_43);\n\t\t\n\t\tJLabel label_44 = new JLabel(\"New label\");\n\t\tlabel_44.setBounds(250, 255, 50, 50);\n\t\tframe.getContentPane().add(label_44);\n\t\t\n\t\tJLabel label_45 = new JLabel(\"New label\");\n\t\tlabel_45.setBounds(190, 255, 50, 50);\n\t\tframe.getContentPane().add(label_45);\n\t\t\n\t\tJLabel label_46 = new JLabel(\"New label\");\n\t\tlabel_46.setBounds(130, 255, 50, 50);\n\t\tframe.getContentPane().add(label_46);\n\t\t\n\t\tJLabel label_47 = new JLabel(\"New label\");\n\t\tlabel_47.setBounds(70, 255, 50, 50);\n\t\tframe.getContentPane().add(label_47);\n\t\t\n\t\tJLabel label_48 = new JLabel(\"New label\");\n\t\tlabel_48.setBounds(10, 255, 50, 50);\n\t\tframe.getContentPane().add(label_48);\n\t\t\n\t\tJLabel label_49 = new JLabel(\"New label\");\n\t\tlabel_49.setBounds(550, 316, 50, 50);\n\t\tframe.getContentPane().add(label_49);\n\t\t\n\t\tJLabel label_50 = new JLabel(\"New label\");\n\t\tlabel_50.setBounds(490, 316, 50, 50);\n\t\tframe.getContentPane().add(label_50);\n\t\t\n\t\tJLabel label_51 = new JLabel(\"New label\");\n\t\tlabel_51.setBounds(430, 316, 50, 50);\n\t\tframe.getContentPane().add(label_51);\n\t\t\n\t\tJLabel label_52 = new JLabel(\"New label\");\n\t\tlabel_52.setBounds(370, 316, 50, 50);\n\t\tframe.getContentPane().add(label_52);\n\t\t\n\t\tJLabel label_53 = new JLabel(\"New label\");\n\t\tlabel_53.setBounds(310, 316, 50, 50);\n\t\tframe.getContentPane().add(label_53);\n\t\t\n\t\tJLabel label_54 = new JLabel(\"New label\");\n\t\tlabel_54.setBounds(250, 316, 50, 50);\n\t\tframe.getContentPane().add(label_54);\n\t\t\n\t\tJLabel label_55 = new JLabel(\"New label\");\n\t\tlabel_55.setBounds(190, 316, 50, 50);\n\t\tframe.getContentPane().add(label_55);\n\t\t\n\t\tJLabel label_56 = new JLabel(\"New label\");\n\t\tlabel_56.setBounds(130, 316, 50, 50);\n\t\tframe.getContentPane().add(label_56);\n\t\t\n\t\tJLabel label_57 = new JLabel(\"New label\");\n\t\tlabel_57.setBounds(70, 316, 50, 50);\n\t\tframe.getContentPane().add(label_57);\n\t\t\n\t\tJLabel label_58 = new JLabel(\"New label\");\n\t\tlabel_58.setBounds(10, 316, 50, 50);\n\t\tframe.getContentPane().add(label_58);\n\t\t\n\t\tJLabel label_59 = new JLabel(\"New label\");\n\t\tlabel_59.setBounds(10, 377, 50, 50);\n\t\tframe.getContentPane().add(label_59);\n\t\t\n\t\tJLabel label_60 = new JLabel(\"New label\");\n\t\tlabel_60.setBounds(70, 377, 50, 50);\n\t\tframe.getContentPane().add(label_60);\n\t\t\n\t\tJLabel label_61 = new JLabel(\"New label\");\n\t\tlabel_61.setBounds(130, 377, 50, 50);\n\t\tframe.getContentPane().add(label_61);\n\t\t\n\t\tJLabel label_62 = new JLabel(\"New label\");\n\t\tlabel_62.setBounds(190, 377, 50, 50);\n\t\tframe.getContentPane().add(label_62);\n\t\t\n\t\tJLabel label_63 = new JLabel(\"New label\");\n\t\tlabel_63.setBounds(250, 377, 50, 50);\n\t\tframe.getContentPane().add(label_63);\n\t\t\n\t\tJLabel label_64 = new JLabel(\"New label\");\n\t\tlabel_64.setBounds(310, 377, 50, 50);\n\t\tframe.getContentPane().add(label_64);\n\t\t\n\t\tJLabel label_65 = new JLabel(\"New label\");\n\t\tlabel_65.setBounds(370, 377, 50, 50);\n\t\tframe.getContentPane().add(label_65);\n\t\t\n\t\tJLabel label_66 = new JLabel(\"New label\");\n\t\tlabel_66.setBounds(430, 377, 50, 50);\n\t\tframe.getContentPane().add(label_66);\n\t\t\n\t\tJLabel label_67 = new JLabel(\"New label\");\n\t\tlabel_67.setBounds(490, 377, 50, 50);\n\t\tframe.getContentPane().add(label_67);\n\t\t\n\t\tJLabel label_68 = new JLabel(\"New label\");\n\t\tlabel_68.setBounds(550, 377, 50, 50);\n\t\tframe.getContentPane().add(label_68);\n\t\t\n\t\tJLabel label_69 = new JLabel(\"New label\");\n\t\tlabel_69.setBounds(10, 438, 50, 50);\n\t\tframe.getContentPane().add(label_69);\n\t\t\n\t\tJLabel label_70 = new JLabel(\"New label\");\n\t\tlabel_70.setBounds(70, 438, 50, 50);\n\t\tframe.getContentPane().add(label_70);\n\t\t\n\t\tJLabel label_71 = new JLabel(\"New label\");\n\t\tlabel_71.setBounds(130, 438, 50, 50);\n\t\tframe.getContentPane().add(label_71);\n\t\t\n\t\tJLabel label_72 = new JLabel(\"New label\");\n\t\tlabel_72.setBounds(190, 438, 50, 50);\n\t\tframe.getContentPane().add(label_72);\n\t\t\n\t\tJLabel label_73 = new JLabel(\"New label\");\n\t\tlabel_73.setBounds(250, 438, 50, 50);\n\t\tframe.getContentPane().add(label_73);\n\t\t\n\t\tJLabel label_74 = new JLabel(\"New label\");\n\t\tlabel_74.setBounds(310, 438, 50, 50);\n\t\tframe.getContentPane().add(label_74);\n\t\t\n\t\tJLabel label_75 = new JLabel(\"New label\");\n\t\tlabel_75.setBounds(370, 438, 50, 50);\n\t\tframe.getContentPane().add(label_75);\n\t\t\n\t\tJLabel label_76 = new JLabel(\"New label\");\n\t\tlabel_76.setBounds(430, 438, 50, 50);\n\t\tframe.getContentPane().add(label_76);\n\t\t\n\t\tJLabel label_77 = new JLabel(\"New label\");\n\t\tlabel_77.setBounds(490, 438, 50, 50);\n\t\tframe.getContentPane().add(label_77);\n\t\t\n\t\tJLabel label_78 = new JLabel(\"New label\");\n\t\tlabel_78.setBounds(550, 438, 50, 50);\n\t\tframe.getContentPane().add(label_78);\n\t\t\n\t\tJLabel label_79 = new JLabel(\"New label\");\n\t\tlabel_79.setBounds(10, 499, 50, 50);\n\t\tframe.getContentPane().add(label_79);\n\t\t\n\t\tJLabel label_80 = new JLabel(\"New label\");\n\t\tlabel_80.setBounds(70, 499, 50, 50);\n\t\tframe.getContentPane().add(label_80);\n\t\t\n\t\tJLabel label_81 = new JLabel(\"New label\");\n\t\tlabel_81.setBounds(130, 499, 50, 50);\n\t\tframe.getContentPane().add(label_81);\n\t\t\n\t\tJLabel label_82 = new JLabel(\"New label\");\n\t\tlabel_82.setBounds(190, 499, 50, 50);\n\t\tframe.getContentPane().add(label_82);\n\t\t\n\t\tJLabel label_83 = new JLabel(\"New label\");\n\t\tlabel_83.setBounds(250, 499, 50, 50);\n\t\tframe.getContentPane().add(label_83);\n\t\t\n\t\tJLabel label_84 = new JLabel(\"New label\");\n\t\tlabel_84.setBounds(310, 499, 50, 50);\n\t\tframe.getContentPane().add(label_84);\n\t\t\n\t\tJLabel label_85 = new JLabel(\"New label\");\n\t\tlabel_85.setBounds(370, 499, 50, 50);\n\t\tframe.getContentPane().add(label_85);\n\t\t\n\t\tJLabel label_86 = new JLabel(\"New label\");\n\t\tlabel_86.setBounds(430, 499, 50, 50);\n\t\tframe.getContentPane().add(label_86);\n\t\t\n\t\tJLabel label_87 = new JLabel(\"New label\");\n\t\tlabel_87.setBounds(490, 499, 50, 50);\n\t\tframe.getContentPane().add(label_87);\n\t\t\n\t\tJLabel label_88 = new JLabel(\"New label\");\n\t\tlabel_88.setBounds(550, 499, 50, 50);\n\t\tframe.getContentPane().add(label_88);\n\t\t\n\t\tJLabel label_89 = new JLabel(\"New label\");\n\t\tlabel_89.setBounds(10, 560, 50, 50);\n\t\tframe.getContentPane().add(label_89);\n\t\t\n\t\tJLabel label_90 = new JLabel(\"New label\");\n\t\tlabel_90.setBounds(70, 560, 50, 50);\n\t\tframe.getContentPane().add(label_90);\n\t\t\n\t\tJLabel label_91 = new JLabel(\"New label\");\n\t\tlabel_91.setBounds(130, 560, 50, 50);\n\t\tframe.getContentPane().add(label_91);\n\t\t\n\t\tJLabel label_92 = new JLabel(\"New label\");\n\t\tlabel_92.setBounds(190, 560, 50, 50);\n\t\tframe.getContentPane().add(label_92);\n\t\t\n\t\tJLabel label_93 = new JLabel(\"New label\");\n\t\tlabel_93.setBounds(250, 560, 50, 50);\n\t\tframe.getContentPane().add(label_93);\n\t\t\n\t\tJLabel label_94 = new JLabel(\"New label\");\n\t\tlabel_94.setBounds(310, 560, 50, 50);\n\t\tframe.getContentPane().add(label_94);\n\t\t\n\t\tJLabel label_95 = new JLabel(\"New label\");\n\t\tlabel_95.setBounds(370, 560, 50, 50);\n\t\tframe.getContentPane().add(label_95);\n\t\t\n\t\tJLabel label_96 = new JLabel(\"New label\");\n\t\tlabel_96.setBounds(430, 560, 50, 50);\n\t\tframe.getContentPane().add(label_96);\n\t\t\n\t\tJLabel label_97 = new JLabel(\"New label\");\n\t\tlabel_97.setBounds(490, 560, 50, 50);\n\t\tframe.getContentPane().add(label_97);\n\t\t\n\t\tJLabel label_98 = new JLabel(\"New \");\n\t\tlabel_98.setBounds(550, 560, 50, 50);\n\t\tframe.getContentPane().add(label_98);\n\t\tlabel_98.setBackground(Color.BLUE);\n\t\tlabel_98.setOpaque(true);\n\t\t\n\t\tlabel_97.setBackground(Color.BLUE);\n\t\tlabel_97.setOpaque(true);\n\t\t\n\t\t\n\t\t\n\t\t//lblNewLabel.setIcon(iconLogo);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\r\n public void start(Stage primaryStage){\n Image sunImage = new Image(\"file:sun.jpg\");\r\n Image mercuryImage = new Image(\"file:mercury.jpg\");\r\n Image venusImage = new Image(\"file:venus.jpg\");\r\n Image earthImage = new Image(\"file:earth.jpg\");\r\n Image marsImage = new Image(\"file:mars.jpg\");\r\n Image jupiterImage = new Image(\"file:jupiter.jpg\");\r\n Image saturnImage = new Image(\"file:saturn.jpg\");\r\n Image uranusImage = new Image(\"file:uranus.jpg\");\r\n Image neptuneImage = new Image(\"file:neptune.jpg\");\r\n Image plutoImage = new Image(\"file:pluto.jpg\");\r\n \r\n //create ImageView object\r\n ImageView imageView = new ImageView(sunImage);\r\n \r\n //resize ImageView, preserving aspect ratio\r\n imageView.setFitWidth(350);\r\n imageView.setPreserveRatio(true);\r\n \r\n //put ImageView into an HBox\r\n HBox imageHBox = new HBox(imageView);\r\n \r\n //center HBox contents\r\n imageHBox.setAlignment(Pos.CENTER);\r\n \r\n //create RadioButtons\r\n RadioButton sunRadio = new RadioButton(\"Sun\");\r\n RadioButton mercuryRadio = new RadioButton(\"Mercury\");\r\n RadioButton venusRadio = new RadioButton(\"Venus\");\r\n RadioButton earthRadio = new RadioButton(\"Earth\");\r\n RadioButton marsRadio = new RadioButton(\"Mars\");\r\n RadioButton jupiterRadio = new RadioButton(\"Jupiter\");\r\n RadioButton saturnRadio = new RadioButton(\"Saturn\");\r\n RadioButton uranusRadio = new RadioButton(\"Uranus\");\r\n RadioButton neptuneRadio = new RadioButton(\"Neptune\");\r\n RadioButton plutoRadio = new RadioButton(\"Pluto\");\r\n\r\n //select sunRadio control\r\n sunRadio.setSelected(true);\r\n \r\n //add radio buttons to a toggle group\r\n ToggleGroup radioGroup = new ToggleGroup();\r\n sunRadio.setToggleGroup(radioGroup);\r\n mercuryRadio.setToggleGroup(radioGroup);\r\n venusRadio.setToggleGroup(radioGroup);\r\n earthRadio.setToggleGroup(radioGroup);\r\n marsRadio.setToggleGroup(radioGroup);\r\n jupiterRadio.setToggleGroup(radioGroup);\r\n saturnRadio.setToggleGroup(radioGroup);\r\n uranusRadio.setToggleGroup(radioGroup);\r\n neptuneRadio.setToggleGroup(radioGroup);\r\n plutoRadio.setToggleGroup(radioGroup);\r\n \r\n //register ActionEvent handler\r\n sunRadio.setOnAction(event -> {\r\n imageView.setImage(sunImage);\r\n });\r\n //register an event handler\r\n mercuryRadio.setOnAction(event -> {\r\n imageView.setImage(mercuryImage);\r\n });\r\n //register an event handler\r\n venusRadio.setOnAction(event -> {\r\n imageView.setImage(venusImage);\r\n });\r\n //register an event handler\r\n earthRadio.setOnAction(event -> {\r\n imageView.setImage(earthImage);\r\n });\r\n //register an event handler\r\n marsRadio.setOnAction(event -> {\r\n imageView.setImage(marsImage);\r\n });\r\n //register an event handler\r\n jupiterRadio.setOnAction(event -> {\r\n imageView.setImage(jupiterImage);\r\n });\r\n //register an event handler\r\n saturnRadio.setOnAction(event -> {\r\n imageView.setImage(saturnImage);\r\n });\r\n //register an event handler\r\n uranusRadio.setOnAction(event -> {\r\n imageView.setImage(uranusImage);\r\n });\r\n //register an event handler\r\n neptuneRadio.setOnAction(event -> {\r\n imageView.setImage(neptuneImage);\r\n });\r\n //register an event handler\r\n plutoRadio.setOnAction(event -> {\r\n imageView.setImage(plutoImage);\r\n }); \r\n \r\n //add radio buttons to a VBox\r\n VBox radioVBox = new VBox(10, sunRadio, mercuryRadio, venusRadio, earthRadio, marsRadio, jupiterRadio, saturnRadio, uranusRadio, neptuneRadio, plutoRadio);\r\n \r\n //give radioVBox padding\r\n radioVBox.setPadding(new Insets(30) );\r\n \r\n //add everything to a VBox\r\n VBox mainVBox = new VBox(10, imageHBox, radioVBox);\r\n \r\n //create a scene with HBox as it's root node\r\n Scene scene = new Scene(mainVBox);\r\n \r\n //add scene to the stage\r\n primaryStage.setScene(scene);\r\n \r\n //show window\r\n primaryStage.show();\r\n }",
"@Override\n public void start(Stage primaryStage)\n throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {\n makeMainGrid();\n Scene myHomeScene = new Scene(myMainGrid, WINDOW_WIDTH, WINDOW_HEIGHT);\n primaryStage.setScene(myHomeScene);\n primaryStage.show();\n }",
"private void resultImgInit() {\n resultImgAndLoadingLayout.setX(cornerPositions.getLeftTop().x);\n resultImgAndLoadingLayout.setY(cornerPositions.getLeftTop().y);\n int wight = cornerPositions.getRightBottom().x - cornerPositions.getLeftTop().x + cornerImgSize;\n int height = cornerPositions.getRightBottom().y - cornerPositions.getLeftTop().y + cornerImgSize;\n resultImgAndLoadingLayout.setLayoutParams(new LayoutParams(wight, height));\n }",
"@FXML\n void goToChooseImagePage(ActionEvent event) {\n try {\n // Create a FXML loader for loading the choose image FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"Avatar.fxml\"));\n\n BorderPane chooseImagePage = (BorderPane) fxmlLoader.load();\n Scene chooseImagePageScene = new Scene(chooseImagePage, Main.LARGE_WINDOW_WIDTH, Main.LARGE_WINDOW_HEIGHT);\n Stage chooseImagePageStage = new Stage();\n\n chooseImagePageStage.setScene(chooseImagePageScene);\n chooseImagePageStage.setTitle(Main.CHOOSE_IMAGE_PAGE_WINDOW_TITLE);\n chooseImagePageStage.initModality(Modality.APPLICATION_MODAL);\n // Show the choose image scene and wait for it to be closed\n chooseImagePageStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }"
] | [
"0.6497404",
"0.6374187",
"0.6257741",
"0.6150707",
"0.612244",
"0.6113312",
"0.60479873",
"0.59872395",
"0.5964207",
"0.5963839",
"0.59576327",
"0.5935288",
"0.592292",
"0.58953637",
"0.5892699",
"0.5879799",
"0.5853727",
"0.5850767",
"0.58380234",
"0.5830649",
"0.5817167",
"0.58103526",
"0.5795698",
"0.5767018",
"0.5754335",
"0.5743952",
"0.5742856",
"0.5688858",
"0.5683389",
"0.5680412",
"0.5665799",
"0.5660499",
"0.5659937",
"0.565911",
"0.56525296",
"0.5645914",
"0.56429476",
"0.5640174",
"0.5629139",
"0.56284255",
"0.56199837",
"0.560508",
"0.55916286",
"0.55906206",
"0.55792105",
"0.557025",
"0.556806",
"0.55549973",
"0.5540643",
"0.5539743",
"0.55393827",
"0.5530674",
"0.5528282",
"0.55278695",
"0.55208635",
"0.54905593",
"0.5484695",
"0.54730636",
"0.5472048",
"0.547156",
"0.5466874",
"0.5458076",
"0.54510856",
"0.5442907",
"0.54409605",
"0.54341376",
"0.54337126",
"0.5429378",
"0.54287547",
"0.5411643",
"0.5410004",
"0.5409838",
"0.539406",
"0.53880584",
"0.53844213",
"0.5383868",
"0.5382291",
"0.5377557",
"0.53707725",
"0.53638077",
"0.5352139",
"0.5345733",
"0.53405416",
"0.53225696",
"0.5318449",
"0.53179795",
"0.53101003",
"0.5301959",
"0.5292796",
"0.52897805",
"0.5289303",
"0.52892613",
"0.52876437",
"0.5282657",
"0.52813965",
"0.52804774",
"0.5277729",
"0.5277335",
"0.52723396",
"0.5271748"
] | 0.56717616 | 30 |
This method creates url connection for loading image through URL. | private Image establishConnection(String url) throws IOException {
String imgUrl = url;
URLConnection connection = new URL(imgUrl).openConnection();
connection.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0");
Image image = new Image(connection.getInputStream());
return image;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Bitmap LoadImage(String URL, BitmapFactory.Options options) {\r\n Bitmap bitmap = null;\r\n InputStream in = null;\r\n try {\r\n in = OpenHttpConnection(URL);\r\n bitmap = BitmapFactory.decodeStream(in, null, options);\r\n in.close();\r\n } catch (IOException e1) {\r\n }\r\n return bitmap;\r\n }",
"abstract public String imageUrl ();",
"Bitmap ObtenerImagen(URL imageUrl){\n HttpURLConnection conn = null;\n Bitmap imagen=null;\n try {\n conn = (HttpURLConnection) imageUrl.openConnection();\n conn.connect();\n imagen = BitmapFactory.decodeStream(conn.getInputStream());\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n return imagen;\n }",
"public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}",
"@Override\n protected Bitmap doInBackground(String... urls) {\n try {\n URL myFileUrl = new URL(urls[0]);\n HttpURLConnection conn = (HttpURLConnection) myFileUrl.openConnection();\n conn.setDoInput(true);\n conn.connect();\n InputStream is = conn.getInputStream();\n\n bmImg = BitmapFactory.decodeStream(is);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return bmImg;\n }",
"public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }",
"private Bitmap loadImageFromNetwork(String url) {\n Bitmap bm = null;\n try {\n URL urln = new URL(url);\n Log.i(\"load\", url);\n Log.i(\"load\", \"loading Image...\");\n bm = BitmapFactory.decodeStream(urln.openConnection().getInputStream());\n Log.i(\"load\", \"done\");\n } catch (IOException e) {\n Log.e(\"HUE\",\"Error downloading the image from server : \" + e.getMessage().toString());\n } \n return bm;\n }",
"void setImageFromURL(String imageURL);",
"private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }",
"Builder addImage(URL value);",
"static Image forUrl(String imageType, String url) {\n\t\treturn () -> {\n\t\t\ttry {\n\t\t\t\tURLConnection urlConnection = new URL(url).openConnection();\n\t\t\t\turlConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\");\n\t\t\t\tInputStream stream = urlConnection.getInputStream();\n\t\t\t\treturn forStream(imageType, stream).getData();\n\t\t\t} catch (IOException e) {\n\t\t\t\tDiscord4J.LOGGER.error(LogMarkers.UTIL, \"Discord4J Internal Exception\", e);\n\t\t\t}\n\t\t\treturn defaultAvatar().getData();\n\t\t};\n\t}",
"private void loadImage(final String url) {\n\t\tnew AsyncTask<Void, Void, Drawable>() {\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(Void... none) {\n\t\t\t\treturn NetHelper.getDrawableFromUrl(url);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Drawable drawable) {\n\t\t\t\tImageView thumbnail = (ImageView) findViewById(R.id.details_image_view_thumbnail);\n\t\t\t\tthumbnail.setImageDrawable(drawable);\n\t\t\t}\n\t\t}.execute();\n\t}",
"protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }",
"private void loadImage(URL url) {\n //do resource intensive operation to load image\n }",
"private Bitmap loadImageFromNetwork(String url) {\n try {\n InputStream is = new DefaultHttpClient().execute(new HttpGet(url))\n .getEntity().getContent();\n return BitmapFactory.decodeStream(is);\n } catch (Exception e) {\n return null;\n }\n }",
"private Bitmap downloadImage(String url) {\n Bitmap bitmap = null;\n InputStream stream = null;\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inSampleSize = 1;\n\n try {\n stream = getHttpConnection(url);\n bitmap = BitmapFactory.decodeStream(stream, null, bmOptions);\n stream.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return bitmap;\n }",
"private Bitmap downloadImage(String url)\n \t {\n \n \t Bitmap bitmap = null;\n \t InputStream stream = null;\n \t BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n \t bmOptions.inSampleSize = 1;\n \n \t try\n \t {\n \t stream = getHttpConnection(url);\n \t bitmap = BitmapFactory.decodeStream(stream, null, bmOptions);\n \t stream.close();\n \n \t return bitmap;\n \t }\n \t catch (IOException e1)\n \t {\n \t e1.printStackTrace();\n \t }\n \t return bitmap;\n \t }",
"private static Bitmap downloadImage(String url) {\n Bitmap bitmap = null;\n InputStream stream = null;\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inSampleSize = 1;\n\n try {\n stream = getHttpConnection(url);\n bitmap = BitmapFactory.\n decodeStream(stream, null, bmOptions);\n stream.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return bitmap;\n }",
"private static Bitmap downloadImageTask(String src) {\n try {\n URL url = new URL(src);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n Log.i(LOG_TAG, \"won: \" + myBitmap);\n return myBitmap;\n } catch (IOException e) {\n Log.e(LOG_TAG, \"error while making book cover\", e);\n e.printStackTrace();\n return null;\n }\n }",
"private static Bitmap readImageUrl(String urlString) {\n\n // Create an empty bitmap image\n Bitmap image = null;\n\n try {\n // Create and open an inputStream on the urlString\n InputStream in = new java.net.URL(urlString).openStream();\n\n // Decode the inputStream and set that to the bitmap image\n image = BitmapFactory.decodeStream(in);\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error reading image url: \" + e);\n }\n\n // Return the image\n return image;\n }",
"@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }",
"public Bitmap getBitmapFromURL(String src){\n try{\n URL url = new URL(src);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap bitmap = BitmapFactory.decodeStream(input);\n return bitmap;\n }catch(IOException e){\n e.printStackTrace();\n return null;\n }\n }",
"public String getImageUrl();",
"public ImageLoadTask(String url, ImageView imageView) {\n this.url = url;\n this.imageView = imageView;\n this.finish = false;\n }",
"public homegallery(String image_url)\n {\n this.image_url=image_url;\n }",
"public Bitmap getBitmapfromUrl(String imageUrl) {\r\n try {\r\n URL url = new URL(imageUrl);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setDoInput(true);\r\n connection.connect();\r\n InputStream input = connection.getInputStream();\r\n Bitmap bitmap = BitmapFactory.decodeStream(input);\r\n return bitmap;\r\n } catch (Exception e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }",
"private ImageDownloader(){ \t\n \n }",
"public String getImageURL() \r\n\t{\r\n\t\t\r\n\t\treturn imageURL;\r\n\t\t\r\n\t}",
"private Bitmap loadImageFromUrl(final String url) {\n try {\n // Addresses bug in SDK :\n // http://groups.google.com/group/android-developers/browse_thread/thread/4ed17d7e48899b26/\n BufferedInputStream bis = new BufferedInputStream(new URL(url).openStream(), BUFFER_IO_SIZE);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n BufferedOutputStream bos = new BufferedOutputStream(baos, BUFFER_IO_SIZE);\n copy(bis, bos);\n bos.flush();\n return BitmapFactory.decodeByteArray(baos.toByteArray(), 0, baos.size());\n } \n catch (IOException e) {\n // handle it properly\n \treturn null;\n }\n }",
"public Image getImage(URL paramURL, String paramString) {\n/* */ try {\n/* 298 */ return getImage(new URL(paramURL, paramString));\n/* 299 */ } catch (MalformedURLException malformedURLException) {\n/* 300 */ return null;\n/* */ } \n/* */ }",
"@Override\n protected Bitmap doInBackground(String... params) {\n imageUrl = params[0];\n ImageView thumbnail = imageViewReference.get();\n try {\n InputStream is = (InputStream) new URL(imageUrl).getContent();\n Bitmap bitmap = ImageCommons.decodeSampledBitmapFromInputStream(is, thumbnail.getWidth(), thumbnail.getHeight());\n addBitmapToMemoryCache(imageUrl, bitmap);\n return bitmap;\n } catch (IOException e) {\n e.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n Log.d(\"myLog\", getClass().getSimpleName() + \" Erro ao fazer download de imagem\");\n return ImageCommons.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_launcher, 70, 70);\n }",
"@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}",
"public Photo(String url){\n tags = new ArrayList<>();\n caption = \"\";\n //this.url = Uri.parse(url);\n this.urlString = url;\n }",
"public Bitmap getBitmapFromURL(String src) {\n try {\n\n java.net.URL url = new java.net.URL(src);\n HttpURLConnection connection = (HttpURLConnection) url\n .openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n\n return myBitmap;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"private InputStream getHttpConnection(String urlString)\n throws IOException {\n InputStream stream = null;\n URL url = new URL(urlString);\n URLConnection connection = url.openConnection();\n\n try {\n HttpURLConnection httpConnection = (HttpURLConnection) connection;\n httpConnection.setDoInput(true);\n httpConnection.setRequestMethod(\"POST\");\n httpConnection.setDoOutput(true);\n httpConnection.setRequestProperty(\"Content-Type\", \"image/jpeg\");\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(byteArray);\n outputStream.close();\n httpConnection.connect();\n\n if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n stream = httpConnection.getInputStream();\n }\n } catch (Exception ex) {\n didTaskFail = true;\n ex.printStackTrace();\n }\n return stream;\n }",
"@Override\n \n \n public void initialize(URL url, ResourceBundle rb) {\n retornararImg();\n\n }",
"public Bitmap getBitmapFromURL(String src) {\n try {\n Log.i(TAG,\"GetbitmapfromURL src \" + src);\n URL url = new URL(src);\n URLConnection connection = (URLConnection) url.openConnection();\n connection.connect();\n Log.i(TAG,\"bitmap returned\");\n return BitmapFactory.decodeStream(new BufferedInputStream(connection.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(TAG,\"exception thrown getting bitmap url\");\n return null;\n }\n }",
"public void saveImageFromURL() {\n Executors.newFixedThreadPool(1).execute(new Runnable() {\n @Override\n public void run() {\n if (context != null) {\n OutputStream os = null;\n InputStream is = null;\n final File file = new File(context.getExternalFilesDir(null), pictureName);\n\n try {\n URL url = new URL(loadUrl);\n httpConnection = (HttpURLConnection) url.openConnection();\n httpConnection.setDoInput(true);\n httpConnection.connect();\n is = httpConnection.getInputStream();\n Bitmap bit = BitmapFactory.decodeStream(is);\n os = new FileOutputStream(file);\n bit.compress(compressFormat, compressPercent, os);\n is.close();\n os.close();\n httpConnection.disconnect();\n } catch (IOException e) {\n Log.w(\"ExternalStorage\", \"Error writing \" + file, e);\n } finally {\n if (httpConnection != null) {\n httpConnection.disconnect();\n try {\n os.flush();\n os.close();\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n });\n }",
"public Bitmap getBitmapFromURL(String strURL) {\n try {\n URL url = new URL(strURL);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n return myBitmap;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }",
"protected Bitmap doInBackground(String...urls){\n String urlOfImage = urls[0];\n Bitmap logo = null;\n try{\n InputStream is = new URL(urlOfImage).openStream();\n /*\n decodeStream(InputStream is)\n Decode an input stream into a bitmap.\n */\n logo = BitmapFactory.decodeStream(is);\n }catch(Exception e){ // Catch the download exception\n e.printStackTrace();\n }\n return logo;\n }",
"public Bitmap downloadImage(String theUrl){ \n\t \t//Log.i(\"ZZ\", \"AppDelegate downloadImage: \" + theUrl); \n\t \tdownloadInProgress = 1;\n\t InputStream in = null; \n\t \tBitmap bitmap = null;\n\t try{\n\t \tin = Obj_Downloader.OpenHttpConnection(theUrl);\n\t\t bitmap = BitmapFactory.decodeStream(in);\n\t }catch (Exception e) {\n \tLog.i(\"ZZ\", \"AppDelegate:downloadImage: ERROR: \" + e.getMessage()); \n\t //return null;\n\t }\n\t downloadInProgress = 0;\n\t return bitmap; \n\t }",
"public interface ImageDownloader {\n\n /**\n * Load the image from the URL into the image view resizing it if necessary.\n * @param imageURL Image URL.\n * @param imageView ImageView reference to load the image into.\n */\n void downloadImage(String imageURL, ImageView imageView);\n\n}",
"Builder addThumbnailUrl(URL value);",
"@Override\n\tprotected Bitmap doInBackground(URL... urls) {\n\t\t\n\t try {\n\t \tHttpURLConnection connection = (HttpURLConnection) urls[0].openConnection();\n\t \tconnection.setDoInput(true);\n\n\t\t\tconnection.connect();\n\n\t\t\tInputStream input;\n\n\t\t\tinput = connection.getInputStream();\n\t\t Bitmap bitmap = BitmapFactory.decodeStream(input);\n\t\t\treturn bitmap;\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t}",
"@Override\n protected String doInBackground(String... params) {\n bitmap = DownloadImageBitmap(url);\n return null;\n }",
"protected Drawable doInBackground(String... url) {\n try {\n\t\t\tInputStream is = (InputStream) new URL(url[0]).getContent();\n\t\t\tDrawable d = Drawable.createFromStream(is, \"src\");\n\t\t\treturn d;\n\t\t} \n\t\t\t\t\n\t\tcatch (Exception e) {\n\t\t\t//do nothing\n\t\t\treturn null;\n\t\t}\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n Image img = new Image(\"/circle/my_image.jpg\");\n circle.setFill(new ImagePattern(img));\n }",
"@Override\n public String getImageLink() {\n return imageLink;\n }",
"public void setSource(URL url) throws IOException {\n\t\tFile f = new File(url.getFile());\n\t\tif (f.isAbsolute()) {\n\t\t\tsourceFile = url;\n\t\t\timg = ImageIO.read(f);\n\t\t\tthis.isRelativePath = false;\n\t\t} else {\n\t\t\tsourceFile = new URL(SymbologyFactory.SymbolLibraryPath\n\t\t\t\t\t+ File.separator + f.getPath());\n\t\t\timg = ImageIO.read(f);\n\t\t\tthis.isRelativePath = true;\n\t\t}\n\t}",
"public static Drawable LoadImageFromWebOperations(String url, File cacheDir) {\n\t\ttry {\n\t\t\tDrawable d = null;\n\t\t\tString[] urlDir = url.split(\"/\");\n\t\t\tint sizeMax=600;\n\t\t\ttry {\n\t\t\t\t// File cacheDir = new File(ruta+File.separator+ urlDir[8]);\n\t\t\t\tif (!cacheDir.exists()) {\n\t\t\t\t\tcacheDir.mkdirs();\n\n\t\t\t\t}\n\t\t\t\tFile cacheDirName = new File(cacheDir + File.separator\n\t\t\t\t\t\t+ urlDir[urlDir.length - 1]);\n\n\t\t\t\tif (!cacheDirName.exists() || cacheDirName.length() == 0) {\n\t\t\t\t\tcacheDirName.createNewFile();\n\t\t\t\t\tInputStream is = (InputStream) new URL(url).getContent();\n\t\t\t\t\tBitmap bit = BitmapFactory.decodeStream(is);\n\t\t\t\t\t//Alto\n\t\t\t\t\tBitmap bit2=null;\n\t\t\t\t\tFileOutputStream fo = new FileOutputStream(cacheDirName);\n\t\t\t\t\t// Drawable d = Drawable.createFromStream(is, \"src name\");\n\t\t\t\t\tif(bit.getHeight()>sizeMax){\n\t\t\t\t\t\tbit2=Bitmap.createScaledBitmap(bit,(sizeMax*bit.getWidth()/bit.getHeight()), sizeMax, false);\n\t\t\t\t\t\tbit2.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}else if(bit.getWidth()>sizeMax){\n\t\t\t\t\t\tbit2=Bitmap.createScaledBitmap(bit,sizeMax, (sizeMax* bit.getHeight()/bit.getWidth()), false);\n\t\t\t\t\t\tbit2.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbit.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}\n\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Url: \"+cacheDir + File.separator\n\t\t\t\t\t\t\t+ urlDir[urlDir.length - 1]);\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Ancho y alto: \"+(bit.getWidth()+\" \"+bit.getHeight()));\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Size1: \"+(bit.getRowBytes()*bit.getHeight()));\n\t\t\t\t\tbit.recycle();\n\t\t\t\t\tif(bit2!=null){\n\t\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Size2: \"+(bit2.getRowBytes()*bit2.getHeight()));\n\t\t\t\t\t\tbit2.recycle();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.gc();\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t\td = Drawable.createFromPath(cacheDirName.getPath());\n\t\t\t} catch (OutOfMemoryError e) {\n\t\t\t\tSystem.gc();\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t}\n\t\t\t//\n\n\t\t\treturn d;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"DataURL(String protocol){\n super(protocol);\n }",
"private Connection createConnection(URL url)\n throws IOException, LpException {\n HttpURLConnection connection = createHttpConnection(url);\n if (task.getContent().isEmpty()) {\n return wrapConnection(connection);\n }\n if (task.isPostContentAsBody()) {\n LOG.debug(\"Adding body ...\");\n if (task.getContent().size() == 1) {\n return wrapPostBody(connection, task.getContent().get(0));\n } else {\n throw new LpException(\"POST with body \"\n + \"can be used only with a single content file. \"\n + \"Task: {}\",\n task.getIri());\n }\n }\n LOG.debug(\"Wrapping as a multipart ...\");\n return wrapMultipart(connection, task);\n\n }",
"protected HTTPConnection getConnectionToURL(URL url) throws ProtocolNotSuppException\r\n {\r\n\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n\r\n if (proxyRequired)\r\n {\r\n con.addBasicAuthorization(proxyRealm, proxyName, proxyPswd);\r\n }\r\n\r\n return (con);\r\n }",
"public ImageModel(final String url, final String width, final String height) {\n if (url != null) {\n this.url = url;\n }\n this.height = height;\n this.width = width;\n }",
"public String getThumbnailUrl();",
"public Bitmap loadImage(String coverUrl) {\r\n\t\tBitmap img = null;\r\n\t\t//File file = new File(filePath);\r\n\t\ttry {\r\n\t\t\t// set the download URL, a url that points to a file on the internet\r\n\t\t\t// this is the file to be downloaded\r\n\t\t\tURL url = new URL(coverUrl);\r\n\r\n\t\t\t// create the new connection\r\n\t\t\tHttpURLConnection urlConnection = (HttpURLConnection) url\r\n\t\t\t\t\t.openConnection();\r\n\r\n\t\t\t// set up some things on the connection\r\n\t\t\turlConnection.setRequestMethod(\"GET\");\r\n\t\t\turlConnection.setDoOutput(true);\r\n\r\n\t\t\t// and connect!\r\n\t\t\turlConnection.connect();\r\n\r\n\t\t\t// this will be used in reading the data from the internet\r\n\t\t\tInputStream inputStream = urlConnection.getInputStream();\r\n\t\t\timg = BitmapFactory.decodeStream(inputStream);\r\n\t inputStream.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\r\n\t\t}\r\n\t\treturn img;\r\n\t}",
"@Override\n protected Bitmap doInBackground(Void... params) {\n\n try {\n final String USER_IMAGE_URL = Network.forDeploymentIp + \"meetmeup/uploads/users/\" + this.filename;\n\n Log.d(\"Image\", USER_IMAGE_URL);\n\n URLConnection connection = new URL(USER_IMAGE_URL).openConnection();\n connection.setConnectTimeout(1000 * 30);\n\n return BitmapFactory.decodeStream((InputStream) connection.getContent(), null, null);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public String getImageURL()\n\t{\n\t\treturn imageURL;\n\t}",
"protected Bitmap doInBackground(String... urls) {\n URL url = null;\n try {\n url = new URL(urls[0]);\n isFrom = urls[1];\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection connection = null;\n\n try {\n // Initialize a new http url connection\n connection = (HttpURLConnection) url.openConnection();\n\n // Connect the http url connection\n connection.connect();\n\n // Get the input stream from http url connection\n InputStream inputStream = connection.getInputStream();\n\n BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);\n\n Bitmap bmp = BitmapFactory.decodeStream(bufferedInputStream);\n //setImageSize(bmp);\n // Return the downloaded bitmap\n return bmp;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n // Disconnect the http url connection\n connection.disconnect();\n }\n return null;\n }",
"protected Bitmap doInBackground(String...urls){\n String urlOfImage = urls[0];\n Bitmap logo = null;\n try{\n InputStream is = new URL(urlOfImage).openStream();\n /*\n decodeStream(InputStream is)\n Decode an input stream into a bitmap.\n */\n logo = BitmapFactory.decodeStream(is);\n\n }catch(Exception e){ // Catch the download exception\n e.printStackTrace();\n }\n return logo;\n }",
"@Override\n\tprotected Bitmap doInBackground(String... urls) {\n\t\tString httpUrl = urls[0];\n\t\tBitmap tmpBitmap = null;\n\t\ttry {\n\t\t\tURL url = new URL(httpUrl); \n HttpURLConnection conn= (HttpURLConnection) url.openConnection(); \n conn.setRequestMethod(\"GET\"); \n conn.setConnectTimeout(5*1000);\n conn.setReadTimeout(5*1000);\n conn.connect(); \n if (conn.getResponseCode()==200) {\n \tInputStream in=conn.getInputStream(); \n ByteArrayOutputStream bos=new ByteArrayOutputStream(); \n byte[] buffer=new byte[1024]; \n int len = 0; \n while((len=in.read(buffer))!=-1){ \n bos.write(buffer,0,len); \n } \n byte[] dataImage=bos.toByteArray(); \n bos.close(); \n in.close(); \n BitmapFactory.Options options=new BitmapFactory.Options();\n options.inSampleSize = 10;\n tmpBitmap=BitmapFactory.decodeByteArray(dataImage, 0, dataImage.length);\n if (tmpBitmap==null) {\n \t\t\tResources res = MainActivity.mainActivity.getResources();\n \t\t\ttmpBitmap = BitmapFactory.decodeResource(res, R.drawable.default_image_top);\n \t\t\treturn tmpBitmap;\n }\n\t\t\t}\n else {\n \tResources res = MainActivity.mainActivity.getResources();\n \t\t\ttmpBitmap = BitmapFactory.decodeResource(res, R.drawable.default_image_top);\n \t\t\treturn tmpBitmap;\n\t\t\t}\n \n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tLog.i(\"test\", e.getMessage());\n\t\t}\n\t\treturn tmpBitmap;\n\t}",
"public static Bitmap getBitmapFromUrl(String imageUrl) {\n\n try {\n\n URL url = new URL(imageUrl);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n return BitmapFactory.decodeStream(input);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }",
"private Drawable creaImmagineDaUrl(String urlImmagine)\n {\n try\n {\n InputStream is = (InputStream) new URL(urlImmagine).getContent();\n Drawable d = Drawable.createFromStream(is, null);\n return d;\n }catch (Exception e) {\n System.out.println(\"Exc=\"+e);\n return null;\n }\n }",
"@BindingAdapter(\"bind:imageUrl\")\n public static void setImageUrl(ImageView imageView, String url) {\n Context context = imageView.getContext();\n Glide.with( context ).load( url ).into( imageView );\n }",
"@Override\n public URL getHtmlUrl() throws MalformedURLException {\n URL endpoint = new URL(this.avatarUrl);\n String protocol = this.avatarUrl.startsWith(\"https://\") ? \"https://\" : \"http://\";\n return new URL(protocol + endpoint.getHost() + \":\" + endpoint.getPort() + \"/\" + this.name);\n }",
"public Uri getImageLink(String type){\r\n return Uri.parse(\"https://graph.facebook.com\" + getImage() + \"?type=\" + type);\r\n }",
"@Override\n protected Bitmap doInBackground(Void... arg0) {\n try {\n return bitmapLoader.load(getApplicationContext(), new int[]{metrics.widthPixels, metrics.heightPixels}, strImageUrl);\n } catch (Exception e) {\n return null;\n }\n }",
"@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }",
"public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }",
"private void loadImage(String imagePath) {\n //Loading image from below url into imageView\n imageFile = new File(imagePath);\n Glide.with(getApplicationContext())\n .load(imagePath)\n .transition(DrawableTransitionOptions.withCrossFade(300))\n .into(imageView);\n }",
"java.lang.String getPictureUri();",
"public abstract String getURL();",
"URL toURL() throws IOException;",
"private static Bitmap readBitmapFromNetwork(URL url)\n {\n InputStream is = null;\n BufferedInputStream bis = null;\n Bitmap bmp = null;\n try\n {\n URLConnection conn = url.openConnection();\n conn.connect();\n is = conn.getInputStream();\n bis = new BufferedInputStream(is);\n bmp = BitmapFactory.decodeStream(bis);\n }\n catch (MalformedURLException e)\n {\n Log.e(TAG, \"Bad ad URL\", e);\n }\n catch (IOException e)\n {\n Log.e(TAG, \"Could not get remote image\", e);\n }\n finally\n {\n try\n {\n if (is != null) is.close();\n if (bis != null) bis.close();\n }\n catch (IOException e)\n {\n Log.w(TAG, \"Error closing stream.\");\n }\n }\n return bmp;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n lbTitulo.setText(cancion.getTitulo());\n lbAlbum.setText(cancion.getAlbum());\n imgPortada.setImage(Utilerias.byteToImage(cancion.getImagenAlbum()));\n imgPortada1.setOnMouseClicked(e->{\n parent.cargarDatosCancion(cancion);\n });\n }",
"public void saveImage(){\n new Thread() {\n public void run() {\n String image_url = stuffRoomInfo.getStuffLink();\n Log.i(\"OGT\", \"image_url:in showImage \" + image_url);\n getOGTag(image_url);\n // Display a png image from the specified file\n ImageUrlSendServer();\n }\n }.start();\n }",
"public String getUrlImagen(){\n\t\treturn urlImagen;\n\t}",
"public String getPictureUrl()\n\t{\n\t\treturn \"http://cdn-0.nflximg.com/us/headshots/\" + id + \".jpg\";\n\t}",
"@Override\n\tpublic String imageGroup(String url, QueryBean param) throws IOException {\n\t\treturn new HttpUtil().getHttp(url + param.toString());\n\t}",
"void setImageLocation(URL imageLocation) throws IOException;",
"public static InputStream getHttpConnection(String urlString) throws IOException {\n\n InputStream stream = null;\n URL url = new URL(urlString);\n URLConnection connection = url.openConnection();\n\n try {\n HttpURLConnection httpConnection = (HttpURLConnection) connection;\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.connect();\n\n if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n stream = httpConnection.getInputStream();\n }\n }\n catch (Exception ex) {\n ex.printStackTrace();\n System.out.println(\"downloadImage\" + ex.toString());\n }\n return stream;\n }",
"static String getImageUrl(final FlickrImage flickrImage) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"farm\" + flickrImage.getFarm() + \".static.flickr.com\")\n .appendPath(flickrImage.getServer())\n .appendPath(flickrImage.getFlickrId() + \"_\" + flickrImage.getSecret() + \".jpg\");\n\n return builder.build().toString();\n }",
"@BindingAdapter({ \"productimageurl\" })\n public static void loadImage(ImageView imageView, String imageURL) {\n Glide.with(imageView.getContext())\n .load(imageURL)\n .placeholder(R.drawable.bisleri_bottle_img)\n .into(imageView);\n }",
"Uri getUrl();",
"public static Bitmap downloadImage(String url) {\n Bitmap bitmap = null;\n\n InputStream stream = getHttpConnection(url);\n if(stream!=null) {\n bitmap = BitmapFactory.decodeStream(stream);\n try {\n stream.close();\n }catch (IOException e1) {\n Log.d(\"MyDebugMsg\", \"IOException in downloadImage()\");\n e1.printStackTrace();\n }\n }\n\n return bitmap;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n photo.setImage(new Image(\"/Image/photobtn.png\"));\n KING.setImage(new Image(\"/Image/king-8.png\"));\n validerbtn.setImage(new Image(\"/Image/validerbtn.png\"));\n retourbtn.setImage(new Image(\"/Image/retour-8.png\"));\n bgimg.setImage(new Image(\"/Image/bgmain.png\"));\n }",
"public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }",
"private Image getImage(String url) {\r\n\t\ttry {\r\n\t\t\treturn ImageIO.read(new URL(url));\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"protected abstract Image loadImage();",
"private Bitmap loadAndCacheBitmap(File cacheFile, String url) {\n File tempFile = new File(cacheFile.getPath() + \"temp_file\");\n Bitmap bitmap = null;\n HttpURLConnection connection = null;\n OutputStream tempOs = null;\n OutputStream cacheOs = null;\n\n try {\n URL imageUrl = new URL(url);\n\n // Create connection\n connection = (HttpURLConnection) imageUrl.openConnection();\n connection.setConnectTimeout(CONNECTION_TIMEOUT);\n connection.setReadTimeout(CONNECTION_TIMEOUT);\n connection.setInstanceFollowRedirects(true);\n\n // Save image to temp file\n InputStream is = connection.getInputStream();\n tempOs = new FileOutputStream(tempFile);\n StreamUtils.copy(is, tempOs);\n\n Log.d(\"HIHO\", \"bitmap from web\");\n\n // Decode and scale image to reduce memory consumption\n bitmap = decodeAndScale(tempFile);\n\n // Save scaled bitmap to cache file\n cacheOs = new FileOutputStream(cacheFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, cacheOs);\n\n } catch (IOException e) {\n Log.e(TAG, \"Error while image was loaded and stored\", e);\n // Remove cached file if something go wrong\n cacheFile.delete();\n } finally {\n StreamUtils.closeQuietly(tempOs);\n StreamUtils.closeQuietly(cacheOs);\n // Remove temp file\n tempFile.delete();\n if (connection != null) connection.disconnect();\n }\n\n return bitmap;\n }",
"public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }",
"private void initConnection() throws MalformedURLException, IOException {\n httpConnection = (HttpURLConnection) new URL(initUrlParameter())\n .openConnection();\n httpConnection.setDoOutput(true);\n httpConnection.setDoInput(true);\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n httpConnection.setRequestProperty(\"Authorization\",\n authentificator.generateBasicAuthorization());\n\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n// Image image = new Image(\"/Icons/communication.jpg\");\r\n// ImageView iv = new ImageView();\r\n// imgA.setImage(image);\r\n }",
"public BufferedImage create(URL source, Dimension maxSize) {\n\t\treturn create(new URLImageSource(source), maxSize);\n\t}",
"public void setImageUrl(String url){\n\n Glide.with(getContext()).load(url)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(ivImg);\n }",
"protected Bitmap doInBackground(URL...urls){\n URL url = urls[0];\n HttpURLConnection connection = null;\n\n try{\n // Initialize a new http url connection\n connection = (HttpURLConnection) url.openConnection();\n\n // Connect the http url connection\n connection.connect();\n\n // Get the input stream from http url connection\n InputStream inputStream = connection.getInputStream();\n\n /*\n BufferedInputStream\n A BufferedInputStream adds functionality to another input stream-namely,\n the ability to buffer the input and to support the mark and reset methods.\n */\n /*\n BufferedInputStream(InputStream in)\n Creates a BufferedInputStream and saves its argument,\n the input stream in, for later use.\n */\n // Initialize a new BufferedInputStream from InputStream\n BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);\n\n /*\n decodeStream\n Bitmap decodeStream (InputStream is)\n Decode an input stream into a bitmap. If the input stream is null, or\n cannot be used to decode a bitmap, the function returns null. The stream's\n position will be where ever it was after the encoded data was read.\n\n Parameters\n is InputStream : The input stream that holds the raw data\n to be decoded into a bitmap.\n Returns\n Bitmap : The decoded bitmap, or null if the image data could not be decoded.\n */\n // Convert BufferedInputStream to Bitmap object\n Bitmap bmp = BitmapFactory.decodeStream(bufferedInputStream);\n\n // Return the downloaded bitmap\n return bmp;\n\n }catch(IOException e){\n e.printStackTrace();\n } finally{\n // Disconnect the http url connection\n connection.disconnect();\n }\n return null;\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tBitmap bitmap = getImageFromLocal(imgPath);\n\t\t\t\tif (bitmap == null) {\n\t\t\t\t\tloadImgByNet(handler, imgUrl, imgPath);\n\t\t\t\t} else {\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.obj = bitmap;\n\t\t\t\t\tmsg.what = IMG_FROM_LOCAL;\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}\n\t\t\t}",
"public String getImgUrl() {\r\n return imgUrl;\r\n }"
] | [
"0.65175456",
"0.65088546",
"0.6440622",
"0.6274939",
"0.6270831",
"0.62471306",
"0.61924773",
"0.618844",
"0.6125292",
"0.60966855",
"0.6073601",
"0.60359925",
"0.60358405",
"0.60272425",
"0.6006557",
"0.5971747",
"0.59623",
"0.5927172",
"0.59186196",
"0.589635",
"0.58954644",
"0.5887672",
"0.58551174",
"0.5846659",
"0.58287406",
"0.582752",
"0.5812787",
"0.5802336",
"0.5796939",
"0.57931674",
"0.5791319",
"0.57719547",
"0.5757305",
"0.57534796",
"0.57324606",
"0.57229376",
"0.57222724",
"0.57210565",
"0.5714416",
"0.5705143",
"0.56954235",
"0.56953347",
"0.5687493",
"0.567496",
"0.5666162",
"0.56639147",
"0.566154",
"0.5644385",
"0.5620198",
"0.56195825",
"0.56077343",
"0.5605491",
"0.560181",
"0.56017447",
"0.5596355",
"0.5594811",
"0.5579551",
"0.5568048",
"0.5563727",
"0.5557764",
"0.5543244",
"0.5539988",
"0.55275625",
"0.55196524",
"0.551945",
"0.5518738",
"0.55169135",
"0.55133075",
"0.550786",
"0.55039716",
"0.55008894",
"0.54811865",
"0.5467959",
"0.54663336",
"0.5462385",
"0.5460677",
"0.5451521",
"0.5445065",
"0.54438084",
"0.54406697",
"0.54382074",
"0.5427525",
"0.54273456",
"0.5426192",
"0.54246175",
"0.541287",
"0.5407652",
"0.54060376",
"0.5405597",
"0.54010075",
"0.5400971",
"0.5400539",
"0.53979343",
"0.5391106",
"0.5386178",
"0.5380192",
"0.5380149",
"0.53752",
"0.5366835",
"0.535771"
] | 0.7077 | 0 |
Main function that contains application launch function. This will launch and display UI. | public static void main(String args[]) {
try {
Application.launch(args);
} catch (Exception e) {
System.out.println("Exception found: " + e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }",
"public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}",
"void launchApp();",
"public static void main(String[] args) {\n\t\tsetupUI.createMainFrame();\n\t\tmainUI MUI = new mainUI();\n\t\tMUI.initialize();\n\t}",
"public static void main(String[] args) {\n MUI mg = MUI.getInstance();\n mg.setVisible(true);\n }",
"public static void main(String[] args){\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tInterface window = new Interface();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmainMenu();\n\t}",
"public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}",
"public static void main(String[] args) {\n\n UIController.getInstance().setMain(new SelectionMenuUI());\n UIController.getInstance().startUI();\n\n }",
"public static void main(String[] args)\n\t{\n\t\tgo = new GUI();\n\t\tgo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgo.setExtendedState(JFrame.MAXIMIZED_BOTH); // Method to make auto-full screen\n\n\t\tgo.setVisible(true); // Basic frame stuff\n\t\tgo.init();\n\t\tr = new Runner();\n\t}",
"public static void main(String[] args) {\n SimpleUserInterface app = new SimpleUserInterface();\n app.start();\n }",
"public static void main(String[] args)\n {\n EventQueue.invokeLater(() ->\n {\n try\n {\n App app = new App();\n app.frame.setVisible(true);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }",
"public static void main(String[] args) {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tLeapFlieUI window = new LeapFlieUI();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public static void main(String[] args) {\n WeatherApplication gui = new WeatherApplication( );\n \n // make window visible\n gui.setVisible( true );\n \n }",
"public static void main(String[] args) {\r\n // TODO code application logic here\r\n ObjectFactory.getUIinstance().getHomeInstance().setVisible(true);\r\n }",
"public static void main(String[] args) {\n\t\t// Define new Runnable for splash screen execution\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tSplashScreenView splash;\n\t\t\tTimer timer;\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// Create splash screen boundary object and set visible\n\t\t\t\t\tsplash = new SplashScreenView();\n\t\t\t\t\tsplash.setVisible(true);\n\n\t\t\t\t\t// Begin timer for 2 seconds to display\n\t\t\t\t\ttimer = new Timer(2000, new ActionListener(){ \n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t// Create event on timer completion that hide the splash screen, and creates\n\t\t\t\t\t\t\t// the Kabasuji and corresponding view for interactions\n\t\t\t\t\t\t\tsplash.setVisible(false);\n\t\t\t\t\t\t\tKabasuji game = new Kabasuji();\n\t\t\t\t\t\t\tLevelSelectorView window = new LevelSelectorView(game);\n\n\t\t\t\t\t\t\t// allow controller to set up GUI based on the levels loaded by 'game'\n\t\t\t\t\t\t\tStartLevelSelectorController selectorController = new StartLevelSelectorController(window, game);\n\t\t\t\t\t\t\tselectorController.process();\n\n\t\t\t\t\t\t\t// show window\n\t\t\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t\t\t\tImageIcon image = new ImageIcon(StartKabasuji.class.getResource(\"/images/heineman.jpg\"));\n\t\t\t\t\t\t\twindow.setIconImage(image.getImage().getScaledInstance(40, 40, 0));\n\t\t\t\t\t\t\tSystem.out.println(image);\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\t// Start the timer and ensure it only runs once\n\t\t\t\t\ttimer.setRepeats(false);\n\t\t\t\t\ttimer.start();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tLoginUI window = new LoginUI();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public static void main(final String... args) {\n\n Application.launch();\n }",
"public static void main(String[] args) {\n showWindow();\r\n\t}",
"public static void main(String[] args) {\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n GUI window = new GUI();\n window.frame.setVisible(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }",
"public static void main(String... args) {\n\t\tApplication.launch(View.class, args);\n\t}",
"public static void main(String [] args)\r\n\t{\r\n\t\tBootUI bootUI = new BootUI();\r\n\t\tbootUI.run();\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tlatch = new CountDownLatch(2);\r\n\t\tnew InitApp();\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e2) {\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tlatch = new CountDownLatch(1);\r\n\t\tm = new MainWindow();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e3) {\r\n\t\t\te3.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tm.setVisible(true);\r\n\t\t// Abrimos la ventana principal\r\n\r\n\t\t\r\n\r\n\t\tlatch = new CountDownLatch(1);\r\n\t\tif (Main.numTaules == 0)\r\n\t\t\tnew ConfigTablesDialog(latch).setVisible(true);\r\n\t\telse\r\n\t\t\tlatch.countDown();\r\n\t\t\r\n\t\tlatch = new CountDownLatch(1);\r\n\t\tm.loadTickets();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tm.resetUIForUpdates();\r\n\t\tm.getTablesFrame().onTableNumChangeCreateButtons();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Abrimos el server\r\n\t\ttry {\r\n\t\t\tMainServer mS = new MainServer(m);\r\n\t\t} catch (ClassNotFoundException | IOException | SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new LaunchGame().setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(LaunchGame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }",
"public static void main(String[] args) {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new EmployeeLookup();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"void launch();",
"void launch();",
"void launch();",
"public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }",
"public static void main( String[] args )\n {\n\n new Frame();\n new ThreeDiceApp();\n }",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tLibraryGUI window = new LibraryGUI();\n\t\t\t\t\twindow.frmLibraryManagementSystem.setLocationRelativeTo(null);\n\t\t\t\t\twindow.frmLibraryManagementSystem.setVisible(true);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }",
"public static void main(String[] args) {\r\n UserInterface ui;\r\n try {\r\n ui = new UserInterface();\r\n \r\n ui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n ui.pack(); \r\n ui.setVisible(true); \r\n } catch(InterruptedException ex) {\r\n \r\n }\r\n\r\n }",
"public static void main(String[] args) throws FactoryException {\n MainUI ui = new MainUI();\n ui.initialize();\n ui.start();\n }",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tCrapsGUI window = new CrapsGUI();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\tnew MainWindow();\n\t\t}\n\t\t\n\t\tcatch (Exception e){}\n\t}",
"public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n createAndShowGui();\n }\n\n });\n \n }",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}",
"public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }",
"public static void main(String[] args) throws ClassNotFoundException, SQLException {\n Application.launch(TetrisUi.class);\n \n }",
"public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(final String[] theArgs) {\r\n setLookAndFeel();\r\n EventQueue.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n new GUI().start(); \r\n }\r\n });\r\n }",
"public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }",
"public static void main(String[] args){\n // Creates an instance of our program\n Main gui = new Main();\n // Lets the computer know to start it in the event thread\n SwingUtilities.invokeLater(gui);\n }",
"public static void main(String[] args){\n\n EventQueue.invokeLater(() -> {\n GUI gui = new GUI();\n gui.setVisible(true);\n });\n }",
"public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }",
"public static void main(String[] args){\n // Creates an instance of our program\n Main gui = new Main();\n // Lets the computer know to start it in the event thread\n SwingUtilities.invokeLater(gui);\n }",
"public static void main(String[] args) {\n Application.launch(args);\n }",
"public static void main (String args[]) {\r\n\t\t\r\n\t\tinputScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tinputScreen.setSize(700,500);\r\n\t\tinputScreen.getContentPane();\r\n\t\tinputScreen.setVisible(true);\r\n\t\t\r\n\r\n\t\tEmployeeName();\r\n\t\tEmployeeAddress();\r\n\t\tEmployeePhoneNumber();\r\n\t\tEmployeeJob();\r\n\t\tEmployeeHoursWorked();\r\n\t\tEmployeePay();\r\n\t\tBottomRow();\r\n\t\tAction();\r\n\t\tAction2();\r\n\t\tAction3();\r\n\t\tSearchAction();\r\n\t\t\r\n\t\r\n\t\tinputScreen.getContentPane().add(GUI1Panel);\r\n\t\tGUI1Panel.setBorder(border1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tFrame app = new Frame(\"Santa on Christmas Eve\"); \n\t\t\t}\n\t\t}\n\t\t);\n\t}",
"public static void main(String[] args) {\n\n Application.launch(args);\n }",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}",
"public static void main(String[] args) {\n mainController controll = new mainController(\"127.0.0.1\");\n MainFrame mf = MainFrame.getInstance();\n mf.setController(controll);\n mf.setVisible(true);\n\n //메인메뉴 띄우기\n mf.changeView(Mode.MAIN);\n }",
"public static void main(String[] args) {\n\t// Execute The GUI\n new GUI();\n GUI.panel();\n }",
"public Main(){\n \tsetSize(new Dimension(1024, 768));\n \t\n \t//setUndecorated(true); // borderless (fullscreen) window\n \tsetExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // maximize window\n \t\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Game\");\n setLocationRelativeTo(null); // center on screen\n\n \tContentLoader.LoadContent();\n init();\n start();\n }",
"public static void main(String[] args) {\r\n\t\tlogger.info(\"Starting the main entry point of Bowling Swing Application\");\r\n\t\tcreateAndShowGUI();\r\n\t}",
"public static void main(String[] args)\r\n {\n\t\t System.out.println(\"************* Welocome To My Application ************* \");\r\n\t\t MainMenu();\r\n }",
"public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}",
"public static void main(String[] args) {\n\t\tMainWindow mw = new MainWindow(\"메인화면\");\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tdisplayGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public static void main(String[] args) {\n\t\tGiaiPhuongTrinhbac1 myUI = new GiaiPhuongTrinhbac1(\"mbhvhvv\");\n\t\tmyUI.showWindow();\n\n\t}",
"public static void main(String[] args) {\r\n\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tWidget window = new Widget();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t} catch (Exception 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});\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tLoginFrame window = new LoginFrame(db);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main( String args[] )\n\t{\n\t\tmainFrame = getInstance();\n\t\tmainFrame.setVisible( true );\n\t\t\n\t}",
"public static void main(String args[]) throws IOException {\n GUI app = new GUI();\n }",
"public static void main(String[] args) {\n\t\tshowGUI();\n\t}",
"public static void main(String[] args) {\n //launch it\n launch();\n }",
"public static void main(String[] args) {\n\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n CommonsHR.setEye(new Point3d(1.35, 1.35, 2.0));\n new CommonsHR.MyGUI(createScene(), \"HR's Lab3\");\n }\n });\n }",
"public static void main(String[] args) {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tAtmLogin frame = new AtmLogin();\r\n\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public static void main(String[] args){\n\t\t\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGameLauncher gameLauncher = new GameLauncher();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}",
"public static void main (String [] args) throws IOException {\n\t\tlogger.info(\"This is Team 18's Weather App - starting...\");\n\n\t\t// data\n\t\tlogger.info(\"Initializing weather data components\");\n\t\tLocalWeatherData localData = new LocalWeatherData();\n\t\tShortTermData shortTermData = new ShortTermData();\n\t\tDataRequester dataRequester = new DataRequester(localData,shortTermData);\n\t\tlogger.info(\"End of weather data components\");\n\n\t\tRefreshButton refreshButton = new RefreshButton(dataRequester);\n\n\t\t// views\n\t\tlogger.info(\"Initializing weather views/tabs\");\n\t\tLocalWeatherView localView = new LocalWeatherView(localData, refreshButton);\n\t\tShortTermView shortView = new ShortTermView(shortTermData);\n\t\tSelectionPage selectionPage = new SelectionPage(localView, shortView, dataRequester);\n\t\tlogger.info(\"End of views\");\n\n\t\t// place views into tabs\n\t\tlogger.info(\"Putting views into tabs\");\n\t\tTabbedViews tabs = new TabbedViews(selectionPage, localView, shortView);\n\n\t\t//main window/frame\n\t\tlogger.info(\"Initializing main JFrame with tabbed view\");\n\t\tJFrame mainFrame = new JFrame(\"Team18 Weather\");\n\t\tmainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tmainFrame.setBackground(Color.WHITE);\n\t\tmainFrame.setSize(600, 450);\n\t\tmainFrame.add(tabs, BorderLayout.CENTER);\n\t\tmainFrame.setVisible(true);\n\t\tlogger.info(\"Main window created\");\n\t}",
"public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}",
"public void startApp()\r\n\t{\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(TamaView.class, args);\n\n\t}",
"public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }",
"public static void main(String[] args) {\n GUIBase mainFrame = new GUIBase();\n mainFrame.DisplayGUI();\n GUIModel mainPanel = new GUIModel();\n mainPanel.addEventHandlers(mainFrame.getFrame());\n GUIHelper.SetDisplay(mainFrame.getFrame(), mainPanel.getContentPanel(), \"Cash For Metals Calculator\");\n }",
"public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }",
"public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}",
"public static void main(String[] args) {\n //Size of window\n int width = 1000;\n int height = 1100;\n Model m = new Model();\n View v = new View(m);\n Controller c = new Controller(m, v);\n v.setController(c);\n c.init(width, height);\n }",
"public static void main(String[] args) {\r\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n\r\n\t\t\tpublic void run() {\r\n\t\t\t\tcom.luxsoft.siipap.swing.utils.SWExtUIManager.setup();\r\n\t\t\t\tshowObject(showForm());\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t}",
"public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tStartingFrame window = new StartingFrame();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tMain frame = new Main();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) {\n DatabaseController.login();\r\n\r\n //Log in to email\r\n Email.login();\r\n\r\n //Update local database - in real deployment this would run twice per day, not every startup\r\n SyncMain.main(new String[]{});\r\n\r\n //Load cached data\r\n CSVController.loadFiles();\r\n\r\n //Start GUI\r\n launch(args);\r\n\r\n }",
"public static void main(String[] args) {\r\n UILookAndFeel.setLAF();\r\n try {\r\n SwingUtilities.invokeAndWait(new Runnable() {\r\n public void run() {\r\n RegularGrid app = new RegularGrid();\r\n app.init();\r\n app.setVisible(true);\r\n }\r\n });\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tLottoGUI frame = new LottoGUI();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) {\n startServer();\n Application.launch(GUI.class, args);\n }",
"public static void main(String[] args) {\n PhoneBookUI phoneui = new PhoneBookUI();\n phoneui.run();\n }",
"public static void main (String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n MainMenu mainMenu = new MainMenu(\"Flight Crew Scheduler\");\n mainMenu.createUI();\n mainMenu.setVisible(true);\n mainMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //FlightScheduled fs = new FlightScheduled();\n }\n });\n }",
"public static void main(String[] args) {\n\n invokeLater(new Runnable() {\n public void run() {\n initialize();\n new MainFrame();\n }\n });\n }",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsetUIFont (new FontUIResource(\"VERDUN\",Font.ITALIC,18)); // Changes the global text font\n\t\t\t\t\tRequestManager.initialize();\n\t\t\t\t\t\n\t\t\t\t\tAuthentificationView window = new AuthentificationView();\n\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) {\n launch(args);\r\n \r\n }",
"public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI();\n }\n });\n\n }",
"public static void main(String[] args) {\n\t\tfinal Levelre level = new Levelre();\n\t\tMainUI mainui = new MainUI(level);\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tGameEnvironment runningGame = new GameEnvironment();\n\t\trunningGame.launchStartupScreen();\n\t}",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tServerwizard window = new Serverwizard();\n\t\t\t\t\twindow.frmManualTesting.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }",
"public static void main(String[] args) {\n\n //MainWindow mainWindow=new MainWindow();\n\n }",
"public static void main(String[] args)\n {\n new Launcher();\n }"
] | [
"0.7523086",
"0.74637854",
"0.7462809",
"0.73960716",
"0.7349562",
"0.7313137",
"0.7307426",
"0.7281286",
"0.72800374",
"0.72769356",
"0.7270326",
"0.7266094",
"0.7250402",
"0.7242849",
"0.7242441",
"0.72080123",
"0.71737105",
"0.71599025",
"0.7124796",
"0.71230936",
"0.7106332",
"0.7090341",
"0.70878696",
"0.7087015",
"0.7076025",
"0.7076025",
"0.7076025",
"0.70722836",
"0.7065669",
"0.7064745",
"0.7063043",
"0.7056543",
"0.7040914",
"0.7035004",
"0.70294577",
"0.70167154",
"0.70155483",
"0.70086116",
"0.70079637",
"0.7007296",
"0.7004807",
"0.7004489",
"0.70041585",
"0.6998162",
"0.6993484",
"0.6974951",
"0.6968766",
"0.6952492",
"0.69497645",
"0.6945897",
"0.6944892",
"0.69423145",
"0.69343525",
"0.6933181",
"0.69254243",
"0.6925249",
"0.69208187",
"0.692001",
"0.6917227",
"0.6916873",
"0.6916669",
"0.69095594",
"0.6908572",
"0.6908572",
"0.6907184",
"0.6905213",
"0.6898174",
"0.68917716",
"0.68892574",
"0.6881994",
"0.6881602",
"0.68814445",
"0.6878018",
"0.68727195",
"0.68726045",
"0.6863947",
"0.6854347",
"0.68542874",
"0.6853604",
"0.685045",
"0.6846319",
"0.6845937",
"0.684553",
"0.68385965",
"0.68375534",
"0.68348134",
"0.6834638",
"0.68335295",
"0.6832781",
"0.68283653",
"0.6827299",
"0.6826654",
"0.68252295",
"0.6820894",
"0.6819325",
"0.68178767",
"0.6816226",
"0.6814697",
"0.6811596",
"0.68077666",
"0.68075126"
] | 0.0 | -1 |
/ esta variable se usa para calcular el numero de iteraciones que se haran durante la ejecucion del algortimo | public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB)
f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getIterations();",
"public int getIteration();",
"int getMaximalIterationCount();",
"@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}",
"private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"public void setIteraciones(int iteraciones) {\r\n this.iteraciones = iteraciones;\r\n }",
"public void setIteracion(int iteracion) {\n this.iteracion = iteracion;\n }",
"int getMinimalIterationCount();",
"public int getIterations() {\n return iterations;\n }",
"public void nextIteration() {t++;}",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"protected int getIteration() {\n\t\treturn iteration;\n\t}",
"public final int getIterations() {\n \t\treturn iterations;\n \t}",
"public int getIterations() {\n return iterations;\n }",
"public int getIterations() {\n return iterations;\n }",
"public final int getIterations()\n {\n return iterations;\n }",
"public int getIterations() {\r\n\t\treturn iterations;\r\n\t}",
"public void processingTotal(int i);",
"public int getIterationLimit() {return iterationLimit;}",
"public int getNumTimes();",
"int getNumIterations(int precision);",
"public static int numbersOfIterations(Scanner console){\n\t\tSystem.out.println(\"Enter number of iterations: \");\n\t\treturn console.nextInt();\n\t\t\n\t}",
"public int getIterations() {\n\t\treturn iterations;\n\t}",
"public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}",
"public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }",
"protected int get_max_iter() {\n\t\treturn iterationsMaximum;\n\t}",
"public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}",
"@Override\n\tpublic int getMaxIterations() {\n\t\treturn maxIterations;\n\t}",
"public String getIterationSurMax() { return (actuelIteration + 1) + \"/\" + totalIteration; }",
"public static int RepetidorFor(int numero){\n\t\tint suma=0;\n\t\tint resultado=0;\n\t\tfor(int i=1;i<numero;i++){\n\t\t\tresultado=(numero%i);\n\t\t\tif(resultado==0){\n\t\t\t\tsuma=suma+i;\n\t\t\t}\n\t\t}\n\t\treturn suma;\n\t}",
"public static void main(String[] args) throws InterruptedException, ExecutionException {\t\r\n\t\tScanner reader = new Scanner(System.in);\r\n\t\t/*\r\n\t\t * Limite maximo de números. \r\n\t\t */\t\r\n\t\tList<Future<Long>> list = new ArrayList<Future<Long>>();\r\n\t\t/*\r\n\t\t * Lista que guarda los tiempos de ejecución de cada hilo. \r\n\t\t */\t\r\n\t\tArrayList<Long> ListaTiempo = new ArrayList<Long>();\r\n\t\tSystem.out.print(\"ingrese numeros limite de numeros para analizar:\");\r\n\t\t/*\r\n\t\t * Variable que guarda el numero captado por consola. \r\n\t\t */\t\r\n\t\tint numeros = reader.nextInt();\r\n\t\t/*\r\n\t\t * Variable que incrementa para generar los hilos. \r\n\t\t */\t\r\n\t\tint hilos = 1;\r\n\t\t/*\r\n\t\t * Variable que guarda el tiempo de ejecucion del hilo uno. \r\n\t\t */\t\r\n\t\tlong tiempoHiloUno = 0;\r\n\t\t\r\n\t\t//while que itera hasta 16 hilos.\r\n\t\twhile (hilos <= 16) {\r\n\t\t\t//Calculo del límite.\r\n\t\t\tint limite = numeros / hilos;\r\n\t\t\t/*\r\n\t\t\t * Se crea el pool de hilos. \r\n\t\t\t */\t\r\n\t\t\tExecutorService servicio = Executors.newFixedThreadPool(hilos);\r\n\t\t\tint inferior = 1;\r\n\t\t\tint superior = limite;\r\n\t\t\tlong initialTime = System.currentTimeMillis();\r\n\t\t\t//Itera segun el numero de hilos.\r\n\t\t\tfor (int i = 1; i <= hilos; i++) {\r\n\t\t\t\tFuture<Long> resultado = servicio.submit(new Nprimos(superior, inferior));\r\n\t\t\t\tlist.add(resultado);\r\n\t\t\t\tinferior = superior + 1;\r\n\t\t\t\tsuperior += limite;\r\n\t\t\t\t//Si supera el límite rompe el ciclo.\r\n\t\t\t\tif (superior > limite * hilos) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// se termina de ejecutar cuando todos los hilos terminan de trabajar.\r\n\t\t\tfor (Future<Long> resultado : list) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tListaTiempo.add(resultado.get());\r\n\t\t\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(hilos==1) {\r\n\t\t\t\ttiempoHiloUno = System.currentTimeMillis() - initialTime; \r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \\n \" + \"(\" + hilos + \")\" + \"tiempo de ejecución: \"+ (System.currentTimeMillis() - initialTime) + \" ms\\n\");\r\n\t\t\tSystem.out.print(\" speed up = \" + (double)(tiempoHiloUno /(System.currentTimeMillis() - initialTime)) + \" \\n\");\r\n\t\t\tservicio.shutdown();\r\n\t\t\t//Se incrementa variable hilos.\r\n\t\t\thilos++;\r\n\t\t}\r\n\r\n\t}",
"public int getCycles();",
"public static void main(String[] args) throws Exception {\n\n Teclado tc=new Teclado();\n\n EjemplosRecursivos objER=new EjemplosRecursivos();\n\n int numero=tc.leer(0, \"Ingrese un numero:\");\n /*System.out.println(\"Facorial iterativo:\"+objER.factorialBig(numero));\n System.out.println(\"Facorial Recursivo:\"+objER.factorialRecurBig(numero));*/\n long ti=System.currentTimeMillis();\n System.out.println(\"Fibonaci iterativo:\"+objER.fibonacciBig(numero));\n long tf=System.currentTimeMillis();\n System.out.println(\"Timepo Iterativo: \"+(tf-ti));\n\n ti=System.currentTimeMillis();\n System.out.println(\"Fibonaci x:\"+objER.fibonacciXBig(numero));\n tf=System.currentTimeMillis();\n System.out.println(\"Timepo x: \"+(tf-ti)); \n\n\n ti=System.currentTimeMillis();\n System.out.println(\"Factorial Iteratico:\"+objER.factorialBig(numero));\n tf=System.currentTimeMillis();\n System.out.println(\"Factorial Iteratico: \"+(tf-ti)); \n\n ti=System.currentTimeMillis();\n System.out.println(\"Factorial Recursivo:\"+objER.factorialRecurBig(numero));\n tf=System.currentTimeMillis();\n System.out.println(\"Factorial Recursivo: \"+(tf-ti)); \n\n /* ti=System.currentTimeMillis();\n System.out.println(\"Fibonaci recursivo:\"+objER.fibonacciRecur(numero));\n tf=System.currentTimeMillis();\n System.out.println(\"Timepo recursivo: \"+(tf-ti));*/\n\n \n }",
"int getRepeatCount();",
"int getServerWorkIterations();",
"public int numberOfTires() {\n int tires = 4;\n return tires;\n }",
"public int getNbIterations() {\n\t\treturn this.nbIterations;\n\t}",
"int stepsToGo();",
"void iterate( int numberOfDocs, int maxIterations ) {\r\n double[] x = new double[numberOfDocs];\r\n double[] xPrime = new double[numberOfDocs]; xPrime[0] = 1;\r\n int numIteration = 0;\r\n while (!diffLessThanEpsilon(x, xPrime) && numIteration < maxIterations) {\r\n numIteration++;\r\n x = xPrime;\r\n xPrime = multiplyWithTransition(x);\r\n }\r\n printPageRanks(xPrime);\r\n }",
"int getN();",
"public int getNumTrials() \n {\n return cumulativeTrials; \n }",
"public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }",
"private int getNum() {\r\n int i = currentNum.incrementAndGet();\r\n if (i < 0)\r\n i = -i;\r\n return i % n;\r\n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"public static void main(String[] args) {\n\n int a = 3, n = 4;\n\n int calculPutere = 1;\n\n for(int i = 0; i < n; i++){\n\n calculPutere *= a;\n }\n\n System.out.println(a+ \" la puterea \" + n + \" = \" + calculPutere);\n\n\n\n }",
"private int getNumberOfIterations() throws NumberFormatException {\n\t\tfinal String USER_INPUT = numberOfIterations.getText();\n\t\tint temp = 0;\n\t\ttry {\n\t\t\ttemp = Integer.parseInt(USER_INPUT);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString errorMessage = \"Number of Iterations is expected to be an Integer value, but you input '\";\n\t\t\terrorMessage += USER_INPUT;\n\t\t\terrorMessage += \"'. Please fix this before moving on.\";\n\t\t\tJOptionPane.showMessageDialog(this, errorMessage,\n\t\t\t\t\"Number of Iterations must be a positive Interger!\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\tthrow new NumberFormatException(errorMessage);\n\t\t}\n\t\treturn temp;\n\t}",
"public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }",
"Integer getTotalStepCount();",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"int getServerProcessingIterations();",
"public int getNumberOfSimulations(){\n return this.nMonteCarlo;\n }",
"public int incrementar(int contador){\nSystem.out.println(\"Escoge la cantidad a incrementar\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador+1;}\nreturn contador;}",
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"public int getVarimaxIterations(){\n return this.nVarimax;\n }",
"public native int getIterations() throws MagickException;",
"static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}",
"@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void setDatossolicitudBfnumeroDeIteracion(int value) {\n this.datossolicitudBfnumeroDeIteracion = value;\n }",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"public static void main(String[] args) {\n\n System.out.println(\"Ingresar numero\");\n int numero = scanner.nextInt();\n long factorial = 1;\n\n int count = 1;\n\n while (count <= numero) {\n factorial = factorial * count;\n count++;\n }\n System.out.println(factorial);\n\n // for(incializacion; condicion; actualizacion) {\n // bloque de sentencias\n //}\n\n factorial = 1;\n for (int i = 1; i <= numero; i++) {\n factorial = factorial * i;\n }\n\n System.out.println(\"El factorial usando for es: \" + factorial);\n\n /* for(;;) {\n System.out.println(\"es valido, es un bucle infinito\");\n } */\n\n\n\n }",
"private static long pisano(long m) {\n long temp;\n long first = 0;\n long second = 1;\n\n long count = 0; // initial length of the pisano period\n \n while (true) {\n temp = first;\n first = second;\n second = (second + temp) % m;\n count++;\n\n if (first == 0 && second == 1) {\n return count;\n } // every pisano period begins with 0 1. When we see 0 1, we know len of pisano period.\n }\n }",
"public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }",
"int getNumberOfInfantry();",
"private int tournament()\r\n {\r\n\tint out = spinTheWheel();\r\n\tdouble max = ff.evaluate(chromos.get(out),generation());\r\n\tdouble temp_fitness = 0;\r\n\tint temp_index = 0;\r\n\r\n\tfor(int i = 0; i < selPara - 1 + tourStep*generation(); i++)\r\n\t {\r\n\t\ttemp_index = spinTheWheel();\r\n\t\ttemp_fitness = ff.evaluate(chromos.get(temp_index),generation());\r\n\t\tif(temp_fitness > max)\r\n\t\t {\r\n\t\t\tmax = temp_fitness;\r\n\t\t\tout = temp_index;\r\n\t\t }\r\n\t }\r\n\treturn out;\r\n }",
"public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }",
"public short getNum_solver_iterations() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 18);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 10);\n\t\t}\n\t}",
"private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}",
"public List<Integer> getIterations() {\n int totalit = 0;\n int largestit = 0;\n int averageit = 0;\n for (Integer i : recGraphs) {\n totalit += i;\n averageit += i / recGraphs.size();\n if (i > largestit) {\n largestit = i;\n }\n }\n List<Integer> list = new ArrayList<>();\n list.add(totalit);\n list.add(largestit);\n list.add(averageit);\n return list;\n }",
"public String run() {\r\n\t// divisorSum[n] is the sum of all the proper divisors of n\r\n int divisorSum[]= new int[LIMIT+1];\r\n for(int i=1;i<=LIMIT;i++)\r\n {\r\n for(int j=i+i;j<=LIMIT;j+=i)\r\n divisorSum[j]+=i;\r\n }\r\n // Analyze the amicable chain length for each number in ascending order\r\n int maxChainLen=0;\r\n int minChainElem=-1;\r\n for(int i=0;i<=LIMIT;i++){\r\n Set<Integer> visited=new HashSet<>();\r\n for(int count=1,cur=i;;count++){\r\n visited.add(cur);\r\n int next=divisorSum[cur];\r\n if(next==i)\r\n {\r\n if(count>maxChainLen){\r\n minChainElem=i;\r\n maxChainLen=count;\r\n \r\n }\r\n break;\r\n }\r\n // Exceeds limit or not a chain (a rho shape instead)\r\n else if(next>LIMIT || visited.contains(next))\r\n break;\r\n else\r\n cur=next;\r\n }\r\n }\r\n return Integer.toString(minChainElem);\r\n }",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"public static void main(String[] args) {\n\n long a_i3 = 3;\n long a_i2 = 4;\n long a_i1 = 10;\n\n int MOD = 1000_000_000 + 7;\n\n for (int i = 4; i < 30; i++) {\n long a_i = (a_i1 + 2 * a_i2 + 4 * a_i3) % MOD;\n System.out.println(\"N: \" + i + \" --> \" + a_i);\n\n a_i3 = a_i2;\n a_i2 = a_i1;\n a_i1 = a_i;\n }\n\n old1();\n }",
"void finnPrimtall(){\n\t\tlong antPrimtall = maxtall;\r\n\t\tantPrimtall=antPrimtall*antPrimtall;\r\n\t\tlong time=maxtall/2666666;\r\n\t\tSystem.out.println(\"tester for antPrimtall: \" + antPrimtall);\r\n\t\tlong tid = System.nanoTime();\r\n\t\tfor (long i=antPrimtall-100; i<antPrimtall; i++) {\r\n\t\t\tSystem.out.print(i + \" = \");\r\n\t\t\tfaktorisering(i);\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t\ttry{Thread.sleep(time);}catch(Exception e){}\r\n\t\t}\r\n\t\tSystem.out.println(\"tid pa sekvensiel faktorisering: \" + ((System.nanoTime()-tid)/1000000.0) + \" ms\");\r\n\t\tSystem.out.println();\r\n\t}",
"public int getHowManyInPeriod();",
"public void calculateNumarulDeVecini(DijkInfo punctCurent){\n int linie = punctCurent.getPunctCurent().getLinie();\n int coloana = punctCurent.getPunctCurent().getColoana();\n int nrVecini = 0;\n if(linie-1 >= 0 && pointsVisited[linie-1][coloana] == true )\n nrVecini++;\n if(coloana+1 < this.nrCellsLab && pointsVisited[linie][coloana+1] == true )\n nrVecini++;\n if(linie+1 < this.nrCellsLab && pointsVisited[linie+1][coloana] == true )\n nrVecini++;\n if(coloana-1 >= 0 && pointsVisited[linie][coloana-1] == true )\n nrVecini++;\n punctCurent.setNrVecini(nrVecini);\n }",
"public static void main(String[] args) {\n\t\tint d = 6;\n\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tcount += count(1, i, i, d, i == d || i ==0);\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"public Long numeroRegistrosFactura();",
"public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}",
"@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public int obtenerNumeroFacturas(){\n return historialFacturas.size();\n }",
"@Test\n public void getCount() throws Exception {\n int[] a = new int[]{250, 501, 5000, 5, 4};\n\n Solution solution = new Solution();\n\n int c = solution.getCount(a, 0, 4, 0, 5);\n\n assertEquals(3, c);\n\n c = solution.getCount(a, 0, 4, 0, 10);\n\n assertEquals(2, c);\n\n c = solution.getCount(a, 0, 4, 2, 3);\n\n assertEquals(2, c);\n }",
"public int getRuns();",
"public void solucion() {\r\n System.out.println(\"Intervalo : [\" + a + \", \" + b + \"]\");\r\n System.out.println(\"Error : \" + porce);\r\n System.out.println(\"decimales : \"+ deci);\r\n System.out.println(\"Iteraciones : \" + iteraciones);\r\n System.out\r\n .println(\"------------------------------------------------ \\n\");\r\n \r\n double c = 0;\r\n double fa = 0;\r\n double fb = 0;\r\n double fc = 0;\r\n int iteracion = 1;\r\n \r\n do {\r\n // Aqui esta la magia\r\n c = (a + b) / 2; \r\n System.out.println(\"Iteracion (\" + iteracion + \") : \" + c);\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n fc = funcion(c);\r\n if (fa * fc == 0) {\r\n if (fa == 0) {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raÃz es: \"+a);\r\n System.out.println(a);\r\n System.exit(0);\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raÃz es: \"+c);\r\n System.out.println(c);\r\n System.exit(0);\r\n }}\r\n \r\n if (fc * fa < 0) {\r\n b = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n } else {\r\n a = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n }\r\n iteracion++;\r\n // Itera mientras se cumpla la cantidad de iteraciones establecidas\r\n // y la funcion se mantenga dentro del margen de error\r\n \r\n er = Math.abs(((c - x) / c)* 100);\r\n BigDecimal bd = new BigDecimal(aux1);\r\n bd = bd.setScale(deci, RoundingMode.HALF_UP);\r\n BigDecimal bdpm = new BigDecimal(pm);\r\n bdpm = bdpm.setScale(deci, RoundingMode.HALF_UP);\r\n cont++;\r\n fc=c ;\r\n JOptionPane.showMessageDialog(null, \"conteos: \" + cont + \" Pm: \" + bd.doubleValue() + \" Funcion: \" + bdpm.doubleValue() + \" Error: \" + er +\"%\"+ \"\\n\");\r\n } while (er <=porce);\r\n \r\n \r\n }",
"public float getIterationValue()\n\t{\n\t\tif (getDuration() <= 0) { return 1; }\n\t\treturn getCurrentTime() / getDuration();\n\t}",
"public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}",
"public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }",
"private static void function(int startNum,int endNum) {\n int start = startNum;\n int end = endNum;\n int count = 0;\n int x = 0;\n\n for (int i = 2; i < end; i++) {\n x=0;\n for (int j = 2; j <= (int)Math.sqrt(i); j++) {\n if (i%j==0) {\n x++;\n\n }\n }\n if (x==0) {\n count++;\n System.out.println(i);\n }\n }\n\n System.out.println(\"==========\");\n System.out.println(count);\n }",
"public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}",
"int getInCount();",
"public static void main(String[] args) {\n\t\tint contpar= 0, num = 0, contimpar=0;\n\t\tScanner leitor = new Scanner(System.in);\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tSystem.out.println(\"Digite o numero 1º: \");\n\t\t\tnum = leitor.nextInt();\n\t\t\tif(num % 2 == 0) {contpar++;}\n\t\t\telse {contimpar++;}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Quantidade de numeros par: \"+contpar);\n\t\tSystem.out.println(\"Quantidade de numeros impar: \"+contimpar);\n\t\tleitor.close();\n\t}",
"public abstract int preN();",
"public static void Ejemplo2() {\n System.out.println(\"Introduzca el numero de valores a leer\");\r\n Scanner sc = new Scanner(System.in);\r\n int num = sc.nextInt();\r\n int[] frecuencias = new int[101];\r\n\r\n int numero;\r\n for (int i = 0; i < num; i++) {\r\n\r\n System.out.println(\"Introduzca un numero:\");\r\n boolean correcto;\r\n do {\r\n numero = sc.nextInt();\r\n\r\n if (numero < 1 || numero > 100) {\r\n System.out.println(\"Error el numero introducido tiene que pertencer al intervalo (0,100)\");\r\n correcto = false;\r\n } else {\r\n correcto = true;\r\n }\r\n } while (!correcto);\r\n\r\n frecuencias[numero]++;\r\n }\r\n\r\n for (int i = 0; i <= 100; i++) {\r\n if (frecuencias[i] != 0) {\r\n System.out.print(i + \" : \");\r\n for (int j = 0; j < frecuencias[i]; j++) {\r\n System.out.print(\"*\");\r\n }\r\n System.out.println(\"\");\r\n }\r\n }\r\n }",
"public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }",
"int fillCount();",
"private int incrementarNumTrans() throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumTrans() - start\");\n\t\t}\n\n\t\tnumTransaccion++;\n\t\tMediadorBD.actualizarTransaccionCaja(numTransaccion);\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumTrans() - end\");\n\t\t}\n\t\treturn numTransaccion;\n\t}",
"public final int getMaxIterations()\r\n\t{\r\n\t\treturn maxIterations;\r\n\t}",
"public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"private void numberResults ()\r\n {\r\n int partIndex = 0;\r\n\r\n for (Result result : connection.getResultMap().keySet()) {\r\n ScorePart scorePart = (ScorePart) result.getUnderlyingObject();\r\n scorePart.setId(++partIndex);\r\n }\r\n }",
"static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}",
"public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}"
] | [
"0.7073597",
"0.69597024",
"0.6797991",
"0.67725194",
"0.6699266",
"0.6404907",
"0.6398617",
"0.63524187",
"0.6337389",
"0.63313514",
"0.6326238",
"0.6323938",
"0.63226414",
"0.63044333",
"0.62313074",
"0.62313074",
"0.62165856",
"0.6206746",
"0.61818457",
"0.6176579",
"0.6173866",
"0.6115605",
"0.60988134",
"0.6096089",
"0.59963167",
"0.597706",
"0.5976079",
"0.5963046",
"0.5937619",
"0.59262884",
"0.58996123",
"0.58882654",
"0.5885714",
"0.5881842",
"0.5830216",
"0.5809799",
"0.5803441",
"0.579758",
"0.5790136",
"0.5788935",
"0.576167",
"0.5755053",
"0.57547355",
"0.57528985",
"0.5742031",
"0.57403946",
"0.5739014",
"0.57190603",
"0.5700986",
"0.5689139",
"0.56888574",
"0.56774473",
"0.56573397",
"0.5649071",
"0.56403446",
"0.5637765",
"0.5632905",
"0.5629881",
"0.56221694",
"0.5619704",
"0.5615441",
"0.56131196",
"0.56010634",
"0.56008667",
"0.55982083",
"0.5593424",
"0.5590291",
"0.55837584",
"0.55777574",
"0.5577478",
"0.5575708",
"0.55567926",
"0.55469704",
"0.55450493",
"0.55307895",
"0.55276537",
"0.55257213",
"0.5524795",
"0.55161804",
"0.55061823",
"0.5501782",
"0.55016536",
"0.54953444",
"0.5488608",
"0.5487423",
"0.54866976",
"0.54863477",
"0.5483892",
"0.5480848",
"0.54742056",
"0.54705125",
"0.54668504",
"0.54637665",
"0.54618067",
"0.5460893",
"0.5459041",
"0.54569966",
"0.5452422",
"0.54419124",
"0.5438321",
"0.542624"
] | 0.0 | -1 |
En el metodo raiz se piden los parametros y metodos siguientes f es el atributo sobre el que se usa el metodo eval() de la clase InterfaceB eval(x); es el metodo que se usa para evaluar el argumento requerido en el atibuto f | public final double raiz(double x0, double x1, double t) { // se reciben tres parametros en el metodo
Double x = Double.NaN; // valor inicial not a number
if (f.evaluar(x0) * f.evaluar(x1) < 0) { // f(x) evaluada en x1 y x0 (formula) para saber si existen o no raices
do {
x = (x0 + x1) / 2;
if (f.evaluar(x0) * f.evaluar(x) < 0) { //f(x) evaluada en x0 y (x) mientras sean menor que cero
x1 = x;
} else { // en el if y el else se hace el cambio de variable
x0 = x;
}
} while (Math.abs(f.evaluar(x)) > t); // si es mayor que la tolerancia se siguen realizando los calculss
} // el absoluto de la funcion debe ser mayor o igual que la tolerancia
return x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB)\n f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion);\n \n }",
"public abstract Object eval();",
"Hojas eval();",
"public interface IEval {\n String Evaluate(Integer otherChoice);\n\n\n}",
"public interface Expression {\n boolean interpret(String info);\n}",
"public interface IOptimizableFuncExpr {\n public AbstractFunctionCallExpression getFuncExpr();\n\n public int getNumLogicalVars();\n\n public int getNumConstantVals();\n\n public LogicalVariable getLogicalVar(int index);\n\n public void setLogicalExpr(int index, ILogicalExpression logExpr);\n\n public ILogicalExpression getLogicalExpr(int index);\n\n public void setFieldName(int index, List<String> fieldName);\n\n public List<String> getFieldName(int index);\n\n public void setFieldType(int index, IAType fieldName);\n\n public IAType getFieldType(int index);\n\n public void setOptimizableSubTree(int index, OptimizableOperatorSubTree subTree);\n\n public OptimizableOperatorSubTree getOperatorSubTree(int index);\n\n public IAlgebricksConstantValue getConstantVal(int index);\n\n public int findLogicalVar(LogicalVariable var);\n\n public int findFieldName(List<String> fieldName);\n\n public void substituteVar(LogicalVariable original, LogicalVariable substitution);\n\n public void setPartialField(boolean partialField);\n\n public boolean containsPartialField();\n\n public void setSourceVar(int index, LogicalVariable var);\n\n public LogicalVariable getSourceVar(int index);\n}",
"interface A9 {\r\n void test(int i, String s1); //test method is taking some argument\r\n}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}",
"public interface a {\n void a(x xVar);\n }",
"public interface IExpressionRuntime\n{\n Object evaluate();\n}",
"public interface a {\n void a(int i, List<String> list, boolean z, long j, String str, String str2, String str3);\n }",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public abstract boolean a(e parame, b paramb, int paramInt1, int paramInt2);",
"public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}",
"static interface FittingFunction {\r\n\r\n /**\r\n * Returns the value of the function for the given array of parameter\r\n * values.\r\n */\r\n double evaluate(double[] argument);\r\n\r\n /**\r\n * Returns the number of parameters.\r\n */\r\n int getNumParameters();\r\n }",
"public static <T> File generateEvalClass(String name, String code, Class<T> functionalInterface,\n String[] paramNames, Class<?>[] parametrizationClasses) throws StructuralIntercessionException {\n return generateEvalClass(name, code, functionalInterface, paramNames, null, parametrizationClasses);\n }",
"public String eval(String p1 ) {\n\t}",
"public interface a {\n b nJ(String str);\n}",
"private interface IPsi {\n public double f(int n);\n }",
"public interface d {\n void a(b bVar, e eVar, e eVar2);\n}",
"public static <T> File generateEvalClass(String name, String code, Class<T> functionalInterface,\n String[] paramNames, String[] imports, Class<?>[] parametrizationClasses)\n throws StructuralIntercessionException {\n Method m = MemberFinder.getMethod(functionalInterface);\n boolean[] genericMap = genericMap(m);\n CompilationUnit cu = new CompilationUnit();\n cu.setPackage(getEvalPackage());\n if (imports != null) {\n List<ImportDeclaration> importList = new ArrayList<ImportDeclaration>();\n for (String imp : imports) {\n ImportDeclaration id = new ImportDeclaration();\n id.setName(new NameExpr(imp));\n importList.add(id);\n }\n cu.setImports(importList);\n }\n ClassOrInterfaceDeclaration type = getType(name, cu);\n\n List<ClassOrInterfaceType> interfaces = getGenericInterface(parametrizationClasses, functionalInterface);\n type.setImplements(interfaces);\n\n String evalName = m.getName();\n\n java.lang.reflect.Type[] paramClasses = MemberFinder.resolveGenericParameters(m, parametrizationClasses);\n java.lang.reflect.Type returnClass = MemberFinder.resolveGenericReturn(m, parametrizationClasses);\n Class<?>[] exceptions = m.getExceptionTypes();\n\n code = checkCode(code, returnClass.getTypeName());\n\n MethodDeclaration method = getEvalMethod(code, paramNames, paramClasses, returnClass, evalName, genericMap,\n exceptions);\n ASTHelper.addMember(type, method);\n return createFile(GENERATED_EVAL_PACKAGE + \".\" + name, cu.toString());\n }",
"public interface Evaluable {\n HarrObject eval(Context context) throws HarrException;\n}",
"public interface TilinsiirtoValittaja {\n\n boolean tilisiirto(String nimi, int viitenumero, String tililta, String tilille, int summa);\n\n}",
"public CALL(Exp f, ExpList a) {func=f; args=a;}",
"public interface AlgorithmeAbstrait <E, A>\n{\n /**\n * Methode permettant de resoudre un probleme\n * a l'aide d'un algorithme de resolution \n * et une heuristique correspondante.\n * @param probleme celui sur lequel il faut executer l'algorithme\n * @param heuristique celle qu'il faut appliquer a l'algorithme, a condition qu'elle soit admissible\n * @return Une arraylist contenant la resolution du probleme\n */\n List<E> resoudre (\n ProblemeAbstrait <E, A> probleme, \n HeuristiqueAbstrait<E> heuristique\n );\n}",
"public interface Operacion {\n\n /**\n * Metodo que evalua el valor de un nodo del arbol, calculando su valor recorriendo a todos sus\n * hijos\n */\n Hojas eval();\n void agregar(Operacion op);\n Boolean isBin();\n}",
"public interface IFunction {\r\n void setFunctions(String tag);\r\n}",
"public Object eval (Object expression);",
"public abstract A a(com.airbnb.lottie.g.a<K> aVar, float f2);",
"public interface Calculator {\n public int exec(int a, int b);\n}",
"@Override\n public CE eval() throws IllegalArgumentException {\n final ConstraintFunction f;\n switch (this.name) {\n case \"hasPermission\":\n f = new HasPermission();\n break;\n\n case \"beforeHour\":\n f = new BeforeHour();\n break;\n\n case \"failure\":\n f = new Failure();\n break;\n\n default:\n throw new IllegalArgumentException(\"cannot evaluate unknown function: \" + this.name);\n }\n\n if (this.args.size() != f.arity())\n throw new IllegalArgumentException(\n \"function \"\n + this.name\n + \" should have arity \"\n + f.arity()\n + \" but found \"\n + this.args.size()\n + \" arguments.\");\n\n return f.eval(this.args);\n }",
"public interface b {\n void a(String str, Drawable drawable, Object obj);\n}",
"public interface Interpretable {\n Object interpret(HashMap<String, Integer> varList) throws UnassignedVarException, DivideByZeroException;\n}",
"public interface IValid {\n\n default boolean isValid(String annoStr) {\n return null!=getValid(annoStr);\n }\n\n default IMVC getValid(String annoStr) {\n String anno = null;\n if (annoStr.startsWith(\"@\")) {\n if(annoStr.indexOf(\"(\")!=-1){\n anno = annoStr.substring(1,annoStr.indexOf(\"(\"));\n }else{\n anno = annoStr.substring(1);\n }\n }else{\n if(annoStr.indexOf(\"(\")!=-1){\n anno = annoStr.substring(0,annoStr.indexOf(\"(\"));\n }else{\n anno = annoStr;\n }\n }\n for (IMVC imvc : getTypes()) {\n if (imvc.getRequestParamName().endsWith(anno)||imvc.getRequestParamName().equals(anno)) {\n return imvc;\n }\n }\n return null;\n }\n\n List<IMVC> getTypes();\n\n IParameter getParameter(String parameterStr,List<String> docsStrs);\n}",
"public interface Value extends EvalCode {\n\n Object getValue();\n\n @Override\n default Object evalCode(Leaf leaf, Function<AppTree,Object> eval, int numArgs) {\n return getValue();\n }\n}",
"@Override\n protected List<Attribute> init(AbstractDefinition inputDefinition,\n ExpressionExecutor[] attributeExpressionExecutors, ExecutionPlanContext executionPlanContext) {\n if (attributeExpressionExecutors.length != 6) {\n throw new ExecutionPlanValidationException(\n \"Invalid no of arguments passed to MinMaxStreamProcessor, required 6, but found \"\n + attributeExpressionExecutors.length);\n }\n if (!(attributeExpressionExecutors[0] instanceof VariableExpressionExecutor)) {\n throw new ExecutionPlanValidationException(\"MinMaxStreamProcessor's 1st parameter should\"\n + \" be a variable, but found \" + attributeExpressionExecutors[0].getClass());\n }\n if (!(attributeExpressionExecutors[1] instanceof ConstantExpressionExecutor)) {\n throw new ExecutionPlanValidationException(\"Constant value expected as the 2nd parameter (maxPreBound)\"\n + \" but found \" + attributeExpressionExecutors[1].getClass());\n }\n if (!(attributeExpressionExecutors[2] instanceof ConstantExpressionExecutor)) {\n throw new ExecutionPlanValidationException(\"Constant value expected as the 3rd parameter (maxPostBound)\"\n + \" but found \" + attributeExpressionExecutors[2].getClass());\n }\n if (!(attributeExpressionExecutors[3] instanceof ConstantExpressionExecutor)) {\n throw new ExecutionPlanValidationException(\"Constant value expected as the 4th parameter (preBoundChange)\"\n + \" but found \" + attributeExpressionExecutors[3].getClass());\n }\n if (!(attributeExpressionExecutors[4] instanceof ConstantExpressionExecutor)) {\n throw new ExecutionPlanValidationException(\"Constant value expected as the 5th parameter (postBoundChange)\"\n + \" but found \" + attributeExpressionExecutors[4].getClass());\n }\n if (!(attributeExpressionExecutors[5] instanceof ConstantExpressionExecutor)) {\n throw new ExecutionPlanValidationException(\"Constant value expected as the 6th parameter (extrema type)\"\n + \" but found \" + attributeExpressionExecutors[5].getClass());\n }\n if (!(attributeExpressionExecutors[0].getReturnType() == Attribute.Type.DOUBLE\n || attributeExpressionExecutors[0].getReturnType() == Attribute.Type.INT\n || attributeExpressionExecutors[0].getReturnType() == Attribute.Type.FLOAT\n || attributeExpressionExecutors[0].getReturnType() == Attribute.Type.LONG)) {\n throw new ExecutionPlanValidationException(\n \"Invalid parameter type found for the 1st argument (variable) of MinMaxStreamProcessor, \"\n + \"required \" + Attribute.Type.DOUBLE + \" or \" + Attribute.Type.FLOAT + \" or \"\n + Attribute.Type.INT + \" or \" + Attribute.Type.LONG + \" but found \"\n + attributeExpressionExecutors[0].getReturnType().toString());\n }\n try {\n maxPreBound = Integer.parseInt(\n String.valueOf(((ConstantExpressionExecutor) attributeExpressionExecutors[1]).getValue()));\n } catch (NumberFormatException e) {\n throw new ExecutionPlanValidationException(\n \"Invalid parameter type found for the 2nd argument (maxPreBound) of MinMaxStreamProcessor \"\n + \"required \" + Attribute.Type.INT + \" constant, but found \"\n + attributeExpressionExecutors[1].getReturnType().toString());\n }\n try {\n maxPostBound = Integer.parseInt(\n String.valueOf(((ConstantExpressionExecutor) attributeExpressionExecutors[2]).getValue()));\n } catch (NumberFormatException e) {\n throw new ExecutionPlanValidationException(\n \"Invalid parameter type found for the 3rd argument (maxPostBound) of MinMaxStreamProcessor \"\n + \"required \" + Attribute.Type.INT + \" constant, but found \"\n + attributeExpressionExecutors[2].getReturnType().toString());\n }\n if (maxPreBound == 0 && maxPostBound == 0) {\n throw new ExecutionPlanValidationException(\n \"Both post bound limit and pre bound limit cannot be 0. At least one must have a positive integer value\");\n }\n try {\n preBoundChange = Double.parseDouble(\n String.valueOf(((ConstantExpressionExecutor) attributeExpressionExecutors[3]).getValue()));\n } catch (NumberFormatException e) {\n throw new ExecutionPlanValidationException(\n \"Invalid parameter type found for the 4th argument (preBoundChange) of MinMaxStreamProcessor \"\n + \"required \" + Attribute.Type.DOUBLE + \" constant, but found \"\n + attributeExpressionExecutors[3].getReturnType().toString());\n }\n if (maxPreBound == 0) {\n if (preBoundChange != 0) {\n throw new ExecutionPlanValidationException(\"When pre bound limit is 0, the pre bound change percentage \"\n + \"should also be 0, but found \" + preBoundChange);\n }\n }\n try {\n postBoundChange = Double.parseDouble(\n String.valueOf(((ConstantExpressionExecutor) attributeExpressionExecutors[4]).getValue()));\n } catch (NumberFormatException e) {\n throw new ExecutionPlanValidationException(\n \"Invalid parameter type found for the 5th argument (postBoundChange) of MinMaxStreamProcessor \"\n + \"required \" + Attribute.Type.DOUBLE + \" constant, but found \"\n + attributeExpressionExecutors[4].getReturnType().toString());\n }\n if (maxPostBound == 0) {\n if (postBoundChange != 0) {\n throw new ExecutionPlanValidationException(\n \"When post bound limit is 0, the post bound change percentage \" + \"should also be 0, but found \"\n + postBoundChange);\n }\n }\n String extremaType = ((String) ((ConstantExpressionExecutor) attributeExpressionExecutors[5]).getValue())\n .trim();\n if (\"min\".equalsIgnoreCase(extremaType)) {\n this.extremaType = ExtremaType.MIN;\n } else if (\"max\".equalsIgnoreCase(extremaType)) {\n this.extremaType = ExtremaType.MAX;\n } else if (\"minmax\".equalsIgnoreCase(extremaType)) {\n this.extremaType = ExtremaType.MINMAX;\n } else {\n throw new ExecutionPlanValidationException(\"Only 'min', 'max' and 'minmax' values are accepted as \"\n + \"extrema type, but found value \" + extremaType);\n }\n\n eventStack = new LinkedList<StreamEvent>();\n valueStack = new LinkedList<AttributeDetails>();\n\n List<Attribute> attributeList = new ArrayList<Attribute>();\n attributeList.add(new Attribute(\"extremaType\", Attribute.Type.STRING));\n attributeList.add(new Attribute(\"preBound\", Attribute.Type.INT));\n attributeList.add(new Attribute(\"postBound\", Attribute.Type.INT));\n return attributeList;\n }",
"public static void main(String[] args) {\n\t\tA i2 = (a,b) -> a+b;\r\n\t\t//B i2 = new B();\r\n\t\tSystem.out.println(i2.add(\"10\",30));\r\n\t\t//System.out.println(i.squrtIt(10));\r\n\t\t\r\n\t}",
"protected abstract void a(bru parambru);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface IFormalParameter {\r\n\t/*\r\n\t * Fills in the given actual parameters in the formal parameters and declare\r\n\t * them in the given context\r\n\t */\r\n\tpublic void fillIn(Context context, Iterator<IReferable> _actualParams);\r\n\r\n}",
"public interface b {\n void a(int i, String str, String str2, String str3);\n\n void a(long j);\n }",
"public interface CalculatorFunction {\r\n CalculatorNode calculate(CalculatorNode[] arguments);\r\n}",
"public interface a {\n void a(String str);\n }",
"public Object eval(String expression) throws Exception;",
"double eval();",
"public interface DeBruijnOptimiserArgs extends AssemblerArgs {\n\n GenericDeBruijnOptimiserArgs getDeBruijnOptimiserArgs();\n\n void setDeBruijnOptimiserArgs(GenericDeBruijnOptimiserArgs args);\n}",
"IFMLParameter createIFMLParameter();",
"public interface IParameterizable <V extends IResolvable> {\r\n\r\n /**\r\n * Get the number of parameters of this rule.\r\n * \r\n * @return The number of parameters of this rule.\r\n */\r\n public int getParameterCount();\r\n \r\n /**\r\n * Get the parameter of this rule at the specified index.\r\n * \r\n * @param index The 0-based index of the rule parameter to be returned.\r\n * @return The rule parameter at the given index.\r\n * @throws IndexOutOfBoundsException if <code>index < 0 || index >={@link #getParameterCount()}</code>\r\n */\r\n public V getParameter(int index);\r\n\r\n}",
"public interface bik extends bie {\n boolean A();\n\n int B();\n\n int C();\n\n void D();\n\n void E();\n\n void F();\n\n String G();\n\n void H();\n\n boolean I();\n\n boolean J();\n\n String K();\n\n boolean L();\n\n void M();\n\n int a(String str);\n\n int a(String str, String str2, int i);\n\n int a(String str, String str2, String str3, int i);\n\n int a(String str, String str2, String str3, String str4);\n\n JsonDatasWithType a(String str, String str2);\n\n void a(int i);\n\n void a(bii bii);\n\n void a(bio bio);\n\n void a(bis bis);\n\n void a(bit bit);\n\n void a(biu biu);\n\n void a(biv biv);\n\n void a(biw biw);\n\n void a(bix bix);\n\n void a(biy biy);\n\n void a(biz biz);\n\n void a(bja bja);\n\n void a(bjc bjc);\n\n void a(JsFunctionCallback jsFunctionCallback);\n\n void a(String str, int i);\n\n void a(String str, bij bij);\n\n void a(String str, String str2, int i, String str3);\n\n void a(boolean z);\n\n int b(String str, String str2, int i);\n\n int b(String str, String str2, String str3, int i);\n\n GirfFavoriteRoute b(String str);\n\n String b(String str, String str2);\n\n void b();\n\n void b(int i);\n\n void b(biy biy);\n\n void b(bja bja);\n\n void b(bjc bjc);\n\n void b(String str, int i);\n\n void b(boolean z);\n\n List<String> c(int i);\n\n List<String> c(String str);\n\n List<String> c(String str, int i);\n\n void c();\n\n void c(biy biy);\n\n void c(String str, String str2);\n\n void c(boolean z);\n\n List<String> d(String str);\n\n void d();\n\n void d(boolean z);\n\n List<String> e(String str);\n\n void e();\n\n void e(boolean z);\n\n GirfFavoritePoint f(String str);\n\n void f();\n\n void f(boolean z);\n\n List<JsonDataWithId> g(String str);\n\n void g(boolean z);\n\n boolean g();\n\n JsonDatasWithType h(String str);\n\n void h(boolean z);\n\n boolean h();\n\n int i(String str);\n\n void i(boolean z);\n\n boolean i();\n\n int j(String str);\n\n void j(boolean z);\n\n boolean j();\n\n void k(boolean z);\n\n boolean k();\n\n boolean k(String str);\n\n int l(String str);\n\n int l(boolean z);\n\n boolean l();\n\n String m(String str);\n\n boolean m();\n\n GirfSyncService n();\n\n boolean n(String str);\n\n List<GirfFavoritePoint> o();\n\n List<GirfFavoritePoint> p();\n\n List<String> r();\n\n List<String> s();\n\n boolean t();\n\n List<String> u();\n\n List<String> v();\n\n boolean w();\n\n String x();\n\n List<String> y();\n\n int z();\n}",
"public interface InputParam extends Parameter {\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isEquivalent\r\n */\r\n \r\n /**\r\n * Gets all property values for the isEquivalent property.<p>\r\n * \r\n * @returns a collection of values for the isEquivalent property.\r\n */\r\n Collection<? extends Noun> getIsEquivalent();\r\n\r\n /**\r\n * Checks if the class has a isEquivalent property value.<p>\r\n * \r\n * @return true if there is a isEquivalent property value.\r\n */\r\n boolean hasIsEquivalent();\r\n\r\n /**\r\n * Adds a isEquivalent property value.<p>\r\n * \r\n * @param newIsEquivalent the isEquivalent property value to be added\r\n */\r\n void addIsEquivalent(Noun newIsEquivalent);\r\n\r\n /**\r\n * Removes a isEquivalent property value.<p>\r\n * \r\n * @param oldIsEquivalent the isEquivalent property value to be removed.\r\n */\r\n void removeIsEquivalent(Noun oldIsEquivalent);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isInputTo\r\n */\r\n \r\n /**\r\n * Gets all property values for the isInputTo property.<p>\r\n * \r\n * @returns a collection of values for the isInputTo property.\r\n */\r\n Collection<? extends MethodCall> getIsInputTo();\r\n\r\n /**\r\n * Checks if the class has a isInputTo property value.<p>\r\n * \r\n * @return true if there is a isInputTo property value.\r\n */\r\n boolean hasIsInputTo();\r\n\r\n /**\r\n * Adds a isInputTo property value.<p>\r\n * \r\n * @param newIsInputTo the isInputTo property value to be added\r\n */\r\n void addIsInputTo(MethodCall newIsInputTo);\r\n\r\n /**\r\n * Removes a isInputTo property value.<p>\r\n * \r\n * @param oldIsInputTo the isInputTo property value to be removed.\r\n */\r\n void removeIsInputTo(MethodCall oldIsInputTo);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#Label\r\n */\r\n \r\n /**\r\n * Gets all property values for the Label property.<p>\r\n * \r\n * @returns a collection of values for the Label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a Label property value.<p>\r\n * \r\n * @return true if there is a Label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a Label property value.<p>\r\n * \r\n * @param newLabel the Label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a Label property value.<p>\r\n * \r\n * @param oldLabel the Label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}",
"abstract /*package*/ Object executeRVMFunction(Function func, IValue[] posArgs, Map<String,IValue> kwArgs);",
"public interface a {\n void a();\n\n void a(al alVar);\n\n void b(al alVar);\n\n void c(al alVar);\n }",
"public static Object compileCustomFunction(Class iface, String expression, String... params) {\n\n\t\t// check for obviously invalid expressions\n\t\tif (expression == null || expression.length() == 0)\n\t\t\treturn null;\n\n\t\t// class must be an interface\n\t\tif (!iface.isInterface())\n\t\t\treturn null;\n\n\t\tString signature;\n\n\t\ttry {\n\t\t\tMethod[] methods = iface.getMethods();\n\n\t\t\t// must be a functional interface\n\t\t\tif (methods.length != 1)\n\t\t\t\treturn null;\n\n\t\t\tMethod method = methods[0];\n\t\t\tClass<?> returnType = method.getReturnType();\n\t\t\tClass<?>[] paramTypes = method.getParameterTypes();\n\n\t\t\t// method must return a value\n\t\t\tif (returnType == Void.class)\n\t\t\t\treturn null;\n\n\t\t\tString paramString = \"\";\n\n\t\t\t// add parameter types and names to the parameter list\n\t\t\tfor (int i=0; i < params.length; i++) {\n\t\t\t\tif (i > 0)\n\t\t\t\t\tparamString += \", \";\n\t\t\t\tparamString += paramTypes[i].getCanonicalName() + \" \" + params[i];\n\t\t\t}\n\n\t\t\t// build the method signature\n\t\t\tsignature = returnType.getCanonicalName() + \" \" +\n\t\t\t\t\t\tmethod.getName() + \"(\" +\n\t\t\t\t\t\tparamString + \")\";\n\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn createNewInstance(iface.getCanonicalName(),\n\t\t\t\t\t\t\t\t signature,\n\t\t\t\t\t\t\t\t expression);\n\t}",
"public interface CalculadoraGeneral {\n public String Calculo(String element);\n}",
"public abstract void interpret(EvaluationContext context);",
"public interface IInputVaries {\n double[] getParams(BufferedReader br);\n}",
"public interface Params {\n }",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"Object eval(String script, int keyCount, String... params);",
"public interface AttributeFun {\n}",
"public interface g {\n void a(int i, String str, boolean z);\n\n boolean a();\n\n void b();\n}",
"public interface Expression<Argument, Result> {\n String PLUS = \"+\";\n String MINUS = \"-\";\n\n /**\n * calculates an expressionType\n */\n void calculate();\n\n /**\n * returns result of calculated expressionType\n * @return result of expressionType\n */\n Result getResult();\n\n /**\n * @param stringExpression\n * sets arguments\n */\n void setArguments(StringExpression stringExpression);\n\n}",
"public interface Parameter {\n\n\t/**\n\t * Returns the actual parameter value given the inputs provided as arguments.\n\t * If the actual value cannot be retrieved (missing information), throws \n\t * an exception.\n\t * \n\t * @param input the input assignment\n\t * @return the actual parameter value\n\t */\n\tpublic double getParameterValue (Assignment input) ;\n\t\n\t\n\t/**\n\t * Returns the (possibly empty) set of parameter identifiers used in the \n\t * parameter object.\n\t * \n\t * @return the collection of parameter labels \n\t */\n\tpublic Collection<String> getParameterIds();\n\n\t\n\t\n\t/**\n\t * Adds the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to add\n\t * @return the result of the addition\n\t */\n\tpublic Parameter sumParameter(Parameter otherPram); \n\t\n\t/**\n\t * Multiplies the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to multiply\n\t * @return the result of the multiplication\n\t */\n\tpublic Parameter multiplyParameter(Parameter otherPram); \n\t\n}",
"public interface af {\n void a(f fVar, View view, ad adVar);\n\n void a(f fVar, View view, w wVar);\n}",
"public interface Parameter extends Serializable {\n\n /**\n * Getter fot property 'type'.\n *\n * @return a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public String getType();\n\n /**\n * Setter for property 'type'.\n *\n * @param type a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public void setType(String type);\n\n /**\n * Getter fot property 'factor'.\n *\n * @return a double with the factor of the value in scientific notation.\n */\n public Double getFactor();\n\n /**\n * Setter for property 'factor'.\n *\n * @param factor a double with the factor of the value in scientific notation.\n */\n public void setFactor(Double factor);\n\n /**\n * Getter fot property 'base'.\n *\n * @return a integer with the base in scientific notation.\n */\n public Integer getBase();\n\n /**\n * Setter for property 'base'.\n *\n * @param base a integer with the base in scientific notation.\n */\n public void setBase(Integer base);\n\n /**\n * Getter fot property 'exponent'.\n *\n * @returna integer with exponent of the value in scientific notation.\n */\n public Integer getExponent();\n\n /**\n * Setter for property 'exponent'.\n *\n * @param exponent a integer with the exponent of the value in scientific notation.\n */\n public void setExponent(Integer exponent);\n\n /**\n * Getter fot property 'value'.\n *\n * @return a String with the representation of the parameter in scientific notation.\n */\n public String getValue();\n\n /**\n * Setter for property 'value'.\n *\n * @param value a String with the representation of the parameter in scientific notation.\n */\n public void setValue(String value);\n\n /**\n * Getter fot property 'unit'.\n *\n * @return a String with the unit of the parameter.\n */\n public String getUnit();\n\n /**\n * Setter for property 'unit'.\n *\n * @param unit a String with the unit of the parameter.\n */\n public void setUnit(String unit);\n\n /**\n * Getter fot property 'uncertainty'.\n *\n * @return a double with the uncertainty.\n */\n public Double getUncertainty();\n\n /**\n * Setter for property 'uncertainty'.\n *\n * @param uncertainty a double with the uncertainty\n */\n public void setUncertainty(Double uncertainty);\n}",
"public interface Resolver {\n <T,K>K execSetParam(T src,K goal);\n}",
"public interface IExecutorBase {\n <T> T call(ICallable<T> callable) throws Exception;\n\n <T1, T2> IMVal2<T1, T2> call(ICallable<T1> callable1, ICallable<T2> callable2) throws Exception;\n\n <T1, T2, T3> IMVal3<T1, T2, T3> call(ICallable<T1> callable1, ICallable<T2> callable2, ICallable<T3> callable3) throws Exception;\n}",
"static public interface FunctionHandler\r\n {\r\n public double evaluateFunction(String nam, ArgParser args) throws ArithmeticException;\r\n }",
"<T extends Formula> T replaceArgs(T f, List<Formula> args);",
"public interface Calisan {\n double oran = 0.7;\n double ucret();\n void calisanBolumu();\n void ucretBelirle(double ucretSabiti);\n}",
"public interface j {\n void a(View view, float f2, float f3);\n}",
"public interface IFunction {\n\n @Nonnull\n String name();\n\n String process(@Nonnull final Map<String, String> args, @Nonnull final Context context);\n\n public boolean isApplicable(@Nonnull final String functionName,\n @Nonnull final Set<String> keys,\n @Nonnull final Collection<String> values,\n @Nonnull final String raw);\n}",
"public interface FitnessCalc1 {\n public double utilityFunction(Individual X);\n public double function(double x, Individual X);\n}",
"public interface i\n{\n\n public abstract void a(long l, a a1);\n}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public interface y extends d {\n f bsZ();\n\n v bxA();\n\n boolean bxL();\n}",
"public interface ICalculator {\n\n int calculate(String exp);\n\n}",
"public interface a {\n void a();\n\n void a(e eVar, Bitmap bitmap) throws IOException;\n }",
"public interface C19490tZ {\n boolean AiL(C17090pf r1);\n\n void BfK(C17090pf r1, C06270Ok r2, C73233Ja r3);\n}",
"protected abstract Value evaluate();",
"public interface Scripting {\n\n String NAME = \"cuba_Scripting\";\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param policies policies for script execution {@link ScriptExecutionPolicy}\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding, ScriptExecutionPolicy... policies);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param context map of parameters to pass to the expression, same as Binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Map<String, Object> context);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Binding binding);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param context map of parameters to pass to the script, same as Binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Map<String, Object> context);\n\n /**\n * Returns the dynamic classloader.\n * <p>Actually it is the GroovyClassLoader which parent is {@link com.haulmont.cuba.core.sys.javacl.JavaClassLoader}.\n * For explanation on class loading sequence see {@link #loadClass(String)}\n * </p>\n * @return dynamic classloader\n */\n ClassLoader getClassLoader();\n\n /**\n * Loads class by name using the following sequence:\n * <ul>\n * <li>Search for a Groovy source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a Java source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a class in classpath</li>\n * </ul>\n * It is possible to change sources in <em>conf</em> directory at run time, affecting the returning class,\n * with the following restrictions:\n * <ul>\n * <li>You can not change source from Groovy to Java</li>\n * <li>If you had Groovy source and than removed it, you'll still get the class compiled from those sources\n * and not from classpath</li>\n * </ul>\n * You can bypass these restrictions if you invoke {@link #clearCache()} method, e.g. through JMX interface\n * CachingFacadeMBean.\n * @param name fully qualified class name\n * @return class or null if not found\n */\n @Nullable\n Class<?> loadClass(String name);\n\n /**\n * Loads a class by name using the sequence described in {@link #loadClass(String)}.\n *\n * @param name fully qualified class name\n * @return class\n * @throws IllegalStateException if the class is not found\n */\n Class<?> loadClassNN(String name);\n\n /**\n * Remove compiled class from cache\n * @return true if class removed from cache\n */\n boolean removeClass(String name);\n\n /**\n * Clears compiled classes cache\n */\n void clearCache();\n\n}",
"public void a(float paramFloat, int paramInt)\r\n/* 15: */ {\r\n/* 16:132 */ bsu.z().N().a(bvo.a);\r\n/* 17:133 */ bub.a(0, 0, 128.0F, 0.0F, 16, 16, 256.0F, 256.0F);\r\n/* 18: */ }",
"public interface IDisplay {\n\t\n\t\tpublic abstract void aggiorna(String damostrare);\n}",
"public interface d {\n void a(RectF rectF);\n}",
"public interface OperatorInterface {\n public Object call(Engine engine, List<?> args);\n}",
"public interface trans_ArqOperations \r\n{\r\n byte[] envia_Arq (String fName);\r\n void set_clienteSA (String parth, int id);\r\n}",
"public atx(String paramString, float paramFloat1, float paramFloat2)\r\n/* 8: */ {\r\n/* 9:157 */ this.a = paramString;\r\n/* 10:158 */ this.b = paramFloat1;\r\n/* 11:159 */ this.c = paramFloat2;\r\n/* 12: */ }",
"public void b(fn paramfn)\r\n/* 241: */ {\r\n/* 242:254 */ paramfn.a(\"xTile\", (short)this.c);\r\n/* 243:255 */ paramfn.a(\"yTile\", (short)this.d);\r\n/* 244:256 */ paramfn.a(\"zTile\", (short)this.e);\r\n/* 245:257 */ oa localoa = (oa)atr.c.c(this.f);\r\n/* 246:258 */ paramfn.a(\"inTile\", localoa == null ? \"\" : localoa.toString());\r\n/* 247:259 */ paramfn.a(\"shake\", (byte)this.b);\r\n/* 248:260 */ paramfn.a(\"inGround\", (byte)(this.a ? 1 : 0));\r\n/* 249:262 */ if (((this.h == null) || (this.h.length() == 0)) && ((this.g instanceof ahd))) {\r\n/* 250:263 */ this.h = this.g.d_();\r\n/* 251: */ }\r\n/* 252:265 */ paramfn.a(\"ownerName\", this.h == null ? \"\" : this.h);\r\n/* 253: */ }",
"public interface AI {\n\n public void getMoveOfAI(List<List<Field>> fields, int lastPositionX, int lastPositionY, int[] data);\n public void getMoveOfAI(List<List<Field>> fields, FieldAdapter.bestScore bestScoreX, FieldAdapter.bestScore bestScoreO, int[] data);\n\n\n}",
"public interface afj {\n afh a();\n\n afi b();\n}",
"public interface IArgsParser {\r\n\tvoid parse(String [] aParams, Iterable<IArgument> args);\r\n}",
"public interface Test171Outputs {\n\t\n\t//double firstNumber=100.00;\n //double SecondNumber=20.00;\nstatic double add(double a, double b){\nreturn a+b;\n}\nstatic double sub(double a, double b) {\nreturn a-b;\t\n}\nstatic double mul(double a, double b) {\nreturn a*b;\t\t\n}\nstatic double dev(double a, double b) {\nreturn a-b;\t\t\n}\n\nabstract class Function {\n}\n\t//private static double SecondNumder;\n\t //void add(double firstNumber, double SecondNumber) {\n\t//return(a+b)\t;\n //}\n\t//@Override\n\t//public default void sub(double firstNumber, double SecondNumder) {\n\t//System.out.println(\"Result is ::: \"+ (firstNumber - SecondNumder));\t\t\n\t//}\n\t//@Override\n\t//public default void mult(double firstNumber, double SecondNumder) {\n\t//System.out.println(\"Result is ::: \"+ (firstNumber * SecondNumder));\t\n\t//}\n\t//@Override\n\t//public default void dev(double firstNumber, double SecondNumder) {\n\t//System.out.println(\"Result is ::: \"+ (firstNumber / SecondNumder));\t\n\t//}\n\t//abstract class Test171Outputs {\n\t\t\n //(double a, double b);\n\t\t//(double firstNumber, double SecondNumder);\n\t\t//public abstract void multMethod(double firstNumber, double SecondNumder);\n\t\t//public abstract void devMethod(double firstNumber, double SecondNumder);\t\n\t\n\n\npublic static void main(String[] args, double a, double b) {\n\t\n\n\t\n\n\tdouble firstNumber=100.00;\n\tdouble SecondNumber=20.00;\n\tAny fun=new Any();\n\t\n\t//public add (double a,double b) {\n\t//return a+b;\n\t//}\n\t//public void subMethod(double a,double b) {\t\n\t//}\n\t//public void mulMethod(double a,double b) {\t\n\t//}\n\t//public void devMethod(double a,double b) {\n\t\t\n\tSystem.out.println(\"Result is ::: \"+ (a + b));\t\n\tSystem.out.println(\"Result is ::: \"+ (a - b));\t\n\tSystem.out.println(\"Result is ::: \"+ (a * b));\t\n\tSystem.out.println(\"Result is ::: \"+ (a / b));\n\t\n\t\n}\n\t //@Override\n}",
"public interface Calculable {\n double doCalculation(String value) throws NumberFormatException ;\n}",
"public interface RunBuilder\n{\n public RunBuilder setParameter(String name, String value);\n\n public RunBuilder setParameter(String name, File value);\n\n public boolean run();\n}",
"public interface CalculatorMathEngine {\n\n @NotNull\n String evaluate(@NotNull String expression) throws ParseException;\n\n @NotNull\n String simplify(@NotNull String expression) throws ParseException;\n\n @NotNull\n String elementary(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic evaluateGeneric(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic simplifyGeneric(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic elementaryGeneric(@NotNull String expression) throws ParseException;\n}",
"public interface ICalcView {\n\n // 문자를 입력 받는다\n void append(String factor);\n\n // 결과를 출력한다\n String showresult(String result);\n // 식을 분리하는 메서드\n\n // 입력된 값을 넘겨주는 메서드\n String transferSentece();\n\n}",
"public interface Hello{\n String res(String paramString) ;\n}",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public interface FunctionDataModel {\n\n /**\n * Return output data range. called by PlotModel during auto scaling if\n * the funtion is y=2x and given referenceRange is (0,3), this method should\n * return RealRange(0,0,3,6).\n * \n * @param referenceRange\n * reference range to calculate data range\n * @retrun output data range calculated from reference range.\n */\n public RealRange getReferenceRange(RealRange referenceRange);\n\n /**\n * Return output dimensions. Here x == 0, y == 1, and z == 2. The rest\n * dimensions mean input parameter. For example, if the data model is like\n * 'y=f(x)', getOutputDimension() == {1}. If 'x=f(y,z)', the result is {0}.\n * \n * @retrun output dimensions.\n */\n public int[] getOutputDimensions();\n\n}"
] | [
"0.61826533",
"0.61224806",
"0.587828",
"0.5814722",
"0.55742514",
"0.55583936",
"0.5552957",
"0.5536007",
"0.5536007",
"0.55140644",
"0.55126476",
"0.5445388",
"0.54439485",
"0.54341435",
"0.5423974",
"0.53709805",
"0.5367038",
"0.53640556",
"0.5335708",
"0.53355575",
"0.5319759",
"0.52963287",
"0.5291866",
"0.52823704",
"0.52599657",
"0.52522206",
"0.52508944",
"0.52467096",
"0.5246115",
"0.52420276",
"0.5231438",
"0.5231156",
"0.52282286",
"0.5212483",
"0.5160714",
"0.51579434",
"0.51567024",
"0.5153852",
"0.5145547",
"0.5135244",
"0.51264524",
"0.51207024",
"0.5091181",
"0.50881606",
"0.5081863",
"0.5080706",
"0.5078138",
"0.5064456",
"0.50622684",
"0.5049043",
"0.50433034",
"0.5043142",
"0.50406736",
"0.5039708",
"0.50344634",
"0.5022909",
"0.50228375",
"0.5020712",
"0.5019717",
"0.50179553",
"0.50038886",
"0.50026554",
"0.4994606",
"0.49925816",
"0.49919018",
"0.4990984",
"0.49819803",
"0.49701357",
"0.49632743",
"0.49477628",
"0.49468958",
"0.49439326",
"0.49414974",
"0.49369782",
"0.49306124",
"0.49303672",
"0.49294865",
"0.49260318",
"0.49249482",
"0.4922901",
"0.49161983",
"0.4913479",
"0.49120343",
"0.49107146",
"0.49106047",
"0.49064624",
"0.49050942",
"0.48995793",
"0.48960736",
"0.48921293",
"0.48919988",
"0.4891076",
"0.488879",
"0.4888341",
"0.48840714",
"0.48797715",
"0.48744285",
"0.48736995",
"0.48678607",
"0.48602226",
"0.48574033"
] | 0.0 | -1 |
String string = "110011011"; | public static void main(String[] args)
{
String string = "101101101";
int[][] dp = new int[string.length()+1][string.length() +1];
int len = string.length();
for (int i=0 ; i<= len ;i++) {
for (int j=0 ;j<=len ;j++) {
dp[i][j] = -1;
}
}
System.out.println(minPartitions(string, 0, string.length() -1, dp));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int beautifulBinaryString(String b) {\n int index = b.indexOf(\"010\", 0) ;\n int change = 0;\n while (index != -1) {\n change++;\n index = b.indexOf(\"010\", index + 3) ;\n }\n return change;\n }",
"public static int stringToBits(String s) {\n if (s.length() > 32) throw new RuntimeException(\"Cannot handle more than 32 bits. input='\" + s + \"'\");\n\n int retVal = 0;\n for (int i = 0; i <= (s.length() - 1); i++) {\n if (s.charAt(i) == '1') {\n retVal = retVal + 1;\n }\n if (i < (s.length() - 1))\n retVal <<= 1;\n }\n return retVal;\n }",
"public static String fakeBin(String numberString) {\n numberString = numberString.replaceAll(\"[0-4]\", \"0\");\n numberString = numberString.replaceAll(\"[5-9]\", \"1\");\n return numberString;\n }",
"public static String BitStringToText(String s) {\n StringBuffer sb = new StringBuffer();\n int begIndex = 0;\n int endIndex = 8;\n for (int i = 0; i < s.length() / 8; i++) {\n String chunk = s.substring(begIndex, endIndex);\n int charCode = Integer.parseInt(chunk, 2);\n String y = new Character((char) charCode).toString();\n sb.append(y);\n begIndex += 8;\n endIndex += 8;\n }\n return sb.toString();\n }",
"@Test\n public void test2(){\n\n String s =\"1000000000000001\";\n //s = BinaryCalculate.BinaryArithmeticalRightShift(s,1);\n s = BinaryCalculate.BinaryLogicRightShift(s,1);\n int a = BitConversion.fromBinaryStringToInt(s);\n System.out.println(a);\n }",
"public static String TextToBinary(String input){\n\t\tString output = \"\";\n\t\tfor(int i = 0; i < input.length(); i++){\n\t\t\toutput += Integer.toBinaryString(0x100 | input.charAt(i)).substring(1);\n\t\t}\n\t\treturn output;\n\t}",
"public static String getCheckNumber(String paramString){\n int i =paramString.substring(0, 1).getBytes()[0];\n for(int j=1;;j++){\n if(j>=paramString.length())\n return intToHex(Integer.valueOf(i));\n i=(byte)(i^paramString.substring(j, j+1).getBytes()[0]);\n\n }\n }",
"public static BitSet BitStringToBitSet(String s) {\n BitSet result = new BitSet();\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == '1') {\n result.set(i);\n }\n }\n return result;\n }",
"private static int createBitVector(String str) {\n\t\tint bitVector = 0;\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tint x = getCharNum(c);\n\t\t\tbitVector = toggle(bitVector, x);\n\t\t}\n\t\treturn bitVector;\n\t}",
"public String stringBits(String str) {\n if (str.length() < 1) {\n return \"\";\n } else if (str.length() < 2) {\n return str;\n } else {\n return str.charAt(0) + stringBits(str.substring(2));\n }\n }",
"private int convertstringtobyte(String string) {\n return Integer.parseInt(string, 16);\n }",
"@Test\n public void decodeString()\n {\n final BinaryEncoder encoder = new BinaryEncoder(16);\n assertThat(encoder.decode(\"0011\"), is(3.0));\n }",
"public String cleanTheBinString(String input) {\n String result = \"\";\n if (input != null && !input.isEmpty()) {\n\n for (int k = 0; k < input.length(); k++) {\n if (!(input.charAt(k) == '0' || input.charAt(k) == '1') || input.charAt(k) == ' ') {\n } else\n result = result + Character.toString(input.charAt(k));\n }\n\n }\n\n return result;\n }",
"String getIndexBits();",
"public static void main(String[] args) {\nint t = 101010101;\n// koden begynner her\nString s = \"\";\nwhile ( t % 10 > 0 ) {\ns = t % 10 + s;\nt = t / 10;\n}\ns = \"s = \" + s;\nout.println(s);\n\n }",
"private final static String remZero( String s ) {\n\n\n int memid = 0;\n String newS = \"\";\n\n //\n // convert string to int to drop leading zeros\n //\n try {\n memid = Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n // ignore error\n }\n\n newS = String.valueOf( memid ); // convert back to string\n\n return new String (newS);\n\n }",
"public static String stringToHex(String string) \n {\n StringBuilder buf = new StringBuilder(200);\n for (char ch: string.toCharArray()) \n {\n buf.append(String.format(\"%02X\", (int) ch)); //Cambiado %02x por %02X pra que las letras del hexadecimal salgan en mayusculas\n }\n return buf.toString();\n }",
"public static String binaryCode(String n)\n\t{\n\t\tString retValue = \"\";\n\n\t\tint num = Integer.parseInt(n);\t//convert the input string into int\n\n\t\twhile(num>0)\n\t\t{\n\t\t\tif(num==1)\n\t\t\t\tretValue += num;\n\t\t\telse\n\t\t\t\tretValue += Integer.toString(num%2);\t//resto della divisione\n\t\t\t\tnum = num/2;\t\t\t\t\t\t\t//divide the number by 2\n\t\t}\n\n\t\treturn new StringBuilder(retValue).reverse().toString();\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public BinaryNumber(String str) {\n\t\tint length = str.length();\n\t\tdata = new int[length];\n\t\tfor(int i = 0;i < str.length();i++) {\n\t\t\tint number = Character.getNumericValue(str.charAt(i));\n\t\t\tif (number == 0||number == 1) {\n\t\t\t\tdata[i] = number;\n\t\t\t}\n\t\t}\n\t}",
"static String hexToBin(String s) {\n\t\treturn new BigInteger(s, 16).toString(2);\n\t}",
"private static BitString convertToBitString(final String theBits) {\n\t\treturn BitString.fromBits(32, theBits.toCharArray());\n\t}",
"public static byte str2byte(String s) {\r\n byte b = (byte) 0;\r\n int i;\r\n if (s.length() == 8 && s.matches(regex)) {\r\n i = Integer.parseInt(s, 2);\r\n if (i >= 0 && i <= 255) {\r\n b = (byte) i;\r\n } else {\r\n System.out.println(\"string out of range\");\r\n }\r\n }\r\n return b;\r\n }",
"static String convert(String bits) {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(String.valueOf(hexLookUp.charAt(Integer.parseInt(bits, 2))));\n\t\tString hex = stringBuilder.toString();\n\t\treturn hex;\n\t}",
"public String binToHex(String input) {\r\n int decimal = Integer.parseInt(input,2);\t\r\n\t\treturn Integer.toString(decimal,16);\t\r\n\t}",
"private final static String remZeroS( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length - 1];\n\n\n for ( int i=0; i<ca2.length; i++ ) {\n ca2[i] = ca[i+1];\n } // end for\n\n return new String (ca2);\n\n }",
"static int[] hexStringToBits(String hex) {\n int[] bits = new int[128];\n for (int i = 0; i < hex.length(); i++) {\n int n = (int)hex.charAt(i);\n for (int j = 0; j < 4; j++) {\n bits[4 * i + j] = (n >> (3 - j)) & 1;\n }\n }\n return bits;\n }",
"void mo9058ad(String str, int i);",
"C1111j mo5881f(String str);",
"boolean isBinary(String str)\n\t{\n\t if(str.length() < 1) return false;\n\t \n\t for(int i=0; i<str.length(); i++){\n\t char t = str.charAt(i);\n\t if(t=='1' || t=='0') continue;\n\t else return false;\n\t }\n\t \n\t return true;\n\t}",
"static StringBuilder convert_to_binary(String msg) {\n byte[] bytes = msg.getBytes();\r\n StringBuilder binary = new StringBuilder();\r\n for (byte b : bytes) {\r\n int val = b;\r\n for (int i = 0; i < 8; i++) {\r\n binary.append((val & 128) == 0 ? 0 : 1);\r\n val <<= 1;\r\n }\r\n binary.append(\"\");\r\n }\r\n return binary;\r\n }",
"public static String toBinaryString(int number) {\r\n\t\tString result = \"\";\r\n\t\tint origin = Math.abs(number);\r\n\r\n\t\twhile (origin > 0) {\r\n\t\t\tif (origin % 2 == 0)\r\n\t\t\t\tresult = \"0\" + result;\r\n\t\t\telse\r\n\t\t\t\tresult = \"1\" + result;\r\n\t\t\torigin = origin / 2;\r\n\t\t}\r\n\t\twhile (result.length() < 16)\r\n\t\t\tresult = \"0\" + result;\r\n\r\n\t\tif (number > 0)\r\n\t\t\treturn result;\r\n\t\telse {\r\n\t\t\tString result2 = \"\";\r\n\t\t\tfor (int i = 0; i < result.length(); i++)\r\n\t\t\t\tresult2 += result.charAt(i) == '1' ? \"0\" : \"1\";\r\n\t\t\tchar[] result2Array = result2.toCharArray();\r\n\t\t\tfor (int i = result2Array.length - 1; i >= 0; i--)\r\n\t\t\t\tif (result2Array[i] == '0') {\r\n\t\t\t\t\tresult2Array[i] = '1';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else\r\n\t\t\t\t\tresult2Array[i] = '0';\r\n\t\t\tresult2 = \"\";\r\n\t\t\tfor (int i = 0; i < result2Array.length; i++)\r\n\t\t\t\tresult2 += String.valueOf(result2Array[i]);\r\n\t\t\treturn result2;\r\n\t\t}\r\n\t}",
"public static boolean allUnique2(String s ){\n\t\tint value = 0;\n\t\tchar[] chars = s.toCharArray();\n\t\tfor(char c : chars) \n\t\t{\t\n\t\t\tint i = c -'a';\n\t\t\tif(((1<<i+1)&value)>0)\n\t\t\t\treturn false;\n\t\t\tvalue = value | (1<<i+1);\n\t\t}\n\t\treturn true;\n\t}",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }",
"private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}",
"public static String fillZero(String string) {\n\t\tif(string.length() == 2) {\n\t\t\treturn string;\n\t\t}else {\n\t\t\treturn \"0\" + string;\n\t\t}\n\t}",
"private static int ones(String s)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++)\r\n\t\t{\r\n\t\t\tif(s.charAt(i) == '1')\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int hexToBin(String input) {\r\n\t\treturn Integer.valueOf(new BigInteger(input, 16).toString(2));\t\t\r\n\t}",
"public static List<String> splitBitStrings(String bitString){\n\t\tList<String> LR = new ArrayList<String>();\n\t\tString L = bitString.substring(0,(bitString.length()/2));\n\t\tString R = bitString.substring((bitString.length()/2),bitString.length());\n\t\tLR.add(L);\n\t\tLR.add(R);\n\t\t\n\t\treturn LR;\n\n\t}",
"private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }",
"public static String fill5(String valueStr) {\n\t\t\r\n\t\tif (valueStr.length()==1) return valueStr+\"00000\";\r\n\t\tif (valueStr.length()==2) return valueStr+\"0000\";\r\n\t\tif (valueStr.length()==3) return valueStr+\"000\";\r\n\t\tif (valueStr.length()==4) return valueStr+\"00\";\r\n\t\tif (valueStr.length()==5) return valueStr+\"0\";\r\n\t\t//if (valueStr.length()==6) return valueStr+\"00000\";\r\n\t\t\r\n\t\treturn valueStr;\r\n\t}",
"public int stringToInt(String bytesStr) {\r\n int result = 0;\r\n for(char b : bytesStr.toCharArray())\r\n result = (result << 8) + (int)b;\r\n return result;\r\n }",
"private static final int m40100b(String str) {\n int length = str.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n i = -1;\n break;\n } else if (!C12798a.m40012a(str.charAt(i))) {\n break;\n } else {\n i++;\n }\n }\n return i == -1 ? str.length() : i;\n }",
"public static boolean isPalindrom(int a) {\n String bitStr = toBinary(a);\n //System.out.println(bitStr);\n System.out.println(Integer.toBinaryString(a));\n if(bitStr.length() < 2) {\n return true;\n }\n int i = 0;\n int j = bitStr.length() - 1;\n while(i < j) {\n if(bitStr.charAt(i) != bitStr.charAt(j)) {\n return false;\n }\n i++;\n j--;\n }\n return true;\n }",
"private static String scramble(final String byte_, final boolean reverse)\n\t{\n\t\tStringBuilder builder = new StringBuilder(byte_);\n\t\tfor( int i = 0; i < byte_.length(); i ++)\n\t\t\tif(byte_.charAt(i) == ( !reverse ? BIT_ONE : BIT_ZERO))\n\t\t\t{\n\t\t\t\tbuilder.setCharAt(i, ( !reverse ? BIT_ZERO : BIT_ONE));\n\t\t\t\treturn builder.toString();\n\t\t\t}\n\t\treturn null;\n\t}",
"static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }",
"public int stringBinaryToInteger(String str)\n\t{\n\t\tif(str!=null)\n\t\t{\n\t\t\tint result = 0;\n\t\t\tint power = 0;\n\t\t\tfor(int i=str.length()-1; i>=0;i--)//Decrementing since we need to go from right to left\n\t\t\t{\n\t\t\t\t//\t\t\tSystem.out.println(\"str.charAt(i):\"+str.charAt(i));\n\t\t\t\tresult += Integer.parseInt(\"\"+str.charAt(i))*Math.pow(2, power++);\n\t\t\t}\n\t\t\tSystem.out.println(\"Result:\"+result);\n\t\t\treturn result;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Empty String\");\n\t\t\treturn 0;\n\t\t}\n\t}",
"public static StringBuilder stringtoBinary(final String text)\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tbuilder.append(Long.toBinaryString(text.charAt(0)));\n\t\tfor(int i = 1; i < text.length(); i ++)\n\t\t\tbuilder.append(BYTE_DELIMITER+Long.toBinaryString(text.charAt(i)));\n\t\treturn builder;\n\t}",
"public static int getInt(String str){\n int num=0;\n int count = 0;\n if (str.length() == 7)\n return 0;\n for (int i = str.length()-8; i >= 0; i --){\n if (str.charAt(i) == '1') {\n num += Math.pow(2, count);\n }\n count ++;\n }\n return num;\n }",
"public static String complete(String string) throws IntegerTooBigException {\n StringBuilder sb = new StringBuilder();\n if(string.length() < 32){\n for(int i=0;i<32 - string.length();i++){\n sb.append(\"0\");\n }\n }\n sb.append(string);\n return sb.toString();\n }",
"@Test\n public void decodeStringNegative()\n {\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n assertThat(encoder.decode(\"0011\"), is(-5.0));\n }",
"String einfachesErsetzen(String s) {\n\t\tString newS = s.replace(\"2\", \"0\");\n\t\tif (newS == s) {\n\t\t\tSystem.out.println(\"gleich\");\n\t\t}\n\t\treturn newS;\n\t}",
"public static int convertStringToInt(String input){\n\t if(input.length()==0)\n\t return 0;\n\t \n\t int m=(int)input.charAt(0)-48;\n\t int n=input.length();\n\t \n\t while(n!=1)\n\t {\n\t m*=10;\n\t n--;\n\t }\n\t \n\t return m+convertStringToInt(input.substring(1,input.length()));\n\t \n\t \n\t\t\n\t}",
"public String intToString(String s) {\r\n int x = s.length();\r\n char[] bytes = new char[4];\r\n for(int i = 3; i > -1; --i) {\r\n bytes[3 - i] = (char) (x >> (i * 8) & 0xff);\r\n }\r\n return new String(bytes);\r\n }",
"static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }",
"private static String convertStringToHex(String input){\n\t\tchar[] chars = input.toCharArray();\n\t\tStringBuffer hexOutput = new StringBuffer();\n\t\t\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\thexOutput.append(Integer.toHexString((int)chars[i]));\n\t\t}\n\n\t\treturn hexOutput.toString();\n\t}",
"private static String getCheckSum(String msg)\n {\n byte y = 0;\n String chk = null;\n for (int x = 0; x < msg.length() - 1; x++) {\t\t\n if (msg.charAt(x) == '*') { // Detect the asterisk \n break;\n } else {\n y ^= (msg.charAt(x) & 0X7F); // Buffer 127 bit\t \t\t\n }\n }\n chk = Integer.toHexString(y).toUpperCase();\n if (chk.length() == 1) {\n chk = \"0\" + chk;\n }\t\t\n return chk;\n }",
"public String toBitString (int i) {\n\tint[] result = new int[64];\n\tint counter = 0;\n\twhile (i > 0) {\n\t\tresult[counter] = i % 2;\n\t\ti /= 2;\n\t\tcounter++;\n\t}\n\tString answer = \"\";\n\tfor (int j = 0; j < counter; j++)\n\t\tanswer += \"\" + result[j];\n\treturn answer;\t\n}",
"C12000e mo41087c(String str);",
"private static String zeroPaddedBitString(int value) {\n String bitString = Integer.toBinaryString(value);\n return String.format(\"%32s\", bitString).replace(\" \", \"0\");\n }",
"private void sumbit(String ip){\n }",
"public static Bits fromBinaryString(String binaryString) {\n final int length = binaryString.length();\n final boolean bitsFit = (length % 8) == 0;\n final Bits bits = new Bits(new byte[length / 8 + (bitsFit ? 0 : 1)]);\n\n for (int i = 0; i < length; i++)\n if (binaryString.charAt(i) == '1')\n bits.setBit(i);\n else\n bits.unsetBit(i);\n\n return bits;\n }",
"private static String hex(String binStr) {\n\n\n\t\tString newStr = new String();\n\n\t\ttry {\n\t\t\tString hexStr = \"0123456789ABCDEF\";\n\t\t\tbyte[] p = binStr.getBytes();\n\t\t\tfor (int k = 0; k < p.length; k++) {\n\t\t\t\tint j = (p[k] >> 4) & 0xF;\n\t\t\t\tnewStr = newStr + hexStr.charAt(j);\n\t\t\t\tj = p[k] & 0xF;\n\t\t\t\tnewStr = newStr + hexStr.charAt(j) + \" \";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.info(\"Failed to convert into hex values: \" + e);\n\t\t}\n\t\treturn newStr;\n\t}",
"@Test\n public void calculationOnElevenDigitMsgIsCorrect() {\n final String msg = \"00110001110\";\n final int[] expectedMsg = {0,0,1,0, 1,0,1,1, 1,0,0,0, 1,1,1,0};\n\n // When\n int[] transformedMsg = HammingAlgorithm.calculate(msg);\n\n // Then\n assertThat(transformedMsg).isEqualTo(expectedMsg);\n }",
"public static String fill3(String valueStr) {\n\t\t\r\n\t\tif (valueStr.length()==1) return valueStr+\"00\";\r\n\t\tif (valueStr.length()==2) return valueStr+\"0\";\r\n\t\t//if (valueStr.length()==6) return valueStr+\"00000\";\r\n\t\t\r\n\t\treturn valueStr;\r\n\t}",
"static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }",
"public String addBinString(String s1, String s2) {\r\n // not invalid input, only 0 and 1, no leading 0, \r\n // first char is the most significant\r\n // no perf requirement\r\n // formal api requirement ( documentations, comments, meaningful names), or focus on correctness of the implementation first.\r\n if(s1==null || s1.length() ==0)\r\n return s2;\r\n if(s2==null || s2.length() ==0)\r\n return s1;\r\n \r\n StringBuffer buf1 = new StringBuffer(s1);\r\n StringBuffer buf2 = new StringBuffer(s2);\r\n if(s1.length()<s2.length()) {\r\n StringBuffer tmp = buf1;\r\n buf1 = buf2;\r\n buf2 = tmp;\r\n }\r\n \r\n buf1.reverse();\r\n buf2.reverse();\r\n StringBuffer res = new StringBuffer(); \r\n int carry = 0;\r\n for(int i=0;i< buf1.length();i++) {\r\n char c1 = buf1.charAt(i);\r\n char c2 = '0';\r\n if(i<buf2.length())\r\n c2 = buf2.charAt(i);\r\n int sum = (c1 -'0') + (c2 -'0') + carry;\r\n if(sum%2 ==1)\r\n res.append('1');\r\n else\r\n res.append('0');\r\n carry = sum / 2;\r\n }\r\n if(carry ==1)\r\n res.append(\"1\");\r\n return res.reverse().toString();\r\n\r\n }",
"public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }",
"private String preparaMensaje(String mensaje){\n String binario;\n int longitud = 0;\n String bi=\"\";\n longitud = mensaje.length() + 4;\n for( int i = 15; i>=0; i--){\n bi += ( ( ( longitud & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario = cadenaABinario(\" \") + bi + cadenaABinario(mensaje);\n }",
"private String Rellenar(String cadena) \n {\n String c = \"\";\n for(int i=0; i<cadena.length();i++)\n {\n c+=Completar(Integer.toBinaryString( cadena.charAt(i)),8);\n }\n //Completar para que sea multiplo de 512\n int longitud = c.length();\n c+=\"1\";\n while((c.length()+64)%512!=0)\n c+=\"0\";\n c+=Completar(Integer.toBinaryString(longitud),64);\n return c;\n }",
"private static void spacesToBinary() {\n\t\tString stringBinary = \"\"; \n\t\tfor(int i = 0; i < spaces.length; i++) {\n\t\t\tif(spaces[i].length() % 2 == 0) { stringBinary += \"1\"; }\n\t\t\telse if(spaces[i].length() % 2 == 1) { stringBinary += \"0\"; }\n\n\t\t\tif(i != 0 && (i+1) % 5 == 0) {\n\t\t\t\tbinary.add(stringBinary);\n\t\t\t\tstringBinary = \"\";\n\t\t\t} \n\t\t\telse if(i+1 == spaces.length) {\n\t\t\t\tfor(int k = (i+1)%5; k < 5; k++) {\n\t\t\t\t\tstringBinary += \"0\";\n\t\t\t\t}\n\t\t\t\tbinary.add(stringBinary);\n\t\t\t\tstringBinary = \"\";\n\t\t\t}\n\t\t}\n\t}",
"public static BitSet createBitSetFromBinaryString(String bitsAsBinaryString) {\r\n\t\tBitSet bitSet = new BitSet(bitsAsBinaryString.length());\r\n\r\n\t\tfor (int i = 0; i < bitsAsBinaryString.length(); i++) {\r\n\t\t\tif (bitsAsBinaryString.substring(i, i + 1).equals(\"1\")) {\r\n\t\t\t\tbitSet.set(i, true);\r\n\t\t\t} else {\r\n\t\t\t\tbitSet.set(i, false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bitSet;\r\n\t}",
"public static byte[] hexToBytes(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] =\n (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));\n }\n return data;\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tString s = \"9123401\";\r\n\tint a =\tInteger.parseInt(String.valueOf(s.charAt(0)));\r\n\t\r\n\tint b = s.charAt(0) -'0';\r\n//\tSystem.out.println((int)'0');\r\n\tSystem.out.println(b);\r\n//\tSystem.out.println(a);\r\n\r\n\t}",
"public static String timeConversion(String s) {\n // Write your code here\n String end = s.substring(2, s.length() - 2);\n String ans = s.substring(0, s.length() - 2);\n if (s.charAt(8) == 'A') {\n return s.startsWith(\"12\") ? \"00\" + end : ans;\n }\n\n return s.startsWith(\"12\") ? ans : (Integer.parseInt(s.substring(0, 2)) + 12) + end;\n }",
"public static byte[] fromHexString( String s ) \r\n { \r\n int stringLength = s.length(); \r\n if ( ( stringLength & 0x1 ) != 0 ) \r\n { \r\n throw new IllegalArgumentException( \"fromHexString requires an even number of hex characters\" ); \r\n } \r\n byte[] bytes = new byte[stringLength / 2]; \r\n \r\n for ( int i = 0, j = 0; i < stringLength; i += 2, j++ ) \r\n { \r\n int high = charToNibble( s.charAt( i ) ); \r\n int low = charToNibble( s.charAt( i + 1 ) ); \r\n // You can store either unsigned 0..255 or signed -128..127 bytes in a byte type. \r\n bytes[ j ] = ( byte ) ( ( high << 4 ) | low ); \r\n } \r\n return bytes; \r\n }",
"public static void pack (int []n, String s) {\n\t\tfor (int i = 0; i < n.length; i++) {n[i] = 0; }\n\t\t\n\t\tint idx = n.length-1;\n\t\tfor (int i = s.length()-1; i >= 0; i--) {\n\t\t\tn[idx--] = s.charAt(i) - '0';\n\t\t}\n\t}",
"private byte[] toByteArray(String s)\r\n\t\t{\n\t\t\tlong l = 0;\r\n\t\t\tif (s.startsWith(\"0x\") || s.startsWith(\"0X\")) {\r\n\t\t\t\tfinal byte[] d = new byte[(s.length() - 1) / 2];\r\n\t\t\t\tint k = (s.length() & 0x01) != 0 ? 3 : 4;\r\n\t\t\t\tfor (int i = 2; i < s.length(); i = k, k += 2)\r\n\t\t\t\t\td[(i - 1) / 2] = (byte) Short.parseShort(s.substring(i, k), 16);\r\n\t\t\t\treturn d;\r\n\t\t\t}\r\n\t\t\telse if (s.length() > 1 && s.startsWith(\"0\"))\r\n\t\t\t\tl = Long.parseLong(s, 8);\r\n\t\t\telse if (s.startsWith(\"b\"))\r\n\t\t\t\tl = Long.parseLong(s.substring(1), 2);\r\n\t\t\telse\r\n\t\t\t\tl = Long.parseLong(s);\r\n\t\t\tint i = 0;\r\n\t\t\tfor (long test = l; test != 0; test /= 0x100)\r\n\t\t\t\t++i;\r\n\t\t\tfinal byte[] d = new byte[i == 0 ? 1 : i];\r\n\t\t\tfor (; i-- > 0; l /= 0x100)\r\n\t\t\t\td[i] = (byte) (l & 0xff);\r\n\t\t\treturn d;\r\n\t\t}",
"private static String m11991b(String str) {\n return C3171d.m11993b(str);\n }",
"int retrieveString(byte s[]);",
"private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }",
"private byte[] stringToBytes(String bytesInStringForm) {\n byte[] bytes = new byte[16];\n String[] byteValues = bytesInStringForm.split(\",\");\n for (int byteIndex = 0; byteIndex < 16; byteIndex++) {\n bytes[byteIndex] = (byte) Integer.parseInt(byteValues[byteIndex]);\n }\n return bytes;\n\n }",
"void mo5875b(String str, long j);",
"String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}",
"String mo2801a(String str);",
"static String binToHex(String binaryStr) {\n\t\tint bin = Integer.parseInt(binaryStr, 2);\n\t\tString hexStr = Integer.toString(bin, 16);\n\n\t\treturn hexStr;\n\t}",
"private static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n\t\t\t\t\t+ Character.digit(s.charAt(i+1), 16));\n\t\t}\n\t\treturn data;\n\t}",
"public static void main(String[] args) {\n\n testUnicode();\n\n String str = \"1024\";\n // int num = Integer.parseInt(str);\n int num = Integer.valueOf(str, 16);// ??str?��????????16????????????????int\n System.out.println(num);\n\n String s1 = \"???\";\n try {\n String s2 = new String(s1.getBytes(\"GB2312\"), \"ISO-8859-1\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n System.out.println(str.substring(1));\n\n System.out.println(reverse(str));\n }",
"public int pid_0101(String str) \n {\n \n int num_of_TC; \n char ON_OFF; \n String first_byte;\n first_byte=new String(str.substring(0,1));\n MathLib operations= new MathLib(); \n ON_OFF=operations.HexToBin(first_byte).charAt(0);//Bit 0\n if (ON_OFF=='1')//Then the lamp is ON\n {\n double d = Double.valueOf(operations.calculatorXF(str,\"AA\",\"A-128\"));\n num_of_TC= (int)d;\n if (num_of_TC<0) num_of_TC=0;\n }\n else \n num_of_TC=0; \n \n return num_of_TC;\n }",
"private boolean[] characterToBitArray(String character) {\n String binaryString = format(\"%4s\", Integer.toBinaryString(parseInt(character, 16))).replace(' ', '0');\n boolean[] bits = new boolean[NUMBER_OF_BITS_PER_CHAR];\n for (int i = 0; i < NUMBER_OF_BITS_PER_CHAR; i++) {\n bits[i] = binaryString.charAt(i) == '1';\n }\n return bits;\n }",
"private boolean validNbit(String input) {\n\t\treturn input.matches(\"[0-9A-F]+\");\n\t}",
"public static String toAscii(String s){\r\n StringBuilder sb = new StringBuilder();\r\n long asciiInt;\r\n // loop through all values in the string, including blanks\r\n for (int i = 0; i < s.length(); i++){\r\n //getting Ascii value of character and adding it to the string.\r\n char c = s.charAt(i);\r\n asciiInt = (int)c; \r\n sb.append(asciiInt);\r\n }\r\n return String.valueOf(sb);\r\n }",
"private String toBinary(byte caracter){\n byte byteDeCaracter = (byte)caracter;\n String binario=\"\";\n for( int i = 7; i>=0; i--){\n binario += ( ( ( byteDeCaracter & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario;\n }",
"static void stringConstruction(String s) {\n\n StringBuilder buildUniq = new StringBuilder();\n boolean[] uniqCheck = new boolean[128];\n\n for (int i = 0; i < s.length(); i++) {\n if (!uniqCheck[s.charAt(i)]) {\n uniqCheck[s.charAt(i)] = true;\n if (uniqCheck[s.charAt(i)]){\n buildUniq.append(s.charAt(i));\n }\n }\n }\n String unique=buildUniq.toString();\n int n = unique.length();\n System.out.println(n);\n }",
"@Test\n\tpublic void fibonacciEncodingTest() {\n\t\tAssert.assertTrue(ifn.fibonacciEncoding(143).trim().equals(\"01010101011\"));\n\t}",
"public static String toBinary(int number)\n\t{\n\t\tString total = \"\";\n\t\tint a;\n\t\twhile (number > 0) {\n\n\t\t\ta = number % 2;\n\n\t\t\ttotal = total + \"\" + a;\n// divide number by 2 \n\t\t\tnumber = number / 2;\n\n\t\t\t}\n\n// return value \n\t\treturn (new StringBuilder(total)).reverse().toString();\n\t\t\n\t}",
"private boolean valid128bit(String input) {\n\t\treturn input.matches(\"[0-9A-F]{32}\");\n\t}",
"private int hash(String string) {\n\t\tint hash = 0;\n\t\tint temp = 0;\n\n\t\tfor (byte b : string.toLowerCase().getBytes(StandardCharsets.US_ASCII)) {\n\t\t\thash = (hash << 4) + b;\n\t\t\ttemp = hash & 0xF0000000;\n\n\t\t\tif (temp != 0) {\n\t\t\t\thash = hash ^ (temp >>> 24);\n\t\t\t\thash = hash ^ temp;\n\t\t\t}\n\t\t}\n\n\t\treturn hash;\n\t}",
"private static String create50DigitString(){\n StringBuilder sb = new StringBuilder(\"1\");\n for(int i = 1; i < 50; i++){\n sb.append(\"0\");\n }\n return sb.toString();\n }",
"private static byte[] HexStringToByteArray(String input){\n\n\t\tint len = input.length();\n\n\t\tbyte[] inputByte = new byte[len/2];\n\n\t\tfor(int i=0; i< len; i+=2){\n\t\t\tinputByte[i/2] = (byte) ((Character.digit(input.charAt(i), 16) << 4)\n\t\t\t\t\t+(Character.digit(input.charAt(i+1), 16)));\n\t\t}\n\n\t\treturn inputByte;\n\t}"
] | [
"0.6571203",
"0.64595354",
"0.6266955",
"0.61980677",
"0.6130154",
"0.6092611",
"0.59933585",
"0.5892151",
"0.58570915",
"0.580784",
"0.58056736",
"0.5797274",
"0.57821476",
"0.5693039",
"0.5686834",
"0.5666944",
"0.564515",
"0.5642756",
"0.56414634",
"0.56329566",
"0.5617829",
"0.5549964",
"0.55342716",
"0.55333495",
"0.5495901",
"0.54630417",
"0.54366624",
"0.5417842",
"0.5410499",
"0.54082215",
"0.5406119",
"0.536172",
"0.534933",
"0.5345655",
"0.534357",
"0.5329711",
"0.53286797",
"0.5293936",
"0.52912676",
"0.52796036",
"0.52767557",
"0.52503103",
"0.5238219",
"0.5216395",
"0.52037185",
"0.5199108",
"0.5185203",
"0.5181766",
"0.5178461",
"0.5166632",
"0.5164186",
"0.5154713",
"0.51278627",
"0.5126475",
"0.5124318",
"0.5116839",
"0.51143104",
"0.51142216",
"0.5113246",
"0.5109518",
"0.5105395",
"0.5091823",
"0.5074179",
"0.50646895",
"0.5056681",
"0.50493085",
"0.5046572",
"0.5045874",
"0.50225925",
"0.5018949",
"0.50125486",
"0.50118047",
"0.50092447",
"0.50090736",
"0.5007058",
"0.50009435",
"0.4998705",
"0.4998335",
"0.4996551",
"0.49942222",
"0.49889144",
"0.49842155",
"0.49823734",
"0.49743766",
"0.4970577",
"0.49595037",
"0.49558702",
"0.49512348",
"0.49501905",
"0.49464598",
"0.4938044",
"0.49296442",
"0.49293765",
"0.4928477",
"0.49279782",
"0.49181232",
"0.49169978",
"0.49148092",
"0.4910509",
"0.49094546",
"0.49056217"
] | 0.0 | -1 |
TODO code application logic here | public static void main(String[] args) {
SecureRandom random = new SecureRandom();
random.nextBytes(hash);
data = new byte[hash.length + 1];
System.arraycopy(hash, 0, data, 0, hash.length);
long c = 0;
while (true) {
recalculateData();
byte[] dataHash = crc32AsByteArray(data);
if (c % 10000000 == 0) {
System.out.println("Calculated " + c + " hashes");
System.out.println("Data: " + byteArrayToHex(data));
System.out.println("Original hash: " + byteArrayToHex(hash) + " new hash: " + byteArrayToHex(dataHash));
}
if (Arrays.equals(hash, dataHash)) {
System.out.println("Found a match!");
System.out.println("Data: " + byteArrayToHex(data));
System.out.println("Original hash: " + byteArrayToHex(hash) + " new hash: " + byteArrayToHex(dataHash));
break;
}
c++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void logic() {\n\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 public void settings() {\n // TODO Auto-generated method stub\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void autoDetails() {\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 protected void execute() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"protected void onFirstUse() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n protected void execute() {\n \n }",
"@Override\n public void feedingHerb() {\n\n }",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void execute() {\n \n \n }",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\r\n protected void fetchData() {\n\r\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"private static void oneUserExample()\t{\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Override\n protected void execute() {\n\n }",
"public void logic(){\r\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tprotected void onPreExecute() {\n\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"@Override\n protected void startUp() {\n }",
"protected void mo6255a() {\n }",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tpublic void manage() {\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 }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void mo38117a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"@Override\n protected void onPreExecute() {\n \n }",
"protected void index()\r\n\t{\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }"
] | [
"0.60802186",
"0.5912082",
"0.58425087",
"0.58339286",
"0.5810548",
"0.57580656",
"0.57396024",
"0.5721001",
"0.5705411",
"0.5666017",
"0.5657976",
"0.5613798",
"0.5611188",
"0.5611188",
"0.55960613",
"0.55933475",
"0.557677",
"0.5572332",
"0.5565667",
"0.55482084",
"0.5536573",
"0.5534607",
"0.5533934",
"0.5468669",
"0.5460392",
"0.5443554",
"0.543027",
"0.5422523",
"0.5420404",
"0.5420404",
"0.5414971",
"0.53763115",
"0.5367869",
"0.53636855",
"0.53608036",
"0.5329318",
"0.5327322",
"0.5327322",
"0.53258926",
"0.53220093",
"0.53199",
"0.5311158",
"0.53085816",
"0.5307914",
"0.52976745",
"0.52976745",
"0.52976745",
"0.5297331",
"0.52968514",
"0.5293012",
"0.5281331",
"0.5277546",
"0.5277546",
"0.52726364",
"0.52688015",
"0.5267047",
"0.5266958",
"0.5262331",
"0.5261341",
"0.52587026",
"0.52557015",
"0.5255123",
"0.524477",
"0.52443206",
"0.5236655",
"0.52359647",
"0.52248156",
"0.52246475",
"0.52233",
"0.52207166",
"0.52205276",
"0.5216701",
"0.5206895",
"0.52030635",
"0.51967937",
"0.51948136",
"0.51947194",
"0.5188396",
"0.518064",
"0.518064",
"0.5177845",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5173223",
"0.5173223",
"0.5170695",
"0.5168988",
"0.51654655",
"0.51593053",
"0.5157954",
"0.5156624",
"0.5153031",
"0.5152581",
"0.51493365",
"0.5148302",
"0.51443505",
"0.51430386"
] | 0.0 | -1 |
/ limited power function | private int power(int base, int exp) {
int p = 1;
for( int i = exp ; i > 0; i-- ) {
p = p * base;
}
return p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getPower();",
"public Node power()\r\n\t{\r\n\t\tNode fact = factor();\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.POW)\r\n\t\t{\t\t\t\r\n\t\t\tNode pow = power();\r\n\t\t\tif(pow!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Pow(fact,pow);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn fact;\r\n\t}",
"public int getPower();",
"BigInteger getPower_consumption();",
"public float getPowerMultiplier() { return 0.5F; }",
"public int incrementPower(int count);",
"public int power(int x , int power ) {\n\t\treturn exp[(log[x] * power)%max_value];\n\t}",
"public double pow(double base, double exponent){ return Math.pow(base, exponent); }",
"public double getPower() {\r\n return power;\r\n }",
"int getPower(IBlockAccess iBlockAccess, BlockPos blockPos);",
"public double myPow(double x, int n) {\n // write your code here\n boolean neg = false;\n if (n < 0) {\n x = 1 / x;\n n = - (n + 1);\n neg = true;\n }\n\n double ans = 1, base = x;\n while (n > 0) {\n if (n % 2 == 1) {\n ans *= base;\n }\n base *= base;\n n /= 2;\n }\n\n if (neg) ans *= x;\n return ans;\n }",
"private void eToPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.eToPower ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public double getPower() {\n return power;\n }",
"public double power ( int num1, int num2, Credential aCrendential) throws RemoteException;",
"public int getMaxpower() {\n\t\treturn 0;\r\n\t}",
"public int getPower(String genEle);",
"public int getPower() {\n\t\treturn 0;\r\n\t}",
"static void power(BigInteger F[][], int n) \n\t { \n\t if( n == 0 || n == 1) \n\t return; \n\t \t \n\t power(F, n/2); \n\t multiply(F, F); \n\t \n\t if (n%2 != 0) \n\t multiply(F, M); \n\t }",
"public static double power(double a, int n) {\n\t double result=1;\n\t for(int i=0;i<n;i++) {\n\t result=result*a;\n\t }\n\t return result;\n\t }",
"public int getPower() {\n return PA_POW_reg.getPower();\n }",
"public double getPower()\n {\n return this.power;\n }",
"public void power(int power) {\n Complex original = new Complex(this.real, this.imag);\n for (int i = 0; i < (power - 1); i++) {\n this.multiply(original);\n }\n }",
"float getHotwordPower();",
"public int getPow() {\n return _pow;\n }",
"@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}",
"public void setMaxpower(int maxpower) {\n\t\t\r\n\t}",
"public int getPower() {\n \t\treturn power;\n \t}",
"@Override\n public void setPower(double power) {\n\n }",
"public static BinaryExpression power(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public static BinaryExpression power(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"boolean hasPower();",
"public float getPower() {\n return power_;\n }",
"public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;",
"public Float getPower() {\n return power;\n }",
"@SuppressWarnings(\"unchecked\")\r\n \tpublic IMeasure<? extends IMeasure<Q>> pow(int exp) {\r\n \t\tif (exp < 0)\r\n \t\t\treturn (IMeasure<? extends IMeasure<Q>>) this.pow(-exp).inverse();\r\n \t\tif (exp == 0)\r\n \r\n \t\t\treturn (IMeasure<? extends IMeasure<Q>>) ONE;\r\n \r\n \t\tIMeasure<? extends IMeasure<Q>> pow2 = (IMeasure<? extends IMeasure<Q>>) this;\r\n \t\tIMeasure<? extends IMeasure<Q>> result = null;\r\n \t\twhile (exp >= 1) { // Iteration.\r\n \r\n \t\t\tif ((exp & 1) == 1) {\r\n \t\t\t\tresult = (IMeasure<? extends IMeasure<Q>>) ((result == null) ? pow2\r\n \t\t\t\t\t\t: result.multiply(pow2));\r\n \r\n \t\t\t}\r\n \r\n \t\t\tpow2 = (IMeasure<? extends IMeasure<Q>>) pow2.multiply(pow2);\r\n \r\n \t\t\texp >>>= 1;\r\n \r\n \t\t}\r\n \r\n \t\treturn result;\r\n \r\n \t}",
"Double getMultiplier();",
"long power(int a, int b){\r\n\t\tlong pow=1;\r\n\t\tfor(int i=0;i<b;i++)\r\n\t\t{\r\n\t\t\tpow=pow*a;\r\n\t\t}\r\n\t\treturn pow;\r\n\t}",
"public double power ( int num1, int num2) throws RemoteException;",
"float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }",
"private int toPower(int base, int exponent)\n\t {\n\t \t if(exponent > 0)\n\t {\n\t return toPower(base, exponent - 1) * base;\n\t }\n\t return 1;\n\t }",
"public void setPower(double pow) {\n \tthis.powerIn = pow;\n }",
"public int get_power() {\r\n\t\treturn this._power;\r\n\t}",
"public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }",
"public void testPower() {\r\n System.out.println(\"Power\");\r\n Double [][] n = new Double[][]{{-3., 2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, -1.1E100, -1.1E100}, \r\n {-0.0370370, 9.88212, 1., 0., 1., 0.25, 39.304, 103.05089, 0., 0.}};\r\n for(int i = 0; i < 10; i++){\r\n try{\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Power(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n catch(PoweredZeroByZeroException e){\r\n assertTrue(e instanceof PoweredZeroByZeroException);\r\n }\r\n }\r\n }",
"public double pow(double x, int n) {\n if (n == Integer.MIN_VALUE) {\n return 0.0; // Cannot use -n to make it positive, so n%2 is -1 at first, then the result is 1. \n }\n \n if (n < 0) {\n return 1 / powHelper(x, -n); \n } else {\n return powHelper(x, n); \n }\n }",
"public double myPow(double x, int n) {\n if (n == 0) {\n \treturn 1;\n }\n if (n == 1) {\n \treturn x;\n }\n if (n == -1) {\n \treturn 1 / x;\n }\n double num = myPow(x, n / 2);\n return num * num * myPow(x, n % 2);\n }",
"public int getPower() {\n return this.power;\n }",
"public int getPower(){\n\t\treturn this.power;\n\t}",
"public void setPower(int power) {\n\t\t\r\n\t}",
"public int pow (int x, int n) {\n\tif (n == 0)\n\t\treturn 1;\n\tif (n == 1)\n\t\treturn x;\n\tint t = pow (x, n/2);\n\tt *= t;\n\tif (n % 2 == 1)\n\t\tt *= x;\n\treturn t;\n}",
"@Override\n public double getPower() {\n return 0;\n }",
"public float getPower() {\n return power_;\n }",
"public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}",
"public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic int getPower() {\n\t\treturn power;\n\t}",
"public static double pow(double x, int n) {\n\t\treturn powLong(x,n);\n }",
"void powerOn();",
"public ABLPower Power() {\r\n\t\treturn new ABLPower(BrickFinder.getDefault().getPower());\r\n\t}",
"private void twoPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.twoPower ( );\n\t\t\tupdateText();\n\t\t}\n\t}",
"public void setPower(Float power) {\n this.power = power;\n }",
"public int getMaxPower() {\r\n return maxPower;\r\n }",
"int Pow2(int base, int power) {\n if (power == 0)\n return 1;\n else\n return 2 * Pow2(base, power - 1); \n }",
"public static double power(double base, int exp) {\r\n if (exp == 0) {\r\n return 1;\r\n }\r\n\r\n if (exp > 0) {\r\n return pow(base, exp);\r\n } else {\r\n return 1 / pow(base, Math.abs(exp));\r\n }\r\n\r\n }",
"public int getExponent();",
"@Override\n\tpublic void setPower(double power) {\n\t\tif (Math.abs(this.power - power) > getMaxChange()) {\n\t\t\tthis.power += getMaxChange();\n\t\t}\n\t\t// If it is smaller than minimum change, then the current power is equal to the sum of\n\t\t// previous power and the minimum change.\n\t\telse if (Math.abs(this.power - power) < getMinChange()) {\n\t\t\tthis.power = (power + getMinChange());\n\t\t}\n\t\t\n\t\t// Then check the current power\n\t\t// If the current power is greater than maximum power, then assign the current power to maximum power.\n\t\tif (this.power > getMaxPower()) {\n\t\t\tthis.power = getMaxPower();\n\t\t} \n\t\t// If it is smaller than minimum power, then it equals to minimum power.\n\t\telse if (this.power < getMinPower()) {\n\t\t\tthis.power = getMinPower();\n\t\t} \n\t\t// And if it is between the interval of minimum and maximum power, simply assign it to that value.\n\t\telse {\n\t\t\tthis.power = power;\n\t\t}\n\t}",
"public HugeUInt pow(int p) {\r\n \tHugeUInt one = new HugeUInt(1);\r\n \tHugeUInt acc = one;\r\n \tif(p==0){\r\n \t\treturn one;\r\n \t}\r\n \tHugeUInt c = one.multiply(this);\r\n \twhile(p>1){\r\n \t\tif(p%2==0){\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\telse if(p%2==1){\r\n \t\t\tacc = acc.multiply(c);\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\tp/=2;\r\n \t}\r\n \treturn c.multiply(acc);\r\n }",
"public void power()\r\n {\r\n powerOn = true;\r\n }",
"public void setPower(int i)\n {\n this.powerOfIi = i;\n }",
"public double pow(double x, int n) {\n\n double result = 1.0;\n if (n == 0) {\n return result;\n }\n\n boolean neg = false;\n if (n < 0) {\n neg = true;\n n = -n;\n }\n\n while (n > 0) {\n if ((n % 2) == 1) {\n result *= x;\n }\n n = n / 2;\n x = x * x;\n }\n return neg ? 1.0 / result : result;\n }",
"@Override\n public void setPower(double power) {\n this.power = power;\n }",
"static double calcPower(double first, double second) {\n return Math.pow(first, second);\n }",
"public int power(int base, int exp) {\n if (exp == 0) {\n return 1;\n }\n long result = power(base, exp / 2);\n result *= result % G;\n if (exp % 2 == 1) {\n result *= base;\n }\n return (int) result;\n }",
"Sum getMultiplier();",
"Expression powerExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = unaryExpression();\r\n\t\tif (isKind(OP_POWER)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\treturn new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }",
"public int getPower()\n {\n return this.powerOfIi;\n }",
"public void setMaxPower(int maxPower) {\r\n this.maxPower = maxPower;\r\n }",
"public final EObject rulePowerExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_UnaryExpression_0 = null;\n\n Enumerator lv_operator_2_0 = null;\n\n EObject lv_exponent_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:3975:6: ( (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= rulePowerOperator ) ) ( (lv_exponent_3_0= ruleUnaryExpression ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3976:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= rulePowerOperator ) ) ( (lv_exponent_3_0= ruleUnaryExpression ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3976:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= rulePowerOperator ) ) ( (lv_exponent_3_0= ruleUnaryExpression ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3977:5: this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= rulePowerOperator ) ) ( (lv_exponent_3_0= ruleUnaryExpression ) ) )?\n {\n \n currentNode=createCompositeNode(grammarAccess.getPowerExpressionAccess().getUnaryExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleUnaryExpression_in_rulePowerExpression6790);\n this_UnaryExpression_0=ruleUnaryExpression();\n _fsp--;\n\n \n current = this_UnaryExpression_0; \n currentNode = currentNode.getParent();\n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3985:1: ( () ( (lv_operator_2_0= rulePowerOperator ) ) ( (lv_exponent_3_0= ruleUnaryExpression ) ) )?\n int alt59=2;\n int LA59_0 = input.LA(1);\n\n if ( (LA59_0==60||LA59_0==73) ) {\n alt59=1;\n }\n switch (alt59) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3985:2: () ( (lv_operator_2_0= rulePowerOperator ) ) ( (lv_exponent_3_0= ruleUnaryExpression ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3985:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3986:5: \n {\n \n temp=factory.create(grammarAccess.getPowerExpressionAccess().getPowerExpressionOperandAction_1_0().getType().getClassifier());\n try {\n \tfactory.set(temp, \"operand\", current, null /*ParserRule*/, currentNode);\n } catch(ValueConverterException vce) {\n \thandleValueConverterException(vce);\n }\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getPowerExpressionAccess().getPowerExpressionOperandAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4001:2: ( (lv_operator_2_0= rulePowerOperator ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4002:1: (lv_operator_2_0= rulePowerOperator )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4002:1: (lv_operator_2_0= rulePowerOperator )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4003:3: lv_operator_2_0= rulePowerOperator\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getPowerExpressionAccess().getOperatorPowerOperatorEnumRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_rulePowerOperator_in_rulePowerExpression6820);\n lv_operator_2_0=rulePowerOperator();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getPowerExpressionRule().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\"operator\",\n \t \t\tlv_operator_2_0, \n \t \t\t\"PowerOperator\", \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 // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4025:2: ( (lv_exponent_3_0= ruleUnaryExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4026:1: (lv_exponent_3_0= ruleUnaryExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4026:1: (lv_exponent_3_0= ruleUnaryExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4027:3: lv_exponent_3_0= ruleUnaryExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getPowerExpressionAccess().getExponentUnaryExpressionParserRuleCall_1_2_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnaryExpression_in_rulePowerExpression6841);\n lv_exponent_3_0=ruleUnaryExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getPowerExpressionRule().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\"exponent\",\n \t \t\tlv_exponent_3_0, \n \t \t\t\"UnaryExpression\", \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 break;\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 int getMaxSpecialPower() {\n return maxSpecialPower;\n }",
"public double myPowIter(double x, int n) {\n\t\tif (n == 0)\n\t\t\treturn 1;\n\n\t\tif (n < 0) {\n\t\t\tn = -n;\n\t\t\tx = 1 / x;\n\t\t}\n\t\tdouble ans = 1;\n\t\twhile (n > 0) {\n\t\t\tif ((n & 1) == 1)\n\t\t\t\tans *= x;\n\t\t\tx *= x;\n\t\t\tn >>= 1;\n\t\t}\n\t\treturn ans;\n\t}",
"public static void Perfectpower(int n) {\n\t\tlong valuecheck = 0;\n\t\t\n\t\tPriorityQueue<PerfectNumber> pq = new PriorityQueue<>(new Comparator<PerfectNumber>() {\n\t\t\t@Override\n\t\t\tpublic int compare(PerfectNumber o1, PerfectNumber o2) {\n\t\t\t\treturn (int) (o1.value - o2.value);\n\t\t\t}\n\t\t});\n\n\t\t//base condition\n\t\tpq.add(new PerfectNumber(2, 2));\n\t\t\n\t\twhile (!pq.isEmpty()) {\n\t\t\t\n\t\t\tPerfectNumber z = pq.remove();\n\t\t\t\n\t\t\t//return when a^b >n \n\t\t\tif(Math.pow(z.a, z.b)>n){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//to avoid duplicacy\n\t\t\tif(valuecheck!=z.value){\n\t\t\t\tresult.add(z.value);\n\t\t\t\tvaluecheck = z.value;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// add next elements in priorrity queue\n\t\t\tif (z.a == 2) {\n\t\t\t\tpq.add(new PerfectNumber(2, z.b + 1));\n\t\t\t\tpq.add(new PerfectNumber(3, z.b));\n\n\t\t\t} else {\n\t\t\t\tpq.add(new PerfectNumber(z.a + 1, z.b));\n\t\t\t} \n\t\t}\n\n\t}",
"EDataType getActivePower();",
"public static void toPower(int size, int power){\nsize = 4;\npower = 2;\n\nInteger powerArray[] = new Integer[size];\nfor (int i = 0; i < size; i++){\n powerArray[i] = (int)Math.pow(i, power);\n}\nSystem.out.println(Arrays.toString(powerArray));\n }",
"public T elementPower( double b ) {\n T c = createLike();\n ops.elementPower(mat, b, c.mat);\n return c;\n }",
"static double powerOfTwoD(int n) {\n return Double.longBitsToDouble((((long)n + (long)DoubleConsts.MAX_EXPONENT) <<\n (DoubleConsts.SIGNIFICAND_WIDTH-1))\n & DoubleConsts.EXP_BIT_MASK);\n }",
"public static double power1(double x, int n) {\n if (n == 0)\n return 1;\n else\n return x * power1(x, n - 1);\n }",
"public void setPower(int power) {\n \t\tthis.power = power;\n \t}",
"public void setPower(int power) {\n\t\tthis.power = power;\n\t}",
"public void setPowerLimit(double limit) {\n\t\tSystem.out.println(\"APPC poer limited to \" + limit);\n\t\tsetPowerRange(-limit, limit);\n\t}",
"private double pow(double x, double y) {\r\n double value;\r\n try {\r\n value = Math.pow(x, y) ; }\r\n catch( ArithmeticException e ) {\r\n value = Double.NaN ; }\r\n return value;\r\n }",
"public static void power(int n, int p) throws TipoException {\r\n try {\r\n if (n < 0 | p < 0) { \r\n throw new TipoException(\"n and p should be non-negative\");\r\n } else if(n==0 | p==0) {\r\n throw new TipoException(\"n and p should not be zero\");\r\n }else{ \r\n double v = Math.pow(n, p);\r\n System.out.println(\"valores\"+\" \" + v);\r\n }\r\n } catch (TipoException e) {\r\n System.out.println(\"\"+e.getMessage());\r\n }\r\n }",
"public static BinaryExpression powerAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public int fastPower(int a, int b, int n) {\n // write your code here\n long base = a, ans = 1;\n while (n > 0) {\n if (n % 2 == 1) {\n ans = ans * base % b;\n }\n n /= 2;\n base = base * base % b;\n }\n return (int) ans % b;\n }",
"public int power() {\n int tot = 0;\n for (Equipment e : equipments) {\n tot += e.power();\n }\n\n return tot;\n }",
"public boolean getPower(){\n return power;\n }",
"void pow(int n){\n\t\tif(n > 1){\n\t\t\tpow(n/2); //Calling pow recursively\n\t\t\tM = MatrixMultiply(M,M); //Climbing up by squares\n\t\t}\n\t\t\n\t\tif(n % 2 == 1){//n is odd\n\t\t\tM = MatrixMultiply(M,unitMatrix); //If n is odd than one unit matrix is missed so we are multiplying\n\t\t}\n\t}",
"private void power(){\n this.powerX = realX * radius;\n this.powerY = realY * radius;\n }",
"public static double myPow(double x, int y) {\n double powedValue = x;\n for (int i = 1; i < y; i++) {\n powedValue *= x;\n }\n return (powedValue);\n }",
"private static final int getPower(Parsing t) {\n\t\tchar s='+';\t\t// Exponent Sign\n\t\tint pow=0;\t\t// Exponent Value\n\t\tint inum=0;\t\t// Index of exponent\n\t\tint posini=t.pos;\n\t\t//System.out.print(\"....getPower on '\" + this + \"', pos=\" + pos + \": \");\n\t\tt.pos = t.length-1;\n\t\tif (Character.isDigit(t.a[t.pos])) {\n\t\t\twhile (Character.isDigit(t.a[t.pos])) --t.pos;\n\t\t\ts = t.a[t.pos];\n\t\t\tif ((s == '+') || (s == '-')) ;\t// Exponent starts here\n\t\t\telse ++t.pos;\n\t\t\tinum = t.pos;\n\t\t\tpow = t.parseInt();\n\t\t\t//System.out.print(\"found pow=\" + pow + \",pos=\" + pos);\n\t\t}\n\t\tif (pow != 0) {\t\t// Verify the power is meaningful\n\t\t\tif (t.a[0] == '(') {\n\t\t\t\tif (t.a[inum-1] != ')') pow = 0;\n\t\t\t}\n\t\t\telse {\t\t// could be e.g. m2\n\t\t\t\tfor (int i=0; i<inum; i++) {\n\t\t\t\t\t// Verify the unit is not a complex one\n\t\t\t\t\tif (!Character.isLetter(t.a[i])) pow = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (pow == 0) t.pos = posini;\n\t\telse t.pos = inum;\n\t\t//System.out.println(\" pow=\" + pow + \", pos=\" + pos);\n\t\treturn(pow);\n\t}",
"public static void power(double[] vector, double a) {\r\n for (int i = 0; i < vector.length; i++) {\r\n vector[i] = Math.signum(vector[i]) * Math.pow(Math.abs(vector[i]), a);\r\n }\r\n }"
] | [
"0.751367",
"0.74452543",
"0.7422774",
"0.7051299",
"0.69988585",
"0.6977821",
"0.69403934",
"0.6934597",
"0.69014084",
"0.6803696",
"0.6790638",
"0.67844164",
"0.6779958",
"0.67536026",
"0.6735693",
"0.6720749",
"0.6706906",
"0.66811997",
"0.66811967",
"0.66781104",
"0.664909",
"0.6645247",
"0.6613679",
"0.6595721",
"0.6594249",
"0.65786535",
"0.65716606",
"0.6567485",
"0.6538768",
"0.65295374",
"0.65277654",
"0.6510062",
"0.64946777",
"0.6491117",
"0.64756846",
"0.64706975",
"0.64614594",
"0.64610535",
"0.64592737",
"0.6443081",
"0.6441327",
"0.64334357",
"0.6431464",
"0.64240855",
"0.6406615",
"0.6399824",
"0.6395576",
"0.63949203",
"0.6391088",
"0.6387516",
"0.63789487",
"0.63717246",
"0.63505745",
"0.63452876",
"0.63310915",
"0.63247526",
"0.6323116",
"0.6318801",
"0.63045704",
"0.6300135",
"0.6300077",
"0.6298518",
"0.6283571",
"0.6273253",
"0.6264102",
"0.6259616",
"0.6255026",
"0.6248383",
"0.62269604",
"0.62242526",
"0.6217486",
"0.62099427",
"0.6199168",
"0.6193939",
"0.61915904",
"0.618928",
"0.618125",
"0.6160833",
"0.61596686",
"0.6155853",
"0.61483043",
"0.61478883",
"0.6138136",
"0.61374456",
"0.6132243",
"0.6126759",
"0.61252695",
"0.61192644",
"0.61155295",
"0.6114602",
"0.61121845",
"0.61073846",
"0.6095716",
"0.60933805",
"0.60923505",
"0.60824883",
"0.6081156",
"0.6080661",
"0.60783696",
"0.60769415"
] | 0.6931429 | 8 |
Add feature conjunctions to all tokens in the document | public void extract (Document document) {
List<Token> tokenList = document.getTokenList();
for (Token token : tokenList) {
FeatureSet fs = token.boundaryFeatureSet;
// check for each pattern whether the feature set satisfies it
for (String[] features : patternList) {
boolean matches = true;
for (String feature: features) {
if (!fs.contains(feature)) {
matches = false;
break;
}
}
// if the pattern is satisfied, add the conjunction
if (matches) {
fs.add("CONJUNCTION:" + StringUtils.join(",", features));
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void partOfSpeech(List<Token> tokenList)\r\n\t{\r\n\t\tString[] article = {\"a\", \"an\", \"the\"};\r\n\t\tString[] conjunction = {\"and\", \"but\", \"or\", \"nor\", \"for\", \"so\", \"yet\"};\r\n\r\n\t\tfor(Token tk : tokenList)\r\n\t\t{\t\r\n\t\t\tif (Arrays.asList(article).contains(tk.getName())) {\r\n\t\t\t\ttk.getFeatures().setPartOfSpeech(String.valueOf(PartOfSpeech.ARTICLE));\r\n\t\t\t}\r\n\t\t\telse if (Arrays.asList(conjunction).contains(tk.getName())) {\r\n\t\t\t\ttk.getFeatures().setPartOfSpeech(String.valueOf(PartOfSpeech.CONJUNCTION));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (tk.getName().contains(\".\"))\r\n\t\t\t{\r\n\t\t\t\t// FeatureSet set = new FeatureSet();\r\n\t\t\t\ttk.getFeatures().setPartOfSpeech(String.valueOf(PartOfSpeech.PERIOD));\r\n\t\t\t}\r\n\r\n\t\t\telse if (tk.getName().contains(\",\"))\r\n\t\t\t{\r\n\t\t\t\t// FeatureSet set = new FeatureSet();\r\n\t\t\t\ttk.getFeatures().setPartOfSpeech(String.valueOf(PartOfSpeech.COMMA));\r\n\t\t\t}\r\n\r\n\t\t\telse if(tk.getName().contains(\"-\"))\r\n\t\t\t{\r\n\t\t\t\t// FeatureSet set = new FeatureSet();\r\n\t\t\t\ttk.getFeatures().setPartOfSpeech(String.valueOf(PartOfSpeech.HYPHEN));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttk.getFeatures().setPartOfSpeech(String.valueOf(PartOfSpeech.OTHER));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);",
"@Test\n public void testEmbeddingAnnotatorWithFilterAnnotation() throws Exception {\n final JCas jCas = JCasFactory.createJCas(\"de.julielab.jcore.types.jcore-morpho-syntax-types\", \"de.julielab.jcore.types.jcore-semantics-biology-types\");\n String sentence1 = \"Dysregulated inflammation leads to morbidity and mortality in neonates.\";\n String sentence2 = \"97 healthy subjects were enrolled in the present study.\";\n jCas.setDocumentText(sentence1 + \" \" + sentence2);\n new Sentence(jCas, 0, sentence1.length()).addToIndexes();\n new Sentence(jCas, sentence1.length() + 1, sentence1.length() + 1 + sentence2.length()).addToIndexes();\n addTokens(jCas);\n new Gene(jCas, 13, 25).addToIndexes();\n // This annotation spans two tokens\n new Gene(jCas, 75, 91).addToIndexes();\n\n final String embeddingPath = \"flair:src/test/resources/gene_small_best_lm.pt\";\n final AnalysisEngine engine = AnalysisEngineFactory.createEngine(\"de.julielab.jcore.ae.fte.desc.jcore-flair-token-embedding-ae\",\n FlairTokenEmbeddingAnnotator.PARAM_EMBEDDING_PATH, embeddingPath,\n FlairTokenEmbeddingAnnotator.PARAM_COMPUTATION_FILTER, \"de.julielab.jcore.types.Gene\");\n\n engine.process(jCas);\n\n final Collection<Token> tokens = JCasUtil.select(jCas, Token.class);\n assertThat(tokens).hasSize(20);\n for (Token t : tokens) {\n if (t.getBegin() == 13 || t.getBegin() == 75 || t.getBegin() == 83) {\n assertThat(t.getEmbeddingVectors()).isNotNull().hasSize(1);\n assertThat(t.getEmbeddingVectors(0).getVector()).hasSize(1024);\n assertThat(t.getEmbeddingVectors(0).getSource()).isEqualTo(embeddingPath);\n } else {\n assertThat(t.getEmbeddingVectors()).isNull();\n }\n }\n engine.collectionProcessComplete();\n }",
"public void AssembleFeatureFromTree(Tree parse) {\n String feature=parse.value() + \"->\";\n Tree[] sub_tree = parse.children();\n for(Tree t: sub_tree) {\n if (!t.isPreTerminal()) {\n AssembleFeatureFromTree(t);\n }\n feature+=t.value() + \"+\";\n }\n \n if(!global_dict.containsKey(feature)){\n global_dict.put(feature, global_dict.size()+1);\n }\n fn = global_dict.get(feature);\n //System.out.println(feature + \" : \" + fn);\n ftlist.add(fn);\n }",
"private static void buildTokens (Document doc, String block, boolean[] newToken,\n int offset, int nextBlockStart, boolean firstBlock) {\n int tokenStart = 0;\n \tfor (int i=1; i<=block.length(); i++) {\n \t\tif(newToken[i]) {\n \t\t\tint tokenEnd = i;\n \t\t\tFeatureSet fs = null;\n \t\t\t// if number, compute value (set value=-1 if not a number)\n \t\t\tint value = 0;\n \t\t\tfor (int j=tokenStart; j<tokenEnd; j++) {\n \t\t\t\tif (Character.isDigit(block.charAt(j))) {\n \t\t\t\t\tvalue = (value * 10) + Character.digit(block.charAt(j),10);\n \t\t\t\t} else if (block.charAt(j) == ',' && value > 0) {\n \t\t\t\t\t// skip comma if preceded by non-zero digit\n \t\t\t\t} else {\n \t\t\t\t\tvalue = -1;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tString type = specialTokenType.get(tokenStart + offset);\n \t\t\tif (type != null) {\n \t\t\t\tfs = new FeatureSet (\"type\", type);\n \t\t\t} else if (Character.isUpperCase(block.charAt(tokenStart))) {\n \t\t\t\tif (firstBlock ||\n \t\t\t\t // for ACE\n \t\t\t\t lastToken.equals(\"_\") ||\n \t\t\t\t lastToken.equals(\"\\\"\") || lastToken.equals(\"``\") || lastToken.equals(\"`\")) {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"forcedCap\");\n \t\t\t\t} else {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"cap\");\n \t\t\t\t}\n \t\t\t} else if (value >= 0) {\n \t\t\t\tfs = new FeatureSet (\"intvalue\", new Integer(value));\n \t\t\t} else {\n \t\t\t\tfs = new FeatureSet ();\n \t\t\t}\n \t\t\t// create token\n \t\t\tint spanEnd = (tokenEnd == block.length()) ? nextBlockStart : tokenEnd + offset;\n \t\t\tString tokenString = block.substring(tokenStart, tokenEnd);\n \t\t\trecordToken (doc, tokenString, tokenStart + offset, spanEnd, fs);\n \t\t\ttokenStart = tokenEnd;\n \t\t\tlastToken = tokenString;\n \t\t}\n \t}\n\t}",
"private void addTokens(JCas jCas) {\n new Token(jCas, 0, 12).addToIndexes();\n new Token(jCas, 13, 25).addToIndexes();\n new Token(jCas, 26, 31).addToIndexes();\n new Token(jCas, 32, 34).addToIndexes();\n new Token(jCas, 35, 44).addToIndexes();\n new Token(jCas, 45, 48).addToIndexes();\n new Token(jCas, 49, 58).addToIndexes();\n new Token(jCas, 59, 61).addToIndexes();\n new Token(jCas, 62, 70).addToIndexes();\n new Token(jCas, 70, 71).addToIndexes();\n // Tokens for sentence 2\n new Token(jCas, 72, 74).addToIndexes();\n new Token(jCas, 75, 82).addToIndexes();\n new Token(jCas, 83, 91).addToIndexes();\n new Token(jCas, 92, 96).addToIndexes();\n new Token(jCas, 97, 105).addToIndexes();\n new Token(jCas, 106, 108).addToIndexes();\n new Token(jCas, 109, 112).addToIndexes();\n new Token(jCas, 113, 120).addToIndexes();\n new Token(jCas, 121, 126).addToIndexes();\n new Token(jCas, 126, 127).addToIndexes();\n }",
"public RealConjunctiveFeature() { }",
"public abstract void addFeatures(Collection<Double> indices,Predicate pred, Word arg,boolean allWords);",
"public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) {\n if (currentSentence != tokens) {\n currentSentence = tokens;\n if (isBilou) {\n currentEntities = dictionary.getBilouDictionaryMatch(tokens);\n } else {\n currentEntities = dictionary.getBioDictionaryMatch(tokens);\n }\n }\n \n String currentEntity = currentEntities.get(index);\n \n features.add(attributes.get(\"dict\") + \"=\" + currentEntity);\n features.add(attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n features.add(attributes.get(\"dict\") + \",w=dict\");\n if (Flags.DEBUG) {\n System.err.println(\"-> \" + tokens[index] + \": \" + attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n }\n }",
"void addFeatures(Features features);",
"public final ManchesterOWLSyntaxAutoComplete.conjunction_return conjunction() {\n ManchesterOWLSyntaxAutoComplete.conjunction_return retval = new ManchesterOWLSyntaxAutoComplete.conjunction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.unary_return conjunct = null;\n ManchesterOWLSyntaxAutoComplete.unary_return u = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:130:2:\n // ( ^( CONJUNCTION (conjunct= unary )+ ) | u= unary )\n int alt6 = 2;\n int LA6_0 = input.LA(1);\n if (LA6_0 == CONJUNCTION) {\n alt6 = 1;\n } else if (LA6_0 >= IDENTIFIER && LA6_0 <= ENTITY_REFERENCE\n || LA6_0 == NEGATED_EXPRESSION || LA6_0 >= SOME_RESTRICTION\n && LA6_0 <= ONE_OF) {\n alt6 = 2;\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 6, 0, input);\n throw nvae;\n }\n switch (alt6) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:131:2:\n // ^( CONJUNCTION (conjunct= unary )+ )\n {\n match(input, CONJUNCTION, FOLLOW_CONJUNCTION_in_conjunction328);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:131:17:\n // (conjunct= unary )+\n int cnt5 = 0;\n loop5: do {\n int alt5 = 2;\n int LA5_0 = input.LA(1);\n if (LA5_0 >= IDENTIFIER && LA5_0 <= ENTITY_REFERENCE\n || LA5_0 == NEGATED_EXPRESSION\n || LA5_0 >= SOME_RESTRICTION && LA5_0 <= ONE_OF) {\n alt5 = 1;\n }\n switch (alt5) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:131:18:\n // conjunct= unary\n {\n pushFollow(FOLLOW_unary_in_conjunction334);\n conjunct = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(conjunct.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt5 >= 1) {\n break loop5;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(5, input);\n throw eee;\n }\n cnt5++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:134:4:\n // u= unary\n {\n pushFollow(FOLLOW_unary_in_conjunction349);\n u = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(u.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }",
"@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sentence\n for (PredicateElement element : predicate.getElements()) {\n if (element != null && element.getPredicateElementAnnotation() != null) {\n PredicateElementAnnotation elementAnnotation = element.getPredicateElementAnnotation();\n if (elementAnnotation.equals(PredicateElementAnnotation.subject)) {\n phrase.setSubject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.verb)) {\n phrase.setVerb(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.directObject)) {\n phrase.setObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.indirectObject)) {\n phrase.setIndirectObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.complement)) {\n phrase.setComplement(element.toString());\n }\n }\n }\n //get annotation which affect whole predicate and use them to create correct type of phrase\n if (predicate.getPredicateAnnotations() != null) {\n List<PredicateAnnotation> predicateAnnotations = predicate.getPredicateAnnotations();\n if (predicateAnnotations.contains(PredicateAnnotation.NEGATION)) {\n phrase.setFeature(Feature.NEGATED, true);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.YES_NO)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW_MANY)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW_MANY);\n }\n if (predicateAnnotations.contains((PredicateAnnotation.IMPERATIVE))) {\n phrase.setFeature(Feature.FORM, Form.IMPERATIVE);\n }\n }\n //create the output sentence\n String resultString = realiser.realiseSentence(phrase);\n setOutputStructure(resultString);\n //split output structure into its elements\n String resStructure = phrase.getParent().getFeatureAsString((\"textComponents\"));\n resStructure = resStructure.replace(\"[\", \"\");\n resStructure = resStructure.replace(\"]\", \"\");\n ArrayList<String> outputOrderList = new ArrayList<>();\n String[] resSplit = resStructure.split(\",\");\n for (int i = 0; i < resSplit.length; i++) {\n outputOrderList.add(resSplit[i].trim());\n }\n //create new predicate element list\n ArrayList<PredicateElement> modifiedPredicateElementList = new ArrayList<>();\n //use this orderList as new predicate element list -> order important for planning\n boolean elementAlreadyAdded = false;\n for (String outputOrderElement : outputOrderList) {\n //keep old predicate if worldobjectid and type were already set (\"I\", \"you\")\n for(PredicateElement element: predicate.getElements()) {\n if(element.getWorldObjectId() != null && element.toString().equals(outputOrderElement)) {\n modifiedPredicateElementList.add(element);\n elementAlreadyAdded = true;\n break;\n }\n }\n if(elementAlreadyAdded) {\n elementAlreadyAdded = false;\n continue;\n }\n modifiedPredicateElementList.add(new StringPredicateElement(outputOrderElement));\n }\n if(phrase.hasFeature(Feature.INTERROGATIVE_TYPE)) {\n modifiedPredicateElementList.add(new StringPredicateElement(\"?\"));\n }else {\n modifiedPredicateElementList.add(new StringPredicateElement(\".\"));\n }\n //set new elements for the modified predicate\n modifiedPredicate.setElements(modifiedPredicateElementList.toArray(new StringPredicateElement[modifiedPredicateElementList.size()]));\n return modifiedPredicate;\n }",
"@Override\n public final boolean incrementToken() throws IOException {\n if (lemmaListIndex < lemmaList.size()) {\n restoreState(current);\n posIncrAtt.setPositionIncrement(0);\n popNextLemma();\n return true;\n } else if (this.input.incrementToken()) {\n if (!keywordAttr.isKeyword()\n && (lookupSurfaceForm(termAtt) || lookupSurfaceForm(toLowercase(termAtt)))) {\n current = captureState();\n popNextLemma();\n } else {\n tagsAtt.clear();\n }\n return true;\n } else {\n return false;\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void process(JCas cas) throws AnalysisEngineProcessException {\n\t\tint id = 0;\n\t\tlog.info(\"Starting enhancement\");\n\t\tObject o = getContext().getConfigParameterValue(\"Tags\");\n\t\tfinal String[] tags;\n\t\tlog.debug(\"Object is: \" + o.getClass().getName());\n\t\tif (o instanceof String) {\n\t\t\ttags = ((String) o).split(\"(\\\\s*,\\\\s*)+\");\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\t\tfor (String s:tags) {\n\t\t\t\t\tsb.append(s + \" \");\n\t\t\t\t}\n\t\t\t\tlog.debug(\"Tags: \" + sb.toString());\n\t\t\t}\n\t\t} else {\n\t\t\tObject[] args = { o.toString(), \"Tags\" };\n\t\t\tthrow new AnalysisEngineProcessException\n\t\t\t\t(AnalysisEngineProcessException.RESOURCE_DATA_NOT_VALID, args);\n\t\t}\n\n\t\tfinal FSIndex textIndex = cas.getAnnotationIndex(Token.type);\n\t\tfinal Iterator<Token> tit = textIndex.iterator();\n\n\t\tlog.debug(\"Feature Structure index size: \" + textIndex.size());\n\n\t\tToken t; // token pointer\n\n\t\titeratetokens: while (tit.hasNext()) {\n\t\t\tt = tit.next();\n\t\t\tif (t.getTag() == null) {\n\t\t\t\tlog.debug(\"Encountered token with NULL tag\");\n\t\t\t\tcontinue iteratetokens;\n\t\t\t}\n\t\t\tif (EnhancerUtils.arrayContains(t.getTag(), tags)) {\n\t\t\t\tfinal Enhancement e = new Enhancement(cas);\n\t\t\t\te.setBegin(t.getBegin());\n\t\t\t\te.setEnd(t.getEnd());\n\n\t\t\t\tid++;\n\t\t\t\te.setEnhanceStart(\"<span id=\\\"\" + EnhancerUtils.get_id(\"WERTi-span\",id) + \"\\\">\");\n\t\t\t\te.setEnhanceEnd(\"</span>\");\n\n\t\t\t\tif (log.isTraceEnabled()) {\n\t\t\t\t\tlog.trace(\"Enhanced \" + t.getCoveredText()\n\t\t\t\t\t\t\t+ \" with tag \"\n\t\t\t\t\t\t\t+ t.getTag()\n\t\t\t\t\t\t\t+ \" with id \"\n\t\t\t\t\t\t\t+ id);\n\t\t\t\t}\n\t\t\t\te.addToIndexes();\n\t\t\t}\n\t\t}\n\t\tlog.info(\"Finished enhancement\");\n\t}",
"private static PredicateTokens toPredicateToken(Token token) {\n return PredicateTokens.of(token.getAttribute());\n }",
"private void addCustomWords() {\r\n\r\n }",
"private List<ParseTree> separateAND(ParseTree t){\n List<ParseTree> nodes = new ArrayList<ParseTree>();\n List<ParseTree> aux = getNodes(t, RulesParser.RULE_conjuncion);\n List<ParseTree> factores = getNodes(t, RulesParser.RULE_factor); // factors enclosed in parentheses, such as ((1+2)+3)\n int count = 0;\n for (int i = 0; i < factores.size(); i++) {\n if (((RulesParser.FactorContext) factores.get(i)).PA() != null){\n count++;\n }\n }\n int params = Trees.findAllRuleNodes(t, RulesParser.RULE_parametros).size();\n params = aux.size() == params ? 0 : params;\n for (int i = 0; i < aux.size() - params - count; i++) {\n if (aux.get(i).getChild(i) instanceof RulesParser.ConjuncionContext){\n nodes.add(((RulesParser.ConjuncionContext) aux.get(i)).igualdad());\n } else{\n nodes.add(aux.get(i));\n }\n }\n Collections.reverse(nodes);\n return nodes;\n }",
"public static void selectFeature() throws IOException {\n\t\tString trainPath = \"./corpus/trainData\";\n\t\tString stopPath = \"./corpus/english.stop\";\n\t\tString outPath = \"./corpus/features\";\n\t\tFileWriter fw = new FileWriter(outPath);\n\t\tFileReader fr = new FileReader(trainPath);\n\t\tFileReader fr2 = new FileReader(stopPath);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tBufferedReader br2 = new BufferedReader(fr2);\n\t\tString oneline;\n\n\t\tArrayList<String> as = new ArrayList<String>();\n\t\twhile ((oneline = br2.readLine()) != null) {\n\t\t\tas.add(oneline);\n\t\t}\n\t\tString[] stopWords = new String[as.size()];\n\t\tas.toArray(stopWords);\n\n\t\tHashtable<String, Integer> hs = new Hashtable<String, Integer>();\n\n\t\tAnalyzer analyzer = new SnowballAnalyzer(\"English\", stopWords);\n\n\t\ttry {\n\t\t\twhile ((oneline = br.readLine()) != null) {\n\t\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\t\tString topic = oneline.substring(0, pos);\n\t\t\t\tString content = oneline.substring(pos + 1);\n\t\t\t\t// StringTokenizer st=new StringTokenizer(content,\" \");\n\n\t\t\t\tTokenStream stream = analyzer.tokenStream(\"contents\",\n\t\t\t\t\t\tnew StringReader(content));\n\n\t\t\t\twhile (true) {\n\t\t\t\t\tToken token = stream.next();\n\t\t\t\t\tif (token == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tString tmp = token.termText();\n\t\t\t\t\tif (!hs.containsKey(tmp)) {\n\t\t\t\t\t\ths.put(tmp, new Integer(1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tInteger num = hs.get(tmp);\n\t\t\t\t\t\ths.put(tmp, num + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\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}\n\n\t\tList<Map.Entry> list = new ArrayList<Map.Entry>(hs.entrySet());\n\t\tCollections.sort(list, new Comparator<Map.Entry>() {\n\t\t\tpublic int compare(Map.Entry e1, Map.Entry e2) {\n\t\t\t\tInteger i1 = (Integer) e1.getValue();\n\t\t\t\tInteger i2 = (Integer) e2.getValue();\n\t\t\t\treturn i2.compareTo(i1);\n\t\t\t}\n\t\t});\n\t\tint count = 0;\n\t\tSystem.out.println(\"word - freq\");\n\t\tSystem.out.println(\"-------------\");\n\t\tfor (Map.Entry e : list) {\n\t\t\tInteger num = (Integer) e.getValue();\n\t\t\tString term = (String) e.getKey();\n\t\t\tif (count++ < 2000) {\n\t\t\t\tbw.write(term);\n\t\t\t\tbw.newLine();\n\t\t\t}\n\n\t\t}\n\n\t\tbw.close();\n\n\t\tSystem.out.println(hs.keySet().size());\n\t\tSystem.out.println(count);\n\n\t}",
"void addWordsToDoc(int doc,List<VocabWord> words);",
"Builder addKeywords(Text value);",
"public String generateFeaturesResult()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\t\tArrayList<Affix> gPrefix = reverseAffixOrder(this.prefixes);\n\t\tArrayList<Affix> gInfix = reverseAffixOrder(this.infixes);\n\t\tArrayList<Affix> gSuffix = reverseAffixOrder(this.suffixes);\n\t\tAffixBreakdown ab \t\t = new AffixBreakdown();\n\t\tString rootWithInfix;\n\t\tString result\t \t\t = \"\";\n\n\n\n\t\tif( gInfix.size() > 0 || gInfix != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\trootWithInfix = this.infixedRootWord(word.getOriginalWord(),word.getRootWord(), gInfix.get(0).getAffix());\n\t\t\t} catch (Exception e) {\n\t\t\t\trootWithInfix = word.getRootWord();\n\t\t\t}\n\t\t} else {\n\t\t\trootWithInfix = word.getRootWord();\n\t\t}\n\n\n\t\tif( longestCanonicalPrefixLength() > 4 )\n\t\t{\n\t\t\tAffix longPrefix = longestCanonicalPrefix();\n\n\t\t\tresult = result + ab.convertPrefix( longPrefix.getAffix().toString() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// cycle through all the prefixes first\n\t\t\tfor( int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tresult = result + \"~\" + gPrefix.get(i).getAffix();\n\t\t\t}\n\t\t}\n\n\t\t// cycle through all the suffixes as the last\n\t\tfor( int i = 0; i < gSuffix.size(); i++)\n\t\t{\n\t\t\tresult = result + \"+\" + gSuffix.get(i).getAffix();\n\t\t}\n\t\treturn result;\n\t}",
"public static String punctuateAnd(List<String> elements)\r\n/* 43: */ {\r\n/* 44: 43 */ return punctuateSequence(elements, \"and\");\r\n/* 45: */ }",
"private void filterFeatureswithtext() throws Exception {\n\t\ttry {\r\n\t\t\t//source = dataStore.getFeatureSource(typeName);\r\n\t\t\tString sql = text.getText();\r\n\t\t\tString filtertype = \"include\";\r\n\t\t\tString[] cql = sql.split(\":\");\r\n\t\t\tHints h = new Hints();\r\n \t\t\th.put(Hints.FILTER_FACTORY, ISOFilterFactoryImpl.class);\r\n \t\t\tFilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(h);\r\n \t\t\tWKTReader wktr = new WKTReader(DefaultGeographicCRS.WGS84_3D);\r\n \t\t\tFilter filter = CQL.toFilter(\"include\");\r\n \t\t\tlong start = System.currentTimeMillis();\r\n \t\t\tList<SimpleFeature> sfs = new ArrayList<SimpleFeature>();\r\n \t\t\tSimpleFeatureIterator iterator = currentfeatures.features();\r\n \t\t\t\r\n \t\t\tif(cql.length > 1 && cql[2].startsWith(\"BBOX3D\")) {\r\n \t\t\t cql[2] = cql[2].replaceAll(\"BBOX3D\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\(\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\)\", \"\");\r\n \t\t\t \r\n \t\t\t String[] coords = cql[2].split(\",\");\r\n \t\t\t \r\n \t\t\t String[] lowerStr = coords[0].trim().split(\" \");\r\n \t\t\t String[] upperStr = coords[1].trim().split(\" \");\r\n \t\t\t \r\n \t\t\t double[] lower = new double[3];\r\n \t\t\t double[] upper = new double[3];\r\n \t\t\t \r\n \t\t\t lower[0] = Double.parseDouble(lowerStr[0]);\r\n lower[1] = Double.parseDouble(lowerStr[1]);\r\n lower[2] = Double.parseDouble(lowerStr[2]);\r\n \r\n upper[0] = Double.parseDouble(upperStr[0]);\r\n upper[1] = Double.parseDouble(upperStr[1]);\r\n upper[2] = Double.parseDouble(upperStr[2]);\r\n \r\n DirectPosition lowerCorner = builder.createDirectPosition(lower);\r\n DirectPosition upperCorner = builder.createDirectPosition(upper);\r\n \r\n Solid s = makeFromEnvelope(builder, lowerCorner, upperCorner);\r\n cql[2] = s.toString();\r\n\r\n Document d = encode(s);\r\n //System.out.println(d);\r\n\r\n //System.out.println(cql[2]);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(cql[0].equalsIgnoreCase(\"contains\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.contains(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"contains \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"within\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.within(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"within \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"equals\")) {\r\n \t\t\t\tfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"equals \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"intersects\")) {\r\n \t\t\t\tFilter getidfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\t\r\n \t\t\t\twhile (iterator.hasNext()) {\r\n \t\t\t\t\tSimpleFeature feature = iterator.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(getidfilter.evaluate(feature)) {\r\n \t\t\t\t\t\tfeatureid = feature.getID();\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\tfilter = ff.intersects(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"intersects \";\r\n \t\t\t}\r\n \t\t\t\r\n\t\t\t//SimpleFeatureCollection features = source.getFeatures(filter);\r\n \t\t\titerator = currentfeatures.features();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tSimpleFeature feature = iterator.next();\r\n\t\t\t\tSystem.out.print(featureid + \" : \" + feature.getID() + \" \");\r\n\t\t\t\tif(filter.evaluate(feature)) {\r\n\t\t\t\t\tsfs.add(feature);\r\n\t\t\t\t\tSystem.out.println(\"true\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tSystem.out.println(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(sfs.size() == 0) {\r\n\t\t\t\ttable.setModel(new DefaultTableModel(5, 5));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tSimpleFeatureCollection result = ISODataUtilities.collection(sfs);\r\n \t\t\t\r\n\t\t\tlong end = System.currentTimeMillis();\r\n\t\t\t//System.out.println( \"실행 시간 : \" + ( end - start )/1000.0 );\r\n\t\t\tlabel.setText(filtertype + \"complete : \" + ( end - start )/1000.0 + \" sec\");\r\n\t\t\tFeatureCollectionTableModel model = new FeatureCollectionTableModel(result);\r\n\t\t\ttable.setModel(model);\r\n\t\t\t\r\n\t\t} catch (CQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}",
"public void insertToken(Token tok) {\r\n\t}",
"void tokenize(TextDocument document, TokenFactory tokens) throws IOException;",
"void addFeature(Feature feature);",
"public void annotate(CoreDocument document){\r\n for(int i=0;i<document.tokens().size();i++){\r\n CoreLabel token = document.tokens().get(i);\r\n if(token.word().equals(sch))\r\n token.set(SearchAnnotation.class,i);\r\n }\r\n }",
"public void addFeatures(IFeature feature);",
"public void testSuccesiveConjunctiveTermsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[f(a), g(b), h(c)], (?- f(X), g(Y), h(Z)), [[X <-- a, Y <-- b, Z <-- c]]]\");\n }",
"@Override\r\n public void annotate(Annotation annotation) {\r\n// System.out.println(\"Tokens\");\r\n// for(CoreLabel token : annotation.get(CoreAnnotations.TokensAnnotation.class)){\r\n for(int i=0;i<annotation.get(CoreAnnotations.TokensAnnotation.class).size();i++){\r\n CoreLabel token = annotation.get(CoreAnnotations.TokensAnnotation.class).get(i);\r\n// System.out.println(token.word() +\", tokenIndex = \"+i);\r\n if(token.word().equals(sch)) {\r\n// positions.add(token.index());\r\n token.set(SearchAnnotation.class,i); //index of the token is saved\r\n\r\n }\r\n }\r\n }",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public void addText(IText text) {\n var name = \"Text\"; // TODO should texts have a name? E.g. the filename etc.?\n var textIndividual = ontologyConnector.addIndividualToClass(name, textClass);\n var uuid = ontologyConnector.getLocalName(textIndividual);\n ontologyConnector.addPropertyToIndividual(textIndividual, uuidProperty, uuid);\n\n ImmutableList<IWord> words = text.getWords();\n\n // first add all word individuals\n var wordIndividuals = new ArrayList<Individual>();\n var wordsToIndividuals = new HashMap<IWord, Individual>();\n for (var word : words) {\n var wordIndividual = addWord(word);\n wordIndividuals.add(wordIndividual);\n wordsToIndividuals.put(word, wordIndividual);\n }\n\n // add dependencies to words.\n // We only add outgoing dependencies as ingoing are the same (but viewed from another perspective)\n for (var word : words) {\n var wordIndividual = wordsToIndividuals.get(word);\n for (var dependencyType : DependencyTag.values()) {\n var outDependencies = word.getWordsThatAreDependencyOfThis(dependencyType);\n for (var outDep : outDependencies) {\n var outWordIndividual = wordsToIndividuals.get(outDep);\n addDependencyBetweenWords(wordIndividual, dependencyType, outWordIndividual);\n }\n }\n }\n\n // create the list that is used for the words property\n var olo = ontologyConnector.addList(\"WordsOf\" + name, wordIndividuals);\n var listIndividual = olo.getListIndividual();\n ontologyConnector.addPropertyToIndividual(textIndividual, wordsProperty, listIndividual);\n\n // add coref stuff\n var corefClusters = text.getCorefClusters();\n for (var corefCluster : corefClusters) {\n var representativeMention = corefCluster.getRepresentativeMention();\n var corefClusterIndividual = ontologyConnector.addIndividualToClass(representativeMention, corefClusterClass);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, uuidProperty, \"\" + corefCluster.getId());\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, representativeMentionProperty, representativeMention);\n ontologyConnector.addPropertyToIndividual(textIndividual, hasCorefClusterProperty, corefClusterIndividual);\n\n var counter = 0;\n for (var mention : corefCluster.getMentions()) {\n var id = corefCluster.getId() + \"_\" + counter;\n counter += 1;\n var label = ICorefCluster.getTextForMention(mention);\n\n var mentionIndividual = ontologyConnector.addIndividualToClass(label, corefMentionClass);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, uuidProperty, id);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, mentionProperty, mentionIndividual);\n\n var mentionWordsIndividuals = getMentionWordIndividuals(mention, wordsToIndividuals);\n var mentionOlo = ontologyConnector.addList(\"WordsOf Mention \" + id, mentionWordsIndividuals);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, wordsProperty, mentionOlo.getListIndividual());\n }\n }\n\n }",
"public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }",
"private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText();\n // construct a vector of tokens and update the tokenList in CAS\n // use tokenize0 from above\n List<String> ls = tokenize0(docText);\n Map<String, Integer> map = new HashMap<String, Integer>();\n Collection<Token> token_collection = new ArrayList<Token>();\n for (String d : ls) {\n if (map.containsKey(d)) {\n int inc = map.get(d) + 1;\n map.put(d, inc);\n } else {\n map.put(d, 1);\n }\n }\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry) it.next();\n Token t = new Token(jcas);\n String k = pairs.getKey().toString();\n int v = Integer.parseInt(pairs.getValue().toString());\n t.setFrequency(v);\n t.setText(k);\n token_collection.add(t);\n it.remove(); // avoids a ConcurrentModificationException\n }\n // use util tool to convert to FSList\n doc.setTokenList(Utils.fromCollectionToFSList(jcas, token_collection));\n doc.addToIndexes(jcas);\n\n }",
"@Override\r\npublic Object produceValue(Annotation np, Document doc)\r\n{\n SortedSet<Integer> quoteLocations = new TreeSet<Integer>();\r\n Pattern p = Pattern.compile(\"\\\"|''|``|\\u201C|\\u201D\");\r\n\r\n String text = doc.getText();\r\n Matcher m = p.matcher(text);\r\n\r\n boolean inQuote = false;\r\n while (m.find()) {\r\n int start = m.start();\r\n if (inQuote && (text.substring(start).startsWith(\"``\") || text.substring(start).startsWith(\"\\u201C\"))) {\r\n // We have an opening quote; Make sure the previous quote is closed\r\n quoteLocations.add((start - 1));\r\n inQuote = false;\r\n }\r\n quoteLocations.add((start));\r\n inQuote = !inQuote;\r\n }\r\n // System.out.println(\"Quote locations: \"+quoteLocations);\r\n\r\n // Figure out which noun corresponds to which quote\r\n AnnotationSet sent = doc.getAnnotationSet(Constants.SENT);\r\n Iterator<Integer> quoteIter = quoteLocations.iterator();\r\n HashMap<Integer, Annotation> reporters = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> companies = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> sentReporter = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> compReporter = new HashMap<Integer, Annotation>();\r\n int counter = 1;\r\n while (quoteIter.hasNext()) {\r\n int qStart = quoteIter.next();\r\n if (!quoteIter.hasNext()) {\r\n break;\r\n }\r\n int qEnd = quoteIter.next() + 1;\r\n\r\n AnnotationSet sentences = sent.getOverlapping(qStart, qEnd);\r\n\r\n // Three cases for the size of the sentences set\r\n Annotation match, compMatch;\r\n if (sentences.size() < 1) {\r\n System.out.println(\"Quote is not covered by any sentence:\");\r\n int beg = qStart - 15;\r\n beg = beg < 0 ? 0 : beg;\r\n int en = qStart + 15;\r\n en = en >= text.length() ? text.length() - 1 : en;\r\n System.out.println(Utils.getAnnotText(beg, en, text));\r\n System.out.println(\"Position \" + qStart);\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n // throw new RuntimeException(\"Quote is not covered by any sentence\");\r\n }\r\n else if (sentences.size() == 1) {\r\n Annotation s = sentences.getFirst();\r\n // System.out.println(\"Sent: \"+Utils.getAnnotText(s, text));\r\n if (s.properCovers(qStart, qEnd)) {\r\n match = findReporter(qStart, qEnd, s, doc);\r\n compMatch = findCompany(qStart, qEnd, s, doc);\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n }\r\n else {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n sentReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), compMatch);\r\n }\r\n else {\r\n // The quoted string spans more than one sentence.\r\n Annotation beg = sentences.getFirst();\r\n // System.out.println(\"First sent: \"+Utils.getAnnotText(beg, text));\r\n Annotation end = sentences.getLast();\r\n // System.out.println(\"Last sent: \"+Utils.getAnnotText(end, text));\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n if (beg.getStartOffset() < qStart) {\r\n match = findReporter(qStart, qEnd, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, beg, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot()) && qEnd < end.getEndOffset()) {\r\n match = findReporter(qStart, qEnd, end, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n sentReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), match);\r\n sentReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), compMatch);\r\n compReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), compMatch);\r\n\r\n }\r\n reporters.put(counter, match);\r\n companies.put(counter, compMatch);\r\n counter += 2;\r\n\r\n // System.out.println(\"Quote: \"+Utils.getAnnotText(qStart, qEnd, text));\r\n // if(!match.equals(Annotation.getNullAnnot())){\r\n // System.out.println(\"Match: \"+Utils.getAnnotText(match, text));\r\n // }else{\r\n // System.out.println(\"no match!\");\r\n // }\r\n }\r\n int initial = quoteLocations.size();\r\n\r\n AnnotationSet nps = doc.getAnnotationSet(Constants.NP);\r\n for (Annotation a : nps.getOrderedAnnots()) {\r\n int s = a.getStartOffset();\r\n quoteLocations = quoteLocations.tailSet(s);\r\n int numQuotes = initial - quoteLocations.size();\r\n\r\n // System.err.println(numQuotes);\r\n if (numQuotes % 2 == 0) {\r\n a.setProperty(this, -1);\r\n a.setProperty(Property.AUTHOR, Annotation.getNullAnnot());\r\n a.setProperty(Property.COMP_AUTHOR, Annotation.getNullAnnot());\r\n }\r\n else {\r\n a.setProperty(this, numQuotes);\r\n a.setProperty(Property.AUTHOR, reporters.get(numQuotes));\r\n a.setProperty(Property.COMP_AUTHOR, companies.get(numQuotes));\r\n // if(FeatureUtils.isPronoun(a, annotations, text)&&FeatureUtils.getPronounPerson(FeatureUtils.getText(a,\r\n // text))==1\r\n // &&FeatureUtils.NumberEnum.SINGLE.equals(FeatureUtils.getNumber(a, annotations, text))){\r\n // Annotation repo = reporters.get(new Integer(numQuotes));\r\n // if(repo==null||repo.equals(Annotation.getNullAnnot())){\r\n // Annotation thisSent = sent.getOverlapping(a).getFirst();\r\n // System.out.println(\"*** No author in \"+Utils.getAnnotText(thisSent, text+\"***\"));\r\n // }\r\n // }\r\n }\r\n }\r\n // System.out.println(\"End of inquote\");\r\n\r\n return np.getProperty(this);\r\n}",
"public Token_Type(JCas jcas, Type casType) {\n super(jcas, casType);\n casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());\n\n \n casFeat_tag = jcas.getRequiredFeatureDE(casType, \"tag\", \"uima.cas.String\", featOkTst);\n casFeatCode_tag = (null == casFeat_tag) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_tag).getCode();\n\n \n casFeat_detailedtag = jcas.getRequiredFeatureDE(casType, \"detailedtag\", \"uima.cas.String\", featOkTst);\n casFeatCode_detailedtag = (null == casFeat_detailedtag) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_detailedtag).getCode();\n\n \n casFeat_lemma = jcas.getRequiredFeatureDE(casType, \"lemma\", \"uima.cas.String\", featOkTst);\n casFeatCode_lemma = (null == casFeat_lemma) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_lemma).getCode();\n\n \n casFeat_gerund = jcas.getRequiredFeatureDE(casType, \"gerund\", \"uima.cas.String\", featOkTst);\n casFeatCode_gerund = (null == casFeat_gerund) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_gerund).getCode();\n\n \n casFeat_chunk = jcas.getRequiredFeatureDE(casType, \"chunk\", \"uima.cas.String\", featOkTst);\n casFeatCode_chunk = (null == casFeat_chunk) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_chunk).getCode();\n\n \n casFeat_mltag = jcas.getRequiredFeatureDE(casType, \"mltag\", \"uima.cas.String\", featOkTst);\n casFeatCode_mltag = (null == casFeat_mltag) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_mltag).getCode();\n\n \n casFeat_depid = jcas.getRequiredFeatureDE(casType, \"depid\", \"uima.cas.Integer\", featOkTst);\n casFeatCode_depid = (null == casFeat_depid) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_depid).getCode();\n\n \n casFeat_dephead = jcas.getRequiredFeatureDE(casType, \"dephead\", \"uima.cas.Integer\", featOkTst);\n casFeatCode_dephead = (null == casFeat_dephead) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_dephead).getCode();\n\n \n casFeat_deprel = jcas.getRequiredFeatureDE(casType, \"deprel\", \"uima.cas.String\", featOkTst);\n casFeatCode_deprel = (null == casFeat_deprel) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_deprel).getCode();\n\n \n casFeat_maltdepid = jcas.getRequiredFeatureDE(casType, \"maltdepid\", \"uima.cas.Integer\", featOkTst);\n casFeatCode_maltdepid = (null == casFeat_maltdepid) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_maltdepid).getCode();\n\n \n casFeat_maltdephead = jcas.getRequiredFeatureDE(casType, \"maltdephead\", \"uima.cas.Integer\", featOkTst);\n casFeatCode_maltdephead = (null == casFeat_maltdephead) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_maltdephead).getCode();\n\n \n casFeat_maltdeprel = jcas.getRequiredFeatureDE(casType, \"maltdeprel\", \"uima.cas.String\", featOkTst);\n casFeatCode_maltdeprel = (null == casFeat_maltdeprel) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_maltdeprel).getCode();\n\n }",
"private Expr conjunction(Position pos, List<Expr> clauses, Expr self) {\n assert clauses.size() > 0;\n Substitution<Expr> subst = new Substitution<Expr>(Expr.class, Collections.singletonList(self)) {\n protected Expr subst(Expr n) {\n if (n instanceof X10Special && ((X10Special) n).kind() == X10Special.SELF)\n return by.get(0);\n return n;\n }\n };\n Expr left = null;\n for (Expr clause : clauses) {\n Expr right = (Expr) clause.visit(subst);\n right = (Expr) right.visit(this);\n if (left == null)\n left = right;\n else {\n left = xnf.Binary(pos, left, X10Binary_c.COND_AND, right).type(xts.Boolean());\n try {\n left = visitBinary((X10Binary_c) left);\n } catch (SemanticException e) {\n assert false : \"Unexpected exception when typechecking \"+left+\": \"+e;\n }\n }\n }\n return left;\n }",
"public RealConjunctiveFeature(String p, String c, Feature l, Feature r) {\n super(p, c);\n left = l;\n right = r;\n }",
"boolean hasPunctuationToAppend();",
"public interface PerlTokenSets extends PerlElementTypes, MooseElementTypes {\n TokenSet OPERATORS_TOKENSET = TokenSet.create(\n OPERATOR_CMP_NUMERIC,\n OPERATOR_LT_NUMERIC,\n OPERATOR_GT_NUMERIC,\n\n OPERATOR_CMP_STR,\n OPERATOR_LE_STR,\n OPERATOR_GE_STR,\n OPERATOR_EQ_STR,\n OPERATOR_NE_STR,\n OPERATOR_LT_STR,\n OPERATOR_GT_STR,\n\n OPERATOR_HELLIP,\n OPERATOR_FLIP_FLOP,\n OPERATOR_CONCAT,\n\n OPERATOR_PLUS_PLUS,\n OPERATOR_MINUS_MINUS,\n OPERATOR_POW,\n\n OPERATOR_RE,\n OPERATOR_NOT_RE,\n\n //\t\t\tOPERATOR_HEREDOC, // this is an artificial operator, not the real one; fixme uncommenting breaks parsing of print $of <<EOM\n OPERATOR_SHIFT_LEFT,\n OPERATOR_SHIFT_RIGHT,\n\n OPERATOR_AND,\n OPERATOR_OR,\n OPERATOR_OR_DEFINED,\n OPERATOR_NOT,\n\n OPERATOR_ASSIGN,\n\n QUESTION,\n COLON,\n\n OPERATOR_REFERENCE,\n\n OPERATOR_DIV,\n OPERATOR_MUL,\n OPERATOR_MOD,\n OPERATOR_PLUS,\n OPERATOR_MINUS,\n\n OPERATOR_BITWISE_NOT,\n OPERATOR_BITWISE_AND,\n OPERATOR_BITWISE_OR,\n OPERATOR_BITWISE_XOR,\n\n OPERATOR_AND_LP,\n OPERATOR_OR_LP,\n OPERATOR_XOR_LP,\n OPERATOR_NOT_LP,\n\n COMMA,\n FAT_COMMA,\n\n OPERATOR_DEREFERENCE,\n\n OPERATOR_X,\n OPERATOR_FILETEST,\n\n // syntax operators\n OPERATOR_POW_ASSIGN,\n OPERATOR_PLUS_ASSIGN,\n OPERATOR_MINUS_ASSIGN,\n OPERATOR_MUL_ASSIGN,\n OPERATOR_DIV_ASSIGN,\n OPERATOR_MOD_ASSIGN,\n OPERATOR_CONCAT_ASSIGN,\n OPERATOR_X_ASSIGN,\n OPERATOR_BITWISE_AND_ASSIGN,\n OPERATOR_BITWISE_OR_ASSIGN,\n OPERATOR_BITWISE_XOR_ASSIGN,\n OPERATOR_SHIFT_LEFT_ASSIGN,\n OPERATOR_SHIFT_RIGHT_ASSIGN,\n OPERATOR_AND_ASSIGN,\n OPERATOR_OR_ASSIGN,\n OPERATOR_OR_DEFINED_ASSIGN,\n\n OPERATOR_GE_NUMERIC,\n OPERATOR_LE_NUMERIC,\n OPERATOR_EQ_NUMERIC,\n OPERATOR_NE_NUMERIC,\n OPERATOR_SMARTMATCH\n );\n\n TokenSet DEFAULT_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_MY,\n RESERVED_OUR,\n RESERVED_STATE,\n RESERVED_LOCAL,\n RESERVED_ELSIF,\n RESERVED_ELSE,\n RESERVED_GIVEN,\n RESERVED_DEFAULT,\n RESERVED_CONTINUE,\n RESERVED_FORMAT,\n RESERVED_SUB,\n RESERVED_PACKAGE,\n RESERVED_USE,\n RESERVED_NO,\n RESERVED_REQUIRE,\n RESERVED_UNDEF,\n RESERVED_PRINT,\n RESERVED_PRINTF,\n RESERVED_SAY,\n RESERVED_GREP,\n RESERVED_MAP,\n RESERVED_SORT,\n RESERVED_DO,\n RESERVED_EVAL,\n RESERVED_GOTO,\n RESERVED_REDO,\n RESERVED_NEXT,\n RESERVED_LAST,\n RESERVED_RETURN,\n\n RESERVED_Y,\n RESERVED_TR,\n RESERVED_Q,\n RESERVED_S,\n RESERVED_M,\n RESERVED_QW,\n RESERVED_QQ,\n RESERVED_QR,\n RESERVED_QX,\n\n RESERVED_IF,\n RESERVED_UNTIL,\n RESERVED_UNLESS,\n RESERVED_FOR,\n RESERVED_FOREACH,\n RESERVED_WHEN,\n RESERVED_WHILE\n );\n\n TokenSet TRY_CATCH_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_TRY,\n RESERVED_CATCH,\n RESERVED_FINALLY,\n RESERVED_CATCH_WITH,\n RESERVED_EXCEPT,\n RESERVED_OTHERWISE,\n RESERVED_CONTINUATION\n );\n\n TokenSet METHOD_SIGNATURES_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_METHOD,\n RESERVED_FUNC\n );\n\n TokenSet KEYWORDS_TOKENSET = TokenSet.orSet(\n DEFAULT_KEYWORDS_TOKENSET,\n MOOSE_RESERVED_TOKENSET,\n METHOD_SIGNATURES_KEYWORDS_TOKENSET,\n TRY_CATCH_KEYWORDS_TOKENSET\n );\n\n TokenSet ANNOTATIONS_KEYS = TokenSet.create(\n ANNOTATION_DEPRECATED_KEY,\n ANNOTATION_RETURNS_KEY,\n ANNOTATION_OVERRIDE_KEY,\n ANNOTATION_METHOD_KEY,\n ANNOTATION_ABSTRACT_KEY,\n ANNOTATION_INJECT_KEY,\n ANNOTATION_NOINSPECTION_KEY,\n ANNOTATION_TYPE_KEY\n\n );\n\n TokenSet STRING_CONTENT_TOKENSET = TokenSet.create(\n STRING_CONTENT,\n STRING_CONTENT_XQ,\n STRING_CONTENT_QQ\n );\n\n TokenSet HEREDOC_BODIES_TOKENSET = TokenSet.create(\n HEREDOC,\n HEREDOC_QQ,\n HEREDOC_QX\n );\n\n\n TokenSet QUOTE_MIDDLE = TokenSet.create(REGEX_QUOTE, REGEX_QUOTE_E);\n\n TokenSet QUOTE_OPEN_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_OPEN, REGEX_QUOTE_OPEN_E),\n PerlParserUtil.OPEN_QUOTES,\n QUOTE_MIDDLE\n );\n\n TokenSet QUOTE_CLOSE_FIRST_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_CLOSE),\n QUOTE_MIDDLE,\n CLOSE_QUOTES\n );\n\n TokenSet QUOTE_CLOSE_PAIRED = TokenSet.orSet(\n CLOSE_QUOTES,\n TokenSet.create(REGEX_QUOTE_CLOSE)\n );\n\n TokenSet SIGILS = TokenSet.create(\n SIGIL_SCALAR, SIGIL_ARRAY, SIGIL_HASH, SIGIL_GLOB, SIGIL_CODE, SIGIL_SCALAR_INDEX\n );\n\n TokenSet STATEMENTS = TokenSet.create(\n STATEMENT, USE_STATEMENT, NO_STATEMENT\n );\n\n TokenSet LAZY_CODE_BLOCKS = TokenSet.create(LP_CODE_BLOCK, LP_CODE_BLOCK_WITH_TRYCATCH);\n\n TokenSet LAZY_PARSABLE_REGEXPS = TokenSet.create(\n LP_REGEX_REPLACEMENT,\n LP_REGEX,\n LP_REGEX_X,\n LP_REGEX_XX\n );\n\n TokenSet HEREDOC_ENDS = TokenSet.create(HEREDOC_END, HEREDOC_END_INDENTABLE);\n /**\n * Quote openers with three or four quotes\n */\n TokenSet COMPLEX_QUOTE_OPENERS = TokenSet.create(\n RESERVED_S,\n RESERVED_TR,\n RESERVED_Y\n );\n TokenSet SIMPLE_QUOTE_OPENERS = TokenSet.create(\n RESERVED_Q,\n RESERVED_QQ,\n RESERVED_QX,\n RESERVED_QW,\n RESERVED_QR,\n RESERVED_M\n );\n}",
"public interface TextFeature extends Closeable {\n\n /**\n * Get an ID for the feature extractor\n * @return The ID\n */\n String id();\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @return The set of features\n */\n default Feature[] extractFeatures(LensResult facet) {\n return extractFeatures(facet, NaiscListener.DEFAULT);\n }\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @param log The listener\n * @return The set of features\n */\n Feature[] extractFeatures(LensResult facet, NaiscListener log);\n\n /**\n * Get the tags that this feature extractor accepts or null for all\n * @return The set of features accepted or null for all\n */\n Set<String> tags();\n}",
"@Override\n\tpublic boolean increment() throws TokenizerException {\n\t\t\n\t\t StringBuffer res = new StringBuffer();\n\n\t\t\tToken current_token=t_stream.next();\n\t\t\tif(current_token==null)\n\t\t\t\treturn false;\n\t\t\tString str=current_token.getTermText();\n\t\t\tchar [] buf=current_token.getTermBuffer();\n\t\t\t\n\t\t\tfor(char a:buf)\n\t\t\t{\n\t\t\t\tif(Character.isLetterOrDigit(a) || a=='.')\n\t\t\t\t\tres.append(a);\n\t\t\t\telse if(a=='-')\n\t\t\t\t{\n\t\t\t\t\tif(matcher==null)\n\t\t\t\t\t\tmatcher = intpattern.matcher(str);\n\t\t\t\t\telse\n\t\t\t\t\t\tmatcher.reset(str);\n\t\t\t boolean isMatched = matcher.matches();\n\t\t\t \n\t\t\t if(isMatched)\n\t\t\t \t res=res.append(a);\n\t\t\t\t}\n\t\t\t\telse if(a==' ')\n\t\t\t\t\tres=res.append(a);\n\t\t\t}\n\t\t\t\n\t\t\tif(!(str.equals(res.toString())))\n\t\t\t{\n\t\t\t\tcurrent_token.setTermText(res.toString());\n\t\t\t\tt_stream.replace(current_token);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(t_stream.hasNext())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\t\n\t}",
"@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }",
"@Override\n public void process(JCas jcas)\n throws AnalysisEngineProcessException\n {\n \tfor (LineAnnotation line : JCasUtil.select(jcas, LineAnnotation.class)) {\n String pText = line.getCoveredText();\n int boundary = pText.length();\n int start = 0;\n int end = 0;\n\n while (start < boundary) {\n while (start < boundary && (Character.isSpaceChar(pText.charAt(start)) || Character.isWhitespace(pText.charAt(start))) ) {\n start++;\n }\n\n for (end = start; end < boundary && !(Character.isSpaceChar(pText.charAt(end)) || Character.isWhitespace(pText.charAt(end))); end++);\n \n if (start < boundary) {\n Token tokenAnnotation = new Token(jcas);\n tokenAnnotation.setBegin(start+line.getBegin());\n tokenAnnotation.setEnd(end+line.getBegin());\n tokenAnnotation.addToIndexes();\n }\n start = end + 1;\n }\n \t}\n }",
"void setFeatures(Features f) throws Exception;",
"@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}",
"void addWordToDoc(int doc,VocabWord word);",
"private void configureAnalysisFeatures() {\n for (AnalysisFeatureSetting setting : analysisOptions.analysisFeatureSettingList) {\n setting.configure(AnalysisContext.currentAnalysisContext());\n }\n AnalysisContext.currentAnalysisContext().setBoolProperty(AnalysisFeatures.MERGE_SIMILAR_WARNINGS,\n analysisOptions.mergeSimilarWarnings);\n }",
"public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}",
"protected Query analyzeMultiBoolean(\n String field, TokenStream stream, BooleanClause.Occur operator) throws IOException {\n BooleanQuery.Builder q = newBooleanQuery();\n List<TermAndBoost> currentQuery = new ArrayList<>();\n\n TermToBytesRefAttribute termAtt = stream.getAttribute(TermToBytesRefAttribute.class);\n PositionIncrementAttribute posIncrAtt = stream.getAttribute(PositionIncrementAttribute.class);\n BoostAttribute boostAtt = stream.addAttribute(BoostAttribute.class);\n\n stream.reset();\n while (stream.incrementToken()) {\n if (posIncrAtt.getPositionIncrement() != 0) {\n add(field, q, currentQuery, operator);\n currentQuery.clear();\n }\n currentQuery.add(new TermAndBoost(termAtt.getBytesRef(), boostAtt.getBoost()));\n }\n add(field, q, currentQuery, operator);\n\n return q.build();\n }",
"Builder addAccessibilityFeature(Text value);",
"public void analyzeDocument(String text) {\n\t\tString[] tokens = m_tokenizer.tokenize(text.toLowerCase());\n\t\tfor (int j = 0; j < tokens.length; j++)\n\t\t\ttokens[j] = SnowballStemmingDemo(NormalizationDemo(tokens[j]));\n\t\tHashMap<String, Integer> document_tf = new HashMap<String, Integer>();\n\t\tfor (String token : tokens) {\n\t\t\tif (!document_tf.containsKey(token))\n\t\t\t\tdocument_tf.put(token, 1);\n\t\t\telse\n\t\t\t\tdocument_tf.put(token, document_tf.get(token) + 1);\n\t\t\tif (!df.containsKey(token))\n\t\t\t\tdf.put(token, 1);\n\t\t\telse\n\t\t\t\tdf.put(token, df.get(token) + 1);\n\t\t}\n\t\ttf.add(document_tf);\n\t\t/*\n\t\t * for(String token : document_tf.keySet()) { if(!df.containsKey(token))\n\t\t * df.put(token, 1); else df.put(token, df.get(token) + 1); if(!) }\n\t\t */\n\t\tm_reviews.add(text);\n\t}",
"public static boolean markedAsInLexiconInAnyAnalysis(final SentenceTheory st, final Token tok) {\n for (final MorphTokenSequence morphTokenSequence : st.morphTokenSequences()) {\n final Optional<MorphToken> forToken = morphTokenSequence.morphTokenForToken(tok);\n if (forToken.isPresent()) {\n for (final MorphTokenAnalysis analysis : forToken.get().analyses()) {\n for (final LexicalForm lemma : analysis.lemmas()) {\n if (lemma.inLexicon()) {\n return true;\n }\n }\n }\n }\n }\n return false;\n }",
"public void processFeatureReference(final FeatureReference featureRef) {\n if (cppDirectivesByLineNumberAsIs == null) {\n cppDirectivesByLineNumberAsIs = getCppDirectivesByLineNumberAsIs(doc);\n }\n\n this.file.AddFeatureConstant(featureRef);\n Node correspondingCppDirective = this.findCppDirectiveForFeatureLocation(featureRef);\n if (correspondingCppDirective != null) {\n // calculate the granularity by checking each sibling node\n // from start1 to end1 of the annotation\n calculateGranularityOfFeatureConstantReference(featureRef, correspondingCppDirective);\n // assign this location to its corresponding method\n assignFeatureConstantReferenceToMethod(featureRef, correspondingCppDirective);\n } else {\n LOG.warn(\"Failed to find the CPP directive for feature constant reference \" + featureRef);\n }\n }",
"void getNextWord () \n\t\t\tthrows IOException, FileNotFoundException {\n \n\t\tcontext.word.setLength(0);\n \n // Build the next entity\n while ((context.entityCharCount > 0)\n && (! atEnd)) {\n getNextCharacter();\n }\n \n // See if the word starts with white space\n boolean startingWhiteSpaceForWord\n = (htmlChar.whiteSpace \n && (context.fieldType == HTMLContext.TEXT)\n && (! context.preformatted));\n \n // Capture leading whitespace if appropriate\n if (htmlChar.whiteSpace\n && context.fieldType == HTMLContext.TEXT\n && (context.field.length() > 0\n || context.preformatted)) {\n context.word.append (htmlChar.character);\n }\n \n // If we're dealing with preformatted text, \n // then capture all leading white space\n if (context.preformatted && context.fieldType == HTMLContext.TEXT) {\n while (htmlChar.whiteSpace && (! atEnd)) {\n context.word.append (htmlChar.character);\n getNextCharacter();\n }\n }\n \n // Now skip any remaining white space\n while (((htmlChar.whiteSpace) \n || context.entityCharCount > 0)\n && (! atEnd)) {\n getNextCharacter();\n }\n \n // See if we've got got a quoted attribute value\n\t\tif (context.fieldType == HTMLContext.ATTRIBUTE_VALUE\n && (! htmlChar.translatedEntity)) {\n if (htmlChar.character == GlobalConstants.DOUBLE_QUOTE) {\n context.quoted = true;\n context.startQuoteChar = GlobalConstants.DOUBLE_QUOTE;\n }\n else\n if (htmlChar.character == GlobalConstants.SINGLE_QUOTE) {\n context.quoted = true;\n context.startQuoteChar = GlobalConstants.SINGLE_QUOTE;\n }\n\t\t}\n \n // Now capture the word's content\n\t\twhile (! htmlChar.endsWord) {\n\t\t\tcontext.word.append (htmlChar.character);\n\t\t\tdo {\n getNextCharacter();\n } while ((context.entityCharCount > 0) && (! atEnd));\n\t\t}\n \n\t\tif (context.quoted\n && (! htmlChar.translatedEntity)\n\t\t\t\t&& htmlChar.character == context.startQuoteChar) {\n\t\t\tcontext.word.append (htmlChar.character);\n context.quoted = false;\n\t\t\tdo {\n getNextCharacter();\n } while ((context.entityCharCount > 0) && (! atEnd));\n\t\t}\n if (startingWhiteSpaceForWord\n && context.fieldType == HTMLContext.TEXT\n && context.word.length() > 0\n && (! Character.isWhitespace (context.word.charAt (0)))) {\n context.word.insert (0, ' ');\n }\n\t}",
"public void setConjunction(boolean conjunction) {\r\n\t\tthis.conjunction = conjunction;\r\n\t}",
"private void setCorpus(){\n URL u = Converter.getURL(docName);\n FeatureMap params = Factory.newFeatureMap();\n params.put(\"sourceUrl\", u);\n params.put(\"markupAware\", true);\n params.put(\"preserveOriginalContent\", false);\n params.put(\"collectRepositioningInfo\", false);\n params.put(\"encoding\",\"windows-1252\");\n Print.prln(\"Creating doc for \" + u);\n Document doc = null;\n try {\n corpus = Factory.newCorpus(\"\");\n doc = (Document)\n Factory.createResource(\"gate.corpora.DocumentImpl\", params);\n } catch (ResourceInstantiationException ex) {\n ex.printStackTrace();\n }\n corpus.add(doc);\n annieController.setCorpus(corpus);\n params.clear();\n }",
"public static void tokenizeOnWS (Document doc, Span span) {\n\t\tString text = doc.text();\n\t\tint tokenStart;\n\t\tint ic = span.start();\n\t\tint end = span.end();\n\t\t// skip white space preceding first token\n\t\twhile ((ic < end) && Character.isWhitespace(text.charAt(ic))) ic++;\n\t\twhile (ic < end) {\n\t \t\ttokenStart = ic;\n\t \tic++;\n\t \twhile ((ic < end) && !Character.isWhitespace(text.charAt(ic))) ic++;\n\t \t// include whitespace following token\n\t \twhile ((ic < end) && Character.isWhitespace(text.charAt(ic))) ic++;\n\t \trecordToken (doc, text, tokenStart, ic, new FeatureSet());\n\t }\n\t}",
"private static String getSingleText(CommonToken token, String name1, String name2) {\n String input = token.getText();\n\n if (StringUtils.containsWhitespace(input)) return input;\n if (\",\".equals(input)) return \" AND \";\n return name1 + \".\" + input + \"=\" + name2 + \".\" + input;\n }",
"void documentFrequncy(Set<String> features,\n int index,\n int troush\n ) {\n for (String str : features) {\n switch (index) {\n case 1:\n for (int i = 0; i < count1; i++) {\n if (economydocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyeco.put(str, e);\n }\n e = 0;\n break;\n case 2:\n for (int i = 0; i < count2; i++) {\n if (educationdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyedu.put(str, e);\n }\n e = 0;\n break;\n case 3:\n for (int i = 0; i < count3; i++) {\n if (sportdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyspo.put(str, e);\n }\n e = 0;\n break;\n case 4:\n for (int i = 0; i < count4; i++) {\n if (culturedocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencycul.put(str, e);\n }\n e = 0;\n break;\n case 5:\n for (int i = 0; i < count5; i++) {\n if (accedentdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyaccid.put(str, e);\n }\n e = 0;\n break;\n case 6:\n for (int i = 0; i < count6; i++) {\n if (environmntaldocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyenv.put(str, e);\n }\n e = 0;\n break;\n case 7:\n for (int i = 0; i < count7; i++) {\n if (foreign_affairdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencydep.put(str, e);\n }\n e = 0;\n break;\n case 8:\n for (int i = 0; i < count8; i++) {\n if (law_justicedocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencylaw.put(str, e);\n }\n e = 0;\n break;\n case 9:\n for (int i = 0; i < count9; i++) {\n if (agriculture[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyagri.put(str, e);\n }\n e = 0;\n break;\n case 10:\n for (int i = 0; i < count10; i++) {\n if (politicsdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencypoltics.put(str, e);\n }\n e = 0;\n break;\n// case 11:\n//\n// for (int i = 0; i < count11; i++) {\n// if (social_affairsdocument[i].contains(str)) {\n// e++;\n// }\n// }\n// if (e > troush) {\n// documntfrequencysocial.put(str, e);\n// }\n// e = 0;\n// break;\n case 11:\n for (int i = 0; i < count12; i++) {\n if (science_technologydocument[i].contains(str)) {\n e++;\n }\n }\n\n if (e > troush) {\n documntfrequencysci.put(str, e);\n }\n e = 0;\n break;\n case 12:\n for (int i = 0; i < count13; i++) {\n if (healthdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyhel.put(str, e);\n }\n e = 0;\n break;\n case 13:\n for (int i = 0; i < count14; i++) {\n if (army[i].contains(str)) {\n e++;\n }\n }\n\n if (e > troush) {\n documntfrequencyarmy.put(str, e);\n }\n e = 0;\n break;\n default:\n break;\n }\n\n }\n }",
"protected void configureTokenizer()\r\n\t{\r\n\t\tLogger.debug(\"Configuring syntax tokenizer\", Level.GUI,this);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tLogger.debug(\"Setting flags\", Level.GUI,this);\r\n\t\t\t// Use the standard configuration as a base\r\n\t\t\tm_properties = new StandardTokenizerProperties();\r\n\t\t\t// Return token positions and line comments\r\n\t\t\tm_properties.setParseFlags( Flags.F_TOKEN_POS_ONLY | Flags.F_RETURN_LINE_COMMENTS );\r\n\t\t\t// Python comments\r\n\t\t\t// Block comments are parsed manually\r\n\t\t\tm_properties.addLineComment(\"#\");\n\t\t\t// Python strings\r\n\t\t\tm_properties.addString(\"\\\"\", \"\\\"\", \"\\\"\");\r\n\t\t\tm_properties.addString(\"\\'\", \"\\'\", \"\\'\");\r\n\t\t\t// Normal whitespaces\r\n\t\t\tm_properties.addWhitespaces(TokenizerProperties.DEFAULT_WHITESPACES);\r\n\t\t\t// Normal separators\r\n\t\t\tm_properties.addSeparators(TokenizerProperties.DEFAULT_SEPARATORS);\r\n\t\t\t// Add our keywords\r\n\t\t\tLogger.debug(\"Adding keywords\", Level.GUI,this);\r\n\t\t\tfor(String word : m_listFunctions)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listModifiers)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listLanguage)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listConstants)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\t// Special symbols\r\n\t\t\tLogger.debug(\"Adding symbols\", Level.GUI,this);\r\n\t\t\tm_properties.addSpecialSequence(\"\\\"\\\"\\\"\");\r\n\t\t\tm_properties.addSpecialSequence(\"{\");\r\n\t\t\tm_properties.addSpecialSequence(\"}\");\r\n\t\t\tm_properties.addSpecialSequence(\"(\");\r\n\t\t\tm_properties.addSpecialSequence(\")\");\r\n\t\t\tm_properties.addSpecialSequence(\"[\");\r\n\t\t\tm_properties.addSpecialSequence(\"]\");\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}",
"public void setFeatures(List<String> features) {\n this.features = features;\n }",
"public NearSyllFeature(boolean isNext) {\n this.isNext = isNext;\n }",
"public void processCas(CAS cas) {\n\n FSIndex<AnnotationFS> sentenceAnnotations = cas.getAnnotationIndex(mSentenceType);\n\n for (AnnotationFS sentence : sentenceAnnotations) {\n process(cas, sentence);\n }\n }",
"public void tagDocument (Document doc) {\n\t\tmene.newDocument();\n\t\tVector textSegments = doc.annotationsOfType (\"TEXT\");\n\t\tIterator it = textSegments.iterator ();\n\t\twhile (it.hasNext ()) {\n\t\t\tAnnotation ann = (Annotation)it.next ();\n\t\t\tSpan textSpan = ann.span ();\n\t\t\tSentenceSplitter.split (doc, textSpan);\n\t\t}\n\t\tVector sentences = doc.annotationsOfType (\"sentence\");\n\t\tIterator is = sentences.iterator ();\n\t\twhile (is.hasNext ()) {\n\t\t\tAnnotation sentence = (Annotation)is.next ();\n\t\t\tSpan sentenceSpan = sentence.span();\n\t\t\tTokenizer.tokenize (doc, sentenceSpan);\n\t\t\tLexicon.annotateWithDefinitions(doc, sentenceSpan.start(), sentenceSpan.end());\n\t\t\ttag (doc, sentenceSpan);\n\t\t}\n\t}",
"private void processFeatureLocationsInFile(DocWithFileAndCppDirectives extDoc) {\n GroupingListMap<String, FeatureReference> featureReferencesByFilePath = groupFeatureReferencesByFilePath();\n\n final String filePath = extDoc.fp.actualPath;\n final List<FeatureReference> references = featureReferencesByFilePath.get(filePath);\n if (references == null) {\n LOG.debug(\"No feature locations in \" + extDoc.fp.pathKey);\n return;\n }\n\n for (FeatureReference ref : references) {\n extDoc.processFeatureReference(ref);\n }\n\n LOG.debug(\"Done processing feature locations in \" + extDoc.fp.pathKey);\n }",
"SchemaBuilder withFeature(String name, Boolean value);",
"public void addToCorpus(String word) {\n corpus.add(word);\n }",
"public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}",
"Iterator features();",
"@Override\n\tpublic List<ClusteredMention> runCoreference(Document doc) {\n\t\t//(variables)\n\t\t//Put all in one hash, then build at the end....\n\t\tMap<Mention,Mention> corefs = new HashMap<Mention,Mention>();\n\t\t//if mention isnt in corefs, add it as a singleton cluster\n\t\t//Otherwise markcoref, and add to clusters\n\t\t\n\t\tMap<String,Mention> stringMatches = new HashMap<String,Mention>();\n\t\t//Map of string to mention...\n\t\t\n\t\t//Map<Mention,Entity> pronounClusters = new HashMap<Mention,Entity>();\n\t\tboolean clustered;\n\t\t//Evaluate all non pronoun mentions\n\t\tfor(Mention m : doc.getMentions()){\n\t\t\tclustered = false;\n\t\t\t//(...get its text)\n\t\t\tString mentionString = m.gloss();\n\t\t\t//If its not a pronoun\n\t\t\tif (!checkPronoun(m.headWord(),m.headToken())) {\n\t\t\t\t//(...if we've seen this text before...)\n\t\t\t\tif(stringMatches.containsKey(mentionString)){\n\t\t\t\t\t//Mark coreferent\n\t\t\t\t\tcorefs.put(m,stringMatches.get(mentionString));\n\t\t\t\t\tclustered=true;\n\t\t\t\t} else {\n\t\t\t\t\t//try to find a head word match to m's head word\n\t\t\t\t\t//(for each previous mention...)\n\t\t\t\t\tfor (int i=doc.indexOfMention(m)-1; i>=0 && !clustered;i--) {\n\t\t\t\t\t\tMention h = doc.getMentions().get(i);\n\t\t\t\t\t\tString otherMention = h.gloss();\n\t\t\t\t\t\t//If head words are identical, or head words are coreferent\n\t\t\t\t\t\tif (m.headWord().equalsIgnoreCase(h.headWord()) || \n\t\t\t\t\t\t\t\t(coreferentHeads.containsKey(m.headWord()) && \n\t\t\t\t\t\t\t\t\t\tcoreferentHeads.get(m.headWord()).contains(h.headWord()))) {\n\t\t\t\t\t\t\t//Mark as coreferent\n\t\t\t\t\t\t\tstringMatches.put(mentionString, m);\n\t\t\t\t\t\t\tcorefs.put(m,stringMatches.get(otherMention));\n\t\t\t\t\t\t\tclustered=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!clustered){\n\t\t\t\t\t//(...else create a new singleton cluster)\n\t\t\t\t\tstringMatches.put(mentionString, m);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(Mention m : doc.getMentions()){\n\t\t\t//If it is a pronoun of interest\n\t\t\tif (checkPronoun(m.headWord(),m.headToken())) {\n\t\t\t\tMention hco = hobbsCoreferent(m);\n\t\t\t\tif (hco!=null && !hco.equals(m)){\n\t\t\t\t\tString hcoString = hco.gloss();\n\t\t\t\t\t//System.out.printf(\"Found coreference %s\\n\", hcoString);\n\t\t\t\t\tif (stringMatches.containsKey(hcoString)){\n\t\t\t\t\t\t//mentions.add(m.markCoreferent(stringClusters.get(hcoString)));\n\t\t\t\t\t\tcorefs.put(m,stringMatches.get(hcoString));\n\t\t\t\t\t} else{\n\t\t\t\t\t\t//Add as coreferent\n\t\t\t\t\t\tcorefs.put(m, hco);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\n\t\t//Build list of mentions\n\t\tList<ClusteredMention> cMentions = new ArrayList<ClusteredMention>();\n\t\tMap<Mention,ClusteredMention> clusters = new HashMap<Mention,ClusteredMention>();\n\t\tList<Mention> mentions = new ArrayList<Mention>(doc.getMentions());\n\t\twhile (!mentions.isEmpty()){\n\t\t\tMention m = mentions.get(0);\n\t\t\tif (corefs.containsKey(m) && corefs.get(m)!=null){\n\t\t\t\tMention h = corefs.get(m);\n\t\t\t\tif(!clusters.containsKey(h)) {\n\t\t\t\t\tint hIndex = mentions.indexOf(h);\n\t\t\t\t\tmentions.set(0, h);\n\t\t\t\t\tmentions.set(hIndex,m);\n\t\t\t\t\tif (hIndex > 0){\n\t\t\t\t\t\tClusteredMention newCluster = h.markSingleton();\n\t\t\t\t\t\tcMentions.add(newCluster);\n\t\t\t\t\t\tmentions.remove(hIndex);\n\t\t\t\t\t\tclusters.put(h,newCluster);\n\t\t\t\t\t\tcMentions.add(m.markCoreferent(clusters.get(h)));\n\t\t\t\t\t\tmentions.remove(0);\n\t\t\t\t\t\tclusters.put(m,clusters.get(h));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\tcMentions.add(m.markCoreferent(clusters.get(h)));\n\t\t\t\tmentions.remove(0);\n\t\t\t\tclusters.put(m,clusters.get(h));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tClusteredMention newCluster = m.markSingleton();\n\t\t\t\tcMentions.add(newCluster);\n\t\t\t\tmentions.remove(0);\n\t\t\t\tclusters.put(m,newCluster);\n\t\t\t}\n\t\t}\n\t\treturn cMentions;\n\t}",
"protected void addContentAsTokens(Tokenizer tokenizer, Object value) {\n if (Strings.isEmpty(value)) {\n return;\n }\n String normalizedValue = NON_PREFIX_OR_WHITESPACE_CHARACTER.matcher(value.toString()).replaceAll(\"\");\n tokenizer.acceptPlain(normalizedValue, searchPrefixes::add);\n }",
"Builder addKeywords(String value);",
"@Override\n\tpublic void apply(TokenStream stream) throws TokenizerException {\n\t\tcreateList();\n\t\tstream.reset();\n\t\twhile(stream.hasNext()){\n\t\t\tString ans=stream.next();\n\t\t\tans=ans.trim();\n\t\t\tif(ans.matches(\"\")){\n\t\t\t\tstream.previous();\n\t\t\t\tstream.remove();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tObject[] key=tokens.keySet().toArray();\n\t\t\tfor(int i=0 ;i<tokens.size(); i++){\n\t\t\t\tif(ans.contains(key[i].toString())){\n\t\t\t\t\tans=ans.replaceAll(key[i].toString(), tokens.get(key[i].toString()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstream.previous();\n\t\t\tstream.set(ans);\n\t\t\tstream.next();\n\n\t\t}\n\t\t//stream.reset();\n\t}",
"private static String handleNonPhraseToken(String stringPart) {\r\n // Set of final terms to be used (no empty elements, right syntax of index fields)\r\n ArrayList <String> terms = new ArrayList <String> ();\r\n \r\n /** Case Index field **/\r\n if(stringPart.contains(\"[\") | stringPart.contains(\"[\")){ // at least an Index field contained here\r\n //separate brackets for term with one space (extra spaces dont matter, trim() is used later)\r\n stringPart = stringPart.replace(\"[\", \" [\");\r\n stringPart = stringPart.replace(\"]\", \"] \");\r\n }\r\n\r\n /** Case Bag of terms **/\r\n //replace space with AND (change default operator to match pubMed's)\r\n // No need for this if setDefaultOperator(QueryParser.Operator.AND) is used\r\n \r\n String[] tokens = stringPart.split(\"\\\\s\");\r\n if(tokens.length > 0){ \r\n for(int i = 1 ; i < tokens.length ; i++){\r\n tokens[i] = tokens[i].trim();\r\n /* Case index field [fieldName] */\r\n if(tokens[i].startsWith(\"[\") & tokens[i].endsWith(\"]\")){\r\n tokens[i] = tokens[i].replace(\"[\",\"\");// clean field name from brackets\r\n tokens[i] = tokens[i].replace(\"]\",\"\");// clean field name from brackets\r\n //Add index field as prefix to previus (not empty) term (as opening index fields handled separately, this index field should not be the first term of string part)\r\n int tmp = i-1;\r\n boolean perviusTermFound = false;\r\n while(!perviusTermFound & tmp >= 0){\r\n if(!tokens[tmp].equals(\"\")){\r\n perviusTermFound = true;\r\n //TO DO : handle wrong syntax (e.g. ... AND [ArticleTitle])\r\n String luceneField = supportedIndexFields.get(tokens[i]);\r\n if(luceneField != null){\r\n tokens[tmp] = luceneField + \":\" + tokens[tmp];\r\n } // else : Lucene counterpart not found, unsupported field - do nothing\r\n } else {\r\n tmp--;\r\n }\r\n }\r\n //Empty field to not be added as a search term in query\r\n tokens[i] = \"\";\r\n } \r\n \r\n /*\r\n \r\n else if(!tokens[i].equals(\"AND\") & !tokens[i].equals(\"\")) {\r\n terms.add(tokens[i]);\r\n }\r\n */\r\n }\r\n }\r\n \r\n String luceneQueryPart = \"\";\r\n boolean notWaiting = false;\r\n boolean orWaiting = false;\r\n for(int i = 0 ; i < tokens.length ; i++){\r\n\r\n if(!tokens[i].equals(\"AND\") & !tokens[i].equals(\"\")){\r\n //in case of AND nothing should happen, it is the default operator\r\n //empty elements are also ignored as useless\r\n \r\n if(!tokens[i].equals(\"NOT\") & !tokens[i].equals(\"OR\") ){ // it's not an operator, it's a term\r\n \r\n if(!luceneQueryPart.endsWith(\" OR \") & !luceneQueryPart.endsWith(\" -\") ) { \r\n luceneQueryPart += \" +\"; \r\n } \r\n luceneQueryPart += tokens[i];\r\n } else {\r\n if(tokens[i].equals(\"NOT\")) {\r\n luceneQueryPart += \" -\";\r\n }\r\n if(tokens[i].equals(\"OR\")){\r\n luceneQueryPart += \" OR \";\r\n }\r\n \r\n } \r\n } \r\n }\r\n \r\n return luceneQueryPart;\r\n }",
"public void addEntityTf(int docID , int termID , int tf){\n this.docToEntities.get(docID).add(new Pair(termID,tf));\n }",
"@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawaii. He is the president. Obama was elected in 2008.\");\n\n\t\t// run all Annotators on this text\n\t\tpipeline.annotate(document); \n\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class);\n\t\t HelperDataStructures hds = new HelperDataStructures();\n\n\t\t\n\t\t//SPnew language-specific settings:\n\t\t//SPnew subject tags of the parser\n\t\t HashSet<String> subjTag = new HashSet<String>(); \n\t\t HashSet<String> dirObjTag = new HashSet<String>(); \n\t\t //subordinate conjunction tags\n\t\t HashSet<String> compTag = new HashSet<String>(); \n\t\t //pronoun tags\n\t\t HashSet<String> pronTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> passSubjTag = new HashSet<String>();\n\t\t HashSet<String> apposTag = new HashSet<String>(); \n\t\t HashSet<String> verbComplementTag = new HashSet<String>(); \n\t\t HashSet<String> infVerbTag = new HashSet<String>(); \n\t\t HashSet<String> relclauseTag = new HashSet<String>(); \n\t\t HashSet<String> aclauseTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> compLemma = new HashSet<String>(); \n\t\t HashSet<String> coordLemma = new HashSet<String>(); \n\t\t HashSet<String> directQuoteIntro = new HashSet<String>(); \n\t\t HashSet<String> indirectQuoteIntroChunkValue = new HashSet<String>();\n\t\t \n//\t\t HashSet<String> finiteVerbTag = new HashSet<String>();\n\t\t \n\n\t\t //OPEN ISSUES PROBLEMS:\n\t\t //the subject - verb relation finding does not account for several specific cases: \n\t\t //opinion verbs with passive subjects as opinion holder are not accounted for,\n\t\t //what is needed is a marker in the lex files like PASSSUBJ\n\t\t //ex: Obama is worried/Merkel is concerned\n\t\t //Many of the poorer countries are concerned that the reduction in structural funds and farm subsidies may be detrimental in their attempts to fulfill the Copenhagen Criteria.\n\t\t //Some of the more well off EU states are also worried about the possible effects a sudden influx of cheap labor may have on their economies. Others are afraid that regional aid may be diverted away from those who currently benefit to the new, poorer countries that join in 2004 and beyond. \n\t\t// Does not account for infinitival constructions, here again a marker is needed to specify\n\t\t //subject versus object equi\n\t\t\t//Christian Noyer was reported to have said that it is ok.\n\t\t\t//Reuters has reported Christian Noyer to have said that it is ok.\n\t\t //Obama is likely to have said.. \n\t\t //Several opinion holder- opinion verb pairs in one sentence are not accounted for, right now the first pair is taken.\n\t\t //what is needed is to run through all dependencies. For inderect quotes the xcomp value of the embedded verb points to the \n\t\t //opinion verb. For direct quotes the offsets closest to thwe quote are relevant.\n\t\t //a specific treatment of inverted subjects is necessary then. Right now the\n\t\t //strategy relies on the fact that after the first subj/dirobj - verb pair the\n\t\t //search is interrupted. Thus, if the direct object precedes the subject, it is taken as subject.\n\t\t // this is the case in incorrectly analysed inverted subjeects as: said Zwickel on Monday\n\t\t //coordination of subject not accounted for:employers and many economists\n\t\t //several subject-opinion verbs:\n\t\t //Zwickel has called the hours discrepancy between east and west a \"fairness gap,\" but employers and many economists point out that many eastern operations have a much lower productivity than their western counterparts.\n\t\t if (language.equals(\"en\")){\n \t subjTag.add(\"nsubj\");\n \t subjTag.add(\"xsubj\");\n \t subjTag.add(\"nmod:agent\");\n \t \n \t dirObjTag.add(\"dobj\"); //for inverted subject: \" \" said IG metall boss Klaus Zwickel on Monday morning.\n \t \t\t\t\t\t\t//works only with break DEPENDENCYSEARCH, otherwise \"Monday\" is nsubj \n \t \t\t\t\t\t\t//for infinitival subject of object equi: Reuters reports Obama to have said\n \tpassSubjTag.add(\"nsubjpass\");\n \tapposTag.add(\"appos\");\n \trelclauseTag.add(\"acl:relcl\");\n \taclauseTag.add(\"acl\");\n \t compTag.add(\"mark\");\n \t pronTag.add(\"prp\");\n \thds.pronTag.add(\"prp\");\n \tcompLemma.add(\"that\");\n \tcoordLemma.add(\"and\");\n \tverbComplementTag.add(\"ccomp\");\n \tverbComplementTag.add(\"parataxis\");\n\n \tinfVerbTag.add(\"xcomp\"); //Reuters reported Merkel to have said\n \tinfVerbTag.add(\"advcl\");\n \tdirectQuoteIntro.add(\":\");\n \tindirectQuoteIntroChunkValue.add(\"SBAR\");\n \thds.objectEqui.add(\"report\");\n \thds.objectEqui.add(\"quote\");\n \thds.potentialIndirectQuoteTrigger.add(\"say\");\n// \thds.objectEqui.add(\"confirm\");\n// \thds.subjectEqui.add(\"promise\");\n// \thds.subjectEqui.add(\"quote\");\n// \thds.subjectEqui.add(\"confirm\");\n }\n\t\t \n\t\t boolean containsSubordinateConjunction = false;\n\t\t\n\t\t \n\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tSystem.out.println(\"PREPROCESSING..\");\n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\t//SP Map offsets to NER\n\t\t\t\tList<NamedEntity> ners = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tNamedEntity.class, sentenceAnn);\n\t\t\t\tfor (NamedEntity ne : ners){\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.getCoveredText().toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.casTypeCode);\n\t\t\t\t\t//Person is 71, Location is 213, Organization is 68 geht anders besser siehe unten\n\t\t\t\t\tint nerStart = ne\n\t\t\t\t\t\t\t.getBegin();\n\t\t\t\t\tint nerEnd = ne.getEnd();\n//\t\t\t\t\tSystem.out.println(\"NER: \" + ne.getCoveredText() + \" \" + nerStart + \"-\" + nerEnd ); \n\t\t\t\t\tString offsetNer = \"\" + nerStart + \"-\" + nerEnd;\n\t\t\t\t\thds.offsetToNer.put(offsetNer, ne.getCoveredText());\n//\t\t\t\t\tNer.add(offsetNer);\n\t\t\t\t\thds.Ner.add(offsetNer);\n//\t\t\t\t\tSystem.out.println(\"NER: TYPE \" +ne.getValue().toString());\n\t\t\t\t\tif (ne.getValue().equals(\"PERSON\")){\n\t\t\t\t\t\thds.NerPerson.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t\telse if (ne.getValue().equals(\"ORGANIZATION\")){\n\t\t\t\t\t\thds.NerOrganization.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//DBpediaLink info: map offsets to links\n\t\t\t\tList<DBpediaResource> dbpeds = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tDBpediaResource.class, sentenceAnn);\n\t\t\t\tfor (DBpediaResource dbped : dbpeds){\n//\t\t\t\t\t\n//\t\t\t\t\tint dbStart = dbped\n//\t\t\t\t\t\t\t.getBegin();\n//\t\t\t\t\tint dbEnd = dbped.getEnd();\n\t\t\t\t\t// not found if dbpedia offsets are wrongly outside than sentences\n//\t\t\t\t\tSystem.out.println(\"DBPED SENT: \" + sentenceAnn.getBegin()+ \"-\" + sentenceAnn.getEnd() ); \n//\t\t\t\t\tString offsetDB = \"\" + dbStart + \"-\" + dbEnd;\n//\t\t\t\t\thds.labelToDBpediaLink.put(dbped.getLabel(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getLabel() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t\thds.dbpediaSurfaceFormToDBpediaLink.put(dbped.getCoveredText(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getCoveredText() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//SP Map offsets to lemma of opinion verb/noun; parser does not provide lemma\n\t\t\t\t for (CoreLabel token: sentence.get(TokensAnnotation.class)) {\n//\t\t\t\t\t System.out.println(\"LEMMA \" + token.lemma().toString());\n\t\t\t\t\t int beginTok = token.beginPosition();\n\t\t\t\t\t int endTok = token.endPosition();\n\t\t\t\t\t String offsets = \"\" + beginTok + \"-\" + endTok;\n\t\t\t\t\t hds.offsetToLemma.put(offsets, token.lemma().toString());\n\t\t\t\t\t \n\t\t\t\t\t \t if (opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t \n//\t\t\t \t System.out.println(\"offsetToLemmaOfOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\t\t\t\t\t \t if (passive_opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfPassiveOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n//\t\t\t \t System.out.println(\"offsetToLemmaOfPassiveOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\n\t\t\t\t } \n\n\t\t\t//SPnew parser\n\t\t\tTree tree = sentence.get(TreeAnnotation.class);\n\t\t\tTreebankLanguagePack tlp = new PennTreebankLanguagePack();\n\t\t\tGrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();\n\t\t\tGrammaticalStructure gs = gsf.newGrammaticalStructure(tree);\n\t\t\tCollection<TypedDependency> td = gs.typedDependenciesCollapsed();\n\n\t\t\t \n//\t\t\tSystem.out.println(\"TYPEDdep\" + td);\n\t\t\t\n\t\t\tObject[] list = td.toArray();\n//\t\t\tSystem.out.println(list.length);\n\t\t\tTypedDependency typedDependency;\nDEPENDENCYSEARCH: for (Object object : list) {\n\t\t\ttypedDependency = (TypedDependency) object;\n//\t\t\tSystem.out.println(\"DEP \" + typedDependency.dep().toString()+ \n//\t\t\t\t\t\" GOV \" + typedDependency.gov().toString()+ \n//\t\t\t\" :: \"+ \" RELN \"+typedDependency.reln().toString());\n\t\t\tString pos = null;\n String[] elements;\n String verbCand = null;\n int beginVerbCand = -5;\n\t\t\tint endVerbCand = -5;\n\t\t\tString offsetVerbCand = null;\n\n if (compTag.contains(typedDependency.reln().toString())) {\n \tcontainsSubordinateConjunction = true;\n// \tSystem.out.println(\"subordConj \" + typedDependency.dep().toString().toLowerCase());\n }\n \n else if (subjTag.contains(typedDependency.reln().toString())){\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \t\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tfor (HashMap.Entry<String, String> entry : hds.offsetToLemma.entrySet()) {\n//\t\t\t\t String key = entry.getKey();\n//\t\t\t\t Object value = entry.getValue();\n//\t\t\t\t System.out.println(\"OFFSET \" + key + \" LEMMA \" + value);\n//\t\t\t\t // FOR LOOP\n//\t\t\t\t}\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"SUBJCHAINHEAD1\");\n\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\tSystem.out.println(\"verbCand \" + verbCand);\n\t\t\t\t//hack for subj after obj said Zwickel (obj) on Monday morning (subj)\n\t\t\t\tif (language.equals(\"en\") \n\t\t\t\t\t\t&& hds.predicateToObject.containsKey(offsetVerbCand)\n\t\t\t\t\t\t){\n// \t\tSystem.out.println(\"CONTINUE DEP\");\n \t\tcontinue DEPENDENCYSEARCH;\n \t}\n\t\t\t\telse {\n\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n\t\t\t\t}\n }\n //Merkel is concerned\n else if (passSubjTag.contains(typedDependency.reln().toString())){\n \t//Merkel was reported\n \t//Merkel was concerned\n \t//Merkel was quoted\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n////\t\t\t\t\tSystem.out.println(\"LEMMA verbCand \" + verbCandLemma);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n \t\n \tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n// \tSystem.out.println(\"SUBJCHAINHEAD2\");\n \t//Merkel is concerned\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfPassiveOpinionVerb,\n \t\t\thds);\n }\n //Meanwhile, the ECB's vice-president, Christian Noyer, was reported at the start of the week to have said that the bank's future interest-rate moves\n// would depend on the behavior of wage negotiators as well as the pace of the economic recovery.\n\n else if (apposTag.contains(typedDependency.reln().toString())){\n \t\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tString appo = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tint beginAppo = typedDependency.dep().beginPosition();\n\t\t\t\tint endAppo = typedDependency.dep().endPosition();\n\t\t\t\tString offsetAppo = \"\" + beginAppo + \"-\" + endAppo;\n\t\t\t\t\n// \tSystem.out.println(\"APPOSITION1 \" + subjCand + \"::\"+ appo + \":\" + offsetSubjCand + \" \" + offsetAppo);\n \thds.subjectToApposition.put(offsetSubjCand, offsetAppo);\n }\n else if (relclauseTag.contains(typedDependency.reln().toString())){\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tverbCand = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.dep().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.dep().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\tString subjCandPos = null;\n\t\t\t\tif (hds.predicateToSubject.containsKey(offsetVerbCand)){\n\t\t\t\t\t\n\t\t\t\t\tif (subjCand.matches(\".+?/.+?\")) { \n\t\t\t\t\t\telements = subjCand.split(\"/\");\n\t\t\t\t\t\tsubjCand = elements[0];\n\t\t\t\t\t\tsubjCandPos = elements[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tString del = hds.predicateToSubject.get(offsetVerbCand);\n\t\t\t\t\thds.predicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToPredicate.remove(del);\n\t\t\t\t\thds.normalPredicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToNormalPredicate.remove(del);\n//\t\t\t\t\tSystem.out.println(\"REMOVE RELPRO \" + verbCand + \"/\" + hds.offsetToLemma.get(del));\n\t\t\t\t\thds.predicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToPredicate.put( offsetSubjCand, offsetVerbCand);\n\t\t\t\t\thds.normalPredicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToNormalPredicate.put( offsetSubjCand, offsetVerbCand);\n//\t\t\t\t\tSystem.out.println(\"RELCLAUSE \" + subjCand + \"::\" + \":\" + verbCand);\n\t\t\t\t\thds.offsetToSubjectHead.put(offsetSubjCand,subjCand);\n\t\t\t\t\thds.SubjectHead.add(offsetSubjCand);\n\t\t\t\t\t\n\t\t\t\t\tif (subjCandPos != null && hds.pronTag.contains(subjCandPos)){\n\t\t\t\t\t\thds.PronominalSubject.add(offsetSubjCand);\n\t\t\t\t\t}\n\t\t\t\t}\n \t\n \t\n }\n \n else if (dirObjTag.contains(typedDependency.reln().toString())\n \t\t){\n \tstoreRelations(typedDependency, hds.predicateToObject, hds.ObjectToPredicate, hds);\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\t\n\t\t\t\tString objCand = typedDependency.dep().toString().toLowerCase();\n \tint beginObjCand = typedDependency.dep().beginPosition();\n \tint endObjCand = typedDependency.dep().endPosition();\n \tString offsetObjCand = \"\" + beginObjCand + \"-\" + endObjCand;\n \tString objCandPos;\n \tif (objCand.matches(\".+?/.+?\")) { \n\t\t\t\t\telements = objCand.split(\"/\");\n\t\t\t\t\tobjCand = elements[0];\n\t\t\t\t\tobjCandPos = elements[1];\n//\t\t\t\t\tSystem.out.println(\"PRON OBJ \" + objCandPos);\n\t\t\t\t\tif (pronTag.contains(objCandPos)){\n\t\t\t\t\thds.PronominalSubject.add(offsetObjCand);\n\t\t\t\t\t}\n\t\t\t\t\t}\n// \tSystem.out.println(\"DIROBJ STORE ONLY\");\n \t//told Obama\n \t//said IG metall boss Klaus Zwickel\n \t// problem: pointing DO\n \t//explains David Gems, pointing out the genetically manipulated species.\n \t if (language.equals(\"en\") \n \t\t\t\t\t\t&& !hds.normalPredicateToSubject.containsKey(offsetVerbCand)\n \t\t\t\t\t\t){\n// \t\t System.out.println(\"INVERSE SUBJ HACK ENGLISH PREDTOOBJ\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t }\n }\n //was reported to have said\n else if (infVerbTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.mainToInfinitiveVerb, hds.infinitiveToMainVerb, hds);\n// \tSystem.out.println(\"MAIN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n else if (aclauseTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.nounToInfinitiveVerb, hds.infinitiveVerbToNoun, hds);\n// \tSystem.out.println(\"NOUN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n \n \n\n\t\t\t}\n\t\t\t\n//\t\t\tSemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class);\n//\t\t\tSystem.out.println(\"SEM-DEP \" + dependencies);\t\n\t\t}\n\t\t\n\n\t\tMap<Integer, edu.stanford.nlp.dcoref.CorefChain> corefChains = document.get(CorefChainAnnotation.class);\n\t\t \n\t\t if (corefChains == null) { return; }\n\t\t //SPCOPY\n\t\t for (Entry<Integer, edu.stanford.nlp.dcoref.CorefChain> entry: corefChains.entrySet()) {\n//\t\t System.out.println(\"Chain \" + entry.getKey() + \" \");\n\t\t \tint chain = entry.getKey();\n\t\t String repMenNer = null;\n\t\t String repMen = null;\n\t\t String offsetRepMenNer = null;\n\n\t\t List<IaiCorefAnnotation> listCorefAnnotation = new ArrayList<IaiCorefAnnotation>();\n\t\t \n\t\t for (CorefMention m : entry.getValue().getMentionsInTextualOrder()) {\n\t\t \tboolean corefMentionContainsNer = false;\n\t\t \tboolean repMenContainsNer = false;\n\n//\t\t \n\n\t\t\t\t// We need to subtract one since the indices count from 1 but the Lists start from 0\n\t\t \tList<CoreLabel> tokens = sentences.get(m.sentNum - 1).get(TokensAnnotation.class);\n\t\t // We subtract two for end: one for 0-based indexing, and one because we want last token of mention not one following.\n//\t\t System.out.println(\" \" + m + \", i.e., 0-based character offsets [\" + tokens.get(m.startIndex - 1).beginPosition() +\n//\t\t \", \" + tokens.get(m.endIndex - 2).endPosition() + \")\");\n\t\t \n\t\t int beginCoref = tokens.get(m.startIndex - 1).beginPosition();\n\t\t\t\t int endCoref = tokens.get(m.endIndex - 2).endPosition();\n\t\t\t\t String offsetCorefMention = \"\" + beginCoref + \"-\" + endCoref;\n\t\t\t\t String corefMention = m.mentionSpan;\n\n\t\t\t\t CorefMention RepresentativeMention = entry.getValue().getRepresentativeMention();\n\t\t\t\t repMen = RepresentativeMention.mentionSpan;\n\t\t\t\t List<CoreLabel> repMenTokens = sentences.get(RepresentativeMention.sentNum - 1).get(TokensAnnotation.class);\n//\t\t\t\t System.out.println(\"REPMEN ANNO \" + \"\\\"\" + repMen + \"\\\"\" + \" is representative mention\" +\n// \", i.e., 0-based character offsets [\" + repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition() +\n//\t\t \", \" + repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition() + \")\");\n\t\t\t\t int beginRepMen = repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition();\n\t\t\t\t int endRepMen = repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition();\n\t\t\t\t String offsetRepMen = \"\" + beginRepMen + \"-\" + endRepMen;\n\t\t \t \n\t\t\t\t//Determine repMenNer that consists of largest NER (Merkel) to (Angela Merkel)\n\t\t\t\t //and \"Chancellor \"Angela Merkel\" to \"Angela Merkel\"\n\t\t \t //Further reduction to NER as in \"Chancellor Angela Merkel\" to \"Angela Merkel\" is\n\t\t\t\t //done in determineBestSubject. There, Chunk information and subjectHead info is available.\n\t\t\t\t //Chunk info and subjectHead info is used to distinguish \"Chancellor Angela Merkel\" to \"Angela Merkel\"\n\t\t\t\t //from \"The enemies of Angela Merkel\" which is not reduced to \"Angela Merkel\"\n\t\t\t\t //Problem solved: The corefMentions of a particular chain do not necessarily have the same RepMenNer (RepMen) \n\t\t\t\t // any more: Chancellor Angela Merkel repMenNer Chancellor Angela Merkel , then Angela Merkel has RepMenNer Angela Merkel\n\t\t\t\t if (offsetRepMenNer != null && hds.Ner.contains(offsetRepMenNer)){\n//\t\t\t\t\t System.out.println(\"NEWNer.contains(offsetRepMenNer)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetRepMen != null && hds.Ner.contains(offsetRepMen)){\n\t\t\t\t\t repMenNer = repMen;\n\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\tSystem.out.println(\"NEWNer.contains(offsetRepMen)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetCorefMention != null && hds.Ner.contains(offsetCorefMention)){\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"Ner.contains(offsetCorefMention)\");\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t corefMentionContainsNer = offsetsContainAnnotation(offsetCorefMention,hds.Ner);\n\t\t\t\t\t repMenContainsNer = offsetsContainAnnotation(offsetRepMen,hds.Ner);\n//\t\t\t\t\t System.out.println(\"ELSE Ner.contains(offsetCorefMention)\");\n\t\t\t\t }\n\t\t\t\t //Determine repMenNer that contains NER\n\t\t\t\t\tif (repMenNer == null){\n\t\t\t\t\t\tif (corefMentionContainsNer){\n\t\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (repMenContainsNer){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT2\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no NER:\n\t\t\t\t\t\t//Pronoun -> repMen is repMenNer\n\t\t\t\t\t\telse if (hds.PronominalSubject.contains(offsetCorefMention) && repMen != null){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT3\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t//other no NER: corefMention is repMenNer because it is closer to original\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"DEFAULT4\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \n \t IaiCorefAnnotation corefAnnotation = new IaiCorefAnnotation(aJCas);\n\t\t\t\n\t\t\t\t\t\n\n\n\t\t\t\t\tcorefAnnotation.setBegin(beginCoref);\n\t\t\t\t\tcorefAnnotation.setEnd(endCoref);\n\t\t\t\t\tcorefAnnotation.setCorefMention(corefMention);\n\t\t\t\t\tcorefAnnotation.setCorefChain(chain);\n\t\t\t\t\t//done below\n//\t\t\t\t\tcorefAnnotation.setRepresentativeMention(repMenNer);\n//\t\t\t\t\tcorefAnnotation.addToIndexes(); \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlistCorefAnnotation.add(corefAnnotation);\n\t\t\t\t\t\n//\t\t\t\t\tdone below:\n//\t\t\t\t\t offsetToRepMen.put(offsetCorefMention, repMenNer);\n//\t\t\t\t\t RepMen.add(offsetCorefMention);\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t }//end coref mention\n//\t\t System.out.println(\"END Chain \" + chain );\n//\t\t System.out.println(listCorefAnnotation.size());\n\t\t String offsetCorefMention = null;\n\t\t for (int i = 0; i < listCorefAnnotation.size(); i++) {\n\t\t \tIaiCorefAnnotation corefAnnotation = listCorefAnnotation.get(i);\n\t\t \tcorefAnnotation.setRepresentativeMention(repMenNer);\n\t\t \tcorefAnnotation.addToIndexes();\n\t\t \toffsetCorefMention = \"\" + corefAnnotation.getBegin() + \"-\" + corefAnnotation.getEnd();\n\t\t\t\t\thds.offsetToRepMen.put(offsetCorefMention, repMenNer);\n\t\t\t\t\thds.RepMen.add(offsetCorefMention);\n\t\t\t\t\t//COREF\n//\t\t\t\t\tSystem.out.println(\"Chain \" + corefAnnotation.getCorefChain());\n//\t\t\t\t\tSystem.out.println(\"corefMention \" + corefAnnotation.getCorefMention() + offsetCorefMention);\n//\t\t\t\t\tSystem.out.println(\"repMenNer \" + repMenNer);\n\t\t }\n\t\t } //end chains\n\n\n//\t\t System.out.println(\"NOW quote finder\");\n\n\n\t\t\n\t\t///* quote finder: begin find quote relation and quotee\n\t\t// direct quotes\n\t\t\n\t\t\n\t\tString quotee_left = null;\n\t\tString quotee_right = null; \n\t\t\n\t\tString representative_quotee_left = null;\n\t\tString representative_quotee_right = null; \n\t\t\n\t\tString quote_relation_left = null;\n\t\tString quote_relation_right = null;\n\t\t\n\t\tString quoteType = null;\n\t\tint quoteeReliability = 5;\n\t\tint quoteeReliability_left = 5;\n\t\tint quoteeReliability_right = 5;\n\t\tint quotee_end = -5;\n\t\tint quotee_begin = -5;\n\t\t\n\t\tboolean quoteeBeforeQuote = false;\n\n\n\t\n\t\t\n\t\t// these are all the quotes in this document\n\t\tList<CoreMap> quotes = document.get(QuotationsAnnotation.class);\n\t\tfor (CoreMap quote : quotes) {\n\t\t\tif (quote.get(TokensAnnotation.class).size() > 5) {\n\t\t\t\tQuoteAnnotation annotation = new QuoteAnnotation(aJCas);\n\n\t\t\t\tint beginQuote = quote.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endQuote = quote.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(quote.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tannotation.setBegin(beginQuote);\n\t\t\t\tannotation.setEnd(endQuote);\n\t\t\t\tannotation.addToIndexes();\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tList<Q> newQuotes = document.get(QuotationsAnnotation.class);\t\t\n//\t\tfor (CoreMap annotation : newQuotes) {\n//\t\t\t\tif (1==1){\n//\t\t\t\tRe-initialize markup variables since they are also used for indirect quotes\n\t\t\t\tquotee_left = null;\n\t\t\t\tquotee_right = null; \n\t\t\t\t\n\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\n\t\t\t\tquote_relation_left = null;\n\t\t\t\tquote_relation_right = null;\n\t\t\t\tquoteeReliability = 5;\n\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\tquotee_end = -5;\n\t\t\t\tquotee_begin = -5;\n\t\t\t\tquoteType = \"direct\";\n\t\t\t\tquoteeBeforeQuote = false;\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> directQuoteTokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tToken.class, annotation);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n\t\t\t\t\n \n//\t\t\t\tfor (Token aFollowToken: followTokens){\n//\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\tChunk.class, aFollowToken);\n \n//direct quote quotee right:\n\t\t\t\t\n\t for (Token aFollow2Token: followTokens){\n\t\t\t\t\t List<SentenceAnnotation> sentencesFollowQuote = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t SentenceAnnotation.class, aFollow2Token);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t for (SentenceAnnotation sentenceFollowsQuote: sentencesFollowQuote){\n\t\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tChunk.class, sentenceFollowsQuote);\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT\");\n\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"RIGHT\", \n\t\t\t\t\tchunks, hds, annotation);\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_right = quote_annotation_result[0];\n\t\t\t representative_quotee_right = quote_annotation_result[1];\n\t\t\t quote_relation_right = quote_annotation_result[2];\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_right = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t //Will Throw exception!\n\t\t\t //do something! anything to handle the exception.\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_right = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT RESULT quotee \" + quotee_right + \" representative_quotee \" + representative_quotee_right\n//\t\t\t\t\t+ \" quote_relation \" + quote_relation_right);\n\t\t \n\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> precedingTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n for (Token aPrecedingToken: precedingTokens){ \n \t\n \tif (directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString()) \n \t\t\t|| compLemma.contains(aPrecedingToken.getLemma().getValue().toString())) {\n// \t\tSystem.out.println(\"Hello, World lemma found\" + aPrecedingToken.getLemma().getValue());\n \t\tquoteeBeforeQuote = true;\n \t}\n \t\tList <NamedEntity> namedEntities = null;\n \t\tList <Token> tokens = null;\n \t\tList<Chunk> chunks = null;\n \t\t\n\t\t\t\t List<Sentence> precedingSentences = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken, 1);\n\t\t\t\t \n\t\t\t\t\t\tif (precedingSentences.isEmpty()){\n\t\t\t\t\t\t\tList<Sentence> firstSentence;\n\t\t\t\t \tfirstSentence = JCasUtil.selectCovering(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken);\n\n\t\t\t\t \tfor (Sentence aSentence: firstSentence){\n\t\t\t\t \t\t\n\n\t\t\t\t\t\t\t\tchunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\tChunk.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t \t\tnamedEntities = JCasUtil.selectCovered(aJCas,\n\t \t \t\tNamedEntity.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\ttokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\n\t\t\t\t \t}\n\t\t\t\t\t\t}\n\t\t\t\t else {\t\n\t\t\t\t \tfor (Sentence aSentence: precedingSentences){\n//\t\t\t\t \t\tSystem.out.println(\"Hello, World sentence\" + aSentence);\n\t\t\t\t \t\tchunks = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tChunk.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\tnamedEntities = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tNamedEntity.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\ttokens = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence, aPrecedingToken);\n\t\t\t\t \t}\n\t\t\t\t }\n \t\n//\t\t\t\t \n//\t\t\t\t\t\tSystem.out.println(\"DIRECT QUOTE LEFT\");\n\t\t\t\t\t\tString[] quote_annotation_direct_left = determine_quotee_and_quote_relation(\"LEFT\", chunks,\n\t\t\t\t\t\t\t\t hds, annotation\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t );\n//\t\t\t\t\t\tSystem.out.println(\"QUOTE ANNOTATION \" + quote_annotation_direct_left.length);\t\t\n\t\tif (quote_annotation_direct_left.length>=4){\n//\t\t\tSystem.out.println(\"QUOTE ANNOTATION UPDATE \" + quote_annotation_direct_left[0] +\n//\t\t\t\t\t\" \" + quote_annotation_direct_left[1] + \" \" +\n//\t\t\t\t\tquote_annotation_direct_left[2]);\n\t\t quotee_left = quote_annotation_direct_left[0];\n\t\t representative_quotee_left = quote_annotation_direct_left[1];\n\t\t quote_relation_left = quote_annotation_direct_left[2];\n\t\t try {\n\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t} catch (NumberFormatException e) {\n\t\t //Will Throw exception!\n\t\t //do something! anything to handle the exception.\n\t\t\tquoteeReliability = -5;\n\t\t\tquoteeReliability_left = -5;\n\t\t\t}\t\t\t\t\t \n\t\t }\n//\t\tSystem.out.println(\"DIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t+ \" quote_relation \" + quote_relation_left);\n\t\t//no subject - predicate quotee quote_relation, quote introduced with colon: \n\t\tif (quotee_left == null && quote_relation_left == null && representative_quotee_left == null \n\t\t&& directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString())){\n//\t\t\tSystem.out.println(\"NER DIRECT QUOTE LEFT COLON\");\n\t\t\tString quoteeCandOffset = null; \n\t\t\tString quoteeCandText = null;\n\t\t if (namedEntities.size() == 1){\n \t \tfor (NamedEntity ne : namedEntities){\n// \t \t\tSystem.out.println(\"ONE NER \" + ne.getCoveredText());\n \t \t\tquoteeCandText = ne.getCoveredText();\n\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\tquotee_end = ne.getEnd();\n\t\t\t\t\tquotee_begin = ne.getBegin();\n\t\t\t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n\t\t\t\t\tquoteeReliability = 1;\n\t\t\t\t\tquoteeReliability_left = 1;\n \t }\n \t }\n \t else if (namedEntities.size() > 1) {\n \t \tint count = 0;\n \t \tString quotee_cand = null;\n// \t \tSystem.out.println(\"Hello, World ELSE SEVERAL NER\");\n \t \tfor (NamedEntity ner : namedEntities){\n// \t \t\tSystem.out.println(\"Hello, World NER TYPE\" + ner.getValue());\n \t \t\tif (ner.getValue().equals(\"PERSON\")){\n \t \t\t\tcount = count + 1;\n \t \t\t\tquotee_cand = ner.getCoveredText();\n \t \t\t\tquotee_end = ner.getEnd();\n \t \t\t\tquotee_begin = ner.getBegin();\n \t \t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n \t \t\t\t\n// \t \t\t\tSystem.out.println(\"Hello, World FOUND PERSON\" + quotee_cand);\n \t \t\t}\n \t \t}\n \t \tif (count == 1){ // there is exactly one NER.PERSON\n// \t \t\tSystem.out.println(\"ONE PERSON, SEVERAL NER \" + quotee_cand);\n \t \t\t\tquoteeCandText = quotee_cand;\n\t\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\t\tquoteeReliability = 3;\n\t\t\t\t\t\tquoteeReliability_left = 3;\n \t \t}\n \t }\n\t\t if(quoteeCandOffset != null && quoteeCandText != null ){\n//\t\t \t quotee_left = quoteeCandText;\n\t\t \t String result [] = determineBestRepMenSubject(\n\t\t \t\t\t quoteeCandOffset,quoteeCandOffset, quoteeCandText, hds);\n\t\t \t if (result.length>=2){\n\t\t \t\t quotee_left = result [0];\n\t\t \t\t representative_quotee_left = result [1];\n//\t\t \t System.out.println(\"RESULT2 NER quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left);\n\t\t \t }\n\t\t }\n\t\t}\n }\n\t\t\n \n\n\t\t\t\t\n\t\t\t\tif (quotee_left != null && quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"TWO QUOTEES\");\n\t\t\t\t\t\n\t\t\t\t\tif (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\") \n\t\t\t\t\t\t|| \tdirectQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t|| directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\n\t\t\t\t\t\t\t){\n//\t\t\t\t\t\tSystem.out.println(\"PUNCT \" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\",\")){\n//\t\t\t\t\t\tSystem.out.println(\"COMMA \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse if (!directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t){\n//\t\t\t\t\t\tSystem.out.println(\"NO PUNCT \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"UNCLEAR LEFT RIGHT \" + quotee_left + quote_relation_left + quote + quotee_right + quote_relation_right);\n\t\t\t\t\tannotation.setQuotee(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteRelation(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (quoteeBeforeQuote == true){\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_left != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE LEFT\" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE RIGHT FOUND\" + quotee_right + \" QUOTE RELATION \" + quote_relation_right + \":\" + quoteeReliability_right);\n\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_left != null ){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"NO QUOTEE FOUND\" + quote + quote_relation_left + quote_relation_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_right != null){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t}\n\t\t\t\telse if (quoteType != null){\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"Hello, World NO QUOTEE and NO QUOTE RELATION FOUND\" + quote);\n\t\t\t\t}\n\t\t\t\tif (annotation.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\tSystem.out.println(\"NOW!!\" + annotation.getRepresentativeQuoteeMention());\n\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(annotation.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\tannotation.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(annotation.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\tSystem.out.println(\"DBPRED FOUND\" + annotation.getRepresentativeQuoteeMention() + \" URI: \" + annotation.getQuoteeDBpediaUri());\n\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}\n\t\t\t\n\t\t\t\n\t\t} //for direct quote\n\t\t\n\t\t// annotate indirect quotes: opinion verb + 'that' ... until end of sentence: said that ...\n\n//\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class); //already instantiated above\nINDIRECTQUOTE:\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tif (sentence.get(TokensAnnotation.class).size() > 5) { \n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n//\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\n\t \tint indirectQuoteBegin = -5;\n\t\t\t\tint indirectQuoteEnd = -5;\n\t\t\t\tboolean subsequentDirectQuoteInstance = false;\n\t\t\t\t\n\t\t\t\tList<Chunk> chunksIQ = JCasUtil.selectCovered(aJCas,\n\t\t\t\tChunk.class, sentenceAnn);\n\t\t\t\tList<Chunk> chunksBeforeIndirectQuote = null;\n\t\t\t\t\n\t\t\t\tint index = 0;\nINDIRECTCHUNK:\tfor (Chunk aChunk : chunksIQ) {\n\t\t\t\t\tindex++;\n\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE CHUNK VALUE \" + aChunk.getChunkValue().toString());\n//\t\t\t\t\tif (aChunk.getChunkValue().equals(\"SBAR\")) {\n\t\t\t\t\tif(indirectQuoteIntroChunkValue.contains(aChunk.getChunkValue())){\n//\t\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE INDEX \" + \"\" + index);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Token> tokensSbar = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tToken.class, aChunk);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Token aTokenSbar : tokensSbar){\n//\t\t\t\t\t\t\tString that = \"that\";\n\t\t\t\t\t\t\tif (compLemma.contains(aTokenSbar.getLemma().getCoveredText())){\n\t\t\t\t\t\t// VP test: does that clause contain VP?\n//\t\t\t\t\t\t\t\tSystem.out.println(\"TOK1\" + aTokenSbar.getLemma().getCoveredText());\n//\t\t\t \tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\n\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\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\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\t//NEW\n//\t\t\t\t\t\t\t\tif (LANGUAGE == \"en\")\n\t\t\t\t\t\t\t\tList<Token> precedingSbarTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\t\t\t\t\tToken.class, aChunk, 1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Token aPrecedingSbarToken: precedingSbarTokens){ \n//\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOK2\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \tif (coordLemma.contains(aPrecedingSbarToken.getLemma().getValue().toString())){\n//\t\t\t\t \t\tSystem.out.println(\"TOKK\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t \t\tint k = 0;\n\t\t\t\t \tSAY:\tfor (Chunk chunkBeforeAndThat : chunksBeforeIndirectQuote){\n//\t\t\t\t \t\t\txxxx\n\t\t\t\t \t\tk++;\n\t\t\t\t \t\t\tif (chunkBeforeAndThat.getChunkValue().equals(\"VP\")){\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t\tList<Token> tokensInVp = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToken.class, chunkBeforeAndThat);\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Token aTokenInVp : tokensInVp){\n//\t\t\t\t\t\t\t\t\t\t\t\t\tString and;\n//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOKK\" + aTokenInVp.getLemma().getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (aTokenInVp.getLemma().getValue().equals(\"say\")){\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SAY OLD\" + indirectQuoteBegin + \":\" + sentenceAnn.getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, k);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tindirectQuoteBegin = chunksBeforeIndirectQuote.get(chunksBeforeIndirectQuote.size()-1).getEnd()+1;\n\t\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\tSystem.out.println(\"SAY NEW\" + indirectQuoteBegin + \":\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak SAY;\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}\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t}\n\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\t\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\n//\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\t\n\t\t\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuoteChunk = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class, aChunk);\n\t\t\t\t\t\t\t\tif (coveringDirectQuoteChunk.isEmpty()){\n//\t\t\t\t\t\t\t\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t indirectQuote.setBegin(indirectQuoteBegin);\n//\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t\t\t\t\t indirectQuoteEnd = sentenceAnn.getEnd();\n\t\t\t\t\t\t\t\t indirectQuote.setEnd(indirectQuoteEnd);\n\t\t\t\t\t\t\t\t indirectQuote.addToIndexes();\n\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = false;\n//\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FALSE\");\n\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\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t List<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tToken.class, indirectQuote, 1);\n\t\t\t\t\t\t\t\t for (Token aFollow3Token: followTokens){\n\t\t\t\t\t\t\t\t\t List<QuoteAnnotation> subsequentDirectQuotes = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class,aFollow3Token);\n\t\t\t\t\t\t\t\t\t if (!subsequentDirectQuotes.isEmpty()){\n\t\t\t\t\t\t\t\t\t\t for (QuoteAnnotation subsequentDirectQuote: subsequentDirectQuotes){\n\t\t\t\t\t\t\t\t\t\t\t if (subsequentDirectQuote.getRepresentativeQuoteeMention() != null\n\t\t\t\t\t\t\t\t\t\t\t\t && subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")){\n//\t\t\t\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FOUND\"); \n\t\t\t\t\t\t\t\t\t\t\t hds.subsequentDirectQuote = subsequentDirectQuote;\n\t\t\t\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = true;\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\t \n\t\t\t\t\t\t\t\t break INDIRECTCHUNK;\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}\t\t\n\t\t\t\t}\n\t\t\t\t\tif (indirectQuoteBegin >= 0 && indirectQuoteEnd >= 0){\n//\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuote = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n//\t\t\t\t\t\tif (coveringDirectQuote.isEmpty()){\n////\t\t\t\t\t\t\t\n//\t\t\t\t\t\tindirectQuote.addToIndexes();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//indirect quote is covered by direct quote and therefore discarded\n//\t\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n//\t\t\t\t\t\t}\n\t\t\t\t\tList<QuoteAnnotation> coveredDirectQuotes = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n\t\t\t\t\tfor (QuoteAnnotation coveredDirectQuote : coveredDirectQuotes){\n//\t\t\t\t\t\tSystem.out.println(\"Hello, World covered direct quote\" + coveredDirectQuote.getCoveredText());\n\t\t\t\t\t\t//delete coveredDirectQuoteIndex\n\t\t\t\t\t\tcoveredDirectQuote.removeFromIndexes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//no indirect quote in sentence\n\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n//\t\t\t\t\t\tRe-initialize markup variables since they are also used for direct quotes\n\t\t\t\t\t\tquotee_left = null;\n\t\t\t\t\t\tquotee_right = null; \n\t\t\t\t\t\t\n\t\t\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquote_relation_left = null;\n\t\t\t\t\t\tquote_relation_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquoteType = \"indirect\";\n\t\t\t\t\t\tquoteeReliability = 5;\n\t\t\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\t\t\tquotee_end = -5;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tif (chunksBeforeIndirectQuote != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"chunksBeforeIndirectQuote FOUND!! \");\n\t\t\t\t\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"LEFT\", chunksBeforeIndirectQuote,\n\t\t\t\t\t\t\t\t\t hds, indirectQuote\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t );\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_left = quote_annotation_result[0];\n\t\t\t representative_quotee_left = quote_annotation_result[1];\n\t\t\t quote_relation_left = quote_annotation_result[2];\n//\t\t\t System.out.println(\"INDIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t\t + \" QUOTE RELATION \" + quote_relation_left);\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_left = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n\t\t\t\n\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (quotee_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t\tindirectQuote.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\t\tindirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//indirect quote followed by direct quote:\n\t\t\t\t\t\t\t//the quotee and quote relation of the indirect quote are copied to the direct quote \n\t\t\t\t\t\t\t//Genetic researcher Otmar Wiestler hopes that the government's strict controls on genetic research \n\t\t\t\t\t\t\t//will be relaxed with the advent of the new ethics commission. \n\t\t\t\t\t\t\t//\"For one thing the government urgently needs advice, because of course it's such an extremely \n\t\t\t\t\t\t\t//complex field. And one of the reasons Chancellor Schröder formed this new commission was without \n\t\t\t\t\t\t\t//a doubt to create his own group of advisors.\"\n\n\t\t\t\t\t\t\tif (subsequentDirectQuoteInstance == true\n\t\t\t\t\t\t\t\t&&\thds.subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuotee().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuoteRelation().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t\t){\n//\t\t\t\t\t\t\t\tSystem.out.println(\"SUBSEQUENT UNCLEAR DIR QUOTE FOUND!!\"); \n\t\t\t\t\t\t\t\tint begin = hds.subsequentDirectQuote.getBegin();\n\t\t\t\t\t\t\t\tint end = hds.subsequentDirectQuote.getEnd();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteType(\"direct\");\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteeReliability(quoteeReliability_left + 2);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.addToIndexes();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE \" + quotee_left + quote_relation_left + quoteeReliability);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (quote_relation_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (quoteType != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE NOT FOUND\" + quote_relation_left);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (indirectQuote.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"NOW!!\" + indirectQuote.getRepresentativeQuoteeMention());\n\t\t\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(indirectQuote.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\t\t\tindirectQuote.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\t\t\tSystem.out.println(\"DBPEDIA \" + indirectQuote.getRepresentativeQuoteeMention() + \" URI: \" + hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\n\t\t\t\t\t\t\t}\n\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\t}\n//\t\t\t\t}\n//\t\t\t }\n//\t\t\t} //for chunk\n//\t\t\t\tsay without that\n//\t\t\t}\t\t\n\t\t} //Core map sentences indirect quotes\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"public List<AppendableFeature> getAppendableFeatures (List<? extends IFeatureAppender> otherAppenders);",
"List<String> tokenize2(String doc) {\n String stemmed = StanfordLemmatizer.stemText(doc);\n List<String> res = new ArrayList<String>();\n\n for (String s : stemmed.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }",
"public void calculateFeatures(MLExample exampleToProcess) throws Exception {\n\t\t\n\t\t\t\n\t\t\t//are directly connected?\t\t\t\n\t\t\tPhraseLink phraseLink = exampleToProcess.getRelatedPhraseLink();\n\t\t\t\n\t\t\tPhrase phrase1 = phraseLink.getFromPhrase();\n\t\t\tPhrase phrase2 = phraseLink.getToPhrase();\n\t\t\tArtifact related_sent = phrase1.getStartArtifact().getParentArtifact();\n\t\t\t\n\t\t\t//relatedArgInPrep\n\t\t\tNormalizedSentence normalized_sent_obj = \n\t\t\t\tNormalizedSentence.getInstance(related_sent, NormalizationMethod.MethodType.MentionToHead);\n\t\t\n\t\t\tString phrase1_head = phrase1.getNormalizedHead();\n\t\t\tString phrase2_head = phrase2.getNormalizedHead();\n\t\t\tArrayList<DependencyLine> nor_dependencies =normalized_sent_obj.getNormalizedDependencies();\n\t\t\tnorDependencyList = nor_dependencies;\n\t\t\t\n\t\t\tfor (DependencyLine nor_dep: nor_dependencies)\n\t\t\t{\n\t\t\t\tString lex_dep = nor_dep.relationName+\"-\"+nor_dep.firstPart+\"-\"+nor_dep.secondPart;\n\t\t\t\tFeatureValuePair nor_dep_feature = FeatureValuePair.getInstance(FeatureName.normalizedDependencies,\n\t\t\t\t\t\tlex_dep,\"1\");\n\t\t\t\tMLExampleFeature.setFeatureExample(exampleToProcess, nor_dep_feature);\t\n\t\t\t}\n//\t\t\tTODO: 8 march, remove comment\n//\t\t\t//Checks whether they are conjuncted\n//\t\t\tBoolean conjuncted_and = areConjunctedBy(phraseLink,\"and\");\n//\t\t\tFeatureValuePair are_conjucted_and_feature = FeatureValuePair.getInstance(FeatureName.AreConjunctedAnd,\n//\t\t\t\t\tconjuncted_and?\"1\":\"0\");\n//\t\t\tMLExampleFeature.setFeatureExample(exampleToProcess, are_conjucted_and_feature);\t\n//\t\t\t\n//\t\t\t//Checks whether they are directly connected\n//\t\t\tBoolean directly_connected = haveDirectRelation(phraseLink,nor_dependencies);\n//\t\t\t\n//\t\t\tFeatureValuePair areDirectlyConnectedFeature = FeatureValuePair.getInstance(\n//\t\t\t\t\t\tFeatureName.AreDirectlyConnected, \n//\t\t\t\t\t\tdirectly_connected?\"1\":\"0\");\n//\t\t\t\t\n//\t\t\tMLExampleFeature.setFeatureExample(exampleToProcess, areDirectlyConnectedFeature);\t\n//\t\t\t//Checks common governors\n//\t\t\tBoolean have_common_govs = haveCommonGoverners(phrase1,phrase2,nor_dependencies);\n//\t\t\t\n//\t\t\tFeatureValuePair haveCommonGovs = FeatureValuePair.getInstance(\n//\t\t\t\t\t\tFeatureName.HaveCommonGovernors, \n//\t\t\t\t\t\thave_common_govs?\"1\":\"0\");\n//\t\t\t\t\n//\t\t\tMLExampleFeature.setFeatureExample(exampleToProcess, haveCommonGovs);\n//\t\t\t\n//\t\t\t\n//\t\t\t//This feature gets the arguments that are in prep relation with phrases\n//\t\t\tList<String> from_args_in_pre =StanfordDependencyUtil.getAllArgsInPrep\n//\t\t\t\t(phrase1_head, phrase1.getNormalOffset()+1, nor_dependencies);\n//\t\t\tfor(String prep_arg:from_args_in_pre )\n//\t\t\t{\n//\t\t\t\tFeatureValuePair from_prep_arg_features = FeatureValuePair.getInstance\n//\t\t\t\t(FeatureName.fromPrepArg, prep_arg,\"1\");\n//\t\t\t\n//\t\t\t MLExampleFeature.setFeatureExample(exampleToProcess, from_prep_arg_features);\n//\t\t\t}\n//\t\t\tList<String> to_args_in_pre =StanfordDependencyUtil.getAllArgsInPrep\n//\t\t\t(phrase2_head, phrase2.getNormalOffset()+1, normalized_sent_obj.getNormalizedDependencies());\n//\t\t\t\n//\t\t\tfor(String prep_arg:to_args_in_pre )\n//\t\t\t{\n//\t\t\t\tFeatureValuePair to_prep_arg_features = FeatureValuePair.getInstance\n//\t\t\t\t(FeatureName.toPrepArg, prep_arg,\"1\");\n//\t\t\t\n//\t\t\t MLExampleFeature.setFeatureExample(exampleToProcess, to_prep_arg_features);\n//\t\t\t}\n\t\t\t/////////////////////\n\t\t\t////////////////////\n\t\t\t/////////////////////\n\t\t\t// Check if to phrase is the preposition arg of from phrase(timex in timex event) \n\t\t\t\n//\t\t\tif (phrase1.getPhraseEntityType().equals(\"TIMEX3\"))\n//\t\t\t{\n//\t\t\t\tTimexPhrase related_timex = TimexPhrase.getRelatedTimexFromPhrase(phrase1);\n//\t\t\t\tboolean is_direct_arg = isEventDirectPrepArgOfTimex(\n//\t\t\t\t\t\t\trelated_timex,phrase2,normalized_sent_obj);\n//\t\t\t\tFeatureValuePair is_event_direct_arg = FeatureValuePair.getInstance\n//\t\t\t\t(FeatureName.isToPhDirectPrepArgOfFromPh, is_direct_arg?\"1\":\"0\");\n//\t\t\t\n//\t\t\t MLExampleFeature.setFeatureExample(exampleToProcess, is_event_direct_arg);\n//\t\t\t}\n\t\t\t/////////////////////////////normalized ti type dep lines//////////////////////////////////////////\n//\t\t\tArrayList<String> sent_nor_dep = getSentNorToTypeDepLines(related_sent);\n//\t\t\tfor (String dep_string:sent_nor_dep)\n//\t\t\t{\n//\t\t\t\tFeatureValuePair nor_dep_feature = FeatureValuePair.getInstance\n//\t\t\t\t(FeatureName.norToTypeDep,dep_string,\"1\");\n//\t\t\t\n//\t\t\t MLExampleFeature.setFeatureExample(exampleToProcess, nor_dep_feature);\n//\t\t\t}\n\t \t\n\t}",
"public RealConjunctiveFeature(Classifier c, Feature l, Feature r) {\n this(c.containingPackage, c.name, l, r);\n }",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"protected void decompound(final Term term) {\n try {\n\n for (final SuggestWord[] decompounded : suggestWordbreaks(term)) {\n\n if (decompounded != null && decompounded.length > 0) {\n\n final BooleanQuery bq = new BooleanQuery(term.getParent(), Clause.Occur.SHOULD, true);\n\n for (final SuggestWord word : decompounded) {\n final DisjunctionMaxQuery dmq = new DisjunctionMaxQuery(bq, Clause.Occur.MUST, true);\n bq.addClause(dmq);\n dmq.addClause(new Term(dmq, term.getField(), word.string, true));\n }\n nodesToAdd.add(bq);\n\n }\n\n }\n\n } catch (final IOException e) {\n // IO is broken, this looks serious -> throw as RTE\n throw new RuntimeException(\"Error decompounding \" + term, e);\n }\n }",
"public void run() {\n\n /**\n * Replace all delimiters with single space so that words can be\n * tokenized with space as delimiter.\n */\n for (int x : delimiters) {\n text = text.replace((char) x, ' ');\n }\n\n StringTokenizer tokenizer = new StringTokenizer(text, \" \");\n boolean findCompoundWords = PrefsHelper.isFindCompoundWordsEnabled();\n ArrayList<String> ufl = new ArrayList<String>();\n for (; tokenizer.hasMoreTokens();) {\n String word = tokenizer.nextToken().trim();\n boolean endsWithPunc = word.matches(\".*[,.!?;]\");\n \n // Remove punctuation marks from both ends\n String prevWord = null;\n while (!word.equals(prevWord)) {\n prevWord = word;\n word = removePunctuation(word);\n }\n \n // Check spelling in word lists\n boolean found = checkSpelling(word);\n if (findCompoundWords) {\n if (!found) {\n ufl.add(word);\n if (endsWithPunc) pushErrorToListener(ufl);\n } else {\n pushErrorToListener(ufl);\n }\n } else {\n if (!found) listener.addWord(word);\n }\n }\n pushErrorToListener(ufl);\n }",
"private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }",
"boolean contains(SimpleFeature feature);",
"public ArrayList<String> makeSentences(String text) {\n \t\t/*\n \t\t * Quick check so we're not trying to split up an empty\n \t\t * String. This only happens right before the user types\n \t\t * at the end of a document and we don't have anything to\n \t\t * split, so return.\n \t\t */\n \t\tif (text.equals(\"\")) {\n \t\t\tArrayList<String> sents = new ArrayList<String>();\n \t\t\tsents.add(\"\");\n \t\t\treturn sents;\n \t\t}\n \t\t\n \t\t/**\n \t\t * Because the eosTracker isn't initialized until the TaggedDocument is,\n \t\t * it won't be ready until near the end of DocumentProcessor, in which\n \t\t * case we want to set it to the correct\n \t\t */\n \t\tthis.eosTracker = main.editorDriver.taggedDoc.eosTracker;\n \t\tthis.editorDriver = main.editorDriver;\n \t\t\n \t\tArrayList<String> sents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tArrayList<String> finalSents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tboolean mergeNext = false;\n \t\tboolean mergeWithLast = false;\n \t\tboolean forceNoMerge = false;\n \t\tint currentStart = 1;\n \t\tint currentStop = 0;\n \t\tString temp;\n \n \t\t/**\n \t\t * replace unicode format characters that will ruin the regular\n \t\t * expressions (because non-printable characters in the document still\n \t\t * take up indices, but you won't know they're there untill you\n \t\t * \"arrow\" though the document and have to hit the same arrow twice to\n \t\t * move past a certain point. Note that we must use \"Cf\" rather than\n \t\t * \"C\". If we use \"C\" or \"Cc\" (which includes control characters), we\n \t\t * remove our newline characters and this screws up the document. \"Cf\"\n \t\t * is \"other, format\". \"Cc\" is \"other, control\". Using \"C\" will match\n \t\t * both of them.\n \t\t */\n \t\ttext = text.replaceAll(\"\\u201C\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\u201D\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\\\p{Cf}\",\"\");\n \n \t\tint lenText = text.length();\n \t\tint index = 0;\n \t\tint buffer = editorDriver.sentIndices[0];\n \t\tString safeString = \"\";\n \t\tMatcher abbreviationFinder = ABBREVIATIONS_PATTERN.matcher(text);\n \t\t\n \t\t//================ SEARCHING FOR ABBREVIATIONS ================\n \t\twhile (index < lenText-1 && abbreviationFinder.find(index)) {\n \t\t\tindex = abbreviationFinder.start();\n \t\t\t\n \t\t\ttry {\n \t\t\t\tint abbrevLength = index;\n \t\t\t\twhile (text.charAt(abbrevLength) != ' ') {\n \t\t\t\t\tabbrevLength--;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (ABBREVIATIONS.contains(text.substring(abbrevLength+1, index+1))) {\n \t\t\t\t\teosTracker.setIgnore(index+buffer, true);\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \t\t\t\n \t\t\tindex++;\n \t\t}\t\t\n \t\t\n \t\tMatcher sent = EOS_chars.matcher(text);\n \t\tboolean foundEOS = sent.find(currentStart); // xxx TODO xxx take this EOS character, and if not in quotes, swap it for a permanent replacement, and create and add an EOS to the calling TaggedDocument's eosTracker.\n \t\t\n \t\t/*\n \t\t * We want to check and make sure that the EOS character (if one was found) is not supposed to be ignored. If it is, we will act like we did not\n \t\t * find it. If there are multiple sentences with multiple EOS characters passed it will go through each to check, foundEOS will only be true if\n \t\t * an EOS exists in \"text\" that would normally be an EOS character and is not set to be ignored.\n \t\t */\n \t\t\n \t\tindex = 0;\n \t\tif (foundEOS) {\t\n \t\t\ttry {\n \t\t\t\twhile (index < lenText-1 && sent.find(index)) {\n \t\t\t\t\tindex = sent.start();\n \t\t\t\t\tif (!eosTracker.sentenceEndAtIndex(index+buffer)) {\n \t\t\t\t\t\tfoundEOS = false;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tfoundEOS = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tindex++;\n \t\t\t\t}\n \t\t\t} catch (IllegalStateException e) {}\n \t\t}\n \t\t//We need to reset the Matcher for the code below\n \t\tsent = EOS_chars.matcher(text);\n \t\tsent.find(currentStart);\n \t\t\n \t\tMatcher sentEnd;\n \t\tMatcher citationFinder;\n \t\tboolean hasCitation = false;\n \t\tint charNum = 0;\n \t\tint lenTemp = 0;\n \t\tint lastQuoteAt = 0;\n \t\tint lastParenAt = 0;\n \t\tboolean foundQuote = false;\n \t\tboolean foundParentheses = false;\n \t\tboolean isSentence;\n \t\tboolean foundAtLeastOneEOS = foundEOS;\n \t\t\n \t\t/**\n \t\t * Needed otherwise when the user has text like below:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two. This is the last sentence.\n \t\t * and they begin to delete the EOS character as such:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two This is the last sentence.\n \t\t * Everything gets screwed up. This is because the operations below operate as expected only when there actually is an EOS character\n \t\t * at the end of the text, it expects it there in order to function properly. Now usually if there is no EOS character at the end it wouldn't\n \t\t * matter since the while loop and !foundAtLeastOneEOS conditional are executed properly, BUT as you can see the quotes, or more notably the EOS character inside\n \t\t * the quotes, triggers this initial test and thus the operation breaks. This is here just to make sure that does not happen.\n \t\t */\n \t\tString trimmedText = text.trim();\n \t\tint trimmedTextLength = trimmedText.length();\n \n \t\t//We want to make sure that if there is an EOS character at the end that it is not supposed to be ignored\n \t\tboolean EOSAtSentenceEnd = true;\n \t\tif (trimmedTextLength != 0) {\n \t\t\tEOSAtSentenceEnd = EOS.contains(trimmedText.substring(trimmedTextLength-1, trimmedTextLength)) && eosTracker.sentenceEndAtIndex(editorDriver.sentIndices[1]-1);\n \t\t} else {\n \t\t\tEOSAtSentenceEnd = false;\n \t\t}\n \t\t\n \t\t//Needed so that if we are deleting abbreviations like \"Ph.D.\" this is not triggered.\n \t\tif (!EOSAtSentenceEnd && (editorDriver.taggedDoc.watchForEOS == -1))\n \t\t\tEOSAtSentenceEnd = true;\n \n \t\twhile (foundEOS == true) {\n \t\t\tcurrentStop = sent.end();\n \t\t\t\n \t\t\t//We want to make sure currentStop skips over ignored EOS characters and stops only when we hit a true EOS character\n \t\t\ttry {\n \t\t\t\twhile (!eosTracker.sentenceEndAtIndex(currentStop+buffer-1) && currentStop != lenText) {\n \t\t\t\t\tsent.find(currentStop+1);\n \t\t\t\t\tcurrentStop = sent.end();\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \n \t\t\ttemp = text.substring(currentStart-1,currentStop);\n \t\t\tlenTemp = temp.length();\n \t\t\tlastQuoteAt = 0;\n \t\t\tlastParenAt = 0;\n \t\t\tfoundQuote = false;\n \t\t\tfoundParentheses = false;\n \t\t\t\n \t\t\tfor(charNum = 0; charNum < lenTemp; charNum++){\n \t\t\t\tif (temp.charAt(charNum) == '\\\"') {\n \t\t\t\t\tlastQuoteAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundQuote == true)\n \t\t\t\t\t\tfoundQuote = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundQuote = true;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (temp.charAt(charNum) == '(') {\n \t\t\t\t\tlastParenAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundParentheses)\n \t\t\t\t\t\tfoundParentheses = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundParentheses = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundQuote == true && ((temp.indexOf(\"\\\"\",lastQuoteAt+1)) == -1)) { // then we found an EOS character that shouldn't split a sentence because it's within an open quote.\n \t\t\t\tif ((currentStop = text.indexOf(\"\\\"\",currentStart +lastQuoteAt+1)) == -1) {\n \t\t\t\t\tcurrentStop = text.length(); // if we can't find a closing quote in the rest of the input text, then we assume the author forgot to put a closing quote, and act like it's at the end of the input text.\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tcurrentStop +=1;\n \t\t\t\t\tmergeNext=true;// the EOS character we are looking for is not in this section of text (section being defined as a substring of 'text' between two EOS characters.)\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\n \t\t\tif (foundParentheses && ((temp.indexOf(\")\", lastParenAt+1)) == -1)) {\n \t\t\t\tif ((currentStop = text.indexOf(\")\", currentStart + lastParenAt + 1)) == -1)\n \t\t\t\t\tcurrentStop = text.length();\n \t\t\t\telse {\n \t\t\t\t\tcurrentStop += 1;\n \t\t\t\t\tmergeNext = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \n \t\t\tif (foundQuote) {\n \t\t\t\tsentEnd = SENTENCE_QUOTE.matcher(text);\t\n \t\t\t\tisSentence = sentEnd.find(currentStop-2); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \n \t\t\t\tif (isSentence == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\t\tcurrentStop = text.indexOf(\"\\\"\",sentEnd.start())+1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundParentheses) {\n \t\t\t\tsentEnd = SENTENCE_PARENTHESES.matcher(text);\n \t\t\t\tisSentence = sentEnd.find(currentStop-2);\n \t\t\t\t\n \t\t\t\tif (isSentence == true) {\n \t\t\t\t\tcurrentStop = text.indexOf(\")\", sentEnd.start()) + 1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1, currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// now check to see if there is a CITATION after the sentence (doesn't just apply to quotes due to paraphrasing)\n \t\t\t// The rule -- at least as of now -- is if after the EOS mark there is a set of parenthesis containing either one word (name) or a name and numbers (name 123) || (123 name) || (123-456 name) || (name 123-456) || etc..\n \t\t\tcitationFinder = CITATION.matcher(text.substring(currentStop));\t\n \t\t\thasCitation = citationFinder.find(); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \t\t\t\n \t\t\tif (hasCitation == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\tcurrentStop = text.indexOf(\")\",citationFinder.start()+currentStop)+1;\n \t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\tmergeNext = false;\n \t\t\t}\t\n \t\t\t\n \t\t\tif (mergeWithLast) {\n \t\t\t\tmergeWithLast=false;\n \t\t\t\tString prev=sents.remove(sents.size()-1);\n \t\t\t\tsafeString=prev+safeString;\n \t\t\t}\n \t\t\t\n \t\t\tif (mergeNext && !forceNoMerge) {//makes the merge happen on the next pass through\n \t\t\t\tmergeNext=false;\n \t\t\t\tmergeWithLast=true;\n \t\t\t} else {\n \t\t\t\tforceNoMerge = false;\n \t\t\t\tfinalSents.add(safeString);\n \t\t\t}\n \t\t\n \t\t\tsents.add(safeString);\n \t\t\t\n \t\t\t//// xxx xxx xxx return the safeString_subbedEOS too!!!!\n \t\t\tif (currentStart < 0 || currentStop < 0) {\n \t\t\t\tLogger.logln(NAME+\"Something went really wrong making sentence tokens.\", LogOut.STDERR);\n \t\t\t\tErrorHandler.fatalProcessingError(null);\n \t\t\t}\n \n \t\t\tcurrentStart = currentStop+1;\n \t\t\tif (currentStart >= lenText) {\n \t\t\t\tfoundEOS = false;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tfoundEOS = sent.find(currentStart);\n \t\t}\n \n \t\tif (!foundAtLeastOneEOS || !EOSAtSentenceEnd) {\n \t\t\tArrayList<String> wrapper = new ArrayList<String>(1);\n \t\t\twrapper.add(text);\n \t\t\treturn wrapper;\n \t\t}\n \t\t\n \t\treturn finalSents;\n \t}",
"public org.w3c.dom.Element createFeaturesElement(Document xmldoc) {\n\tElement e = xmldoc.createElement(XML.FEATURES);\n\tStringBuffer b=new StringBuffer();\n\tfor(int i=0; i< id2label.size();i++) {\n\t if (b.length()>0) b.append(\" \");\n\t b.append(getLabel(i));\n\t}\n\tText textNode = xmldoc.createTextNode(b.toString());\n\te.appendChild(textNode);\n\treturn e;\n }",
"@Override\n public ASTNode visitCoolClass(CoolParser.CoolClassContext ctx) {\n List<FeatureNode> featureNodes = new LinkedList<>();\n for (var feature : ctx.feature()) {\n featureNodes.add((FeatureNode) feature.accept(this));\n }\n\n return new CoolClassNode(\n ctx.CLASS().getSymbol(),\n new IdNode(ctx.id),\n ctx.parentClass == null ? null : new TypeNode(ctx.parentClass),\n featureNodes);\n }",
"public void getEditorTagsWithPredicate(Predicate<EclipseEditorTag> predicate, Collection<EclipseEditorTag> result){\r\n \t\ttry {\r\n \t\t\tPosition[] positions = getPositions(EclipseEditorTag.CHAMELEON_CATEGORY); // throws BadPositionCategoryException\r\n \t\t\tfor (Position position : positions) {\r\n \t\t\t\tint count=1;\r\n \t\t\t\tif(position instanceof EclipseEditorTag ){\r\n \t\t\t\t\tEclipseEditorTag editorTag = (EclipseEditorTag) position;\r\n \t\t\t\t\tif(predicate.eval(editorTag)){\r\n //\t\t\t\t\t\tSystem.out.println(count+\" Found cross reference tag at offset: \" +editorTag.getOffset()+\"with length: \"+editorTag.getLength());\r\n \t\t\t\t\t\tresult.add(editorTag);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (BadPositionCategoryException e) {\r\n \t\t\t// There exist no editorTags of the type EditorTag.CHAMELEON_CATEGORY\r\n \t\t\te.printStackTrace();\r\n \t\t} catch (Exception e) {\r\n \t\t\t// the predicate has thrown an exception\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}",
"private void introduceMutations() {\n }"
] | [
"0.60003287",
"0.560919",
"0.5479912",
"0.54119015",
"0.5389522",
"0.53798807",
"0.53777474",
"0.534162",
"0.5289709",
"0.5245139",
"0.5245139",
"0.5193977",
"0.5193977",
"0.5130401",
"0.5114174",
"0.5093443",
"0.5005218",
"0.5001083",
"0.49221647",
"0.48787338",
"0.48750696",
"0.48514017",
"0.48474345",
"0.48155555",
"0.47909316",
"0.4788699",
"0.47867835",
"0.47752887",
"0.47742662",
"0.47558415",
"0.47504875",
"0.473961",
"0.47072148",
"0.4703572",
"0.4691966",
"0.46503538",
"0.46428403",
"0.46420157",
"0.46390787",
"0.463017",
"0.46116322",
"0.46113557",
"0.46107376",
"0.46042794",
"0.4601725",
"0.4571548",
"0.45697683",
"0.45574254",
"0.45459336",
"0.4537021",
"0.45199484",
"0.4510899",
"0.44990778",
"0.44985062",
"0.4494524",
"0.44906753",
"0.44881645",
"0.44867077",
"0.4480793",
"0.446307",
"0.44588998",
"0.4446154",
"0.44439086",
"0.44393787",
"0.44370073",
"0.44280037",
"0.44259125",
"0.4419452",
"0.44182292",
"0.44180992",
"0.4392997",
"0.43917283",
"0.43872643",
"0.43866158",
"0.438322",
"0.43815657",
"0.43814898",
"0.43683988",
"0.4363951",
"0.4360744",
"0.4348546",
"0.434529",
"0.43426114",
"0.43212414",
"0.43212414",
"0.43165094",
"0.43098295",
"0.43085507",
"0.4306726",
"0.42965516",
"0.42965516",
"0.42952797",
"0.42943263",
"0.42936724",
"0.4293386",
"0.42912704",
"0.42903474",
"0.42899796",
"0.4289847",
"0.42844048"
] | 0.63262635 | 0 |
Do something if sensor value changes | @Override
public void onSensorChanged(SensorEvent event) {
timestamp = event.timestamp;
gyroX = event.values[0];
gyroY = event.values[1];
gyroZ = event.values[2];
this.setChanged();
this.notifyObservers(Sensor.TYPE_GYROSCOPE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onSensorChanged() {\n\t\tsensorChanged();\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n long now = SystemClock.elapsedRealtime();\n\n long deltaMs = 0;\n if (mLastUpdateTS != 0) {\n deltaMs = now - mLastUpdateTS;\n if (mUpdateTargetMs > 0 && deltaMs < mUpdateTargetMs) {\n // New sample is arriving too fast. Discard it.\n return;\n }\n }\n\n // Format and post message for the emulator.\n float[] values = event.values;\n final int len = values.length;\n\n mChangeMsg.order(getEndian());\n mChangeMsg.position(0);\n mChangeMsg.putInt(getType());\n mChangeMsg.putFloat(values[0]);\n if (len > 1) {\n mChangeMsg.putFloat(values[1]);\n if (len > 2) {\n mChangeMsg.putFloat(values[2]);\n }\n }\n postMessage(ProtocolConstants.SENSORS_SENSOR_EVENT, mChangeMsg);\n\n // Computes average update time for this sensor and average globally.\n if (mLastUpdateTS != 0) {\n if (mGlobalAvgUpdateMs != 0) {\n mGlobalAvgUpdateMs = (mGlobalAvgUpdateMs + deltaMs) / 2;\n } else {\n mGlobalAvgUpdateMs = deltaMs;\n }\n }\n mLastUpdateTS = now;\n\n // Update the UI for the sensor, with a static throttling of 10 fps max.\n if (hasUiHandler()) {\n if (mLastDisplayTS != 0) {\n long uiDeltaMs = now - mLastDisplayTS;\n if (uiDeltaMs < 1000 / 4 /* 4fps in ms */) {\n // Skip this UI update\n return;\n }\n }\n mLastDisplayTS = now;\n\n mValues[0] = values[0];\n if (len > 1) {\n mValues[1] = values[1];\n if (len > 2) {\n mValues[2] = values[2];\n }\n }\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_DISPLAY_MODIFIED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }\n\n if (DEBUG) {\n long now2 = SystemClock.elapsedRealtime();\n long processingTimeMs = now2 - now;\n Log.d(TAG, String.format(\"glob %d - local %d > target %d - processing %d -- %s\",\n mGlobalAvgUpdateMs, deltaMs, mUpdateTargetMs, processingTimeMs,\n mSensor.getName()));\n }\n }",
"public interface OnSensorValueChangeListener {\n public void onSensorValueChanged(int newVal);\n}",
"private void UI_RefreshSensorData ()\r\n\t{\r\n\t\t\t\t\r\n\t\tlong now = System.currentTimeMillis();\r\n\t\t\r\n\t\tif (now-ts_last_rate_calc>1000)\r\n\t\t{\r\n\t\t\tsensor_event_rate=last_nAccVal/((now-ts_last_rate_calc)/1000.0);\r\n\t\t\tts_last_rate_calc=now;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tint value = (int) event.values[0];\n\t\tif(0 == value) {\n\t\t\tnearFlag = true;\n\t\t} else if (1 <= value) {\n\t\t\tfarFlag = true;\n\t\t\tvalue = 1;\n\t\t} else {\n\t\t\t// Something is wrong\n\t\t}\n\t\ttip.setText(\"距离值 : \" + event.values[0]);\n\t\tif(nearFlag && farFlag && !pass) {\n\t\t\tpass = true;\n\t\t\t((AutoMMI)getApplication()).recordResult(PSensorTest.TAG, \"\", \"1\");\n\t\t}\n\t}",
"void updateValue( float time ) {\n\tboolean newVal = in1 & in2;\n\tif (newVal != value) {\n\t value = newVal;\n\t Simulator.schedule(\n\t new Simulator.Event(\n\t\ttime + (delay * 0.95f)\n\t\t+ PRNG.randomFloat( delay * 0.1f ) ) {\n\t\t void trigger() {\n\t\t\toutputChangeEvent( this.time );\n\t\t }\n\t\t}\n\t );\n\t}\n }",
"void updateValue( float time ) {\n\tboolean newVal = in1 | in2;\n\tif (newVal != value) {\n\t value = newVal;\n\t Simulator.schedule(\n\t new Simulator.Event( time + (delay * 0.95f)\n\t\t+ PRNG.randomFloat( delay * 0.1f ) ) {\n\t\t void trigger() {\n\t\t\toutputChangeEvent( this.time );\n\t\t }\n\t\t}\n\t );\n\t}\n }",
"@Override\n\t\tpublic void monitorChanged(MonitorEvent arg0) {\n\t\t\tDBR dbr = arg0.getDBR();\n\t\t\tif (dbr.isDOUBLE()) {\n\t\t\t\t// update the latest value\n\t\t\t\tdouble lastValue = latestValue;\n\t\t\t\tlatestValue = ((DBR_Double) dbr).getDoubleValue()[0];\n\n\t\t\t\t// if the percentage change has been great enough, then inform\n\t\t\t\t// IObservers\n\t\t\t\tif (Math.abs((lastValue - latestValue) / lastValue) * 100.0 >= sensitivity) {\n\t\t\t\t\tnotifyIObservers(this, latestValue);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n deltaX = Math.abs(lastX - event.values[0]);\n deltaY = Math.abs(lastY - event.values[1]);\n deltaZ = Math.abs(lastZ - event.values[2]);\n\n // if the change is below 5, it is just plain noise\n if (deltaX < 5)\n deltaX = 0;\n if (deltaY < 5)\n deltaY = 0;\n if (deltaZ < 5)\n deltaZ = 0;\n\n // set the last know values of x,y,z\n lastX = event.values[0];\n lastY = event.values[1];\n lastZ = event.values[2];\n\n vibrate();\n\n }",
"private void updateLightSensorValues()\n {\n sendMessage((byte)Constants.LIGHTSENSVAL,(byte)Constants.REQ);\n try {\n Thread.sleep(4000);\n } catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n sendMessage((byte)Constants.POTVAL, (byte)Constants.REQ);\n if(progPotToggleButton.isChecked())\n {\n int x =0;\n try {\n x = Integer.parseInt(progValueEditText.getText().toString());\n if(x>=0 && x<256)\n sendMessage((byte)Constants.PROGVAL,(byte)x);\n try {\n Thread.sleep(4000);\n } catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n sendMessage((byte)Constants.USEPOT,(byte)Constants.NO);\n } catch (NumberFormatException e) {\n messageView.append(\"int för helvete\");\n }\n }else\n sendMessage((byte)Constants.USEPOT,(byte)Constants.YES);\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if(runOrNot) {\n Sensor mySensor = event.sensor;\n if (mySensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n long current = System.currentTimeMillis();\n\n if((current - prevTime) > 100) {\n prevTime = current;\n x = event.values[0];\n y = event.values[1];\n z = event.values[2];\n String text = \"x: \" + x + \" y: \" + y + \" z: \" + z;\n\n listOfPoints.append(new Coordinate(x,y,z));\n box.setText(text + \"\\n\" + box.getText().toString());\n }\n\n }\n }\n\n }",
"@Override\r\n public final void onSensorChanged(SensorEvent event) {\n double a0 = (double) event.values[0];\r\n double a1 = (double) event.values[1];\r\n double a2 = (double) event.values[2];\r\n\r\n double a = sqrt(a0*a0+a1*a1+a2*a2);\r\n\r\n // Do something with this sensor value.\r\n\r\n TextView textView = (TextView) findViewById(R.id.text_box2);\r\n textView.setText(Double.toString(a));\r\n\r\n if(count<size_accels) {\r\n accelerations[count] = a;\r\n times[count] = event.timestamp;\r\n }\r\n count = count + 1;\r\n }",
"public void onSensorChanged(SensorEvent event) {\n try {\n Thread.sleep(16);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //called when accelerometer senses directional change\n sensorX = event.values[0];\n sensorY = event.values[1];\n }",
"@Override\n public void OnAccuracyChanged(Ssensor arg0, int arg1) {\n }",
"public void onSensorChanged(SensorEvent event) {\n\t\tif(event.sensor.getType() == Sensor.TYPE_PROXIMITY){\n\t\tproxview.setText(\"\\n\\n\"+\"PROXIMITY\"+\"\\n\"+String.valueOf(event.values[0]));\n\t\t\n\t\t\n\t\t}\n\t\tif(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER){\n\t\t\t\n\t\taccview.setText(\"ACCELEROMETER\"+\"\\n\"+\"X: \"+event.values[0]+\"\\nY: \"+event.values[1]+\"\\nZ: \"+event.values[2]);\n\t\t\n\t\tdouble p = event.values[0];\n\t\tif(p<0.0)\n\t\t{mp.pause();}\n\t\telse{\n\t\t\tif(mp.isPlaying())\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{mp.start();}\n\t\t}\n\t\t\n\t}\n\t\tif(event.sensor.getType() == Sensor.TYPE_LIGHT){\n\t\t\t\n\t\t\tliview.setText(\"LIGHT\"+\"\\n\"+String.valueOf(event.values[0]));\n\t\t\t\n\t\t}\n}",
"public void stateChanged(SensorPort arg0, int arg1, int arg2) {\n\t\t\n\t}",
"void valueChanged(T oldValue, T newValue);",
"@Override\n public void onSensorChanged(SensorEvent event) {\n float[] valuesCopy = event.values.clone();\n\n if (uptime == 0) {\n uptime = event.timestamp;\n }\n\n double x = (double) ((event.timestamp - uptime))/1000000000.0;\n this.addValues(x, valuesCopy);\n\n TextView xAxisValue = (TextView) findViewById(R.id.xAxisValue);\n xAxisValue.setText(Float.toString(valuesCopy[0]) + \" \" + STI.getUnitString(sensorType));\n\n if (STI.getNumberValues(sensorType) > 1) {\n //set y value to textfield\n TextView yAxisValue = (TextView) findViewById(R.id.yAxisValue);\n yAxisValue.setText(Float.toString(valuesCopy[1]) + \" \" + STI.getUnitString(sensorType));\n\n //set z value to textfield\n TextView zAxisValue = (TextView) findViewById(R.id.zAxisValue);\n zAxisValue.setText(Float.toString(valuesCopy[2]) + \" \" + STI.getUnitString(sensorType));\n }\n }",
"public void setSensorOn() {\n\n }",
"public boolean isValueChanged() {\n return VALUECHANGED.equals(message);\n }",
"public void notifyAlgoUpdateCurrentValue() {\n this.mHwGradualBrightnessAlgo.updateTargetAndRate(this.mTargetValue, this.mRate);\n this.mHwGradualBrightnessAlgo.updateCurrentBrightnessValue((float) this.mCurrentValue);\n }",
"public abstract void inputChangeEvent( float time, int dstPin, boolean v );",
"public void isChanged()\n\t{\n\t\tchange = true;\n\t}",
"private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }",
"@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\ttemp_m[0] = event.values[0];\r\n\t\t\t\ttemp_m[1] = event.values[1];\r\n\t\t\t\ttemp_m[2] = event.values[2];\r\n\t\t\t}",
"public void handleSensorEvents(){\n\t}",
"public void onSensorChanged(SensorEvent event) {\n\t\t\tint type = event.sensor.getType();\n\t\t\tif (type == Sensor.TYPE_ACCELEROMETER) {\n\t\t\t\tlong curTime = System.currentTimeMillis();\n\t\t\t\t// only allow one update every 100ms, otherwise updates\n\t\t\t\t// come way too fast and the phone gets bogged down\n\t\t\t\t// with garbage collection\n\t\t\t\t//Log.d(TAG, \"onSensorChanged(\"+type+\")\");\t\t\t\t\n\t\t\t\tif (lastUpdate == -1 || (curTime - lastUpdate) > 40) {\n\t\t\t\t\tlastUpdate = curTime;\t\t\t\t\n\t\t\t\t\tsynchronized (LOCK){\n\t\t\t\t\t\tmLastAccOrientation = calculateAngle(event);\n\t\t\t\t\t\tmLastSample.x = event.values[0];\n\t\t\t\t\t\tmLastSample.y = event.values[1];\n\t\t\t\t\t\tmLastSample.z = event.values[2];\n\t\t\t\t\t\tmLastSample.angle = mLastAccOrientation.angle;\t\t\n\t\t\t\t\t\t//mLastSample.orientation = mLastAccOrientation.orientation;\n\t\t\t\t\t\tmLastSample.orientation = mLastAccOrientation.rotation*90;\n\t\t\t\t\t\tmLastSample.threshold = mLastAccOrientation.threshold;\n\t\t\t\t\t\tmBuffer = mLastSample.x+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.y+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.z+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.angle+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.orientation+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.threshold;\n\t\t\t\t\t\tif (mShowLog)\n\t\t\t\t\t\t\tLog.d(TAG, mBuffer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if (sensorEvent.sensor.getType() != Sensor.TYPE_ACCELEROMETER)\n return;\n\n // must be the accelerometer - number of milliseconds since Midnight, Jan 1, 1970\n // How many milliseconds in a day? 60(60)(24)(1000) = 90,000,000\n long curr_time = System.currentTimeMillis();\n\n if (curr_time - prev_time > 500) {\n prev_time = curr_time;\n float y = sensorEvent.values[1];\n accel_y_view.setText(Float.toString(y));\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event)\n {\n // Get the sensor which has triggered the event\n\n Sensor sensor = event.sensor;\n\n // Perform differing functionality depending upon\n // the sensor type (caller)\n\n switch (event.sensor.getType())\n {\n case Sensor.TYPE_STEP_COUNTER:\n\n if (reportedSteps < 1){\n\n // Log the initial value\n\n reportedSteps = (int)event.values [0];\n }\n\n // Calculate steps taken based on\n // first value received.\n\n stepsTaken = (int)event.values [0] - reportedSteps;\n\n // Output the value to the simple GUI\n\n countText.setText(\"Cnt: \" + stepsTaken);\n\n break;\n\n case Sensor.TYPE_STEP_DETECTOR:\n\n // Increment the step detector count\n\n stepDetector++;\n\n // Output the value to the simple GUI\n\n detectText.setText(\"Det: \" + stepDetector);\n\n break;\n\n case Sensor.TYPE_ACCELEROMETER:\n\n // Get the accelerometer values and set them to a string with 2dp\n\n String x = String.format(\"%.02f\", event.values[0]);\n String y = String.format(\"%.02f\", event.values[1]);\n String z = String.format(\"%.02f\", event.values[2]);\n\n // Output the string to the GUI\n\n accelText.setText(\"Acc:\" + x + \",\" + y + \",\" + z);\n\n break;\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy > 0) {\n int newValue = Math.round(event.values[0]);\n\n if(newValue!=0 && lastTimeSentUnixHR < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnixHR = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", event.accuracy);\n intent.putExtra(\"TIME\", event.timestamp);\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n\n }\n }\n // also send motion/humidity/step data to know when NOT to interpret hr data\n\n if (event.sensor.getType() == SENS_STEP_COUNTER && event.values[0]-currentStepCount!=0) {\n\n if(lastTimeSentUnixSC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixSC = System.currentTimeMillis() / 1000L;\n currentStepCount = event.values[0];\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n\n }\n\n if (event.sensor.getType() == SENS_ACCELEROMETER) {\n\n if(lastTimeSentUnixACC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixACC = System.currentTimeMillis() / 1000L;\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (Minutes*60+Seconds==time){\n switch(event.sensor.getType()) {\n case Sensor.TYPE_STEP_DETECTOR:\n values[0]++;\n break;\n case Sensor.TYPE_ACCELEROMETER:\n values[1]+=(Math.sqrt(\n event.values[0]*event.values[0]+\n event.values[1]*event.values[1]+\n event.values[2]*event.values[2])\n );\n values[1]/=2;\n break;\n case Sensor.TYPE_GYROSCOPE:\n values[2]+=(Math.sqrt(\n event.values[0]*event.values[0]+\n event.values[1]*event.values[1]+\n event.values[2]*event.values[2])\n );\n values[2]/=2;\n break;\n }\n }\n else{\n if(values[0]==0||values[1]==0||values[2]==0){\n prediction.setText(\"00:00:00\");\n }\n else{\n predictionValue = Math.round(doInference(values));\n prediction.setText(\"00:\" + String.valueOf(predictionValue/60) + \":\" + String.valueOf(predictionValue%60));\n if(predictionValue>1.1*Double.parseDouble(target.getText().toString())){ //too slow\n pace.setBackgroundColor(Color.GREEN);\n pace.setText(\"SPEED UP!\");\n }\n else if(predictionValue<0.9*Double.parseDouble(target.getText().toString())){ //too fast\n pace.setBackgroundColor(Color.RED);\n pace.setText(\"SLOW DOWN!\");\n }\n else{\n pace.setBackgroundColor(Color.YELLOW);\n pace.setText(\"GOOD JOB!\");\n }\n }\n switch(event.sensor.getType()) {\n case Sensor.TYPE_STEP_DETECTOR:\n values[0]=1;\n values[1]=0;\n values[2]=0;\n break;\n case Sensor.TYPE_ACCELEROMETER:\n values[0]=0;\n values[1]=(Math.sqrt(\n event.values[0]*event.values[0]+\n event.values[1]*event.values[1]+\n event.values[2]*event.values[2])\n );\n values[2]=0;\n break;\n case Sensor.TYPE_GYROSCOPE:\n values[0]=0;\n values[1]=0;\n values[2]=(Math.sqrt(\n event.values[0]*event.values[0]+\n event.values[1]*event.values[1]+\n event.values[2]*event.values[2])\n );\n break;\n }\n time = Minutes*60+Seconds;\n }\n\n }",
"public void onTriggerChange() {\n findViewById(R.id.temp).post(new Runnable() {\n public void run() {\n ConsumerIrManager mCIR = ScaryUtil.getConsumerIRService(getApplicationContext());\n if (m_Inst.power) {\n TransmissionCode data = ScaryUtil.getIRCode(m_Inst.sequence, m_Inst.temp); // (TransmissionCode)samsung.get(m_Inst.temp);\n ScaryUtil.transmit(getApplicationContext(),data);\n }\n }\n });\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tMessage msg = null;\n\t\tfloat values[] = event.values;\n\t\tsynchronized (this) { \n\t\t\tswitch(event.sensor.getType()) {\n\t\t\t/** 4.LIGHT:SensorEvent type is TYPE_LIGHT */\n\t\t\tcase Sensor.TYPE_LIGHT:\n\t\t\t\tsendLSensorChangedMSG(values, msg);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // end of switch(event.sensor.getType())\n\t\t} // end of synchronized (this)\n\t}",
"private void fireValueChange(boolean b) {\n \t\n\t\t\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if( event.values[0] < sensor.getMaximumRange() )\n {\n //// SI LA PANTALLA NO FUE TAPADA ANTERIORMENTE -> GUARDO EL MOMENTO DE INICIO DEL JUEGO\n if( !pantallaEstabaTapada )\n {\n tiempoDeInicio= SystemClock.uptimeMillis();\n pantallaEstabaTapada=true;\n getWindow().getDecorView().setBackgroundColor(Color.RED);\n }\n }\n else\n {\n //// SI LA PANTALLA ESTABA TAPADA Y AHORA NO LO ESTA --> CALCULO LOS SEGUNDOS TRANSCURRIDOS Y DESTRUYO EL LISTENER DEL SENSOR\n if( pantallaEstabaTapada )\n {\n segundosTranscurridos= pasarMilisegundoASegundo(SystemClock.uptimeMillis() - tiempoDeInicio);\n pantallaEstabaTapada=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n\n ServicePOST comunicacionApiRest = new ServicePOST(getApplicationContext());\n comunicacionApiRest.registrarEvento(String.valueOf(event.values[0]), \"SENSOR DE PROXIMIDAD\");\n\n sensorManag.unregisterListener(sensorListener);\n\n }\n }\n guardarInfoEnSharedPreference(event.values[0]);\n }",
"@Override\r\n\tpublic void onUpdateIO(int device, int type, int code, int value,\r\n\t\t\tint timestamp) {\n\t\t\r\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n // Send data to phone\n if (count == 5) {\n count = 0;\n// Log.d(\"hudwear\", \"send accel data to mobile...\"\n// + \"\\nx-axis: \" + event.values[0]\n// + \"\\ny-axis: \" + event.values[1]\n// + \"\\nz-axis: \" + event.values[2]\n// );\n// Log.d(\"hudwear\", \"starting new task.\");\n\n if (connected)\n Log.d(\"atest\", \"values: \" + event.values[0] + \", \" + event.values[1] + \", \" + event.values[2]);\n// new DataTask().execute(new Float[]{event.values[0], event.values[1], event.values[2]});\n }\n else count++;\n }\n }",
"@Override\n public void OnSensorChanged(SsensorEvent event) {\n Ssensor sIr = event.sensor;\n StringBuffer sb = new StringBuffer();\n sb.append(\"==== Sensor Information ====\\n\")\n .append(\"Name : \" + sIr.getName() + \"\\n\")\n .append(\"Vendor : \" + sIr.getVendor() + \"\\n\")\n .append(\"Type : \" + sIr.getType() + \"\\n\")\n .append(\"SDK Version : \"\n + mSsensorExtension.getVersionName() + \"\\n\")\n .append(\"MaxRange : \" + sIr.getMaxRange() + \"\\n\")\n .append(\"Resolution : \" + sIr.getResolution() + \"\\n\")\n .append(\"FifoMaxEventCount : \" + sIr.getFifoMaxEventCount()\n + \"\\n\")\n .append(\"Power : \" + sIr.getPower() + \"\\n\")\n .append(\"----------------------------\\n\")\n .append(\"RED LED RAW DATA(HRM) : \" + event.values[0] + \"\\n\");\n tRED.setText(sb.toString());\n }",
"public void observe(int val) {\n observe(val, 1);\n }",
"public void setSensorValue (float value) {\n this.currentSensorValue = value;\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == SENS_ACCELEROMETER && event.values.length > 0) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n latestAccel = (float)Math.sqrt(Math.pow(x,2.)+Math.pow(y,2)+Math.pow(z,2));\n //Log.d(\"pow\", String.valueOf(latestAccel));\n\n }\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy >0) {\n\n Log.d(\"Sensor\", event.sensor.getType() + \",\" + event.accuracy + \",\" + event.timestamp + \",\" + Arrays.toString(event.values));\n\n int newValue = Math.round(event.values[0]);\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n \n if(newValue!=0 && lastTimeSentUnix < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnix = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", latestAccel);\n intent.putExtra(\"TIME\", event.timestamp);\n intent.putExtra(\"ACCEL\", latestAccel);\n\n\n Log.d(\"change\", \"send intent\");\n\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), latestAccel, event.timestamp, event.values);\n }\n }\n\n }",
"@Override\n public void handleGpioPinAnalogValueChangeEvent(GpioPinAnalogValueChangeEvent event) {\n notifyListeners(new TemperatureChangeEvent(sensor, getValue(), event.getValue()));\n }",
"@Override\r\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\r\n\t\tax = - event.values[0] / 7;\r\n\t\tay = event.values[1] / 7;\r\n\t}",
"public void inputChangeEvent( float time, int dstPin, boolean v ) {\n\tvalue = !v;\n\t Simulator.schedule(\n\t new Simulator.Event( time\n\t\t + (delay * 0.95f)\n\t\t + PRNG.randomFloat( delay * 0.1f ) ) {\n\t\t void trigger() {\n\t\t\t outputChangeEvent( this.time );\n\t\t }\n\t\t}\n\t );\n }",
"public void update(long timestamp, double[] val)\n {\n SensorData old_data;\n SensorData new_data = new SensorData(timestamp, val);\n do {\n old_data = data.get();\n if (old_data != null && old_data.getTimestamp() >= new_data.getTimestamp()) {\n return; // could not update, other thread was faster\n }\n } while (!data.compareAndSet(old_data, new_data));\n\n }",
"public void inputChangeEvent( float time, int dstPin, boolean v ) {\n\tErrors.fatal( \"Input should never change: \" + toString() );\n }",
"public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER && event.sensor.getType() != Sensor.TYPE_GYROSCOPE)\n return;\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n sensorCount++;\n\n if (sensorFirstRead) {\n nanotime = System.nanoTime();\n sensorFirstRead = false;\n } else {\n\n if (sensorCount > 0 && sensorCount % 10 == 0) {\n differenceNanoTime = System.nanoTime() - nanotime;\n if (differenceNanoTime > sensorCounterIntervalDelay) {\n differenceSeconds = (double) differenceNanoTime / 1000000000f;\n\n sensorAverageCount = sensorCount / differenceSeconds;\n sensorAverageCountTextView.setText(String.format(\"Read/s: %.2f\", sensorAverageCount));\n\n if (sensorFirstAverageCycle || Math.abs(sensorAverageCount - accValuesLimit * 2) > accValuesLimit * 0.2) {\n if (sensorFirstAverageCycle)\n sensorFirstAverageCycle = false;\n\n accValuesLimit = (int) sensorAverageCount / 2;\n gyroValuesLimit = accValuesLimit / 2;\n sensorCountLimitTextView.setText(String.format(\"Sensor count limit: %d\", accValuesLimit));\n\n stats.get(\"accX\").setLimit(accValuesLimit);\n stats.get(\"accY\").setLimit(accValuesLimit);\n stats.get(\"accZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeX\").setLimit(accValuesLimit);\n stats.get(\"accDegreeY\").setLimit(accValuesLimit);\n stats.get(\"accTotalAcceleration\").setLimit(accValuesLimit);\n stats.put(\"gyroX\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroY\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroZ\", new StatisticList(gyroValuesLimit));\n }\n\n sensorCount = 0;\n nanotime = System.nanoTime();\n }\n }\n }\n }\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n\n mAccelerometerSensorX = event.values[0];\n mAccelerometerSensorY = event.values[1];\n mAccelerometerSensorZ = event.values[2];\n\n mAccelerometerTotalAcceleration = Math.sqrt(Math.pow(mAccelerometerSensorX, 2) + Math.pow(mAccelerometerSensorY, 2) + Math.pow(mAccelerometerSensorZ, 2));\n\n stats.get(\"accX\").addValue(mAccelerometerSensorX);\n stats.get(\"accY\").addValue(mAccelerometerSensorY);\n stats.get(\"accZ\").addValue(mAccelerometerSensorZ);\n stats.get(\"accTotalAcceleration\").addValue(mAccelerometerTotalAcceleration);\n\n tmp_y = stats.get(\"accY\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage(); // g\n tmp_x = stats.get(\"accX\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n tmp_z = stats.get(\"accZ\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n\n mRotationDegreeZ = Math.asin(tmp_x) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeZ))\n mRotationDegreeZ = stats.get(\"accDegreeZ\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeX = Math.asin(tmp_z) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeX))\n mRotationDegreeX = stats.get(\"accDegreeX\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeY = Math.asin(tmp_y) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeY))\n mRotationDegreeY = stats.get(\"accDegreeY\").getAverage() > 0 ? 90 : -90;\n\n stats.get(\"accDegreeZ\").addValue(mRotationDegreeZ);\n stats.get(\"accDegreeX\").addValue(mRotationDegreeX);\n stats.get(\"accDegreeY\").addValue(mRotationDegreeY);\n\n updateLog(Sensor.TYPE_ACCELEROMETER);\n }\n else\n if(event.sensor.getType()==Sensor.TYPE_GYROSCOPE)\n {\n mGyroX = event.values[0];\n mGyroY = event.values[1];\n mGyroZ = event.values[2];\n\n stats.get(\"gyroX\").addValue(mGyroX);\n stats.get(\"gyroY\").addValue(mGyroY);\n stats.get(\"gyroZ\").addValue(mGyroZ);\n\n updateLog(Sensor.TYPE_GYROSCOPE);\n }\n }",
"public void valueChanged(IntegerStorageChange change);",
"public interface SensorUpdateCallback {\n void onBearingValue(float f);\n}",
"public void lightSensorChanged(Position position,\r\n\t\t\tUpdatingSensor updatingsensor, float oldValue, float newValue);",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n Sensor mySensor = event.sensor;\n\n //double checking if we are referencing the correct sensor type\n if(mySensor.getType()==Sensor.TYPE_ACCELEROMETER)\n {\n //reading the sensor values\n // x- axis lateral movement\n float x = event.values[0];\n //y axis vertical movement\n float y = event.values[1];\n //z-axis movement in and out of the plane\n float z= event.values[2];\n mAccelLast = mAccelCurrent;\n mAccelCurrent = (float) Math.sqrt((double) (x*x + y*y + z*z));\n float delta = mAccelCurrent - mAccelLast;\n mAccel = mAccel * 0.9f + delta; // perform low-cut filter\n displayAcceleration();\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n String texto = String.valueOf(sensorEvent.values[0]);\n tv.setText(texto);\n float valor = Float.parseFloat(texto);\n if (valor == 0){\n ln.setBackgroundColor(Color.BLUE);\n }else {\n ln.setBackgroundColor(Color.YELLOW);\n }\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\trawSensorValue = Math.round(event.values[0]); \n\t\twhile (rawSensorValue < 0) rawSensorValue += 360;\n\t\tm_azimuth_degrees = rawSensorValue - m_sun_azimuth_degrees;\n\t\twhile (m_azimuth_degrees < 0) m_azimuth_degrees += 360;\n\t\t\n\t\t// get pitch value\n\t\tint rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\n\t\tif ((rotation == 0) || (rotation == 2)) m_pitch_degrees = Math.abs((int)event.values[1]); \n\t\telse m_pitch_degrees = Math.abs((int)event.values[2]);\n\t\t\n\t\t// Update event\n\t\tif (m_parent != null) m_parent.onSensorChanged(event);\n\t}",
"@Override\n public void OnSensorChanged(SsensorEvent event) {\n Ssensor sIr = event.sensor;\n StringBuffer sb = new StringBuffer();\n sb.append(\"==== Sensor Information ====\\n\")\n .append(\"Name : \" + sIr.getName() + \"\\n\")\n .append(\"Vendor : \" + sIr.getVendor() + \"\\n\")\n .append(\"Type : \" + sIr.getType() + \"\\n\")\n .append(\"SDK Version : \"\n + mSsensorExtension.getVersionName() + \"\\n\")\n .append(\"MaxRange : \" + sIr.getMaxRange() + \"\\n\")\n .append(\"Resolution : \" + sIr.getResolution() + \"\\n\")\n .append(\"FifoMaxEventCount : \" + sIr.getFifoMaxEventCount()\n + \"\\n\").append(\"Power : \" + sIr.getPower() + \"\\n\")\n .append(\"----------------------------\\n\")\n .append(\"IR RAW DATA(HRM) : \" + event.values[0] + \"\\n\");\n tIR.setText(sb.toString());\n }",
"public void onAccuracyChanged(int sensor, int accuracy) {\n }",
"public boolean hasChanged();",
"public boolean hasChanged();",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n float valueAzimuth = event.values[0];\n float valuePitch = event.values[1];\n\n parent.updateAccelerometer(\n valueAzimuth / maximumRange, -valuePitch / maximumRange);\n\n }",
"@Override\r\n public void changed(final ObservableValue<? extends Wave.Status> arg0, final Wave.Status arg1, final Wave.Status arg2) {\n \r\n }",
"public void outputChangeEvent( float time ) {\n\tSystem.out.println(\n\t \"At \" + time + \" \" + toString() + \" true \" + \" changes to true\"\n\t);\n\tfor (Wire w: outgoingTrue) {\n\t w.inputChangeEvent( time, true );\n\t}\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if (sensorEvent.sensor.getType() == Sensor.TYPE_ACCELEROMETER && s.equals(\"Accelerometre\")) {\n float Ax = sensorEvent.values[0];\n float Ay = sensorEvent.values[1];\n float Az = sensorEvent.values[2];\n\n acce = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Ax = \" + Ax + \" \" + \"\\n Ay = \" + Ay + \" \" + \"\\n Az = \" + Az + \"\\n\";\n\n // Do something with this sensor value .\n sensorTxt.setText(acce);\n Log.d(TAG, \" TimeAcc = \" + sensorEvent.timestamp + \" Ax = \" + Ax + \" \" + \" Ay = \" + Ay + \" \" + \" Az = \" + Az);\n }\n\n //LUMIERE\n if (sensorEvent.sensor.getType() == Sensor.TYPE_LIGHT && s.equals(\"Lumiere\")) {\n // La valeur de la lumière\n float lv = sensorEvent.values[0];\n\n light = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Light value = \" + lv + \"\\n\";\n //On affiche la valeur\n sensorTxt.setText(light);\n }\n\n //PROXIMITE\n if (sensorEvent.sensor.getType() == Sensor.TYPE_PROXIMITY && s.equals(\"Proximite\")) {\n // La valeur de proximité\n float p = sensorEvent.values[0];\n\n proxi = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Proximite value = \" + p + \"\\n\";\n //On affiche la valeur\n sensorTxt.setText(proxi);\n }\n\n //GYROSCOPE\n if (sensorEvent.sensor.getType() == Sensor.TYPE_GYROSCOPE && s.equals(\"Gyroscope\")) {\n // Les valeurs du gyroscope\n float xGyroscope = sensorEvent.values[0];\n float yGyroscope = sensorEvent.values[1];\n float zGyroscope = sensorEvent.values[2];\n\n gyro = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Valeur du gyroscope \\n Valeur en x = \" + xGyroscope + \" \" + \"\\n Valeur en y = \" + yGyroscope + \" \" + \"\\n Valeur en z = \" + zGyroscope + \"\\n\";\n //On affiche la valeur\n sensorTxt.setText(gyro);\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n // TODO Auto-generated method stub\n int sensorType = event.sensor.getType();\n\n //values[0]:X轴,values[1]:Y轴,values[2]:Z轴\n float[] values = event.values;\n\n if(sensorType == Sensor.TYPE_ACCELEROMETER){\n\n /*监听任一轴的加速度大于14的时候,\n *\n */\n if((Math.abs(values[0])>14||Math.abs(values[1])>14||Math.abs(values[2])>14)){\n num++;\n //摇动手机后,设置button上显示的字为空\n text.setText(\"摇了\"+num+\"下\");\n\n //摇动手机后,再伴随震动提示~~\n vibrator.vibrate(500);\n }\n }\n }",
"protected void checkForChange()\n {\n double changeRatio = _sceneChangeListener.check();\n _sceneChangeValueSlot.setValue(changeRatio);\n\n /*\n * if the ratio exceeds threshold, and hasn't already, set the flag\n */\n if (_resetTimedEvent == null && changeRatio >= getSceneChangeThreshold())\n {\n _sceneChangeFlagSlot.setValue(Boolean.TRUE);\n\n /*\n * queue up the reset. We want to reset the scene-changed flag after\n * visual onset duration.\n */\n double now = ACTRRuntime.getRuntime().getClock(_model).getTime();\n double resetTime = _visualModule.getVisualMemory().getNewFINSTOnsetDuration();\n _resetTimedEvent = new AbstractTimedEvent(now, now + resetTime) {\n @Override\n public void fire(double currentTime)\n {\n super.fire(currentTime);\n clearFlag();\n }\n\n @Override\n public void abort()\n {\n super.abort();\n clearFlag();\n }\n };\n\n // queue it up\n _model.getTimedEventQueue().enqueue(_resetTimedEvent);\n }\n }",
"public abstract boolean sensorFound();",
"public boolean LoadSensor(double value) {\r\n\t\tif (nType == NodeTypeEnum.SENSOR) {\r\n\t\t\t// Time-delayed memory\r\n\t\t\tprior_activation = last_activation;\r\n\t\t\tlast_activation = activation;\r\n\t\t\tactivation = value;\r\n\t\t\tactivation_count++;\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}",
"public void toggleConsumptionHasChanged() {\n\t\tthis.consumptionHasChanged = (this.consumptionHasChanged) ? false : true;\n\t}",
"public void valueChanged(IntegerStorageChange istoragech);",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tint sensorType = event.sensor.getType(); \n //values[0]:X轴,values[1]:Y轴,values[2]:Z轴 \n float[] values = event.values; \n if (sensorType == Sensor.TYPE_ACCELEROMETER) \n { \n if ((Math.abs(values[0]) > 17 || Math.abs(values[1]) > 17 || Math \n .abs(values[2]) > 17)) \n { \n Log.d(\"sensor x \", \"============ values[0] = \" + values[0]); \n Log.d(\"sensor y \", \"============ values[1] = \" + values[1]); \n Log.d(\"sensor z \", \"============ values[2] = \" + values[2]); \n Intent intent = new Intent(this, MapActivity.class);\n startActivity(intent);\n //摇动手机后,再伴随震动提示~~ \n vibrator.vibrate(500); \n } \n \n } \n\t}",
"public void onDataChanged();",
"@Override\n public void onAccuracyChanged(Sensor arg0, int arg1) {\n // Not used within this listener\n }",
"public void accionProximidad(SensorEvent sensorEvent){\n String valProximidad = String.valueOf(sensorEvent.values[0]);\n Float valor = Float.parseFloat(valProximidad);\n tviewProx.setText(Float.toString(valor));\n\n //VALOR ES LO QUE ME DA EL SENSOR ES EL DE PROXIMIDAD\n if(valor == 1){\n sm.unregisterListener(this);\n if(PuertaLecAppEscRas.getLed().getEstado().equals(\"on\")){\n Toast toast = Toast.makeText(getApplicationContext(), \"TRATANDO DE APAGAR LA LUZ\", Toast.LENGTH_LONG);\n toast.show();\n baseDatosSoaRef.child(\"PuertaEscAppLecRas\").child(\"Led\").child(\"estado\").setValue(\"off\");\n PuertaEscAppLecRas.setLed(\"off\");\n }else {\n Toast toast = Toast.makeText(getApplicationContext(), \"TRATANDO DE ENCENDER LA LUZ\", Toast.LENGTH_LONG);\n toast.show();\n baseDatosSoaRef.child(\"PuertaEscAppLecRas\").child(\"Led\").child(\"estado\").setValue(\"on\");\n PuertaEscAppLecRas.setLed(\"on\");\n }\n TareaLed tareaLed = new TareaLed();\n tareaLed.execute();\n }\n }",
"public void onSensorChanged(int sensor, float[] values) {\n\t\t\t\n\t\t\t// grab the values required to respond to user movement.\n\t\t\tmAccelX = (float) (0.2 * values[0]);\n\t\t\tmAccelY = (float) (0.2 * values[1]);\n\t\t\t// mAccelZ = values[2];\n\t\t\tinvalidate();\n\t\t}",
"@Override\n public void onSensorChanged (SensorEvent event) {\n\n Sensor mySensor = event.sensor;\n\n if (mySensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n// output.setText(\"x=\" + x + \"y=\" + y + \"z=\" + z);\n // Log.i(\"acc\",(\"x=\" + x + \"y=\" + y + \"z=\" + z));\n// try {\n// String value=String.valueOf(x)+\",\"+String.valueOf(y)+\",\"+ String.valueOf(z);\n// // outvalue.write(value.getBytes());\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// Log.i(\"acc\", Float.toString(x) + Float.toString(y)+Float.toString(z));\n\n }\n }",
"void onDataChanged();",
"protected boolean isDataChanged() {\n\n\t\treturn true;\n\t}",
"private void fireCPUorGPUClockChange(){\n System.out.println(\"Firing CPU/GPU Clock Change\");\n if(!isNull(this.onCPUGPUClockChange)) this.onCPUGPUClockChange.run();\n }",
"public void onUpdate(T oldValue, T newValue);",
"public void onSensorUnreliable ()\r\n\t{\r\n\t\tif ((System.currentTimeMillis())>5000)\r\n\t\t{\r\n\t\t\tLog.d(TAG,\"You need to calibrate your sensors.\");\r\n\t\t}\r\n\t}",
"private void timerEngine(){\n SensorController me = this;\n //generate new value or send existing to server\n if(isValueGeneratorRunning()){\n logger.trace(\"Generating new sensor value\");\n //create new values\n try{\n getModel().getValues().stream()\n .filter(Value::isGenerateValue) //if new value should be generated\n .forEach(v -> {\n Object next = v.nextValue();\n if (next != null) {\n Platform.runLater(() -> v.setValue(next));\n }\n }); //do it\n }catch (IllegalArgumentException e){\n adapterController.sendError(toString() + \" -> cannot generate new value!\",e,false);\n }\n logger.trace(\"Building sensor message\");\n //create XML message with new values\n XMLmessage = adapterController.getAdapter().getProtocol()\n .buildSensorMessage(adapterController.getAdapter().getProtocol().buildAdapterMessage(adapterController.getAdapter()), getModel());\n //change engine to send message mod\n setRunValueGenerator(false);\n }else if(getModel().getStatus()){\n //if sensor's message doesn't exist, error is showed\n if(XMLmessage == null){\n adapterController.sendError(toString() + \" doesn't have XML message to send\",null,false);\n return;\n }\n //if we have means to send message and adapter is registered, send message to adapter\n if(adapterController.getServerReceiver() != null || adapterController.getAdapter().getRegistered()){\n //full message contains information about adapter\n if(isFullMessage()){\n //used in \"Performance simulation\"\n adapterController.sendMessage(me.toString() + \" --> data sent\",XMLmessage,me, OutMessage.Type.SENSOR_MESSAGE);\n }else{\n //short message contains information only about sensor\n //used in \"Detailed simulation\"\n adapterController.sendMessage(\"Sensor \" + me.toString() + \" trying to send message.\");\n adapterController.sendMessage(\"Sensor \" + me.toString() + \" --> data sent\",XMLmessage,me, OutMessage.Type.SENSOR_MESSAGE);\n }\n //change engine to generate value mod\n setRunValueGenerator(true);\n }\n }\n }",
"public boolean interpolationChanged();",
"public void logSensorData () {\n\t}",
"void valueChanged(CalcModel model);",
"void valueChanged(CalcModel model);",
"@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\ttemp_r[0] = event.values[0];\r\n\t\t\t\ttemp_r[1] = event.values[1];\r\n\t\t\t\ttemp_r[2] = event.values[2];\r\n\t\t\t\t// TipsTextView.setText(String.valueOf(temp_r[0]) + \" \"\r\n\t\t\t\t// + String.valueOf(temp_r[1]) + \" \"\r\n\t\t\t\t// + String.valueOf(temp_r[2]));\r\n\t\t\t}",
"public void onSensorChanged(SensorEvent event) {\n double x = event.values[0];\n double y = event.values[1];\n double z = event.values[2];\n\n final double alpha = 0.8; // constant for our filter below\n\n double[] gravity = {0,0,0};\n\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n x = event.values[0] - gravity[0];\n y = event.values[1] - gravity[1];\n z = event.values[2] - gravity[2];\n\n if (!mInitialized) {\n // sensor is used for the first time, initialize the last read values\n mLastX = x;\n mLastY = y;\n mLastZ = z;\n mInitialized = true;\n } else {\n // sensor is already initialized, and we have previously read values.\n // take difference of past and current values and decide which\n // axis acceleration was detected by comparing values\n\n double deltaX = Math.abs(mLastX - x);\n double deltaY = Math.abs(mLastY - y);\n double deltaZ = Math.abs(mLastZ - z);\n if (deltaX < NOISE)\n deltaX = (float) 0.0;\n if (deltaY < NOISE)\n deltaY = (float) 0.0;\n if (deltaZ < NOISE)\n deltaZ = (float) 0.0;\n mLastX = x;\n mLastY = y;\n mLastZ = z;\n\n if (deltaX > deltaY) {\n // Horizontal shake\n // do something here if you like\n } else if (deltaY > deltaX) {\n // Vertical shake\n // do something here if you like\n } else if ((deltaZ > deltaX) && (deltaZ > deltaY)) {\n // Z shake\n stepManager.ManualUpdateSharedPref();\n } else {\n // no shake detected\n }\n }\n }",
"public void valueChanged(ConfigurationIdentifier configurationIdentifier, Serializable value);",
"public void onDataChanged(){}",
"public void onAccuracyChanged(int sensor, int accuracy) {\n\n }",
"@Override\n\tprotected void execute() {\n\t\tif(Math.abs(Robot.oi.stick.getY()-this.lastValue) < RobotMap.lambda){\n\t\t\tif(System.currentTimeMillis()-this.lastTime > 1000){\n\t\t\t\tRobot.arm.set(0);\n\t\t\t} else {\n\t\t\t\tRobot.arm.set(Robot.oi.stick.getY());\n\t\t\t}\n\t\t} else {\n\t\t\tthis.lastTime = System.currentTimeMillis();\n\t\t\tthis.lastValue = Robot.oi.stick.getY();\t\n\t\t\tRobot.arm.set(Robot.oi.stick.getY());\n\t\t}\n\t}",
"@Override\n public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {\n if (HUMIDITY_DATA_CHAR.equals(characteristic.getUuid())) {\n mHandler.sendMessage(Message.obtain(null, MSG_HUMIDITY, characteristic));\n }\n if (PRESSURE_DATA_CHAR.equals(characteristic.getUuid())) {\n mHandler.sendMessage(Message.obtain(null, MSG_PRESSURE, characteristic));\n }\n if (PRESSURE_CAL_CHAR.equals(characteristic.getUuid())) {\n mHandler.sendMessage(Message.obtain(null, MSG_PRESSURE_CAL, characteristic));\n }\n\n //After reading the initial value, next we enable notifications\n setNotifyNextSensor(gatt);\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n textView.setText(event.values[0]+\"\\n\"+event.values[1]+\"\\n\"+event.values[2]);\n\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if(sensorEvent.sensor.getType()== Sensor.TYPE_ACCELEROMETER){\n if(rBtnPuerta.isChecked()){\n accionShake(sensorEvent);\n }\n }else{\n if(sensorEvent.sensor.getType() == Sensor.TYPE_PROXIMITY){\n if(rBtnLed.isChecked()){\n accionProximidad(sensorEvent);\n }\n }else{\n if(sensorEvent.sensor.getType() == Sensor.TYPE_LIGHT){\n if(rBtnLuminosidad.isChecked()){\n accionLuminosidad(sensorEvent);\n }\n }\n }\n }\n }",
"public void onAccuracyChanged(Sensor arg0, int arg1) \r\n\t{\r\n\t}",
"@Override\n public void onProcessedValueChanged(DSensorEvent dSensorEvent) {\n if (Float.isNaN(dSensorEvent.values[0])) {\n textToSpeech.speak(\"Compass is not working ,\" +\n \"please calibrate ypur phone.\"\n ,TextToSpeech.QUEUE_FLUSH,null);\n\n } else {\n compass = Distance.round(Math.toDegrees(dSensorEvent.values[0]),1);\n if (compass < 0) {\n compass = Distance.round((compass + 360) % 360,1);\n }\n }\n //Toast.makeText(RoutesActivity.this, String.valueOf(dSensorEvent.values[0]), Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void onSensorChanged(final SensorEvent event) {\n\t\tSensor sensor = event.sensor;\n\t\twhile (System.currentTimeMillis() - startTime < 5002 && System.currentTimeMillis() - startTime > 1000) {\n\t\t\tif (System.currentTimeMillis() - startTime > 5000) {\n\t\t\t\tsetContentView(R.layout.maler);\n\t\t\t\tsetActivityBackgroundColor(0xFF000000);\n\t\t\t\tblackScreen = true;\n\t\t\t}\n\t\t}\n\t\tif (sensor.getType() == Sensor.TYPE_LIGHT) {\n\n\t\t\tSystem.out.println(\"System.currentTimeMillis() - startTime \"\n\t\t\t\t\t+ (startTime));\n\n\t\t\tnew Timer().scheduleAtFixedRate(new TimerTask() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgetLights(event);\n\t\t\t\t}\n\t\t\t}, 0, 50);\n\n\t\t\t// Wenn Grenze erreicht => Animation\n\t\t\tif (event.values[0] > (helligkeitsGrenze + 200)\n\t\t\t\t\t&& !animations[0].isStarted() && !animations[1].isStarted()\n\t\t\t\t\t&& !animations[2].isStarted() && blackScreen) {\n\n\t\t\t\t// Bildschirmhelligkeit maximal setzen\n\t\t\t\tWindowManager.LayoutParams layout = getWindow().getAttributes();\n\t\t\t\tlayout.screenBrightness = 1F;\n\t\t\t\tgetWindow().setAttributes(layout);\n\n\t\t\t\tsetContentView(R.layout.maler);\n\t\t\t\tanimations[counter].start();\n\t\t\t\tcounter++;\n\n\t\t\t\tif (counter == 3) {\n\t\t\t\t\tcounter = 0;\n\t\t\t\t}\n\t\t\t\tv.vibrate(pattern, -1);\n\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n Sensor sensor=event.sensor;\n mMeasure.setMesureX(event.values[0]);\n mMeasure.setMesureY(event.values[1]);\n mMeasure.setMesureZ(event.values[2]);\n switch(sensor.getType()){\n case Sensor.TYPE_ACCELEROMETER:\n mTextArea.getTextValue1().setText(\"X=\" + (double)Math.round(mMeasure.getMesureX() * 100) / 100);\n mTextArea.getTextValue2().setText(\"Y=\" + (double)Math.round(mMeasure.getMesureY() * 100) / 100);\n mTextArea.getTextValue3().setText(\"Z=\" + (double)Math.round(mMeasure.getMesureZ() * 100) / 100);\n System.out.println(\"\\n\");\n System.out.println(\"Acceleration measure\\n\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]+\" y=\"+event.values[1]+\" z=\"+event.values[2]);\n System.out.println(\"\\n\");\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n mTextArea.getTextValue1().setText(\"X=\" + (double)Math.round(mMeasure.getMesureX()* 100) / 100);\n mTextArea.getTextValue2().setText(\"Y=\" + (double)Math.round(mMeasure.getMesureY() * 100) / 100);\n mTextArea.getTextValue3().setText(\"Z=\" + (double)Math.round(mMeasure.getMesureZ() * 100) / 100);\n System.out.println(\"\\n\");\n System.out.println(\"Magnetic field measure\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]+\" y=\"+event.values[1]+\" z=\"+event.values[2]);\n System.out.println(\"\\n\");\n break;\n case Sensor.TYPE_PROXIMITY:\n if (mMeasure.getMesureX()==0){\n mTextArea.getTextValue1().setText(\"Object detected\");\n mTextArea.getTextValue1().setBackgroundColor(Color.GREEN);\n } else {\n mTextArea.getTextValue1().setText(\"no object detected\");\n mTextArea.getTextValue1().setBackgroundColor(0xffffffff);\n }\n //mTextArea.getTextValue1().setText(\"\"+mMeasure.getMesureX());\n\n System.out.println(\"\\n\");\n System.out.println(\"Proximity measure\\n\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]);\n System.out.println(\"\\n\");\n break;\n case Sensor.TYPE_LIGHT:\n mTextArea.getTextValue1().setText(\"\" + (double)Math.round(mMeasure.getMesureX() * 100) / 100);\n System.out.println(\"\\n\");\n System.out.println(\"Luminosity measure\\n\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]);\n System.out.println(\"\\n\");\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER)\n return;\n /*\n * record the accelerometer data, the event's timestamp as well as\n * the current time. The latter is needed so we can calculate the\n * \"present\" time during rendering. In this application, we need to\n * take into account how the screen is rotated with respect to the\n * sensors (which always return data in a coordinate space aligned\n * to with the screen in its native orientation).\n */\n\n switch (mDisplay.getRotation()) {\n case Surface.ROTATION_0:\n mSensorX = event.values[0];\n mSensorY = event.values[1];\n break;\n case Surface.ROTATION_90:\n mSensorX = -event.values[1];\n mSensorY = event.values[0];\n break;\n case Surface.ROTATION_180:\n mSensorX = -event.values[0];\n mSensorY = -event.values[1];\n break;\n case Surface.ROTATION_270:\n mSensorX = event.values[1];\n mSensorY = -event.values[0];\n break;\n }\n\n mGLView.updateScene(10*mSensorX,10*mSensorY,10*event.values[2]);\n\n }",
"protected synchronized void setChanged() {\n changed = true;\n }"
] | [
"0.7589713",
"0.695826",
"0.69470257",
"0.6919857",
"0.68224347",
"0.67328274",
"0.672769",
"0.66880846",
"0.66722506",
"0.66722506",
"0.6647713",
"0.66293126",
"0.6623617",
"0.655249",
"0.6508785",
"0.64990956",
"0.6497168",
"0.64728504",
"0.6446468",
"0.6432502",
"0.64226735",
"0.6417574",
"0.64002234",
"0.6363724",
"0.63583374",
"0.6350054",
"0.63424146",
"0.6307904",
"0.62911326",
"0.62820846",
"0.62796336",
"0.62793845",
"0.6274819",
"0.6264174",
"0.6249533",
"0.62463194",
"0.6235666",
"0.62017804",
"0.61923677",
"0.6180725",
"0.61771333",
"0.6173912",
"0.6170924",
"0.61547923",
"0.61390376",
"0.61351264",
"0.61322904",
"0.61101216",
"0.61089504",
"0.61067027",
"0.60932004",
"0.60842824",
"0.6076714",
"0.6054425",
"0.60538584",
"0.6016698",
"0.60045606",
"0.60013175",
"0.60013175",
"0.5998427",
"0.59798074",
"0.5972694",
"0.5972297",
"0.5971935",
"0.59544903",
"0.59523064",
"0.5948317",
"0.59150946",
"0.5904969",
"0.59013826",
"0.588688",
"0.5877514",
"0.58762777",
"0.5875031",
"0.58698654",
"0.5866159",
"0.5865783",
"0.5864695",
"0.5862696",
"0.58621794",
"0.58617294",
"0.586106",
"0.5856603",
"0.5845083",
"0.5845083",
"0.5842863",
"0.58381444",
"0.5836382",
"0.5835817",
"0.5834767",
"0.58347124",
"0.5832802",
"0.58288807",
"0.5822284",
"0.58123225",
"0.58039683",
"0.5800796",
"0.5795219",
"0.5790148",
"0.5788051"
] | 0.6196731 | 38 |
Constructs a new StatCollectorCondCSAMMVar. | public StatCollectorCondCSAMMVar() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StatCollectorCondCSAMMVar(String name) {\n this(name, true);\n }",
"public StatCollectorCondCSAMMVar(String name, boolean autoCollect) {\n this.name = name;\n this.autoCollect = autoCollect;\n }",
"public Cond newCond() {\n return new Cond();\n }",
"public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getInitCondBytes();",
"@Override\n public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Condition(ConditionManager condition)\r\n\t{\r\n\t\tthis.condition = condition;\r\n\t\tinit();\r\n\t}",
"public Cond cond() {\n Cond c = new Cond();\n c.setExpr1(expr());\n c.setOp(compop());\n c.setExpr2(expr());\n \n String type1 = c.getExpr1().getType(symbolTable);\n String type2 = c.getExpr2().getType(symbolTable);\n \n if(type1 != null && type2 != null){\n if(!type1.equals(type2)){\n error.warning(\"Trying to compare a \"+type1+\" with a \"+type2);\n }\n } else\n error.show(\"Trying to make comparison with a variable(s) that hasn't been declared\");\n \n return c;\n }",
"public String getInitCond() {\n Object ref = initCond_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getInitCond();",
"@Override\n public String getInitCond() {\n Object ref = initCond_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n }\n }",
"MFCAccessConditions()\r\n {\r\n }",
"Expression getCond();",
"public Builder setInitCondBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n initCond_ = value;\n onChanged();\n return this;\n }",
"public SimpleCondition() {\n\n\t}",
"public Builder setInitCond(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n initCond_ = value;\n onChanged();\n return this;\n }",
"Expr getCond();",
"public SCondition(Node node) {\n super(node);\n }",
"Condition createCondition();",
"public static BranchConCondToActivity createEntity(EntityManager em) {\n BranchConCondToActivity branchConCondToActivity = new BranchConCondToActivity();\n return branchConCondToActivity;\n }",
"public StatisticMonitoredAttribute(String name, String desc, StatisticsAccumulator s, Object mutex) {\n super(name);\n MonitoredAttributeInfoFactory f = MonitoringFactories.getMonitoredAttributeInfoFactory();\n MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo(desc, String.class, false, true);\n\n this.setMonitoredAttributeInfo(maInfo);\n this.statisticsAccumulator = s;\n this.mutex = mutex;\n }",
"public cy mo1942a(dm dmVar) {\r\n return new cs(dmVar, this.f6454a);\r\n }",
"public SeqConditionSet() {\n\t}",
"condition getConditionAllocution();",
"public SimpleCondition(String fieldName, Cs cs) throws ConditionException {\n\t\tthis(fieldName, cs, null);\n\t}",
"public SimpleCondition(String fieldName, Cs cs, Object value) {\n\t\tthis(fieldName, cs, value, null);\n\t}",
"public ContextConditionImpl() {\n\t\tsuper();\n\t}",
"public StatMCrules(StatMCrulesTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 6; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }",
"public static String [] getCond(){\n\t\treturn conditions;\n\t}",
"public CSP() {\n integerVariables = new ArrayList<IntegerVariable>();\n booleanVariables = new ArrayList<BooleanVariable>();\n relations = new ArrayList<Relation>();\n clauses = new ArrayList<Clause>();\n objectiveVariables = null;\n objective = Objective.NONE;\n integerVariableMap = new HashMap<String, IntegerVariable>();\n booleanVariableMap = new HashMap<String, BooleanVariable>();\n relationMap = new HashMap<String, Relation>();\n }",
"public ModuleConditions(String source) {\n this.source = source;\n onsetConditions = new ConcurrentHashMap<String, OnsetCondition>();\n state2conditionMapping = new ConcurrentHashMap<String, String>();\n }",
"public CPRCommand()\r\n {\r\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[16], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[16] = true;\n return this;\n }",
"@Override\n\tpublic void setcond(String cond) {\n\t\n\t}",
"public void setCpsm(String cpsm) {\n this.cpsm = cpsm;\n }",
"public LessCSSTask() {\n // empty\n }",
"public SearchConditionSB() {\r\n }",
"public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}",
"private void createDataProcCmpImm(Code32 code, int op, int cond, int Rn, int imm12) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | (1 << 25) | op | (Rn << 16) | imm12;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public static BranchConCondToActivity createUpdatedEntity(EntityManager em) {\n BranchConCondToActivity branchConCondToActivity = new BranchConCondToActivity();\n return branchConCondToActivity;\n }",
"protected void setTableCollect(String value)\n\t\t{\n\t\t\tCollectCond = value ;\n\t\t}",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"com.google.protobuf.ByteString getConditionBytes();",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLMAILGROUP(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.CL_MAIL_GROUP = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"public JzChronicstatusExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public Builder setMcc(int value) {\n \n mcc_ = value;\n onChanged();\n return this;\n }",
"public Builder setMcc(int value) {\n \n mcc_ = value;\n onChanged();\n return this;\n }",
"public ClimbSubsystem(){\n\t\t\n\t\tclimbMotorA = new CANTalon(RobotMap.CLIMB_MOTOR_A_ID);\n\t\tclimbMotorB = new CANTalon(RobotMap.CLIMB_MOTOR_B_ID);\n\t\t\n\t\tlogger = new ThreadLogger( new LoggerClient(), \"climb.txt\");\n\t}",
"public static Condition makeCondition(TreeNode root) {\n return new Condition(root);\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[11], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public CalMonitor() {\r\n }",
"public baseRunnableCondition() {\r\n }",
"public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }",
"FilterCondition createFilterCondition(int clueNum);",
"public final void rule__AstConstantVariable__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6516:1: ( ( ( rule__AstConstantVariable__ConstantAssignment_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6517:1: ( ( rule__AstConstantVariable__ConstantAssignment_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6517:1: ( ( rule__AstConstantVariable__ConstantAssignment_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6518:1: ( rule__AstConstantVariable__ConstantAssignment_1 )\n {\n before(grammarAccess.getAstConstantVariableAccess().getConstantAssignment_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6519:1: ( rule__AstConstantVariable__ConstantAssignment_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6519:2: rule__AstConstantVariable__ConstantAssignment_1\n {\n pushFollow(FOLLOW_rule__AstConstantVariable__ConstantAssignment_1_in_rule__AstConstantVariable__Group__1__Impl13579);\n rule__AstConstantVariable__ConstantAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstConstantVariableAccess().getConstantAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setSRCSCHEMANM(java.lang.CharSequence value) {\n validate(fields()[19], value);\n this.SRC_SCHEMA_NM = value;\n fieldSetFlags()[19] = true;\n return this;\n }",
"public Counter(int m) {\n this(DEFAULT_MIN_VALUE, m);\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[13], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[13] = true;\n return this;\n }",
"@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}",
"ControlVariable createControlVariable();",
"private void createClz(Code32 code, int opCode, int cond, int Rd, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (Rd << 12) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public CMN() {\n\t}",
"public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }",
"public CAMPServer(String name) {\n\tsuper(name, true);\n\tlogger = LogManager.getLogger(\"CAMP\");\t\n }",
"public static CompositeAction CreateInitializeCAGuard(List<Variable> LVariable, List<Expression> LGuardExpression)\n\t{\n\t\tCompositeAction CompAction = ActionsFactory.eINSTANCE.createCompositeAction();\n\t\tfor(Object variable_i : LVariable)\n\t\t{\n\t\t\tVariable variable = (Variable) variable_i;\n\t\t\tAssignmentAction AssAction = ActionsFactory.eINSTANCE.createAssignmentAction();\n\t\t\tVariableReference VarRef = expressionFactory.createVariableReference();\n\t\t\tVarRef.setTargetVariable(variable);\n\t\t\tAssAction.setAssignedTarget(VarRef);\n\t\t\tint index = LVariable.indexOf(variable_i);\n\t\t\tAssAction.setAssignedValue(LGuardExpression.get(index));\n\t\t\tCompAction.getContent().add(AssAction);\n\t\t}\n\t\treturn CompAction;\n\t}",
"public CNFClause(int[] condand, int[] condor, int[] effand, int[] effor) {\r\n\t\tthis.condand = condand;\r\n\t\tthis.condor = condor;\r\n\t\tthis.effand = effand;\r\n\t\tthis.effor = effor;\r\n\t}",
"OverallCondition(String condition) {\n this.condition = condition;\n }",
"public SimpleSemaphore2(int v) \n { this(v, v); }",
"protected void createVar(DapVariable dapvar, NetcdfFile ncfile, Group cdmgroup, Structure cdmparentstruct)\n throws DapException {\n Variable cdmvar = null;\n DapType basetype = dapvar.getBaseType();\n if (basetype.isAtomic()) {\n DapVariable atomvar = (DapVariable) dapvar;\n cdmvar = new Variable(ncfile, cdmgroup, cdmparentstruct, atomvar.getShortName());\n DataType cdmbasetype;\n if (basetype.isEnumType())\n cdmbasetype = CDMTypeFcns.enumTypeFor(basetype);\n else\n cdmbasetype = CDMTypeFcns.daptype2cdmtype(basetype);\n if (cdmbasetype == null)\n throw new DapException(\"Unknown basetype:\" + basetype);\n cdmvar.setDataType(cdmbasetype);\n if (basetype.isEnumType()) {\n EnumTypedef cdmenum = (EnumTypedef) this.nodemap.get(basetype);\n if (cdmenum == null)\n throw new DapException(\"Unknown enumeration type:\" + basetype.toString());\n cdmvar.setEnumTypedef(cdmenum);\n }\n this.nodemap.put(cdmvar, dapvar);\n } else if (basetype.isStructType()) {\n DapStructure dapstruct = (DapStructure) basetype;\n Structure cdmstruct = new Structure(ncfile, cdmgroup, cdmparentstruct, dapstruct.getShortName());\n cdmvar = cdmstruct;\n this.nodemap.put(cdmvar, dapvar);\n // Add the fields\n for (DapVariable field : dapstruct.getFields()) {\n createVar(field, ncfile, cdmgroup, cdmstruct);\n }\n } else if (basetype.isSeqType()) {\n DapSequence dapseq = (DapSequence) basetype;\n // In general one would convert the sequence\n // to a CDM sequence with vlen\n // so Sequence {...} s[d1]...[dn]\n // => Sequence {...} s[d1]...[dn]\n Sequence cdmseq = new Sequence(ncfile, cdmgroup, cdmparentstruct, dapseq.getShortName());\n cdmvar = cdmseq;\n this.nodemap.put(cdmvar, dapvar);\n // Add the fields\n for (DapVariable field : dapseq.getFields()) {\n createVar(field, ncfile, cdmgroup, cdmseq);\n }\n // If the rank > 0, then add warning attribute\n if (dapvar.getRank() > 0) {\n List value = new ArrayList();\n value.add(\"CDM does not support Sequences with rank > 0\");\n Attribute warning = new Attribute(\"_WARNING:\", value);\n cdmvar.addAttribute(warning);\n }\n\n } else {\n throw new IllegalStateException(\"Unknown variable sort: \" + dapvar.getSort());\n }\n int rank = dapvar.getRank();\n List<Dimension> cdmdims = new ArrayList<Dimension>(rank + 1); // +1 for vlen\n for (int i = 0; i < rank; i++) {\n DapDimension dim = dapvar.getDimension(i);\n Dimension cdmdim = createDimensionRef(dim, cdmgroup);\n cdmdims.add(cdmdim);\n }\n if (basetype.isSeqType()) {\n // Add the final vlen\n cdmdims.add(Dimension.VLEN);\n }\n cdmvar.setDimensions(cdmdims);\n // Create variable's attributes\n for (String key : dapvar.getAttributes().keySet()) {\n DapAttribute attr = dapvar.getAttributes().get(key);\n Attribute cdmattr = createAttribute(attr);\n cdmvar.addAttribute(cdmattr);\n }\n if (cdmparentstruct != null)\n cdmparentstruct.addMemberVariable(cdmvar);\n else if (cdmgroup != null)\n cdmgroup.addVariable(cdmvar);\n\n }",
"cn.infinivision.dataforce.busybee.pb.meta.ExprOrBuilder getConditionOrBuilder();",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}",
"public void setPCA0MD_CPS_Bits(PCA_ClockSource source){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_SET_PCA0MD_CPS;\r\n cmd.bytes[1]=(byte)(0x07&source.code());\r\n submitCommand(cmd);\r\n }",
"public CannibalProblem(int sm, int sc, int sb, int gm, int gc, int gb) {\n // I (djb) wrote the constructor; nothing for you to do here.\n\n startNode = new CannibalNode(sm, sc, 1, 0);\n goalm = gm;\n goalc = gc;\n goalb = gb;\n totalMissionaries = sm;\n totalCannibals = sc;\n }",
"BaseCondition createBaseCondition();",
"private List<Criterion> createCriterions(String entityType, Long assigneeId, Long statusId) {\r\n List<Criterion> criterions = new ArrayList<Criterion>();\r\n\r\n if (assigneeId != null) {\r\n Criterion assigneeCriterion = Restrictions.eq(\"asgn.id\", assigneeId);\r\n criterions.add(assigneeCriterion);\r\n }\r\n if (!StringUtils.isEmpty(entityType)) {\r\n Criterion entityCriterion = Restrictions.eq(\"entityType\", entityType);\r\n criterions.add(entityCriterion);\r\n }\r\n if (statusId != null) {\r\n Criterion statusCriterion = Restrictions.eq(\"cs.status.id\", statusId);\r\n criterions.add(statusCriterion);\r\n }\r\n\r\n return criterions;\r\n }",
"LogicCondition createLogicCondition();",
"public SimpleSemaphore2(boolean b) \n { this(b ? 1 : 0, 1); }",
"public MplsRxFilterValue(MplsLabel mplsLabel, int cpuId) {\n super(cpuId);\n setValue(mplsLabel);\n }",
"Condition(double multiplier) {\r\n this.multiplier = multiplier;\r\n }",
"public Mcs(){\t\t\t\t\r\n\t\tuser = new User [MAX_USER];\r\n\t\tsharedPool = new Song [MAX_SONG];\r\n\t\tplaylist = new Playlist [MAX_PLAYLIST];\r\n\t}",
"public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }",
"public Builder clearInitCond() {\n\n initCond_ = getDefaultInstance().getInitCond();\n onChanged();\n return this;\n }",
"public CalMonitor(Object value) {\r\n data = value;\r\n empty = false;\r\n }",
"public AdvConditionParser()\n{\n //nothing to do\n}",
"public final MRpCommandList compile(MatrixVariableI var, Node node) throws ParseException {\r\n\t\tMRpCommandList list = compile(node);\r\n\t\tObjStore store = getStoreByDim(var.getDimensions());\r\n\t\tshort vRef = (short) store.addVar(var);\r\n\t\tstore.decStack();\r\n\t\tlist.addCommand(ASSIGN, getDimType(var.getDimensions()), vRef);\r\n\t\treturn list;\r\n\t}",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"public MdCategoryVCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public StatusComponent()\n {\n }",
"public BTGConditionDTO()\n\t{\n\t\tsuper();\n\t}",
"public Process(int PID, int ArivalT, int CPUT, int IOT, int Prior, int WT, int TIP, int CPUN, int CTS) {\n this.PidNum = PID;\n this.ArivalTime = ArivalT;\n this.CPUTime = CPUT;\n this.IOTime = IOT;\n this.Priority = Prior;\n this.WaitTime = WT;\n this.TimeInProc = TIP;\n this.CPUNum = CPUN;\n this.ContextSwitch = CTS;\n this.stats.setPID(PID);\n }",
"public Condition(Compendium compendium) {\n\t\tgrn_ = compendium.getGrn();\n\t\tcompendium_ = compendium;\n\t}",
"public IfCondition() {\r\n super();\r\n }",
"public M csmiStatusNull(){if(this.get(\"csmiStatusNot\")==null)this.put(\"csmiStatusNot\", \"\");this.put(\"csmiStatus\", null);return this;}",
"public Climber (int motorIDInput) {\n // speed = Robot.m_oi.getSpeed();\n speed = 0.0;\n climbState = 0;\n\n talonMotor = new WPI_TalonSRX(motorIDInput);\n talonMotor.setInverted(false);\n\n if (printDebug) {\n System.out.println(\"Climb: initialized constructor\");\n }\n }",
"public PhonstringCondition (String id, String content, float minProb, float maxProb) {\n\t\tsuper(id);\n\t\tphonstringCondition = content;\n\t\tthis.minProb = minProb;\n\t\tthis.maxProb = maxProb;\n\t}",
"public Subject(String name, int lev, int val) {\n\t\tthis.name = name;\n\t\tthis.seclevel = lev;\n\t\tthis.value = val;\n\t}",
"public Condition(Map<String, String> whereClause ) {\n ArrayList<String> list = new ArrayList<>(); //whereArgs里面的内容存入的list\n StringBuilder stringBuffer = new StringBuilder();\n stringBuffer.append(\"1=1\");\n //取得所有成员变量的名字\n Set<String> keys = whereClause.keySet();\n for (String key : keys) {\n String value = whereClause.get(key);\n if (value != null) {\n stringBuffer.append(\" and \").append(key).append(\"=?\");\n list.add(value);\n }\n }\n\n this.whereClause = stringBuffer.toString();\n this.whereArgs = list.toArray(new String[list.size()]);\n }",
"public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }",
"public Builder setC(com.yangtian.matrix.Matrix value) {\n if (cBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n c_ = value;\n onChanged();\n } else {\n cBuilder_.setMessage(value);\n }\n\n return this;\n }",
"private void createDataProcCmpReg(Code32 code, int op, int cond, int Rn, int Rm, int shiftType, int shiftAmount) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rn << 16) | (shiftAmount << 7) | (shiftType << 5) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}"
] | [
"0.8436962",
"0.7115916",
"0.54725057",
"0.519172",
"0.5136996",
"0.5127177",
"0.50386566",
"0.50222635",
"0.5004195",
"0.4958061",
"0.488465",
"0.4829995",
"0.48126486",
"0.48091072",
"0.4802501",
"0.47831738",
"0.4776736",
"0.47578007",
"0.4698623",
"0.45844534",
"0.45474237",
"0.45363525",
"0.45291618",
"0.45188564",
"0.4512131",
"0.44378397",
"0.4427364",
"0.44263256",
"0.44054538",
"0.4397978",
"0.43508264",
"0.4342869",
"0.43326223",
"0.4326687",
"0.43198508",
"0.43069568",
"0.43049514",
"0.43023506",
"0.4290239",
"0.42847595",
"0.42828813",
"0.42663422",
"0.42466676",
"0.42436835",
"0.42300928",
"0.42240238",
"0.42240238",
"0.42227185",
"0.42207396",
"0.42146558",
"0.41928807",
"0.41697127",
"0.41559145",
"0.41517103",
"0.41454902",
"0.4141238",
"0.41337526",
"0.41253185",
"0.41235536",
"0.4113285",
"0.4109061",
"0.4106915",
"0.40921333",
"0.40858892",
"0.40805328",
"0.40678895",
"0.40491673",
"0.4048384",
"0.4046219",
"0.40378347",
"0.4037143",
"0.4030288",
"0.40289253",
"0.40256807",
"0.40254837",
"0.4024867",
"0.40213156",
"0.40033764",
"0.40011898",
"0.40004405",
"0.39936316",
"0.39882004",
"0.39881858",
"0.39809272",
"0.39742887",
"0.3973552",
"0.3968019",
"0.39668253",
"0.39633885",
"0.3959993",
"0.39541847",
"0.39421073",
"0.39381698",
"0.39366585",
"0.39254868",
"0.3920176",
"0.391428",
"0.39111775",
"0.39101204",
"0.39079937"
] | 0.8576658 | 0 |
Constructs a new StatCollectorCondCSAMMVar. | public StatCollectorCondCSAMMVar(String name, boolean autoCollect) {
this.name = name;
this.autoCollect = autoCollect;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StatCollectorCondCSAMMVar() {\n }",
"public StatCollectorCondCSAMMVar(String name) {\n this(name, true);\n }",
"public Cond newCond() {\n return new Cond();\n }",
"public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getInitCondBytes();",
"@Override\n public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Condition(ConditionManager condition)\r\n\t{\r\n\t\tthis.condition = condition;\r\n\t\tinit();\r\n\t}",
"public Cond cond() {\n Cond c = new Cond();\n c.setExpr1(expr());\n c.setOp(compop());\n c.setExpr2(expr());\n \n String type1 = c.getExpr1().getType(symbolTable);\n String type2 = c.getExpr2().getType(symbolTable);\n \n if(type1 != null && type2 != null){\n if(!type1.equals(type2)){\n error.warning(\"Trying to compare a \"+type1+\" with a \"+type2);\n }\n } else\n error.show(\"Trying to make comparison with a variable(s) that hasn't been declared\");\n \n return c;\n }",
"public String getInitCond() {\n Object ref = initCond_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getInitCond();",
"@Override\n public String getInitCond() {\n Object ref = initCond_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n }\n }",
"MFCAccessConditions()\r\n {\r\n }",
"Expression getCond();",
"public Builder setInitCondBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n initCond_ = value;\n onChanged();\n return this;\n }",
"public SimpleCondition() {\n\n\t}",
"public Builder setInitCond(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n initCond_ = value;\n onChanged();\n return this;\n }",
"Expr getCond();",
"public SCondition(Node node) {\n super(node);\n }",
"Condition createCondition();",
"public static BranchConCondToActivity createEntity(EntityManager em) {\n BranchConCondToActivity branchConCondToActivity = new BranchConCondToActivity();\n return branchConCondToActivity;\n }",
"public StatisticMonitoredAttribute(String name, String desc, StatisticsAccumulator s, Object mutex) {\n super(name);\n MonitoredAttributeInfoFactory f = MonitoringFactories.getMonitoredAttributeInfoFactory();\n MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo(desc, String.class, false, true);\n\n this.setMonitoredAttributeInfo(maInfo);\n this.statisticsAccumulator = s;\n this.mutex = mutex;\n }",
"public cy mo1942a(dm dmVar) {\r\n return new cs(dmVar, this.f6454a);\r\n }",
"public SeqConditionSet() {\n\t}",
"condition getConditionAllocution();",
"public SimpleCondition(String fieldName, Cs cs) throws ConditionException {\n\t\tthis(fieldName, cs, null);\n\t}",
"public SimpleCondition(String fieldName, Cs cs, Object value) {\n\t\tthis(fieldName, cs, value, null);\n\t}",
"public ContextConditionImpl() {\n\t\tsuper();\n\t}",
"public StatMCrules(StatMCrulesTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 6; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }",
"public static String [] getCond(){\n\t\treturn conditions;\n\t}",
"public CSP() {\n integerVariables = new ArrayList<IntegerVariable>();\n booleanVariables = new ArrayList<BooleanVariable>();\n relations = new ArrayList<Relation>();\n clauses = new ArrayList<Clause>();\n objectiveVariables = null;\n objective = Objective.NONE;\n integerVariableMap = new HashMap<String, IntegerVariable>();\n booleanVariableMap = new HashMap<String, BooleanVariable>();\n relationMap = new HashMap<String, Relation>();\n }",
"public ModuleConditions(String source) {\n this.source = source;\n onsetConditions = new ConcurrentHashMap<String, OnsetCondition>();\n state2conditionMapping = new ConcurrentHashMap<String, String>();\n }",
"public CPRCommand()\r\n {\r\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[16], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[16] = true;\n return this;\n }",
"@Override\n\tpublic void setcond(String cond) {\n\t\n\t}",
"public void setCpsm(String cpsm) {\n this.cpsm = cpsm;\n }",
"public LessCSSTask() {\n // empty\n }",
"public SearchConditionSB() {\r\n }",
"public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}",
"private void createDataProcCmpImm(Code32 code, int op, int cond, int Rn, int imm12) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | (1 << 25) | op | (Rn << 16) | imm12;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public static BranchConCondToActivity createUpdatedEntity(EntityManager em) {\n BranchConCondToActivity branchConCondToActivity = new BranchConCondToActivity();\n return branchConCondToActivity;\n }",
"protected void setTableCollect(String value)\n\t\t{\n\t\t\tCollectCond = value ;\n\t\t}",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"com.google.protobuf.ByteString getConditionBytes();",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLMAILGROUP(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.CL_MAIL_GROUP = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"public JzChronicstatusExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public Builder setMcc(int value) {\n \n mcc_ = value;\n onChanged();\n return this;\n }",
"public Builder setMcc(int value) {\n \n mcc_ = value;\n onChanged();\n return this;\n }",
"public ClimbSubsystem(){\n\t\t\n\t\tclimbMotorA = new CANTalon(RobotMap.CLIMB_MOTOR_A_ID);\n\t\tclimbMotorB = new CANTalon(RobotMap.CLIMB_MOTOR_B_ID);\n\t\t\n\t\tlogger = new ThreadLogger( new LoggerClient(), \"climb.txt\");\n\t}",
"public static Condition makeCondition(TreeNode root) {\n return new Condition(root);\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[11], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public CalMonitor() {\r\n }",
"public baseRunnableCondition() {\r\n }",
"public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }",
"FilterCondition createFilterCondition(int clueNum);",
"public final void rule__AstConstantVariable__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6516:1: ( ( ( rule__AstConstantVariable__ConstantAssignment_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6517:1: ( ( rule__AstConstantVariable__ConstantAssignment_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6517:1: ( ( rule__AstConstantVariable__ConstantAssignment_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6518:1: ( rule__AstConstantVariable__ConstantAssignment_1 )\n {\n before(grammarAccess.getAstConstantVariableAccess().getConstantAssignment_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6519:1: ( rule__AstConstantVariable__ConstantAssignment_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6519:2: rule__AstConstantVariable__ConstantAssignment_1\n {\n pushFollow(FOLLOW_rule__AstConstantVariable__ConstantAssignment_1_in_rule__AstConstantVariable__Group__1__Impl13579);\n rule__AstConstantVariable__ConstantAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstConstantVariableAccess().getConstantAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setSRCSCHEMANM(java.lang.CharSequence value) {\n validate(fields()[19], value);\n this.SRC_SCHEMA_NM = value;\n fieldSetFlags()[19] = true;\n return this;\n }",
"public Counter(int m) {\n this(DEFAULT_MIN_VALUE, m);\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[13], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[13] = true;\n return this;\n }",
"@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}",
"ControlVariable createControlVariable();",
"private void createClz(Code32 code, int opCode, int cond, int Rd, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (Rd << 12) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public CMN() {\n\t}",
"public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }",
"public CAMPServer(String name) {\n\tsuper(name, true);\n\tlogger = LogManager.getLogger(\"CAMP\");\t\n }",
"public static CompositeAction CreateInitializeCAGuard(List<Variable> LVariable, List<Expression> LGuardExpression)\n\t{\n\t\tCompositeAction CompAction = ActionsFactory.eINSTANCE.createCompositeAction();\n\t\tfor(Object variable_i : LVariable)\n\t\t{\n\t\t\tVariable variable = (Variable) variable_i;\n\t\t\tAssignmentAction AssAction = ActionsFactory.eINSTANCE.createAssignmentAction();\n\t\t\tVariableReference VarRef = expressionFactory.createVariableReference();\n\t\t\tVarRef.setTargetVariable(variable);\n\t\t\tAssAction.setAssignedTarget(VarRef);\n\t\t\tint index = LVariable.indexOf(variable_i);\n\t\t\tAssAction.setAssignedValue(LGuardExpression.get(index));\n\t\t\tCompAction.getContent().add(AssAction);\n\t\t}\n\t\treturn CompAction;\n\t}",
"public CNFClause(int[] condand, int[] condor, int[] effand, int[] effor) {\r\n\t\tthis.condand = condand;\r\n\t\tthis.condor = condor;\r\n\t\tthis.effand = effand;\r\n\t\tthis.effor = effor;\r\n\t}",
"OverallCondition(String condition) {\n this.condition = condition;\n }",
"public SimpleSemaphore2(int v) \n { this(v, v); }",
"protected void createVar(DapVariable dapvar, NetcdfFile ncfile, Group cdmgroup, Structure cdmparentstruct)\n throws DapException {\n Variable cdmvar = null;\n DapType basetype = dapvar.getBaseType();\n if (basetype.isAtomic()) {\n DapVariable atomvar = (DapVariable) dapvar;\n cdmvar = new Variable(ncfile, cdmgroup, cdmparentstruct, atomvar.getShortName());\n DataType cdmbasetype;\n if (basetype.isEnumType())\n cdmbasetype = CDMTypeFcns.enumTypeFor(basetype);\n else\n cdmbasetype = CDMTypeFcns.daptype2cdmtype(basetype);\n if (cdmbasetype == null)\n throw new DapException(\"Unknown basetype:\" + basetype);\n cdmvar.setDataType(cdmbasetype);\n if (basetype.isEnumType()) {\n EnumTypedef cdmenum = (EnumTypedef) this.nodemap.get(basetype);\n if (cdmenum == null)\n throw new DapException(\"Unknown enumeration type:\" + basetype.toString());\n cdmvar.setEnumTypedef(cdmenum);\n }\n this.nodemap.put(cdmvar, dapvar);\n } else if (basetype.isStructType()) {\n DapStructure dapstruct = (DapStructure) basetype;\n Structure cdmstruct = new Structure(ncfile, cdmgroup, cdmparentstruct, dapstruct.getShortName());\n cdmvar = cdmstruct;\n this.nodemap.put(cdmvar, dapvar);\n // Add the fields\n for (DapVariable field : dapstruct.getFields()) {\n createVar(field, ncfile, cdmgroup, cdmstruct);\n }\n } else if (basetype.isSeqType()) {\n DapSequence dapseq = (DapSequence) basetype;\n // In general one would convert the sequence\n // to a CDM sequence with vlen\n // so Sequence {...} s[d1]...[dn]\n // => Sequence {...} s[d1]...[dn]\n Sequence cdmseq = new Sequence(ncfile, cdmgroup, cdmparentstruct, dapseq.getShortName());\n cdmvar = cdmseq;\n this.nodemap.put(cdmvar, dapvar);\n // Add the fields\n for (DapVariable field : dapseq.getFields()) {\n createVar(field, ncfile, cdmgroup, cdmseq);\n }\n // If the rank > 0, then add warning attribute\n if (dapvar.getRank() > 0) {\n List value = new ArrayList();\n value.add(\"CDM does not support Sequences with rank > 0\");\n Attribute warning = new Attribute(\"_WARNING:\", value);\n cdmvar.addAttribute(warning);\n }\n\n } else {\n throw new IllegalStateException(\"Unknown variable sort: \" + dapvar.getSort());\n }\n int rank = dapvar.getRank();\n List<Dimension> cdmdims = new ArrayList<Dimension>(rank + 1); // +1 for vlen\n for (int i = 0; i < rank; i++) {\n DapDimension dim = dapvar.getDimension(i);\n Dimension cdmdim = createDimensionRef(dim, cdmgroup);\n cdmdims.add(cdmdim);\n }\n if (basetype.isSeqType()) {\n // Add the final vlen\n cdmdims.add(Dimension.VLEN);\n }\n cdmvar.setDimensions(cdmdims);\n // Create variable's attributes\n for (String key : dapvar.getAttributes().keySet()) {\n DapAttribute attr = dapvar.getAttributes().get(key);\n Attribute cdmattr = createAttribute(attr);\n cdmvar.addAttribute(cdmattr);\n }\n if (cdmparentstruct != null)\n cdmparentstruct.addMemberVariable(cdmvar);\n else if (cdmgroup != null)\n cdmgroup.addVariable(cdmvar);\n\n }",
"cn.infinivision.dataforce.busybee.pb.meta.ExprOrBuilder getConditionOrBuilder();",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}",
"public void setPCA0MD_CPS_Bits(PCA_ClockSource source){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_SET_PCA0MD_CPS;\r\n cmd.bytes[1]=(byte)(0x07&source.code());\r\n submitCommand(cmd);\r\n }",
"public CannibalProblem(int sm, int sc, int sb, int gm, int gc, int gb) {\n // I (djb) wrote the constructor; nothing for you to do here.\n\n startNode = new CannibalNode(sm, sc, 1, 0);\n goalm = gm;\n goalc = gc;\n goalb = gb;\n totalMissionaries = sm;\n totalCannibals = sc;\n }",
"BaseCondition createBaseCondition();",
"private List<Criterion> createCriterions(String entityType, Long assigneeId, Long statusId) {\r\n List<Criterion> criterions = new ArrayList<Criterion>();\r\n\r\n if (assigneeId != null) {\r\n Criterion assigneeCriterion = Restrictions.eq(\"asgn.id\", assigneeId);\r\n criterions.add(assigneeCriterion);\r\n }\r\n if (!StringUtils.isEmpty(entityType)) {\r\n Criterion entityCriterion = Restrictions.eq(\"entityType\", entityType);\r\n criterions.add(entityCriterion);\r\n }\r\n if (statusId != null) {\r\n Criterion statusCriterion = Restrictions.eq(\"cs.status.id\", statusId);\r\n criterions.add(statusCriterion);\r\n }\r\n\r\n return criterions;\r\n }",
"LogicCondition createLogicCondition();",
"public SimpleSemaphore2(boolean b) \n { this(b ? 1 : 0, 1); }",
"public MplsRxFilterValue(MplsLabel mplsLabel, int cpuId) {\n super(cpuId);\n setValue(mplsLabel);\n }",
"Condition(double multiplier) {\r\n this.multiplier = multiplier;\r\n }",
"public Mcs(){\t\t\t\t\r\n\t\tuser = new User [MAX_USER];\r\n\t\tsharedPool = new Song [MAX_SONG];\r\n\t\tplaylist = new Playlist [MAX_PLAYLIST];\r\n\t}",
"public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }",
"public Builder clearInitCond() {\n\n initCond_ = getDefaultInstance().getInitCond();\n onChanged();\n return this;\n }",
"public CalMonitor(Object value) {\r\n data = value;\r\n empty = false;\r\n }",
"public AdvConditionParser()\n{\n //nothing to do\n}",
"public final MRpCommandList compile(MatrixVariableI var, Node node) throws ParseException {\r\n\t\tMRpCommandList list = compile(node);\r\n\t\tObjStore store = getStoreByDim(var.getDimensions());\r\n\t\tshort vRef = (short) store.addVar(var);\r\n\t\tstore.decStack();\r\n\t\tlist.addCommand(ASSIGN, getDimType(var.getDimensions()), vRef);\r\n\t\treturn list;\r\n\t}",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"public MdCategoryVCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public StatusComponent()\n {\n }",
"public BTGConditionDTO()\n\t{\n\t\tsuper();\n\t}",
"public Process(int PID, int ArivalT, int CPUT, int IOT, int Prior, int WT, int TIP, int CPUN, int CTS) {\n this.PidNum = PID;\n this.ArivalTime = ArivalT;\n this.CPUTime = CPUT;\n this.IOTime = IOT;\n this.Priority = Prior;\n this.WaitTime = WT;\n this.TimeInProc = TIP;\n this.CPUNum = CPUN;\n this.ContextSwitch = CTS;\n this.stats.setPID(PID);\n }",
"public Condition(Compendium compendium) {\n\t\tgrn_ = compendium.getGrn();\n\t\tcompendium_ = compendium;\n\t}",
"public IfCondition() {\r\n super();\r\n }",
"public M csmiStatusNull(){if(this.get(\"csmiStatusNot\")==null)this.put(\"csmiStatusNot\", \"\");this.put(\"csmiStatus\", null);return this;}",
"public Climber (int motorIDInput) {\n // speed = Robot.m_oi.getSpeed();\n speed = 0.0;\n climbState = 0;\n\n talonMotor = new WPI_TalonSRX(motorIDInput);\n talonMotor.setInverted(false);\n\n if (printDebug) {\n System.out.println(\"Climb: initialized constructor\");\n }\n }",
"public PhonstringCondition (String id, String content, float minProb, float maxProb) {\n\t\tsuper(id);\n\t\tphonstringCondition = content;\n\t\tthis.minProb = minProb;\n\t\tthis.maxProb = maxProb;\n\t}",
"public Subject(String name, int lev, int val) {\n\t\tthis.name = name;\n\t\tthis.seclevel = lev;\n\t\tthis.value = val;\n\t}",
"public Condition(Map<String, String> whereClause ) {\n ArrayList<String> list = new ArrayList<>(); //whereArgs里面的内容存入的list\n StringBuilder stringBuffer = new StringBuilder();\n stringBuffer.append(\"1=1\");\n //取得所有成员变量的名字\n Set<String> keys = whereClause.keySet();\n for (String key : keys) {\n String value = whereClause.get(key);\n if (value != null) {\n stringBuffer.append(\" and \").append(key).append(\"=?\");\n list.add(value);\n }\n }\n\n this.whereClause = stringBuffer.toString();\n this.whereArgs = list.toArray(new String[list.size()]);\n }",
"public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }",
"public Builder setC(com.yangtian.matrix.Matrix value) {\n if (cBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n c_ = value;\n onChanged();\n } else {\n cBuilder_.setMessage(value);\n }\n\n return this;\n }",
"private void createDataProcCmpReg(Code32 code, int op, int cond, int Rn, int Rm, int shiftType, int shiftAmount) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rn << 16) | (shiftAmount << 7) | (shiftType << 5) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}"
] | [
"0.8576658",
"0.8436962",
"0.54725057",
"0.519172",
"0.5136996",
"0.5127177",
"0.50386566",
"0.50222635",
"0.5004195",
"0.4958061",
"0.488465",
"0.4829995",
"0.48126486",
"0.48091072",
"0.4802501",
"0.47831738",
"0.4776736",
"0.47578007",
"0.4698623",
"0.45844534",
"0.45474237",
"0.45363525",
"0.45291618",
"0.45188564",
"0.4512131",
"0.44378397",
"0.4427364",
"0.44263256",
"0.44054538",
"0.4397978",
"0.43508264",
"0.4342869",
"0.43326223",
"0.4326687",
"0.43198508",
"0.43069568",
"0.43049514",
"0.43023506",
"0.4290239",
"0.42847595",
"0.42828813",
"0.42663422",
"0.42466676",
"0.42436835",
"0.42300928",
"0.42240238",
"0.42240238",
"0.42227185",
"0.42207396",
"0.42146558",
"0.41928807",
"0.41697127",
"0.41559145",
"0.41517103",
"0.41454902",
"0.4141238",
"0.41337526",
"0.41253185",
"0.41235536",
"0.4113285",
"0.4109061",
"0.4106915",
"0.40921333",
"0.40858892",
"0.40805328",
"0.40678895",
"0.40491673",
"0.4048384",
"0.4046219",
"0.40378347",
"0.4037143",
"0.4030288",
"0.40289253",
"0.40256807",
"0.40254837",
"0.4024867",
"0.40213156",
"0.40033764",
"0.40011898",
"0.40004405",
"0.39936316",
"0.39882004",
"0.39881858",
"0.39809272",
"0.39742887",
"0.3973552",
"0.3968019",
"0.39668253",
"0.39633885",
"0.3959993",
"0.39541847",
"0.39421073",
"0.39381698",
"0.39366585",
"0.39254868",
"0.3920176",
"0.391428",
"0.39111775",
"0.39101204",
"0.39079937"
] | 0.7115916 | 2 |
Constructs a new StatCollectorCondCSAMMVar. (Automatic by default.) | public StatCollectorCondCSAMMVar(String name) {
this(name, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StatCollectorCondCSAMMVar() {\n }",
"public StatCollectorCondCSAMMVar(String name, boolean autoCollect) {\n this.name = name;\n this.autoCollect = autoCollect;\n }",
"public Cond newCond() {\n return new Cond();\n }",
"public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getInitCond();",
"@Override\n public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getInitCondBytes();",
"public String getInitCond() {\n Object ref = initCond_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Condition(ConditionManager condition)\r\n\t{\r\n\t\tthis.condition = condition;\r\n\t\tinit();\r\n\t}",
"public Builder setInitCond(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n initCond_ = value;\n onChanged();\n return this;\n }",
"public SimpleCondition() {\n\n\t}",
"@Override\n public String getInitCond() {\n Object ref = initCond_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n }\n }",
"public Builder setInitCondBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n initCond_ = value;\n onChanged();\n return this;\n }",
"public StatisticMonitoredAttribute(String name, String desc, StatisticsAccumulator s, Object mutex) {\n super(name);\n MonitoredAttributeInfoFactory f = MonitoringFactories.getMonitoredAttributeInfoFactory();\n MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo(desc, String.class, false, true);\n\n this.setMonitoredAttributeInfo(maInfo);\n this.statisticsAccumulator = s;\n this.mutex = mutex;\n }",
"MFCAccessConditions()\r\n {\r\n }",
"public StatMCrules(StatMCrulesTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 6; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }",
"Expression getCond();",
"public Cond cond() {\n Cond c = new Cond();\n c.setExpr1(expr());\n c.setOp(compop());\n c.setExpr2(expr());\n \n String type1 = c.getExpr1().getType(symbolTable);\n String type2 = c.getExpr2().getType(symbolTable);\n \n if(type1 != null && type2 != null){\n if(!type1.equals(type2)){\n error.warning(\"Trying to compare a \"+type1+\" with a \"+type2);\n }\n } else\n error.show(\"Trying to make comparison with a variable(s) that hasn't been declared\");\n \n return c;\n }",
"Condition createCondition();",
"public SeqConditionSet() {\n\t}",
"Expr getCond();",
"public cy mo1942a(dm dmVar) {\r\n return new cs(dmVar, this.f6454a);\r\n }",
"public SCondition(Node node) {\n super(node);\n }",
"condition getConditionAllocution();",
"public static BranchConCondToActivity createEntity(EntityManager em) {\n BranchConCondToActivity branchConCondToActivity = new BranchConCondToActivity();\n return branchConCondToActivity;\n }",
"public void setCpsm(String cpsm) {\n this.cpsm = cpsm;\n }",
"@Override\n\tpublic void setcond(String cond) {\n\t\n\t}",
"public SimpleCondition(String fieldName, Cs cs) throws ConditionException {\n\t\tthis(fieldName, cs, null);\n\t}",
"public LessCSSTask() {\n // empty\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[16], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[16] = true;\n return this;\n }",
"public CSP() {\n integerVariables = new ArrayList<IntegerVariable>();\n booleanVariables = new ArrayList<BooleanVariable>();\n relations = new ArrayList<Relation>();\n clauses = new ArrayList<Clause>();\n objectiveVariables = null;\n objective = Objective.NONE;\n integerVariableMap = new HashMap<String, IntegerVariable>();\n booleanVariableMap = new HashMap<String, BooleanVariable>();\n relationMap = new HashMap<String, Relation>();\n }",
"public ClimbSubsystem(){\n\t\t\n\t\tclimbMotorA = new CANTalon(RobotMap.CLIMB_MOTOR_A_ID);\n\t\tclimbMotorB = new CANTalon(RobotMap.CLIMB_MOTOR_B_ID);\n\t\t\n\t\tlogger = new ThreadLogger( new LoggerClient(), \"climb.txt\");\n\t}",
"protected void setTableCollect(String value)\n\t\t{\n\t\t\tCollectCond = value ;\n\t\t}",
"public SimpleCondition(String fieldName, Cs cs, Object value) {\n\t\tthis(fieldName, cs, value, null);\n\t}",
"public JzChronicstatusExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public Builder setMcc(int value) {\n \n mcc_ = value;\n onChanged();\n return this;\n }",
"public Builder setMcc(int value) {\n \n mcc_ = value;\n onChanged();\n return this;\n }",
"public CPRCommand()\r\n {\r\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[11], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setSRCSCHEMANM(java.lang.CharSequence value) {\n validate(fields()[19], value);\n this.SRC_SCHEMA_NM = value;\n fieldSetFlags()[19] = true;\n return this;\n }",
"public CannibalProblem(int sm, int sc, int sb, int gm, int gc, int gb) {\n // I (djb) wrote the constructor; nothing for you to do here.\n\n startNode = new CannibalNode(sm, sc, 1, 0);\n goalm = gm;\n goalc = gc;\n goalb = gb;\n totalMissionaries = sm;\n totalCannibals = sc;\n }",
"public SearchConditionSB() {\r\n }",
"public ContextConditionImpl() {\n\t\tsuper();\n\t}",
"public CalMonitor() {\r\n }",
"public CMN() {\n\t}",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}",
"public Counter(int m) {\n this(DEFAULT_MIN_VALUE, m);\n }",
"public static BranchConCondToActivity createUpdatedEntity(EntityManager em) {\n BranchConCondToActivity branchConCondToActivity = new BranchConCondToActivity();\n return branchConCondToActivity;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[13], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[13] = true;\n return this;\n }",
"private void createDataProcCmpImm(Code32 code, int op, int cond, int Rn, int imm12) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | (1 << 25) | op | (Rn << 16) | imm12;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public CAMPServer(String name) {\n\tsuper(name, true);\n\tlogger = LogManager.getLogger(\"CAMP\");\t\n }",
"public static String [] getCond(){\n\t\treturn conditions;\n\t}",
"public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}",
"OverallCondition(String condition) {\n this.condition = condition;\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLMAILGROUP(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.CL_MAIL_GROUP = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"public MVSR() {\n clg = \"MVSR\";\n cmax = 10000;\n mmax = 12000;\n eemax = 13033;\n emax = 18520;\n imax = 20204;\n }",
"@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}",
"public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"public MhsmNetworkRuleSet() {\n }",
"public AdvConditionParser()\n{\n //nothing to do\n}",
"public ModuleConditions(String source) {\n this.source = source;\n onsetConditions = new ConcurrentHashMap<String, OnsetCondition>();\n state2conditionMapping = new ConcurrentHashMap<String, String>();\n }",
"public Builder setMnc(int value) {\n \n mnc_ = value;\n onChanged();\n return this;\n }",
"private void constructClassAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n SWRLVariable var = null;\n OWLClass c = ontologyOwlClassVocabulary.get(name);\n\n var = initalizeVariable(name, var);\n\n SWRLClassAtom classRule = factory.getSWRLClassAtom(c, var);\n antecedent.add(classRule);\n\n if (!TextUtils.isBlank(value) && !TextUtils.isBlank(operator)) {\n constructBuiltinAtom(name, operator, value, null, antecedent);\n }\n }",
"Condition(double multiplier) {\r\n this.multiplier = multiplier;\r\n }",
"public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }",
"public void setPCA0MD_CPS_Bits(PCA_ClockSource source){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_SET_PCA0MD_CPS;\r\n cmd.bytes[1]=(byte)(0x07&source.code());\r\n submitCommand(cmd);\r\n }",
"public Builder clearInitCond() {\n\n initCond_ = getDefaultInstance().getInitCond();\n onChanged();\n return this;\n }",
"public final void rule__AstConstantVariable__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6516:1: ( ( ( rule__AstConstantVariable__ConstantAssignment_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6517:1: ( ( rule__AstConstantVariable__ConstantAssignment_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6517:1: ( ( rule__AstConstantVariable__ConstantAssignment_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6518:1: ( rule__AstConstantVariable__ConstantAssignment_1 )\n {\n before(grammarAccess.getAstConstantVariableAccess().getConstantAssignment_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6519:1: ( rule__AstConstantVariable__ConstantAssignment_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6519:2: rule__AstConstantVariable__ConstantAssignment_1\n {\n pushFollow(FOLLOW_rule__AstConstantVariable__ConstantAssignment_1_in_rule__AstConstantVariable__Group__1__Impl13579);\n rule__AstConstantVariable__ConstantAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstConstantVariableAccess().getConstantAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"FilterCondition createFilterCondition(int clueNum);",
"public Attribute(String name, int metricFactor, int priority){\n this.name = name;\n this.maxOccurance = 0;\n this.metric = 0.0;\n subGrps = new Vector<SubGroup>();\n this.maxSubGroups = new Vector<SubGroup>();\n this.metricFactor = metricFactor;\n this.priority = priority;\n this.isDominating = true;\n}",
"public static CompositeAction CreateInitializeCAGuard(List<Variable> LVariable, List<Expression> LGuardExpression)\n\t{\n\t\tCompositeAction CompAction = ActionsFactory.eINSTANCE.createCompositeAction();\n\t\tfor(Object variable_i : LVariable)\n\t\t{\n\t\t\tVariable variable = (Variable) variable_i;\n\t\t\tAssignmentAction AssAction = ActionsFactory.eINSTANCE.createAssignmentAction();\n\t\t\tVariableReference VarRef = expressionFactory.createVariableReference();\n\t\t\tVarRef.setTargetVariable(variable);\n\t\t\tAssAction.setAssignedTarget(VarRef);\n\t\t\tint index = LVariable.indexOf(variable_i);\n\t\t\tAssAction.setAssignedValue(LGuardExpression.get(index));\n\t\t\tCompAction.getContent().add(AssAction);\n\t\t}\n\t\treturn CompAction;\n\t}",
"ControlVariable createControlVariable();",
"public baseRunnableCondition() {\r\n }",
"public CNFClause(int[] condand, int[] condor, int[] effand, int[] effor) {\r\n\t\tthis.condand = condand;\r\n\t\tthis.condor = condor;\r\n\t\tthis.effand = effand;\r\n\t\tthis.effor = effor;\r\n\t}",
"private void createClz(Code32 code, int opCode, int cond, int Rd, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (Rd << 12) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }",
"public AdvancedCFG(String constructor){\n super(constructor);\n }",
"public SimpleSemaphore2(boolean b) \n { this(b ? 1 : 0, 1); }",
"int getMcc();",
"int getMcc();",
"com.google.protobuf.ByteString getConditionBytes();",
"LogicCondition createLogicCondition();",
"public Climber (int motorIDInput) {\n // speed = Robot.m_oi.getSpeed();\n speed = 0.0;\n climbState = 0;\n\n talonMotor = new WPI_TalonSRX(motorIDInput);\n talonMotor.setInverted(false);\n\n if (printDebug) {\n System.out.println(\"Climb: initialized constructor\");\n }\n }",
"public MMTMeasurement(){\n }",
"public void setSRCCDCOPERNM(java.lang.CharSequence value) {\n this.SRC_CDC_OPER_NM = value;\n }",
"public void setSRCCDCOPERNM(java.lang.CharSequence value) {\n this.SRC_CDC_OPER_NM = value;\n }",
"public void setSRCCDCOPERNM(java.lang.CharSequence value) {\n this.SRC_CDC_OPER_NM = value;\n }",
"public RCC() {\n v = new Semaphore(1);\n s = new Semaphore(0);\n mutex = new Semaphore(1);\n suspendidos_s = 0;\n }",
"public CalMonitor(Object value) {\r\n data = value;\r\n empty = false;\r\n }",
"@Override\n public void addEnviroment(String clasname, String parvarn1, Integer parvarn2, Integer unit) throws ClassNotFoundException, SecurityException,\n NoSuchMethodException, IllegalArgumentException,\n InstantiationException, IllegalAccessException,\n InvocationTargetException {\n\n Constraint c = converConstrain(clasname,parvarn1,parvarn2);\n AmbientC varsConst = new AmbientC(); //Campo que implementa la clase AmbienC para transformar los constraint\n varsConst.addAmbientCon(parvarn1, parvarn2,unit,c); //\n super.getVarsEnviromen().add(varsConst);\n\n\n }",
"public RdaMcsClaimLoadJob createMcsClaimsLoadJob(PipelineApplicationState appState) {\n return new RdaMcsClaimLoadJob(\n jobConfig,\n () ->\n new GrpcRdaSource<>(\n grpcConfig,\n new McsClaimStreamCaller(\n new McsClaimTransformer(appState.getClock(), new IdHasher(idHasherConfig))),\n appState.getMetrics(),\n \"mcs\",\n jobConfig.getStartingMcsSeqNum()),\n () -> new McsClaimRdaSink(appState),\n appState.getMetrics());\n }",
"private List<Criterion> createCriterions(String entityType, Long assigneeId, Long statusId) {\r\n List<Criterion> criterions = new ArrayList<Criterion>();\r\n\r\n if (assigneeId != null) {\r\n Criterion assigneeCriterion = Restrictions.eq(\"asgn.id\", assigneeId);\r\n criterions.add(assigneeCriterion);\r\n }\r\n if (!StringUtils.isEmpty(entityType)) {\r\n Criterion entityCriterion = Restrictions.eq(\"entityType\", entityType);\r\n criterions.add(entityCriterion);\r\n }\r\n if (statusId != null) {\r\n Criterion statusCriterion = Restrictions.eq(\"cs.status.id\", statusId);\r\n criterions.add(statusCriterion);\r\n }\r\n\r\n return criterions;\r\n }",
"public M csmiStatusNull(){if(this.get(\"csmiStatusNot\")==null)this.put(\"csmiStatusNot\", \"\");this.put(\"csmiStatus\", null);return this;}",
"public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }",
"public BasicStatistic(String name)\n {\n this.name = name;\n }",
"public Mcs(){\t\t\t\t\r\n\t\tuser = new User [MAX_USER];\r\n\t\tsharedPool = new Song [MAX_SONG];\r\n\t\tplaylist = new Playlist [MAX_PLAYLIST];\r\n\t}",
"public MdCategoryVCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"public PhonstringCondition (String id, String content, float minProb, float maxProb) {\n\t\tsuper(id);\n\t\tphonstringCondition = content;\n\t\tthis.minProb = minProb;\n\t\tthis.maxProb = maxProb;\n\t}"
] | [
"0.85660315",
"0.7425277",
"0.52670354",
"0.51315325",
"0.5110636",
"0.50736386",
"0.5049621",
"0.49641004",
"0.49504244",
"0.49470517",
"0.4846185",
"0.48407444",
"0.47456974",
"0.47157612",
"0.47091594",
"0.46785256",
"0.4634545",
"0.46246022",
"0.45878842",
"0.4573015",
"0.45606974",
"0.45483953",
"0.45020702",
"0.4497663",
"0.447486",
"0.44639975",
"0.44512853",
"0.44430664",
"0.44378936",
"0.44211316",
"0.4414086",
"0.44117162",
"0.43784884",
"0.43731946",
"0.43715954",
"0.4371588",
"0.4371588",
"0.43654072",
"0.43467435",
"0.43411076",
"0.42901194",
"0.42609522",
"0.4253071",
"0.4251742",
"0.4237916",
"0.42304692",
"0.42269734",
"0.42116293",
"0.42083484",
"0.4201286",
"0.42008474",
"0.41937557",
"0.41897115",
"0.4180746",
"0.41764712",
"0.41550404",
"0.41455966",
"0.4140606",
"0.41372523",
"0.413536",
"0.4130953",
"0.41308677",
"0.4105028",
"0.41033012",
"0.41029805",
"0.40862796",
"0.4083228",
"0.40805146",
"0.40729374",
"0.40644258",
"0.405902",
"0.40512896",
"0.40498465",
"0.40481606",
"0.40429938",
"0.40378538",
"0.40369466",
"0.4034947",
"0.403393",
"0.40333188",
"0.40333188",
"0.40278316",
"0.40204993",
"0.40126842",
"0.40089723",
"0.39863974",
"0.39863974",
"0.39863974",
"0.39711985",
"0.39711878",
"0.3969838",
"0.39695904",
"0.3965583",
"0.39578",
"0.39540818",
"0.3951899",
"0.39496434",
"0.3939119",
"0.3938965",
"0.39326292"
] | 0.8377254 | 1 |
Add value to stat calculation for this object if condition met. | public void addValueFor(Object object) {
if (meetsCondition(object)) {
addValue(getValue(object));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean add(CompoundStat stat) {\n return add(stat, null);\n }",
"protected void add() {\n\t\tfinal float previous = value;\n\t\tvalue = Math.min(max, value + incrementStep);\n\n\t\tif (value != previous) {\n\t\t\tupdateAndAlertListener();\n\t\t}\n\n\t\treturn;\n\t}",
"double getBasedOnValue();",
"@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }",
"@Override\n public void agg(double newVal)\n {\n aggVal += newVal;\n firstTime = false;\n }",
"public StatisticValue(final Statistic<?> statistic) {\n this.statistic = statistic;\n }",
"@Override\n public void agg(Object newVal)\n {\n aggVal += (Double)newVal;\n firstTime = false;\n }",
"private void calculeStatAdd() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int win = resourceA - resourceB;\n int diff = (resourceB - resourceA) + value;\n this.getContext().getStats().incNbRessourceWinPlayers(idPlayer,type,win);\n this.getContext().getStats().incNbRessourceExtendMaxPlayers(idPlayer,type,diff);\n }",
"public void setIsCalculated(Boolean value) {\n this.isCalculated = value;\n }",
"public void addValue() {\n addValue(1);\n }",
"public void modStat(double amount, Stat stat)\n\t{\n\t\tswitch(stat)\n\t\t{\n\t\t\tcase MAX_HEALTH:\n\t\t\t\tmaxHealth += amount;\n\t\t\t\tbreak;\n\t\t\tcase ATTACK:\n\t\t\t\tattack += amount;\n\t\t\t\tbreak;\n\t\t\tcase DEFENCE:\n\t\t\t\tdefence += amount;\n\t\t\t\tbreak;\n\t\t\tcase POTION_POWER:\n\t\t\t\tpotionPower += amount;\n\t\t\t\tbreak;\n\t\t\tcase HEALTH_ON_KILL:\n\t\t\t\thealthOnKill += amount;\n\t\t\t\tbreak;\n\t\t\tcase GOLD_ON_KILL:\n\t\t\t\tgoldOnKill += amount;\n\t\t\t\tbreak;\n\t\t\tcase MAX_HEALTH_ON_HIT:\n\t\t\t\tmaxHealthOnHit += amount;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Shouldn't ever happen\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void incrementStat(AbstractStat stat, long increment) {\n stats.add(stat, increment);\n }",
"@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }",
"public static void addValueAndFlushIfNeeded(ExposedStatistic param, double value, boolean local) {\n if (!active) {\n return;\n }\n if (log.isDebugEnabled()) {\n log.debugf(\"Flushing value %s to parameter %s without attached xact\",\n value, param);\n }\n NodeScopeStatisticCollector nssc = transactionalClassesStatsMap.get(DEFAULT_ISPN_CLASS);\n if (local) {\n nssc.addLocalValue(param, value);\n } else {\n nssc.addRemoteValue(param, value);\n }\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tif (!cond.test(env))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tenv.value *= 1.45;\n\t\t}",
"public UnitStatValues add(UnitStatValues other) {\n\t\tstr += other.str;\n\t\tagi += other.agi;\n\t\tfort += other.fort;\n\t\tpercep += other.percep;\n\n\t\tmaxHp += other.maxHp;\n\t\tmaxSp += other.maxSp;\n\n\t\tdamage += other.damage;\n\t\t\n\t\tatkspd += other.atkspd;\n\t\t\n\t\tatk += other.atk;\n\t\tdef += other.def;\n\t\tforce += other.force;\n\t\tstab += other.stab;\n\t\tdodge += other.dodge;\n\n\t\tarmor += other.armor;\n\t\tarmorPiercing += other.armorPiercing;\n\t\tpercentArmor += other.percentArmor;\n\t\tarmorNegate += other.armorNegate;\n\t\t\n\t\trangedDamage += other.rangedDamage;\n\t\trangedAtk += other.rangedAtk;\n\t\trangedForce += other.rangedForce;\n\n\t\treturn this;\n\t}",
"public void increaseStat(Stat stat, int amount) {\n int actualValue = getStat(stat);\n stats.put(stat, actualValue + amount);\n }",
"boolean updateValue() {\n boolean ret;\n\n if (Math.abs(curUtilityValue - nextUtilityValue) < Math.abs(curUtilityValue) * MAX_ERR_PERCENT / 100)\n ret = true;\n else {\n ret = false;\n // System.out.println(\" no match cell: x: \"+x+\" y: \"+y);\n }\n curUtilityValue = nextUtilityValue;\n return ret;\n\n }",
"public void add(MyDouble val) {\n this.setValue(this.getValue() + val.getValue());\n }",
"double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}",
"static private void calculateMissionScore() {\n\n HashMap<String, Boolean> missionStatus = allMissions.missionStatus;\n\n for (String i : missionStatus.keySet()) {\n\n if (missionStatus.get(i) == true) {\n score.addToPoints(250);\n }\n }\n }",
"private void addValueToStatMap(HashMap<String, ArrayList<Double>> map, String key, Double value) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new ArrayList<Double>());\r\n }\r\n map.get(key).add(value);\r\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatWIT();\n\t\t\t}\n\t\t}",
"private void updateValue() {\n int minValue = 100; //Minimum value to be calculated, initialized to a large number\n value = 0; //Value reinitialized to 0\n for (Integer i : values) {\n if (i > value && i <= 21) {\n value = i; //Sets value to maximum value less than or equal to 21\n }\n if (i < minValue) {\n minValue = i; //Sets minimum value to lowest value in the list\n }\n }\n if (value == 0) {\n value = minValue; //Sets value to minValue if no values 21 or less\n }\n valueLabel.setText(\"Value: \" + value); //Sets text of value label\n if (value > 21) {\n bust(); //Busts if value greater than 21\n }\n }",
"private void addStats(\n net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) {\n ensureStatsIsMutable();\n stats_.add(builderForValue.build());\n }",
"public void setStat(Integer stat) {\r\n this.stat = stat;\r\n }",
"public void calcVal(JLabel l){\n\t\tdouble total = 0;\n\t\tfor(int i = 0; i < coinList.size(); i++){\n\t\t\ttotal += coinList.get(i).getValue();\n\t\t}\n\t\tl.setText(\"Total Money: $\" + toPercent(total));\n\t}",
"public void setStat(Integer stat) {\n this.stat = stat;\n }",
"public void setStat(Integer stat) {\n this.stat = stat;\n }",
"void add(double val) {\r\n\t\tresult = result + val;\r\n\t}",
"private void UpdateAdds() {\n Adds = (Level + CurrentHealth)/10;\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatSTR();\n\t\t\t}\n\t\t}",
"public void add(double newValue) {\n this.count++;\n this.average = this.average * (this.count - 1) / this.count + newValue/this.count;\n }",
"public static void addcommision(float commision) {\r\n\t\tcommissionSum += commision;\r\n\t}",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatINT();\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}",
"public void addWhen(Object pCondition, Object pValue);",
"public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }",
"public Delta addStat(String stat) {\n _builder.addStat(stat);\n return this;\n }",
"public void addValue(double newValue) {\n\t\tdouble delta = newValue - mean;\n\t\tn += 1;\n\t\tmean += delta / n;\n\t\ts += delta * (newValue - mean);\n\t}",
"public void doIt()\n\t{\n\t\tthis.mass += this.accumulation;\n\t\tif (this.mass < 0) {\n\t\t\tthis.mass = 0;\n\t\t}\n\t\tthis.accumulation = 0;\n\t}",
"void addStatisticsCalculation(ProcessingUnitStatisticsId statisticsId);",
"int getConditionValue();",
"public void add(double val) {\n sum += val;\n sumQ += val * val;\n count++;\n if (val < min) min = val;\n if (val > max) max = val;\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCHA();\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}",
"public void setSUM(double value) {\n this.sum = value;\n }",
"void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }",
"Quantity getComparisonValue();",
"public void putStatistic(StatisticConfig statistic) {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n int cur = getStatistics().indexOf(statistic);\n if (cur >= 0) {\n workspace.statistics.set(cur, statistic);\n } else {\n workspace.statistics.add(statistic);\n }\n notifyListeners(Type.STATISTICS);\n return;\n }",
"public Statistic(String name, float value)\n\t{\n\t\tthis.name = name;\n\t\tthis.fValue = value;\n\t\t\n\t\tisFloat = true;\n\t\t\n\t\tsplits = new ArrayList<Split>();\n\t}",
"Float getStatus();",
"private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}",
"@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }",
"public void incrementStatistic ( Statistic statistic ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.incrementStatistic ( statistic ) );\n\t}",
"public void addValue(double value) {\r\n\t\tvalues.add(value);\r\n\t}",
"@Override\n public double getValue() {\n return healthPackAmount;\n }",
"public synchronized boolean add(CompoundStat stat, MetricConfig config) {\n if (hasExpired())\n return false;\n\n final MetricConfig statConfig = config == null ? this.config : config;\n stats.add(new StatAndConfig(Objects.requireNonNull(stat), () -> statConfig));\n Object lock = metricLock();\n for (NamedMeasurable m : stat.stats()) {\n final KafkaMetric metric = new KafkaMetric(lock, m.name(), m.stat(), statConfig, time);\n if (!metrics.containsKey(metric.metricName())) {\n KafkaMetric existingMetric = registry.registerMetric(metric);\n if (existingMetric != null) {\n throw new IllegalArgumentException(\"A metric named '\" + metric.metricName() + \"' already exists, can't register another one.\");\n }\n metrics.put(metric.metricName(), metric);\n }\n }\n return true;\n }",
"public double calculateValue() {\n if (!isLeaf && Double.isNaN(value)) {\n for (List<LatticeNode> list : children) {\n double tempVal = 0;\n for (LatticeNode node : list) {\n tempVal += ((CALatticeNode) node).calculateValue();\n }\n if (!list.isEmpty())\n value = tempVal;\n }\n }\n weight = Math.abs(value);\n return value;\n }",
"private void strengthenPlayer(int player, double value) {\n\t\tif (player == LOCAL) {\n\t\t\tif (locStatBonus + value < 2) {\n\t\t\t\tlocStatBonus += value;\n\t\t\t}\n\t\t} else if (player == OPPONENT) {\n\t\t\tif (oppStatBonus + value < 2) {\n\t\t\t\toppStatBonus += value;\n\t\t\t}\n\t\t}\n\t\tstrengthenPlayerAnimation(player);\n\t}",
"public Integer getStat() {\r\n return stat;\r\n }",
"private void calValue() {\r\n for (char[] array : root.lines()) {\r\n int[] nums = HeuristicAdvanNode.checkLine(array);\r\n value += calHValue(nums[0], nums[1]);\r\n if (Math.abs(value) > xWin) {\r\n return;\r\n }\r\n }\r\n }",
"public Statistic(String name, int value)\n\t{\n\t\tthis.name = name;\n\t\tthis.iValue = value;\n\t\t\n\t\tisFloat = false;\n\t\t\n\t\tsplits = new ArrayList<Split>();\n\t}",
"public Integer getStat() {\n return stat;\n }",
"public Integer getStat() {\n return stat;\n }",
"@Override\r\n\tpublic boolean familiarValueCheck(FamilyMember f) {\r\n\t\treturn f.getDiceValue()+this.actionArea.getBonusOfArea(f.getPlayer())>=this.getMinDiceValue();\r\n\t}",
"void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }",
"@Override\n public void update(Observable o, Object arg) {\n if (o instanceof ChartDataHolder)\n displayStatistics(((ChartDataHolder) o).getCMCSpecificStats(cmc - 1));\n }",
"@Override\n public InterpreterValue add(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the addition-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() + ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the addition-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() + ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '+' is not defined for type double and \" + v.getName());\n\n }",
"void addCalcValueListener(CalcValueListener l);",
"public void put(double value) {\n int k = (int) ((value - minValue) / binDiff + 1);\n if (k < 0) k = 0;\n if (k >= bins.length) k = bins.length - 1;\n bins[k]++;\n }",
"public void setValue(double val) {\r\n\t\tthis.worth = val;\r\n\t}",
"public int updateSleeping() {\n //sleeping = 1.3 + 7-energy/10 -- Eat until foodAmt == 0 or 2 more than the lowest stat\n //wake up = 1.0 + 7-stat/10 -- Get the highest value to compare to eating value\n options[0] = (1.0 + ((5.0-(double)energy)/10.0)); // sleep\n options[1] = (1.0 + ((7.0-(double)food)/10.0)); // eat\n options[2] = (1.0 + ((7.0-(double)water)/10.0)); // drink\n \n int maxStat = getMax();\n \n if(maxStat == 0)\n return 0;\n else\n return 1;\n }",
"@Override\r\n\tpublic void updateIndicator(int num, int current) {\n\t\tif (num >= 0 && current >= 0 && current < num && mIndicator != null) {\r\n\t\t\tmIndicator.setTotal(num);\r\n\t\t\tmIndicator.setCurrent(current);\r\n\t\t}\r\n\t}",
"boolean incHighValue() { return true; }",
"public void update(double val) {\n\n ListEntry entry = new ListEntry(val, getModel().currentTime());\n accumulate.add(entry);\n super.update(val);\n }",
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"public void incrementStatistic ( Statistic statistic , int amount ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.incrementStatistic ( statistic , amount ) );\n\t}",
"private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}",
"private void addConditionalResponses(\n com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse.Builder builderForValue) {\n ensureConditionalResponsesIsMutable();\n conditionalResponses_.add(builderForValue.build());\n }",
"public Builder addAdditionalImpact(\n com.google.cloud.recommender.v1.Impact.Builder builderForValue) {\n if (additionalImpactBuilder_ == null) {\n ensureAdditionalImpactIsMutable();\n additionalImpact_.add(builderForValue.build());\n onChanged();\n } else {\n additionalImpactBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"@Override\n public ImpValue plus(ImpValue iv) {\n return iv.plusBool(this);\n }",
"private void setValue(long date, double value) {\n\t\tLong longDate = new Long(date);\n\t\tDouble v = (Double) values.get(longDate);\n\t\tif (v != null) // if already present, add to it\n\t\t\tv = new Double(v.doubleValue() + value);\n\t\telse\n\t\t\tv = new Double(value);\n\t\tvalues.put(longDate,v);\n\t}",
"private void setInternalValueFunction(Criterion criterion) {\n checkNotNull(criterion);\n if (criterion.isDoubleCrescent()) {\n this.linearValueFunctions.put(criterion, null);\n } else if (criterion.isDoubleDecrease()) {\n this.reversedValueFunctions.put(criterion, null);\n } else if (criterion.hasBooleanDomain()) {\n this.booleanValueFunctions.put(criterion, new BooleanValueFunction(true));\n } else {\n throw new IllegalArgumentException(\n \"The type associated with the Criterion must be boolean or non-boolean\");\n }\n }",
"private void setTotalValueAndNet(){\n\t\tBigDecimal currentPrice = getCurrentPrice(); //getCurrentPrice() is synchronized already\n\t\tsynchronized(this){\n\t\t\t//If quantity == 0, then there's no total value or net\n\t\t\tif(quantityOfShares > 0){\n\t\t\t\ttotalValue = currentPrice.multiply(new BigDecimal(quantityOfShares));\n\t\t\t\tnet = totalValue.subtract(principle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttotalValue = new BigDecimal(0);\n\t\t\t\tnet = new BigDecimal(0);\n\t\t\t}\n\t\t}\n\t}",
"public void addValue(int i) {\n value = value + i;\n }",
"public static void singleValue(String name, double value, String units) {\n openMinorTag(\"stat\");\n attribute(\"name\",name);\n attribute(\"value\",value);\n if (units != null) attribute(\"units\",units);\n closeMinorTag();\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatMEN();\n\t\t\t}\n\t\t}",
"public void addHealth(int amt) {\n currentHealth = currentHealth + amt;\n }",
"Builder addInteractionStatistic(String value);",
"public double refreshData(double newValue){\n\t\t\n\t\tlastResultValue = resultValue;\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t *\tAdding new value \n\t\t */\n\t\tif( (isThresholdUsingEnabled) && ( Math.abs((resultValue - newValue)) > threshold) ){\t// If the newValue is much different then previous resultValues then we discard the previous values..\n\t\t\tthis.valueCount = 0;\n\t\t\tthis.values = new double[this.maxValueCount];\n\t\t}\n\t\t\n\t\tif(valueCount == maxValueCount){\n\t\t\t\n\t\t\tfor(int i=1; i<maxValueCount; i++)\n\t\t\t\tvalues[i-1] = values[i]; \n\t\t\t\n\t\t\tvalues[maxValueCount-1] = newValue;\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\tvalues[valueCount] = newValue;\n\t\t\t\n\t\t\tvalueCount++;\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * \tCalculating result value\n\t\t */\n\t\t\n\t\t// Not need calculating if the new value equals the last result...\n\t\tif(resultValue == newValue)\t\n\t\t\treturn resultValue;\n\t\t\n\t\t// If the last result is not equal to the value of the new input value...\n\t\tdouble sum = 0;\n\t\tint div = 0;\n\t\tfor (int i = 0; i < valueCount; i++){\n\t\t\t\n\t\t\tsum += (values[i] * priorities[ ( (maxValueCount-valueCount ) + i) ]);\n\t\t\tdiv += priorities[ ( (maxValueCount-valueCount ) + i) ];\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.resultValue = sum / div;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * If we have new result (not equals the last) than we call onDataChanged method what can be implemented on parent\n\t\t */\n\t\tif(resultValue != lastResultValue)\n\t\t\tthis.onDataChanged();\n\t\t\n\t\t\n\t\t\n\t\t// Returns the new result\n\t\treturn this.resultValue;\n\t}",
"private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }",
"public void notifyAlgoUpdateCurrentValue() {\n this.mHwGradualBrightnessAlgo.updateTargetAndRate(this.mTargetValue, this.mRate);\n this.mHwGradualBrightnessAlgo.updateCurrentBrightnessValue((float) this.mCurrentValue);\n }",
"public Builder setBonusStats(\n com.rpg.framework.database.Protocol.BonusStats.Builder builderForValue) {\n if (bonusStatsBuilder_ == null) {\n bonusStats_ = builderForValue.build();\n onChanged();\n } else {\n bonusStatsBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000004;\n return this;\n }",
"@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}",
"public Builder setCouponStat(int value) {\n \n couponStat_ = value;\n onChanged();\n return this;\n }",
"public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }",
"@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatDEX();\n\t\t\t}\n\t\t}",
"public Builder setComputeSum(\n io.dstore.values.BooleanValue.Builder builderForValue) {\n if (computeSumBuilder_ == null) {\n computeSum_ = builderForValue.build();\n onChanged();\n } else {\n computeSumBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public void computeItemStats()\n\t{\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add every item stat value.\n\t\t\titem.getValue().addItemStats(urgot);\n\t\t}\n\t\t\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add passives after all stats have been added.\n\t\t\titem.getValue().applyPassive(urgot);\n\t\t}\n\t}"
] | [
"0.54909295",
"0.54602844",
"0.5241342",
"0.52348745",
"0.52246106",
"0.5214159",
"0.5206839",
"0.5196223",
"0.51843864",
"0.5133624",
"0.50745696",
"0.5032131",
"0.50148475",
"0.49913895",
"0.49823108",
"0.49344516",
"0.4930496",
"0.49245572",
"0.48626578",
"0.48547134",
"0.4832097",
"0.48311234",
"0.48222956",
"0.48166192",
"0.48114377",
"0.47996223",
"0.47933042",
"0.47878823",
"0.47878823",
"0.47864786",
"0.4784207",
"0.4773463",
"0.4758635",
"0.4753758",
"0.47514194",
"0.4737166",
"0.4713243",
"0.47100845",
"0.4703097",
"0.4697621",
"0.4695437",
"0.46892056",
"0.46785954",
"0.4668069",
"0.46647787",
"0.46582484",
"0.4655901",
"0.46395618",
"0.46382833",
"0.46134034",
"0.46065396",
"0.46037802",
"0.45924565",
"0.45912006",
"0.45822954",
"0.45809448",
"0.45805144",
"0.45770815",
"0.45721772",
"0.45601788",
"0.45596346",
"0.455805",
"0.45515996",
"0.45494702",
"0.45494702",
"0.45479548",
"0.45369768",
"0.4535373",
"0.4530235",
"0.45297498",
"0.4522866",
"0.4522632",
"0.45151612",
"0.4502137",
"0.44972733",
"0.44954383",
"0.4494964",
"0.44921356",
"0.44909462",
"0.44867536",
"0.44818717",
"0.4480352",
"0.44787335",
"0.44707388",
"0.446422",
"0.44614765",
"0.44601378",
"0.44583347",
"0.44574502",
"0.44571054",
"0.44549525",
"0.4447352",
"0.44423229",
"0.44411322",
"0.44350296",
"0.443226",
"0.4430771",
"0.44222546",
"0.44209933",
"0.44165683"
] | 0.6048699 | 0 |
method required for adding horse | Horse addHorse(Horse horse); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Horse getHorse(long id);",
"public Horse(String name)\n {\n this.name = name;\n }",
"Horse updateHorse(Horse horse);",
"public static void horse() {\n System.out.println(\"There was an old woman who swallowed a horse,\");\n System.out.println(\"She died of course.\");\n }",
"public void thisHorse() {\n\t\tHorsesView horses = (HorsesView) manager.getPanel(Constants.H_VIEW_NAME);\n\t\tif (horses.getPhv().getAmount().isEmpty() || !horses.getPhv().getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")\n\t\t\t\t|| Float.parseFloat(horses.getPhv().getAmount()) <= 0) {\n\t\t\tnew Dialeg().setWarningText(\"You must enter a positive amount!\");\n\t\t} else {\n\t\t\thorses.getPhv().obreDialeg();\n\t\t\tif (horses.getPhv().getDialeg().getResult() == JOptionPane.OK_OPTION) {\n\t\t\t\tString name = horses.getPhv().getHorseName();\n\t\t\t\thorseBet = new Bet(Double.parseDouble(horses.getPhv().getAmount()), name);\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(horseBet));\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\thorses.getPhv().dispose();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String getChosenHorse() {\n return chosenHorse.getName();\n }",
"@Override\n\tpublic int horsePower() {\n\t\treturn 336;\n\t}",
"@Override\n public String addHorse(Observer... horses) {\n for (Observer horse : horses) {\n mounts.add(horse);\n }\n return (Answer.HORSES.toString(2));\n }",
"Horse deleteHorse(long id);",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)\n public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {\n Entity entity = event.getRightClicked();\n if (!Util.isTrackable(entity)) {\n return;\n }\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n Player player = event.getPlayer();\n PlayerState playerState = getState(player);\n Location playerLoc = player.getLocation();\n\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n if (player.equals(abstractHorse.getOwner())) {\n savedHorse.setLastAccessed(System.currentTimeMillis());\n } else {\n // Horses that are not interacted with by their owner for a\n // long time are spontaneously untamed. Since the horse is\n // being interacted with, the DB entry is retained.\n if (savedHorse.isAbandoned()) {\n abstractHorse.setOwner(null);\n if (CONFIG.DEBUG_EVENTS) {\n debug(abstractHorse, \"abandoned\");\n }\n }\n }\n\n // Trap trigger horse: non-tame skeleton horse with domestication 0.\n // Domestication 0 seems to prevent taming.\n if (!abstractHorse.isTamed() && abstractHorse.getDomestication() == 0) {\n abstractHorse.setDomestication(1);\n }\n\n // Normalisation of trap horses: if they spawned tame, untame.\n if (abstractHorse.getOwner() == null && abstractHorse.isTamed()) {\n abstractHorse.setTamed(false);\n abstractHorse.setDomestication(1);\n }\n\n // Do pending trainable attribute updates resulting from /horse-swap.\n // Also fix some horses that got attributes minimised by mistake when\n // they \"spawned\" by going through a portal.\n if (Util.isTrainable(abstractHorse)) {\n savedHorse.updateAllAttributes(abstractHorse);\n }\n\n EasyRider.DB.observe(savedHorse, abstractHorse);\n\n if (playerState.hasPendingInteraction()) {\n playerState.handlePendingInteraction(event, savedHorse);\n event.setCancelled(true);\n } else {\n ItemStack item = player.getEquipment().getItemInMainHand();\n if (Util.isTrainable(abstractHorse)) {\n // Allow players to feed golden carrots to living horses that\n // they cannot access for breeding purposes. Other foods don't\n // work due to vanilla limitations.\n if (!Util.isUndeadHorse(abstractHorse) &&\n item != null && item.getType() == Material.GOLDEN_CARROT) {\n handleFeeding(abstractHorse, savedHorse, player);\n } else {\n // Prevent riding, leashing etc. of owned, locked horses.\n if (isAccessible(savedHorse, abstractHorse, player, playerState)) {\n handleFeeding(abstractHorse, savedHorse, player);\n } else {\n event.setCancelled(true);\n }\n }\n\n // Simulate taming of undead horses. Vanilla code does most of\n // the work. We just need to put the player on an untamed horse.\n if (Util.isUndeadHorse(abstractHorse) && !abstractHorse.isTamed()) {\n abstractHorse.addPassenger(player);\n }\n } else if (abstractHorse instanceof Llama) {\n // Allow anyone to feed hay blocks to locked llamas.\n boolean canAccess = (item != null && item.getType() == Material.HAY_BLOCK) ||\n isAccessible(savedHorse, abstractHorse, player, playerState);\n if (!canAccess) {\n event.setCancelled(true);\n }\n }\n }\n\n if (event.isCancelled()) {\n // Even though the event is cancelled, the player will end up\n // facing the same direction as the horse. Restore the player's\n // original look direction.\n if (player.getVehicle() == null) {\n player.teleport(playerLoc);\n }\n }\n }",
"List<Horse> getAllHorses();",
"public static int bits(AbstractHorse abstractHorse) {\n int equip = 0;\n if (abstractHorse instanceof ChestedHorse) {\n if (((ChestedHorse) abstractHorse).isCarryingChest()) {\n equip |= HorseEquipment.CHEST;\n }\n }\n\n if (abstractHorse instanceof Horse) {\n HorseInventory inv = (HorseInventory) abstractHorse.getInventory();\n if (inv.getSaddle() != null && inv.getSaddle().getType() == Material.SADDLE) {\n equip |= HorseEquipment.SADDLE;\n }\n if (inv.getArmor() != null) {\n if (inv.getArmor().getType() == Material.IRON_HORSE_ARMOR) {\n equip |= HorseEquipment.IRON_HORSE_ARMOUR;\n } else if (inv.getArmor().getType() == Material.GOLDEN_HORSE_ARMOR) {\n equip |= HorseEquipment.GOLDEN_HORSE_ARMOUR;\n } else if (inv.getArmor().getType() == Material.DIAMOND_HORSE_ARMOR) {\n equip |= HorseEquipment.DIAMOND_HORSE_ARMOUR;\n }\n }\n } else if (abstractHorse instanceof Donkey ||\n abstractHorse instanceof Mule) {\n Inventory inv = abstractHorse.getInventory();\n ItemStack saddleItem = inv.getItem(0);\n if (saddleItem != null && saddleItem.getType() == Material.SADDLE) {\n equip |= HorseEquipment.SADDLE;\n }\n } else if (abstractHorse instanceof SkeletonHorse ||\n abstractHorse instanceof ZombieHorse) {\n Inventory inv = abstractHorse.getInventory();\n if (inv.contains(Material.SADDLE)) {\n equip |= HorseEquipment.SADDLE;\n }\n } else if (abstractHorse instanceof Llama) {\n Llama llama = (Llama) abstractHorse;\n LlamaInventory inv = llama.getInventory();\n ItemStack item = inv.getDecor();\n if (item != null) {\n DyeColor colour = CARPET_COLOURS.get(item.getType());\n if (colour != null) {\n equip |= HorseEquipment.PACK | ((colour.ordinal() & 0xF) << PACK_SHIFT);\n }\n }\n }\n return equip;\n }",
"public int getHorsePower() {\n\t\treturn horsePower;\n\t}",
"public void setHorsePower(int horsePower) {\n\t\tthis.horsePower = horsePower;\n\t}",
"@Override\n public String setChosenHorse(int i) {\n chosenHorse = mounts.get(i - 1);\n return chosenHorse.getName();\n }",
"public Sheep()\n {\n super(\"Sheep\",3,2,0); \n \n // tagline = \"Whatever\";\n maxHealth = 5;\n currentHealth = maxHealth;\n equip(new Cloth());\n equip(new SheepClaws());\n \n \n \n engaged = false;\n aggression = 1;\n special = 0;\n hostileRange = 2;\n }",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n public void onEntityDeath(EntityDeathEvent event) {\n Entity entity = event.getEntity();\n if (Util.isTrackable(entity)) {\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n SavedHorse savedHorse = DB.findHorse(abstractHorse);\n if (savedHorse != null) {\n DB.removeHorse(savedHorse);\n\n String passengerName = \"\";\n Entity passenger = Util.getPassenger(abstractHorse);\n if (passenger != null) {\n passengerName = passenger instanceof Player ? ((Player) passenger).getName()\n : passenger.toString();\n }\n String deathCause = (abstractHorse.getKiller() == null ? \"the environment\" : abstractHorse.getKiller().getName());\n\n StringBuilder message = new StringBuilder();\n message.append(\"Horse died \");\n message.append(abstractHorse.getUniqueId().toString());\n message.append(\": \");\n\n AnimalTamer owner = abstractHorse.getOwner();\n if (owner instanceof Player) {\n message.append(\"Owner: \").append(owner.getName());\n\n // Tell the owner if someone else was riding.\n if (!owner.equals(passenger)) {\n StringBuilder horseDescription = new StringBuilder(\"Your \");\n horseDescription.append(abstractHorse.getCustomName() != null ? abstractHorse.getCustomName()\n : Util.entityTypeName(abstractHorse));\n horseDescription.append(\" (\");\n horseDescription.append(Util.limitString(abstractHorse.getUniqueId().toString(), 12));\n horseDescription.append(\") \");\n\n ((Player) owner).sendMessage(ChatColor.RED + horseDescription.toString() + \" has died due to \" + deathCause +\n (passengerName.isEmpty() ? \".\" : \" while being ridden by \" + passengerName + \".\"));\n }\n } else {\n message.append(\"No owner\");\n }\n\n message.append(\". Appearance: \").append(savedHorse.getAppearance());\n message.append(\". Equipment: \").append(HorseEquipment.description(savedHorse.getEquipment()));\n if (Util.isTrainable(abstractHorse)) {\n message.append(\". Speed: \").append(CONFIG.SPEED.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getDistanceTravelled()).append(\")\");\n message.append(\". Health: \").append(CONFIG.HEALTH.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getNuggetsEaten()).append(\")\");\n message.append(\". Jump: \").append(CONFIG.JUMP.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getDistanceJumped()).append(\")\");\n } else if (abstractHorse instanceof Llama) {\n Llama llama = (Llama) abstractHorse;\n message.append(\". Strength: \").append(llama.getStrength());\n message.append(\". Speed: \").append(CONFIG.SPEED.toDisplayValue(CONFIG.SPEED.getAttribute(abstractHorse)));\n message.append(\". Health: \").append(CONFIG.HEALTH.toDisplayValue(CONFIG.HEALTH.getAttribute(abstractHorse)));\n message.append(\". Jump: \").append(CONFIG.JUMP.toDisplayValue(CONFIG.JUMP.getAttribute(abstractHorse)));\n }\n message.append(\". Cause: \").append(deathCause);\n message.append(\". Passenger: \").append(passengerName.isEmpty() ? \"<none>\" : passengerName);\n message.append(\". Location: \").append(Util.formatLocation(event.getEntity().getLocation()));\n message.append(\".\");\n\n getLogger().info(message.toString());\n }\n }\n }",
"public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }",
"@Test\n\tpublic void whenHorseMovedInRightDirectionThanDirectionCellFullOfHorse() {\n\t\tCell[][] cells = new Cell[8][8];\n\t\tfor (int x = 0; x < 8; x++) {\n\t\t\tfor (int y = 0; y < 8; y++) {\n\t\t\t\tcells[x][y] = new Cell(x, y);\n\t\t\t}\n\t\t}\n\t\tFigure[] figures = {new Horse(cells[4][4])};\n\t\tBoard board = new Board(cells, figures);\n\t\t// Horse moving downleft.\n\t\tboard.move(board.getCell(4, 4), board.getCell(3, 6));\n\t\tassertThat(figures[0].getPosition(), is(cells[3][6]));\n\t\t// Horse moving upright.\n\t\tboard.move(board.getCell(3, 6), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t\t// Horse moving downright.\n\t\tboard.move(board.getCell(4, 4), board.getCell(5, 6));\n\t\tassertThat(figures[0].getPosition(), is(cells[5][6]));\n\t\t// Horse moving upleft.\n\t\tboard.move(board.getCell(5, 6), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t\t// Horse moving leftdown.\n\t\tboard.move(board.getCell(4, 4), board.getCell(2, 5));\n\t\tassertThat(figures[0].getPosition(), is(cells[2][5]));\n\t\t// Horse moving rightup.\n\t\tboard.move(board.getCell(2, 5), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t\t// Horse moving leftup.\n\t\tboard.move(board.getCell(4, 4), board.getCell(2, 3));\n\t\tassertThat(figures[0].getPosition(), is(cells[2][3]));\n\t\t// Horse moving rightdown.\n\t\tboard.move(board.getCell(2, 3), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t}",
"@Test\n\tpublic void whenHorseMoveThrowAnotherFigureThanOk() {\n\t\tCell[][] cells = new Cell[8][8];\n\t\tfor (int x = 0; x < 8; x++) {\n\t\t\tfor (int y = 0; y < 8; y++) {\n\t\t\t\tcells[x][y] = new Cell(x, y);\n\t\t\t}\n\t\t}\n\t\tFigure[] figures = {new Horse(cells[4][4]),\n\t\t\t\t\t\t\tnew Tura(cells[2][5]),\n\t\t\t\t\t\t\tnew Tura(cells[3][5]),\n\t\t\t\t\t\t\tnew Tura(cells[4][5]),\n\t\t\t\t\t\t\tnew Tura(cells[5][5]),\n\t\t\t\t\t\t\tnew Tura(cells[6][5])};\n\t\tBoard board = new Board(cells, figures);\n\t\tassertThat(board.move(cells[4][4], board.getCell(3, 6)), is(true));\n\t}",
"public void collide(SteelHorse s)\n\t{\n\t\ts.collide(this);\n\t}",
"void heal(Heros h);",
"public void applyHorn() {\n\t\t\r\n\t}",
"abstract int add(boolean highsurf, boolean foggy, String eat);",
"boolean addHardVictory();",
"@Override\n\tpublic void laysEgg() {\n\t\t\n\t}",
"@EventHandler(ignoreCancelled = true)\n public void onPlayerMove(PlayerMoveEvent event) {\n Player player = event.getPlayer();\n Entity vehicle = player.getVehicle();\n if (!Util.isTrackable(vehicle)) {\n return;\n }\n\n AbstractHorse abstractHorse = (AbstractHorse) vehicle;\n if (abstractHorse.isInsideVehicle()) {\n // The horse cannot be trained by moving it around in a vehicle.\n return;\n }\n PlayerState playerState = getState(player);\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n if (Util.isTrainable(abstractHorse)) {\n // NOTE: call onRidden() before observe() for correct dehydration.\n savedHorse.onRidden(_tickCounter, abstractHorse);\n\n // Compute distance moved and update speed or jump depending on\n // whether the horse was on the ground.\n double tickDistance = playerState.getTickHorizontalDistance();\n if (tickDistance > 0 && !savedHorse.isDehydrated()) {\n // Sanity check: if the distance is so large as to be\n // unattainable in one tick, then don't apply the distance to\n // the horse and log in console. Ratio to max speed determined\n // empirically.\n double maxSpeed = CONFIG.SPEED.getValue(savedHorse.getSpeedLevel() + 1);\n if (tickDistance > CONFIG.SPEED_LIMIT * maxSpeed) {\n String ownerClause = (abstractHorse.getOwner() != null ? abstractHorse.getOwner().getName() + \"'s\"\n : \"Unowned\");\n getLogger().warning(ownerClause + \" horse \" + abstractHorse.getUniqueId() +\n \" moved impossibly fast for its level; ratio: \" + (tickDistance / maxSpeed));\n } else {\n // Underwater training (of skeleton horses) counts as\n // speed rather than jump training.\n boolean underWater = Util.isWaterlogged(abstractHorse.getLocation().getBlock());\n Ability ability = (abstractHorse.isOnGround() || underWater) ? CONFIG.SPEED\n : CONFIG.JUMP;\n ability.setEffort(savedHorse, ability.getEffort(savedHorse) + tickDistance);\n if (ability.hasLevelIncreased(savedHorse, abstractHorse)) {\n notifyLevelUp(player, savedHorse, abstractHorse, ability);\n }\n }\n }\n\n // Update stored location to compute distance in the next tick.\n playerState.updateRiddenHorse();\n }\n\n // Observe the AbstractHorse's new location.\n DB.observe(savedHorse, abstractHorse);\n\n // If the horse is owned and permission to ride the horse has been\n // retracted, eject the rider.\n if (abstractHorse.getOwner() != null && !savedHorse.canBeAccessedBy(player) && !playerState.isBypassEnabled()) {\n player.sendMessage(ChatColor.GOLD + \"You no longer have permission to ride this \" + Util.entityTypeName(abstractHorse) + \".\");\n abstractHorse.eject();\n }\n }",
"public static void main(String[] args) {\n\t\tList<Horse>horses=new ArrayList<>();\n\t\tfor(int i=0;i<8;i++){\nHorse h =new Horse();\nhorses.add(h);\nh.start();\n\t}\n\n}",
"private void paintHorse(PositionInBoard position){\n Image image = new ImageIcon(this.getClass().getResource(\"/main/chessMovement/images/10_Silueta_Caballo_Rojo_by_DG-RA.png\")).getImage();\n ImageIcon icon = new ImageIcon(image);\n board[position.row()][position.column()].setIcon(icon);\n }",
"private void initHorseAndHome() {\n\t\thorses=new Horse[48];\n\t\thomes=new AnchorPane[4];\n\t\thomes[0]=h1;\n\t\thomes[1]=h2;\n\t\thomes[2]=h3;\n\t\thomes[3]=h4;\n\t}",
"boolean addEasyVictory();",
"public void hat();",
"@Override\n\tpublic void eggHatches() {\n\t\t\n\t}",
"@Override\n public void addHSV(float H, float S, float V) {\n\n }",
"public Shiv(){\n super(\"Shiv\",25);\n }",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"public char Get_Character() {\n\n\n\n /* Hex equivalent of Morse code is formed by left-shifting */\n /* 1 or 0 into hex_code. The 0x01 initial value marks the */\n /* beginning of the bit field, 1 being a dit and 0 a dash. */\n\n /* Get the level of a fragment from PLL detector. A fragment */\n /* is a small fraction of a morse code element, there are from */\n /* 8 to 30 frags/element depending on Morse speed (30-10 w.p.m) */\n while(true) {\n\t/* Decide on a mark or space fragment */\n\t/* with a hysterisis on the threshold */\n\tGet_Fragment();\n\n\t/* Increment mark or space count */\n\tif( isFlagSet(MARK_TONE) )\n\t mark_cnt++;\n\telse\n\t space_cnt++;\n\n\t/* If a mark element is too long, limit count */\n\tif( mark_cnt > unit_elem * 8 ) mark_cnt = unit_elem * 8;\n\n\t/* If a space element is too long, limit count */\n\tif( space_cnt > unit_elem * 16 ) space_cnt = unit_elem * 16;\n\n\t/* Process mark and space element counts to decode Morse */\n\tswitch( new_context )\n\t{\n\t case MARK_SIGNAL: /* Process mark element */\n\n\t\t/* If fragment is a mark */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t{\n\t\t /* If mark element is too long */\n\t\t /* reset and wait for a space */\n\t\t if( mark_cnt >= (unit_elem * 8) )\n\t\t {\n\t\t\t/* Clear space counter */\n\t\t\tspace_cnt = 0;\n\n\t\t\t/* Clear hex character code */\n\t\t\thex_code = 0x01;\n\n\t\t\t/* Wait for a space fragment */\n\t\t\tnew_context = WAIT_FOR_SPACE;\n\n\t\t } /* if( mark_cnt >= unit_elem * 8 ) */\n\n\t\t} /* if( isFlagSet(MARK_TONE) ) */\n\t\telse\n\t\t{\n\t\t /* Clear space count to 1 */\n\t\t space_cnt = 1;\n\n\t\t /* Switch to processing inter-element space */\n\t\t new_context = ELEM_SPACE;\n\t\t}\n\n\t\tbreak;\n\n\t case ELEM_SPACE: /* Process inter-element space */\n\n\t\t/* If space reaches 1/2 units its an inter-element space */\n\t\tif( ((space_cnt * 2) >= unit_elem) ||\n\t\t\tisFlagSet(MARK_TONE) )\n\t\t{\n\t\t /* If mark is < 2 units its a dit else a dash */\n\t\t if( (mark_cnt < unit_elem * 2) )\n\t\t {\n\t\t\t/* Insert dit and increment mark frag and elem count */\n\t\t\thex_code = (hex_code << 1) | 0x01;\n\t\t\tmark_frag_cnt += mark_cnt;\n\t\t\tmark_elem_cnt += 1; /* A dit is 1 element long */\n\t\t }\n\t\t else\n\t\t {\n\t\t\t/* Insert dash and increment mark frag and elem count */\n\t\t\thex_code <<= 1;\n\t\t\tmark_frag_cnt += mark_cnt;\n\t\t\tmark_elem_cnt += 3; /* A dash is 3 elements long */\n\t\t } /* if( mark_cnt < unit_elem * 2 ) */\n\n\t\t /* Clear mark count */\n\t\t mark_cnt = 0;\n\n\t\t /* Wait for inter-char space count */\n\t\t if( isFlagClear(MARK_TONE) )\n\t\t\tnew_context = CHAR_SPACE;\n\t\t else\n\t\t {\n\t\t\tspace_cnt = 0;\n\t\t\tnew_context = MARK_SIGNAL;\n\t\t }\n\n\t\t} /* if( (space_cnt * 2) >= unit_elem || ) */\n\n\t\tbreak;\n\n\t case CHAR_SPACE: /* Wait for inter-char space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t /* If space reaches 2 units its inter-character */\n\t\t if( space_cnt >= (unit_elem * 2) )\n\t\t {\n\t\t\t/* Switch to waiting for inter-word space */\n\t\t\tnew_context = WAIT_WORD_SPACE;\n\n\t\t\t/* Return decoded Morse char */\n char c = Hex_to_Ascii(hex_code);\n\n /* Clear hex character code */\n\t\t\thex_code = 0x01;\n\n return c;\n\t\t }\n\n\t\t} /* if( isFlagClear(MARK_TONE) ) */\n\t\telse /* Its the end of inter-element space */\n\t\t{\n\t\t /* Count up space frags and elements */\n\t\t space_frag_cnt += space_cnt;\n\t\t space_elem_cnt++; /* Inter-element space */\n\n\t\t /* Clear space cnt and process marks */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WAIT_WORD_SPACE: /* Wait for an inter-word space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t /* If space count reaches 5, its word space */\n\t\t if( space_cnt >= (unit_elem * 5) )\n\t\t\tnew_context = WORD_SPACE;\n\n\t\t} /* if( isFlagClear(MARK_TONE) ) */\n\t\telse /* Its the end of inter-character space */\n\t\t{\n\t\t /* Adapt to incoming signal */\n\t\t Adapt_Decoder();\n\n\t\t /* Switch to processing mark signal */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WORD_SPACE: /* Process Inter-word space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t if( space_cnt >= (unit_elem * 7) )\n\t\t {\n\t\t\tnew_context = WAIT_FOR_MARK;\n\t\t\treturn( ' ' );\n\t\t }\n\t\t}\n\t\telse\n\t\t{\n\t\t /* Adapt to incoming signal */\n\t\t Adapt_Decoder();\n\n\t\t /* Switch to processing mark signal */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t return( ' ' );\n\t\t}\n\n\t case WAIT_FOR_MARK: /* Process no-signal space */\n\n\t\t/* If fragment is mark switch to processing marks */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t{\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WAIT_FOR_SPACE: /* Wait for space after long dash */\n\n\t\t/* If fragment is space, switch to counting space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t space_cnt = 1;\n\t\t mark_cnt = 0;\n\t\t new_context = WAIT_FOR_MARK;\n\t\t}\n\n\t\tbreak;\n\n\t default: /* Set context if none */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t new_context = MARK_SIGNAL;\n\t\telse\n\t\t new_context = WAIT_FOR_MARK;\n\n\t} /* End of switch( new_context ) */\n\n } /* while(1) */\n\n\n }",
"@Override\n public void summonHorsesToPaddock(){\n rl.lock();\n try{\n System.out.println(\"B : Trying to summon horse...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.ANNOUNCING_NEXT_RACE;\n //change log\n log.setBrokerState(MyThreadBroker.Broker_States.ANNOUNCING_NEXT_RACE);\n log.changeLog();\n keep_waiting = false;\n stable_horses.signal(); \n }finally{\n rl.unlock();\n }\n \n }",
"@Override\r\n\tpublic void playSoldierCard() {\n\t\t\r\n\t}",
"private void gameOver() {\n\t\t\n\t}",
"protected void handleFeeding(AbstractHorse abstractHorse, SavedHorse savedHorse, Player player) {\n // Handle health training only if the event was not cancelled.\n ItemStack foodItem = player.getEquipment().getItemInMainHand();\n int nuggetValue = getNuggetValue(foodItem);\n if (CONFIG.DEBUG_EVENTS && savedHorse.isDebug()) {\n getLogger().info(\"Nugget value: \" + nuggetValue);\n }\n\n if (nuggetValue > 0) {\n // For undead horses, they take the food right away.\n if (Util.isUndeadHorse(abstractHorse)) {\n foodItem.setAmount(foodItem.getAmount() - 1);\n player.getEquipment().setItemInMainHand(foodItem);\n consumeGoldenFood(savedHorse, abstractHorse, nuggetValue, player);\n\n // And let's simulate healing with golden food too.\n // Golden apples (both types) heal (10); carrots heal 4.\n int foodValue = (foodItem.getType() == Material.GOLDEN_APPLE) ? 10 : 4;\n AttributeInstance maxHealth = abstractHorse.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n abstractHorse.setHealth(Math.min(maxHealth.getValue(), abstractHorse.getHealth() + foodValue));\n\n } else {\n // For other types of horses, detect whether the food\n // was consumed by running a task in the next tick.\n Bukkit.getScheduler().runTaskLater(this, new GoldConsumerTask(\n player, abstractHorse, foodItem, nuggetValue, player.getInventory().getHeldItemSlot()), 0);\n }\n } else if (foodItem != null && foodItem.getType() == Material.WATER_BUCKET) {\n // Handle rehydration.\n if (!savedHorse.isFullyHydrated()) {\n player.getEquipment().setItemInMainHand(new ItemStack(Material.BUCKET, 1));\n savedHorse.setHydration(savedHorse.getHydration() + EasyRider.CONFIG.BUCKET_HYDRATION);\n Location loc = abstractHorse.getLocation();\n loc.getWorld().playSound(loc, Sound.ENTITY_GENERIC_DRINK, SoundCategory.NEUTRAL, 2.0f, 1.0f);\n }\n\n if (savedHorse.isFullyHydrated()) {\n player.sendMessage(ChatColor.GOLD + savedHorse.getMessageName() + \" is no longer thirsty.\");\n } else {\n player.sendMessage(ChatColor.GOLD + savedHorse.getMessageName() + \" is still thirsty.\");\n }\n }\n }",
"public PiecePenguin layEgg(){\n // if this piece hasn't laid max eggs yet - allow it create new piece\n if( this.numEggs < MAX_EGGS){\n this.incrementNumEggs();\n // this creates a new piece that has not laid any eggs\n // and has not attacked any pieces yet it will belong to this team so pass in Color\n return new PiecePenguin(this.symbol, this.color,0,0);\n }\n else{\n return null;\n }\n }",
"public void AddCardToHumanHand(){\n //Add the first card to the human hand\n handHuman.add(deck.get(0));\n\n //Remove card from deck\n deck.remove(0);\n }",
"private void harm(){\n\t\t// grab the selected ID\n\t\tfinal long rowID = getSelectedRowID();\n\n\t\t// reset the selection\n\t\tresetSelection();\n\n\t\t// show the dialog\n\t\tQuickDialogs.showHarmDialog(getActivity(), new IInputCallback() {\n\n\t\t\t@Override\n\t\t\tpublic void onInput(String input) {\n\t\t\t\tint damage;\n\t\t\t\t// convert the string to int\n\t\t\t\ttry{\n\t\t\t\t\tdamage = Integer.valueOf(input);\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\t// TODO display incorrect input dialog\n\t\t\t\t\tdamage = 0;\n\t\t\t\t}\n\n\t\t\t\t// deal dat damage!\n\t\t\t\tEncountersTable.changeHP(GameSQLDataSource.getDatabase(getActivity()), rowID, -damage);\n\n\t\t\t\trefreshList();\n\t\t\t}\n\t\t});\n\t}",
"public void showHue()\r\n {\r\n\tshowHue(\"Hue\");\r\n }",
"public void shear(double shx, double shy)\r\n\t{\r\n\t\t// System.out.println(\"shear\");\r\n\t}",
"int getHair();",
"private String decideLetter(Cell c) {\n String s = \"\";\n if (!c.getHasBoat() && !c.getShotAt()) {\n s = \"-\";\n } else if (!c.getHasBoat() && c.getShotAt()) {\n s = \"M\";\n } else if (c.getHasBoat() && !c.getShotAt()) {\n s = \"B\";\n } else {\n s = \"H\";\n }\n return s;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tHorse h1 = new Horse(\"H1\");\r\n\t\th1.start();\r\n\t\tHorse h2 = new Horse(\"H2\");\r\n\t\th2.start();\r\n\t\tSystem.out.println(\"main end\");\r\n\t}",
"public void gameOver() {\n\t}",
"@EventHandler\n public void onInventoryClick(InventoryClickEvent event) {\n if (getDisguiseProvider() == null) {\n return;\n }\n\n InventoryHolder holder = event.getInventory().getHolder();\n if (!(holder instanceof AbstractHorse) ||\n !(event.getWhoClicked() instanceof Player)) {\n return;\n }\n\n // Exclude unsupported AbstractHorse subtypes.\n if (holder instanceof Llama) {\n return;\n }\n\n ItemStack oldSaddle = event.getInventory().getItem(0);\n Bukkit.getScheduler().runTaskLater(this, () -> {\n // Require that the horse has a human passenger before applying\n // a disguise. Note that the player doing the inventory editing\n // is not necessarily the rider.\n AbstractHorse abstractHorse = (AbstractHorse) holder;\n Player rider = null;\n for (Entity passenger : abstractHorse.getPassengers()) {\n if (passenger instanceof Player) {\n rider = (Player) passenger;\n break;\n }\n }\n if (rider == null) {\n return;\n }\n\n // Check that the saddle item has changed to silence unnecessary\n // disguise messages caused by players clicking in the inventory of\n // a disguised horse.\n ItemStack newSaddle = event.getInventory().getItem(0);\n if ((oldSaddle == null && newSaddle != null) ||\n (oldSaddle != null && !oldSaddle.equals(newSaddle))) {\n String encodedDisguise = SpecialSaddles.getSaddleEncodedDisguise(abstractHorse);\n if (encodedDisguise == null) {\n getDisguiseProvider().removeDisguise(abstractHorse);\n } else {\n SpecialSaddles.applySaddleDisguise(abstractHorse, rider, encodedDisguise, false, true);\n }\n }\n }, 1);\n }",
"private void addNewHead() {\t\t\n\t\tif(currentDirection == Direction.RIGHT) {\n\t\t\tsnake.addLast(new HeadComponent(\n\t\t\t\t\tsnake.getLast().getX() + SnakeComponent.imageSize, \n\t\t\t\t\tsnake.getLast().getY(),\n\t\t\t\t\tcurrentDirection\n\t\t\t));\n\t\t\tsnakeDirection = Direction.RIGHT;\n\t\t\t\n\t\t} else if(currentDirection == Direction.LEFT) {\n\t\t\tsnake.addLast(new HeadComponent(\n\t\t\t\t\tsnake.getLast().getX() - SnakeComponent.imageSize, \n\t\t\t\t\tsnake.getLast().getY(), \n\t\t\t\t\tcurrentDirection\n\t\t\t));\n\t\t\tsnakeDirection = Direction.LEFT;\n\t\t\t\n\t\t} else if(currentDirection == Direction.DOWN) {\n\t\t\tsnake.addLast(new HeadComponent(\n\t\t\t\t\tsnake.getLast().getX(), \n\t\t\t\t\tsnake.getLast().getY()+SnakeComponent.imageSize, \n\t\t\t\t\tcurrentDirection\n\t\t\t));\n\t\t\tsnakeDirection = Direction.DOWN;\n\t\t\t\n\t\t} else if(currentDirection == Direction.UP) {\n\t\t\tsnake.addLast(new HeadComponent(\n\t\t\t\t\tsnake.getLast().getX(), \n\t\t\t\t\tsnake.getLast().getY()-SnakeComponent.imageSize,\n\t\t\t\t\tcurrentDirection\n\t\t\t));\n\t\t\tsnakeDirection = Direction.UP;\n\t\t}\n\t}",
"public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n g.setColor(Color.YELLOW);\n g.fillOval(0, 0, H-1, H-1);\n g.setColor(Color.BLACK);\n g.drawOval(0, 0, H-1, H-1);\n if (gameLost) //Frowny face\n {\n g.drawArc(H/4, 3*H/5, H/2, H/2, SMILE_START, SMILE_LENGTH);\n Font f = g.getFont();\n g.setFont(new Font(f.getName(), f.getStyle(), 2*f.getSize()/3));\n g.drawString(\"x\", H/4 - 1, H/4 + DEAD_EYE_SIZE);\n g.drawString(\"x\", 3*H/4 - DEAD_EYE_SIZE + 1, H/4 + DEAD_EYE_SIZE);\n g.setFont(f);\n }\n else //Smiley face\n {\n g.drawArc(H/4, H/4, H/2, H/2, -SMILE_START, -SMILE_LENGTH);\n if (gameWon) //with sunglasses\n {\n g.fillOval(H/4 - 1, H/4, GLASSES_WIDTH, GLASSES_HEIGHT);\n g.fillOval(3*H/4 - GLASSES_WIDTH + 1, H/4, GLASSES_WIDTH, GLASSES_HEIGHT);\n g.drawLine(H/4 - 1, H/4 + GLASSES_HEIGHT/2, 1, H/4);\n g.drawLine(3*H/4 + 1, H/4 + GLASSES_HEIGHT/2, H-2, H/4);\n }\n else //without sunglasses\n {\n g.fillOval(H/4, H/4, EYE_SIZE, EYE_SIZE);\n g.fillOval(3*H/4 - EYE_SIZE, H/4, EYE_SIZE, EYE_SIZE);\n }\n }\n }",
"void convertWordToMorse(String word) {\n StringBuilder sb = new StringBuilder();\n for (char letter: word.toCharArray()) {\n String strLetter = Character.toString(letter);\n sb.append(morseMap.get(strLetter));\n }\n String morse = sb.toString();\n if (dictionary.get(morse)==null) {\n dictionary.put(morse, new ArrayList<>());\n }\n dictionary.get(morse).add(word);\n }",
"protected void treatSpeakers()\n\t{\n\t\tint nHP = (Integer) results[0];\n\t\tdouble Xdist = (Double)results[1];\n\t\tdouble Ydist = (Double)results[2];\n\t\tdouble shift = (Double)results[3];\n\t\tfloat height = (Float) results[4];\n\t\tint numHP1 = (Integer) results[5];\n\t\tboolean stereoOrder = (Boolean)results[6];\n\t\tint lastHP = (replace ? 0 : gp.speakers.size()-1);\n\t\tint numHP;\n\t\tint rangees = (nHP / 2);\n\t\tfloat X, Y;\n\t\tif(replace) gp.speakers = new Vector<HoloSpeaker>(nHP);\n\t\tnumHP1 = (evenp(nHP) ? numHP1 : 1 + numHP1);\n\t\t// Creation des HPs en fonction de ces parametres\n\t\tfor (int i = 1; i <= rangees; i++)\n\t\t\t{\n\t\t\t\t// on part du haut a droite, on descend puis on remonte\n\t\t\t\t\n\t\t\t\tX = (float) (-Xdist);\n\t\t\t\tY = (float) (shift + (Ydist * (rangees - 1) * 0.5) - (Ydist * (i - 1)));\n\t\t\t\tif(stereoOrder)\n\t\t\t\t\tnumHP = numHP1+(i-1)*2;\n\t\t\t\telse\n\t\t\t\t\tnumHP = (numHP1 + rangees + rangees - i) % nHP + 1;\n\t\t\t\tgp.speakers.add(new HoloSpeaker(X, Y, height, numHP+lastHP,-1));\n\t\t\t\t\n\t\t\t\tX = (float) (Xdist);\n\t\t\t\tY = (float) (shift + (Ydist * (rangees - 1) * 0.5) - (Ydist * (i - 1)));\n\t\t\t\tif(stereoOrder)\n\t\t\t\t\tnumHP = numHP1+(i-1)*2+1;\n\t\t\t\telse\n\t\t\t\t\tnumHP = (numHP1 + i - 1) % nHP + 1;\n\t\t\t\tgp.speakers.add(new HoloSpeaker(X, Y, height, numHP+lastHP,-1));\n\t\t\t\tinc();\n\t\t\t}\n\n\t\t\tif (!evenp(nHP))\n\t\t\t{\n\t\t\tX = 0;\n\t\t\tY = (float) (shift + (Ydist * (rangees - 1) * 0.5));\n\t\t\tnumHP = ((numHP1 - 1) % nHP) + 1;\n\t\t\tgp.speakers.add(new HoloSpeaker(X, Y, height, numHP+lastHP,-1));\n\t\t}\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t\tif(e.getSource()==tf||e.getSource()==bt){\r\n\t\t\t//텍스트필드에 입력하는 말의 개수만큼 말을 만드는 작업\r\n\t\t\t//---> 버튼을 누르거나 텍스트필드에서 Enter를 누르면 수행\r\n\t\t\tif(pp!=null){\r\n\t\t\t\tthis.remove(pp);\r\n\t\t\t}\r\n\t\t\tint x = Integer.parseInt(tf.getText().trim());\r\n\t\t\tpp = new Panel();\r\n\t\t\tpp.setLayout(new GridLayout(x,1,3,3));\r\n\t\t\thorse = new Horse[x];\r\n\t\t\tfor (int i = 0; i < x; i++) {\r\n\t\t\t\thorse[i] = new Horse();\r\n\t\t\t\tpp.add(horse[i]);\r\n\t\t\t}\r\n\t\t\tthis.add(\"Center\",pp);\r\n\t\t\tthis.validate();//화면을 재구성\r\n\t\t}else if(e.getSource()==bt1){\r\n\t\t\tfor (int i = 0; i < horse.length; i++) {\r\n\t\t\t\thorse[i].startThread();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void addHand(Hand h)\n {\n hand.add(h);\n }",
"public static void handleHunterKit(Player player) {\n\t\t\n\t}",
"private void strengthen(float hp) {\n this.hp += hp;\n if (this.hp > MAX_HP) {\n this.hp = MAX_HP;\n }\n }",
"public void setupGame() {\n\t\t// Re-spawn the appropriate number of sheep\n\t\tint numSheep = 31;\n\t\t\n\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\tnumSheep = 1;\n\t\t}\n\t\t\n\t\t// It takes half the sheep to win.\n\t\t_scoreToWin = numSheep / 2;\n\t\tp(\"It takes \" + _scoreToWin + \" sheep to win.\");\n\t\t\n\t\t_hasBeenWon = false;\n\t\t\n\t\t// Non-infrastructural entities.\n\t\t//////////////////////////\n\t\t\n\t\t// Don't create this stuff if I'm replaying.\n\t\tint mod = 1;\n\t\tfor (int i = 0; i < numSheep; i++) {\n\t\t\t//int x = _generator.nextInt(40) - 20;\n\t\t\t//int z = _generator.nextInt(80) - 40;\n\t\t\tmod *= -1;\n\t\t\tint x = i/2 * mod;\n\t\t\tint z = 0;\n\n\t\t\tSheep s = new Sheep(\"sheep-\" + i + \"[\" + _sheepID + \"]\", x, 2, z);\n\t\t\t\n\t\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\t\ts.setBehaviorActive(false);\n\t\t\t}\n\t\t\t\n\t\t\t_sheepID++;\n\t\t}\n\t\t\n\t\t// Add a wubble for testing.\n\t\tif (!_isJimboSpawned && !SheepPhysicsState.PRODUCTION) {\n\t\t\tSystem.out.println(\"Adding Jimbo.\");\n\t\t\t_isJimboSpawned = true;\n\t\t\taddWubble(\"Jimbo\", (short)100, (Integer)1);\n\t\t\taddSidekick(\"Jimbo\");\n\t\t\t//addWubble(\"Bimbo\", (short)101, (Integer)0);\n\t\t}\n\t\t\n\t\t//////////////////////////\n\n\t\t// Add some wrenches in the appropriate spots.\n\t\tnew Wrench(\"blueWrench1\", -8, 5, -20);\n\t\tnew Wrench(\"blueWrench2\", 8, 5, -20);\n\t\tnew Wrench(\"redWrench1\", -8, 5, 20);\n\t\tnew Wrench(\"redWrench2\", 8, 5, 20);\n\t\t\n\t\t// Save the start of the me.\n\t\t_gameStart = System.currentTimeMillis();\n\t\tSystem.out.println(\"Started game at \" + _gameStart);\n\t\t\n\t\t// Make some predicates.\n\t\t//Predicate p = new Predicate(\"baseClassPred\");\n\t\t//GoPred g = new GoPred(\"derivedGoClass\", 1);\n\t\t\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.SPEEDY, new Vector3f(0, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpE\", -1, PowerUpInfo.PowerUpType.EATER, new Vector3f(2, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.STICKY, new Vector3f(2, 0.4f, 2));\n\t}",
"public void bewegeKamel(Charakter charakter);",
"protected void addOpponentsToInitiativeTable ()\n {\n\tTerm.echo(\" Opponents \\n\");\n\tjava.util.Iterator it = \n\t CombatSession.getInstance().getOpponents().iterator();\n\twhile (it.hasNext())\n\t{\n\t Being b = (Being)it.next();\n\t Term.echo(\" '\"+b.getName()+\"'\");\n\n\t int dRoll = burningbox.org.dsh.Utils.throwD20();\n\t Term.echo(\" rolls a \"+dRoll);\n\n\t int initiativeScore = dRoll + b.computeInitiativeModifier();\n\t Term.echo(\" that makes a\\t\\t\"+initiativeScore+\"\\n\");\n\n\t b.setCurrentInitiative(initiativeScore);\n\n\t CombatSession.getInstance().getInitiativeTable().add(b);\n\n\t log.info(b.getName()+\" ini \"+initiativeScore);\n\t}\n }",
"private Egg(String name, int turnsToHatch, int hatchEarnings, Dinosaur babyDinosaur) {\n super(name, 'O', true);\n this.turnsToHatch = turnsToHatch;\n this.hatchEarnings = hatchEarnings;\n this.babyDinosaur = babyDinosaur;\n this.age = 0;\n }",
"void gameOver();",
"void gameOver();",
"public void eatHay(Hay hay) {\n raiseFoodLevel(20);\n }",
"private void addPlayerSheild() {\n this.playerShield += 1;\n }",
"@EventHandler(ignoreCancelled = true)\n public void onVehicleEnter(VehicleEnterEvent event) {\n if (!Util.isTrackable(event.getVehicle())) {\n return;\n }\n\n AbstractHorse abstractHorse = (AbstractHorse) event.getVehicle();\n Entity passenger = event.getEntered();\n if (passenger instanceof Player) {\n Player player = (Player) passenger;\n\n // During the Minecraft 1.15.2 era, Spigot reversed the ordering of\n // VehicleEnterEvent relative to PlayerJoinEvent so that the\n // former preceded the latter (players now enter their vehicles\n // before joining the server) if they logged out in a vehicle.\n addState(player);\n\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n DB.observe(savedHorse, abstractHorse);\n\n PlayerState playerState = getState(player);\n playerState.clearHorseDistance();\n\n if (!isAccessible(savedHorse, abstractHorse, player, playerState)) {\n event.setCancelled(true);\n return;\n }\n\n if (Util.isTrainable(abstractHorse)) {\n EasyRider.CONFIG.SPEED.updateAttribute(savedHorse, abstractHorse);\n }\n\n handleDrinking(abstractHorse, savedHorse, player);\n\n if (abstractHorse.getOwner() != null && !player.equals(abstractHorse.getOwner())) {\n player.sendMessage(ChatColor.GOLD + \"You are now riding \" + abstractHorse.getOwner().getName() + \"'s \" +\n Util.entityTypeName(abstractHorse) + \".\");\n }\n\n String encodedDisguise = SpecialSaddles.getSaddleEncodedDisguise(abstractHorse);\n if (encodedDisguise != null) {\n SpecialSaddles.applySaddleDisguise(abstractHorse, player, encodedDisguise, false, true);\n }\n\n if (CONFIG.DEBUG_EVENTS && savedHorse.isDebug()) {\n debug(abstractHorse, \"Vehicle enter: \" + player.getName());\n }\n }\n }",
"Hurt createHurt();",
"public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}",
"public YuanC_LuH_Sides() {\n\t\tsuper();\n\t\tmaker=\"\";\n\t\t\n\t}",
"@Override\r\n\tpublic String Eat() {\n\t\treturn \"SuperMan I Eat\";\r\n\t}",
"boolean addHardGamePlayed();",
"public void printYourself(){\n\t\tsuper.printYourself();\t// Invoke the superclass\n \t// (Animal) code\n \t// Then do Horse-specific\n \t// print work here\n\t}",
"Sheep(int health,int stomach,boolean movement,boolean child,boolean gender){\r\n super(health,stomach,movement,child,gender);\r\n \r\n }",
"@EventHandler(ignoreCancelled = true)\n public void onHorseJump(HorseJumpEvent event) {\n AbstractHorse abstractHorse = event.getEntity();\n Entity passenger = Util.getPassenger(abstractHorse);\n if (!(passenger instanceof Player)) {\n return;\n }\n\n Player player = (Player) passenger;\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n\n if (CONFIG.DEBUG_EVENTS && savedHorse.isDebug()) {\n debug(abstractHorse, \"Horse jump: \" + player.getName());\n }\n }",
"public Boolean TrashesCards();",
"public void increment() {\r\n\t\tcurrentSheeps++;\r\n\t}",
"private void makeBoss()\r\n {\r\n maxHealth = 1000;\r\n health = maxHealth;\r\n \r\n weapon = new Equip(\"Claws of Death\", Equip.WEAPON, 550);\r\n armor = new Equip(\"Inpenetrable skin\", Equip.ARMOR, 200);\r\n }",
"public void gameOver() \n {\n ScoreBoard endGame = new ScoreBoard(\"You Lose!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }",
"public abstract void explodingKittenReplaced(int playerIndex);",
"protected String getHurtSound() {\r\n\t\treturn \"mob.chicken.hurt\";\r\n\t}",
"public void heal2()\r\n {\r\n this.health = 900;\r\n Story.healText2();\r\n }",
"void addPiece(Piece piece);",
"public static boolean isHandPair(Hand h, HandScore hs) {\n\t\tboolean isPair = false;\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.SECONDCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.SECONDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.THIRDCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.SECONDCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.FOURTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.FIFTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\treturn isPair;\r\n\t}",
"public void addWeapon(CardWeapon cw)\n {\n this.weapons.add(cw);\n }",
"public void hp(Graphics g) {\n\t\tw = g.getFontMetrics().stringWidth(\"HP: \" + player.hp); //Get the width of the rendered text\n\t\tg.setColor(Color.white); //Set the colour for the text\n\t\tg.setFont(f); //Set the font for the text\n\t\tg.drawString(\"HP: \" + player.hp, WIDTH-w-25, 25); //Draw \"HP: #\" in the top right corner of the screen\n\t}",
"public Rogue() {\r\n\t\tsuper();\r\n\t\tthis.name =\"Rogue\";\r\n\t\tthis.attackPower = 50;\r\n\t\tthis.maxHP = 35;\r\n\t\tthis.hp = this.maxHP;\r\n\t}",
"int addHabit(Habit habit);",
"public void addToHeartrate(\tString hr )\r\n\t{\n\t\theartRates.add(validateInteger( hr, \"heartrate\" ) );\r\n\t}",
"public abstract void playerExploded(int playerIndex);",
"@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\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 abstract void fruitEffect(Player p);",
"@Override\n public String performSpecialEffect() {\n this.health += HEALTH_STEAL_AMOUNT;\n return \"The vampire stole a bit of health after it attacked.\";\n }",
"public int getHair() {\n return hair_;\n }",
"public void buyHullUpgrade()\n {\n if(play_state.getMoney() >= hull_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - hull_upgrade_cost);\n hull_upgrade_cost += 100;\n play_state.getDriller().addMax_health(10);\n\n }\n }",
"public Bet getApostaCavalls() {\n\t\treturn horseBet;\n\t}",
"@Override\r\n\tpublic String eat() {\n\t\treturn \"eats rats\";\r\n\t}",
"private void hatch(Location currentLocation) {\n GameWorld.getPlayer().earnEcoPoints(hatchEarnings);\n currentLocation.addActor(babyDinosaur);\n currentLocation.removeItem(this);\n }"
] | [
"0.7633066",
"0.76179874",
"0.73006016",
"0.7169758",
"0.702502",
"0.69879794",
"0.6858701",
"0.6456693",
"0.64467365",
"0.62124693",
"0.6177917",
"0.6136483",
"0.61312294",
"0.6064355",
"0.5966235",
"0.59499127",
"0.593636",
"0.5936138",
"0.58325446",
"0.58185583",
"0.58175445",
"0.57798207",
"0.5777224",
"0.57743704",
"0.57529914",
"0.573996",
"0.56849205",
"0.56472605",
"0.5554999",
"0.5523669",
"0.55214864",
"0.5473982",
"0.54600054",
"0.54206496",
"0.539643",
"0.5389934",
"0.5369308",
"0.5363307",
"0.5362866",
"0.5347021",
"0.5346307",
"0.53261995",
"0.53222996",
"0.53075",
"0.5292208",
"0.5288626",
"0.5269584",
"0.5265354",
"0.5247379",
"0.523152",
"0.5229126",
"0.5221378",
"0.52165854",
"0.5210681",
"0.52037114",
"0.51985794",
"0.51925755",
"0.5185591",
"0.5183657",
"0.51822865",
"0.5160637",
"0.5159162",
"0.5158594",
"0.5153858",
"0.5153858",
"0.5143131",
"0.51346135",
"0.5127582",
"0.5116142",
"0.51096237",
"0.5098522",
"0.5092381",
"0.5089924",
"0.5086915",
"0.50782543",
"0.5076707",
"0.5074063",
"0.50670654",
"0.5060368",
"0.5058386",
"0.50498116",
"0.50386256",
"0.502824",
"0.50263566",
"0.5024126",
"0.50219065",
"0.50210524",
"0.5019832",
"0.5018554",
"0.50181055",
"0.50178725",
"0.50168794",
"0.5009838",
"0.50092906",
"0.50067365",
"0.5000555",
"0.49967393",
"0.49945283",
"0.49892297",
"0.49821916"
] | 0.8379892 | 0 |
method required for updating horse | Horse updateHorse(Horse horse); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void thisHorse() {\n\t\tHorsesView horses = (HorsesView) manager.getPanel(Constants.H_VIEW_NAME);\n\t\tif (horses.getPhv().getAmount().isEmpty() || !horses.getPhv().getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")\n\t\t\t\t|| Float.parseFloat(horses.getPhv().getAmount()) <= 0) {\n\t\t\tnew Dialeg().setWarningText(\"You must enter a positive amount!\");\n\t\t} else {\n\t\t\thorses.getPhv().obreDialeg();\n\t\t\tif (horses.getPhv().getDialeg().getResult() == JOptionPane.OK_OPTION) {\n\t\t\t\tString name = horses.getPhv().getHorseName();\n\t\t\t\thorseBet = new Bet(Double.parseDouble(horses.getPhv().getAmount()), name);\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(horseBet));\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\thorses.getPhv().dispose();\n\t\t\t}\n\t\t}\n\t}",
"Horse addHorse(Horse horse);",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)\n public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {\n Entity entity = event.getRightClicked();\n if (!Util.isTrackable(entity)) {\n return;\n }\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n Player player = event.getPlayer();\n PlayerState playerState = getState(player);\n Location playerLoc = player.getLocation();\n\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n if (player.equals(abstractHorse.getOwner())) {\n savedHorse.setLastAccessed(System.currentTimeMillis());\n } else {\n // Horses that are not interacted with by their owner for a\n // long time are spontaneously untamed. Since the horse is\n // being interacted with, the DB entry is retained.\n if (savedHorse.isAbandoned()) {\n abstractHorse.setOwner(null);\n if (CONFIG.DEBUG_EVENTS) {\n debug(abstractHorse, \"abandoned\");\n }\n }\n }\n\n // Trap trigger horse: non-tame skeleton horse with domestication 0.\n // Domestication 0 seems to prevent taming.\n if (!abstractHorse.isTamed() && abstractHorse.getDomestication() == 0) {\n abstractHorse.setDomestication(1);\n }\n\n // Normalisation of trap horses: if they spawned tame, untame.\n if (abstractHorse.getOwner() == null && abstractHorse.isTamed()) {\n abstractHorse.setTamed(false);\n abstractHorse.setDomestication(1);\n }\n\n // Do pending trainable attribute updates resulting from /horse-swap.\n // Also fix some horses that got attributes minimised by mistake when\n // they \"spawned\" by going through a portal.\n if (Util.isTrainable(abstractHorse)) {\n savedHorse.updateAllAttributes(abstractHorse);\n }\n\n EasyRider.DB.observe(savedHorse, abstractHorse);\n\n if (playerState.hasPendingInteraction()) {\n playerState.handlePendingInteraction(event, savedHorse);\n event.setCancelled(true);\n } else {\n ItemStack item = player.getEquipment().getItemInMainHand();\n if (Util.isTrainable(abstractHorse)) {\n // Allow players to feed golden carrots to living horses that\n // they cannot access for breeding purposes. Other foods don't\n // work due to vanilla limitations.\n if (!Util.isUndeadHorse(abstractHorse) &&\n item != null && item.getType() == Material.GOLDEN_CARROT) {\n handleFeeding(abstractHorse, savedHorse, player);\n } else {\n // Prevent riding, leashing etc. of owned, locked horses.\n if (isAccessible(savedHorse, abstractHorse, player, playerState)) {\n handleFeeding(abstractHorse, savedHorse, player);\n } else {\n event.setCancelled(true);\n }\n }\n\n // Simulate taming of undead horses. Vanilla code does most of\n // the work. We just need to put the player on an untamed horse.\n if (Util.isUndeadHorse(abstractHorse) && !abstractHorse.isTamed()) {\n abstractHorse.addPassenger(player);\n }\n } else if (abstractHorse instanceof Llama) {\n // Allow anyone to feed hay blocks to locked llamas.\n boolean canAccess = (item != null && item.getType() == Material.HAY_BLOCK) ||\n isAccessible(savedHorse, abstractHorse, player, playerState);\n if (!canAccess) {\n event.setCancelled(true);\n }\n }\n }\n\n if (event.isCancelled()) {\n // Even though the event is cancelled, the player will end up\n // facing the same direction as the horse. Restore the player's\n // original look direction.\n if (player.getVehicle() == null) {\n player.teleport(playerLoc);\n }\n }\n }",
"Horse getHorse(long id);",
"public Horse(String name)\n {\n this.name = name;\n }",
"@Override\n public String getChosenHorse() {\n return chosenHorse.getName();\n }",
"public static void horse() {\n System.out.println(\"There was an old woman who swallowed a horse,\");\n System.out.println(\"She died of course.\");\n }",
"@EventHandler(ignoreCancelled = true)\n public void onPlayerMove(PlayerMoveEvent event) {\n Player player = event.getPlayer();\n Entity vehicle = player.getVehicle();\n if (!Util.isTrackable(vehicle)) {\n return;\n }\n\n AbstractHorse abstractHorse = (AbstractHorse) vehicle;\n if (abstractHorse.isInsideVehicle()) {\n // The horse cannot be trained by moving it around in a vehicle.\n return;\n }\n PlayerState playerState = getState(player);\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n if (Util.isTrainable(abstractHorse)) {\n // NOTE: call onRidden() before observe() for correct dehydration.\n savedHorse.onRidden(_tickCounter, abstractHorse);\n\n // Compute distance moved and update speed or jump depending on\n // whether the horse was on the ground.\n double tickDistance = playerState.getTickHorizontalDistance();\n if (tickDistance > 0 && !savedHorse.isDehydrated()) {\n // Sanity check: if the distance is so large as to be\n // unattainable in one tick, then don't apply the distance to\n // the horse and log in console. Ratio to max speed determined\n // empirically.\n double maxSpeed = CONFIG.SPEED.getValue(savedHorse.getSpeedLevel() + 1);\n if (tickDistance > CONFIG.SPEED_LIMIT * maxSpeed) {\n String ownerClause = (abstractHorse.getOwner() != null ? abstractHorse.getOwner().getName() + \"'s\"\n : \"Unowned\");\n getLogger().warning(ownerClause + \" horse \" + abstractHorse.getUniqueId() +\n \" moved impossibly fast for its level; ratio: \" + (tickDistance / maxSpeed));\n } else {\n // Underwater training (of skeleton horses) counts as\n // speed rather than jump training.\n boolean underWater = Util.isWaterlogged(abstractHorse.getLocation().getBlock());\n Ability ability = (abstractHorse.isOnGround() || underWater) ? CONFIG.SPEED\n : CONFIG.JUMP;\n ability.setEffort(savedHorse, ability.getEffort(savedHorse) + tickDistance);\n if (ability.hasLevelIncreased(savedHorse, abstractHorse)) {\n notifyLevelUp(player, savedHorse, abstractHorse, ability);\n }\n }\n }\n\n // Update stored location to compute distance in the next tick.\n playerState.updateRiddenHorse();\n }\n\n // Observe the AbstractHorse's new location.\n DB.observe(savedHorse, abstractHorse);\n\n // If the horse is owned and permission to ride the horse has been\n // retracted, eject the rider.\n if (abstractHorse.getOwner() != null && !savedHorse.canBeAccessedBy(player) && !playerState.isBypassEnabled()) {\n player.sendMessage(ChatColor.GOLD + \"You no longer have permission to ride this \" + Util.entityTypeName(abstractHorse) + \".\");\n abstractHorse.eject();\n }\n }",
"public void applyHorn() {\n\t\t\r\n\t}",
"Horse deleteHorse(long id);",
"public void setHorsePower(int horsePower) {\n\t\tthis.horsePower = horsePower;\n\t}",
"public void updateHp(double amount);",
"@Override\n\tpublic int horsePower() {\n\t\treturn 336;\n\t}",
"@Override\n public void returnToStable(int id){\n rl.lock();\n numHorses_stable++; //increment number of horses in stable;\n try{\n System.out.println(\"H : Returning horse \" + id + \" to stable...\");\n while(keep_waiting){\n stable_horses.await();\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(Stable.class.getName()).log(Level.SEVERE, null, ex);\n }\n finally{\n rl.unlock();\n }\n }",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"@Override\n public String setChosenHorse(int i) {\n chosenHorse = mounts.get(i - 1);\n return chosenHorse.getName();\n }",
"private void harm(){\n\t\t// grab the selected ID\n\t\tfinal long rowID = getSelectedRowID();\n\n\t\t// reset the selection\n\t\tresetSelection();\n\n\t\t// show the dialog\n\t\tQuickDialogs.showHarmDialog(getActivity(), new IInputCallback() {\n\n\t\t\t@Override\n\t\t\tpublic void onInput(String input) {\n\t\t\t\tint damage;\n\t\t\t\t// convert the string to int\n\t\t\t\ttry{\n\t\t\t\t\tdamage = Integer.valueOf(input);\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\t// TODO display incorrect input dialog\n\t\t\t\t\tdamage = 0;\n\t\t\t\t}\n\n\t\t\t\t// deal dat damage!\n\t\t\t\tEncountersTable.changeHP(GameSQLDataSource.getDatabase(getActivity()), rowID, -damage);\n\n\t\t\t\trefreshList();\n\t\t\t}\n\t\t});\n\t}",
"public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }",
"public void update() {\n remHpWidth = healthbarWidth * ent.getCurrentHealth() / ent.getMaxHealth();\n lostHpWidth = healthbarWidth - remHpWidth;\n }",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n public void onEntityDeath(EntityDeathEvent event) {\n Entity entity = event.getEntity();\n if (Util.isTrackable(entity)) {\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n SavedHorse savedHorse = DB.findHorse(abstractHorse);\n if (savedHorse != null) {\n DB.removeHorse(savedHorse);\n\n String passengerName = \"\";\n Entity passenger = Util.getPassenger(abstractHorse);\n if (passenger != null) {\n passengerName = passenger instanceof Player ? ((Player) passenger).getName()\n : passenger.toString();\n }\n String deathCause = (abstractHorse.getKiller() == null ? \"the environment\" : abstractHorse.getKiller().getName());\n\n StringBuilder message = new StringBuilder();\n message.append(\"Horse died \");\n message.append(abstractHorse.getUniqueId().toString());\n message.append(\": \");\n\n AnimalTamer owner = abstractHorse.getOwner();\n if (owner instanceof Player) {\n message.append(\"Owner: \").append(owner.getName());\n\n // Tell the owner if someone else was riding.\n if (!owner.equals(passenger)) {\n StringBuilder horseDescription = new StringBuilder(\"Your \");\n horseDescription.append(abstractHorse.getCustomName() != null ? abstractHorse.getCustomName()\n : Util.entityTypeName(abstractHorse));\n horseDescription.append(\" (\");\n horseDescription.append(Util.limitString(abstractHorse.getUniqueId().toString(), 12));\n horseDescription.append(\") \");\n\n ((Player) owner).sendMessage(ChatColor.RED + horseDescription.toString() + \" has died due to \" + deathCause +\n (passengerName.isEmpty() ? \".\" : \" while being ridden by \" + passengerName + \".\"));\n }\n } else {\n message.append(\"No owner\");\n }\n\n message.append(\". Appearance: \").append(savedHorse.getAppearance());\n message.append(\". Equipment: \").append(HorseEquipment.description(savedHorse.getEquipment()));\n if (Util.isTrainable(abstractHorse)) {\n message.append(\". Speed: \").append(CONFIG.SPEED.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getDistanceTravelled()).append(\")\");\n message.append(\". Health: \").append(CONFIG.HEALTH.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getNuggetsEaten()).append(\")\");\n message.append(\". Jump: \").append(CONFIG.JUMP.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getDistanceJumped()).append(\")\");\n } else if (abstractHorse instanceof Llama) {\n Llama llama = (Llama) abstractHorse;\n message.append(\". Strength: \").append(llama.getStrength());\n message.append(\". Speed: \").append(CONFIG.SPEED.toDisplayValue(CONFIG.SPEED.getAttribute(abstractHorse)));\n message.append(\". Health: \").append(CONFIG.HEALTH.toDisplayValue(CONFIG.HEALTH.getAttribute(abstractHorse)));\n message.append(\". Jump: \").append(CONFIG.JUMP.toDisplayValue(CONFIG.JUMP.getAttribute(abstractHorse)));\n }\n message.append(\". Cause: \").append(deathCause);\n message.append(\". Passenger: \").append(passengerName.isEmpty() ? \"<none>\" : passengerName);\n message.append(\". Location: \").append(Util.formatLocation(event.getEntity().getLocation()));\n message.append(\".\");\n\n getLogger().info(message.toString());\n }\n }\n }",
"@Override\n\tpublic void update(Game game) {\n\t\t\n\t}",
"List<Horse> getAllHorses();",
"public static int bits(AbstractHorse abstractHorse) {\n int equip = 0;\n if (abstractHorse instanceof ChestedHorse) {\n if (((ChestedHorse) abstractHorse).isCarryingChest()) {\n equip |= HorseEquipment.CHEST;\n }\n }\n\n if (abstractHorse instanceof Horse) {\n HorseInventory inv = (HorseInventory) abstractHorse.getInventory();\n if (inv.getSaddle() != null && inv.getSaddle().getType() == Material.SADDLE) {\n equip |= HorseEquipment.SADDLE;\n }\n if (inv.getArmor() != null) {\n if (inv.getArmor().getType() == Material.IRON_HORSE_ARMOR) {\n equip |= HorseEquipment.IRON_HORSE_ARMOUR;\n } else if (inv.getArmor().getType() == Material.GOLDEN_HORSE_ARMOR) {\n equip |= HorseEquipment.GOLDEN_HORSE_ARMOUR;\n } else if (inv.getArmor().getType() == Material.DIAMOND_HORSE_ARMOR) {\n equip |= HorseEquipment.DIAMOND_HORSE_ARMOUR;\n }\n }\n } else if (abstractHorse instanceof Donkey ||\n abstractHorse instanceof Mule) {\n Inventory inv = abstractHorse.getInventory();\n ItemStack saddleItem = inv.getItem(0);\n if (saddleItem != null && saddleItem.getType() == Material.SADDLE) {\n equip |= HorseEquipment.SADDLE;\n }\n } else if (abstractHorse instanceof SkeletonHorse ||\n abstractHorse instanceof ZombieHorse) {\n Inventory inv = abstractHorse.getInventory();\n if (inv.contains(Material.SADDLE)) {\n equip |= HorseEquipment.SADDLE;\n }\n } else if (abstractHorse instanceof Llama) {\n Llama llama = (Llama) abstractHorse;\n LlamaInventory inv = llama.getInventory();\n ItemStack item = inv.getDecor();\n if (item != null) {\n DyeColor colour = CARPET_COLOURS.get(item.getType());\n if (colour != null) {\n equip |= HorseEquipment.PACK | ((colour.ordinal() & 0xF) << PACK_SHIFT);\n }\n }\n }\n return equip;\n }",
"public void updateSwarm();",
"public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }",
"private void strengthen(float hp) {\n this.hp += hp;\n if (this.hp > MAX_HP) {\n this.hp = MAX_HP;\n }\n }",
"public void updateHealth(boolean up){\n\t\tif (up){\n\t\t\tElement el = nifty.getScreen(\"hud\").findElementByName(\"HealthOrb\");\n\t\t\tel.startEffect(EffectEventId.onCustom);\n\t\t\tElement elfade = nifty.getScreen(\"hud\").findElementByName(\"HealthOrbFade\");\n\t\t\telfade.startEffect(EffectEventId.onCustom,null,\"OrbChange\");\n\t\t}\n\t\telse{\n\t\t\tElement elfade = nifty.getScreen(\"hud\").findElementByName(\"HealthOrbFade\");\n\t\t\telfade.startEffect(EffectEventId.onCustom,null,\"OrbFade\");\n\t\t\tElement el = nifty.getScreen(\"hud\").findElementByName(\"HealthOrb\");\n\t\t\tel.startEffect(EffectEventId.onCustom);\n\t\t}\n\t}",
"boolean addHardVictory();",
"@Override\n\tpublic boolean update(){\n\t\tif(dead){ return true; }\n\t\tfieldOfView.setOwnerId(this.ownerId);\n\t\tupdateHealthBar();\n\t\tupdateTexture();\n\t\tregenHealth();\n\t\tadjustAttackspeed();\n\t\tattack();\n\t\treturn false;\n\t}",
"public void updateHud() {\r\n\r\n\t\tif (m_planet.getCoordinateSystemType() == Planet.CoordinateSystemType.GEOCENTRIC) {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Hud.getSexagesinal(m_planet.getLongitude(), true);\r\n\t\t\tlat = Hud.getSexagesinal(m_planet.getLatitude(), false);\r\n\t\t\t\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t} else {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Double.toString(m_planet.getLongitude());\r\n\t\t\tlat = Double.toString(m_planet.getLatitude());\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t}\r\n\t\t\r\n\t\tcompass.setScale(new Vec3(75,75,75));\r\n\t\tcompass.setPosition(new Vec3(m_canvas3d.getWidth()-70,m_canvas3d.getHeight()-70,0));\r\n\t\t// Repainting view\r\n\t\tif (m_canvas3d != null)\r\n\t\t\tm_canvas3d.repaint();\r\n\t}",
"protected void handleFeeding(AbstractHorse abstractHorse, SavedHorse savedHorse, Player player) {\n // Handle health training only if the event was not cancelled.\n ItemStack foodItem = player.getEquipment().getItemInMainHand();\n int nuggetValue = getNuggetValue(foodItem);\n if (CONFIG.DEBUG_EVENTS && savedHorse.isDebug()) {\n getLogger().info(\"Nugget value: \" + nuggetValue);\n }\n\n if (nuggetValue > 0) {\n // For undead horses, they take the food right away.\n if (Util.isUndeadHorse(abstractHorse)) {\n foodItem.setAmount(foodItem.getAmount() - 1);\n player.getEquipment().setItemInMainHand(foodItem);\n consumeGoldenFood(savedHorse, abstractHorse, nuggetValue, player);\n\n // And let's simulate healing with golden food too.\n // Golden apples (both types) heal (10); carrots heal 4.\n int foodValue = (foodItem.getType() == Material.GOLDEN_APPLE) ? 10 : 4;\n AttributeInstance maxHealth = abstractHorse.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n abstractHorse.setHealth(Math.min(maxHealth.getValue(), abstractHorse.getHealth() + foodValue));\n\n } else {\n // For other types of horses, detect whether the food\n // was consumed by running a task in the next tick.\n Bukkit.getScheduler().runTaskLater(this, new GoldConsumerTask(\n player, abstractHorse, foodItem, nuggetValue, player.getInventory().getHeldItemSlot()), 0);\n }\n } else if (foodItem != null && foodItem.getType() == Material.WATER_BUCKET) {\n // Handle rehydration.\n if (!savedHorse.isFullyHydrated()) {\n player.getEquipment().setItemInMainHand(new ItemStack(Material.BUCKET, 1));\n savedHorse.setHydration(savedHorse.getHydration() + EasyRider.CONFIG.BUCKET_HYDRATION);\n Location loc = abstractHorse.getLocation();\n loc.getWorld().playSound(loc, Sound.ENTITY_GENERIC_DRINK, SoundCategory.NEUTRAL, 2.0f, 1.0f);\n }\n\n if (savedHorse.isFullyHydrated()) {\n player.sendMessage(ChatColor.GOLD + savedHorse.getMessageName() + \" is no longer thirsty.\");\n } else {\n player.sendMessage(ChatColor.GOLD + savedHorse.getMessageName() + \" is still thirsty.\");\n }\n }\n }",
"private void gameOver() {\n\t\t\n\t}",
"int editHabit(Habit oldHabit, Habit newHabit);",
"public int getHorsePower() {\n\t\treturn horsePower;\n\t}",
"public void updateHandFeatures() {\r\n\t\tpoints_hc_low = this.p1view.points_hc_low + this.p2view.points_hc_low;\r\n\t\tpoints_hc_high = this.p1view.points_hc_high + this.p2view.points_hc_high;\r\n\t\tpoints_spade_low = this.p1view.points_spade_low + this.p2view.points_spade_low;\r\n\t\tpoints_spade_high = this.p1view.points_spade_high + this.p2view.points_spade_high; \r\n\t\tpoints_heart_low = this.p1view.points_heart_low + this.p2view.points_heart_low;\r\n\t\tpoints_heart_high = this.p1view.points_heart_high + this.p2view.points_heart_high; \r\n\t\tpoints_dia_low = this.p1view.points_dia_low + this.p2view.points_dia_low;\r\n\t\tpoints_dia_high = this.p1view.points_dia_high + this.p2view.points_dia_high; \t\t\r\n\t\tpoints_club_low = this.p1view.points_club_low + this.p2view.points_club_low;\r\n\t\tpoints_club_high = this.p1view.points_club_high + this.p2view.points_club_high; \r\n\t\t\t\t\r\n\t\tcontrols_low = this.p1view.controls_low + this.p2view.controls_low;\r\n\t\tcontrols_high = this.p1view.controls_high + this.p2view.controls_high;\r\n\t\tcontrols_spade_low = this.p1view.controls_spade_low + this.p2view.controls_spade_low;\r\n\t\tcontrols_spade_high = this.p1view.controls_spade_high + this.p2view.controls_spade_high; \r\n\t\tcontrols_heart_low = this.p1view.controls_heart_low + this.p2view.controls_heart_low;\r\n\t\tcontrols_heart_high = this.p1view.controls_heart_high + this.p2view.controls_heart_high; \r\n\t\tcontrols_dia_low = this.p1view.controls_dia_low + this.p2view.controls_dia_low;\r\n\t\tcontrols_dia_high = this.p1view.controls_dia_high + this.p2view.controls_dia_high; \t\t\r\n\t\tcontrols_club_low = this.p1view.controls_club_low + this.p2view.controls_club_low;\r\n\t\tcontrols_club_high = this.p1view.controls_club_high + this.p2view.controls_club_high; \r\n\t\t\r\n\t\thighCards_low = this.p1view.highCards_low + this.p2view.highCards_low;\r\n\t\thighCards_high = this.p1view.highCards_high + this.p2view.highCards_high;\r\n\t\thighCards_spade_low = this.p1view.highCards_spade_low + this.p2view.highCards_spade_low;\r\n\t\thighCards_spade_high = this.p1view.highCards_spade_high + this.p2view.highCards_spade_high; \r\n\t\thighCards_heart_low = this.p1view.highCards_heart_low + this.p2view.highCards_heart_low;\r\n\t\thighCards_heart_high = this.p1view.highCards_heart_high + this.p2view.highCards_heart_high; \r\n\t\thighCards_dia_low = this.p1view.highCards_dia_low + this.p2view.highCards_dia_low;\r\n\t\thighCards_dia_high = this.p1view.highCards_dia_high + this.p2view.highCards_dia_high; \t\t\r\n\t\thighCards_club_low = this.p1view.highCards_club_low + this.p2view.highCards_club_low;\r\n\t\thighCards_club_high = this.p1view.highCards_club_high + this.p2view.highCards_club_high; \r\n\t\t\r\n\t\thonors_low = this.p1view.honors_low + this.p2view.honors_low;\r\n\t\thonors_high = this.p1view.honors_high + this.p2view.honors_high;\r\n\t\thonors_spade_low = this.p1view.honors_spade_low + this.p2view.honors_spade_low;\r\n\t\thonors_spade_high = this.p1view.honors_spade_high + this.p2view.honors_spade_high; \r\n\t\thonors_heart_low = this.p1view.honors_heart_low + this.p2view.honors_heart_low;\r\n\t\thonors_heart_high = this.p1view.honors_heart_high + this.p2view.honors_heart_high; \r\n\t\thonors_dia_low = this.p1view.honors_dia_low + this.p2view.honors_dia_low;\r\n\t\thonors_dia_high = this.p1view.honors_dia_high + this.p2view.honors_dia_high; \t\t\r\n\t\thonors_club_low = this.p1view.honors_club_low + this.p2view.honors_club_low;\r\n\t\thonors_club_high = this.p1view.honors_club_high + this.p2view.honors_club_high; \r\n\t\t\r\n\t\taces = (this.p1view.aces != -1 && this.p2view.aces != -1) ? this.p1view.aces + this.p2view.aces : -1;\r\n\t\tace_spade = (this.p1view.ace_spade != -1 && this.p2view.ace_spade != -1) ? ((this.p1view.ace_spade == 1 || this.p2view.ace_spade == 1) ? 1 : 0): -1;\r\n\t\tking_spade = (this.p1view.king_spade != -1 && this.p2view.king_spade != -1) ? ((this.p1view.king_spade == 1 || this.p2view.king_spade == 1) ? 1 : 0): -1;\r\n\t\tqueen_spade = (this.p1view.queen_spade != -1 && this.p2view.queen_spade != -1) ? ((this.p1view.queen_spade == 1 || this.p2view.queen_spade == 1) ? 1 : 0): -1;\r\n\t\tjack_spade = (this.p1view.jack_spade != -1 && this.p2view.jack_spade != -1) ? ((this.p1view.jack_spade == 1 || this.p2view.jack_spade == 1) ? 1 : 0): -1;\r\n\t\tten_spade = (this.p1view.ten_spade != -1 && this.p2view.ten_spade != -1) ? ((this.p1view.ten_spade == 1 || this.p2view.ten_spade == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\taces = (this.p1view.aces != -1 && this.p2view.aces != -1) ? this.p1view.aces + this.p2view.aces : -1;\r\n\t\tkings = (this.p1view.kings != -1 && this.p2view.kings != -1) ? this.p1view.kings + this.p2view.kings : -1;\r\n\t\tqueens = (this.p1view.queens != -1 && this.p2view.queens != -1) ? this.p1view.queens + this.p2view.queens : -1;\r\n\t\tjacks = (this.p1view.jacks != -1 && this.p2view.jacks != -1) ? this.p1view.jacks + this.p2view.jacks : -1;\r\n\t\ttens = (this.p1view.tens != -1 && this.p2view.tens != -1) ? this.p1view.tens + this.p2view.tens : -1;\r\n\t\t\r\n\t\tace_spade = (this.p1view.ace_spade != -1 && this.p2view.ace_spade != -1) ? ((this.p1view.ace_spade == 1 || this.p2view.ace_spade == 1) ? 1 : 0): -1;\r\n\t\tking_spade = (this.p1view.king_spade != -1 && this.p2view.king_spade != -1) ? ((this.p1view.king_spade == 1 || this.p2view.king_spade == 1) ? 1 : 0): -1;\r\n\t\tqueen_spade = (this.p1view.queen_spade != -1 && this.p2view.queen_spade != -1) ? ((this.p1view.queen_spade == 1 || this.p2view.queen_spade == 1) ? 1 : 0): -1;\r\n\t\tjack_spade = (this.p1view.jack_spade != -1 && this.p2view.jack_spade != -1) ? ((this.p1view.jack_spade == 1 || this.p2view.jack_spade == 1) ? 1 : 0): -1;\r\n\t\tten_spade = (this.p1view.ten_spade != -1 && this.p2view.ten_spade != -1) ? ((this.p1view.ten_spade == 1 || this.p2view.ten_spade == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tace_heart = (this.p1view.ace_heart != -1 && this.p2view.ace_heart != -1) ? ((this.p1view.ace_heart == 1 || this.p2view.ace_heart == 1) ? 1 : 0): -1;\r\n\t\tking_heart = (this.p1view.king_heart != -1 && this.p2view.king_heart != -1) ? ((this.p1view.king_heart == 1 || this.p2view.king_heart == 1) ? 1 : 0): -1;\r\n\t\tqueen_heart = (this.p1view.queen_heart != -1 && this.p2view.queen_heart != -1) ? ((this.p1view.queen_heart == 1 || this.p2view.queen_heart == 1) ? 1 : 0): -1;\r\n\t\tjack_heart = (this.p1view.jack_heart != -1 && this.p2view.jack_heart != -1) ? ((this.p1view.jack_heart == 1 || this.p2view.jack_heart == 1) ? 1 : 0): -1;\r\n\t\tten_heart = (this.p1view.ten_heart != -1 && this.p2view.ten_heart != -1) ? ((this.p1view.ten_heart == 1 || this.p2view.ten_heart == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tace_dia = (this.p1view.ace_dia != -1 && this.p2view.ace_dia != -1) ? ((this.p1view.ace_dia == 1 || this.p2view.ace_dia == 1) ? 1 : 0): -1;\r\n\t\tking_dia = (this.p1view.king_dia != -1 && this.p2view.king_dia != -1) ? ((this.p1view.king_dia == 1 || this.p2view.king_dia == 1) ? 1 : 0): -1;\r\n\t\tqueen_dia = (this.p1view.queen_dia != -1 && this.p2view.queen_dia != -1) ? ((this.p1view.queen_dia == 1 || this.p2view.queen_dia == 1) ? 1 : 0): -1;\r\n\t\tjack_dia = (this.p1view.jack_dia != -1 && this.p2view.jack_dia != -1) ? ((this.p1view.jack_dia == 1 || this.p2view.jack_dia == 1) ? 1 : 0): -1;\r\n\t\tten_dia = (this.p1view.ten_dia != -1 && this.p2view.ten_dia != -1) ? ((this.p1view.ten_dia == 1 || this.p2view.ten_dia == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tace_club = (this.p1view.ace_club != -1 && this.p2view.ace_club != -1) ? ((this.p1view.ace_club == 1 || this.p2view.ace_club == 1) ? 1 : 0): -1;\r\n\t\tking_club = (this.p1view.king_club != -1 && this.p2view.king_club != -1) ? ((this.p1view.king_club == 1 || this.p2view.king_club == 1) ? 1 : 0): -1;\r\n\t\tqueen_club = (this.p1view.queen_club != -1 && this.p2view.queen_club != -1) ? ((this.p1view.queen_club == 1 || this.p2view.queen_club == 1) ? 1 : 0): -1;\r\n\t\tjack_club = (this.p1view.jack_club != -1 && this.p2view.jack_club != -1) ? ((this.p1view.jack_club == 1 || this.p2view.jack_club == 1) ? 1 : 0): -1;\r\n\t\tten_club = (this.p1view.ten_club != -1 && this.p2view.ten_club != -1) ? ((this.p1view.ten_club == 1 || this.p2view.ten_club == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tnum_spade_low = this.p1view.num_spade_low + this.p2view.num_spade_low;\r\n\t\tnum_spade_high = this.p1view.num_spade_high + this.p2view.num_spade_high; \r\n\t\tnum_heart_low = this.p1view.num_heart_low + this.p2view.num_heart_low;\r\n\t\tnum_heart_high = this.p1view.num_heart_high + this.p2view.num_heart_high; \r\n\t\tnum_dia_low = this.p1view.num_dia_low + this.p2view.num_dia_low;\r\n\t\tnum_dia_high = this.p1view.num_dia_high + this.p2view.num_dia_high;\t\r\n\t\tnum_club_low = this.p1view.num_club_low + this.p2view.num_club_low;\r\n\t\tnum_club_high = this.p1view.num_club_high + this.p2view.num_club_high;\r\n\t\t\r\n\t\ttotal_points_sp_low = p1view.total_points_sp_low + p2view.total_points_sp_low;\r\n\t\ttotal_points_sp_high = p1view.total_points_sp_high + p2view.total_points_sp_high; \r\n\t\ttotal_points_he_low = p1view.total_points_he_low + p2view.total_points_he_low;\r\n\t\ttotal_points_he_high = p1view.total_points_he_high + p2view.total_points_he_high; \r\n\t\ttotal_points_di_low = p1view.total_points_di_low + p2view.total_points_di_low;\r\n\t\ttotal_points_di_high = p1view.total_points_di_high + p2view.total_points_di_high; \t\t\r\n\t\ttotal_points_cl_low = p1view.total_points_cl_low + p2view.total_points_cl_low;\r\n\t\ttotal_points_cl_high = p1view.total_points_cl_high + p2view.total_points_cl_high; \r\n\t\t\r\n\t\t// Hand(s) features done, now check invitation\r\n\t\tif(invited) {\r\n\t\t\tif(!this.player.getDeal().getAuction().getBidHistory().hasGameBeenBid()) {\r\n\t\t\t\tif(this.trumpDecided == BidSuit.NOTRUMP || trumpDecided == null) {\r\n\t\t\t\t\tif(this.points_hc_low >= 26)\r\n\t\t\t\t\t\tinvite_response = true;\r\n\t\t\t\t\telse invite_response = false;\r\n\t\t\t\t\ttrumpDecided = BidSuit.NOTRUMP;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint num_trump, points;\r\n\t\t\t\t\tpoints = this.points_hc_low;\r\n\t\t\t\t\tif(this.trumpDecided == BidSuit.SPADE) {\r\n\t\t\t\t\t\tnum_trump = this.num_spade_low;\r\n\t\t\t\t\t} else if(this.trumpDecided == BidSuit.HEART) {\r\n\t\t\t\t\t\tnum_trump = this.num_heart_low;\r\n\t\t\t\t\t} else if(this.trumpDecided == BidSuit.DIAMOND) {\r\n\t\t\t\t\t\tnum_trump = this.num_dia_low;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnum_trump = this.num_club_low;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(points + num_trump >= 33)\r\n\t\t\t\t\t\tinvite_response = true;\r\n\t\t\t\t\telse invite_response = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif(this.trumpDecided == BidSuit.NOTRUMP || trumpDecided == null) {\r\n\t\t\t\t\t// Pointless bidding, since game already bid\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint num_trump;\r\n\t\t\t\t\tif(this.trumpDecided == BidSuit.SPADE)\r\n\t\t\t\t\t\tnum_trump = this.num_spade_low;\r\n\t\t\t\t\telse if(this.trumpDecided == BidSuit.HEART)\r\n\t\t\t\t\t\tnum_trump = this.num_heart_low;\r\n\t\t\t\t\telse if(this.trumpDecided == BidSuit.DIAMOND)\r\n\t\t\t\t\t\tnum_trump = this.num_dia_low;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tnum_trump = this.num_club_low;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(num_trump >= 8)\r\n\t\t\t\t\t\tinvite_response = true;\r\n\t\t\t\t\telse invite_response = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract Scoreboard update(Player player);",
"@Override\n public void summonHorsesToPaddock(){\n rl.lock();\n try{\n System.out.println(\"B : Trying to summon horse...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.ANNOUNCING_NEXT_RACE;\n //change log\n log.setBrokerState(MyThreadBroker.Broker_States.ANNOUNCING_NEXT_RACE);\n log.changeLog();\n keep_waiting = false;\n stable_horses.signal(); \n }finally{\n rl.unlock();\n }\n \n }",
"public abstract void incrementHealth(int hp);",
"abstract void updatePlayer();",
"private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}",
"protected void updateGameState() {\n }",
"public void update() {\n // gear shift\n gear = simConnection.stringValueOf(gearid, \"P\");\n }",
"public final void setHullUpgrade(int hullUp){ hullUpgrade = hullUp;}",
"@Test\n\tpublic void whenHorseMovedInRightDirectionThanDirectionCellFullOfHorse() {\n\t\tCell[][] cells = new Cell[8][8];\n\t\tfor (int x = 0; x < 8; x++) {\n\t\t\tfor (int y = 0; y < 8; y++) {\n\t\t\t\tcells[x][y] = new Cell(x, y);\n\t\t\t}\n\t\t}\n\t\tFigure[] figures = {new Horse(cells[4][4])};\n\t\tBoard board = new Board(cells, figures);\n\t\t// Horse moving downleft.\n\t\tboard.move(board.getCell(4, 4), board.getCell(3, 6));\n\t\tassertThat(figures[0].getPosition(), is(cells[3][6]));\n\t\t// Horse moving upright.\n\t\tboard.move(board.getCell(3, 6), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t\t// Horse moving downright.\n\t\tboard.move(board.getCell(4, 4), board.getCell(5, 6));\n\t\tassertThat(figures[0].getPosition(), is(cells[5][6]));\n\t\t// Horse moving upleft.\n\t\tboard.move(board.getCell(5, 6), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t\t// Horse moving leftdown.\n\t\tboard.move(board.getCell(4, 4), board.getCell(2, 5));\n\t\tassertThat(figures[0].getPosition(), is(cells[2][5]));\n\t\t// Horse moving rightup.\n\t\tboard.move(board.getCell(2, 5), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t\t// Horse moving leftup.\n\t\tboard.move(board.getCell(4, 4), board.getCell(2, 3));\n\t\tassertThat(figures[0].getPosition(), is(cells[2][3]));\n\t\t// Horse moving rightdown.\n\t\tboard.move(board.getCell(2, 3), board.getCell(4, 4));\n\t\tassertThat(figures[0].getPosition(), is(cells[4][4]));\n\t}",
"@Override\n\tpublic void eggHatches() {\n\t\t\n\t}",
"@Override\n public void proceedToPaddock(int id){\n rl.lock();\n //horse_count++;\n //stable_broker.signal();\n try{\n System.out.println(\"H : Sending horse \" + id + \" to paddock...\");\n numHorses_stable--;\n if(numHorses_stable == 0){\n keep_waiting = true;\n System.out.println(\"H : All horses have reached the Paddock(HorseCount = \" + numHorses_stable + \")\");\n }\n else{\n System.out.println(\"H : Horse \" + id + \" is reaching paddock(HorseCount = \" + numHorses_stable + \")\");\n }\n //change horse_states\n// MyThreadHorses horse = (MyThreadHorses) Thread.currentThread();\n// horse.horse_states = MyThreadHorses.Horse_States.AT_THE_PADDOCK;\n //change log\n log.setHorseState(id, MyThreadHorses.Horse_States.AT_THE_PADDOCK);\n log.changeLog();\n //signal next horse\n stable_horses.signal();\n \n }finally{\n rl.unlock();\n }\n }",
"public void updateArmorModifier(int p_184691_1_) {\n if (!this.world.isRemote) {\n this.getAttribute(Attributes.ARMOR).removeModifier(COVERED_ARMOR_BONUS_MODIFIER);\n if (p_184691_1_ == 0) {\n this.getAttribute(Attributes.ARMOR).applyPersistentModifier(COVERED_ARMOR_BONUS_MODIFIER);\n this.playSound(SoundEvents.ENTITY_SHULKER_CLOSE, 1.0F, 1.0F);\n } else {\n this.playSound(SoundEvents.ENTITY_SHULKER_OPEN, 1.0F, 1.0F);\n }\n }\n\n this.dataManager.set(PEEK_TICK, (byte)p_184691_1_);\n }",
"protected void incrementHunger()\n {\n food_level--;\n if(food_level <= 0) {\n setDead();\n }\n }",
"public void setHealth(double h){\n health = h;\n }",
"public void update()\n\t{\n\t\t//\tTHE WORLD HAS ENDED DO NOT EXECUTE FURTHER\n\t\tif( end )\n\t\t{\n\t\t\tsafeEnd = true;\n\t\t\treturn;\n\t\t}\n\n\t\t//Plot graphics\n\t\tif(plot){\n\t\t\thealthyFunction.show(infectedFunction, healthyFunction);\n\t\t\tbusFunction.show(infectedFunction, seasFunction, busFunction, colFunction, ellFunction, smpaFunction, lawFunction);\n\t\t\tplot = false;\n\t\t}\n\n\t\t//\tsafe point to manage human/zombie ratios\n\t\t//\tTODO: Modify infect to also switch zombies to humans\n\t\tinfect();\n\t\tgetWell();\n\t\taddFromQueue();\n\n\t\t//\tupdate all entities\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.update(zombiesPaused);\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.update(humansPaused);\n\t\t}\n\n\t\tif( zc!=zombies.size() || hc!=humans.size() )\n\t\t{\n\t\t\tzc = zombies.size();\n\t\t\thc = humans.size();\n\t\t\tSystem.out.println(zc+\"/\"+hc);\n\t\t}\n\n\t\t//Add points to our functions\n\t\thealthyFunction.add(time,humans.size());\n\t\tinfectedFunction.add(time,zombies.size());\n\t\tseascount = smpacount = ellcount = lawcount = buscount = colcount = 0;\n\t\tfor (int i = 0; i < humans.size(); i++) {\n\t\t\tEntity curr = humans.get(i);\n\t\t\tif (curr instanceof SEAS) {\n\t\t\t\tseascount++;\n\t\t\t} else if (curr instanceof SMPA) {\n\t\t\t\tsmpacount++;\n\t\t\t} else if (curr instanceof Elliot) {\n\t\t\t\tellcount++;\n\t\t\t} else if (curr instanceof Law) {\n\t\t\t\tlawcount++;\n\t\t\t} else if (curr instanceof Business) {\n\t\t\t\tbuscount++;\n\t\t\t} else if (curr instanceof Columbian) {\n\t\t\t\tcolcount++;\n\t\t\t}\n\t\t}\n\t\tbusFunction.add(time, buscount);\n\t\tcolFunction.add(time, colcount);\n\t\tellFunction.add(time, ellcount);\n\t\tlawFunction.add(time, lawcount);\n\t\tsmpaFunction.add(time, smpacount);\n\t\tseasFunction.add(time, seascount);\n\t\ttime++;\n\t}",
"@Override\n public String addHorse(Observer... horses) {\n for (Observer horse : horses) {\n mounts.add(horse);\n }\n return (Answer.HORSES.toString(2));\n }",
"public abstract void explodingKittenReplaced(int playerIndex);",
"public void setHomeScore(int h);",
"@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}",
"public void onLivingUpdate()\n {\n this.updateArmSwingProgress();\n float var1 = this.getBrightness(1.0F);\n\n if (var1 > 0.5F)\n {\n this.entityAge += 2;\n }\n\n super.onLivingUpdate();\n }",
"public void update() ;",
"public void enterHatchingState() {\n\n\t}",
"public void collide(SteelHorse s)\n\t{\n\t\ts.collide(this);\n\t}",
"public void gameOver() {\n\t}",
"public static void handleHunterKit(Player player) {\n\t\t\n\t}",
"@Override\n public void setHp(int hp){\n this.hp = hp;\n }",
"private int edit(){\n\n\t\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\t\tHttpPost httppost = new HttpPost(\"http://129.241.126.66/cgi-bin/editsheep.py\");\n\n\t\t\tString ageString = age.getText().toString();\n\t\t\tString weightString = weight.getText().toString();\n\t\t\tString healthString = health.getText().toString();\n\t\t\tString idString = Integer.toString(id);\n\n\t\t\ttry {\n\t\t\t\tContentValues newData = new ContentValues();\n\t\t\t\t// Add your data\n\t\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(4);\n\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"sheepid\", idString));\n\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"age\", ageString));\n\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"weight\", weightString));\n\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"comment\", healthString));\n\n\t\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n\t\t\t\t// Execute HTTP Post Request\n\t\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\t\tif(response.getStatusLine().getStatusCode() == 200){\n\t\t\t\t\tnewData.put(\"age\",ageString);\n\t\t\t\t\tnewData.put(\"weight\", weightString);\n\t\t\t\t\tnewData.put(\"health\", healthString);\n\n\t\t\t\t\tsource.sheepUpdate(newData,id);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn response.getStatusLine().getStatusCode();\n\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t} catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"private void buildHorseRace(HorseRace hr) {\n if (hr != null && hr.getId() !=null ) {\n try {\n RaceDao raceDao = factory.createDao(RaceDao.class);\n HorseDao horseDao = factory.createDao(HorseDao.class);\n BreedDao breedDao = factory.createDao(BreedDao.class);\n\n hr.setRace(raceDao.read(hr.getRace().getId()));\n hr.setHorse(horseDao.read(hr.getHorse().getId()));\n Breed breed = breedDao.read(hr.getHorse().getBreed().getId());\n Horse horse = horseDao.read(hr.getHorse().getId());\n horse.setBreed(breed);\n hr.setHorse(horse);\n } catch (PersistentException e) {\n e.printStackTrace();\n }\n }\n }",
"public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }",
"public void setHp(int hp){\r\n this.hp = hp;\r\n }",
"@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}",
"@EventHandler\n public void onInventoryClick(InventoryClickEvent event) {\n if (getDisguiseProvider() == null) {\n return;\n }\n\n InventoryHolder holder = event.getInventory().getHolder();\n if (!(holder instanceof AbstractHorse) ||\n !(event.getWhoClicked() instanceof Player)) {\n return;\n }\n\n // Exclude unsupported AbstractHorse subtypes.\n if (holder instanceof Llama) {\n return;\n }\n\n ItemStack oldSaddle = event.getInventory().getItem(0);\n Bukkit.getScheduler().runTaskLater(this, () -> {\n // Require that the horse has a human passenger before applying\n // a disguise. Note that the player doing the inventory editing\n // is not necessarily the rider.\n AbstractHorse abstractHorse = (AbstractHorse) holder;\n Player rider = null;\n for (Entity passenger : abstractHorse.getPassengers()) {\n if (passenger instanceof Player) {\n rider = (Player) passenger;\n break;\n }\n }\n if (rider == null) {\n return;\n }\n\n // Check that the saddle item has changed to silence unnecessary\n // disguise messages caused by players clicking in the inventory of\n // a disguised horse.\n ItemStack newSaddle = event.getInventory().getItem(0);\n if ((oldSaddle == null && newSaddle != null) ||\n (oldSaddle != null && !oldSaddle.equals(newSaddle))) {\n String encodedDisguise = SpecialSaddles.getSaddleEncodedDisguise(abstractHorse);\n if (encodedDisguise == null) {\n getDisguiseProvider().removeDisguise(abstractHorse);\n } else {\n SpecialSaddles.applySaddleDisguise(abstractHorse, rider, encodedDisguise, false, true);\n }\n }\n }, 1);\n }",
"public void makesHereBack(){this.piece.affect();}",
"public void setHP(int h)\n\t{\n\t\tiHP = h;\n\t\t\n\t}",
"public void updateUi() {\n updateTextView(R.id.blindword, gameInstance.getBlindWord(), EditMode.ADDSPACING);\n updateTextView(R.id.guessedletters, gameInstance.getGuessedSoFar(), EditMode.ADDSPACING);\n\n int livesTotal = settings.getInt(\"lives\", 7);\n int livesLeft = gameInstance.getLives();\n StringBuilder healthbar = new StringBuilder();\n for(int i=0;i<livesLeft;i++) {\n healthbar.append('\\u2764'); //black heart\n }\n\n for(int i=0;i<(livesTotal - livesLeft);i++) {\n healthbar.append('\\u2661'); //white heart\n }\n\n updateTextView(R.id.healthbar, healthbar.toString(), EditMode.NONE);\n\n gameOverListener();\n\n }",
"public void updateHumanHand(ArrayList<Carte> hand, int score, int budget) {\n humanPaquetView.setCards(hand);\n jlScore.setText(String.format(\"Score: %d\", score));\n jlBudget.setText(String.format(\"Budget: $%d\", budget));\n }",
"public void update(Avion avion)\n\t{\n\t}",
"@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}",
"public void setHp(byte hp){\n this.hp = hp;\n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"public void onUpdate()\n {\n super.onUpdate();\n\n if (!this.worldObj.isRemote && this.getBossHP() != this.health)\n {\n this.setBossHP();\n }\n }",
"public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}",
"public void victory() {\n fieldInerface.setPleasedSmile();\n fieldInerface.timestop();\n int result = fieldInerface.timeGet();\n /*try {\n if (result < Integer.parseInt(best.getProperty(type))) {\n best.setProperty(type, Integer.toString(result));\n fieldInerface.makeChampionWindow(type);\n }\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n best.setProperty(type, Integer.toString(result));\n fieldInerface.makeChampionWindow(type);\n }*/\n\n gamestart = true; // new game isn't started yet!\n for (int j = 0; j < heightOfField; j++)\n for (int i = 0; i < widthOfField; i++)\n if (fieldManager.isCellMined(i, j))\n if (!fieldManager.isCellMarked(i, j)) {\n fieldInerface.putMarkToButton(i, j);\n fieldInerface.decrement();\n }\n gameover = true; // game is over!!\n }",
"public void update() {\n\t\t\n\t}",
"@Override\n public void update() {\n \n }",
"public void SetHealth(int h)\n{\n\thealth=h;\n}",
"@Test\n\tpublic void whenHorseMoveThrowAnotherFigureThanOk() {\n\t\tCell[][] cells = new Cell[8][8];\n\t\tfor (int x = 0; x < 8; x++) {\n\t\t\tfor (int y = 0; y < 8; y++) {\n\t\t\t\tcells[x][y] = new Cell(x, y);\n\t\t\t}\n\t\t}\n\t\tFigure[] figures = {new Horse(cells[4][4]),\n\t\t\t\t\t\t\tnew Tura(cells[2][5]),\n\t\t\t\t\t\t\tnew Tura(cells[3][5]),\n\t\t\t\t\t\t\tnew Tura(cells[4][5]),\n\t\t\t\t\t\t\tnew Tura(cells[5][5]),\n\t\t\t\t\t\t\tnew Tura(cells[6][5])};\n\t\tBoard board = new Board(cells, figures);\n\t\tassertThat(board.move(cells[4][4], board.getCell(3, 6)), is(true));\n\t}",
"public void update() {}",
"public void setGame() {\n }",
"@Override\n public long updateVehcile(com.woc.dto.Vehicle v) {\n return 0;\n }",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"Lab.Update update();",
"private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }",
"void notify(HorseFeverEvent e);",
"public void hpChange(Context context,int textview, boolean increase, String characterName){\n try {\n Cursor hpCursor = SQLHelper.setupDatabase(context, SQLHelper.TABLE_NAME, null, SQLHelper.CHARACTER_NAME + \"=?\", new String[]{characterName});\n SQLHelper hpSqlhelper = new SQLHelper(context);\n SQLiteDatabase hpDB = hpSqlhelper.getWritableDatabase();\n TextView hpOutput = (TextView) findViewById(textview);\n int currentHP = Integer.parseInt(hpCursor.getString(hpCursor.getColumnIndex(SQLHelper.CHARACTER_HP)));\n int maxHP = Integer.parseInt(hpCursor.getString(hpCursor.getColumnIndex(SQLHelper.CHARACTER_MAX_HP)));\n ContentValues cv = new ContentValues();\n if (increase) {\n currentHP++;\n } else if (!increase) {\n currentHP--;\n }\n cv.put(SQLHelper.CHARACTER_HP, currentHP);\n hpDB.update(SQLHelper.TABLE_NAME, cv, SQLHelper.CHARACTER_NAME + \"=?\", new String[]{characterName});\n hpOutput.setText(currentHP + \"/\" + maxHP);\n Log.i(\"MenuAndDatabase\", \"HP has been modified new HP: \" + currentHP);\n }\n catch (Exception e){\n Log.e(\"MenuAndDatabase\", \"error setting HP: \" + e.toString());\n }\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"protected abstract void update();"
] | [
"0.7012949",
"0.6803202",
"0.6781207",
"0.6762761",
"0.6474668",
"0.643591",
"0.63520193",
"0.6284176",
"0.62177706",
"0.61804086",
"0.61550534",
"0.6095794",
"0.6086866",
"0.60203993",
"0.59883976",
"0.59826833",
"0.59820896",
"0.59331673",
"0.5925886",
"0.5905638",
"0.584913",
"0.5831567",
"0.58248115",
"0.5808253",
"0.578545",
"0.57725805",
"0.575921",
"0.5754168",
"0.5746",
"0.57429945",
"0.5741173",
"0.57388335",
"0.57329124",
"0.57295233",
"0.57227886",
"0.571608",
"0.57065123",
"0.57026714",
"0.5701529",
"0.56957537",
"0.5666802",
"0.56622404",
"0.5654685",
"0.56515586",
"0.5649898",
"0.56479883",
"0.56319976",
"0.56229395",
"0.56157815",
"0.56142235",
"0.5609611",
"0.56075394",
"0.55780256",
"0.5573003",
"0.5573003",
"0.5572427",
"0.5571942",
"0.5568658",
"0.55572665",
"0.55551994",
"0.5555114",
"0.5553186",
"0.55421543",
"0.5541486",
"0.55373156",
"0.55309856",
"0.55288315",
"0.5526809",
"0.5520281",
"0.55194396",
"0.5519271",
"0.55171955",
"0.5516401",
"0.55083805",
"0.5499546",
"0.5491528",
"0.5491528",
"0.5491528",
"0.5491528",
"0.5491528",
"0.5491108",
"0.54832965",
"0.5481964",
"0.54810077",
"0.54796696",
"0.5478978",
"0.54724556",
"0.5471166",
"0.546769",
"0.54624367",
"0.5461934",
"0.5460636",
"0.54569113",
"0.5453197",
"0.54497904",
"0.54450446",
"0.54450446",
"0.54450446",
"0.5444954",
"0.5441783"
] | 0.8609428 | 0 |
method required for getting horse by id | Horse getHorse(long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Horse deleteHorse(long id);",
"@Override\n public String getChosenHorse() {\n return chosenHorse.getName();\n }",
"List<Horse> getAllHorses();",
"Horse addHorse(Horse horse);",
"Horse updateHorse(Horse horse);",
"public Horse(String name)\n {\n this.name = name;\n }",
"@GetMapping(\"/huespedes/{id}\")\n public ResponseEntity<Huesped> getHuespedById(@PathVariable int id) {\n Huesped h = huespedService.buscarPorId(id);\n\n if (h == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return ResponseEntity.ok(h);\n }",
"private List<Horse> parseHorses(String[] horsesId) throws ServiceException {\r\n\r\n List<Horse> horses = new ArrayList<>();\r\n for (String stringId : horsesId){\r\n int id = Integer.parseInt(stringId);\r\n Horse horse = null;\r\n try {\r\n horse = horseDao.findByID(id);\r\n } catch (DaoException e) {\r\n logger.error(e);\r\n throw new ServiceException(e);\r\n }\r\n horses.add(horse);\r\n }\r\n\r\n return horses;\r\n }",
"@Override\n public HorseRace findById(Integer id) throws PersistentException {\n if (id != null) {\n HorseRaceDao dao = factory.createDao(HorseRaceDao.class);\n HorseRace horseRace = dao.read(id);\n buildHorseRace(horseRace);\n return horseRace;\n }\n return null;\n }",
"@Override\n public void returnToStable(int id){\n rl.lock();\n numHorses_stable++; //increment number of horses in stable;\n try{\n System.out.println(\"H : Returning horse \" + id + \" to stable...\");\n while(keep_waiting){\n stable_horses.await();\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(Stable.class.getName()).log(Level.SEVERE, null, ex);\n }\n finally{\n rl.unlock();\n }\n }",
"long getHeroId();",
"public String getHpId() {\r\n return hpId;\r\n }",
"public static void horse() {\n System.out.println(\"There was an old woman who swallowed a horse,\");\n System.out.println(\"She died of course.\");\n }",
"HorarioAcademico findHorarioByAsistencia(Asistencia asistencia);",
"int getHealSnId();",
"@Override\n public HorseRace findByRaceAndHorse(Integer horseId, Integer raceId) throws PersistentException {\n HorseRaceDao horseRaceDao = factory.createDao(HorseRaceDao.class);\n HorseRace horseRace = horseRaceDao.findByRaceAndHorse(horseId, raceId);\n buildHorseRace(horseRace);\n return horseRace;\n }",
"public void thisHorse() {\n\t\tHorsesView horses = (HorsesView) manager.getPanel(Constants.H_VIEW_NAME);\n\t\tif (horses.getPhv().getAmount().isEmpty() || !horses.getPhv().getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")\n\t\t\t\t|| Float.parseFloat(horses.getPhv().getAmount()) <= 0) {\n\t\t\tnew Dialeg().setWarningText(\"You must enter a positive amount!\");\n\t\t} else {\n\t\t\thorses.getPhv().obreDialeg();\n\t\t\tif (horses.getPhv().getDialeg().getResult() == JOptionPane.OK_OPTION) {\n\t\t\t\tString name = horses.getPhv().getHorseName();\n\t\t\t\thorseBet = new Bet(Double.parseDouble(horses.getPhv().getAmount()), name);\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(horseBet));\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\thorses.getPhv().dispose();\n\t\t\t}\n\t\t}\n\t}",
"public Deck getHand(int id)\n\t{\n\t\treturn hands[id];\n\t}",
"Clothes getById(int id);",
"@Override\n public String setChosenHorse(int i) {\n chosenHorse = mounts.get(i - 1);\n return chosenHorse.getName();\n }",
"public HorarioFunc fetchHorafuncById(FetchByIdRequest request);",
"long getPokemonId();",
"public Hero getHero();",
"public int getPlayerId();",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n public void onEntityDeath(EntityDeathEvent event) {\n Entity entity = event.getEntity();\n if (Util.isTrackable(entity)) {\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n SavedHorse savedHorse = DB.findHorse(abstractHorse);\n if (savedHorse != null) {\n DB.removeHorse(savedHorse);\n\n String passengerName = \"\";\n Entity passenger = Util.getPassenger(abstractHorse);\n if (passenger != null) {\n passengerName = passenger instanceof Player ? ((Player) passenger).getName()\n : passenger.toString();\n }\n String deathCause = (abstractHorse.getKiller() == null ? \"the environment\" : abstractHorse.getKiller().getName());\n\n StringBuilder message = new StringBuilder();\n message.append(\"Horse died \");\n message.append(abstractHorse.getUniqueId().toString());\n message.append(\": \");\n\n AnimalTamer owner = abstractHorse.getOwner();\n if (owner instanceof Player) {\n message.append(\"Owner: \").append(owner.getName());\n\n // Tell the owner if someone else was riding.\n if (!owner.equals(passenger)) {\n StringBuilder horseDescription = new StringBuilder(\"Your \");\n horseDescription.append(abstractHorse.getCustomName() != null ? abstractHorse.getCustomName()\n : Util.entityTypeName(abstractHorse));\n horseDescription.append(\" (\");\n horseDescription.append(Util.limitString(abstractHorse.getUniqueId().toString(), 12));\n horseDescription.append(\") \");\n\n ((Player) owner).sendMessage(ChatColor.RED + horseDescription.toString() + \" has died due to \" + deathCause +\n (passengerName.isEmpty() ? \".\" : \" while being ridden by \" + passengerName + \".\"));\n }\n } else {\n message.append(\"No owner\");\n }\n\n message.append(\". Appearance: \").append(savedHorse.getAppearance());\n message.append(\". Equipment: \").append(HorseEquipment.description(savedHorse.getEquipment()));\n if (Util.isTrainable(abstractHorse)) {\n message.append(\". Speed: \").append(CONFIG.SPEED.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getDistanceTravelled()).append(\")\");\n message.append(\". Health: \").append(CONFIG.HEALTH.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getNuggetsEaten()).append(\")\");\n message.append(\". Jump: \").append(CONFIG.JUMP.getFractionalLevel(savedHorse));\n message.append(\" (\").append(savedHorse.getDistanceJumped()).append(\")\");\n } else if (abstractHorse instanceof Llama) {\n Llama llama = (Llama) abstractHorse;\n message.append(\". Strength: \").append(llama.getStrength());\n message.append(\". Speed: \").append(CONFIG.SPEED.toDisplayValue(CONFIG.SPEED.getAttribute(abstractHorse)));\n message.append(\". Health: \").append(CONFIG.HEALTH.toDisplayValue(CONFIG.HEALTH.getAttribute(abstractHorse)));\n message.append(\". Jump: \").append(CONFIG.JUMP.toDisplayValue(CONFIG.JUMP.getAttribute(abstractHorse)));\n }\n message.append(\". Cause: \").append(deathCause);\n message.append(\". Passenger: \").append(passengerName.isEmpty() ? \"<none>\" : passengerName);\n message.append(\". Location: \").append(Util.formatLocation(event.getEntity().getLocation()));\n message.append(\".\");\n\n getLogger().info(message.toString());\n }\n }\n }",
"public Airplane find(int id);",
"int getHair();",
"Game getGameById(long id);",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)\n public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {\n Entity entity = event.getRightClicked();\n if (!Util.isTrackable(entity)) {\n return;\n }\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n Player player = event.getPlayer();\n PlayerState playerState = getState(player);\n Location playerLoc = player.getLocation();\n\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n if (player.equals(abstractHorse.getOwner())) {\n savedHorse.setLastAccessed(System.currentTimeMillis());\n } else {\n // Horses that are not interacted with by their owner for a\n // long time are spontaneously untamed. Since the horse is\n // being interacted with, the DB entry is retained.\n if (savedHorse.isAbandoned()) {\n abstractHorse.setOwner(null);\n if (CONFIG.DEBUG_EVENTS) {\n debug(abstractHorse, \"abandoned\");\n }\n }\n }\n\n // Trap trigger horse: non-tame skeleton horse with domestication 0.\n // Domestication 0 seems to prevent taming.\n if (!abstractHorse.isTamed() && abstractHorse.getDomestication() == 0) {\n abstractHorse.setDomestication(1);\n }\n\n // Normalisation of trap horses: if they spawned tame, untame.\n if (abstractHorse.getOwner() == null && abstractHorse.isTamed()) {\n abstractHorse.setTamed(false);\n abstractHorse.setDomestication(1);\n }\n\n // Do pending trainable attribute updates resulting from /horse-swap.\n // Also fix some horses that got attributes minimised by mistake when\n // they \"spawned\" by going through a portal.\n if (Util.isTrainable(abstractHorse)) {\n savedHorse.updateAllAttributes(abstractHorse);\n }\n\n EasyRider.DB.observe(savedHorse, abstractHorse);\n\n if (playerState.hasPendingInteraction()) {\n playerState.handlePendingInteraction(event, savedHorse);\n event.setCancelled(true);\n } else {\n ItemStack item = player.getEquipment().getItemInMainHand();\n if (Util.isTrainable(abstractHorse)) {\n // Allow players to feed golden carrots to living horses that\n // they cannot access for breeding purposes. Other foods don't\n // work due to vanilla limitations.\n if (!Util.isUndeadHorse(abstractHorse) &&\n item != null && item.getType() == Material.GOLDEN_CARROT) {\n handleFeeding(abstractHorse, savedHorse, player);\n } else {\n // Prevent riding, leashing etc. of owned, locked horses.\n if (isAccessible(savedHorse, abstractHorse, player, playerState)) {\n handleFeeding(abstractHorse, savedHorse, player);\n } else {\n event.setCancelled(true);\n }\n }\n\n // Simulate taming of undead horses. Vanilla code does most of\n // the work. We just need to put the player on an untamed horse.\n if (Util.isUndeadHorse(abstractHorse) && !abstractHorse.isTamed()) {\n abstractHorse.addPassenger(player);\n }\n } else if (abstractHorse instanceof Llama) {\n // Allow anyone to feed hay blocks to locked llamas.\n boolean canAccess = (item != null && item.getType() == Material.HAY_BLOCK) ||\n isAccessible(savedHorse, abstractHorse, player, playerState);\n if (!canAccess) {\n event.setCancelled(true);\n }\n }\n }\n\n if (event.isCancelled()) {\n // Even though the event is cancelled, the player will end up\n // facing the same direction as the horse. Restore the player's\n // original look direction.\n if (player.getVehicle() == null) {\n player.teleport(playerLoc);\n }\n }\n }",
"public List<Ve> getAllVe(long idKhachHang);",
"String getGameId();",
"HAPartition getHAPartition();",
"@Override\n public Shelf getShelfById(String id) {\n if(id == null)\n throw new NullPointerException();\n return shelves.stream().filter(x-> x.getId().equalsIgnoreCase(id)).findFirst().orElseThrow(()->\n new NoSuchElementException(\"There is no shelf with ID \" + id));\n }",
"public abstract Game getGame(int game_id) throws SQLException;",
"public AIObject getAIObject(String id) {\n return aiObjects.get(id);\n }",
"public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }",
"Dish selectByPrimaryKey(String id);",
"@RequestMapping(value = \"/rest/hikes/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Hike> get(@PathVariable Long id, HttpServletResponse response) {\n log.debug(\"REST request to get Hike : {}\", id);\n Hike hike = hikeRepository.findOne(id);\n if (hike == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return new ResponseEntity<>(hike, HttpStatus.OK);\n }",
"public int getHorsePower() {\n\t\treturn horsePower;\n\t}",
"public void victoryCardFind();",
"Optional<Chiquvchi> getEntityById(ID id);",
"ChallengeTo findChallengeById(int id);",
"int getPlayerId();",
"int getPlayerId();",
"public ModelGame findGameById () {\n Scanner input = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Enter the ID of the game you wish to return:\");\n int id = input.nextInt(); // Read user input of id\n for (ModelGame game : this.allGames) {\n if (game.getGameId() == id) {\n return game;\n }\n }\n return null;\n }",
"public Heros doWhat() {\n HerosModel hm;\n hm = new HerosModel();\n Heros heros = null;\n\n System.out.println(\"Voici la liste de nos Héros\");\n hm.getHeroes();\n System.out.println(\"\\nQue veux-tu faire ?\" +\n \"\\n-> Créer un nouveau héros (cr)\" +\n \"\\n-> Charger un héros existant pour jouer (ch)\" +\n \"\\n-> Modifier un héros (m)\" +\n \"\\n-> Supprimer un héros (s)\" +\n \"\\nTape cr / ch / m ou s\");\n String playerChoice = scanner.nextLine();\n toQuit(playerChoice);\n\n if (playerChoice.equals(\"cr\")) {\n heros = this.chooseYourPerso();\n } else if (playerChoice.equals(\"ch\") || playerChoice.equals(\"m\") || playerChoice.equals(\"s\")) {\n System.out.println(\"Saisis à présent le numero du personnage que tu as choisi\");\n int id = scanner.nextInt();\n\n switch (playerChoice) {\n case \"ch\" -> heros = this.loadHerosModel(id);\n case \"m\" -> this.updateHerosModel(id);\n case \"s\" -> hm.deleteHero(id);\n\n }\n } else {\n heros = this.doWhat();\n }\n\n return heros;\n\n }",
"Livre findOne(Long id);",
"@GetMapping(\"/hlds/{id}\")\n @Timed\n public ResponseEntity<Hld> getHld(@PathVariable Long id) {\n log.debug(\"REST request to get Hld : {}\", id);\n Optional<Hld> hld = hldRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(hld);\n }",
"@Override\n public void proceedToPaddock(int id){\n rl.lock();\n //horse_count++;\n //stable_broker.signal();\n try{\n System.out.println(\"H : Sending horse \" + id + \" to paddock...\");\n numHorses_stable--;\n if(numHorses_stable == 0){\n keep_waiting = true;\n System.out.println(\"H : All horses have reached the Paddock(HorseCount = \" + numHorses_stable + \")\");\n }\n else{\n System.out.println(\"H : Horse \" + id + \" is reaching paddock(HorseCount = \" + numHorses_stable + \")\");\n }\n //change horse_states\n// MyThreadHorses horse = (MyThreadHorses) Thread.currentThread();\n// horse.horse_states = MyThreadHorses.Horse_States.AT_THE_PADDOCK;\n //change log\n log.setHorseState(id, MyThreadHorses.Horse_States.AT_THE_PADDOCK);\n log.changeLog();\n //signal next horse\n stable_horses.signal();\n \n }finally{\n rl.unlock();\n }\n }",
"Seat getSeat(int seatId);",
"public Card chooseCard(Hand h, Trick t);",
"int getArmor();",
"@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}",
"public SeatEntity getById(int id);",
"Piece getWinner();",
"@Override\n\tpublic int horsePower() {\n\t\treturn 336;\n\t}",
"public int getID(){\n return chestID;\n }",
"Heaver findByName(String name);",
"public void findHouse() {\n System.out.println(\"-----Search House-----\");\n System.out.println(\"enter id: \");\n int findId = Utility.readInt();\n //call service search method\n House h = houseService.searchHouse(findId);\n if (h != null) {\n System.out.println(h);\n } else {\n System.out.println(\"no designate house found\");\n }\n }",
"public ActH01 getActH01();",
"public Game findGameById(int gameId, User user) throws ServiceException {\r\n\r\n Game game = null;\r\n try {\r\n game = gameDao.findByID(gameId);\r\n } catch (DaoException e) {\r\n logger.error(e);\r\n throw new ServiceException(e);\r\n }\r\n\r\n if (game == null){\r\n return null;\r\n }\r\n\r\n if (user == null || !user.getRole().equals(Role.USER)){\r\n buildGame(game);\r\n return game;\r\n }\r\n\r\n buildGame(game);\r\n boolean validHorseBets = isHorseBetsValidForTable(game);\r\n\r\n if(!validHorseBets){\r\n return null;\r\n }\r\n\r\n return game;\r\n }",
"Response getGameDetails(String gameIdAsString);",
"private void buildHorseRace(HorseRace hr) {\n if (hr != null && hr.getId() !=null ) {\n try {\n RaceDao raceDao = factory.createDao(RaceDao.class);\n HorseDao horseDao = factory.createDao(HorseDao.class);\n BreedDao breedDao = factory.createDao(BreedDao.class);\n\n hr.setRace(raceDao.read(hr.getRace().getId()));\n hr.setHorse(horseDao.read(hr.getHorse().getId()));\n Breed breed = breedDao.read(hr.getHorse().getBreed().getId());\n Horse horse = horseDao.read(hr.getHorse().getId());\n horse.setBreed(breed);\n hr.setHorse(horse);\n } catch (PersistentException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public SideDishEntity findOne(Long id) throws IllegalArgumentException {\n return null;\n }",
"java.lang.String getPlayerId();",
"public Enemy getEnemy(int whichEnemy);",
"@Override\n\tpublic SuperHeroe findOne(Long id) {\n\t\treturn em.find(SuperHeroe.class, id);\n\t}",
"public String GetHumanCard(int value){\n return handHuman.get(value);\n }",
"@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }",
"@Query(\"{ 'id': ?0}\")\n\tHero findById(Integer id);",
"protected HpComponent findHpComponent() {\n return (HpComponent) this.findFirstActiveComponentInObj(GameComponent.GcType.HITPOINT);\n }",
"public GameEntity getGameById(Long id){\n Optional<GameEntity> gameOp = gameRepository.findById(id);\n if (gameOp.isEmpty()) throw new NotFoundException(\"No game with this id exists\");\n return gameOp.get();\n }",
"@Override\n\tpublic Optional<Chitietdonhang> findById(Integer id) {\n\t\treturn chiTietDonHangRepository.findById(id);\n\t}",
"@Override\n\tpublic Player doSreach(int id) throws Exception {\n\t\tif(id<0||id>this.getSize()){\n\t\t\treturn null;\n\t\t}\n\t\tPlayer player=null;\n\t\ttry {\n\t\t\tplayer=dao.doSreach(id);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn player;\n\t}",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();"
] | [
"0.72878313",
"0.69057894",
"0.6625799",
"0.6415136",
"0.6414529",
"0.6412712",
"0.6317568",
"0.6110955",
"0.60811067",
"0.5984432",
"0.58766",
"0.5843004",
"0.5795022",
"0.5750927",
"0.5742347",
"0.5740802",
"0.57266086",
"0.5719369",
"0.56781495",
"0.56749403",
"0.5667441",
"0.56636924",
"0.56406736",
"0.5600229",
"0.5590266",
"0.5583244",
"0.55806017",
"0.5554841",
"0.5546192",
"0.55411965",
"0.55273175",
"0.55225706",
"0.55217785",
"0.5521473",
"0.5515407",
"0.5495925",
"0.5486225",
"0.5479303",
"0.54584974",
"0.54393804",
"0.54297674",
"0.5425024",
"0.5419753",
"0.5419753",
"0.5404543",
"0.538611",
"0.53423077",
"0.53404236",
"0.5339886",
"0.5337983",
"0.53349435",
"0.5331003",
"0.53229076",
"0.5320115",
"0.5316145",
"0.53096443",
"0.53059715",
"0.5299067",
"0.5288659",
"0.52698356",
"0.52650887",
"0.5252979",
"0.5252545",
"0.5244057",
"0.5241795",
"0.52369064",
"0.52303404",
"0.52269024",
"0.520792",
"0.5204873",
"0.52014786",
"0.51986814",
"0.5191592",
"0.51881105",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364",
"0.51765364"
] | 0.88882345 | 0 |
method required for getting all horses | List<Horse> getAllHorses(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getCount() {\n return horses.size();\n }",
"private List<Horse> parseHorses(String[] horsesId) throws ServiceException {\r\n\r\n List<Horse> horses = new ArrayList<>();\r\n for (String stringId : horsesId){\r\n int id = Integer.parseInt(stringId);\r\n Horse horse = null;\r\n try {\r\n horse = horseDao.findByID(id);\r\n } catch (DaoException e) {\r\n logger.error(e);\r\n throw new ServiceException(e);\r\n }\r\n horses.add(horse);\r\n }\r\n\r\n return horses;\r\n }",
"public List<HorarioAtencionEntity> getHorariosAtencion ()\r\n {\r\n return this.horariosAtencion;\r\n }",
"public LinkedList<HorseData> getHorsesList() {\n\t\treturn manager.getFileManager().getList();\n\t}",
"public List<HorarioAsig> getHorario() {\n return Horario;\n }",
"public int getHoras() {\n return horas;\n }",
"public ResultSet MostrarHoras() throws SQLException {\n\t\t\n\t\tString sql = \"SELECT * FROM horas\"; // sentencia busqueda SALA\n\t\t\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t\t//st.close();\n\t\t\t\t//con.close();\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}",
"@GetMapping(\"/horario/mostrarLista\")\n\tpublic List<Horario> mostrarHorarioLista() {\n List<Horario> IsHorario = null;\n try\n {\n IsHorario = horarioServicio.listarHorarios();\n }\n catch (Exception e)\n {\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, \"No se pudieron listar los veterinarios..\");\n }\n return IsHorario;\n\t}",
"HorarioAcademico findHorarioByAsistencia(Asistencia asistencia);",
"public HorsesExecutor getHorsesExecutor() {\n\t\treturn horsesExecutor;\n\t}",
"ArrayList<Habit> getHabits();",
"private void getAllHazards() {\n //http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/\n hideProgress();\n showProgress(ApplicationConstants.DIALOG_HEADER, \"Please wait while we retrieve hazard list from server.\");\n String authToken = ShPrefManager.with(getActivity()).getToken();\n String userId = ShPrefManager.with(getActivity()).getUserId();\n\n RestClient.getAPI().getAllHazards(authToken, new RestCallback<HazardsResponse2>() {\n @Override\n public void failure(RestError restError) {\n hideProgress();\n OpenHomeUtils.showToast(getActivity().getApplicationContext(), \"Could not load hazards list from the server.\", Toast.LENGTH_LONG);\n }\n\n @Override\n public void success(HazardsResponse2 responseData, Response response) {\n hideProgress();\n hazardsList = responseData.getMessage();\n //loadHazardsView(new AddPropertyRequest());\n }\n });\n }",
"public void setHorariosAtencion (List<HorarioAtencionEntity> pHorariosAtencion)\r\n {\r\n this.horariosAtencion = pHorariosAtencion;\r\n }",
"@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}",
"@Override\n public Object getItem(int position) {\n return horses.get(position);\n }",
"List<Horario_Disponible> findAll();",
"public int[][] getHall() {\n return Sala;\n }",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"public int[] VerifierPlagesHorairesTournee() {\r\n\t\tint nbLivraisons = getListeLivraison().size();\r\n\t\tint[] tableauPlageHoraire = new int[nbLivraisons]; // initialiser taille\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// a nombre de liv\r\n\r\n\t\tfor (int i = 0; i < nbLivraisons; i++) {\r\n\t\t\tint valeurPH = VerifierPlagesHorairesUneLiv(getListeLivraison().get(i));\r\n\t\t\ttableauPlageHoraire[i] = valeurPH;\r\n\t\t}\r\n\r\n\t\treturn tableauPlageHoraire;\r\n\t}",
"public List<DeptHead> getHeads()throws Exception {\r\n\t\treturn adminDao.getHeads();\r\n\t}",
"@Override\n public boolean checkHorses(){\n boolean b=false;\n rl.lock();\n try{\n if (numHorses_stable==horses_total)\n b=true;\n }finally{\n rl.unlock();\n }\n return b;\n }",
"public void setHoras(int horas) {\n this.horas = horas;\n }",
"@GetMapping(\"/GetAllHRs\")\r\n public List<HR> viewAllHRs() {\r\n return admin.viewAllHRs();\r\n }",
"public String getHorario() {\n return horario;\n }",
"public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }",
"@SuppressWarnings(\"unchecked\")\n private List<Hall> getHalls(Session session, int idCompany) {\n Query query = session.createQuery(\"FROM Hall WHERE idCompany = :id\");\n query.setParameter(\"id\", idCompany);\n return query.list();\n }",
"private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }",
"@RequestMapping(value = \"/halogens\", method = RequestMethod.GET)\n public List<Element> halogens() {\n return this.chemistryService.findElementsByGroupSorted(17);\n }",
"public List<HorariosJornada> consultarHorariosJornada(\r\n\t\t\tHorariosJornada horariosJornada) throws PotiErpException {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic List<Units> queryAllHx() {\n\t\treturn adi.queryAllHx();\r\n\t}",
"@Override\r\n\tpublic List<HouseState> queryAllHState() {\n\t\treturn adi.queryAllHState();\r\n\t}",
"public void executaHorses() {\n\t\thorsesExecutor = new HorsesExecutor(manager);\n\t\tnew Thread(horsesExecutor).start();\n\t}",
"public String getHorario() {\n\t\treturn this.horario;\n\t}",
"List<Hospital> listall();",
"public List getHeadings() \n {\n return headings;\n }",
"public static List<PontoHorarioBLL> getHelperList(String hql)\n {\n List<Pontohorario> pointList = getSchedulePointList(hql);\n List<PontoHorarioBLL> helperList = new ArrayList<>();\n \n pointList.forEach((point) -> {\n helperList.add(new PontoHorarioBLL(point));\n });\n \n return helperList;\n }",
"public List<Hospital> getHospitals() {\n HospitalDAO hospitalDAO = DAOFactory.getHospitalDAO();\n try {\n return hospitalDAO.getAll();\n } catch (SQLException e) {\n return new ArrayList<>();\n }\n }",
"@Override\n public String addHorse(Observer... horses) {\n for (Observer horse : horses) {\n mounts.add(horse);\n }\n return (Answer.HORSES.toString(2));\n }",
"@AutoEscape\n\tpublic String getHorario();",
"public int getHoras() {\r\n\t\treturn super.getHoras()*2;\r\n\t}",
"public Employee getHRhead();",
"public ArrayList<Hand> getHandsOnTable(){\n\t\treturn this.handsOnTable;\n\t}",
"@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}",
"public Hai[] getHais() {\n\t\treturn m_hais;\n\t}",
"public List<Habitacion> getAllHabitaciones() throws Exception {\n\t\t\tDAOHabitacion daoHabitacion = new DAOHabitacion();\n\t\t\tList<Habitacion> habitacions;\n\t\t\ttry \n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoHabitacion.setConn(conn);\t\t\t\t\n\t\t\t\thabitacions = daoHabitacion.getHabitaciones();\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoHabitacion.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn habitacions;\n\t\t}",
"public SmallGameBoard[] getAllGames(){return games;}",
"@RequestMapping(value = \"/rest/hikes\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<HikeDTO> getAll() {\n log.debug(\"REST request to get all Hikes\");\n List<Hike> hikes = hikeRepository.findAll();\n List<HikeDTO> hikesDto = new ArrayList<HikeDTO>();\n for (Hike hike:hikes){\n \thike.getItemHikes().size();\n HikeDTO hikeDto = new HikeDTO();\n hikeDto.setId(hike.getId());\n hikeDto.setLabel(hike.getLabel());\n hikeDto.setBeginDate(hike.getBeginDate());\n hikeDto.setStartingTown(hike.getStartingTown());\n hikeDto.setDuration(hike.getDuration());\n ItemHikeDTO ihDTO;\n for (ItemHike ih:hike.getItemHikes()){\n \tihDTO = new ItemHikeDTO();\n \tItemDTO idto = new ItemDTO();\n \tidto.setId(ih.getItem().getId());\n \tidto.setLabel(ih.getItem().getLabel());\n \tidto.setWeight(ih.getItem().getWeight());\n \tidto.setOnMe(ih.isOnMe());\n \tidto.setIdHike(hike.getId());\n \tidto.setCategoryId(ih.getCategory().getId());\n \tihDTO.setItem(idto);\n \thikeDto.getItemHikes().add(ihDTO);\n }\n hikesDto.add(hikeDto);\n }\n return hikesDto;\n }",
"public void printAllPlayerHands(){\n\t\tfor(int i = 0 ; i < this.players.length; i++){\n\t\t\tplayers[i].printPlayerHand();\t\t \n\t\t}\t\n\t}",
"@Override\n\tpublic List<Chitietdonhang> tinhDoanhThuTheoNam(Integer nam) {\n\t\treturn chiTietDonHangRepository.tinhDoanhThuTheoNam(nam);\n\t}",
"private void checkHorozontalWin() throws VictoryException {\n\n for (int x = 0; x < 7; x += 3) {\n if (myGame.myBoard[x].getText().toUpperCase().length() > 0) {\n didAnyoneWin = (myGame.myBoard[x].getText().toUpperCase().\n equals(myGame.myBoard[x + 1].getText()) && myGame.myBoard[x].getText()\n .toUpperCase().equals(myGame.myBoard[x + 2].getText().toUpperCase()));\n }\n\n if (didAnyoneWin) {\n throw (new VictoryException());\n }\n }\n }",
"public ResultSet getAllQuestionnaireWines () throws Exception {\r\n String sql = \"SELECT * FROM questionnairewines;\";\r\n return stmt.executeQuery(sql);\r\n }",
"public List<quanhuyen> getAllQuanHuyen() {\n List<quanhuyen> qhlists1 = new ArrayList<>();\n // Step 1: Establishing a Connection\n try (Connection connection = DBConnection.createConnection();\n PreparedStatement statement = connection.prepareStatement(getAll);) {\n\n ResultSet resultSet = statement.executeQuery();\n\n while (resultSet.next()) {\n int id = resultSet.getInt(\"id\");\n String tenQH = resultSet.getString(\"ten\");\n int tpid = resultSet.getInt(\"ThanhPhoid\");\n int trangthai = resultSet.getInt(\"trangthai\");\n qhlists1.add(new quanhuyen(id, tenQH, tpid, trangthai));\n }\n } catch (SQLException e) {\n printSQLException(e);\n }\n return qhlists1;\n }",
"public ArrayList<Habitacion> cargarHabitaciones() {\n HabitacionDAO hdao = new HabitacionDAO();\n return hdao.cargarHabitacion();\n }",
"private ArrayList<Coordinates> getThreats() {\n\t\tArrayList<Coordinates> result = new ArrayList<>();\n\t\tArrayList<Coordinates> adversary = chessboard.getEnemyPieces();\n\t\tCoordinates king = null;\n\t\tking = chessboard.getTurnKing();\n\t\t\t\t\n\t\tfor (Coordinates c : adversary ){\n\t\t\tif ( checkMove(c, king) ){\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"private void setObservacoesHoras(\n\t\t\tint historicoAlterado, int exclusao, int inclusao,\n\t\t\tint horasAcima15m, int horasAcima30m, int horasAcima1h, int horasAcima3h, int horasAcima7h, int horasAcima12h, int horasAcima23h, \n\t\t\tint horasAbaixo15m, int horasAbaixo30m, int horasAbaixo1h, int horasAbaixo3h, int horasAbaixo5h) {\n\t\t\n\t\tString observacaoHorasInconsistencia = setObservacaoHorasInconsistentes();\n\t\t\n\t\tString observacaoInclusao = \"\";\n\t\tif (inclusao > 1) {\n\t\t\tobservacaoInclusao = (inclusao == 2 ? \"1 inclusão manual\" : ((inclusao-1) + \" inclusões manual\"));\n\t\t}\n\t\t\n\t\tString observacaoExclusao = \"\";\n\t\tif (exclusao > 1) {\n\t\t\tobservacaoExclusao = (exclusao == 2 ? \"1 apagado\" : ((exclusao-1) + \" apagados\"));\n\t\t}\n\t\t\n\t\tString historicoAlteracao = \"\";\n\t\tif (historicoAlterado > 1) {\n\t\t\thistoricoAlteracao = (historicoAlterado == 2 ? \"1 histórico alteração\" : ((historicoAlterado-1) + \" históricos de alterações\"));\n\t\t}\n\n\t\tthis.observacaoHoras = \"\";\n\t\t//this.observacaoHoras += observacaoHorasAcima == \"\" ? \"\" : \"<br>\"+observacaoHorasAcima;\n\t\t//this.observacaoHoras += observacaoHorasAbaixo == \"\" ? \"\" : \"<br>\"+observacaoHorasAbaixo;\n\t\tthis.observacaoHoras += observacaoHorasInconsistencia == \"\" ? \"\" : \"<br>\"+observacaoHorasInconsistencia; \n\t\tthis.observacaoHoras += observacaoInclusao == \"\" ? \"\" : \"<br>\"+observacaoInclusao;\n\t\tthis.observacaoHoras += observacaoExclusao == \"\" ? \"\" : \"<br>\"+observacaoExclusao;\n\t\tthis.observacaoHoras += historicoAlteracao == \"\" ? \"\" : \"<br>\"+historicoAlteracao;\n\t\t\n\t\tif (this.ausenciaSolicitacoes != null && !this.ausenciaSolicitacoes.isEmpty()) {\n\t\t\tList<AusenciaSolicitacao> ferias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()==\"férias\").collect(Collectors.toList());\n\t\t\t\n\t\t\tList<AusenciaSolicitacao> ausencias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()!=\"férias\").collect(Collectors.toList());\n\t\t}\n\t\t// folgas / ferias\n\t}",
"@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }",
"public List<Resourec_application> getAllHalls() {\n List<Resourec_application> resourecapplicationList = new ArrayList<>();\r\n //hp = new HashMap();\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor res = db.rawQuery( \"select * from HALL\", null );\r\n res.moveToFirst();\r\n\r\n while(res.isAfterLast() == false){\r\n\r\n String id = res.getString((res.getColumnIndex(\"id\")));\r\n String hallName = res.getString(res.getColumnIndex(HALL_COLUMN_HALLNAME));\r\n String capacity = res.getString(res.getColumnIndex(HALL_COLUMN_CAPACITY));\r\n String floors = res.getString(res.getColumnIndex(HALL_COLUMN_FLOORS));\r\n String rent = res.getString(res.getColumnIndex(HALL_COLUMN_RENT));\r\n String location = res.getString(res.getColumnIndex(HALL_COLUMN_LOCATION));\r\n Log.i(\"HALL\" , hallName );\r\n Resourec_application resourecapplication = new Resourec_application(hallName , location , capacity, floors , rent , id );\r\n resourecapplicationList.add(resourecapplication);\r\n //eventList.add(event);\r\n res.moveToNext();\r\n }\r\n return resourecapplicationList;\r\n }",
"@Override\n\tpublic List<Chitietdonhang> tinhDoanhThuTheoThang(Integer nam, Integer thang) {\n\t\treturn chiTietDonHangRepository.tinhDoanhThuTheoThang(nam, thang);\n\t}",
"public ArrayList<LootOutListItem> getHoard() {\n return hoard;\n }",
"public Vector<Nodo> getHijos() {\n if (!this.isExpanded()) {\n this.expand();\n }\n return this.hijos;\n }",
"private void initHorseAndHome() {\n\t\thorses=new Horse[48];\n\t\thomes=new AnchorPane[4];\n\t\thomes[0]=h1;\n\t\thomes[1]=h2;\n\t\thomes[2]=h3;\n\t\thomes[3]=h4;\n\t}",
"@Override\n\tpublic List<HangTrongKho> findAll() {\n\t\treturn null;\n\t}",
"public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }",
"public void thisHorse() {\n\t\tHorsesView horses = (HorsesView) manager.getPanel(Constants.H_VIEW_NAME);\n\t\tif (horses.getPhv().getAmount().isEmpty() || !horses.getPhv().getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")\n\t\t\t\t|| Float.parseFloat(horses.getPhv().getAmount()) <= 0) {\n\t\t\tnew Dialeg().setWarningText(\"You must enter a positive amount!\");\n\t\t} else {\n\t\t\thorses.getPhv().obreDialeg();\n\t\t\tif (horses.getPhv().getDialeg().getResult() == JOptionPane.OK_OPTION) {\n\t\t\t\tString name = horses.getPhv().getHorseName();\n\t\t\t\thorseBet = new Bet(Double.parseDouble(horses.getPhv().getAmount()), name);\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(horseBet));\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\thorses.getPhv().dispose();\n\t\t\t}\n\t\t}\n\t}",
"private void initAndSortAllHands() {\n\t\tArrayList<Card> sevenCards;\n\t\tPlayer player;\n\n\t\t// initalize the seven cards hand\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++) {\n\t\t\tsevenCards = new ArrayList<Card>(7);\n\t\t\tplayer = table.getTablePlayers().get(i);\n\n\t\t\tsevenCards.add(player.getHoleCard1());\n\t\t\tsevenCards.add(player.getHoleCard2());\n\t\t\tsevenCards.add(dealer.getFlop()[0]);\n\t\t\tsevenCards.add(dealer.getFlop()[1]);\n\t\t\tsevenCards.add(dealer.getFlop()[2]);\n\t\t\tsevenCards.add(dealer.getTurn());\n\t\t\tsevenCards.add(dealer.getRiver());\n\n\t\t\ttable.getTablePlayers().get(i).setSevenCardsTempHand(sevenCards);\n\t\t}\n\n\t\t// sort the hand\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++)\n\t\t\ttable.getTablePlayers().get(i).sortHandByRank(table.getTablePlayers().get(i).getSevenCardsTempHand());\n\t}",
"public Set<Colour> getWinningPlayers();",
"public List<HrCStatitem> findAll();",
"List<Averia> listarAverias() throws BusinessException;",
"@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 List<SeatEntity> getAll();",
"public List<Timetable> getAllTimetable() throws Exception;",
"Horse getHorse(long id);",
"public static void horoscopo() {\n\n ArrayList<String> frases = new ArrayList<>();\n\n frases.add(\"Todo lo que seas capaz de creer, eres capaz de conseguir.\");\n frases.add(\"Serás más poderoso cuando tengas control total sobre ti mismo.\");\n frases.add(\"La sabiduría y la casualidad no van unidas de la mano.\");\n frases.add(\"Lo que hay en el ayer o en el mañana no es nada comparado con lo que hay en nuestro interior.\");\n frases.add(\"Cáete siete veces y levántate ocho.\");\n frases.add(\"Nunca es tarde para comenzar un nuevo proyecto, para ser quien siempre has deseado ser.\");\n frases.add(\"Con pensamientos positivos y perseverancia, solo es cuestión de tiempo que superes las adversidades y te propongas nuevos retos.\");\n frases.add(\"La vida es un 10% lo que nos ocurre, y un 90% cómo reaccionamos a ello.\");\n frases.add(\"No es más rico quien más tiene, sino quien menos necesita.\");\n frases.add(\"Intenta y falla, pero nunca falles en intentarlo.\");\n frases.add(\"Solo los hombres más sabios son capaces de saborear los momentos más simples.\");\n frases.add(\"cada segundo que goces, será segundo aprovechado.\");\n\n double numero = Math.round(Math.random() * 11);\n int numeroAleatorio = (int) numero;\n\n //Random r = new Random(); \n // int randomNumber = r.nextInt(frases.size());\n System.out.println(\"Frase horóscopo: \" + frases.get(numeroAleatorio));\n\n }",
"public List<Habitacion> getAllHabitacionesDisponibles() throws Exception {\n\t\t\tDAOHabitacion daoHabitacion = new DAOHabitacion();\n\t\t\tList<Habitacion> habitacions;\n\t\t\ttry \n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoHabitacion.setConn(conn);\n\t\t\t\thabitacions = daoHabitacion.getHabitacionesDisponibles();\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoHabitacion.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn habitacions;\n\t\t}",
"@Override\r\n\tpublic List<Crew> getAllCrew() {\r\n\t\tList<Crew> crew = new ArrayList<>();\r\n\t\tcrew.addAll(pilots);\r\n\t\tcrew.addAll(cabinCrew);\r\n\t\treturn crew;\r\n\t}",
"public java.lang.String getHorInicio() {\n return horInicio;\n }",
"@GET\n public List<HospedajeDTO> getHospedajes() throws WebApplicationException{\n return listEntity2DetailDTO(hospedajeLogic.getHospedajes());\n }",
"public ArrayList<Hand> getHandsOnTable() {\n\t\treturn handsOnTable;\n\t}",
"public void setHorario(String horario) {\n this.horario = horario;\n }",
"public static void showAllHouseNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.HOUSE);\n }",
"public List getSubHeadings() \n {\n return subHeadings;\n }",
"@GetMapping(\"/hlds\")\n @Timed\n public List<Hld> getAllHlds() {\n log.debug(\"REST request to get all Hlds\");\n return hldRepository.findAll();\n }",
"public List<TimeSheet> showAllTimeSheet(){\n log.info(\"Inside TimeSheetService#ShowAllTimeSheet() Method\");\n List<TimeSheet> allTimeSheet = timeSheetRepository.findAll();\n return allTimeSheet;\n }",
"public List<Integer> getByHour() {\n\t\treturn byHour;\n\t}",
"public List<quanhuyen> getQuanHuyenByThanhPhoid(int idtp) {\n List<quanhuyen> listQuanHuyen = new ArrayList<>();\n // Step 1: Establishing a Connection\n try (Connection connection = DBConnection.createConnection();\n PreparedStatement statement = connection.prepareStatement(getQuanHuyenByThanhphoid);) {\n statement.setInt(1, idtp);\n ResultSet resultSet = statement.executeQuery();\n\n while (resultSet.next()) {\n int id = resultSet.getInt(\"id\");\n String tenQH = resultSet.getString(\"ten\");\n int thanhphoid = resultSet.getInt(\"ThanhPhoid\");\n int trangthai = resultSet.getInt(\"trangthai\");\n listQuanHuyen.add(new quanhuyen(id, tenQH, thanhphoid, trangthai));\n }\n } catch (SQLException e) {\n printSQLException(e);\n }\n return listQuanHuyen;\n }",
"public void evaluateAllHands() {\n\t\tPlayer player;\n\t\tresetHandRanks();\n\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++) {\n\t\t\tplayer = table.getTablePlayers().get(i);\n\t\t\thand = new Card[5];\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (checkStrFlush(player))\n\t\t\t\tcontinue;\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (checkQuads(player))\n\t\t\t\tcontinue;\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (checkFullHouse(player))\n\t\t\t\tcontinue;\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (checkFlush(player))\n\t\t\t\tcontinue;\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (checkStraight(player))\n\t\t\t\tcontinue;\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (player.isTrips())\n\t\t\t\tcontinue;\n\n\t\t\tinitAndSortAllHands();\n\t\t\tif (checkTwoPairs(player))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tinitAndSortAllHands();\n\t\t\tif (player.isPair())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tinitAndSortAllHands();\n\t\t\tcheckHighCard(player);\n\t\t}\n\t}",
"@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}",
"@Override\n public Set<Shelf> getShelves() {\n return new HashSet<>(shelves);\n }",
"public List<OwnedWarp> getAll() {\n List<OwnedWarp> ret = new ArrayList<OwnedWarp>();\n Set<String> keyset = warps.keySet();\n for(String key : keyset)\n ret.addAll(warps.get(key));\n return ret;\n }",
"@Test\n void getAllCinemaHalls() {\n var resource = new CinemaHallResource();\n var result = (List<CinemaHallDto>) resource.getAllCinemaHalls().getEntity();\n assertNotNull(result);\n }",
"@Override\n\tpublic List<Horario> guardarHorarios(List<Horario> h) {\n\t\tint idMedico;\n\t\tMedico objMedico;\n\t\tList<Horario> aux = horarioRepository.findAll();\t\t// Obtener la lista actual de horarios del Repo\n\t\t\n\t\tfor (int i = 0; i < h.size(); i++) {\n\t\t\tidMedico = h.get(i).getMedico_id().getIdMedico(); \t// Obtener el Id del medico\n\t\t\tobjMedico = medicoS.obtenerMedico(idMedico); \t\t// Buscar y capturar al objeto medico\n\t\t\th.get(i).setMedico_id(objMedico);\t\t\t\t\t// Setear el medico dentro del campo de horario\n\t\t\taux.add(h.get(i));\t\t\t\t\t\t\t\t\t// Añadimos un nuevo horario a la lista actual\n\t\t}\n\t\treturn horarioRepository.saveAll(aux);\t\t\t\t\t// Guardamos la lista actualizada de horarios en el repo\n\t}",
"@Override\n\tpublic List<DgItemTimeLimitPic> selectAllHPic() {\n\t\treturn dgItemTimeLimitPicMapper.selectAllHPic();\n\t}",
"public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}",
"@Override\r\n\tpublic List<DataPack> queryOil() {\n\t\tList<DataPack> queryOil = homePageDao.queryOil();\r\n\t\t\r\n\t\treturn queryOil;\r\n\t}",
"public List<HrJBorrowcontract> findAll();",
"@RequestMapping(value = \"/project-hours\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<ProjectHour> getAllProjectHours() {\n log.debug(\"REST request to get all ProjectHours\");\n return projectHourService.findAll();\n }",
"@Override\n\tpublic List<Goods> GetGoodsByTime() {\n\t\treturn null;\n\t}",
"public abstract GoalList getGoals();",
"public List<ShelfItem> getAll(String username, Integer from, Integer to);",
"public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }"
] | [
"0.6499369",
"0.6482685",
"0.63303274",
"0.6295397",
"0.62829894",
"0.62758243",
"0.5979385",
"0.5883195",
"0.5790614",
"0.5772095",
"0.5708071",
"0.57055867",
"0.5693828",
"0.566963",
"0.5633258",
"0.56264454",
"0.5598336",
"0.5574624",
"0.55703104",
"0.55660266",
"0.5551576",
"0.55433464",
"0.55210835",
"0.5515584",
"0.5514906",
"0.5510683",
"0.54723793",
"0.54427564",
"0.5440943",
"0.5434786",
"0.5421497",
"0.5419314",
"0.5381481",
"0.5363394",
"0.5354094",
"0.5346712",
"0.533304",
"0.52974755",
"0.52672046",
"0.52547824",
"0.5247382",
"0.52370644",
"0.5230786",
"0.5192265",
"0.5191955",
"0.51882297",
"0.5183258",
"0.5182042",
"0.5150476",
"0.51468945",
"0.5146382",
"0.5131213",
"0.51264906",
"0.5124568",
"0.5117977",
"0.5109259",
"0.5108241",
"0.50929",
"0.5090042",
"0.5055715",
"0.50542116",
"0.50423086",
"0.5034327",
"0.5033763",
"0.5033519",
"0.5030886",
"0.50237244",
"0.50164557",
"0.50153506",
"0.50099164",
"0.50012213",
"0.49978483",
"0.4993085",
"0.49783203",
"0.49636352",
"0.49522245",
"0.4948601",
"0.49473",
"0.49440002",
"0.49382365",
"0.49227232",
"0.49210238",
"0.49135062",
"0.49097922",
"0.49034905",
"0.49004212",
"0.4891282",
"0.48870304",
"0.4885717",
"0.4882632",
"0.48816407",
"0.4875365",
"0.48691994",
"0.48665783",
"0.4864956",
"0.48637554",
"0.485374",
"0.48462883",
"0.48416167",
"0.48397434"
] | 0.7912154 | 0 |
method required for deletion horse by id | Horse deleteHorse(long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteMataKuliah (int id);",
"void deleteChallengeById(int id);",
"public void deleteById(int theId);",
"@Override\r\n\tpublic String deleteDeal() {\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine headLine = headLineService.load(iId);\r\n\t\t\tString filePath = ServletActionContext.getServletContext().getRealPath(\"/\");\r\n\t\t\tnew File(filePath+headLine.getLineImg()).delete();\r\n\t\t\tLong result=headLineService.delete(iId);\r\n\t\t\tif(result>0) {\r\n\t\t\t\treturn \"go_ok\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_ok\";\r\n\t}",
"public abstract void deleteByID( int id);",
"@Override\n\tpublic void deleteById(int theId) {\n\t\t\n\t}",
"@Override\r\n\tpublic boolean delHA(int id) {\n\t\treturn adi.delHA(id);\r\n\t}",
"public void delete(int id);",
"@Override\n public void delete(int id) {\n }",
"@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}",
"public void deleteCrime(UUID id) {\n\n }",
"@Override\n\tpublic void delete(int id) {\n\t}",
"void delete(Integer id);",
"void delete(Integer id);",
"public int delete( Integer idConge ) ;",
"@Override\r\n @Transactional\r\n public String deleteHarvest(Long id){\r\n harvestRepository.delete(harvestRepository.findById(id)\r\n .orElseThrow(()-> new HarvestNotFoundException(\"Harvest with \" + id + \" not found. Can't be deleted\")));\r\n return \"crop with \" + id +\"Deleted\";\r\n }",
"int deleteByExample(DishExample example);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"@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}",
"void delete( Integer id );",
"void delete(ID id);",
"@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}",
"void delete(int id);",
"void delete(int id);",
"@Override\n public void deleteHeroVillain(int id) {\n jdbcTemplate.update(SQL_DELETE_HVPOWERS_HV_ID, id);\n \n // delete HVSightings relationship for HeroVillain\n jdbcTemplate.update(SQL_DELETE_HVSIGHTINGS_HV_ID, id);\n \n // delete HVOrganizations relationship for HeroVillain\n jdbcTemplate.update(SQL_DELETE_HVORGANIZATIONS_HV_ID, id);\n \n // delete HV\n jdbcTemplate.update(SQL_DELETE_HEROVILLAIN, id);\n }",
"public void eliminar(Long id) throws AppException;",
"public abstract boolean deleteGame(int game_id) throws SQLException;",
"Integer delete(int id);",
"void deleteElective(Long id);",
"void deleteById(int id);",
"@Override\r\n\tpublic void delete(String id) {\n\r\n\t}",
"@Override\r\n\tpublic boolean delHS(int id) {\n\t\treturn adi.delHS(id);\r\n\t}",
"@Override\n\tpublic void delete(String id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(String id) {\n\t\t\n\t}",
"int deleteByPrimaryKey(Integer hId);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"@Override\n\tpublic void delete(Integer id) {\n\n\t}",
"@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}",
"@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}",
"void deletePokemon(Long pokemonId);",
"@Override\n\tpublic void delete(String id) {\n\n\t}",
"@Override\n public void delete(SideDishEntity entity) {\n\n }",
"void delete(int id) throws Exception;",
"boolean delete(DishCategory dishCategory);",
"public void delete(K id);",
"public void delete(int id) {\n\n\t}",
"@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}",
"public void delete(Integer id) {\n\r\n\t}",
"@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}",
"@Override\npublic void deleteById(String id) {\n\t\n}",
"public abstract void delete(String ID);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"int deleteByExample(HuoDongExample example);",
"@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}",
"public void deleteObject(String id) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteRoutine(int id) {\n\n\t}",
"@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}",
"Horse getHorse(long id);",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"void delete(I id);",
"@Override\n\tpublic void delete(Serializable id) {\n\n\t}",
"void remove(int id);",
"public abstract boolean delete(PK id);",
"@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}",
"@Override\n\tpublic void del(Object id) {\n\n\t}",
"@Override\n\tpublic int delete(Object id) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}",
"void delete(long idToDelete);",
"void delete(long id);",
"void delete(long id);",
"void delete(long id);",
"@Override\n\tpublic void delete(Serializable id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Game game) {\n\t\t\n\t}",
"void delete(int entityId);",
"void delete( Long id );",
"@Override\n\tpublic void delete(Long id) {\n\t}",
"@Override\n public void delete(int id) {\n repr.delete(id);\n }",
"public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}",
"@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Long id) {\n\n\t}",
"@Override\n\tpublic void delete(Long id) {\n\n\t}",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);"
] | [
"0.729181",
"0.70943594",
"0.70242864",
"0.6994548",
"0.69803697",
"0.6877636",
"0.6863092",
"0.68574023",
"0.68547475",
"0.6840266",
"0.68182206",
"0.6812309",
"0.6810238",
"0.6810238",
"0.68016773",
"0.6801586",
"0.6791393",
"0.67836046",
"0.67836046",
"0.67836046",
"0.67836046",
"0.67836046",
"0.67836046",
"0.6778136",
"0.6778136",
"0.6778136",
"0.6778136",
"0.6777114",
"0.6752217",
"0.6735205",
"0.6733121",
"0.6733121",
"0.6725353",
"0.67200065",
"0.67087847",
"0.67056924",
"0.6705674",
"0.67021847",
"0.6700505",
"0.6698265",
"0.6692749",
"0.6692749",
"0.668487",
"0.6683047",
"0.6683047",
"0.6683047",
"0.6682862",
"0.66803324",
"0.6677542",
"0.66765434",
"0.667025",
"0.6667814",
"0.6662029",
"0.66543716",
"0.6645178",
"0.6640194",
"0.6637515",
"0.6632454",
"0.6631704",
"0.6631691",
"0.66269517",
"0.66214126",
"0.66214126",
"0.66214126",
"0.66214126",
"0.66214126",
"0.6616117",
"0.6607492",
"0.66003966",
"0.6586136",
"0.65739363",
"0.655406",
"0.6548979",
"0.6548979",
"0.654777",
"0.65474826",
"0.65364975",
"0.65363264",
"0.65352994",
"0.65347445",
"0.653052",
"0.6528652",
"0.65276635",
"0.65275097",
"0.65275097",
"0.65275097",
"0.6523573",
"0.65217304",
"0.65146047",
"0.6514543",
"0.6514393",
"0.65107876",
"0.6500975",
"0.648631",
"0.6479436",
"0.6479436",
"0.6479076",
"0.6479076",
"0.6479076",
"0.6479076"
] | 0.90951866 | 0 |
/ WARNING Removed try catching itself possible behaviour change. | public Class_17594 Method_6214() {
Class_17594 class_17594;
this.Field_6199.lock();
try {
Class_17594 class_175942;
if (this.Field_6192 != null && this.Field_6192.Method_17610() == Class_15815.Field_15817) {
Class_17594 class_175943;
Class_17594 class_175944 = class_175943 = null;
return class_175944;
}
if (this.Field_6192 != null && this.Field_6192.Method_17610() != Class_15815.Field_15819) {
this.Field_6192.Method_17603();
this.Field_6192 = null;
}
this.Field_6192 = new Class_17594(this, Class_26332.Field_26334);
this.Field_6192.Method_17606(this.Field_6209);
class_17594 = class_175942 = this.Field_6192;
}
finally {
this.Field_6199.unlock();
}
return class_17594;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void m9741j() throws cf {\r\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic void catchPiece() {\n\t\t\n\t}",
"public void mo1944a() throws cf {\r\n }",
"public void mo1976s() throws cf {\r\n }",
"@Override\n\tpublic void catching(Throwable t) {\n\n\t}",
"public void mo1964g() throws cf {\r\n }",
"public void mo1962e() throws cf {\r\n }",
"public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }",
"void m5770d() throws C0841b;",
"@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}",
"void mo57276a(Exception exc);",
"void m5771e() throws C0841b;",
"public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }",
"public void mo1972o() throws cf {\r\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}",
"public void mo1970m() throws cf {\r\n }",
"private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }",
"public void testingTryCatch() {\r\n\t\tSystem.err.println(\"Class NewFeatures, method testingTryCatch called!\");\r\n\t\ttry (FileInputStream stream = new FileInputStream(\"hey\")) {\r\n\t\t\tSystem.out.println(\"Try/block accessed!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tThread.currentThread().getStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingTryCatch done!\");\r\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"public void mo1966i() throws cf {\r\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}",
"public void mo1963f() throws cf {\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }",
"@Override\r\n\tpublic void doException() {\n\r\n\t}",
"void m5769c() throws C0841b;",
"private void throwsError() throws OBException {\n }",
"public void mo1974q() throws cf {\r\n }",
"public void mo5385r() {\n throw null;\n }",
"public void mo1960c() throws cf {\r\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"default void recover() {}",
"static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }",
"public void pos1() {\n int num1, num2;\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"You should not divide a number by zero\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }",
"private void m44337f() throws BaseException {\n Throwable th = this.f30622n;\n if (th != null) {\n if (th instanceof StreamClosedException) {\n throw new BaseException(1068, \"async reader closed!\");\n }\n DownloadUtils.m44505a(th, \"async_read\");\n }\n throw new BaseException(1069, \"async reader terminated!\");\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"private void rethrowIfFailed()\r\n/* 198: */ {\r\n/* 199:232 */ Throwable cause = cause();\r\n/* 200:233 */ if (cause == null) {\r\n/* 201:234 */ return;\r\n/* 202: */ }\r\n/* 203:237 */ PlatformDependent.throwException(cause);\r\n/* 204: */ }",
"public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }",
"public static void sync() {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 24\n if (r0 >= r1) goto L_0x001f\n java.io.File r0 = new java.io.File\n java.lang.String r1 = mStrPath\n r0.<init>(r1)\n r2 = 0\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n java.io.FileDescriptor r0 = r1.getFD() // Catch:{ Exception -> 0x0044 }\n r0.sync() // Catch:{ Exception -> 0x0044 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x003d }\n L_0x001f:\n return\n L_0x0020:\n r0 = move-exception\n r1 = r2\n L_0x0022:\n r0.printStackTrace() // Catch:{ all -> 0x0042 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x002b }\n goto L_0x001f\n L_0x002b:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0030:\n r0 = move-exception\n r1 = r2\n L_0x0032:\n if (r1 == 0) goto L_0x0037\n r1.close() // Catch:{ Exception -> 0x0038 }\n L_0x0037:\n throw r0\n L_0x0038:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0037\n L_0x003d:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0042:\n r0 = move-exception\n goto L_0x0032\n L_0x0044:\n r0 = move-exception\n goto L_0x0022\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.syu.util.MySharePreference.sync():void\");\n }",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"void m5768b() throws C0841b;",
"@Test(timeout = 4000)\n public void test007() throws Throwable {\n StringReader stringReader0 = new StringReader(\"catch\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 106, 0);\n javaCharStream0.maxNextCharInd = (-3000);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }",
"private void inizia() throws Exception {\n }",
"Block getTryBlock();",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBObjectListener.FetcherListener fBObjectListener_FetcherListener0 = null;\n FileSystemHandling.shouldAllThrowIOExceptions();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative(1433);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }",
"public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }",
"protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Invalid escape character at line \");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n // Undeclared exception!\n try { \n javaCharStream0.AdjustBuffSize();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n BufferedInputStream bufferedInputStream0 = new BufferedInputStream((InputStream) null);\n JavaCharStream javaCharStream0 = new JavaCharStream(bufferedInputStream0, 98, (-5023));\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((InputStream) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.Reader\", e);\n }\n }",
"@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n \n \t}",
"@Test(timeout = 4000)\n public void test18() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n FileSystemHandling.shouldAllThrowIOExceptions();\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative((-513));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"@Override\r\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\r\n\t\t}",
"@Override\n boolean canFail() {\n return true;\n }",
"@Test(timeout = 4000)\n public void test122() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(3131);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(182, \"IK\", \"IK\", \"IK\", \"The FileFilter must not be null\");\n classWriter0.firstField = fieldWriter0;\n ClassWriter classWriter1 = new ClassWriter(1);\n Item item0 = classWriter0.key2;\n fieldWriter0.getSize();\n fieldWriter0.visitAnnotation(\"Exceptions\", false);\n classWriter1.newFloat((-2110.0F));\n item0.hashCode = 231;\n // Undeclared exception!\n try { \n frame0.execute(182, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}",
"@Test(timeout = 4000)\n public void test256() throws Throwable {\n Form form0 = new Form(\"w\");\n FileInput fileInput0 = new FileInput(form0, \"w\", \"w\");\n // Undeclared exception!\n try { \n fileInput0.strong((Object) \"w\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }",
"public void swrap() throws NoUnusedObjectExeption;",
"@Override\n public void onMachineBroken()\n {\n \n }",
"@Test(timeout = 4000)\n public void test369() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"J]'z8)\", \"J]'z8)\");\n // Undeclared exception!\n try { \n fileInput0.dfn((Object) \"J]'z8)\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"@Test(timeout = 4000)\n public void test290() throws Throwable {\n Form form0 = new Form(\"first character in input was UNICODE noncharacter (0xFFFE)- input requires int swapping\");\n // Undeclared exception!\n try { \n form0.bdo(\"first character in input was UNICODE noncharacter (0xFFFE)- input requires int swapping\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public interface RoutineException {}",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(159);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter1.newFieldItem(\"y])rS3DhfdTg\", \"y])rS3DhfdTg\", \"\");\n Item item0 = classWriter0.newLong(1);\n classWriter0.newLong(2);\n Item item1 = classWriter0.key2;\n // Undeclared exception!\n try { \n frame0.execute(159, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test023() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseAndSimplifyResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test098() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n ClassWriter classWriter2 = new ClassWriter(2);\n Item item0 = classWriter2.newLong(2);\n classWriter1.newLong(2178L);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(197, (-5054), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test054() throws Throwable {\n Form form0 = new Form(\"null\");\n Hidden hidden0 = new Hidden(form0, \"null\", \"null\");\n // Undeclared exception!\n try { \n hidden0.sub((Object) \"null\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public int getTryCatchBlockIndex() {\n/* 424 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }",
"@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}",
"protected Problem() {/* intentionally empty block */}",
"public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n Form form0 = new Form(\"Lc7/B.MJD\");\n Checkbox checkbox0 = new Checkbox(form0, \"Cannot add a form element. No surrounding form found.\", \"[rO+3\");\n // Undeclared exception!\n try { \n checkbox0.samp((Object) \"Cannot add a form element. No surrounding form found.\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test063() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"zuQ-ES@*gn\");\n Type type1 = Type.INT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(22, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n Item item0 = classWriter0.newFieldItem(\"\", \"\", \"T~1S2uS7<aMtHqcUL\");\n Frame frame1 = new Frame();\n // Undeclared exception!\n try { \n frame1.execute(154, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test308() throws Throwable {\n Form form0 = new Form(\"S_AON\");\n // Undeclared exception!\n try { \n form0.object();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public static TypeReference newTryCatchReference(int tryCatchBlockIndex) {\n/* 296 */ return new TypeReference(0x42000000 | tryCatchBlockIndex << 8);\n/* */ }",
"@Test(timeout = 4000)\n public void test362() throws Throwable {\n Form form0 = new Form(\"\\r\");\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"\\r\");\n // Undeclared exception!\n try { \n form0.sup((Object) xmlEntityRef0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test(timeout = 4000)\n public void test17() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n linkedList0.push((byte[][]) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.previous();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"protected abstract void exceptionsCatching( ExceptionType exceptionType );",
"@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}",
"@Test(timeout = 4000)\n public void test035() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test043() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((Reader) stringReader0, (-1), (-1), (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}",
"private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }"
] | [
"0.6632181",
"0.6445396",
"0.6306119",
"0.62854445",
"0.62589747",
"0.6257267",
"0.62414694",
"0.6176756",
"0.61748254",
"0.6164259",
"0.61007214",
"0.60852796",
"0.605599",
"0.6040991",
"0.59922194",
"0.59886706",
"0.59456414",
"0.5924899",
"0.5917984",
"0.5904189",
"0.58977824",
"0.58977824",
"0.5888047",
"0.5882307",
"0.58814925",
"0.58743274",
"0.5860816",
"0.58535177",
"0.5852248",
"0.5814755",
"0.5811182",
"0.5803199",
"0.5793067",
"0.5777344",
"0.57765335",
"0.57765335",
"0.57765335",
"0.57765335",
"0.57765335",
"0.57691956",
"0.57691956",
"0.57652605",
"0.57426697",
"0.57406276",
"0.5737391",
"0.57225794",
"0.5709767",
"0.5692263",
"0.56865764",
"0.567942",
"0.56650174",
"0.5660269",
"0.5651905",
"0.5640496",
"0.56377506",
"0.56331736",
"0.5625917",
"0.56162924",
"0.5614961",
"0.5614665",
"0.5612099",
"0.5603578",
"0.5601307",
"0.5588807",
"0.55878013",
"0.55869776",
"0.5583092",
"0.5577438",
"0.5566169",
"0.55590147",
"0.554849",
"0.55423385",
"0.55381125",
"0.5537796",
"0.55334353",
"0.5522028",
"0.55200833",
"0.5520014",
"0.55180687",
"0.5515698",
"0.5509214",
"0.5508478",
"0.5507652",
"0.5503138",
"0.5499738",
"0.5499531",
"0.54947084",
"0.5492145",
"0.5486388",
"0.54815435",
"0.5480095",
"0.54772025",
"0.5476311",
"0.54745424",
"0.5472653",
"0.54699475",
"0.54659504",
"0.5461366",
"0.54564786",
"0.5455968",
"0.5454358"
] | 0.0 | -1 |
/ WARNING Removed try catching itself possible behaviour change. | public void Method_6217(Class_26579 class_26579) {
this.Field_6177.lock();
try {
long l = System.nanoTime();
if (this.Field_6209.Method_26587()) {
this.Field_6183 = l;
}
this.Field_6184 = l;
this.Field_6209 = class_26579;
}
finally {
this.Field_6177.unlock();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void m9741j() throws cf {\r\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic void catchPiece() {\n\t\t\n\t}",
"public void mo1944a() throws cf {\r\n }",
"public void mo1976s() throws cf {\r\n }",
"@Override\n\tpublic void catching(Throwable t) {\n\n\t}",
"public void mo1964g() throws cf {\r\n }",
"public void mo1962e() throws cf {\r\n }",
"public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }",
"void m5770d() throws C0841b;",
"@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}",
"void mo57276a(Exception exc);",
"void m5771e() throws C0841b;",
"public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }",
"public void mo1972o() throws cf {\r\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}",
"public void mo1970m() throws cf {\r\n }",
"private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }",
"public void testingTryCatch() {\r\n\t\tSystem.err.println(\"Class NewFeatures, method testingTryCatch called!\");\r\n\t\ttry (FileInputStream stream = new FileInputStream(\"hey\")) {\r\n\t\t\tSystem.out.println(\"Try/block accessed!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tThread.currentThread().getStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingTryCatch done!\");\r\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"public void mo1966i() throws cf {\r\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}",
"public void mo1963f() throws cf {\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }",
"@Override\r\n\tpublic void doException() {\n\r\n\t}",
"void m5769c() throws C0841b;",
"private void throwsError() throws OBException {\n }",
"public void mo1974q() throws cf {\r\n }",
"public void mo5385r() {\n throw null;\n }",
"public void mo1960c() throws cf {\r\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"default void recover() {}",
"static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }",
"public void pos1() {\n int num1, num2;\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"You should not divide a number by zero\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }",
"private void m44337f() throws BaseException {\n Throwable th = this.f30622n;\n if (th != null) {\n if (th instanceof StreamClosedException) {\n throw new BaseException(1068, \"async reader closed!\");\n }\n DownloadUtils.m44505a(th, \"async_read\");\n }\n throw new BaseException(1069, \"async reader terminated!\");\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"private void rethrowIfFailed()\r\n/* 198: */ {\r\n/* 199:232 */ Throwable cause = cause();\r\n/* 200:233 */ if (cause == null) {\r\n/* 201:234 */ return;\r\n/* 202: */ }\r\n/* 203:237 */ PlatformDependent.throwException(cause);\r\n/* 204: */ }",
"public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }",
"public static void sync() {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 24\n if (r0 >= r1) goto L_0x001f\n java.io.File r0 = new java.io.File\n java.lang.String r1 = mStrPath\n r0.<init>(r1)\n r2 = 0\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n java.io.FileDescriptor r0 = r1.getFD() // Catch:{ Exception -> 0x0044 }\n r0.sync() // Catch:{ Exception -> 0x0044 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x003d }\n L_0x001f:\n return\n L_0x0020:\n r0 = move-exception\n r1 = r2\n L_0x0022:\n r0.printStackTrace() // Catch:{ all -> 0x0042 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x002b }\n goto L_0x001f\n L_0x002b:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0030:\n r0 = move-exception\n r1 = r2\n L_0x0032:\n if (r1 == 0) goto L_0x0037\n r1.close() // Catch:{ Exception -> 0x0038 }\n L_0x0037:\n throw r0\n L_0x0038:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0037\n L_0x003d:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0042:\n r0 = move-exception\n goto L_0x0032\n L_0x0044:\n r0 = move-exception\n goto L_0x0022\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.syu.util.MySharePreference.sync():void\");\n }",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"void m5768b() throws C0841b;",
"@Test(timeout = 4000)\n public void test007() throws Throwable {\n StringReader stringReader0 = new StringReader(\"catch\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 106, 0);\n javaCharStream0.maxNextCharInd = (-3000);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }",
"private void inizia() throws Exception {\n }",
"Block getTryBlock();",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBObjectListener.FetcherListener fBObjectListener_FetcherListener0 = null;\n FileSystemHandling.shouldAllThrowIOExceptions();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative(1433);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }",
"public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Invalid escape character at line \");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n // Undeclared exception!\n try { \n javaCharStream0.AdjustBuffSize();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n BufferedInputStream bufferedInputStream0 = new BufferedInputStream((InputStream) null);\n JavaCharStream javaCharStream0 = new JavaCharStream(bufferedInputStream0, 98, (-5023));\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((InputStream) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.Reader\", e);\n }\n }",
"@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n \n \t}",
"@Test(timeout = 4000)\n public void test18() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n FileSystemHandling.shouldAllThrowIOExceptions();\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative((-513));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\r\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\r\n\t\t}",
"@Test(timeout = 4000)\n public void test122() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(3131);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(182, \"IK\", \"IK\", \"IK\", \"The FileFilter must not be null\");\n classWriter0.firstField = fieldWriter0;\n ClassWriter classWriter1 = new ClassWriter(1);\n Item item0 = classWriter0.key2;\n fieldWriter0.getSize();\n fieldWriter0.visitAnnotation(\"Exceptions\", false);\n classWriter1.newFloat((-2110.0F));\n item0.hashCode = 231;\n // Undeclared exception!\n try { \n frame0.execute(182, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}",
"@Test(timeout = 4000)\n public void test256() throws Throwable {\n Form form0 = new Form(\"w\");\n FileInput fileInput0 = new FileInput(form0, \"w\", \"w\");\n // Undeclared exception!\n try { \n fileInput0.strong((Object) \"w\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }",
"public void swrap() throws NoUnusedObjectExeption;",
"@Override\n public void onMachineBroken()\n {\n \n }",
"@Test(timeout = 4000)\n public void test369() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"J]'z8)\", \"J]'z8)\");\n // Undeclared exception!\n try { \n fileInput0.dfn((Object) \"J]'z8)\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"@Test(timeout = 4000)\n public void test290() throws Throwable {\n Form form0 = new Form(\"first character in input was UNICODE noncharacter (0xFFFE)- input requires int swapping\");\n // Undeclared exception!\n try { \n form0.bdo(\"first character in input was UNICODE noncharacter (0xFFFE)- input requires int swapping\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public interface RoutineException {}",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(159);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter1.newFieldItem(\"y])rS3DhfdTg\", \"y])rS3DhfdTg\", \"\");\n Item item0 = classWriter0.newLong(1);\n classWriter0.newLong(2);\n Item item1 = classWriter0.key2;\n // Undeclared exception!\n try { \n frame0.execute(159, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test023() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseAndSimplifyResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test098() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n ClassWriter classWriter2 = new ClassWriter(2);\n Item item0 = classWriter2.newLong(2);\n classWriter1.newLong(2178L);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(197, (-5054), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test054() throws Throwable {\n Form form0 = new Form(\"null\");\n Hidden hidden0 = new Hidden(form0, \"null\", \"null\");\n // Undeclared exception!\n try { \n hidden0.sub((Object) \"null\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}",
"public int getTryCatchBlockIndex() {\n/* 424 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }",
"protected Problem() {/* intentionally empty block */}",
"public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n Form form0 = new Form(\"Lc7/B.MJD\");\n Checkbox checkbox0 = new Checkbox(form0, \"Cannot add a form element. No surrounding form found.\", \"[rO+3\");\n // Undeclared exception!\n try { \n checkbox0.samp((Object) \"Cannot add a form element. No surrounding form found.\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test063() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"zuQ-ES@*gn\");\n Type type1 = Type.INT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(22, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n Item item0 = classWriter0.newFieldItem(\"\", \"\", \"T~1S2uS7<aMtHqcUL\");\n Frame frame1 = new Frame();\n // Undeclared exception!\n try { \n frame1.execute(154, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test308() throws Throwable {\n Form form0 = new Form(\"S_AON\");\n // Undeclared exception!\n try { \n form0.object();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public static TypeReference newTryCatchReference(int tryCatchBlockIndex) {\n/* 296 */ return new TypeReference(0x42000000 | tryCatchBlockIndex << 8);\n/* */ }",
"@Test(timeout = 4000)\n public void test362() throws Throwable {\n Form form0 = new Form(\"\\r\");\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"\\r\");\n // Undeclared exception!\n try { \n form0.sup((Object) xmlEntityRef0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected abstract void exceptionsCatching( ExceptionType exceptionType );",
"@Test(timeout = 4000)\n public void test17() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n linkedList0.push((byte[][]) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.previous();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}",
"@Test(timeout = 4000)\n public void test035() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}",
"@Test(timeout = 4000)\n public void test043() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((Reader) stringReader0, (-1), (-1), (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }"
] | [
"0.66330636",
"0.64455503",
"0.63069844",
"0.62863445",
"0.62601554",
"0.6258713",
"0.6242378",
"0.617764",
"0.61751425",
"0.616476",
"0.6102337",
"0.60861343",
"0.60565096",
"0.6041599",
"0.5993011",
"0.5989686",
"0.5945846",
"0.59253937",
"0.59183633",
"0.5905668",
"0.5897844",
"0.5897844",
"0.5889055",
"0.58833134",
"0.58821684",
"0.58755815",
"0.5860885",
"0.58541316",
"0.585304",
"0.5815453",
"0.5811985",
"0.5803908",
"0.5792953",
"0.5778486",
"0.57767844",
"0.57767844",
"0.57767844",
"0.57767844",
"0.57767844",
"0.57696813",
"0.57696813",
"0.57660645",
"0.5744089",
"0.57417816",
"0.57379735",
"0.5722731",
"0.5711189",
"0.5692974",
"0.56869763",
"0.5679297",
"0.5665629",
"0.5660476",
"0.5652062",
"0.5641522",
"0.56379634",
"0.56332517",
"0.5626786",
"0.5616083",
"0.5614358",
"0.5614132",
"0.56120974",
"0.5603594",
"0.560119",
"0.5588893",
"0.5588888",
"0.5586705",
"0.55851144",
"0.55781573",
"0.5566609",
"0.5559961",
"0.55477256",
"0.55440974",
"0.55381966",
"0.5538007",
"0.55334765",
"0.55233055",
"0.5521064",
"0.5520253",
"0.5517649",
"0.5515722",
"0.55100805",
"0.55094415",
"0.5508516",
"0.5503371",
"0.55002934",
"0.55000395",
"0.5496238",
"0.5491996",
"0.54862314",
"0.5481711",
"0.548127",
"0.5478265",
"0.54772925",
"0.54747915",
"0.54745203",
"0.5470141",
"0.5465864",
"0.5461784",
"0.5457154",
"0.5455807",
"0.54550433"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String toString() {
return data.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String toString() {
return songList.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String toString() {
return "下载链接:"+showLink;
} | {
"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 |
construct property, given its rents | public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,
int hotel, int value, int houses) {
this.rent = rent;
this.oneH = oneH;
this.twoH = twoH;
this.threeH = threeH;
this.fourH = fourH;
this.hotel = hotel;
this.value = value;
this.houses = houses;
buildings = 0;
monopoly = false;
owned = false;
this.pos = pos;
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Property createProperty();",
"PropertyCallExp createPropertyCallExp();",
"PropertyRule createPropertyRule();",
"public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}",
"ReferenceProperty createReferenceProperty();",
"PropertyReference createPropertyReference();",
"PropertyType createPropertyType();",
"private static Property makeNewPropertyFromUserInput() {\n\t\tint regNum = requestRegNum();\r\n\t\t// check if a registrant with the regNum is available\r\n\t\tif (getRegControl().findRegistrant(regNum) == null) {\r\n\t\t\tSystem.out.println(\"Registrant number not found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString coordinateString = getResponseTo(\"Enter top and left coordinates of property (as X, Y): \");\r\n\t\t// split the xLeft and yTop from the string: \"xLeft, yTop\"\r\n\t\tString[] coordinates = coordinateString.split(\", \");\r\n\t\tString dimensionString = getResponseTo(\"Enter length and width of property (as length, width): \");\r\n\t\t// split the xLength and yWidth from the string: \"xLength, yWidth\"\r\n\t\tString[] dimensions = dimensionString.split(\", \");\r\n\t\t// convert all string in the lists to int and create a new Property object with them\r\n\t\tint xLeft = Integer.parseInt(coordinates[0]);\r\n\t\tint yTop = Integer.parseInt(coordinates[1]);\r\n\t\tint xLength = Integer.parseInt(dimensions[0]);\r\n\t\tint yWidth = Integer.parseInt(dimensions[1]);\r\n\t\t// Limit for registrant for property size minimum 20m x 10m and maximum size 1000m x 1000m\r\n\t\tif (xLength < 20 || yWidth < 10 || (xLength + xLeft) > 1000 || (yTop + yWidth) > 1000) {\r\n\t\t\tSystem.out.println(\"Invalid dimensions/coordinates inputs\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tProperty new_prop = new Property(xLength, yWidth, Integer.parseInt(coordinates[0]),\r\n\t\t\t\tInteger.parseInt(coordinates[1]), regNum);\r\n\t\treturn new_prop;\r\n\t}",
"protected abstract Property createProperty(String key, Object value);",
"public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }",
"<C, P> PropertyCallExp<C, P> createPropertyCallExp();",
"IGLProperty clone();",
"PropertyRealization createPropertyRealization();",
"public Property(Property p) {\r\n\t\tpositive = Arrays.copyOf(p.positive, p.positive.length);\r\n\t\tnegative = Arrays.copyOf(p.negative, p.negative.length);\r\n\t\tstop = Arrays.copyOf(p.stop, p.stop.length);\r\n\t\tscoringmethod = p.scoringmethod;\r\n\t\tmindistance = p.mindistance;\r\n\t}",
"public Property() {\n this(0, 0, 0, 0);\n }",
"public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }",
"public PropertyRefs(Properties p) {\n props = p;\n }",
"public Property(int location, String name, int group, int[] rent, boolean canBuild, int[] costs, Board myBoard) {\n type = Tile.Type.PROPERTY;\n this.location = location;\n this.name = name;\n this.groupName = group;\n this.rent = rent;\n this.canBuild = canBuild;\n this.costs = costs;\n owner = null;\n this.myBoard = myBoard;\n }",
"public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }",
"public Value makePolymorphic(ObjectProperty prop) {\n Value r = new Value();\n r.var = prop;\n r.flags |= flags & (ATTR | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR | EXTENDEDSCOPE);\n if (isMaybePresentData())\n r.flags |= PRESENT_DATA;\n if (isMaybePresentAccessor())\n r.flags |= PRESENT_ACCESSOR;\n return canonicalize(r);\n }",
"public Property() {}",
"public Property(Property p) {\n\t\tcity=p.getCity();\n\t\towner=p.getOwner();\n\t\tpropertyName=p.getPropertyName();\n\t\trentAmount=p.getRentAmount();\n\t\tplot= new Plot(p.plot);\n\t}",
"public CompositeProperty(List<Node> segments) {\n this(segments, PropertyMergeMode.NONE);\n }",
"public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }",
"public PropertyDefList createDependings()\n throws MatrixException\n {\n for (final PropertyDef prop : this.properties) {\n if (prop.getTo() != null) {\n prop.getTo().create();\n }\n }\n\n return this;\n }",
"private void buildNetProperties() {\n\t\tint nofP, nofT, i;\n\t\tString s;\n\n\t\troot.add(netProperties);\n\t\tgetBasicNetProperty(woflan.InfoNofP, woflan.InfoPName, \"Places\",\n\t\t\t\tnetProperties);\n\t\tgetBasicNetProperty(woflan.InfoNofT, woflan.InfoTName, \"Transitions\",\n\t\t\t\tnetProperties);\n\t}",
"public Property()\r\n {\r\n }",
"private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }",
"PrimitiveProperty createPrimitiveProperty();",
"public CompositeProperty(List<Node> segments, PropertyMergeMode mergeMode) {\n this.segments = segments;\n this.mergeMode = mergeMode;\n }",
"public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }",
"private void constructObjectPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n\n SWRLVariable var1 = null, var2 = null, var3 = null;\n String classNm, classObject = null;\n OWLObjectProperty o = ontologyOWLObjectPropertylVocabulary.get(name);\n\n classNm = constructObjectSubjectAtom(name, antecedent);\n classObject = constructObjectObjectAtom(name, antecedent);\n var2 = initalizeVariable(classNm, var2);\n var3 = initalizeVariable(classObject, var3);\n antecedent.add(factory.getSWRLObjectPropertyAtom(o, var2, var3));\n\n constructBuiltinAtom(classObject, operator, value, null, antecedent);\n\n }",
"private Property as_property_value(RDFNode rdfnode, PropertyType type) {\n Property prop = new Property(type);\n\n switch (type.getPropertyValueType()) {\n case COMPLEX:\n if (rdfnode.isResource()) {\n List<Property> subprops = new ArrayList<>();\n\n for (PropertyConstraint subpropcon : type.getComplexPropertyConstraints()) {\n PropertyType subtype = subpropcon.getPropertyType();\n NodeIterator iter = model.listObjectsOfProperty(rdfnode.asResource(),\n as_property(subtype.getDomainPredicate()));\n\n while (iter.hasNext()) {\n Property subprop = as_property_value(iter.next(), subtype);\n\n if (subprop != null) {\n subprops.add(subprop);\n }\n }\n }\n\n prop.setComplexValue(subprops);\n\n return prop;\n } else {\n return null;\n }\n case DATE_TIME:\n if (rdfnode.isLiteral() && rdfnode.asLiteral().getValue() instanceof XSDDateTime) {\n XSDDateTime dt = XSDDateTime.class.cast(rdfnode.asLiteral().getValue());\n\n if (dt != null) {\n prop.setDateTimeValue(as_date_time(dt));\n }\n\n return prop;\n } else {\n return null;\n }\n case LONG:\n if (rdfnode.isLiteral()) {\n prop.setLongValue(rdfnode.asLiteral().getLong());\n\n return prop;\n } else {\n return null;\n }\n case STRING:\n if (rdfnode.isLiteral()) {\n prop.setStringValue(rdfnode.asLiteral().getString());\n\n return prop;\n } else {\n return null;\n }\n default:\n throw new RuntimeException(\"Unhandled value type\");\n }\n }",
"public void newProperty(Property property, PieceType type) {\n\t\t_property = property;\n\t\tswitch (type) {\n\t\tcase SETTLEMENT:\n\t\t\t_piece = new Settlement(_coordinates, _property);\n\t\t\tbreak;\n\t\tcase CITY:\n\t\t\t_piece = new City(_coordinates, _property);\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}",
"@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make(path);\n }",
"private GetProperty(Builder builder) {\n super(builder);\n }",
"public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) {\n this.boardPosition = boardPosition;\n this.name = name;\n this.value = value;\n this.rentPrice = rentPrice;\n this.mortgagePrice = mortgagePrice;\n this.isMortgaged = false;\n this.redeemPrice = redeemPrice;\n this.owner = null;\n }",
"public abstract ICMakeBuildElement createBuildProperties(Path path);",
"public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}",
"public int addProperty(String name, String city, double rent,\r\n\t\t\tString owner, int x, int y, int width, int depth) {\r\n\t\tProperty p = new Property(name, city, rent, owner, x, y, width, depth);\r\n\t\r\n\t\tif(p == null) {\r\n\t\t\treturn -2;\r\n\t\t}\r\n\t\tif(!plot.encompasses(p.getPlot())){\r\n\t\t\treturn -3;\r\n\t\t}\r\n\t\tfor (int i=0;i<properties.length;i++) {\r\n\t\t\tif (properties[i]!=null && i<MAX_PROPERTY-1) {\r\n\t\t\t\tif(properties[i].getPlot().overlaps(p.getPlot())) {\r\n\t\t\t\t\treturn -4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(properties[i]!=null && i>=MAX_PROPERTY-1) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tproperties[i]=p;\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make();\n }",
"Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }",
"public Object prop(String name, String type);",
"public void createOntProperty(String sourceInstance, String propertyName, String destInstance)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tOntResource di = this.obtainOntResource(destInstance);\r\n\t\tProperty prop = this.obtainOntProperty(propertyName); \r\n\t\tsi.addProperty(prop, di);\r\n\t}",
"@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }",
"@SuppressWarnings(\"synthetic-access\")\n public TerminalProperties build() {\n return new TerminalProperties(this);\n }",
"@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }",
"public void init(Properties props) ;",
"private PropertyCard createPropertyElement(Element eElement) {\r\n\t\tif ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.UTILITY )\r\n\t\t{\r\n\t\t return new UtilityPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if (PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.RAILING )\r\n\t\t{\r\n\t\t return new RailingPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.SIMPLE )\r\n\t\t{\r\n\t\t\treturn new PlotPropertyCard(\r\n\t\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t\t,PlotPropertyCard.Colour_Type.valueOf(eElement.getElementsByTagName(\"colour\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue0\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValueHotel\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"houseCost\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"hotelCost\").item(0).getTextContent())\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static MemberExpression property(Expression expression, Class type, String name) { throw Extensions.todo(); }",
"private PropertySingleton(){}",
"public Property (String propertyName, String city, double rentAmount, String owner, int x, int y, int width, int depth) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot= new Plot(x,y,width,depth);\n\t}",
"Builder addProperty(String name, Thing.Builder builder);",
"private static PropertyFunctionInstance magicProperty(Context context,\n Triple pfTriple,\n BasicPattern triples)\n {\n List<Triple> listTriples = new ArrayList<>() ;\n\n GNode sGNode = new GNode(triples, pfTriple.getSubject()) ;\n GNode oGNode = new GNode(triples, pfTriple.getObject()) ;\n List<Node> sList = null ;\n List<Node> oList = null ;\n \n if ( GraphList.isListNode(sGNode) )\n {\n sList = GraphList.members(sGNode) ;\n GraphList.allTriples(sGNode, listTriples) ;\n }\n if ( GraphList.isListNode(oGNode) )\n {\n oList = GraphList.members(oGNode) ;\n GraphList.allTriples(oGNode, listTriples) ;\n }\n \n PropFuncArg subjArgs = new PropFuncArg(sList, pfTriple.getSubject()) ;\n PropFuncArg objArgs = new PropFuncArg(oList, pfTriple.getObject()) ;\n \n // Confuses single arg with a list of one. \n PropertyFunctionInstance pfi = new PropertyFunctionInstance(subjArgs, pfTriple.getPredicate(), objArgs) ;\n \n triples.getList().removeAll(listTriples) ;\n return pfi ;\n }",
"public PropertySelector(Entity root, Property property) {\n this.root = root;\n this.property = property;\n }",
"public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }",
"public Properties(){\n\n }",
"private ReadProperty()\r\n {\r\n\r\n }",
"public native final Value property(final String name)/*-{\n\t\treturn {\n\t\t\tdatum : this.property(name)\n\t\t};\n\t}-*/;",
"public Tag(Property.Name value) {\n\t}",
"private PropertySetFactory() {}",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"Property getProperty();",
"Property getProperty();",
"public abstract String GetProperty(Slice property);",
"A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );",
"public OWLProperty (String iri) {\n\t\tthis.classIRI = iri;\n//\t\tthis.domain = domain;\n//\t\tthis.range = range;\n\t}",
"public Propuestas() {}",
"@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"private void processPropertyParentNode(Element node) {\n PropertyDataItem prp = new PropertyDataItem(node.attributeValue(\"name\"));\n\n Iterator childNodes = node.elementIterator();\n\n while (childNodes.hasNext()) {\n\n prp.addChildNode(((Element) childNodes.next()).attributeValue(\"name\"));\n }\n\n properties.add(prp);\n }",
"public int addProperty(String propertyName, String city, double rent, String owner) {\r\n\t\tProperty p = new Property(propertyName,city,rent,owner); \r\n\t\tif(p == null) {\r\n\t\t\treturn -2;\r\n\t\t}\r\n\t\tif(!plot.encompasses(p.getPlot())){\r\n\t\t\treturn -3;\r\n\t\t}\r\n\t\tfor (int i=0;i<properties.length;i++) {\r\n\t\t\tif (properties[i]!=null && i<MAX_PROPERTY-1) {\r\n\t\t\t\tif(properties[i].getPlot().overlaps(p.getPlot())) {\r\n\t\t\t\t\treturn -4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(properties[i]!=null && i>=MAX_PROPERTY-1) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tproperties[i]=p;\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"@Override\r\n\tpublic Item constructItem() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n T entity = (T) entityClass.newInstance();\r\n BeanInfo info = Introspector.getBeanInfo(entityClass);\r\n for (PropertyDescriptor pd : info.getPropertyDescriptors()) {\r\n for (Object propertyId : queryDefinition.getPropertyIds()) {\r\n if (pd.getName().equals(propertyId)) {\r\n Method writeMethod = pd.getWriteMethod();\r\n Object propertyDefaultValue = queryDefinition.getPropertyDefaultValue(propertyId);\r\n writeMethod.invoke(entity, propertyDefaultValue);\r\n }\r\n }\r\n }\r\n return toItem(entity);\r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Error in bean construction or property population with default values.\", e);\r\n }\r\n }",
"PropertyArray(String source) throws PropertyException {\n this(new PropertyTokener(source));\n }",
"void initCommunityProperty();",
"private void constructOwlDataPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n SWRLVariable var1 = null, var2;\n String classNm = null;\n\n var1 = initalizeVariable(name, var1);\n OWLDataProperty p = ontologyOWLDataPropertyVocabulary.get(name);\n\n classNm = constructpropertySubjectAtom(name, antecedent);\n\n var2 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(classNm)));\n antecedent.add(factory.getSWRLDataPropertyAtom(p, var2, var1));\n Set<OWLDataPropertyRangeAxiom> sgdp = domainOntology.getDataPropertyRangeAxioms(p);\n OWLDataRange r = null;\n for (OWLDataPropertyRangeAxiom a : sgdp) {\n r = a.getRange();\n }\n constructBuiltinAtom(name, operator, value, r.asOWLDatatype(), antecedent);\n\n }",
"public static Property createProperty(String key, String value) {\n Property prop = new Property();\n prop.setKey(key);\n prop.setValue(value);\n\n return prop;\n }",
"public Property (String propertyName, String city, double rentAmount, String owner) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot = new Plot();\n\t}",
"PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }",
"Object getPropertytrue();",
"public String prop(String name);",
"public EntityPropertyBean() {}",
"Property property(int spot) {\n _spot = spot;\n _color = getColor(spot);\n _isEdge = new boolean[40];\n _isEdge[3] = true;\n for (int i = 0; i < 4; i++) {\n _isEdge[i * 10 + 4] = true;\n _isEdge[i * 10 + 9] = true;\n }\n }",
"DefinedProperty graphAddProperty( int propertyKey, Object value );",
"private String constructpropertySubjectAtom(String name, Set<SWRLAtom> antecedent) {\n String className = null;\n\n OWLDataProperty p = ontologyOWLDataPropertyVocabulary.get(name);\n Set<OWLDataPropertyDomainAxiom> sgrp = domainOntology.getDataPropertyDomainAxioms(p);\n\n for (OWLDataPropertyDomainAxiom a : sgrp) {\n OWLClassExpression cl = a.getDomain().getNNF();\n className = TextUtil.formatName(cl.toString().substring(cl.toString().lastIndexOf(\"/\") + 1));\n constructClassAtom(className, antecedent, \" \", \" \");\n }\n return className;\n }",
"private PropertyHolder() {\n }",
"public Properties init() {\n // init nested properties starting from the bottom ones\n initProperties();\n initLayout();\n return this;\n }",
"public Property(String owners,int estvalue, String location,char PPR2,String yearsowned,String eircode,String address) {\r\n this.owners = owners;\r\n this.estValue = estvalue;\r\n this.Address = address;\r\n this.postcode = eircode;\r\n this.PPR = PPR2;\r\n this.locationCategory = location;\r\n }",
"public static State addPropertyToState(Property property, State state, Domain domain) {\n\n\t\tboolean inverseProperty = false;\n\n\t\tint headIn = domain.addConstant(\"property\");\n\t\tTermList paramIn = TermList.NIL;\n\t\tif (property.getValue() != null && !property.getValue().equals(\"\")) {\n\t\t\tString value = property.getValue();\n if ((\"hasObjective\".equals(property.getName()) && \"concept\".equals(property.getMetadata().getType())) //||\n \t//(\"has\".equals(property.getName()) && \"learner\".equals(property.getMetadata().getType()))\n \t) {\n paramIn = new TermList(domain.getTermConstant(domain.addConstant(value)), paramIn);\n inverseProperty = true;\n } else {\n paramIn = new TermList(domain.getTermConstant(domain.addConstant(value)), paramIn);\n }\n\t\t}\n\t\tif (property.getResource()!=null) {\n\t\t\tparamIn = new TermList(domain.getTermConstant(domain.addConstant(property.getResource().getIdentifier())), paramIn);\n\t\t}\n\t\tparamIn = new TermList(domain.getTermConstant(domain.addConstant(property.getName())), paramIn);\n\t\tparamIn = new TermList(domain.getTermConstant(domain.addConstant(property.getMetadata().getIdentifier())), paramIn);\n\n\t\tCollection<Term> arguments = state.getArguments(headIn);\n\t\tif (!arguments.contains(paramIn)) {\n\t\t\tPredicate jShop2Property = new Predicate(headIn, 0, paramIn);\n\t\t\tstate.add(jShop2Property);\n\t\t\tif (inverseProperty){\n\t\t\t\tPredicate invjShop2Property = new Predicate(headIn, 0,\n\t\t\t\t\t\tnew TermList(domain.getTermConstant(domain.addConstant(property.getResource().getIdentifier())),\n\t\t\t\t\t\t\t\tnew TermList(domain.getTermConstant(domain.addConstant(\"inverseHasObjective\")),\n\t\t\t\t\t\t\t\t\t\tnew TermList(domain.getTermConstant(domain.addConstant(property.getMetadata().getIdentifier())), TermList.NIL))));\n\t\t\t\tstate.add(invjShop2Property);\n\t\t\t}\n\t\t}\n\n\t\tif (property.getResource()!=null) {\n\t\t\taddMetadataToState(property.getResource(), state, domain);\n\t\t}\n\n\t\treturn state;\n\t}",
"public TradingProperty createNewTradingProperty(String sessionName, int classKey)\n {\n SimpleIntegerTradingPropertyImpl newTP = new SimpleIntegerTradingPropertyImpl(\"Property\", sessionName, classKey);\n newTP.setTradingPropertyType(getTradingPropertyType());\n return newTP;\n }",
"public DPropertyElement() {\n super(null, null);\n }",
"public PropertySelector(PropertySelector parent, Property property) {\n this.parent = parent;\n this.property = property;\n }",
"@ProviderType\npublic interface Properties {\n\n\t/**\n\t * Returns a new builder of {@link TextProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tTextProperty.Builder text(@NotNull String id, @NotNull String name);\n\n\t/**\n\t * Returns a new builder of {@link TextareaProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tTextareaProperty.Builder textarea(@NotNull String id, @NotNull String name);\n\n\t/**\n\t * Returns a new builder of {@link BooleanProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tBooleanProperty.Builder bool(@NotNull String id, @NotNull String name);\n\n\t/**\n\t * Returns a new builder of {@link DateProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tDateProperty.Builder date(@NotNull String id, @NotNull String name);\n}",
"public PropertyCriteria() {\n\t\tsuper();\n\t}",
"public PropertyParser(Properties props)\n\t{\n\t\t_props = props;\n\t}",
"protected PropertyList createPropertyList(PropertyList parent, \n FOEventHandler foEventHandler) throws FOPException {\n return foEventHandler.getPropertyListMaker().make(this, parent);\n }",
"public static MemberExpression property(Expression expression, String name) { throw Extensions.todo(); }"
] | [
"0.73066777",
"0.640828",
"0.6381268",
"0.6343732",
"0.62571687",
"0.6237304",
"0.61553633",
"0.6063132",
"0.60291845",
"0.60250413",
"0.6010021",
"0.59893835",
"0.5972281",
"0.59162325",
"0.5911789",
"0.58807987",
"0.587792",
"0.5846573",
"0.5831928",
"0.5810363",
"0.58085227",
"0.5808224",
"0.57726765",
"0.57593364",
"0.5661811",
"0.5653993",
"0.56494653",
"0.56235564",
"0.56044626",
"0.56040674",
"0.56007904",
"0.5590396",
"0.5558124",
"0.55348426",
"0.5526191",
"0.54955566",
"0.54397595",
"0.5436641",
"0.543281",
"0.5414186",
"0.54137456",
"0.540611",
"0.537485",
"0.5372729",
"0.5359644",
"0.53472567",
"0.5347116",
"0.53390944",
"0.5329215",
"0.53242755",
"0.53103137",
"0.53016293",
"0.52896136",
"0.5284301",
"0.5281715",
"0.5265299",
"0.5263697",
"0.52491796",
"0.5247867",
"0.52432704",
"0.52180135",
"0.5215816",
"0.521527",
"0.52126545",
"0.51951236",
"0.51846653",
"0.51846653",
"0.5180557",
"0.5169761",
"0.5167632",
"0.51599145",
"0.514912",
"0.5135605",
"0.5134659",
"0.51273245",
"0.51273113",
"0.51221883",
"0.5119988",
"0.5108887",
"0.5098326",
"0.5090297",
"0.5080933",
"0.50789243",
"0.50771785",
"0.50738084",
"0.5060534",
"0.5060273",
"0.50527215",
"0.505264",
"0.50515187",
"0.50417984",
"0.5025623",
"0.50049806",
"0.5002121",
"0.4998077",
"0.4993005",
"0.49885038",
"0.49858257",
"0.49856913",
"0.4979223"
] | 0.6017734 | 10 |
update status of property to owned | public void purchase(Player player) {
owned = true;
owner = player;
updateMonopoly(player);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }",
"@Override\n public void setFollowableStatus(Followable.FollowableStatus status) {\n logger.debug(\"setFollowableStatus(status: {})\", status);\n // process update\n this.setFollowableStatusByFollowable(authenticationService.getCurrentUser(), status);\n }",
"DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );",
"void updateHouseStatus(String username, long houseId, int status);",
"void updateHouseStatus(long houseId, int status);",
"public void updateEnoughCoinProperty(Boolean status) {\n enoughCoins.set(status);\n }",
"public void setPropertyOwned(int a_property, int a_propertyNum)\n {\n boolean []oldProp = m_properties.get(a_property);\n boolean []updatedProp = new boolean[oldProp.length];\n \n for(int i = 0; i < oldProp.length; i++)\n {\n updatedProp[i] = oldProp[i];\n }\n updatedProp[a_propertyNum] = true;\n \n m_properties.set(a_property, updatedProp);\n }",
"public void setStatus(Player owner, int numberHouses){\n this.owner = owner;\n this.numberHouses = numberHouses;\n }",
"@Override\n public void setFollowableNotifiableStatus(Followable.FollowableNotifiable notifiable) {\n logger.debug(\"setFollowableNotifiableStatus(notifiable: {})\", notifiable);\n // process update\n this.setFollowableNotifiableStatusByFollowable(authenticationService.getCurrentUser(), notifiable);\n }",
"void updateOccupancy() {\n\t\toccupied = !occupied;\n\t}",
"public abstract void updateStatus(PresenceType presenceType);",
"@Override\n\tpublic Owner update(Owner owner) {\n\t\treturn null;\n\t}",
"public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"private void updateOrCreate(Resource subject, Property property, Object o) {\r\n\t\tStatement existingRelation = subject.getProperty(property);\r\n\t\tif (existingRelation != null)\r\n\t\t\tsubject.removeAll(property);\r\n\t\tsubject.addProperty(property, _write(o, true));\r\n\t}",
"public boolean updateMember(final MemberPo po);",
"public boolean shouldUpdateVersionOnOwnedMappingChange(){\r\n return this.lockOnChangeMode == LockOnChange.OWNING;\r\n }",
"@Override\n public void setFollowableStatusByFollowedID(Long followedID, Followable.FollowableStatus status) {\n logger.debug(\"setFollowableStatusByFollowedID(followedID: {}, status: {})\", followedID, status);\n // process update\n this.setFollowableStatusByFollowable(userService.getById(followedID), status);\n }",
"@Override\n\tpublic void update(Unidade obj) {\n\n\t}",
"public void modifyOntProperty(String sourceInstance, String propertyName, String destInstance)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tOntResource di = this.obtainOntResource(destInstance);\r\n\t\tProperty prop = this.obtainOntProperty(propertyName); \r\n\t\tsi.setPropertyValue(prop, di);\r\n\t}",
"@Override\n public void updateStatus(Status status) {\n this.status = status;\n }",
"public void updateProperty(Inspectable object, InspectableProperty property) {\n\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object)\n inspector.updateProperty(property);\n }\n\n}",
"public void setFollowableStatusByFollowable(User followed, Followable.FollowableStatus status) {\n followed.setFollowableStatus(status);\n userService.createOrUpdate(followed);\n\n // get all FST and loop with modification\n fstRepository.findAllByFollowed(followed)\n .forEach( fst -> {\n fst.setFollowedStatus(status);\n logger.debug(\"-> fstId: {} -> status: {})\", fst.getId(), fst.getFollowedStatus());\n fstRepository.save(fst);\n });\n }",
"@Override\r\n\tpublic void update(Responsible p) {\n\t\t\r\n\t}",
"@Override\n\tpublic void transferProperty(TransferPropertyRequest transferPropertyRequest,Long pid,Long uid) throws Exception {\n\t\tProperty property = getById(transferPropertyRequest.getPropertyId());\n\t\tProperty newProperty = new Property();\n\t\tif(property.getActive()) {\n\t\t\tproperty.setTransferred(true);\n\t\t\tproperty.setTransferredToSamagraId(transferPropertyRequest.getTransferToSamagraId());\n\t\t\tiPropertyDAO.save(property);\n\t\t}else {\n\t\t\tthrow new Exception(\"Property with Unique id :\"+property.getCustomUniqueId()+\"does not belong to current samagra and cant be transffered\");\n\t\t}\n\t\t//fetch the person - the new owner of this property\n\t\tnewProperty.setActive(true);\n\t\tnewProperty.setArea(property.getArea());\n\t\tnewProperty.setIsResidential(property.getIsResidential());\n\t\tnewProperty.setResidentName(property.getResidentName());\n\t\tnewProperty.setResidentName(transferPropertyRequest.getResidentName());\n\t\tnewProperty.setSubHolder(transferPropertyRequest.getNewSubHolder());\n\t\tnewProperty.setIsWaterConnected(property.getWaterConnected());\n\t\tnewProperty.setEastLandmark(property.getEastLandmark());\n\t\tnewProperty.setWestLandmark(property.getWestLandmark());\n\t\tnewProperty.setNorthLandmark(property.getNorthLandmark());\n\t\tnewProperty.setSouthLandmark(property.getSouthLandmark());\n\t\tnewProperty.setVillage(property.getVillage());\n\t\tnewProperty.setTehsil(property.getTehsil());\n\t\tnewProperty.setDistrict(property.getDistrict());\n\t\tnewProperty.setPropertyNumber(property.getPropertyNumber());\n\t\tnewProperty.setPanchayat(property.getPanchayat());\n\t\tnewProperty.setSharedWallDescription(property.getSharedWallDescription());\n\t\tnewProperty.setWaterBillDescription(property.getWaterBillDescription());\n\t\tnewProperty.setLength(property.getLength());\n\t\tnewProperty.setWidth(property.getWidth());\n newProperty.setCustomUniqueId(property.getCustomUniqueId());\n\t\tBeanUtils.copyProperties(property.getPropertyUsages(),newProperty.getPropertyUsages());\n\t\tBeanUtils.copyProperties(property.getPropertyTypes(),newProperty.getPropertyTypes());\n//\t\tnewProperty.setPropertyUsages(property.getPropertyUsages());\n\t\tnewProperty.setOtherDescription(property.getOtherDescription());\n\t\tnewProperty.setPincode(property.getPincode());\n\t\t//the updated field\n\t\tnewProperty.setSamagraId(transferPropertyRequest.getTransferToSamagraId());\n\t\tnewProperty.setDocuments(transferPropertyRequest.getDocuments());\n\t\tcreateTransferredProperty(newProperty,pid,uid);\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }",
"public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }",
"DefinedProperty graphChangeProperty( int propertyKey, Object value );",
"public void changeOwner(String o){\n owner = o;\r\n }",
"void setOwner(Entity owner);",
"public boolean updataVisualProperty(VisualProperty prop) \r\n throws RepositoryAccessException {\r\n boolean success = false;\r\n Connection conn = null;\r\n try {\r\n conn = openTransaction();\r\n VisualPropertyProxy proxy = new VisualPropertyProxy(conn);\r\n success = proxy.update(prop);\r\n conn.commit();\r\n } catch (Exception ex) {\r\n rollback(conn);\r\n String msg = \"Could not update visual property: \" + \r\n prop.getId() + \". \" + ex.getMessage();\r\n\r\n LogService.logWarn(msg, LOGGER);\r\n throw new RepositoryAccessException(msg, ex);\r\n } finally {\r\n close(conn);\r\n }\r\n \r\n return success;\r\n }",
"@Test\n public void testSetStatus() {\n System.out.println(\"setStatus\");\n Member instance = member;\n \n String status = \"APPLIED\";\n instance.setStatus(status);\n \n String expResult = status;\n String result = instance.getStatus();\n \n assertEquals(expResult,result);\n }",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"Transfer updateStatus(Long id, Payment.Status status);",
"public void setStatus(@NotNull Status status) { this.myStatus = status; }",
"public void resourceOwnershipChanged(ResourceOwnership item, boolean added)\n {\n event(\"ResourceOwnershipChange\",\n item.getOwner().getId(),\n item.getResource().getId(),\n -1,\n added);\n }",
"public void setOwner(int owner) { this.owner = owner; }",
"public void changeStatus(){\n Status = !Status;\n\n }",
"Order setInvoicePaidStatus(Order order, User user);",
"private void updateAssignedPO() {\n Organisation organisation = PersistenceManager.getCurrent().getCurrentModel();\n\n Person productOwner = getModel().getAssignedPO();\n\n // Add all the people with the PO skill to the list of POs\n List<Person> productOwners = organisation.getPeople()\n .stream()\n .filter(p -> p.canBeRole(Skill.PO_NAME))\n .collect(Collectors.toList());\n\n // Remove listener while editing the product owner picker\n poComboBox.getSelectionModel().selectedItemProperty().removeListener(getChangeListener());\n poComboBox.getItems().clear();\n poComboBox.getItems().addAll(productOwners);\n if (poComboBox != null) {\n poComboBox.getSelectionModel().select(productOwner);\n if (!isCreationWindow) {\n navigateToPOButton.setDisable(false);\n }\n }\n poComboBox.getSelectionModel().selectedItemProperty().addListener(getChangeListener());\n }",
"@Override\n\tpublic boolean update(StatusDetail item) {\n\t\treturn false;\n\t}",
"void setStatus(final UserStatus status);",
"@FXML\r\n\tprivate void updateStatus(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.STATUS);\r\n\t}",
"@Override\n\tpublic void setStatusByUserId(long statusByUserId);",
"public void setFollowableStatusByFST(FollowStateTracker fst, Followable.FollowableStatus status) {\n fst.setFollowedStatus(status);\n logger.debug(\"fstId: {} -> status: {})\", fst.getId(), fst.getFollowedStatus());\n fstRepository.save(fst);\n }",
"@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);",
"@Override\n\tpublic boolean changeStatus(Person p) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"update Booking b set b.bookingStatus='request' where b.person=\" + p.getEmployeeId());\n\t\tint i = query.executeUpdate();\n\t\tif(i==1)\n\t\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}",
"DefinedProperty nodeChangeProperty( long nodeId, int propertyKey, Object value );",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"void update(Member member);",
"public void setStatus(CanaryStatus status) {\n this.status = status;\n }",
"private void setPoStatus(PoBean.Status status, int pid) throws Exception {\n String query = \"UPDATE PO SET status = ? WHERE id = ?\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n p.setString(1, status.toString());\n p.setInt(2, pid);\n p.executeUpdate();\n }\n }",
"public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }",
"@Override\r\n\tpublic void update(Person p) \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update(FollowUp followup) {\n\t\t\r\n\t}",
"public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}",
"public void status(String status) {\n FirebaseDatabase.getInstance().getReference(\"chef_account_settings\").child(firebaseUser.getUid()).child(\"status\").setValue(status);\n// HashMap<String, Object> hashMap = new HashMap<>();\n// hashMap.put(\"status\", status);\n// reference.updateChildren(hashMap);\n }",
"public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }",
"public ApplyUpdateProperties withStatus(UpdateStatus status) {\n this.status = status;\n return this;\n }",
"void setOwner(String owner);",
"@Override\n public void setValue(String name, int value) {\n this.StatusRepository.update(name,value);\n }",
"@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);",
"Order setInvoiceApprovedStatus(Order order, User user);",
"@Override\n public void setFollowableStatusByFSTID(Long fstId, Followable.FollowableStatus status) {\n logger.debug(\"setFollowableStatusByFSTID(fstId: {}, status: {})\", fstId, status);\n // get FST\n FollowStateTracker fst = fstRepository.findById(fstId)\n .orElseThrow( () -> new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Le suivi n'existe pas.\") );\n // process update\n this.setFollowableStatusByFST(fst, status);\n }",
"public void xsetStatus(org.apache.xmlbeans.XmlInt status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(STATUS$12);\n }\n target.set(status);\n }\n }",
"public void setRelDocStatus(int v) \n {\n \n if (this.relDocStatus != v)\n {\n this.relDocStatus = v;\n setModified(true);\n }\n \n \n }",
"@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}",
"public void setFollowerStatusByFollower(User follower, FollowerStatus status) {\n fstRepository.findAllByFollower(follower)\n .forEach( fst -> {\n fst.setFollowerStatus(status);\n logger.debug(\"fstId: {} -> status: {})\", fst.getId(), fst.getFollowerStatus());\n fstRepository.save(fst);\n });\n }",
"public void setOwner(int pos, int turn) {\n\t\t((Property) tileList.get(pos)).setOwner(turn);\n\t}",
"Order setDeliveredStatus(Order order, User user, Date deliveredTime);",
"public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}",
"public void setOwner(RMParentShape anObj) { _owner = anObj; }",
"@Override\n\tpublic void setStatusByUserName(String statusByUserName);",
"@DISPID(-2147412091)\n @PropPut\n void onbeforeupdate(\n java.lang.Object rhs);",
"@Override\n\tpublic void propertyChange() {\n\t\tthis.apply();\n\t}",
"void setStatusProperty(String property, Double value);",
"@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }",
"public void setOccupied(int occupied) {\n this.occupied = occupied;\n }",
"public void setCoverable(entity.APDCoverable value);",
"Status setWornCount();",
"public void changeOwner(Player newOwner) {\n Player oldOwner = this.owner;\n setOwner(newOwner);\n \n if (oldOwner.hasSettlement(this)) {\n oldOwner.removeSettlement(this);\n }\n if (!newOwner.hasSettlement(this)) {\n newOwner.addSettlement(this);\n }\n \n List<Unit> units = getUnitList();\n units.addAll(getTile().getUnitList());\n while (!units.isEmpty()) {\n Unit u = units.remove(0);\n units.addAll(u.getUnitList());\n u.setState(Unit.UnitState.ACTIVE);\n UnitType type = u.getTypeChange((newOwner.isUndead())\n ? ChangeType.UNDEAD\n : ChangeType.CAPTURE, newOwner);\n if (type != null) u.setType(type);\n u.setOwner(newOwner);\n }\n \n for (Tile t : getOwnedTiles()) {\n t.changeOwnership(newOwner, this);\n }\n oldOwner.invalidateCanSeeTiles();\n newOwner.invalidateCanSeeTiles();\n \n if (getGame().getFreeColGameObjectListener() != null) {\n getGame().getFreeColGameObjectListener()\n .ownerChanged(this, oldOwner, newOwner);\n }\n }",
"private void changeOwnership(Profile profileAddingPhoto, Destination destination) {\n if (destination.getPublic() && !profileAddingPhoto.equals(destination.getOwner())) {\n destinationRepository.transferToAdmin(destination);\n }\n }",
"public void setOwner(SWActor newOwner) {\n\t\t//Set this SWActors' owner to newOwner\n\t\tthis.owner = newOwner;\n\t\t\n\t\t//Set humancontrolled boolean to true\n\t\tthis.humanControlled = true;\n\t}",
"public void savePresenceStatus(SessionProvider provider, String userId, String status) throws Exception {\r\n Node dpsNode = getDefaultPresenceStatusNode(provider);\r\n String hexName = CodingUtils.encodeToHex(userId);\r\n PresenceStatus presenceStatus = getPresenceStatus(dpsNode, hexName);\r\n\r\n if (dpsNode == null) { // add new lr:defaultpresencestatus\\lr:presencestatus node\r\n try {\r\n ManageableRepository repository = repositoryService.getCurrentRepository();\r\n Session session = provider.getSession(wsName, repository);\r\n Node node = session.getRootNode();\r\n Node fNode = null;\r\n Node historyNode = node.getNode(historyPath);\r\n String[] path = historyPath.split(\"/\");\r\n\r\n if (historyNode == null) {\r\n Node tmpNode;\r\n for (int i = 0; i < path.length - 1; i++) {\r\n if (node.hasNode(path[i]))\r\n tmpNode = node.getNode(path[i]);\r\n else\r\n tmpNode = node.addNode(path[i]);\r\n node = tmpNode;\r\n }\r\n fNode = node.addNode(path[path.length - 1], HISTORY_NT);\r\n } else {\r\n fNode = historyNode.getNode(path[path.length - 1]);\r\n }\r\n\r\n NodeImpl dps = (NodeImpl) fNode.addNode(DEFAULTPRESENCESTATUS, DEFAULTPRESENCESTATUS_NT);\r\n if (dps.canAddMixin(\"exo:privilegeable\")) {\r\n dps.addMixin(\"exo:privilegeable\");\r\n }\r\n dps.setPermission(SystemIdentity.ANY, PermissionType.ALL);\r\n presenceStatus = new PresenceStatus(userId, status);\r\n // presenceStatus.setStatus(status);\r\n // String presenceStatusPath = historyPath + \"/\" + DEFAULTPRESENCESTATUS;\r\n // if(!dps.getPath().equals(presenceStatusPath)) presenceStatus.setPath(presenceStatusPath);\r\n\r\n addPresenceStatus(dps, presenceStatus);\r\n\r\n session.save();\r\n session.logout();\r\n } catch (Exception e) {\r\n log.error(\"Could not add a new node for [lr:defaultpresecestatus] node type: \" + e.getMessage());\r\n }\r\n } else { // update lr:status property\r\n if (presenceStatus == null) {\r\n presenceStatus = new PresenceStatus(userId, status);\r\n // presenceStatus.setStatus(status);\r\n addPresenceStatus(dpsNode, presenceStatus);\r\n } else {\r\n if (presenceStatus.getHexName().equals(hexName)) {\r\n Node presenceStatusNode = null;\r\n presenceStatus.setStatus(status);\r\n try {\r\n if (dpsNode.hasNode(presenceStatus.getHexName())) {\r\n presenceStatusNode = dpsNode.getNode(presenceStatus.getHexName());\r\n jcrom.updateNode(presenceStatusNode, presenceStatus);\r\n dpsNode.getSession().save();\r\n }\r\n } catch (Exception e) {\r\n log.error(\"Could not update [lr:presencestatus] node: \" + e.getMessage());\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"public void status(String status)\r\n {\r\n reference=FirebaseDatabase.getInstance().getReference(\"Users\").child(firebaseUser.getUid());\r\n HashMap<String,Object>hashMap=new HashMap<>() ;\r\n hashMap.put(\"status\",status) ;\r\n reference.updateChildren(hashMap);\r\n }",
"@Override\n protected void updateProperties() {\n }",
"public void setIsowner(java.lang.Boolean newIsowner) {\n\tisowner = newIsowner;\n}",
"@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}",
"public Volume status(StatusEnum status) {\n this.status = status;\n return this;\n }",
"@Test\n public void updateStatusShouldTransitionCancellingReservationToCancelledWhenUpdatedToSucceeded() {\n Reservation reservation = new ReservationFactory().setStatus(ReservationStatus.CANCELLING).create();\n when(reservationRepoMock.getByReservationIdWithPessimisticWriteLock(reservation.getReservationId())).thenReturn(reservation);\n\n subject.updateStatus(reservation.getReservationId(), UpdatedReservationStatus.forNewStatus(ReservationStatus.SUCCEEDED));\n\n assertThat(reservation.getStatus(), is(ReservationStatus.CANCELLED));\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setOwner(Person person) {\n _owner = person;\n }",
"@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }",
"public void setUseStatus(TIdentifiable user, TIdentifiable resource, TUseStatus status) {\r\n int row = m_users.getIndex(user);\r\n int column = m_resources.getIndex(resource);\r\n if (row >= 0 && column >= 0) m_associations[column][row] = status;\r\n }",
"@Override\n\tpublic int update(MemberVO memberVo) {\n\t\treturn 0;\n\t}",
"public abstract void updateStatus() throws Throwable;",
"private void updateOwnedShips(JSONObject profile)\n {\n JSONObject ships = Utils.getJsonObject(profile, \"ships\");\n\n for (Object o : ships.keySet())\n {\n String shipId = (String) o;\n\n JSONObject ship = Utils.getJsonObject(ships, shipId);\n\n if (ship != null)\n {\n long cost = getShipCost(ship);\n String shipName = getShipName(ship);\n\n String tmp = \"break;\";\n }\n }\n }",
"@Override\n public void setFollowableNotifiableStatusByFollowedID(Long followedID, Followable.FollowableNotifiable notifiable) {\n logger.debug(\"setFollowableNotifiableStatusByFollowedID(followedID: {}, notifiable: {})\", followedID, notifiable);\n // process update\n this.setFollowableNotifiableStatusByFollowable(userService.getById(followedID), notifiable);\n }"
] | [
"0.6516935",
"0.59089494",
"0.5866912",
"0.5829229",
"0.57975626",
"0.5795634",
"0.5763598",
"0.56687194",
"0.5596628",
"0.55816084",
"0.5575426",
"0.5530097",
"0.5507497",
"0.549752",
"0.54213035",
"0.53894734",
"0.5368322",
"0.5360831",
"0.5356157",
"0.53524494",
"0.53370297",
"0.531955",
"0.5302843",
"0.5301253",
"0.5288598",
"0.5274959",
"0.52719074",
"0.524953",
"0.52389383",
"0.5225287",
"0.52156436",
"0.5214191",
"0.5206142",
"0.52016956",
"0.5188581",
"0.51884234",
"0.51881707",
"0.5156928",
"0.51519376",
"0.514318",
"0.5133309",
"0.5129474",
"0.51216537",
"0.51128054",
"0.51006633",
"0.50959146",
"0.5089144",
"0.5087555",
"0.5069955",
"0.5053713",
"0.5051999",
"0.5039439",
"0.5032743",
"0.5027465",
"0.50258744",
"0.50235564",
"0.50227666",
"0.502216",
"0.5012426",
"0.5010698",
"0.5001703",
"0.49952066",
"0.4980441",
"0.49784684",
"0.49656606",
"0.49639317",
"0.49634936",
"0.49609014",
"0.4959441",
"0.49326932",
"0.4931925",
"0.49309635",
"0.49288517",
"0.4926105",
"0.49242726",
"0.49168816",
"0.4911904",
"0.49093783",
"0.4903244",
"0.49028668",
"0.4892872",
"0.48877424",
"0.48821002",
"0.4882084",
"0.48796514",
"0.48784307",
"0.487665",
"0.4872738",
"0.48623928",
"0.48609817",
"0.4855288",
"0.48494497",
"0.48489684",
"0.48473686",
"0.48457605",
"0.4845216",
"0.48336366",
"0.48334908",
"0.48320755",
"0.48242456",
"0.48234233"
] | 0.0 | -1 |
update building status by integer input | public void build(int a) {
buildings += a;
if (buildings > 5)
throw new IllegalArgumentException("Cannot build past hotel!");
if (buildings < 0)
throw new IllegalArgumentException("Cannot build negative buildings!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateHouseStatus(long houseId, int status);",
"void updateHouseStatus(String username, long houseId, int status);",
"void updateRoomStatus(long roomId, int status);",
"void updateRoomStatus(String username, long roomId, int status);",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void updateAgentBODStatus(String profileId, int status);",
"public void setStatusId(long statusId);",
"public abstract void setStatusId(long statusId);",
"public Builder setStatus(int value) {\n \n status_ = value;\n onChanged();\n return this;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setBuildingid(Integer buildingid) {\r\n this.buildingid = buildingid;\r\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"void statusUpdate(boolean invalid);",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void SetValueOfBuild(int value) {\n\n // Value must be greater than 0 and less than 15 to remain in the size of a build\n if(value > 0 && value < 15) {\n cardValueOfBuild = value;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the value of a build in the build class.\");\n }\n }",
"@Override\n public void setValue(String name, int value) {\n this.StatusRepository.update(name,value);\n }",
"void setStatus(int status);",
"public void setStatus(Player owner, int numberHouses){\n this.owner = owner;\n this.numberHouses = numberHouses;\n }",
"public int updateFundingStatusByFundingNo(String funding_status, int funding_no) throws Exception;",
"private BinStatusUpdate buildNewStatus() {\n return BinStatusUpdate.newBuilder()\n .setAmount(StuffAmount.newBuilder().setStuffAmount(bin.getStuffAmount()).build())\n .setStuff(Stuff.newBuilder().setStuffName(bin.getStuffName()).build())\n .setMaxAmount(bin.MAX_AMOUNT)\n .build();\n }",
"@PutMapping(\"/update/status\")\n public ResponseEntity updateStatus(@RequestParam String numberAsString) throws UserNotFoundException,NotUpdatedException {\n return new ResponseEntity<>(userService.updateStatus(BigInteger.valueOf(Long.parseLong(numberAsString))), HttpStatus.OK);\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void updateStatus() {\n var taskStatuses = new ArrayList<OptimizationTaskStatus>();\n\n synchronized (tasks) {\n for (var task : tasks.values()) {\n taskStatuses.add(task.getStatus());\n }\n }\n\n wrapper.setStatus(JsonSerializer.toJson(new OptimizationToolStatus(taskStatuses)));\n }",
"public void upateroomstatus(String branchid, String roomid, String status){\n\t\tString sql = \"update tb_p_room set status = '\" + status + \"' where branch_id = \" + branchid + \" and room_id = \" + roomid;\n\t\t//String hql1 = \"update Room set roomKey.status = :STATUS where id = :ID\";\n\t\t//this.executeUpdateHQL(hql1,new String[]{\"STATUS\", \"ID\"}, new Object[]{status, id});\n\t\tthis.executeUpdateSQL(sql);\n\t}",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }",
"public void setStatus(JobStatus status);",
"private void modifyMapStatus(int status) {\n\t\tint bC = centerPoint.getX() / UNIT;\n\t\tint bR = centerPoint.getY() / UNIT;\n\n\t\tfor (int i = bR; i < bR + row; i++) {\n\t\t\tfor (int j = bC; j < bC + column; j++) {\n\t\t\t\tif(stage==1){\n\t\t\t\t\tGameView.map[i][j] = status;\n\t\t\t\t}else if(stage ==2){\n\t\t\t\t\tGameViewStage2.map[i][j] = status;\n\t\t\t\t}else {\n\t\t\t\t\tGameViewStage3.map[i][j] = status;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setBuildingNumber(String buildingNumber);",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatus(int value) {\n\n status_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"@Override\n public Room updateRoomStatus(Room room, String status) throws AppException {\n log.info(\"RoomDAO#updateRoomStatus(-)\");\n Connection con = null;\n PreparedStatement ps;\n try {\n con = DataSource.getConnection();\n ps = con.prepareStatement(UPDATE_ROOM_STATUS);\n int k = 1;\n ps.setString(k++, status);\n ps.setInt(k, room.getId());\n log.info(\"ps = \" + ps);\n ps.executeUpdate();\n con.commit();\n\n room = findRoomID(room.getId());\n } catch (SQLException e) {\n rollback(con);\n log.info(\"Problem at updateRoomStatus\", e);\n throw new AppException(\"Cannot update room status, please try again\", e);\n } finally {\n close(con);\n }\n return room;\n }",
"private void setBuildingNumber(String number) {\n buildingNumber = number;\n }",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/builds/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> replaceBuildStatus(\n @Path(\"name\") String name, \n @Body Build body);",
"void editAssetValue(int newVal);",
"public Builder addStatus(int value) {\n ensureStatusIsMutable();\n status_.add(value);\n onChanged();\n return this;\n }",
"public boolean updateBuild(Build build);",
"public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(BatchStatus value) {\n this.status = value;\n }",
"void updatePassengerInCheck(int passengerInCheck);",
"void onStatusUpdate(int status);",
"public void setStatus(int newStatus) {\n status = newStatus;\n }",
"public Builder setStatusValue(int value) {\n \n status_ = value;\n onChanged();\n return this;\n }",
"public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime() % aPassengerArrival.getTimePeriod() == 0){\n \n aBuildingManager.updatePassengerRequestsOnFloor(onFloor, aPassengerArrival.getNumPassengers(),\n aPassengerArrival.getDestinationFloor());\n } \n }\n }\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setBuildings(int buildingsIn){\r\n\t\tbuildings = buildingsIn;\r\n\t}",
"public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}",
"private void setBuild(long value) {\n bitField0_ |= 0x00000004;\n build_ = value;\n }",
"public void setBuilt(int value) {\n this.built = value;\n }",
"@Override\n public void updateStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }",
"public void setBuildingId(Number value) {\n setAttributeInternal(BUILDINGID, value);\n }",
"@Test\n public void testUpdateApartmentStatus() {\n System.out.println(\"updateApartmentStatus\");\n String status = \"Unavailable\";\n int apartmentid = 2;\n ApartmentBLL instance = new ApartmentBLL();\n instance.updateApartmentStatus(status, apartmentid);\n }"
] | [
"0.7135974",
"0.6965803",
"0.6846519",
"0.6532544",
"0.6130839",
"0.60282457",
"0.60022515",
"0.60020167",
"0.5971852",
"0.59670705",
"0.5943951",
"0.5943951",
"0.5904124",
"0.5900979",
"0.5900979",
"0.5900979",
"0.5900979",
"0.5900979",
"0.5900979",
"0.5900979",
"0.59005386",
"0.59005386",
"0.59005386",
"0.5899529",
"0.5899529",
"0.5899529",
"0.58986294",
"0.58858985",
"0.58858985",
"0.58759695",
"0.58588105",
"0.5847565",
"0.5831346",
"0.58308345",
"0.5820662",
"0.58186305",
"0.58060414",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.58040637",
"0.5800766",
"0.57980835",
"0.5795127",
"0.5795127",
"0.5795127",
"0.5795127",
"0.57889295",
"0.5785134",
"0.578459",
"0.57723373",
"0.57723373",
"0.57723373",
"0.57723373",
"0.57723373",
"0.57723373",
"0.57723373",
"0.57723373",
"0.5762888",
"0.5757197",
"0.5757197",
"0.5744644",
"0.5744418",
"0.57424706",
"0.5737678",
"0.5731661",
"0.57252514",
"0.571601",
"0.5710458",
"0.5710458",
"0.5706786",
"0.5693035",
"0.5686447",
"0.56642926",
"0.5662008",
"0.56553054",
"0.5646727",
"0.5646727",
"0.56276613",
"0.5598348",
"0.5597267",
"0.559716",
"0.5586532",
"0.55847746",
"0.5582866",
"0.55761003"
] | 0.0 | -1 |
switch status of monopoly | public boolean monopoly() {
return monopoly;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }",
"public void switchOn();",
"public void changeStatus(){\n Status = !Status;\n\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void changeActiveMonster(){\n //todo\n }",
"private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}",
"public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }",
"public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"private void modifyMapStatus(int status) {\n\t\tint bC = centerPoint.getX() / UNIT;\n\t\tint bR = centerPoint.getY() / UNIT;\n\n\t\tfor (int i = bR; i < bR + row; i++) {\n\t\t\tfor (int j = bC; j < bC + column; j++) {\n\t\t\t\tif(stage==1){\n\t\t\t\t\tGameView.map[i][j] = status;\n\t\t\t\t}else if(stage ==2){\n\t\t\t\t\tGameViewStage2.map[i][j] = status;\n\t\t\t\t}else {\n\t\t\t\t\tGameViewStage3.map[i][j] = status;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"public void setStatus(boolean newStatus);",
"public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n } else {\n ioStatus.set(EdgeStatus.INPUT);\n }\n }",
"private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}",
"public void setStatus(Boolean s){ status = s;}",
"private void ruotaNuovoStatoPaziente() {\r\n\t\tif(nuovoStatoPaziente==StatoPaziente.WAITING_WHITE)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_YELLOW;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_YELLOW)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_RED;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_RED)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_WHITE;\r\n\t\t\r\n\t}",
"public abstract OnlineStatus getStatus();",
"private void setGameStatus() {\n this.gameStatus = false;\n }",
"public void turnOn() {\n this.status = true;\n update(this.redValue, this.greenValue, this.blueValue);\n }",
"private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }",
"public void switchAtm(boolean flag);",
"public void setCargoIntookState() {\n redLED.set(true);\n greenLED.set(false);\n blueLED.set(false);\n }",
"private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}",
"public void Switch()\n {\n if(getCurrentPokemon().equals(Pokemon1))\n {\n // Change to pokemon2\n setCurrentPokemon(Pokemon2);\n }\n // if my current pokemon is the same as pokemon2\n else if(getCurrentPokemon().equals(Pokemon2))\n {\n // swap to pokemon1\n setCurrentPokemon(Pokemon1);\n }\n }",
"public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }",
"public abstract String currentStatus();",
"public void doIt() {\n status = true;\n }",
"public void setStatus(int status){\n Log.d(TAG, \"-- SET STATUS --\");\n switch(status){\n //connecting to remote device\n case BluetoothClientService.STATE_CONNECTING:{\n Toast.makeText(this, \"Connecting to remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connecting_button);\n break;\n }\n //not connected\n case BluetoothClientService.STATE_NONE:{\n Toast.makeText(this, \"Unable to connect to remote device\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.disconnect_button);\n statusButton.setTextOff(getString(R.string.disconnected));\n statusButton.setChecked(false);\n break;\n }\n //established connection to remote device\n case BluetoothClientService.STATE_CONNECTED:{\n Toast.makeText(this, \"Connection established with remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connect_button);\n statusButton.setTextOff(getString(R.string.connected));\n statusButton.setChecked(true);\n //start motion monitor\n motionMonitor = new MotionMonitor(this, mHandler);\n motionMonitor.start();\n break;\n }\n }\n }",
"public static void Turno(){\n\t\tif (pl1){\n\t\t\tpl1=false;\n\t\t\tpl2=true;\t\n\t\t\tvalore = 1;\n\t\t}\n\t\telse{\n\t\t\tpl1=true;\n\t\t\tpl2=false;\n\t\t\tvalore = 2;\n\t\t}\n\t}",
"public void setActiveStatus(Boolean active){ this.status = active; }",
"public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }",
"public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }",
"public void statusChanged(GameStatusEvent e) {\n gameRunning = false;\n if(e.isGameOver()) {\n gameWon = false;\n hauptfenster.getSounds().playGameOver(); // abspielen der Sounds\n } else if(e.isGameWon()) {\n gameWon = true;\n hauptfenster.getSounds().playGameWon(); // abspielen der Sounds\n }\n hauptfenster.getSpielfeld().drawNew(); // Spielfeld neu zeichnen\n hauptfenster.getToolbar().updateToolbar(hauptfenster.getDionaRapModel().getShootAmount(), hauptfenster.getDionaRapModel().getScore(), hauptfenster.getProgress());\n hauptfenster.getSpielfeld().gameStatusEnd(hauptfenster.getPlayer(), gameWon); // das Icon bei gewonnen oder verloren setzen\n hauptfenster.getToolbar().setEnabled(); // den \"Neues Spiel\"-Button auf aktiv setzen\n hauptfenster.getMenubar().setGameSettingsEnabled(); // den \"Spieleinstellungen\"-Button auf aktiv setzen\n\n int end_position = HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE;\n try{\n end_position = HighScoreFile.getInstance().getScorePosition(hauptfenster.getDionaRapModel().getScore()); // auslesen der Position\n } catch (IOException ex) {\n System.err.println(\"File kann nicht gelesen werden: \" + ex);\n }\n if(end_position != HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE && gameWon) {\n addBestlist(); // Bestenliste Dialog zeichnen\n }\n addDialog(gameWon); // den Dialog zeichnen\n }",
"public void turn_on () {\n this.on = true;\n }",
"@Override\n public void powerOn() {\n if(isOn)System.out.println(\"The Projector is already ON!\");\n else{\n System.out.println(\"The Projector is now ON!\");\n isOn = true;\n }\n }",
"public void change_status(int pos) {\n\t\tif (dragoes[pos].getStatus() != 0 && dragoes[pos].getStatus() != 1)\n\t\t\treturn;\n\t\tint random = 1 + (int)(Math.random()*4);\n\t\tif (random == 1) {\n\t\t\tif (dragoes[pos].getStatus() == 1) {\n\t\t\t\tdragoes[pos].setStatus(0);\n\t\t\t\tchange_dragon_pos(pos);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdragoes[pos].setStatus(1);\n\t\t\t\tchange_dragon_pos(pos);\n\t\t\t}\n\t\t}\n\t}",
"static void OPL_STATUS_SET(FM_OPL OPL, int flag) {\n /* set status flag */\n /*RECHECK*/\n OPL.status |= flag;\n if ((OPL.status & 0x80) == 0) {\n if ((OPL.status & OPL.statusmask) != 0) {\n /* IRQ on */\n\n OPL.status |= 0x80;\n /* callback user interrupt handler (IRQ is OFF to ON) */\n if (OPL.IRQHandler != null) {\n OPL.IRQHandler.handler(OPL.IRQParam, 1);\n }\n }\n }\n }",
"public void Power() {\n if (Estado == false){\r\n Estado = true;\r\n } else if (Estado == true){\r\n Estado = false;\r\n }\r\n }",
"void setStatus(int status);",
"public void setStable() {\n this.unstable = false;\n this.unstableTimeline.stop();\n this.statusLed.setFastBlink(false);\n if (this.shutdownButton.isSelected() == true) {\n this.statusLed.setStatus(\"off\");\n } else if (this.offlineButton.isSelected() == true) {\n this.statusLed.setStatus(\"warning\");\n } else {\n this.statusLed.setStatus(\"ok\");\n } \n }",
"public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}",
"OnOffSwitch alarmSwitch();",
"public void status(leapstream.scoreboard.core.model.Status status) {\n Stati stati = status.is();\n foreground(stati);\n background(stati);\n label.text(\"\" + stati);\n }",
"public void status(boolean b) {\n status = b;\n }",
"public void switchPlayer() {\n \tisWhitesTurn = !isWhitesTurn;\n }",
"public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }",
"void setOnStatus(Boolean on) {\n this.on = on;\n }",
"void onStatusChanged(Status newStatus);",
"boolean getStatus();",
"boolean getStatus();",
"boolean getStatus();",
"public void change() {\r\n this.mode = !this.mode;\r\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"protected abstract void switchOnCustom();",
"public void setCommStatus(int alliance, int station, boolean isFMSAlive,\n boolean isRobotAlive, boolean isTeamBypassed, boolean isESTOPPED) {\n //We default to not being ready.\n Color robCom = NOT_READY;\n Color dsCom = NOT_READY;\n //System.out.println(\"setting comm status...\");\n if (isESTOPPED) {\n robCom = ESTOPPED;\n dsCom = ESTOPPED;\n } else if (!isTeamBypassed) {\n if (isRobotAlive) {\n robCom = READY;\n }\n if (isFMSAlive) {\n dsCom = READY;\n }\n } else if (isTeamBypassed) {\n robCom = BYPASSED;\n dsCom = BYPASSED;\n }\n\n //Decision off of the alliance and position so we set the right control\n // values.\n if (alliance == FieldAndRobots.RED) {\n if (station == FieldAndRobots.ONE) {\n robotComStatusRedTeam1.setBackground(robCom);\n dsComStatusRedTeam1.setBackground(dsCom);\n } else if (station == FieldAndRobots.TWO) {\n robotComStatusRedTeam2.setBackground(robCom);\n dsComStatusRedTeam2.setBackground(dsCom);\n } else if (station == FieldAndRobots.THREE) {\n robotComStatusRedTeam3.setBackground(robCom);\n dsComStatusRedTeam3.setBackground(dsCom);\n } else {\n System.out.println(\"ERROR - SET COM 1\");\n }\n } else if (alliance == FieldAndRobots.BLUE) {\n if (station == FieldAndRobots.ONE) {\n robotComStatusBlueTeam1.setBackground(robCom);\n dsComStatusBlueTeam1.setBackground(dsCom);\n } else if (station == FieldAndRobots.TWO) {\n robotComStatusBlueTeam2.setBackground(robCom);\n dsComStatusBlueTeam2.setBackground(dsCom);\n } else if (station == FieldAndRobots.THREE) {\n robotComStatusBlueTeam3.setBackground(robCom);\n dsComStatusBlueTeam3.setBackground(dsCom);\n } else {\n System.out.println(\"ERROR - SET COM 2\");\n }\n } else {\n System.out.println(\"ERROR - SET COM 3\");\n }\n }",
"public void setWon(){\n won = true;\n }",
"public String toggleMap() {\r\n\t\tMap temp = sensor.getTrueMap();\r\n\t\tif (Map.compare(temp, smap.getMap())) {\r\n\t\t\tsmap.setMap(map.copy());\r\n\t\t\treturn \"robot\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsmap.setMap(temp.copy());\r\n\t\t\treturn \"simulated\";\r\n\t\t}\r\n\t}",
"private void switchGameState(GameState newMode) \n {\n switch(newMode)\n {\n case NOT_AVAIL:\n /* probably won't ever switch TO this mode, but still: */\n GAME_RUNNING = false;\n timTimer.stop(); //stop timer\n break;\n case EDITING:\n GAME_RUNNING = false;\n timTimer.stop(); //stop timer\n timWorld.reset(); //reset world\n canvas.repaint(); //repaint canvas\n break;\n case RUNNING:\n GAME_RUNNING = true;\n timWorld.prepare(); //prepare world\n timTimer.start(); //start timer\n break;\n case COMPLETE:\n GAME_RUNNING = false;\n timTimer.stop(); //stop timer\n fireTimEvent(new TimEvent(this,TimEvent.WIN), TimEvent.TIMGUI); //fire win event\n break;\n\n }\n }",
"private String changestatus(String string) {\n\t\tString changestatustemp;\r\n\t\tif (string.equals(\"0\")) {\r\n\t\t\tchangestatustemp = \"1\";\r\n\t\t} else {\r\n\t\t\tchangestatustemp = \"0\";\r\n\t\t}\r\n\t\treturn changestatustemp;\r\n\t}",
"private String changestatus(String string) {\n\t\tString changestatustemp;\r\n\t\tif (string.equals(\"0\")) {\r\n\t\t\tchangestatustemp = \"1\";\r\n\t\t} else {\r\n\t\t\tchangestatustemp = \"0\";\r\n\t\t}\r\n\t\treturn changestatustemp;\r\n\t}",
"@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }",
"private void setLightStatus() {\n if (mCmd.equals(MSG_ON)) {\n setLighIsOn(true);\n } else {\n setLighIsOn(false);\n }\n }",
"public void changeState(){\n\t\t//red - Green\n\t\tif (lights[0].isOn()){\n\t\t\tlights[0].turnOff();\n\t\t\tlights[2].turnOn();\n\t\t}\n\t\t\n\t\t//Green -yellow\n\t\telse if(lights[2].isOn()){\n\t\t\tlights[2].turnOff();\n\t\t\tlights[1].turnOn();\n\t\t}\n\t\t//yellow to red\n\t\telse if (lights[1].isOn()){\n\t\t\tlights[1].turnOff();\n\t\t\tlights[0].turnOn();\n\t\t}\n\t\t\n\t}",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public int status() \n {\n \tif (stonesCount(7,12) != 0 && stonesCount(0,5) != 0)\n \t\treturn GAME_NOT_OVER;\n \telse if (stonesCount(7,13) < stonesCount(0,6))\n \t\treturn GAME_OVER_WIN;\n \telse if (stonesCount(7,13) == stonesCount(0,6))\n \t\treturn GAME_OVER_TIE;\n \telse\n \t\treturn GAME_OVER_LOSE;\n }",
"void setNightModeState(boolean b);",
"public static void changeScreens() {\r\n\t\tnone = true;\r\n\t\toption1 = false;\r\n\t\toption2 = false;\r\n\t\toption3 = false;\r\n\t\toption4 = false;\r\n\t\toption5 = false;\r\n\t\tbackToRegFromItem = false;\r\n\t\toverItem = false;\r\n\t\toverYes = false;\r\n\t\toverNo = false;\r\n\t\toverNext = false;\r\n\t\toverHealth = false;\r\n\t\toverAlly = false;\r\n\t\toverPummel = false;\r\n\t\toverLaser = false;\r\n\t\titemSelect = false;\r\n\t\tgoBackFromProg = false;\r\n\t\tgoBackFromAlly = false;\r\n\t\toverAnAlly = false;\r\n\t\tgoBackFromAttire = false;\r\n\t\toverAnOutfit = false;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }",
"void setStatus(STATUS status);",
"static void OPL_STATUSMASK_SET(FM_OPL OPL, int flag) {\n OPL.statusmask = flag;\n /* IRQ handling check */\n OPL_STATUS_SET(OPL, 0);\n OPL_STATUS_RESET(OPL, 0);\n }",
"public void openGate(){\n\t\t\tgateStatus = \"open\";\n\t\t}",
"public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}",
"public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsiv_update.changeSwitchStatus();\n\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\teditor.putBoolean(MobileGuard.APP_AUTO_UPDATE,\n\t\t\t\t\t\tsiv_update.getSwitchStatus());\n\t\t\t\teditor.commit();\n\t\t\t}",
"private void setComponentStatus() {}",
"void setStatus(String status);",
"@Override\n public void runOpMode() {\n servo0 = hardwareMap.servo.get(\"servo0\");\n servo1 = hardwareMap.servo.get(\"servo1\");\n digital0 = hardwareMap.digitalChannel.get(\"digital0\");\n motor0 = hardwareMap.dcMotor.get(\"motor0\");\n motor1 = hardwareMap.dcMotor.get(\"motor1\");\n motor0B = hardwareMap.dcMotor.get(\"motor0B\");\n motor2 = hardwareMap.dcMotor.get(\"motor2\");\n blinkin = hardwareMap.get(RevBlinkinLedDriver.class, \"blinkin\");\n motor3 = hardwareMap.dcMotor.get(\"motor3\");\n park_assist = hardwareMap.dcMotor.get(\"motor3B\");\n\n if (digital0.getState()) {\n int_done = true;\n } else {\n int_done = false;\n }\n motor_stuff();\n waitForStart();\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n lancher_position();\n slow_mode();\n drive_robot();\n foundation_grabber(1);\n launcher_drive();\n data_out();\n Pickingupblockled();\n lettingoutblockled();\n Forwardled();\n backwardled();\n Turnleftled();\n Turnrightled();\n Stationaryled();\n }\n }\n }",
"public void turnOn() {\n\t\tOn = true;\n\t}",
"public boolean switchOn(){\n if(this.is_Switched_On){\n return false;\n }\n this.is_Switched_On = true;\n return true;\n }",
"public void playerMissedBall(){ active = false;}",
"void resetStatus();",
"@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}",
"public void startGame() {\n status = Status.COMPLETE;\n }",
"public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }",
"public void win()\r\n\t{\r\n\t\tmWon = true;\r\n\t}",
"@Test\n //checks for state switching (on/off)\n void SwitchStates() {\n Assertions.assertFalse(machine.isTurnedOn());\n\n //then, switch on and check if on\n machine.setTurnedOn(true);\n Assertions.assertTrue(machine.isTurnedOn());\n\n //switch off to see if turned off correctly\n machine.setTurnedOn(false);\n Assertions.assertFalse(machine.isTurnedOn());\n\n //and now check the inversion\n machine.flipSwitch();\n\n Assertions.assertTrue(machine.isTurnedOn());\n }",
"private com.wsguardian.courses.Status mapStatus(Status status) {\n\t\tif(status==Status.FAILURE) {\n\t\t\treturn com.wsguardian.courses.Status.FAILURE;\n\t\t}\n\t\treturn com.wsguardian.courses.Status.SUCCESS;\n\t}",
"com.polytech.spik.protocol.SpikMessages.StatusChanged getStatusChanged();",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void changeState() {\r\n if(state == KioskState.CLOSED) {\r\n state = KioskState.OPEN;\r\n } else {\r\n state = KioskState.CLOSED;\r\n }\r\n }",
"String getSwstatus();",
"public void turnOn() {\n\t\tisOn = true;\n\t}",
"public void setStatus(boolean status) {\n\tthis.status = status;\n }",
"void transStatus()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(passenger != null && status.equals(\"soon\"))\r\n\t\t\t{\r\n\t\t\t\tService s_temp = new Service(passenger);\r\n\t\t\t\tdes = passenger.loc;\r\n\t\t\t\tmakeService(loc.i*80+loc.j,des.i*80+des.j);\r\n\t\t\t\tstatus = \"stop\";\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tstatus = \"serve\";\r\n\t\t\t\tdes = passenger.des;\r\n\t\t\t\ts_temp.path.add(loc);\r\n\t\t\t\tmakeService(loc.i*80+loc.j,des.i*80+des.j,s_temp.path);\r\n\t\t\t\tstatus = \"stop\";\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tcredit += 3;\r\n\t\t\t\tser_times += 1;\r\n\t\t\t\tservices.add(s_temp);\r\n\t\t\t\t//refresh:\r\n\t\t\t\tstatus = \"wait\";\r\n\t\t\t\tpassenger = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Sorry to catch Exception!\");\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testWSStatus() {\n\t\tWorkSpace ws = new WorkSpace(null);\n\t\tWorkPackage wp1 = new WorkPackage(null);\n\t\twp1.setStatus(WPMaturity.State.Start);\n\t\tWorkPackage wp2 = new WorkPackage(null);\n\t\twp2.setStatus(WPMaturity.State.Start);\n\t\tWorkPackage wp3 = new WorkPackage(null);\n\t\twp3.setStatus(WPMaturity.State.Start);\t\t\n\t\tws.addWP(wp1);\n\t\tws.addWP(wp2);\n\t\tws.addWP(wp3);\n\t\t\n\t\tAssert.assertTrue(\"La maturité du ws n'est pas Start !\", ws.getWSMaturity() == WSMaturity.State.Start);\n\t\t\n\t\twp1.setStatus(WPMaturity.State.Start);\n\t\twp2.setStatus(WPMaturity.State.InProgress);\n\t\twp3.setStatus(WPMaturity.State.InProgress);\n\t\tAssert.assertTrue(\"La maturité du ws n'est pas Start !\", ws.getWSMaturity() == WSMaturity.State.Start);\n\t\t\n\t\twp1.setStatus(WPMaturity.State.InProgress);\n\t\twp2.setStatus(WPMaturity.State.InProgress);\n\t\twp3.setStatus(WPMaturity.State.InProgress);\t\t\n\t\tAssert.assertTrue(\"La maturité du ws n'est pas In Progress !\", ws.getWSMaturity() == WSMaturity.State.InProgress);\n\t\t\n\t\twp1.setStatus(WPMaturity.State.InProgress);\n\t\twp2.setStatus(WPMaturity.State.Done);\n\t\twp3.setStatus(WPMaturity.State.InProgress);\t\t\n\t\tAssert.assertTrue(\"La maturité du ws n'est pas In Progress !\", ws.getWSMaturity() == WSMaturity.State.InProgress);\n\t\t\n\t\twp1.setStatus(WPMaturity.State.Done);\n\t\twp2.setStatus(WPMaturity.State.Done);\n\t\twp3.setStatus(WPMaturity.State.Done);\t\t\n\t\tAssert.assertTrue(\"La maturité du ws n'est pas Done !\", ws.getWSMaturity() == WSMaturity.State.Done);\n\t}",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"private void foundRunning() {\n\t\tif (state == BridgeState.RUNNING || state == BridgeState.CREATED) {\n\t\t\tstate = BridgeState.RUNNING;\n\t\t}\n\t}",
"private void setUIState(WorkoutServiceStatus status) {\n\n\t\tboolean shouldEnableTimer = false;\n\n\t\t// If we can't start a new workout, and we're not monitoring, then we're in the \"setup\" phase.\n\t\tif (status == null || !(status.canStartNewWorkout() || status.isMonitoring())) {\n\t\t\t//symptoms and notifications are disabled\n//\t\t\tbtnSymptoms.setEnabled(false);\n//\t\t\tbtnNotifications.setEnabled(false);\n\t\t\tbtnSelectWorkout.setEnabled(false);\n\t\t\tbtnStartWorkout.setVisibility(View.INVISIBLE);\n\t\t\tbtnStopWorkout.setVisibility(View.INVISIBLE);\n\t\t}\n\n\t\t// If we're monitoring, we're in the \"workout\" phase.\n\t\telse if (status.isMonitoring()) {\n//\t\t\tbtnSymptoms.setEnabled(true);\n//\t\t\tbtnNotifications.setEnabled(true);\n\t\t\tbtnSelectWorkout.setEnabled(false);\n\t\t\tbtnStartWorkout.setVisibility(View.INVISIBLE);\n\t\t\tbtnStopWorkout.setVisibility(View.VISIBLE);\n\t\t\tshouldEnableTimer = true;\n\t\t}\n\n\t\t// if we're not monitoring (but we can start a new workout), we're in the \"ready\" phase.\n\t\telse {\n//\t\t\tbtnSymptoms.setEnabled(false);\n//\t\t\tbtnNotifications.setEnabled(false);\n\t\t\tbtnSelectWorkout.setEnabled(true);\n\t\t\tbtnStartWorkout.setVisibility(View.VISIBLE);\n\t\t\tbtnStopWorkout.setVisibility(View.INVISIBLE);\n\t\t}\n\n\t\t// If we're not fully connected to both Odin and the Bioharness, show the connection dialog.\n\t\tif (status == null || status.getBioharnessConnectivityStatus() != BHConnectivityStatus.CONNECTED) {\n\t\t\t//\tTODO: REMOVE ODIN CONNECTION\n//\t\t\t\t|| status.getOdinConnectivityStatus() != EndpointConnectionStatus.CONNECTED) {\n\n\n\t\t\tif (this.connectionDialog == null) {\n\t\t\t\tthis.connectionDialog = new ConnectionProgressDialogFragment();\n\n\t\t\t\tif (activityVisible) {\n\t\t\t\t\tthis.connectionDialog.show(this.getSupportFragmentManager(), \"ConnectionDialog\");\n\t\t\t\t} else {\n\t\t\t\t\tdismissConnectionDialogOnResume = false;\n\t\t\t\t\tshowConnectionDialogOnResume = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (status != null) {\n\t\t\t\tthis.connectionDialog.setBioharnessConnectionStatus(status.getBioharnessConnectivityStatus());\n\t\t\t\t//\tTODO: REMOVE ODIN CONNECTION\n//\t\t\t\tthis.connectionDialog.setOdinConnectionStatus(status.getOdinConnectivityStatus());\n\t\t\t} else {\n\t\t\t\tthis.connectionDialog.setBioharnessConnectionStatus(BHConnectivityStatus.DISCONNECTED);\n\t\t\t\tthis.connectionDialog.setOdinConnectionStatus(EndpointConnectionStatus.DISCONNECTED);\n\t\t\t}\n\n\t\t}\n\n\t\t// Otherwise, hide it.\n\t\telse {\n\t\t\tif (this.connectionDialog != null) {\n\t\t\t\tif (activityVisible) {\n\t\t\t\t\tthis.connectionDialog.dismiss();\n\t\t\t\t\tthis.connectionDialog = null;\n\t\t\t\t} else {\n\t\t\t\t\tdismissConnectionDialogOnResume = true;\n\t\t\t\t\tshowConnectionDialogOnResume = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// If the timer should be enabled, but isn't, enable it now. Also enable navigation\n\t\tif (shouldEnableTimer && timerUpdateThread == null) {\n\t\t\ttimerUpdateThread = new Thread(timerUpdateTask);\n\t\t\ttimerUpdateThread.setDaemon(true);\n\t\t\ttimerUpdateThread.start();\n\t\t\tisPaused = false;\n\t\t\tWorkoutService.setIsPaused(false);\n\t\t}\n\n\t\t// If the timer should be disabled, but is enabled, disable it now.\n\t\telse if (!shouldEnableTimer && timerUpdateThread != null) {\n\t\t\ttimerUpdateThread.interrupt();\n\t\t\ttry {\n\t\t\t\ttimerUpdateThread.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t\ttimerUpdateThread = null;\n\t\t\tisPaused = true;\n\t\t\tWorkoutService.setIsPaused(true);\n\t\t}\n\n\t}",
"private void penguinStormReaction(){\n if(obstacle.getUserData().getAssetId().equals(OBSTACLE_CLOUD_ASSETS_ID)){\n if(penguin.isFrightStopped()){\n obstacle.setStormRaining(false);\n }else{\n obstacle.setStormRaining(true);\n }\n }\n }"
] | [
"0.6661877",
"0.6555115",
"0.6445561",
"0.62968886",
"0.62242925",
"0.6157352",
"0.613742",
"0.6132631",
"0.6108069",
"0.60982215",
"0.6089014",
"0.6066448",
"0.6036878",
"0.6024505",
"0.5977137",
"0.59676725",
"0.5963416",
"0.5961699",
"0.59616345",
"0.59535074",
"0.58963084",
"0.58749515",
"0.5858393",
"0.5854454",
"0.5853963",
"0.58442634",
"0.5842968",
"0.5836261",
"0.58295757",
"0.58259046",
"0.58223027",
"0.5817645",
"0.58125794",
"0.5809563",
"0.58089596",
"0.580373",
"0.5802335",
"0.5801392",
"0.58004135",
"0.57963973",
"0.578268",
"0.57709044",
"0.5755017",
"0.57512397",
"0.57353115",
"0.5725532",
"0.5725195",
"0.57056737",
"0.57056737",
"0.57056737",
"0.5704721",
"0.5700997",
"0.5700997",
"0.5699999",
"0.5679781",
"0.56677204",
"0.56676257",
"0.5662711",
"0.56524605",
"0.56524605",
"0.56468016",
"0.56457424",
"0.5639517",
"0.5631071",
"0.56267756",
"0.56238437",
"0.56233394",
"0.5617937",
"0.5615176",
"0.5613174",
"0.5611728",
"0.56116575",
"0.561113",
"0.55950385",
"0.5594765",
"0.5591098",
"0.55852103",
"0.55844146",
"0.5576726",
"0.5565915",
"0.55605406",
"0.5556672",
"0.5554978",
"0.55526626",
"0.5550512",
"0.555021",
"0.5549875",
"0.5537061",
"0.55316055",
"0.5530324",
"0.55265254",
"0.552034",
"0.5512356",
"0.55082804",
"0.5495991",
"0.5492275",
"0.54898155",
"0.54887503",
"0.54882",
"0.5487173",
"0.5484883"
] | 0.0 | -1 |
cost to purchase property | public int cost() {
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double calculateCost(Purchase purchase);",
"@Override\n public double cost()\n {\n return this.price * this.number;\n }",
"double getCost();",
"double getCost();",
"@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}",
"public void purchase(Unit unit) {\n purchasePoints = purchasePoints - unit.cost();\n }",
"public Money getCost(){\r\n return this.cost;\r\n }",
"public double getCost() {\n return quantity*ppu;\n\n }",
"public abstract double getCost();",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"public double getCost(){\n return cost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"@Override\n public double getCost() {\n return cost;\n }",
"int getCost();",
"int getCost();",
"int getCost();",
"public double getCost()\r\n\t{\treturn this.cost;\t}",
"@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}",
"@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}",
"@Override\n public double getCost() {\n\t return 13;\n }",
"public int getCost(){\n return this.cost;\n }",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"public double getCustomerPurchase() { return this.customerPurchase; }",
"@Pure\n\tdouble getCost();",
"public int getCost() {\n/* 69 */ return this.cost;\n/* */ }",
"public double getCost() {\r\n\t \treturn(cost);\r\n\t}",
"double calculateDeliveryCost(Cart cart);",
"public double getCost() {\t\t \n\t\treturn cost;\n\t}",
"public BigDecimal getCost() {\n return this.cost;\n }",
"@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }",
"public BigDecimal getCost() {\r\n return cost;\r\n }",
"double purchasePrice();",
"public int getCost(){\r\n\t\treturn this.cost;\r\n\t}",
"public abstract int getCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"public double getCost() {\r\n return cost;\r\n }",
"public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}",
"public void setCost(double cost){\n this.cost = cost;\n }",
"public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}",
"@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\n return price;\n }",
"@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }",
"@Override\n public double cost(){\n return 2 + super.cake.cost();\n }",
"double getTotalCost();",
"@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }",
"@Override\n\tpublic double cost() {\n\t\treturn medicalRecord.cost() + 4.88;\n\t}",
"@Override\n public int getCost() {\n return iceCreamPrice + topPrice;\n }",
"public Number getCost()\r\n {\r\n return (m_cost);\r\n }",
"@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}",
"public double cost()\n\t{\n\t\treturn (price * weight);\n\t}",
"public double getCost() {\r\n\t\treturn cost;\r\n\t}",
"public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public int getCost()\n {\n return cost;\n }",
"public double calculatingCostO(int quantity)\n { \n cost = 750 + (0.25 * quantity);\n return cost;\n \n }",
"public CostInfo getCostInfo();",
"@Override\n public int getCost() {\n\treturn 0;\n }",
"@Override\n public int getCost() {\n\n\n //return cost converted to int\n return (int) cost;\n }",
"public String getCost() {\n return cost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}",
"@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}",
"public double getCost() {\n\t\treturn cost;\n\t}",
"public double getCost() {\n return this.product.getPrice() * quanity;\n }",
"double setCost(double cost);",
"public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }",
"public double getCost() {\n\t\treturn 1.25;\n\t}",
"public double getCosts();",
"public int getCost() {\n \t\treturn cost;\n \t}",
"public void setCost(double cost) {\n this.cost = cost;\n }",
"@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }",
"public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }",
"public void setCost(double cost) {\r\n this.cost = cost;\r\n }",
"public int getCost() {\n return cost;\n }",
"@NotNull\n public BigDecimal getCost() {\n return cost;\n }",
"public void setCost(double value) {\n this.cost = value;\n }",
"public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}",
"public void sellProperty(){\n owner.addMoney(costs[0]/2);\n owner.removeProperty(this);\n owner = null;\n }",
"public void getCosts() {\n\t}",
"@Override\r\n\tpublic double getCost() {\n\t\treturn 0;\r\n\t}",
"public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}",
"@Override\r\n\tpublic int cost() {\n\t\treturn b1.cost() + 1;\r\n\t}",
"public void setCost(BigDecimal cost) {\r\n this.cost = cost;\r\n }",
"public double getCost() {\n\n\t\treturn cost;\n\t}",
"public void setCost(int c) {\r\n this.cost = c;\r\n }",
"@Override\r\n\tprotected void processCost() {\n\r\n\t}",
"public double getCost()\n\t{\n\t\treturn 0.9;\n\t}",
"@Override\n public double getCost() {\n /**\n * @return the cost of Ice Cream\n */\n // TODO Auto-generated method stub\n return this.cost;\n }",
"public Integer getCost() {\n return cost;\n }",
"@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}",
"public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }",
"protected void setCost(double cost) \r\n\t{\tthis.cost = cost;\t}",
"void setCost(double cost);"
] | [
"0.81009036",
"0.7326355",
"0.71865046",
"0.71865046",
"0.7128192",
"0.71161026",
"0.7061196",
"0.7015848",
"0.7013262",
"0.7013167",
"0.699852",
"0.6942242",
"0.6922533",
"0.6895894",
"0.68943805",
"0.68943805",
"0.68943805",
"0.6893255",
"0.6869508",
"0.6859956",
"0.6854114",
"0.6846004",
"0.684019",
"0.68378824",
"0.68356115",
"0.6817119",
"0.6805419",
"0.6795066",
"0.67901206",
"0.6788918",
"0.67837363",
"0.6756322",
"0.6740934",
"0.6740911",
"0.6726736",
"0.67254704",
"0.67254704",
"0.67254704",
"0.6720219",
"0.67090213",
"0.6708782",
"0.6699586",
"0.66946965",
"0.6687175",
"0.6687175",
"0.66818947",
"0.6670476",
"0.6657416",
"0.6651457",
"0.66435885",
"0.6633097",
"0.6619513",
"0.66170275",
"0.65965366",
"0.6590645",
"0.658769",
"0.6587162",
"0.65773886",
"0.65773886",
"0.65751755",
"0.6573806",
"0.65730155",
"0.6551098",
"0.65318406",
"0.6530708",
"0.65301937",
"0.6515033",
"0.6515033",
"0.6510891",
"0.6507883",
"0.65062106",
"0.65027606",
"0.6499288",
"0.64906156",
"0.64793175",
"0.6478928",
"0.6476961",
"0.6476015",
"0.64667624",
"0.6462069",
"0.6448915",
"0.64450485",
"0.6444745",
"0.6437295",
"0.64353865",
"0.64171004",
"0.64163244",
"0.6412468",
"0.64124525",
"0.6405628",
"0.6401654",
"0.6398441",
"0.6396601",
"0.63919705",
"0.63777757",
"0.6363016",
"0.6356519",
"0.6351396",
"0.63502455",
"0.6346136",
"0.6338523"
] | 0.0 | -1 |
return number of buildings owned | public int numHouses() {
return buildings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getOwnedEntryCount();",
"public int getTotalbuildings() {\n\t\treturn totalbuildings;\n\t}",
"public int getBuildings(){\r\n\t\treturn buildings;\r\n\t}",
"public int getBuildings() {\r\n\t\treturn this.buildings;\r\n\t}",
"public int getNumberOfUserSpacesActivities(Identity ownerIdentity);",
"public int getNumberOfPeopleWaitingAtFloor(int floor) {\r\n return personCount.get(floor);\r\n }",
"public int getActiveRunwaysCount();",
"public int numOfEmptyRooms() {\n return (int) IntStream.rangeClosed(0, numOfRooms - 1)\n .mapToObj(x -> internalList.get(x)).filter(room -> !room.isOccupied()).count();\n }",
"public static int findNumberOfCreatedComputers() {\n return objCounter;\n }",
"int getUserQuestJobsCount();",
"public int getNumOfExcessOccupiedRooms() {\n return (int) IntStream.rangeClosed(numOfRooms, internalList.size() - 1)\n .mapToObj(x -> internalList.get(x)).filter(Room::isOccupied).count();\n }",
"public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }",
"public int getNumOfRooms() {\n return internalList.size();\n }",
"@Override\r\n\tpublic Integer getBind_house_cnt() {\n\t\treturn super.getBind_house_cnt();\r\n\t}",
"int getNumberOfStonesOnBoard();",
"int getPickupsCount();",
"int getNumberOfStonesLeftToPlace();",
"public int getPartyCount()\n\t{\n\t\tint r = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tr++;\n\t\treturn r;\n\t}",
"public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int size()\r\n {\r\n\treturn chromos.size();\r\n }",
"public final int getDeponentCount() {\r\n synchronized (f_seaLock) {\r\n return f_deponents.size();\r\n }\r\n }",
"int getNumberOfGuests();",
"public int count () {\n return member_id_list.length;\r\n }",
"public int getOrcCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }",
"int getNoOfParties();",
"public int getNbPawns(Player player) {\n Pawn aPawn;\n int Size, nbPawn;\n Size = getSize();\n nbPawn = 0;\n\n for (int numLine = 0; numLine < Size; numLine++) {\n for (int numCol = 0; numCol < Size; numCol++) {\n\n aPawn = field[numLine][numCol];\n if (aPawn != null) {\n if (aPawn.getPlayer() == player) nbPawn++; //if the pawn belong to player\n }\n\n }\n }\n\n return nbPawn;\n }",
"public int getNumberOfPeopleWaitingAtFloor(int floor) {\n\t\treturn personCount.get(floor);\n\t}",
"@Override\n\tpublic int countUsers(String partialName) {\n\t\tlong lcount = uDao.countUsers(partialName);\n\t\tif (lcount > Integer.MAX_VALUE) {\n\t\t\t// I know this won't ever happen, but I want to make the static code\n\t\t\t// checkers happy.\n\t\t\tlogger.error(\"Too many workspaces\");\n\t\t\treturn Integer.MAX_VALUE;\n\t\t} else {\n\t\t\treturn (int) lcount;\n\t\t}\n\t}",
"public int numPlayers(){\n return this.members.size();\n }",
"public int getNumTowns() {\n \t\treturn towns;\n \t}",
"public final int size() {\r\n\t\tint SIZE = workoutList.size();\r\n\r\n\t\treturn SIZE;\r\n\t}",
"public int getNumberOfOccupiedFields() {\n this.numberOfOccupiedFields = numberOfFieldsOccupiedByStoneColor(Color.WHITE) + numberOfFieldsOccupiedByStoneColor(Color.BLACK);\n return numberOfOccupiedFields;\n }",
"public int getOccupancy() {\r\n return teamRed.getSize() + teamBlue.getSize();\r\n }",
"@Query\n\tpublic int countFreeUin();",
"int getLocationsCount();",
"public int getNumberOfUserSpacesActivitiesForUpgrade(Identity ownerIdentity);",
"public int getNumGruppoPacchetti();",
"public int countByCopiedFrom(long copiedFrom);",
"public int getOccupied() {\n return occupied;\n }",
"private int totalCount(Piece side) {\n int sum = 0;\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n if (boardArr[i][j].abbrev().equals(sideAbbrev)) {\n sum++;\n }\n }\n }\n return sum;\n }",
"int getDeliveriesCount();",
"int getUniqueNumbersCount();",
"private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"static public int numberOfPersons() {\n return personMap.size();\n }",
"int getMonstersCount();",
"int getMonstersCount();",
"@Override\n public Long getNumberOfWalkers() {\n return walkerRepo.countById();\n }",
"public int getNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime);",
"int getNewlyAvailableQuestsCount();",
"private static int getNumLiveUnits(ArrayList<Unit> party){\n\t\tint count=0;\n\t\tfor(Unit u:party){\n\t\t\tif(!u.getPokemon().isFainted())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"public int size() { return _byHashCode.size(); }",
"int getAoisCount();",
"int getPurchasableOffersCount();",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public int countPlayers(){\n return players.size();\n }",
"protected int count_nbr_in_state ( int state )\r\n {\r\n OSPF_Interface oif;\r\n int count = 0;\r\n int i, j; \r\n int if_no, nbr_no;\r\n \r\n if_no = if_list.size();\r\n for ( i = 0; i < if_no; i++) {\r\n oif = (OSPF_Interface) if_list.elementAt(i);\r\n nbr_no = oif.neighbor_list.size();\r\n for ( j = 0; j < nbr_no; j++) {\r\n OSPF_Neighbor nbr = (OSPF_Neighbor) oif.neighbor_list.elementAt(j);\r\n if (nbr.state == state)\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"int getOccupation();",
"int getOccupation();",
"int getOccupation();",
"int getOccupation();",
"int getOccupation();",
"int getJobsCount();",
"int getJobsCount();",
"int getJobsCount();",
"public int getNumberOfSpaceActivities(Identity spaceIdentity);",
"int getReservePokemonCount();",
"public long getMembershipsCount() {\r\n return membershipsCount;\r\n }",
"long getUnjoinedEventsCount();",
"public int getWallItemsCount(String userUuid);",
"public static int getNumberOfProperty(int i){\n\t\t int temp = 0;\r\n\t\t for(int x = 0; x < whoOwnsIt.length; x++){\r\n\t\t\t if(whoOwnsIt[x] == i){\r\n\t\t\t\t temp++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t return temp;\r\n\t }",
"public int size() {\n resolveAll();\n return resolvedPojos.size();\n }",
"int getAchieveInfoCount();",
"public int getDonors()\n\t{\n\t\tint donors=0;\n\t\tString query=\"select count(distinct username) from donations\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonors=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donors;\n\t}",
"public int getNumberOfPeopleInElevator(int elevator) {\r\n /*\r\n switch(elevator) {\r\n case 1: return 1;\r\n case 2: return 4;\r\n default: return 0;\r\n }\r\n */\r\n int i = 0;\r\n try {\r\n ElevatorScene.personCountMutex.acquire();\r\n i = numberOfSpacesInElevator;\r\n ElevatorScene.personCountMutex.release();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } \r\n return i;\r\n }",
"public static int getNoOfHospitals(){\n return noOfHospitals;\n }",
"int getWayCount();",
"public int getNumberOfUserActivities(Identity owner) throws ActivityStorageException;",
"public int countOfGenerations ();",
"public int numeroOcupado() {\n int i = 0;\n for (Map.Entry e : lista.entrySet()) {\n Equipamento eq = (Equipamento) e.getValue();\n if (eq.getEstado().equals(\"Ocupado\"))\n i++;\n }\n return i;\n }",
"public int NumOfGames()\n\t{\n\t\treturn gametype.length;\n\t}",
"int getParticipantsCount();",
"int getParticipantsCount();",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"int getInCount();",
"public abstract long countByShipper(Shipper shipper);",
"public abstract long countByShipper(Shipper shipper);",
"public int nrOfPlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null) {\n playerCount++;\n }\n }\n\n return playerCount;\n }",
"public int numWorlds(){\n return worlds.size();\n }",
"public int size(){\r\n return boats.size();\r\n }",
"public int spawn() {\n int totalNumOfFryBorn = 0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n ArrayList<Guppy> currentBabies = new ArrayList<>();\n\n while (it.hasNext()) {\n Guppy mother = it.next();\n ArrayList<Guppy> newBabies = mother.spawn();\n if (newBabies != null) {\n totalNumOfFryBorn += newBabies.size();\n currentBabies.addAll(newBabies);\n }\n }\n guppiesInPool.addAll(currentBabies);\n return totalNumOfFryBorn;\n }",
"private int getReferences() {\n int quantity = 0;\n for (Option o : criteriaList.get(currentCriteria).getOptionList()) {\n boolean wasFound = false;\n for (String s : speciesLeft)\n if (o.getEntities().contains(s))\n wasFound = true;\n if (wasFound)\n ++quantity;\n }\n return quantity;\n }",
"int getPartsCount();",
"int getPartsCount();",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"public int getLobbyIdCount() {\n return lobbyId_.size();\n }",
"int getPersonInfoCount();"
] | [
"0.7119945",
"0.6833987",
"0.6585635",
"0.6494513",
"0.62939686",
"0.61926615",
"0.6128704",
"0.6105659",
"0.6084053",
"0.6076195",
"0.6059062",
"0.6058372",
"0.59865636",
"0.59586024",
"0.5950907",
"0.5914952",
"0.58679986",
"0.58422476",
"0.58281815",
"0.58260804",
"0.5797665",
"0.5796688",
"0.57847536",
"0.5780876",
"0.576468",
"0.57522726",
"0.57498425",
"0.57409376",
"0.5734743",
"0.57282096",
"0.57256377",
"0.5705723",
"0.5705379",
"0.5678993",
"0.5670192",
"0.56621814",
"0.5661356",
"0.5656476",
"0.5648983",
"0.56473124",
"0.56436515",
"0.56354576",
"0.56129175",
"0.56096065",
"0.56006044",
"0.55997413",
"0.5590025",
"0.5590025",
"0.55871916",
"0.55846775",
"0.5577023",
"0.5573783",
"0.55604225",
"0.5551804",
"0.55448526",
"0.55445945",
"0.55445945",
"0.55445945",
"0.5540838",
"0.55382514",
"0.5534671",
"0.5534671",
"0.5534671",
"0.5534671",
"0.5534671",
"0.5531643",
"0.5531643",
"0.5531643",
"0.5528032",
"0.55265874",
"0.55197036",
"0.5513128",
"0.5509596",
"0.55081034",
"0.55068034",
"0.550373",
"0.5499641",
"0.5497484",
"0.549725",
"0.5490345",
"0.5487145",
"0.5486587",
"0.5485628",
"0.54837894",
"0.54826283",
"0.54826283",
"0.54816276",
"0.54767203",
"0.5476616",
"0.5476616",
"0.5475063",
"0.5470668",
"0.546914",
"0.54657936",
"0.5465332",
"0.5465101",
"0.5465101",
"0.5462443",
"0.54569596",
"0.5453484"
] | 0.7122995 | 0 |
return cost to purchase one house | public int houseCost() {
return houses;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double calculateCost(Purchase purchase);",
"double getCost();",
"double getCost();",
"@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}",
"int getCost();",
"int getCost();",
"int getCost();",
"@Override\n public double cost()\n {\n return this.price * this.number;\n }",
"@Pure\n\tdouble getCost();",
"double getTotalCost();",
"public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}",
"@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}",
"public abstract double getCost();",
"public double getCost() {\r\n\t \treturn(cost);\r\n\t}",
"public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}",
"@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}",
"public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}",
"public double getCost()\r\n\t{\treturn this.cost;\t}",
"public double cost()\n\t{\n\t\treturn (price * weight);\n\t}",
"public double getCost() {\t\t \n\t\treturn cost;\n\t}",
"public abstract int getCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }",
"double calculateDeliveryCost(Cart cart);",
"public Number getCost()\r\n {\r\n return (m_cost);\r\n }",
"public int getCost(){\r\n\t\treturn this.cost;\r\n\t}",
"public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}",
"public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }",
"public double getCosts();",
"@Override\n public int getCost() {\n return iceCreamPrice + topPrice;\n }",
"public double getCost() {\n return price;\n }",
"public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }",
"public double getCost() {\r\n return cost;\r\n }",
"double purchasePrice();",
"public CostInfo getCostInfo();",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\r\n\t\treturn cost;\r\n\t}",
"public double cost() {\n return roomType.cost() + COST;\n }",
"@Override\n public double getCost() {\n return cost;\n }",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }",
"public double getCost() {\n return this.product.getPrice() * quanity;\n }",
"public int getCost() {\n \t\treturn cost;\n \t}",
"@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}",
"public BigDecimal getCost() {\n return this.cost;\n }",
"public double getCost() {\n return quantity*ppu;\n\n }",
"public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }",
"public double getCost() {\n\t\treturn cost;\n\t}",
"public int getCost()\n {\n return cost;\n }",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"public double getCost(){\n return cost;\n }",
"@Override\n public double getCost() {\n\t return 13;\n }",
"@Pure\n\tdouble getEstimatedCost();",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"public int getCost(){\n return this.cost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}",
"public double cost()\n\t{\n\t\treturn _dblCost;\n\t}",
"public BigDecimal getCost() {\r\n return cost;\r\n }",
"public double getCost() {\n\n\t\treturn cost;\n\t}",
"@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }",
"public double getCost() {\n\t\treturn 1.25;\n\t}",
"public double calculatingCostO(int quantity)\n { \n cost = 750 + (0.25 * quantity);\n return cost;\n \n }",
"public int getCost() {\n/* 69 */ return this.cost;\n/* */ }",
"public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}",
"public Money getCost(){\r\n return this.cost;\r\n }",
"@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}",
"public double getCost() {\n\t\tif (this.accommodationType.equals(TYPEsingle)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 50.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else {\n\t\t\t\treturn 110.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEdouble)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 98.0;\n\t\t\t} else {\n\t\t\t\treturn 154.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEfamily)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 86.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 180.6;\n\t\t\t\t} else {\n\t\t\t\t\treturn 120.4;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 283.8;\n\t\t\t\t} else {\n\t\t\t\t\treturn 189.2;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEpresidential)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 200.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 420.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 280.0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 660.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 440.0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}",
"public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}",
"public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}",
"public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}",
"public double getTotalCost() {\r\n return totalCost;\r\n }",
"public int getCost() {\n\t\treturn cost;\n\t}",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"public String getCost() {\n return cost;\n }",
"public double getTotal() {\n return totalCost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn medicalRecord.cost() + 4.88;\n\t}",
"public String getCost() {\n // Formats the cost amount into money format.\n NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US);\n String s = n.format(Double.parseDouble(_cost));\n return s;\n }",
"public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }",
"private int getCost(final String name) {\n\t\treturn getValue(name, COST);\n\t}",
"public BigDecimal getCost() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"Cost\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public void purchase(Unit unit) {\n purchasePoints = purchasePoints - unit.cost();\n }",
"public double getCost()\n\t{\n\t\treturn 0.9;\n\t}",
"public String getCost() {\n\t\tString t = doc.get(\"cost\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public Integer getCost() {\n return cost;\n }",
"public Integer getCost() {\r\n\t\treturn cost;\r\n\t}",
"public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }",
"public double getCost(Triple triple1) {\n\t\tif (gsh == null)\n\t\t\treturn vcp.getCost(triple1);\n\n\t\treturn gsh.getCost(triple1);\n\t}",
"@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }",
"String getTotalCost() {\n return Double.toString(totalCost);\n }",
"public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}",
"public int getHealthCost();"
] | [
"0.77440506",
"0.72712404",
"0.72712404",
"0.714288",
"0.708346",
"0.708346",
"0.708346",
"0.70586157",
"0.69965327",
"0.6966299",
"0.6963287",
"0.6958877",
"0.69311136",
"0.68135476",
"0.6791771",
"0.67608917",
"0.67501515",
"0.6708845",
"0.67057747",
"0.6705628",
"0.6703244",
"0.6703244",
"0.6703244",
"0.6686445",
"0.6674402",
"0.66414034",
"0.6640259",
"0.6630979",
"0.6621247",
"0.6619821",
"0.6619398",
"0.6601439",
"0.6598545",
"0.65950865",
"0.659192",
"0.65859395",
"0.6582755",
"0.6582755",
"0.6575922",
"0.6575202",
"0.6567599",
"0.6567599",
"0.6559359",
"0.65588474",
"0.65540713",
"0.655032",
"0.6549429",
"0.6542449",
"0.6530333",
"0.65296054",
"0.6528237",
"0.652216",
"0.65012753",
"0.64989686",
"0.64963835",
"0.64943725",
"0.6482767",
"0.64772606",
"0.6473681",
"0.64734304",
"0.64734304",
"0.6463829",
"0.64633083",
"0.6461482",
"0.64600104",
"0.6456463",
"0.64513266",
"0.6447041",
"0.6432552",
"0.64315265",
"0.6403392",
"0.6402146",
"0.6393916",
"0.6383786",
"0.63726455",
"0.63622725",
"0.63589656",
"0.6351424",
"0.63417774",
"0.63396543",
"0.63355815",
"0.63346505",
"0.6301956",
"0.6291072",
"0.62903357",
"0.6289982",
"0.6284254",
"0.6282641",
"0.62784094",
"0.6274838",
"0.62722164",
"0.62717265",
"0.62715936",
"0.62623906",
"0.6261841",
"0.624287",
"0.6241951",
"0.6239976",
"0.6234312",
"0.6232665"
] | 0.6755148 | 16 |
retrieve information about the profile with the provided id | @GET
@Path("/{userid}/{password}")
public Response logIn(@PathParam("userid") String userid, @PathParam("password") String password) throws ProfileDaoException {
Optional<Profile> user = api.getProfile(userid);
if(BCrypt.hashpw(password, user.get().getPassword()).equals(user.get().getPassword())){
//create Session
return Response
.ok(loginApi.logIn(userid))
.build();
} else {
return Response.status(Response.Status.NOT_FOUND).build();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getProfileInfo(String id) {\n\n new WebRequestTask(this, _handler, Constants.GET_METHOD,\n WebServiceDetails.GET_PROFILE_INFO_PID, true, WebServiceDetails.GET_PROFILE_INFO + id).execute();\n }",
"@Override\r\n public Profile getProfileById(int id) {\r\n return profileDAO.getProfileById(id);\r\n }",
"Profile getProfile( String profileId );",
"Accessprofile getById(Integer id);",
"@GetMapping(produces = { JSON, XML }, path = \"/profile/{id}\")\t\n\tpublic ResponseEntity<ProfileDTO> getProfile(@PathVariable(\"id\") int id, \n\t\t\t@RequestHeader(HttpHeaders.ACCEPT) Version version) { \n\t\t\n\t\tif(!principal.isAuthorized()) {\n\t\t\treturn ResponseEntity.ok(profileService.read(id, true, version));\n\t\t} \n\t\t\n\t\tUser issuer = getCurrentUser();\n\t\t\n\t\tif (issuer.getIdAsInt() == id) {\n\t\t\treturn ResponseEntity.ok(profileService.read(id, false, version));\n\t\t} else {\n\t\t\tProfileDTO fetched = profileService.read(id, true, version);\n\t\t\t\n\t\t\tif (fetched != null) {\n\t\t\t\tguestService.visitUserProfile(id, issuer.getIdAsInt(), false);\n\t\t\t}\n\t\t\t\n\t\t\treturn ResponseEntity.ok(fetched);\n\t\t}\n\t}",
"@GET\n @Path(\"{id}\")\n @Produces(\"application/json\")\n public Response findById(@PathParam(\"id\") Integer id) {\n try {\n Dao dao;\n DynaActionForm form;\n List<DynaActionForm> resultSet;\n \n dao = DaoFactory.getDao(\"Profile\");\n form = new DynaActionForm();\n form.setItem(\"selector\", \"byId\");\n form.setItem(\"id\", id);\n resultSet = dao.select(form);\n \n if(resultSet.size() != 1){\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n else {\n ProfileEntity profile = new ProfileEntity();\n profile.fromMap(resultSet.get(0).getItems());\n return Response.ok(profile).build();\n }\n } catch (Exception ex) {\n Logger.getLogger(ProfileResource.class.getName()).log(Level.SEVERE, null, ex);\n return Response.serverError().build();\n }\n }",
"public Profile getProfile(String id) {\r\n\t\tString uuid = id;\r\n\t\tSystem.out.println(\"MineshafterProfileClient.getProfile(\" + uuid + \")\");\r\n\t\tURL u;\r\n\t\ttry {\r\n\t\t\tu = new URL(API_URL + \"?uuid=\" + id);\r\n\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString profileJSON = Streams.toString(in);\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tSystem.out.println(\"MS API Response: \" + profileJSON);\r\n\r\n\t\t\tif (profileJSON == null || profileJSON.length() == 0) { return new Profile(); }\r\n\r\n\t\t\tJsonObject pj = JsonObject.readFrom(profileJSON);\r\n\r\n\t\t\tProfile p = new Profile(pj.get(\"username\").asString(), uuid);\r\n\t\t\tJsonValue skinVal = pj.get(\"skin\");\r\n\t\t\tJsonValue capeVal = pj.get(\"cape\");\r\n\t\t\tJsonValue modelVal = pj.get(\"model\");\r\n\r\n\t\t\tString url;\r\n\t\t\tif (skinVal != null && !skinVal.isNull() && !skinVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addSkin(uuid, skinVal.asString());\r\n\t\t\t\tp.setSkin(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (capeVal != null && !capeVal.isNull() && !capeVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addCape(uuid, capeVal.asString());\r\n\t\t\t\tp.setCape(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (modelVal != null && !modelVal.isNull()) {\r\n\t\t\t\tString model = modelVal.asString();\r\n\t\t\t\tif (model.equals(\"slim\")) {\r\n\t\t\t\t\tp.setModel(CharacterModel.SLIM);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tp.setModel(CharacterModel.CLASSIC);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn p;\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Unable to parse getProfile response, using blank profile\");\r\n\t\t\treturn new Profile();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile();\r\n\t}",
"void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);",
"void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<ComapiProfile>> callback);",
"@RequestMapping(value = \"/id{id}\", method = RequestMethod.GET)\n public String getUserProfileById(@PathVariable(\"id\") BigInteger id, Model model) {\n User user = userService.getById(id);\n if (user == null) {\n return \"redirect:/\";\n } else {\n model.addAttribute(\"user\", user);\n return \"profile\";\n }\n }",
"@GetMapping(\"/{id}\")\n public ResponseEntity<?> getUser(@PathVariable int id) {\n return profileService.getUserById(id);\n }",
"public Optional<CredentialProfile> get(StructuredTableContext context, CredentialProfileId id)\n throws IOException {\n StructuredTable table = context.getTable(CredentialProviderStore.CREDENTIAL_PROFILES);\n Collection<Field<?>> key = Arrays.asList(\n Fields.stringField(CredentialProviderStore.NAMESPACE_FIELD,\n id.getNamespace()),\n Fields.stringField(CredentialProviderStore.PROFILE_NAME_FIELD,\n id.getName()));\n return table.read(key).map(row -> GSON.fromJson(row\n .getString(CredentialProviderStore.PROFILE_DATA_FIELD), CredentialProfile.class));\n }",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"@RequestMapping(value = \"/profile\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Perfil>> listProfilesForFeature(Integer id) {\n\t\tList<Perfil> perfis = FuncionalidadePerfilServiceDao.getPerfilByFuncionalidade(id);\n\t\treturn new ResponseEntity<List<Perfil>>(perfis, HttpStatus.OK);\n\t}",
"@ResponseStatus(HttpStatus.OK)\r\n\t@RequestMapping(value = UrlHelpers.USER_PROFILE_ID, method = RequestMethod.GET)\r\n\tpublic @ResponseBody\r\n\tUserProfile getUserProfileByOwnerId(\r\n\t\t\t@RequestParam(value = AuthorizationConstants.USER_ID_PARAM, required = false) String userId,\r\n\t\t\t@PathVariable String profileId) throws DatastoreException, UnauthorizedException, NotFoundException {\r\n\t\tUserInfo userInfo = userManager.getUserInfo(userId);\r\n\t\treturn userProfileManager.getUserProfile(userInfo, profileId);\r\n\t}",
"UserDetails get(String id);",
"@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}",
"public GrowthProfile getSpecificGrowthProfile(int id);",
"public T getSelectedProfile(int Id);",
"@GET\n\t @Path(\"/{userid}\")\n\t public Response getProfile(@PathParam(\"userid\") String userid) throws ProfileDaoException {\n\t return Response\n\t .ok(api.getProfile(userid).get())\n\t .build();\n\t }",
"public User getUserData(String id);",
"public int getProfile_id() {\n return profileID;\n }",
"@Transactional(readOnly = true)\n public Optional<DiscordUserProfile> findOne(Long id) {\n log.debug(\"Request to get DiscordUserProfile : {}\", id);\n return discordUserProfileRepository.findById(id);\n }",
"public UserInformation findInformationById(int id);",
"public String fetchNameFromId(long id){\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + id + \".json\");\n return JSONParser.parseUserStringForName(response);\n }",
"@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }",
"@GetMapping(\"/{id}\")\n @Timed\n @ApiOperation(value = \"获取认证用户信息\", response = VerifyProfile.class)\n public ResponseEntity<VerifyProfileDTO> getVerifyProfile(@PathVariable Long id) {\n log.debug(\"REST request to get VerifyProfile : {}\", id);\n VerifyProfileDTO verifyProfileDTO = verifyProfileService.findOne(id);\n return ResponseEntity.ok(verifyProfileDTO);\n }",
"@Override\n\tpublic Profesores obtenerProfesores(String id) {\n\t\treturn profesoresRepositorio.findOne(id);\n\t}",
"public String getProfile();",
"public static Profile getById(String profileId) {\n return Dao.getInstance().get(Profile.class, profileId);\n }",
"Map<String, Object> getUserProfile();",
"public void getProfileInformation() {\n\t\tmAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t@Override\n\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\tLog.d(\"Profile\", response);\n\t\t\t\tString json = response;\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject profile = new JSONObject(json);\n\t\t\t\t\tLog.d(\"Arvind Profile Data\", \"\"+profile.toString());\n\t\t\t\t\tfinal String name = profile.getString(\"name\");\n\t\t\t\t\tfinal String email = profile.getString(\"email\");\n\t\t\t\t\tHashMap<String, String> hashMap = new HashMap<String, String>();\n\n\t\t\t\t\thashMap.put(\"first_name\", profile.getString(\"first_name\"));\n\n\t\t\t\t\thashMap.put(\"last_name\", profile.getString(\"last_name\"));\n\n\t\t\t\t\thashMap.put(\"id\", profile.getString(\"id\"));\n\n\t\t\t\t\thashMap.put(\"gender\", profile.getString(\"gender\"));\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"email\", profile.getString(\"email\"));\n\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"birthday\", profile.getString(\"birthday\"));\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//\tGetAlbumdata();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\treturnIntent.putExtra(\"map\", hashMap);\n\t\t\t\t\tsetResult(RESULT_OK,returnIntent);\n\t\t\t\t\tfinish();\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} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFileNotFoundException(FileNotFoundException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t}",
"@CrossOrigin\r\n @RequestMapping(value = USER_DETAIL, method=RequestMethod.GET)\r\n public ResponseEntity<?> getUserDetail(@RequestParam(\"id\") String id) {\r\n\r\n \tcheckLogin();\r\n EmployeeVO emp = employeeService.getEmployeeDetailById(id);\r\n return new ResponseEntity<>(emp, HttpStatus.OK);\r\n }",
"String getProfile();",
"public Profile get(Long id, String authenticationCode, long profileId) {\n return new Profile((int)(long)id,\"PROFIL_TESTOWY\", Boolean.FALSE, Boolean.TRUE);\n }",
"@Query(\"SELECT p FROM Profile p JOIN FETCH p.contact WHERE p.id=:id\")\n\tProfile findById(@Param(\"id\")Long id);",
"@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}",
"H getProfile();",
"public static User getUser(String id){\n\t\tWSResponse response = null;\n\t\tUser user = null;\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_ONE_USER+id)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tuser = new Gson().fromJson(response.getBody(), User.class);\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn user;\n\t}",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"UserDTO getProfile(final int userId) throws DataUnreachableException;",
"@Override\n\tpublic StudentInfo getStudentInfo(String id) {\n\t\treturn userMapper.getStudentInfo(id);\n\t}",
"public User findById(int id) {\n\t\tUser user = getByKey(id);\r\n\t\tif(user != null) {\r\n\t\t\tHibernate.initialize(user.getUserProfiles());\r\n\t\t}\r\n\t\treturn user;\r\n\t}",
"public Account getUserAllInfo(int id) {\n\t\treturn accRepo.findById(id).orElse(null);\n\t}",
"@Override\n\tpublic IUserAccount getFullInfo(Integer id) {\n\t\treturn null;\n\t}",
"@RequestMapping(value=\"/user/{id}\",method=RequestMethod.GET)\n\tpublic @ResponseBody ResponseEntity<User> getOneUserDetails(@PathVariable Long id)throws Exception{\n\t\tUser user=null;\n\t\t\tuser=userDAO.findOne(id);\n\t\t\tif(user!=null)\n\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t}",
"@GetMapping(\"consumer/find/{id}\")\n public User findby (@PathVariable(\"id\") Integer id) {\n return restTemplate.getForObject(\"http://provider-user/provider/find/\" + id, User.class);\n }",
"@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }",
"public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String id = currentPerson.getId();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Id: \"+id+\", Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(id, email, personName);\n// SharedPreferences preferences = mBaseActivity.getSharedPreferences(\"com.yathams.loginsystem\", MODE_PRIVATE);\n// preferences.edit().putString(\"email\", email).putString(\"userName\", personName).commit();\n\n } else {\n Toast.makeText(getApplicationContext(),\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private RecordProfile recordProfile(long p_id)\n throws PaginatedResultSetXmlGenerationException\n {\n Long id = new Long(p_id);\n RecordProfile rp = (RecordProfile)m_profiles.get(id);\n if (rp == null)\n {\n try\n {\n rp = RecordProfileDbAccessor.readRecordProfile(p_id);\n // The following line is commented out as a temporary fix for bug\n // #GSDEF00001925. This ensures that the record profile must be\n // loaded from the database every time, guaranteeing that changes\n // are immediately visible.\n // m_profiles.put(id, rp);\n }\n catch (Exception e)\n {\n throw new PaginatedResultSetXmlGenerationException(\n \"Unable to load record profile with id=\" + p_id, e);\n }\n }\n return rp;\n }",
"Request<UserInfoDetailsProxy> findUserInfoDetails(Long id);",
"public Candidat getUserByid(int id) {\n Candidat candidat = StaticVars.currentCandidat;\n String url = StaticVars.baseURL + \"/userbyid\";\n ConnectionRequest req = new ConnectionRequest();\n req.setUrl(url);\n req.setPost(false);\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n }\n\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return candidat;\n\n }",
"private void getUserFromDatabase(String id) {\n splashViewModel.getUserFromId(id);\n splashViewModel.getUser().observe(this, user -> {\n startSessionListActivity(user.getUid());\n finish();\n });\n }",
"public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }",
"public String getProfileId() {\n return profileId;\n }",
"@RequestMapping(value = \"/getUserProfileDetails\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic GetUserProfileResponse getUserProfileDetails(@RequestParam String emailId) {\n \tGetUserProfileResponse getUserProfileDetails = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetUserProfileDetails = this.econnectService.getUserProfileDetails(emailId);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getUserProfileDetails;\n\t}",
"public void getDetail(int id) {\n\t\t\n\t}",
"public MemberInfoDTO read(String id) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.read\", id);\r\n\t}",
"public userreg showuser(String id) {\n\t\t\n\t\ttry{\n\t\t\tSession s = sessionFactory.openSession();\n\t\t\tTransaction t =s.getTransaction();\n\t\t\tt.begin();\n\t\t\tuserreg usr=s.get(userreg.class, id);\n\t\t\tt.commit();\n\t\t\ts.close();\n\t\t\treturn usr;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic SpaceUserVO getUserInfo(String id) throws Exception {\n\t\treturn null;\n\t}",
"public Profile searchProfile(String name) {\r\n\t\tSystem.out.println(\"MineshafterProfileClient.searchProfile(\" + name + \")\");\r\n\r\n\t\ttry {\r\n\t\t\tname = URLEncoder.encode(name, \"UTF-8\");\r\n\t\t\tURL u = new URL(API_URL + \"?username=\" + name);\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString uuid = Util.ensureUUIDFormatted(Streams.toString(in));\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tif (uuid == null || uuid.length() == 0) { return new Profile(name); }\r\n\r\n\t\t\treturn new Profile(name, uuid);\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile(name);\r\n\t}",
"HumanProfile getUserProfile();",
"@GET\n\t@Path(\"/id\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response findById(@QueryParam(\"id\") Long id) throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tUser userById = userDao.getUserById(id);\n\t\t\n\t\tif (userById != null) {\n\t\t\treturn Response\n\t\t\t\t\t.status(200)\n\t\t\t\t\t.entity(userById)\n\t\t\t\t\t.header(\"Access-Control-Allow-Headers\", \"X-extra-header\")\n\t\t\t\t\t.allow(\"OPTIONS\")\n\t\t\t\t\t.build();\n\t\t} else {\n\t\t\treturn Response\n\t\t\t\t\t.status(404)\n\t\t\t\t\t.entity(\"The user with the id \" + id + \" does not exist\")\t\t\t\t\t\n\t\t\t\t\t.build();\n\t\t}\n\t}",
"public User read(String id);",
"public Author getAuthorProfile(int authorId);",
"public Profile getProfile(String userId, boolean loaded) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"getProfile\", new Object[] { userId, loaded });\n\t\t}\n\t\tif (StringUtil.isEmpty(userId)) {\n\t\t\tlogger.fine(\"User id is empty, returning null profile\");\n\t\t\treturn null;\n\t\t}\n\t\tProfile profile = new Profile(this, userId);\n\t\tif (loaded) {\n\t\t\tload(profile); // fetches profile content from server and populates\n\t\t\t\t\t\t\t// content of data member\n\t\t}\n\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tString log = \"\";\n\t\t\tif (profile.getId() != null) {\n\t\t\t\tlog = \"returning requested profile\";\n\t\t\t} else {\n\t\t\t\tlog = \"empty response from server for requested profile\";\n\t\t\t}\n\t\t\tlogger.exiting(sourceClass, \"getProfile\", log);\n\t\t}\n\t\treturn profile;\n\t}",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}",
"@Override\r\n\tpublic UserAccount get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tua = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}",
"public User getAccount(Long id) {\n User user = systemService.getUserFromDb(id); //add on 2020-12-4\n if (user != null\n && user.getCustomerAccountProfile() != null\n && user.getCustomerAccountProfile().getId() != null) {\n CustomerAccountProfile customerAccountProfile = msCustomerAccountProfileService.getById(user.getCustomerAccountProfile().getId());\n if (customerAccountProfile != null\n && customerAccountProfile.getCustomer() != null\n && customerAccountProfile.getCustomer().getId() != null ) {\n Customer customer = msCustomerService.get(customerAccountProfile.getCustomer().getId());\n if (customer != null) {\n customerAccountProfile.setCustomer(customer);\n }\n user.setCustomerAccountProfile(customerAccountProfile);\n }\n }\n return user;\n }",
"ProfileStatusReader getProfileUpdate( String profileId );",
"public Person getPerson(String id) throws DataAccessException {\n Person person;\n ResultSet rs = null;\n String sql = \"SELECT * FROM persons WHERE person_id = ?;\";\n try(PreparedStatement stmt = conn.prepareStatement(sql)) {\n stmt.setString(1, id);\n rs = stmt.executeQuery();\n if (rs.next()) {\n person = new Person(rs.getString(\"person_id\"), rs.getString(\"assoc_username\"),\n rs.getString(\"first_name\"), rs.getString(\"last_name\"),\n rs.getString(\"gender\"), rs.getString(\"father_id\"),\n rs.getString(\"mother_id\"), rs.getString(\"spouse_id\"));\n return person;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n throw new DataAccessException(\"Error encountered while finding person\");\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }",
"@Override\n\tpublic UserBaseInfo loadById(Integer id) {\n\t\treturn userBaseInfoMapper.loadById(id);\n\t}",
"private void retrieveProfile() {\r\n\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n\r\n if (user == null) {\r\n return;\r\n }\r\n\r\n String userId = user.getUid();\r\n String email = user.getEmail();\r\n DocumentReference reference = mFirebaseFirestore.collection(\"users\").document(userId);\r\n reference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if (task.isSuccessful()) {\r\n DocumentSnapshot documentSnapshot = task.getResult();\r\n mTextViewName.setText((CharSequence) documentSnapshot.get(\"name\"));\r\n mTextViewContact.setText((CharSequence) documentSnapshot.get(\"contact\"));\r\n mTextViewEstate.setText((CharSequence) documentSnapshot.get(\"estate\"));\r\n mTextViewHouseNo.setText((CharSequence) documentSnapshot.get(\"houseno\"));\r\n }\r\n Toast.makeText(Testing.this, \"Profile data loaded successfully!\", Toast.LENGTH_LONG).show();\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Toast.makeText(Testing.this, \"Error fetching profile data. Check your internet connection!\" + e.toString(), Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n\r\n }",
"@Override\n\tpublic Map<String, String> findUserInfobById(int id) {\n\t\treturn null;\n\t}",
"public UserProfile getUserProfile(String username);",
"@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }",
"public void getProfileInformation() {\n\n\t\t mAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t @Override\n\t\t\t public void onComplete(String response, Object state) {\n\t\t\t\t Log.d(\"Profile\", response);\n\t\t\t\t String json = response;\n\t\t\t\t try {\n\t\t\t\t\t // Facebook Profile JSON data\n\t\t\t\t\t JSONObject profile = new JSONObject(json);\n\n\t\t\t\t\t uName = profile.getString(\"name\");\n\t\t\t\t\t uMail = profile.getString(\"email\");\n\t\t\t\t\t //uGender=profile.getString(\"gender\");\n\n\n\t\t\t\t\t //final String birthday=profile.getString(\"birthday\");\n\t\t\t\t\t runOnUiThread(new Runnable() {\n\t\t\t\t\t\t @Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t //Toast.makeText(getApplicationContext(), \"Name: \" + name + \"\\nEmail: \" + email+\"\\nGender: \"+gender, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }\n\t\t\t\t\t });\n\t\t\t\t } \n\t\t\t\t catch (JSONException e) \n\t\t\t\t {\n\t\t\t\t\t errorMessage = \"JSON Error Occured\";\n\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onIOException(IOException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Data read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFileNotFoundException(FileNotFoundException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Image read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\t Object state) {\n\t\t\t\t errorMessage = \"Facebook URL Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Error Occured OnFacebook\";\n\t\t\t }\n\t\t });\n\t }",
"public Profile getProfile(String userId) {\n\t\treturn getProfile(userId, true);\n\t}",
"@ApiOperation(value = \"GetById\", nickname = \"GetById\")\n @GetMapping(value = \"/{uid}\")\n @ResponseStatus(HttpStatus.OK)\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Ok\"),\n @ApiResponse(code = 400, message = \"BadRequest\"),\n @ApiResponse(code = 401, message = \"Unauthorized\"),\n @ApiResponse(code = 403, message = \"Forbidden\"),\n @ApiResponse(code = 404, message = \"Not Found\"),\n @ApiResponse(code = 500, message = \"InternalServerError\"),\n @ApiResponse(code = 503, message = \"Service Unavailable\")})\n public UserProfileDTO getUserProfile(@PathVariable String uid) {\n\n\n // get from database here\n return userProfileService.getUserProfileById(uid);\n }",
"public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}",
"public String getName(int id) {\n\t\tOptional<Contacto> contact = currentUser.getContacts().stream().filter(c -> c.getUserId() == id).findFirst();\n\t\tif (contact.isPresent())\n\t\t\treturn contact.get().getName();\n\t\treturn userCatalog.getUser(id).getName();\n\t}",
"protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString profileId = (String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID);\r\n\r\n\t\tSite site = Utils.getEffectiveSite(request);\r\n\t\tString siteDNSName = (site == null ? null : site.getDNSName());\r\n\r\n\t\tIUserProfileRetriever retriever = UserProfileRetrieverFactory.createUserProfileImpl(AuthenticationConsts.USER_PROFILE_RETRIEVER, siteDNSName);\r\n\t\ttry {\r\n\t\t\ttimeRecorder.recordStart(Operation.PROFILE_CALL);\r\n\t\t\tMap<String, Object> userProfile = retriever.getUserProfile(profileId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request);\r\n\t\t\ttimeRecorder.recordEnd(Operation.PROFILE_CALL);\r\n\t\t\treturn userProfile;\r\n\t\t} catch (UserProfileException ex) {\r\n\t\t\ttimeRecorder.recordError(Operation.PROFILE_CALL, ex);\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.PROFILE001, ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"public static Uri buildProfileUri(long id){\n return ContentUris.withAppendedId(CONTENT_URI, id);\n }",
"protected void loadUser(String id) {\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(activity, ShowUserInfo.class);\n\t\tintent.putExtra(\"username\", id);\n\t\tintent.putExtra(\"owner\", username);\n\t\t\n\t\tstartActivity(intent);\n//\t\tthis.finish();\n\t}",
"@GetMapping(value = \"/\")\n\tpublic String getMyProfile(Model model) {\t\t\n\t\tlong profileId =3; \n\t\tSystem.out.println(\"Mapping done for profile id\"+profileId);\n\t\tProfile profile = profileService.getProfile(profileId);\n\t\tList<Education> edu = educationService.getEducationList();\n Address address = addressService.getAddress(profileId);\n List<WorkExp> workExpList = workExpService.getWorkExpList();\n List<AreaOfExpertise> areaOfExpertiseList = areaOfExpertiseService.getAreaOfExpertiseList();\n List<Project> projectList = projectService.getProjectsList();\n List<Skill> skillsList =skillService.getSkill();\n\t\tmodel.addAttribute(\"Profile\",profile);\n\t\tmodel.addAttribute(\"Address\",address);\n\t\tmodel.addAttribute(\"EducationList\",edu);\n\t\tmodel.addAttribute(\"WorkExpList\",workExpList);\n\t\tmodel.addAttribute(\"AreaOfExpertiseList\",areaOfExpertiseList);\n\t\tmodel.addAttribute(\"ProjectList\",projectList);\n\t\tmodel.addAttribute(\"SkillsList\",skillsList);\n\t\treturn \"home\";\n\t\t}",
"Request<UserInfoDetailsProxy> findDetailsFromUser(Long id);",
"@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}",
"public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"private void getProfileInfo() {\n boolean connectivity=checkConnection();\n if(connectivity){\n progressBar.setVisibility(View.VISIBLE);\n assert currentUser != null;\n String userid = currentUser.getUid();\n databaseReference.child(userid).addValueEventListener(new ValueEventListener() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String name = Objects.requireNonNull(dataSnapshot.child(\"name\").getValue()).toString();\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String number = Objects.requireNonNull(dataSnapshot.child(\"number\").getValue()).toString();\n String email = currentUser.getEmail();\n Name.setText(name);\n Number.setText(\"+92\" + number);\n Email.setText(email);\n progressBar.setVisibility(View.GONE);\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n else{\n Toast.makeText(getContext(), \"No Internet Connectivity!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"public String getUser(int id){\n\t\treturn listePseudo.get(id);\n\t}",
"public User getProf(String name) { return userDAO.getProfile(name); }",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"@GET\n\t @Path(\"/topUser\")\n\t public Response getProfile() throws ProfileDaoException {\n\t return Response\n\t .ok(api.getTopUser(datastore))\n\t .build();\n\t }",
"public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}",
"@Override\n\tpublic ProfileInfo getProfileInfo() {\n\t\treturn (ProfileInfo)map.get(PROFILE_INFO);\n\t}",
"private void getProfil() {\n Call<FeedUser> call = baseApiService.getAllProfile(sessionManager.getSpContenttype(),\n sessionManager.getSpAccept(), sessionManager.getSpAuthorization());\n call.enqueue(new Callback<FeedUser>() {\n @Override\n public void onResponse(Call<FeedUser> call, Response<FeedUser> response) {\n if (response.isSuccessful()) {\n try {\n name = response.body().getDataProfil().getName().toString();\n email = response.body().getDataProfil().getEmail();\n initComponetNavHeader();\n } catch (Exception e) {\n Log.d(TAG, \" error :\" + e);\n }\n\n } else {\n Toast.makeText(SettingActivity.this, \"Response not success\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<FeedUser> call, Throwable t) {\n Toast.makeText(SettingActivity.this, \"Cek Connection\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }"
] | [
"0.8523881",
"0.80976677",
"0.8062232",
"0.78460634",
"0.78457266",
"0.7650972",
"0.75422204",
"0.73232377",
"0.7183972",
"0.71753967",
"0.7106202",
"0.71003985",
"0.7008095",
"0.69933677",
"0.6874031",
"0.6855578",
"0.6824431",
"0.6777835",
"0.6758583",
"0.67405266",
"0.67308545",
"0.67289466",
"0.67099875",
"0.66718143",
"0.66699725",
"0.6664203",
"0.6650612",
"0.6598877",
"0.6589726",
"0.6575999",
"0.65573317",
"0.6546124",
"0.65423304",
"0.65278876",
"0.6524472",
"0.651532",
"0.6469345",
"0.64386266",
"0.64079297",
"0.63885635",
"0.6385989",
"0.6377508",
"0.63735294",
"0.6362019",
"0.6353392",
"0.6352855",
"0.6329292",
"0.63246894",
"0.632188",
"0.6313755",
"0.63127023",
"0.6302913",
"0.62966007",
"0.62946147",
"0.6285221",
"0.6267388",
"0.6266746",
"0.6258217",
"0.6254926",
"0.6219481",
"0.62082416",
"0.62039554",
"0.6194269",
"0.6192881",
"0.6188302",
"0.618389",
"0.6179412",
"0.61780846",
"0.6176413",
"0.61725414",
"0.61722726",
"0.6168759",
"0.61578095",
"0.61497235",
"0.61440223",
"0.613516",
"0.61305994",
"0.6128602",
"0.6125376",
"0.61200243",
"0.6113747",
"0.61120915",
"0.6111151",
"0.6098586",
"0.60889775",
"0.60829115",
"0.60813063",
"0.60796624",
"0.60687083",
"0.6062106",
"0.6058136",
"0.60574126",
"0.6051274",
"0.6049541",
"0.60367185",
"0.603165",
"0.60305285",
"0.6027025",
"0.60229903",
"0.6012161",
"0.60082227"
] | 0.0 | -1 |
retrieve information about the profile with the provided id | @POST
@Path("/create")
@Consumes(MediaType.APPLICATION_JSON)
public Response createUser(ProfileJson json) throws ProfileDaoException {
Profile profile = json.asProfile();
profile.setPassword(BCrypt.hashpw(profile.getPassword(), BCrypt.gensalt()));
//add checking if profile doesn't exit
api.saveProfile(profile, datastore);
return Response
.created(null)
.build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getProfileInfo(String id) {\n\n new WebRequestTask(this, _handler, Constants.GET_METHOD,\n WebServiceDetails.GET_PROFILE_INFO_PID, true, WebServiceDetails.GET_PROFILE_INFO + id).execute();\n }",
"@Override\r\n public Profile getProfileById(int id) {\r\n return profileDAO.getProfileById(id);\r\n }",
"Profile getProfile( String profileId );",
"Accessprofile getById(Integer id);",
"@GetMapping(produces = { JSON, XML }, path = \"/profile/{id}\")\t\n\tpublic ResponseEntity<ProfileDTO> getProfile(@PathVariable(\"id\") int id, \n\t\t\t@RequestHeader(HttpHeaders.ACCEPT) Version version) { \n\t\t\n\t\tif(!principal.isAuthorized()) {\n\t\t\treturn ResponseEntity.ok(profileService.read(id, true, version));\n\t\t} \n\t\t\n\t\tUser issuer = getCurrentUser();\n\t\t\n\t\tif (issuer.getIdAsInt() == id) {\n\t\t\treturn ResponseEntity.ok(profileService.read(id, false, version));\n\t\t} else {\n\t\t\tProfileDTO fetched = profileService.read(id, true, version);\n\t\t\t\n\t\t\tif (fetched != null) {\n\t\t\t\tguestService.visitUserProfile(id, issuer.getIdAsInt(), false);\n\t\t\t}\n\t\t\t\n\t\t\treturn ResponseEntity.ok(fetched);\n\t\t}\n\t}",
"@GET\n @Path(\"{id}\")\n @Produces(\"application/json\")\n public Response findById(@PathParam(\"id\") Integer id) {\n try {\n Dao dao;\n DynaActionForm form;\n List<DynaActionForm> resultSet;\n \n dao = DaoFactory.getDao(\"Profile\");\n form = new DynaActionForm();\n form.setItem(\"selector\", \"byId\");\n form.setItem(\"id\", id);\n resultSet = dao.select(form);\n \n if(resultSet.size() != 1){\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n else {\n ProfileEntity profile = new ProfileEntity();\n profile.fromMap(resultSet.get(0).getItems());\n return Response.ok(profile).build();\n }\n } catch (Exception ex) {\n Logger.getLogger(ProfileResource.class.getName()).log(Level.SEVERE, null, ex);\n return Response.serverError().build();\n }\n }",
"public Profile getProfile(String id) {\r\n\t\tString uuid = id;\r\n\t\tSystem.out.println(\"MineshafterProfileClient.getProfile(\" + uuid + \")\");\r\n\t\tURL u;\r\n\t\ttry {\r\n\t\t\tu = new URL(API_URL + \"?uuid=\" + id);\r\n\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString profileJSON = Streams.toString(in);\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tSystem.out.println(\"MS API Response: \" + profileJSON);\r\n\r\n\t\t\tif (profileJSON == null || profileJSON.length() == 0) { return new Profile(); }\r\n\r\n\t\t\tJsonObject pj = JsonObject.readFrom(profileJSON);\r\n\r\n\t\t\tProfile p = new Profile(pj.get(\"username\").asString(), uuid);\r\n\t\t\tJsonValue skinVal = pj.get(\"skin\");\r\n\t\t\tJsonValue capeVal = pj.get(\"cape\");\r\n\t\t\tJsonValue modelVal = pj.get(\"model\");\r\n\r\n\t\t\tString url;\r\n\t\t\tif (skinVal != null && !skinVal.isNull() && !skinVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addSkin(uuid, skinVal.asString());\r\n\t\t\t\tp.setSkin(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (capeVal != null && !capeVal.isNull() && !capeVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addCape(uuid, capeVal.asString());\r\n\t\t\t\tp.setCape(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (modelVal != null && !modelVal.isNull()) {\r\n\t\t\t\tString model = modelVal.asString();\r\n\t\t\t\tif (model.equals(\"slim\")) {\r\n\t\t\t\t\tp.setModel(CharacterModel.SLIM);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tp.setModel(CharacterModel.CLASSIC);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn p;\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Unable to parse getProfile response, using blank profile\");\r\n\t\t\treturn new Profile();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile();\r\n\t}",
"void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);",
"void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<ComapiProfile>> callback);",
"@RequestMapping(value = \"/id{id}\", method = RequestMethod.GET)\n public String getUserProfileById(@PathVariable(\"id\") BigInteger id, Model model) {\n User user = userService.getById(id);\n if (user == null) {\n return \"redirect:/\";\n } else {\n model.addAttribute(\"user\", user);\n return \"profile\";\n }\n }",
"@GetMapping(\"/{id}\")\n public ResponseEntity<?> getUser(@PathVariable int id) {\n return profileService.getUserById(id);\n }",
"public Optional<CredentialProfile> get(StructuredTableContext context, CredentialProfileId id)\n throws IOException {\n StructuredTable table = context.getTable(CredentialProviderStore.CREDENTIAL_PROFILES);\n Collection<Field<?>> key = Arrays.asList(\n Fields.stringField(CredentialProviderStore.NAMESPACE_FIELD,\n id.getNamespace()),\n Fields.stringField(CredentialProviderStore.PROFILE_NAME_FIELD,\n id.getName()));\n return table.read(key).map(row -> GSON.fromJson(row\n .getString(CredentialProviderStore.PROFILE_DATA_FIELD), CredentialProfile.class));\n }",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"@RequestMapping(value = \"/profile\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Perfil>> listProfilesForFeature(Integer id) {\n\t\tList<Perfil> perfis = FuncionalidadePerfilServiceDao.getPerfilByFuncionalidade(id);\n\t\treturn new ResponseEntity<List<Perfil>>(perfis, HttpStatus.OK);\n\t}",
"@ResponseStatus(HttpStatus.OK)\r\n\t@RequestMapping(value = UrlHelpers.USER_PROFILE_ID, method = RequestMethod.GET)\r\n\tpublic @ResponseBody\r\n\tUserProfile getUserProfileByOwnerId(\r\n\t\t\t@RequestParam(value = AuthorizationConstants.USER_ID_PARAM, required = false) String userId,\r\n\t\t\t@PathVariable String profileId) throws DatastoreException, UnauthorizedException, NotFoundException {\r\n\t\tUserInfo userInfo = userManager.getUserInfo(userId);\r\n\t\treturn userProfileManager.getUserProfile(userInfo, profileId);\r\n\t}",
"UserDetails get(String id);",
"@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}",
"public GrowthProfile getSpecificGrowthProfile(int id);",
"public T getSelectedProfile(int Id);",
"@GET\n\t @Path(\"/{userid}\")\n\t public Response getProfile(@PathParam(\"userid\") String userid) throws ProfileDaoException {\n\t return Response\n\t .ok(api.getProfile(userid).get())\n\t .build();\n\t }",
"public User getUserData(String id);",
"public int getProfile_id() {\n return profileID;\n }",
"@Transactional(readOnly = true)\n public Optional<DiscordUserProfile> findOne(Long id) {\n log.debug(\"Request to get DiscordUserProfile : {}\", id);\n return discordUserProfileRepository.findById(id);\n }",
"public UserInformation findInformationById(int id);",
"public String fetchNameFromId(long id){\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + id + \".json\");\n return JSONParser.parseUserStringForName(response);\n }",
"@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }",
"@GetMapping(\"/{id}\")\n @Timed\n @ApiOperation(value = \"获取认证用户信息\", response = VerifyProfile.class)\n public ResponseEntity<VerifyProfileDTO> getVerifyProfile(@PathVariable Long id) {\n log.debug(\"REST request to get VerifyProfile : {}\", id);\n VerifyProfileDTO verifyProfileDTO = verifyProfileService.findOne(id);\n return ResponseEntity.ok(verifyProfileDTO);\n }",
"@Override\n\tpublic Profesores obtenerProfesores(String id) {\n\t\treturn profesoresRepositorio.findOne(id);\n\t}",
"public String getProfile();",
"public static Profile getById(String profileId) {\n return Dao.getInstance().get(Profile.class, profileId);\n }",
"Map<String, Object> getUserProfile();",
"public void getProfileInformation() {\n\t\tmAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t@Override\n\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\tLog.d(\"Profile\", response);\n\t\t\t\tString json = response;\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject profile = new JSONObject(json);\n\t\t\t\t\tLog.d(\"Arvind Profile Data\", \"\"+profile.toString());\n\t\t\t\t\tfinal String name = profile.getString(\"name\");\n\t\t\t\t\tfinal String email = profile.getString(\"email\");\n\t\t\t\t\tHashMap<String, String> hashMap = new HashMap<String, String>();\n\n\t\t\t\t\thashMap.put(\"first_name\", profile.getString(\"first_name\"));\n\n\t\t\t\t\thashMap.put(\"last_name\", profile.getString(\"last_name\"));\n\n\t\t\t\t\thashMap.put(\"id\", profile.getString(\"id\"));\n\n\t\t\t\t\thashMap.put(\"gender\", profile.getString(\"gender\"));\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"email\", profile.getString(\"email\"));\n\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"birthday\", profile.getString(\"birthday\"));\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//\tGetAlbumdata();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\treturnIntent.putExtra(\"map\", hashMap);\n\t\t\t\t\tsetResult(RESULT_OK,returnIntent);\n\t\t\t\t\tfinish();\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} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFileNotFoundException(FileNotFoundException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t}",
"@CrossOrigin\r\n @RequestMapping(value = USER_DETAIL, method=RequestMethod.GET)\r\n public ResponseEntity<?> getUserDetail(@RequestParam(\"id\") String id) {\r\n\r\n \tcheckLogin();\r\n EmployeeVO emp = employeeService.getEmployeeDetailById(id);\r\n return new ResponseEntity<>(emp, HttpStatus.OK);\r\n }",
"String getProfile();",
"public Profile get(Long id, String authenticationCode, long profileId) {\n return new Profile((int)(long)id,\"PROFIL_TESTOWY\", Boolean.FALSE, Boolean.TRUE);\n }",
"@Query(\"SELECT p FROM Profile p JOIN FETCH p.contact WHERE p.id=:id\")\n\tProfile findById(@Param(\"id\")Long id);",
"@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}",
"H getProfile();",
"public static User getUser(String id){\n\t\tWSResponse response = null;\n\t\tUser user = null;\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_ONE_USER+id)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tuser = new Gson().fromJson(response.getBody(), User.class);\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn user;\n\t}",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"UserDTO getProfile(final int userId) throws DataUnreachableException;",
"@Override\n\tpublic StudentInfo getStudentInfo(String id) {\n\t\treturn userMapper.getStudentInfo(id);\n\t}",
"public User findById(int id) {\n\t\tUser user = getByKey(id);\r\n\t\tif(user != null) {\r\n\t\t\tHibernate.initialize(user.getUserProfiles());\r\n\t\t}\r\n\t\treturn user;\r\n\t}",
"public Account getUserAllInfo(int id) {\n\t\treturn accRepo.findById(id).orElse(null);\n\t}",
"@Override\n\tpublic IUserAccount getFullInfo(Integer id) {\n\t\treturn null;\n\t}",
"@RequestMapping(value=\"/user/{id}\",method=RequestMethod.GET)\n\tpublic @ResponseBody ResponseEntity<User> getOneUserDetails(@PathVariable Long id)throws Exception{\n\t\tUser user=null;\n\t\t\tuser=userDAO.findOne(id);\n\t\t\tif(user!=null)\n\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t}",
"@GetMapping(\"consumer/find/{id}\")\n public User findby (@PathVariable(\"id\") Integer id) {\n return restTemplate.getForObject(\"http://provider-user/provider/find/\" + id, User.class);\n }",
"@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }",
"public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String id = currentPerson.getId();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Id: \"+id+\", Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(id, email, personName);\n// SharedPreferences preferences = mBaseActivity.getSharedPreferences(\"com.yathams.loginsystem\", MODE_PRIVATE);\n// preferences.edit().putString(\"email\", email).putString(\"userName\", personName).commit();\n\n } else {\n Toast.makeText(getApplicationContext(),\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private RecordProfile recordProfile(long p_id)\n throws PaginatedResultSetXmlGenerationException\n {\n Long id = new Long(p_id);\n RecordProfile rp = (RecordProfile)m_profiles.get(id);\n if (rp == null)\n {\n try\n {\n rp = RecordProfileDbAccessor.readRecordProfile(p_id);\n // The following line is commented out as a temporary fix for bug\n // #GSDEF00001925. This ensures that the record profile must be\n // loaded from the database every time, guaranteeing that changes\n // are immediately visible.\n // m_profiles.put(id, rp);\n }\n catch (Exception e)\n {\n throw new PaginatedResultSetXmlGenerationException(\n \"Unable to load record profile with id=\" + p_id, e);\n }\n }\n return rp;\n }",
"public Candidat getUserByid(int id) {\n Candidat candidat = StaticVars.currentCandidat;\n String url = StaticVars.baseURL + \"/userbyid\";\n ConnectionRequest req = new ConnectionRequest();\n req.setUrl(url);\n req.setPost(false);\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n }\n\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return candidat;\n\n }",
"Request<UserInfoDetailsProxy> findUserInfoDetails(Long id);",
"private void getUserFromDatabase(String id) {\n splashViewModel.getUserFromId(id);\n splashViewModel.getUser().observe(this, user -> {\n startSessionListActivity(user.getUid());\n finish();\n });\n }",
"public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }",
"public String getProfileId() {\n return profileId;\n }",
"public void getDetail(int id) {\n\t\t\n\t}",
"@RequestMapping(value = \"/getUserProfileDetails\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic GetUserProfileResponse getUserProfileDetails(@RequestParam String emailId) {\n \tGetUserProfileResponse getUserProfileDetails = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetUserProfileDetails = this.econnectService.getUserProfileDetails(emailId);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getUserProfileDetails;\n\t}",
"public MemberInfoDTO read(String id) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.read\", id);\r\n\t}",
"public userreg showuser(String id) {\n\t\t\n\t\ttry{\n\t\t\tSession s = sessionFactory.openSession();\n\t\t\tTransaction t =s.getTransaction();\n\t\t\tt.begin();\n\t\t\tuserreg usr=s.get(userreg.class, id);\n\t\t\tt.commit();\n\t\t\ts.close();\n\t\t\treturn usr;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic SpaceUserVO getUserInfo(String id) throws Exception {\n\t\treturn null;\n\t}",
"public Profile searchProfile(String name) {\r\n\t\tSystem.out.println(\"MineshafterProfileClient.searchProfile(\" + name + \")\");\r\n\r\n\t\ttry {\r\n\t\t\tname = URLEncoder.encode(name, \"UTF-8\");\r\n\t\t\tURL u = new URL(API_URL + \"?username=\" + name);\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString uuid = Util.ensureUUIDFormatted(Streams.toString(in));\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tif (uuid == null || uuid.length() == 0) { return new Profile(name); }\r\n\r\n\t\t\treturn new Profile(name, uuid);\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile(name);\r\n\t}",
"HumanProfile getUserProfile();",
"@GET\n\t@Path(\"/id\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response findById(@QueryParam(\"id\") Long id) throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tUser userById = userDao.getUserById(id);\n\t\t\n\t\tif (userById != null) {\n\t\t\treturn Response\n\t\t\t\t\t.status(200)\n\t\t\t\t\t.entity(userById)\n\t\t\t\t\t.header(\"Access-Control-Allow-Headers\", \"X-extra-header\")\n\t\t\t\t\t.allow(\"OPTIONS\")\n\t\t\t\t\t.build();\n\t\t} else {\n\t\t\treturn Response\n\t\t\t\t\t.status(404)\n\t\t\t\t\t.entity(\"The user with the id \" + id + \" does not exist\")\t\t\t\t\t\n\t\t\t\t\t.build();\n\t\t}\n\t}",
"public User read(String id);",
"public Author getAuthorProfile(int authorId);",
"public Profile getProfile(String userId, boolean loaded) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"getProfile\", new Object[] { userId, loaded });\n\t\t}\n\t\tif (StringUtil.isEmpty(userId)) {\n\t\t\tlogger.fine(\"User id is empty, returning null profile\");\n\t\t\treturn null;\n\t\t}\n\t\tProfile profile = new Profile(this, userId);\n\t\tif (loaded) {\n\t\t\tload(profile); // fetches profile content from server and populates\n\t\t\t\t\t\t\t// content of data member\n\t\t}\n\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tString log = \"\";\n\t\t\tif (profile.getId() != null) {\n\t\t\t\tlog = \"returning requested profile\";\n\t\t\t} else {\n\t\t\t\tlog = \"empty response from server for requested profile\";\n\t\t\t}\n\t\t\tlogger.exiting(sourceClass, \"getProfile\", log);\n\t\t}\n\t\treturn profile;\n\t}",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"@Override\r\n\tpublic UserAccount get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tua = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}",
"public User getAccount(Long id) {\n User user = systemService.getUserFromDb(id); //add on 2020-12-4\n if (user != null\n && user.getCustomerAccountProfile() != null\n && user.getCustomerAccountProfile().getId() != null) {\n CustomerAccountProfile customerAccountProfile = msCustomerAccountProfileService.getById(user.getCustomerAccountProfile().getId());\n if (customerAccountProfile != null\n && customerAccountProfile.getCustomer() != null\n && customerAccountProfile.getCustomer().getId() != null ) {\n Customer customer = msCustomerService.get(customerAccountProfile.getCustomer().getId());\n if (customer != null) {\n customerAccountProfile.setCustomer(customer);\n }\n user.setCustomerAccountProfile(customerAccountProfile);\n }\n }\n return user;\n }",
"ProfileStatusReader getProfileUpdate( String profileId );",
"public Person getPerson(String id) throws DataAccessException {\n Person person;\n ResultSet rs = null;\n String sql = \"SELECT * FROM persons WHERE person_id = ?;\";\n try(PreparedStatement stmt = conn.prepareStatement(sql)) {\n stmt.setString(1, id);\n rs = stmt.executeQuery();\n if (rs.next()) {\n person = new Person(rs.getString(\"person_id\"), rs.getString(\"assoc_username\"),\n rs.getString(\"first_name\"), rs.getString(\"last_name\"),\n rs.getString(\"gender\"), rs.getString(\"father_id\"),\n rs.getString(\"mother_id\"), rs.getString(\"spouse_id\"));\n return person;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n throw new DataAccessException(\"Error encountered while finding person\");\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }",
"@Override\n\tpublic UserBaseInfo loadById(Integer id) {\n\t\treturn userBaseInfoMapper.loadById(id);\n\t}",
"private void retrieveProfile() {\r\n\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n\r\n if (user == null) {\r\n return;\r\n }\r\n\r\n String userId = user.getUid();\r\n String email = user.getEmail();\r\n DocumentReference reference = mFirebaseFirestore.collection(\"users\").document(userId);\r\n reference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if (task.isSuccessful()) {\r\n DocumentSnapshot documentSnapshot = task.getResult();\r\n mTextViewName.setText((CharSequence) documentSnapshot.get(\"name\"));\r\n mTextViewContact.setText((CharSequence) documentSnapshot.get(\"contact\"));\r\n mTextViewEstate.setText((CharSequence) documentSnapshot.get(\"estate\"));\r\n mTextViewHouseNo.setText((CharSequence) documentSnapshot.get(\"houseno\"));\r\n }\r\n Toast.makeText(Testing.this, \"Profile data loaded successfully!\", Toast.LENGTH_LONG).show();\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Toast.makeText(Testing.this, \"Error fetching profile data. Check your internet connection!\" + e.toString(), Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n\r\n }",
"@Override\n\tpublic Map<String, String> findUserInfobById(int id) {\n\t\treturn null;\n\t}",
"public UserProfile getUserProfile(String username);",
"@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }",
"public void getProfileInformation() {\n\n\t\t mAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t @Override\n\t\t\t public void onComplete(String response, Object state) {\n\t\t\t\t Log.d(\"Profile\", response);\n\t\t\t\t String json = response;\n\t\t\t\t try {\n\t\t\t\t\t // Facebook Profile JSON data\n\t\t\t\t\t JSONObject profile = new JSONObject(json);\n\n\t\t\t\t\t uName = profile.getString(\"name\");\n\t\t\t\t\t uMail = profile.getString(\"email\");\n\t\t\t\t\t //uGender=profile.getString(\"gender\");\n\n\n\t\t\t\t\t //final String birthday=profile.getString(\"birthday\");\n\t\t\t\t\t runOnUiThread(new Runnable() {\n\t\t\t\t\t\t @Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t //Toast.makeText(getApplicationContext(), \"Name: \" + name + \"\\nEmail: \" + email+\"\\nGender: \"+gender, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }\n\t\t\t\t\t });\n\t\t\t\t } \n\t\t\t\t catch (JSONException e) \n\t\t\t\t {\n\t\t\t\t\t errorMessage = \"JSON Error Occured\";\n\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onIOException(IOException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Data read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFileNotFoundException(FileNotFoundException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Image read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\t Object state) {\n\t\t\t\t errorMessage = \"Facebook URL Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Error Occured OnFacebook\";\n\t\t\t }\n\t\t });\n\t }",
"@ApiOperation(value = \"GetById\", nickname = \"GetById\")\n @GetMapping(value = \"/{uid}\")\n @ResponseStatus(HttpStatus.OK)\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Ok\"),\n @ApiResponse(code = 400, message = \"BadRequest\"),\n @ApiResponse(code = 401, message = \"Unauthorized\"),\n @ApiResponse(code = 403, message = \"Forbidden\"),\n @ApiResponse(code = 404, message = \"Not Found\"),\n @ApiResponse(code = 500, message = \"InternalServerError\"),\n @ApiResponse(code = 503, message = \"Service Unavailable\")})\n public UserProfileDTO getUserProfile(@PathVariable String uid) {\n\n\n // get from database here\n return userProfileService.getUserProfileById(uid);\n }",
"public Profile getProfile(String userId) {\n\t\treturn getProfile(userId, true);\n\t}",
"public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}",
"public String getName(int id) {\n\t\tOptional<Contacto> contact = currentUser.getContacts().stream().filter(c -> c.getUserId() == id).findFirst();\n\t\tif (contact.isPresent())\n\t\t\treturn contact.get().getName();\n\t\treturn userCatalog.getUser(id).getName();\n\t}",
"public static Uri buildProfileUri(long id){\n return ContentUris.withAppendedId(CONTENT_URI, id);\n }",
"protected void loadUser(String id) {\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(activity, ShowUserInfo.class);\n\t\tintent.putExtra(\"username\", id);\n\t\tintent.putExtra(\"owner\", username);\n\t\t\n\t\tstartActivity(intent);\n//\t\tthis.finish();\n\t}",
"protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString profileId = (String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID);\r\n\r\n\t\tSite site = Utils.getEffectiveSite(request);\r\n\t\tString siteDNSName = (site == null ? null : site.getDNSName());\r\n\r\n\t\tIUserProfileRetriever retriever = UserProfileRetrieverFactory.createUserProfileImpl(AuthenticationConsts.USER_PROFILE_RETRIEVER, siteDNSName);\r\n\t\ttry {\r\n\t\t\ttimeRecorder.recordStart(Operation.PROFILE_CALL);\r\n\t\t\tMap<String, Object> userProfile = retriever.getUserProfile(profileId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request);\r\n\t\t\ttimeRecorder.recordEnd(Operation.PROFILE_CALL);\r\n\t\t\treturn userProfile;\r\n\t\t} catch (UserProfileException ex) {\r\n\t\t\ttimeRecorder.recordError(Operation.PROFILE_CALL, ex);\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.PROFILE001, ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"@GetMapping(value = \"/\")\n\tpublic String getMyProfile(Model model) {\t\t\n\t\tlong profileId =3; \n\t\tSystem.out.println(\"Mapping done for profile id\"+profileId);\n\t\tProfile profile = profileService.getProfile(profileId);\n\t\tList<Education> edu = educationService.getEducationList();\n Address address = addressService.getAddress(profileId);\n List<WorkExp> workExpList = workExpService.getWorkExpList();\n List<AreaOfExpertise> areaOfExpertiseList = areaOfExpertiseService.getAreaOfExpertiseList();\n List<Project> projectList = projectService.getProjectsList();\n List<Skill> skillsList =skillService.getSkill();\n\t\tmodel.addAttribute(\"Profile\",profile);\n\t\tmodel.addAttribute(\"Address\",address);\n\t\tmodel.addAttribute(\"EducationList\",edu);\n\t\tmodel.addAttribute(\"WorkExpList\",workExpList);\n\t\tmodel.addAttribute(\"AreaOfExpertiseList\",areaOfExpertiseList);\n\t\tmodel.addAttribute(\"ProjectList\",projectList);\n\t\tmodel.addAttribute(\"SkillsList\",skillsList);\n\t\treturn \"home\";\n\t\t}",
"Request<UserInfoDetailsProxy> findDetailsFromUser(Long id);",
"public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}",
"private void getProfileInfo() {\n boolean connectivity=checkConnection();\n if(connectivity){\n progressBar.setVisibility(View.VISIBLE);\n assert currentUser != null;\n String userid = currentUser.getUid();\n databaseReference.child(userid).addValueEventListener(new ValueEventListener() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String name = Objects.requireNonNull(dataSnapshot.child(\"name\").getValue()).toString();\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String number = Objects.requireNonNull(dataSnapshot.child(\"number\").getValue()).toString();\n String email = currentUser.getEmail();\n Name.setText(name);\n Number.setText(\"+92\" + number);\n Email.setText(email);\n progressBar.setVisibility(View.GONE);\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n else{\n Toast.makeText(getContext(), \"No Internet Connectivity!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"public String getUser(int id){\n\t\treturn listePseudo.get(id);\n\t}",
"public User getProf(String name) { return userDAO.getProfile(name); }",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}",
"@GET\n\t @Path(\"/topUser\")\n\t public Response getProfile() throws ProfileDaoException {\n\t return Response\n\t .ok(api.getTopUser(datastore))\n\t .build();\n\t }",
"@Override\n\tpublic ProfileInfo getProfileInfo() {\n\t\treturn (ProfileInfo)map.get(PROFILE_INFO);\n\t}",
"private void getProfil() {\n Call<FeedUser> call = baseApiService.getAllProfile(sessionManager.getSpContenttype(),\n sessionManager.getSpAccept(), sessionManager.getSpAuthorization());\n call.enqueue(new Callback<FeedUser>() {\n @Override\n public void onResponse(Call<FeedUser> call, Response<FeedUser> response) {\n if (response.isSuccessful()) {\n try {\n name = response.body().getDataProfil().getName().toString();\n email = response.body().getDataProfil().getEmail();\n initComponetNavHeader();\n } catch (Exception e) {\n Log.d(TAG, \" error :\" + e);\n }\n\n } else {\n Toast.makeText(SettingActivity.this, \"Response not success\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<FeedUser> call, Throwable t) {\n Toast.makeText(SettingActivity.this, \"Cek Connection\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }"
] | [
"0.8524347",
"0.8097211",
"0.80616",
"0.7846074",
"0.7845621",
"0.76516545",
"0.7541668",
"0.7323517",
"0.71843505",
"0.7175176",
"0.7105255",
"0.7099468",
"0.700741",
"0.6993613",
"0.68731827",
"0.6854258",
"0.6824359",
"0.6776609",
"0.67594415",
"0.6740764",
"0.67290825",
"0.67282104",
"0.6710209",
"0.66707957",
"0.6668787",
"0.66648436",
"0.6650087",
"0.6598266",
"0.65898633",
"0.65741843",
"0.6556811",
"0.65434176",
"0.6540548",
"0.65271807",
"0.6522548",
"0.6515349",
"0.64697486",
"0.64377815",
"0.6406864",
"0.63881844",
"0.63844013",
"0.63771605",
"0.63723207",
"0.6361816",
"0.635309",
"0.63528144",
"0.63277245",
"0.63239133",
"0.63199437",
"0.631311",
"0.6310752",
"0.6302942",
"0.6296631",
"0.62961465",
"0.6286421",
"0.6267435",
"0.62658244",
"0.6256841",
"0.62564725",
"0.62193596",
"0.6207392",
"0.62039596",
"0.61924696",
"0.61913574",
"0.6188035",
"0.6183581",
"0.6177857",
"0.6176997",
"0.6175851",
"0.6171715",
"0.6171336",
"0.616867",
"0.6157738",
"0.6150882",
"0.6144097",
"0.61349845",
"0.6128652",
"0.6128467",
"0.6122849",
"0.6119118",
"0.6111974",
"0.6110624",
"0.6110128",
"0.6098106",
"0.6088631",
"0.6083437",
"0.608064",
"0.60804933",
"0.606791",
"0.6061417",
"0.60577285",
"0.6057418",
"0.6049612",
"0.60484165",
"0.6033311",
"0.60306644",
"0.6027736",
"0.60273504",
"0.60204923",
"0.60107976",
"0.6006549"
] | 0.0 | -1 |
Returns the session ID of the multimedia session | public abstract String getSessionId() throws RcsServiceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSessionID ()\n\t{\n\t\treturn sessionID;\n\t}",
"java.lang.String getSessionID();",
"public String getSessionID() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sessionID_ = s;\n return s;\n }\n }",
"public String getSessionID() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sessionID_ = s;\n return s;\n }\n }",
"public String getSessionID() {\n\t\treturn sessionId;\n\t}",
"public String getSessionID() {\n Object ref = sessionID_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sessionID_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getSessionID() {\n Object ref = sessionID_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sessionID_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"int getClientSessionID();",
"public int getSessionNo() {\n String[] sid = sessionid.split(\"/\");\n return Integer.parseInt(sid[0]);\n }",
"String getSessionID();",
"String getSessionID();",
"public String getSessionId() {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return null;\n }\n return session.getId();\n }",
"public String getServerID() {\n String[] sid = sessionid.split(\"/\");\n return sid[1];\n }",
"synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}",
"java.lang.String getSessionId();",
"public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }",
"public String getID()\n\t{\n\t return this.sessionID;\n\t}",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public long getSessionId() {\n\t\treturn sessionId;\n\t}",
"private String getTopcatSessionId() {\r\n HttpServletRequest request = this.getThreadLocalRequest();\r\n HttpSession session = request.getSession();\r\n String sessionId = null;\r\n if (session.getAttribute(\"SESSION_ID\") == null) { // First time login\r\n try {\r\n sessionId = userManager.login();\r\n session.setAttribute(\"SESSION_ID\", sessionId);\r\n } catch (AuthenticationException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n } else {\r\n sessionId = (String) session.getAttribute(\"SESSION_ID\");\r\n }\r\n return sessionId;\r\n }",
"static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }",
"protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }",
"int getSessionId();",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"public String getSessionID() {\n\t\treturn SID;\n\t}",
"public String getSessionId() {\n return this.sessionid;\n }",
"public String getSessionId() {\n return super.getSessionId();\n }",
"public String getSessionId()\r\n\t{\r\n\t\treturn sessionId;\r\n\t}",
"public String getSessionId()\n\t{\n\t\treturn sessionId;\n\t}",
"public short getSessionId() {\n return sessionId;\n }",
"public int getSessionId() {\n return sessionId;\n }",
"public final String getSessionId() {\n return sessionId;\n }",
"public int getSessionId() {\n return sessionId_;\n }",
"public int getSessionId() {\n return sessionId_;\n }",
"private static String obtainSessionID(ApiContext apiContext) throws Exception {\n GetSessionIDCall apiCall = new GetSessionIDCall(apiContext);\n\n apiCall.setRuName(ruName);\n String sessionID = apiCall.getSessionID();\n //Handle the result returned\n logger.info(\"sessionID : \" + sessionID);\n return sessionID;\n }",
"public int getClientSessionID() {\n return clientSessionID_;\n }",
"public String getId() {\n\t\treturn _sessionId;\n\t}",
"public String getSessionId() {\n\t\treturn sessionId;\n\t}",
"public String getSessionId() {\n\t\treturn sessionId;\n\t}",
"public String getSessionId() {\n\t\treturn this.traceInformation.getSessionId();\n\t}",
"public String sessionId() {\n\t\treturn sessionId;\n\t}",
"public int getClientSessionID() {\n return clientSessionID_;\n }",
"public String getSessionId() {\n return sessionId;\n }",
"public String getSessionId() {\n return sessionId;\n }",
"UUID getSessionId();",
"public String getSessionId() {\n return sessionId;\n }",
"private static String firstSessionId() {\n\t\t// do we have any stored sessions from earlier login events?\n\t\tif (pmaSessions.size() > 0) {\n\t\t\t// yes we do! This means that when there's a PMA.core active session AND\n\t\t\t// PMA.core.lite version running,\n\t\t\t// the PMA.core active will be selected and returned\n\t\t\treturn pmaSessions.keySet().toArray()[0].toString();\n\t\t} else {\n\t\t\t// ok, we don't have stored sessions; not a problem per se...\n\t\t\tif (pmaIsLite()) {\n\t\t\t\tif (!pmaSlideInfos.containsKey(pmaCoreLiteSessionID)) {\n\t\t\t\t\tpmaSlideInfos.put(pmaCoreLiteSessionID, new HashMap<String, Object>());\n\t\t\t\t}\n\t\t\t\tif (!pmaAmountOfDataDownloaded.containsKey(pmaCoreLiteSessionID)) {\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(pmaCoreLiteSessionID, 0);\n\t\t\t\t}\n\t\t\t\treturn pmaCoreLiteSessionID;\n\t\t\t} else {\n\t\t\t\t// no stored PMA.core sessions found NOR PMA.core.lite\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public int getAudioSessionId() {\n\t\treturn mPlayer.getAudioSessionId();\n\t}",
"public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n sessionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic java.lang.String getSessionId() {\n\t\treturn _userTracker.getSessionId();\n\t}",
"public java.lang.String getSessionId() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = s;\n }\n return s;\n }\n }",
"@Override\n public int getSessionId() {\n return sessionId_;\n }",
"@Override\n public int getSessionId() {\n return sessionId_;\n }",
"public String getSessionId() {\n return this.SessionId;\n }",
"public NM getPsl28_SessionNo() { \r\n\t\tNM retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }",
"private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }",
"public java.lang.String getMgiTransactionSessionID() {\r\n return mgiTransactionSessionID;\r\n }",
"public NM getSessionNo() { \r\n\t\tNM retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }",
"public long getId() {\n return session.getId();\n }",
"com.google.protobuf.ByteString\n getSessionIDBytes();",
"com.google.protobuf.ByteString\n getSessionIDBytes();",
"private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}",
"public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }",
"String getSessionId() {\n return this.sessionId;\n }",
"UUID sessionId();",
"private String getPSSessionId(HttpServletRequest request)\n {\n Cookie[] cookies = request.getCookies();\n for(Cookie cookie : cookies)\n {\n if(cookie.getName().equals(PSSESSIONID))\n return cookie.getValue();\n }\n return null;\n }",
"public String getMaternalID();",
"public String getSessionKey() {\n return sessionKey;\n }",
"private static String getSessionIDFromRequest (HTTPRequest aRequest)\n\t{\n\t\treturn aRequest.getQueryValue (\"sessionID\");\n\t}",
"public int mo746p() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(47, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public int mo744n() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(37, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public int getTrackSessionId() {\r\n return mTrackSessionId;\r\n }",
"String getSessionKey(String sessionId) {\n return this.namespace + \"sessions:\" + sessionId;\n }",
"@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}",
"public int mo742l() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(32, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String getSessionId(Context mContext) {\n Calendar aGMTCalendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT-0\"));\n return ReadCacheTool.getUId(mContext) + \"_\" + aGMTCalendar.getTimeInMillis();\n }",
"public java.lang.String getSessionToken() {\r\n return sessionToken;\r\n }",
"String getAssociatedSession();",
"public String getMscid() {\r\n return mscid;\r\n }",
"public String getMscid() {\r\n return mscid;\r\n }",
"public String getMscid() {\r\n return mscid;\r\n }",
"public String getMscid() {\r\n return mscid;\r\n }",
"public com.google.protobuf.ByteString\n getSessionIdBytes() {\n java.lang.Object ref = sessionId_;\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 sessionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getMscid() {\n return mscid;\n }",
"public String nextSessionId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}",
"@RequestMapping(\"/dept/sessionId\")\n\tpublic Object id(HttpServletRequest request) {\n\t\treturn request.getSession().getId() ;\n\t}",
"public String getId()\n\t{\n\t\treturn getId( getSession().getSessionContext() );\n\t}",
"public long mo734e() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readLong();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public String mo729c() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(7, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public synchronized String getDeviceIdForWebSocketSession(Session session) {\n\t\tInetSocketAddress remoteAddress = session.getRemoteAddress();\n\t\tif (!deviceIdsByWebsocketRemoteAttdress.containsKey(remoteAddress)) {\n\t\t\tString deviceId = getNextDeviceId();\n\t\t\tdeviceIdsByWebsocketRemoteAttdress.put(remoteAddress, deviceId);\n\t\t\twebsocketRemoteAddressByDeviceId.put(deviceId, remoteAddress);\n\n\t\t\treturn deviceId;\n\t\t} else {\n\t\t\treturn deviceIdsByWebsocketRemoteAttdress.get(remoteAddress);\n\t\t}\n\t}",
"public String getId()\n\t\t{\n\t\t\treturn mediaElement.getAttribute(ID_ATTR_NAME);\n\t\t}",
"public Long getSessionValue(String session) { return validSessions.get(session); }",
"public static short getSession(){\n\t\treturn (short)++sessao;\n\t}",
"int getServerId();"
] | [
"0.7556451",
"0.7488139",
"0.7476531",
"0.7476531",
"0.74457264",
"0.744396",
"0.744396",
"0.7405683",
"0.7373749",
"0.7318964",
"0.7318964",
"0.73171353",
"0.72120225",
"0.7171385",
"0.7128386",
"0.71150047",
"0.7110082",
"0.7081192",
"0.7081192",
"0.701504",
"0.701504",
"0.6993151",
"0.6990498",
"0.698859",
"0.69251806",
"0.6918135",
"0.6883172",
"0.6883172",
"0.6883172",
"0.6883172",
"0.6877587",
"0.6876835",
"0.6863017",
"0.68611366",
"0.6846976",
"0.6816273",
"0.68146634",
"0.681278",
"0.67977905",
"0.676972",
"0.6755296",
"0.67478734",
"0.67157674",
"0.6704075",
"0.6704075",
"0.66955006",
"0.66819423",
"0.66746515",
"0.6663867",
"0.6663867",
"0.66473943",
"0.6626428",
"0.6614396",
"0.65981907",
"0.6595989",
"0.65917146",
"0.6561187",
"0.65186805",
"0.65143865",
"0.64783466",
"0.647509",
"0.6470953",
"0.6450443",
"0.6413213",
"0.6351921",
"0.63484955",
"0.63484955",
"0.6343293",
"0.62977356",
"0.6257466",
"0.623845",
"0.6232557",
"0.62236464",
"0.62041533",
"0.61812747",
"0.61775607",
"0.6172699",
"0.61523366",
"0.61504185",
"0.61393225",
"0.6102734",
"0.609415",
"0.6078385",
"0.6047569",
"0.6032185",
"0.6020029",
"0.6020029",
"0.6020029",
"0.6020029",
"0.6017878",
"0.5999587",
"0.59938055",
"0.5966893",
"0.59610355",
"0.59456205",
"0.59431356",
"0.59287935",
"0.592612",
"0.5907311",
"0.58854747",
"0.58673954"
] | 0.0 | -1 |
Returns the remote contact identifier | public abstract ContactId getRemoteContact() throws RcsServiceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String getRemoteContact(ChatMessage message) {\n Logger.d(TAG, \"formatRemote() entry, message.getRemote() is \"\n + message.getContact());\n String remote = message.getContact();\n String displayName = Utils\n .extractDisplayNameFromUri(remote);\n if ((displayName != null) && (displayName.length() > 0)) {\n return displayName;\n }\n String number = Utils.extractNumberFromUri(remote);\n return number;\n }",
"Long getRemoteID() throws RemoteException;",
"public java.lang.String getContactId() {\r\n return contactId;\r\n }",
"public long getContactId() {\n return contactId;\n }",
"public String getPrefContactId() {\n return getContact().getUid();\n }",
"public int getContactId() {\n return contactId;\n }",
"public String getContactID() {\n\t\t\treturn contactID;\n\t\t}",
"public Long getContactId() {\n return contactId;\n }",
"public int getContactID() {\r\n return contactID;\r\n }",
"@NonNull\n public IkeIdentification getRemoteIdentification() {\n return mRemoteIdentification;\n }",
"int getReceiverid();",
"public String getContactId() {\n return this.contactId;\n }",
"public java.lang.String getContactNo() {\r\n return contactNo;\r\n }",
"public String getPrimaryContact();",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public String getPeerID() {\n\t\t//return this.localPeer.getPeerID();\n\t\treturn \"\";\n\t}",
"public int getContactUserId() {\n return contactUserId;\n }",
"public String getAllContactId() {\n return getContact().getUid();\n }",
"@Override\r\n\tpublic Integer getId() {\n\t\treturn this.codContacto;\r\n\t}",
"public String getCallIdentifier() {\n return callIdHeader.getCallId();\n }",
"public long getRawContactId() {\n return rawContactId;\n }",
"public Address getCurrentCallRemoteAddress();",
"public String getContact() {\n\t\treturn contact;\n\t}",
"public String getMaternalID();",
"String getCreatorId();",
"@Nullable\n @Generated\n @Selector(\"remoteAddress\")\n public native String remoteAddress();",
"public String getContactNick() {\n return contactNick;\n }",
"public String getCallId();",
"public int getLocalPeerID()\n {\n return localPeerID;\n }",
"public String getContactTel() {\n return contactTel;\n }",
"default String remoteAddr() {\n return (String) metadata().get(\"x-remote-addr\");\n }",
"public static native byte getRemoteInterfaceNumber(Remote RemoteObj);",
"public int getId() throws android.os.RemoteException;",
"private String getIdentificationString() {\n\t\tif (clientController.client.visitorID.getVal() != null)\n\t\t\treturn clientController.client.visitorID.getVal().intern();\n\t\tif (clientController.client.logedInSubscriber.getVal() != null)\n\t\t\treturn clientController.client.logedInSubscriber.getVal().personalID;\n\t\treturn null;\n\t}",
"public native long getRemoteAddress() throws IOException,IllegalArgumentException;",
"String getRemoteAddr();",
"RemoteEventIdentifier createRemoteEventIdentifier();",
"public String getPaternalID();",
"public String getIdContacto() {\r\n\t\treturn idContacto;\r\n\t}",
"public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"java.lang.String getSenderId();",
"java.lang.String getRemoteHost();",
"private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }",
"public String getContact() {\r\n return this.contact;\r\n }",
"public int getContactValue() {\n return contact_;\n }",
"public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"public int getContactValue() {\n return contact_;\n }",
"public String getUserContact() {\r\n return userContact;\r\n }",
"public String getRemoteUser() {\n return remoteUser;\n }",
"public int getReceiverid() {\n return receiverid_;\n }",
"public final String getRemoteSocketAddress(){\r\n return remoteSocketHost;\r\n }",
"public String getSenderPhoneNumber();",
"public java.lang.Object getInitiatingContactID() {\n return initiatingContactID;\n }",
"@TargetApi(Build.VERSION_CODES.ECLAIR)\n @RequiresApi(api = Build.VERSION_CODES.ECLAIR)\n private String returnID(String phonenumber) {\n String ID = \"\";\n\n Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phonenumber));\n String[] columns = {ContactsContract.PhoneLookup.CONTACT_ID};\n Cursor cursor = getApplicationContext().getContentResolver().query(uri, columns, null, null, null);\n\n\n if (cursor != null) {\n while (cursor.moveToNext()) {\n\n ID = cursor.getString(cursor.getColumnIndex(ContactsContract.PhoneLookup.CONTACT_ID));\n\n }\n\n } else {\n return null;\n }\n return ID;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"int getID()\n throws RemoteException;",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"String getTheirPartyId();",
"public StringWithCustomFacts getRecIdNumber() {\n return recIdNumber;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"public InetSocketAddress remote() {\n return remote;\n }",
"public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }",
"public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").trim();\n\t\treturn address;\n\t}",
"public String getId ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getId\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getId ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"public String getAgentContactPhone() {\n return agentContactPhone;\n }",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getPrincipalTel() {\n return principalTel;\n }",
"static String readSenderIdFromMetaData(Context context) {\n List<ResolveInfo> resolveInfos = context.getPackageManager().queryIntentServices(\n new Intent(context, C2DMManager.class), PackageManager.GET_META_DATA);\n Preconditions.checkState(!resolveInfos.isEmpty(), \"Cannot find service metadata\");\n ServiceInfo serviceInfo = resolveInfos.get(0).serviceInfo;\n String senderId = null;\n if (serviceInfo.metaData != null) {\n senderId = serviceInfo.metaData.getString(SENDER_ID_METADATA_FIELD);\n if (senderId == null) {\n Log.e(TAG, \"No meta-data element with the name \" + SENDER_ID_METADATA_FIELD\n + \" found on the service declaration. An element with this name \"\n + \"must have a value that is the server side account in use for C2DM\");\n }\n } else {\n Log.e(TAG, \"No meta-data elements found on the service declaration. One with a name of \"\n + SENDER_ID_METADATA_FIELD\n + \" must have a value that is the server side account in use for C2DM\");\n }\n return senderId;\n }",
"public int getReceiverid() {\n return receiverid_;\n }",
"public Call getCallByRemoteAddress(String remoteAddress);",
"public int getHC_ManagerTo_ID();",
"public int getIdentificationNumber() {\n return identificationNumber;\n }",
"public String getReceiver() {\n\t\treturn receiverId;\n\t}",
"public String getRemoteName() {\n\t\treturn this.remoteName;\n\t}",
"public String getContactPerson() {\n return contactPerson;\n }",
"public static long getContactInformationId(Uri uri) {\n return ContentUris.parseId(uri);\n }",
"java.lang.String getMessageInfoID();",
"@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}",
"@Nullable\n public String getRemoteClusterId()\n {\n return remoteClusterId;\n }",
"public String getIdentification ()\n {\n return this.toString();\n }",
"public static String getLocalHostId() {\r\n\t\treturn localHostId;\r\n\t}",
"public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }",
"public String getRemoteSocketAddress() {\n return client.getRemoteSocketAddress().toString();\n }",
"String getCustomerID();",
"public String getContactPerson() {\n return _contactPerson;\n }",
"public String getIdentificationNumber() {\n return this.identificationNumber;\n }",
"String getIdentifiant();",
"String getIdentityId();",
"private String getPrimaryNumber(long _id) {\n String primaryNumber = null;\n try {\n Cursor cursor = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.TYPE},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID +\" = \"+ _id, // We need to add more selection for phone type\n null,\n null);\n if(cursor != null) {\n while(cursor.moveToNext()){\n switch(cursor.getInt(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE))){\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_OTHER :\n }\n if(primaryNumber != null)\n break;\n }\n }\n } catch (Exception e) {\n Log.i(\"test\", \"Exception \" + e.toString());\n } finally {\n if(cursor != null) {\n cursor.deactivate();\n cursor.close();\n }\n }\n return primaryNumber;\n }",
"public String getRemoteUser() {\r\n return context.getExternalContext().getRemoteUser();\r\n }",
"public String selectNodeId(Node node, String remoteHost, String remoteAddress);",
"public InetSocketAddress getRemoteAddress() {\r\n return (InetSocketAddress) channel.remoteAddress();\r\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }"
] | [
"0.71746504",
"0.71127003",
"0.64754784",
"0.63648254",
"0.6308398",
"0.6288533",
"0.6234522",
"0.6232527",
"0.62158895",
"0.6206472",
"0.6170108",
"0.6149914",
"0.6133001",
"0.6127318",
"0.61220986",
"0.6079406",
"0.6061217",
"0.6052029",
"0.59899056",
"0.59784317",
"0.5962116",
"0.5942046",
"0.5921079",
"0.59065104",
"0.58800673",
"0.58709216",
"0.5854211",
"0.583532",
"0.58324766",
"0.5823667",
"0.5821563",
"0.5818064",
"0.58137643",
"0.5809786",
"0.57759804",
"0.5770864",
"0.576577",
"0.5758751",
"0.57505596",
"0.5716295",
"0.571159",
"0.571159",
"0.571159",
"0.571159",
"0.571159",
"0.5685142",
"0.5682329",
"0.56806695",
"0.5671756",
"0.5670181",
"0.56696343",
"0.56613183",
"0.5660072",
"0.5651375",
"0.5643409",
"0.56429076",
"0.5641419",
"0.56368566",
"0.5636636",
"0.5623851",
"0.5610758",
"0.5604181",
"0.55978644",
"0.5594532",
"0.5589187",
"0.5582761",
"0.5572968",
"0.55714154",
"0.55615145",
"0.5560675",
"0.5559541",
"0.55584705",
"0.5557375",
"0.55403423",
"0.5532857",
"0.5527278",
"0.55271024",
"0.5521295",
"0.5515282",
"0.5513071",
"0.55101395",
"0.55099636",
"0.5504274",
"0.55021286",
"0.5501151",
"0.5499129",
"0.5493626",
"0.54777086",
"0.5475235",
"0.5469915",
"0.54630053",
"0.5451303",
"0.54503673",
"0.545034",
"0.54485506",
"0.54451936",
"0.54419243",
"0.5439036",
"0.54377776",
"0.54377776"
] | 0.72869194 | 0 |
Returns the service ID | public abstract String getServiceId() throws RcsServiceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getServiceId();",
"String getService_id();",
"String getServiceId();",
"public String getServiceID();",
"public int getServiceID() {\n return serviceID;\n }",
"public ID getServiceID() {\n\treturn serviceID;\n }",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public long getId() {\n return mServiceId;\n }",
"public Integer getServiceid() {\r\n return serviceid;\r\n }",
"public ServiceID getServiceID() {\n\t\treturn null;\n\t}",
"String serviceId(RequestContext ctx) {\n\n String serviceId = (String) ctx.get(SERVICE_ID);\n if (serviceId == null) {\n log.info(\"No service id found in request context {}\", ctx);\n }\n return serviceId;\n }",
"@Override\n public ServiceID getServiceID() {\n\treturn servID;\n }",
"public ServiceID getServiceID() {\n return null;\n }",
"public java.lang.String getServiceID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SERVICEID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"@Transient\n\tpublic String getServiceId()\t{\n\t\treturn mServiceId;\n\t\t//else return \"N/A\";\n\t}",
"public long getServiceTypeId() {\r\n\t\treturn serviceTypeId;\r\n\t}",
"com.microsoft.schemas._2003._10.serialization.Guid xgetServiceId();",
"public ID getMainService() { \r\n\t\tID retVal = this.getTypedField(46, 0);\r\n\t\treturn retVal;\r\n }",
"public org.apache.xmlbeans.XmlString xgetServiceID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SERVICEID$6, 0);\n return target;\n }\n }",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"public java.lang.String getOSGiServiceIdentifier();",
"public String getOSGiServiceIdentifier();",
"int getServiceNum();",
"public String getTokenServiceId() {\n return tokenServiceId;\n }",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _autoDetailsService.getOSGiServiceIdentifier();\n\t}",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"public int getIdServicio() {\n return idServicio;\n }",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _vcmsPortionLocalService.getOSGiServiceIdentifier();\n\t}",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}",
"public String servicePrincipalObjectId() {\n return this.servicePrincipalObjectId;\n }",
"@Override\n\tpublic String serviceTypeId() throws Exception{\n\t\treturn \"121\";\n\t}",
"@AutoEscape\n\tpublic String getIdPtoServicio();",
"@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn _participationLocalService.getOSGiServiceIdentifier();\n\t}",
"public String toString() {\n return getServiceId();\n }",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _weatherLocalService.getOSGiServiceIdentifier();\n\t}",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _clipLocalService.getOSGiServiceIdentifier();\n\t}",
"public int getId_serviceMethod() {\r\n\t\treturn id_serviceMethod;\r\n\t}",
"void setServiceId(java.lang.String serviceId);",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"public String getSystemId();",
"public String getServiceName();",
"String getServiceName();",
"String getServiceName();",
"public void setServiceId(java.lang.Long value) {\n this.serviceId = value;\n }",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public ID getPsl46_MainService() { \r\n\t\tID retVal = this.getTypedField(46, 0);\r\n\t\treturn retVal;\r\n }",
"public java.lang.Integer getServicecode() {\n\treturn servicecode;\n}",
"public String getServiceInstanceId(GrpcOperation operation) {\n var serviceInstance =\n (ServiceInstance) operation.getRequiredProperty(OperationProperties.AAI_SERVICE,\n \"Target service instance\");\n return serviceInstance.getServiceInstanceId();\n }",
"public boolean hasServiceId() {\n return fieldSetFlags()[2];\n }",
"public String getService() {\n\t\treturn service.get();\n\t}",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn MonthlyTradingLocalService.class.getName();\n\t}",
"String getSecId();",
"public String getServiceSn() {\n return serviceSn;\n }",
"@ApiModelProperty(value = \"ID of the service desk.\")\n public String getId() {\n return id;\n }",
"public SvcIdent getSvcIdent() {\r\n\t\treturn svcIdent;\r\n\t}",
"String getContextId();",
"String getInstanceID();",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public String getServiceName()\r\n {\r\n return serviceName;\r\n }",
"java.lang.String getOperationId();",
"@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn WFMS_Position_AuditLocalService.class.getName();\n\t}",
"String getSlingId();",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"@Override\r\n\t\t\tpublic Object getKey() {\n\t\t\t\treturn service;\r\n\t\t\t}",
"int getServerId();",
"String getServiceRef();",
"public String getServiceName()\n {\n return serviceName;\n }",
"String targetServiceTopologyId();",
"public String getEndpointId();",
"public abstract long getSdiId();",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"public String getService(){\n\t\t return service;\n\t}",
"private String getClientId()\n {\n String clientId = null;\n try {\n clientId = IdentificationLoader.usingDefault().getClientId();\n } catch (IOException e) {\n System.out.println(\"Could not load client ID\");\n e.printStackTrace();\n System.exit(1);\n }\n return clientId;\n }",
"protected String getServiceId(){\n return \"com.google.android.gms.nearby.messages.samples.nearbydevices\";\n }",
"@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn LocalRichService.class.getName();\n\t}",
"public String getServiceName() {\n return serviceName;\n }",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public Integer getServicetypeid() {\r\n return servicetypeid;\r\n }",
"public String getServiceOrderNumber() {\n return serviceOrderNumber.get();\n }",
"public String getServiceName() {\r\n return this.serviceName;\r\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"public String servicePrincipalClientId() {\n return this.servicePrincipalClientId;\n }",
"public Vector getServiceIds() throws ServiceException {\n return namingService.getServiceIds();\n }",
"public String getServiceName() {\n return serviceName;\n }",
"public Integer getServicetypeid() {\r\n\t\treturn servicetypeid;\r\n\t}"
] | [
"0.85396165",
"0.85299075",
"0.85154843",
"0.83691376",
"0.8321991",
"0.8299618",
"0.825567",
"0.8250338",
"0.82344615",
"0.8018184",
"0.79675543",
"0.7849318",
"0.78306204",
"0.7825367",
"0.77018267",
"0.7519261",
"0.74384916",
"0.7411402",
"0.729104",
"0.72658163",
"0.71744347",
"0.7159279",
"0.7159279",
"0.7159279",
"0.7093851",
"0.70273834",
"0.6906855",
"0.6841568",
"0.68347955",
"0.67879725",
"0.6718309",
"0.6704141",
"0.6695566",
"0.66750205",
"0.66696334",
"0.6667806",
"0.66570234",
"0.6631712",
"0.6599421",
"0.65881985",
"0.65821874",
"0.6553394",
"0.6477739",
"0.6477739",
"0.6419548",
"0.6391523",
"0.63363963",
"0.63143575",
"0.63143575",
"0.63018423",
"0.62866205",
"0.62830365",
"0.6276916",
"0.6268864",
"0.6267303",
"0.62301165",
"0.6227062",
"0.6227062",
"0.6227062",
"0.62031585",
"0.62031585",
"0.618429",
"0.61516476",
"0.612557",
"0.6123808",
"0.61186296",
"0.6094837",
"0.6086294",
"0.6072347",
"0.6070189",
"0.60669035",
"0.6060197",
"0.6053388",
"0.60511476",
"0.60511476",
"0.60511476",
"0.6049767",
"0.6049461",
"0.60377914",
"0.60362804",
"0.6035008",
"0.60138",
"0.6003521",
"0.60023975",
"0.60023975",
"0.60023975",
"0.6001157",
"0.5995416",
"0.5988271",
"0.5985691",
"0.59837985",
"0.5971065",
"0.59700435",
"0.5948882",
"0.59467417",
"0.59465563",
"0.59424686",
"0.593897",
"0.59381485",
"0.59375304"
] | 0.7640426 | 15 |
Returns the state of the session | public abstract int getState() throws RcsServiceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSessionState();",
"protected final SessionState getSessionState() {\n Session currentSession = sessionTracker.getSession();\n return (currentSession != null) ? currentSession.getState() : null;\n }",
"SessionStatus getStatus();",
"public Byte getUserState() {\r\n return userState;\r\n }",
"@Override\n public String getState() {\n\n if(this.state == null){\n\n this.state = TestDatabase.getInstance().getClientField(token, id, \"state\");\n }\n\n return state;\n }",
"public RCProxyState getState() {\n\t\treturn state;\n\t}",
"public String getSessionState(String sessionID) {\n\t\tSession session = getSession(sessionID);\n\t\treturn session.getState();\n\t}",
"public STATE getState() {\n\t\n\t\treturn state;\n\t}",
"public Long getState() {\n return state;\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public SimulationState getState() {\n\t\treturn state;\n\t}",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public String state() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"public State state() {\n return _state;\n }",
"public int getState(){\n\t\treturn state;\n\t}",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState() {\n\t\treturn state;\n\t}",
"public String getState()\n {\n \treturn state;\n }",
"public S getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public int getState(){\n return state;\n }",
"public T getState() {\r\n\t\treturn state;\r\n\t}",
"public State getState() {\n\t\treturn state;\n\t}",
"public State getState() {\n\t\treturn state;\n\t}",
"public Boolean getState() {\n return state;\n }",
"public State state() {\n return state;\n }",
"public RequestState getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public int getState() {\n return _state;\n }",
"public int getState() {\n\t\treturn state;\n\t}",
"public int getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"public int getState() {\n \t\treturn state;\n \t}",
"public int getCurrentState() {\n return myState;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public State getState()\r\n\t{\r\n\t\treturn this.state;\r\n\t}",
"public String getCurrentState() {\n\t\treturn currentState;\n\t}",
"public GameState getState() {\n\t\treturn state;\n\t}",
"public S getCurrentState();",
"public Integer getaState() {\n return aState;\n }",
"public String getState() {\n\t\treturn state.toString();\n\t}",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public java.lang.String getState () {\n\t\treturn state;\n\t}",
"public int getState() {\n return state_;\n }",
"public int getState() {return state;}",
"public int getState() {return state;}",
"public int getState() {\n return state;\n }",
"public GameState GetState(){\n\t\treturn this.state;\n\t}",
"public TState getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public Player getState() {\n\t\treturn state;\n\t}",
"public boolean getState( ) { return state; }",
"public State getState();",
"public State getState();",
"public SessionInfo getSessionInfo() {\n\t\treturn sessionInfo;\n\t}",
"@Test\n void getSessionState() {\n // Arrange\n final byte[] sessionState = new byte[]{10, 11, 8, 88, 15};\n final String sessionId = \"A session-id\";\n\n final Map<String, Object> responseBody = new HashMap<>();\n final Binary sessionStateBinary = new Binary(sessionState);\n responseBody.put(ManagementConstants.SESSION_STATE, sessionStateBinary);\n responseMessage.setBody(new AmqpValue(responseBody));\n\n // Act & Assert\n StepVerifier.create(managementChannel.getSessionState(sessionId, LINK_NAME))\n .expectNext(sessionState)\n .verifyComplete();\n\n verify(requestResponseChannel).sendWithAck(messageCaptor.capture(), isNull());\n\n final Message sentMessage = messageCaptor.getValue();\n assertTrue(sentMessage.getBody() instanceof AmqpValue);\n\n final AmqpValue amqpValue = (AmqpValue) sentMessage.getBody();\n\n @SuppressWarnings(\"unchecked\") final Map<String, Object> hashMap = (Map<String, Object>) amqpValue.getValue();\n assertEquals(sessionId, hashMap.get(ManagementConstants.SESSION_ID));\n\n // Assert application properties\n final Map<String, Object> applicationProperties = sentMessage.getApplicationProperties().getValue();\n assertEquals(OPERATION_GET_SESSION_STATE, applicationProperties.get(MANAGEMENT_OPERATION_KEY));\n }",
"protected S state() {\n return state;\n }"
] | [
"0.7844135",
"0.7603039",
"0.73464465",
"0.7083099",
"0.70425475",
"0.69877017",
"0.6930561",
"0.6875474",
"0.6864307",
"0.68489355",
"0.68489355",
"0.68402016",
"0.68326604",
"0.6825962",
"0.6825962",
"0.6825962",
"0.6825962",
"0.6825962",
"0.6825962",
"0.6825917",
"0.6825917",
"0.6824662",
"0.68243814",
"0.68112785",
"0.68105793",
"0.6792503",
"0.6792503",
"0.679126",
"0.67803645",
"0.67758864",
"0.6773149",
"0.6773149",
"0.6773149",
"0.6755196",
"0.67532504",
"0.6751908",
"0.6751908",
"0.6733611",
"0.6725865",
"0.6718461",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6711913",
"0.6707638",
"0.67045015",
"0.67027295",
"0.67027295",
"0.67011416",
"0.66961515",
"0.669572",
"0.669572",
"0.669572",
"0.669572",
"0.6691325",
"0.6691325",
"0.6691325",
"0.6691325",
"0.6691325",
"0.6686068",
"0.6683678",
"0.66781676",
"0.66745675",
"0.66639036",
"0.6656864",
"0.6640724",
"0.6640724",
"0.6640724",
"0.6640724",
"0.6639932",
"0.6639736",
"0.6637948",
"0.6637948",
"0.66343296",
"0.6634314",
"0.66247904",
"0.6624594",
"0.6615053",
"0.6615053",
"0.66135013",
"0.66109616",
"0.66109616",
"0.66109616",
"0.66109616",
"0.66109616",
"0.661025",
"0.66061306",
"0.6604806",
"0.6604806",
"0.65954965",
"0.65945643",
"0.65942544"
] | 0.0 | -1 |
Returns the direction of the session (incoming or outgoing) | public abstract int getDirection() throws RcsServiceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDirection() {\r\n return direction;\r\n }",
"public int getDirection() {\n return direction_;\n }",
"public String getDirection() {\n return direction;\n }",
"public String getDirection() {\n\t\treturn this.direction;\n\t}",
"public String getDirection() {\n return this.direction;\n }",
"public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}",
"public int getDirection() {\n return direction_;\n }",
"String getDirection();",
"public byte getDirection() {\n\t\treturn direction;\n\t}",
"EChannelDirection direction();",
"public int getDirection() {\n return direction;\n }",
"public int getDirection() {\n return direction;\n }",
"public byte getDirection() {\n return this.direction;\n }",
"public byte getDirection() {\n return this.direction;\n }",
"public int getDirection() {\n return direction;\n }",
"public int getDirection() {\r\n\t\treturn direction;\r\n\t}",
"public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}",
"private String getUserDirection() {\n System.out.println(\"Which direction do you want to go?\\n>>>\");\n String direction = sc.nextLine().toLowerCase();\n return direction;\n }",
"public Transaction.DirectionType getDirection() {\n\t\treturn direction;\n\t}",
"@AutoEscape\n\tpublic String getRequestDirection();",
"public int getDirection();",
"int getDirection();",
"public DirectionEnum getDirection() {\n return direction;\n }",
"public Direction getDirection() {\r\n\t\treturn direction;\r\n\t}",
"public Direction getDirection()\n\t{\n\t\treturn this.direction;\n\t}",
"public Direction getDirection() {\n\t\treturn direction;\n\t}",
"public MoveDirection getDirection() {\n\t\treturn direction;\n\t}",
"public Enums.Direction getDirection() {\n return direction;\n }",
"public float getDirection()\r\n {\r\n return direction;\r\n }",
"public Direction getDirection() {\n return direction;\n }",
"public Direction getDirection() {\n return direction;\n }",
"public Direction getDirection() {\n return direction;\n }",
"public int getCurrentDirection() {\r\n return currentDirection;\r\n }",
"@Field(13) \n\tpublic byte Direction() {\n\t\treturn this.io.getByteField(this, 13);\n\t}",
"public Direction getDirection() {\n return currentDirection;\n }",
"public Direction getDirection()\n {\n return dir;\n }",
"public float getDirection();",
"public char getDirection(){\n\t\treturn direction;\n\t}",
"Enumerator getDirection();",
"public double direction(){\n return Math.atan2(this.y, this.x);\n }",
"public Direction getCurrentDirection() {\n synchronized (f_lock) {\n return f_currentDirection;\n }\n }",
"public double getDirectionMove();",
"public MediaDirection getDirection()\n {\n return direction;\n }",
"public abstract int getDirection();",
"@Basic\r\n\tpublic Direction getDirection()\r\n\t{\r\n\t\treturn this.direction;\r\n\t}",
"public Direction direction()\n {\n return myDir;\n }",
"public final Vector3f getDirection() {\r\n return direction;\r\n }",
"public String getDirectionMove() {\n\t\treturn directionMove;\n\t}",
"default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }",
"public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.TextDirectionEnum getDirection() {\r\n return direction;\r\n }",
"public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}",
"protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}",
"public Direction getDirect() {\n \tif(xMoving && yMoving){\n \t\tif(right && down)\n \t\t\tdir = Direction.SOUTHEAST;\n \t\telse if(right && !down)\n \t\t\tdir = Direction.NORTHEAST;\n \t\telse if(!right && down)\n \t\t\tdir = Direction.SOUTHWEST;\n \t\telse\n \t\t\tdir = Direction.NORTHWEST;\n \t}\n \telse if(xMoving){\n \t\tdir = right ? Direction.EAST : Direction.WEST;\n \t}\n \telse if(yMoving){\n \t\tdir = down ? Direction.SOUTH : Direction.NORTH;\n \t}\n \treturn dir;\n }",
"public java.lang.String getDirectionname() {\n\treturn directionname;\n}",
"public java.lang.Integer getDirectioncode() {\n\treturn directioncode;\n}",
"public ElevatorStatus getCurrentDirection() {\n\t\treturn currentDirection;\n\t}",
"@JsonGetter(\"direction\")\r\n public String getDirection() {\r\n return direction;\r\n }",
"@SlideDirection\n public int getDirection() {\n return mImpl.getDirection().getNumber();\n }",
"@SlideDirection\n public int getDirection() {\n return mImpl.getDirection().getNumber();\n }",
"public final String getTextDirectionAttribute() {\n return getAttributeValue(\"dir\");\n }",
"public CS getDirectionCode() { return _directionCode; }",
"@Generated\n @Selector(\"direction\")\n @ByValue\n public native CGVector direction();",
"@Override\n\tpublic String getDirection(List<String> path) {\n\n\t\tString nextMove = path.get(path.size() - 1);\n\t\tif (nextMove.equals(\"TOP\")) {\n\t\t\treturn \"DOWN\";\n\t\t} else if (nextMove.equals(\"DOWN\")) {\n\t\t\treturn \"TOP\";\n\t\t} else if (nextMove.equals(\"LEFT\")) {\n\t\t\treturn \"RIGHT\";\n\t\t} else if (nextMove.equals(\"RIGHT\")) {\n\t\t\treturn \"LEFT\";\n\t\t}\n\t\treturn \"\";\n\t}",
"private DominoInKingdom.DirectionKind getDirection(String dir) {\n switch (dir) {\n case \"up\":\n return DominoInKingdom.DirectionKind.Up;\n case \"down\":\n return DominoInKingdom.DirectionKind.Down;\n case \"left\":\n return DominoInKingdom.DirectionKind.Left;\n case \"right\":\n return DominoInKingdom.DirectionKind.Right;\n default:\n throw new java.lang.IllegalArgumentException(\"Invalid direction: \" + dir);\n }\n }",
"@JsonGetter(\"direction\")\n public String getDirection ( ) { \n return this.direction;\n }",
"public Vector3f getDirection() {\r\n\t\treturn new Vector3f(mDirection);\r\n\t}",
"public java.lang.String getDirection2() {\r\n return direction2;\r\n }",
"@Schema(description = \"Indicates the threshold crossing direction: up or down.\")\n\n\tpublic String getDirection() {\n\t\treturn direction;\n\t}",
"public Direction getOppositeDirection() {\n\t\treturn opposite;\n\t}",
"public int solutionDirection() {\n if (bcLocation == BCLocation.DOWNSTREAM)\n return -1;\n else\n return 1;\n }",
"private int getDirection(boolean isFrontCamera) {\n\t\tif (mAccListener != null) {\n\t\t\tint dir = mAccListener.dir;\n\t\t\t// 当且仅当为前置摄像头且画面是上下方向(portrait、portrait-inverse)的颠倒\n\t\t\tif (isFrontCamera && ((dir & 1) == 1)) {\n\t\t\t\tdir = (dir ^ 2);\n\t\t\t}\n\t\t\treturn dir;\n\t\t}\n\t\treturn -1; // default value is -1\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.DirectionOfTravelPEL getDirectionOfTravel();",
"public Vector3d getDirection() { return mDirection; }",
"public Direction getCorrectRobotDirection();",
"public String getWindDirection() {\n\t\treturn windDirection;\n\t}",
"public String getWindDirection() {\n\t\treturn windDirection;\n\t}",
"com.microsoft.schemas.crm._2011.contracts.SearchDirection xgetDirection();",
"public Direction opposite() {\n return opposite;\n }",
"com.microsoft.schemas.crm._2011.contracts.SearchDirection.Enum getDirection();",
"public double getDirectionFace();",
"Directions getDirections(){\n return this.dir;\n }",
"public java.lang.String getDirection1() {\r\n return direction1;\r\n }",
"@Nullable\n public Direction frameDirection() {\n if (frameDirection == null) {\n return getFrameDirection();\n }\n return frameDirection;\n }",
"public Movement getDir() {\n\t\treturn dir;\n\t}",
"public DirectionResponse direction(DirectionRequest request) {\n InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, DIRECTION_URL_PATH);\n log.info(\"direction request: {}\", JsonUtils.toJsonString(internalRequest));\n return this.invokeHttpClient(internalRequest, DirectionResponse.class);\n }",
"@Nullable\n private Direction getFrameDirection() {\n //Cache the chunks we are looking up to check the frames of\n // Note: We can use an array based map, because we check suck a small area, that if we do go across chunks\n // we will be in at most two in general due to the size of our teleporter. But given we need to check multiple\n // directions we might end up checking two different cross chunk directions which would end up at three\n Long2ObjectMap<ChunkAccess> chunkMap = new Long2ObjectArrayMap<>(3);\n Object2BooleanMap<BlockPos> cachedIsFrame = new Object2BooleanOpenHashMap<>();\n for (Direction direction : EnumUtils.DIRECTIONS) {\n if (hasFrame(chunkMap, cachedIsFrame, direction, false)) {\n frameRotated = false;\n return direction;\n } else if (hasFrame(chunkMap, cachedIsFrame, direction, true)) {\n frameRotated = true;\n return direction;\n }\n }\n return null;\n }",
"public com.hps.july.persistence.Direction getDirections() throws Exception {\n\tDirectionAccessBean bean = constructDirections();\n\tif (bean != null)\n\t return (Direction)bean.getEJBRef();\n\telse\n\t return null;\n\n}",
"public int getTurnDir() {\r\n\t\tif(this.turnDir == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.turnDir.ordinal();\r\n\t}",
"Optional<Direction> getDirection();",
"public void getUserInput(int direction) { this.direction = direction; }",
"public ForgeDirection toForgeDirection()\n {\n for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS)\n {\n if (this.x == direction.offsetX && this.y == direction.offsetY && this.z == direction.offsetZ)\n {\n return direction;\n }\n }\n\n return ForgeDirection.UNKNOWN;\n }",
"public void setRequestDirection(String requestDirection);",
"public int getLineDirection() {\r\n return LineDirection;\r\n }",
"public Direction directionVers(Lutin lutin) {\n return coord.directionsVers(lutin.coord).get(0);\n\n }",
"public DoorDirection getDoorDirection() {\n\t\treturn this.doorDirection; \n\t}",
"public double getDirectionView();",
"@Override\n public Direction getDirection() {\n return null;\n }",
"public TextDirection getDir() {\n return dir;\n }",
"@Override\r\n public Orientation getOrientation() {\r\n return this.route.getOrientation();\r\n }",
"private static String getXadlDirection(Direction direction) {\n\t\tString strDirection = null;\n\t\tswitch (direction) {\n\t\tcase IN:\n\t\t\tstrDirection = \"in\";\n\t\t\tbreak;\n\t\tcase OUT_MULTI:\n\t\tcase OUT_SINGLE:\n\t\t\tstrDirection = \"out\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tstrDirection = \"none\";\n\n\t\t}\n\n\t\treturn strDirection;\n\t}"
] | [
"0.6901755",
"0.68977517",
"0.6897636",
"0.6883779",
"0.6881116",
"0.6822257",
"0.6812102",
"0.68048644",
"0.678085",
"0.67519677",
"0.67398334",
"0.67398334",
"0.67398214",
"0.67398214",
"0.6725913",
"0.6724117",
"0.6668551",
"0.6648325",
"0.66369015",
"0.66304237",
"0.6623308",
"0.65954417",
"0.6583947",
"0.65535975",
"0.65439445",
"0.65246964",
"0.6518394",
"0.6490068",
"0.6480632",
"0.646452",
"0.646452",
"0.646452",
"0.64581245",
"0.6456924",
"0.6452028",
"0.642373",
"0.63450724",
"0.6329935",
"0.6325466",
"0.62877446",
"0.6286593",
"0.6263785",
"0.6258066",
"0.62560886",
"0.6214567",
"0.61833745",
"0.61735815",
"0.6172266",
"0.6131118",
"0.6096002",
"0.60823077",
"0.6055179",
"0.60494345",
"0.6036058",
"0.6030732",
"0.6013286",
"0.59478444",
"0.5947392",
"0.5947392",
"0.59455943",
"0.59402424",
"0.5923617",
"0.59069777",
"0.58912385",
"0.5832139",
"0.5820293",
"0.58165216",
"0.5808644",
"0.58029455",
"0.5777872",
"0.57668763",
"0.5763436",
"0.5687665",
"0.5659604",
"0.5658628",
"0.5658628",
"0.5639538",
"0.56208014",
"0.56154567",
"0.5614904",
"0.55876523",
"0.55846334",
"0.5572036",
"0.55711776",
"0.55567527",
"0.55564207",
"0.5553445",
"0.55287665",
"0.5513786",
"0.5498229",
"0.54659355",
"0.5462709",
"0.54336524",
"0.5421779",
"0.5418067",
"0.5415489",
"0.5414699",
"0.5405444",
"0.54017997",
"0.54013467"
] | 0.55919254 | 80 |
An interface to identify costs that sacrifice permanents | public interface SacrificeCost extends Cost {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double getCost();",
"double getCost();",
"double getCost();",
"public double getCosts();",
"@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}",
"double getTotalCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"int getCost();",
"int getCost();",
"int getCost();",
"public double calculateCost(Purchase purchase);",
"@Override\n public double getCost() {\n\t return 13;\n }",
"protected abstract double getDefaultCost();",
"float getCostReduction();",
"public void getCosts() {\n\t}",
"public interface Costs {\n\n /**\n * Return costs for this object\n * @return Costs\n */\n public double getCosts();\n}",
"public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }",
"@Override\r\n\tprotected void processCost() {\n\r\n\t}",
"public CostInfo getCostInfo();",
"@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}",
"int getResourceCost();",
"@Override\n\tpublic int cost() {\n\t\tif(null == isDecorated) {\n\t\t\treturn 20;\n\t\t}\n\t\treturn 20+isDecorated.cost();\n\t}",
"public abstract int getCostToUpgrade();",
"@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}",
"@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }",
"@Override\n public long cost() {\n return 100;\n }",
"@Pure\n\tdouble getCost();",
"double getReliability();",
"@Override\r\n public double getBaseCost() { return type.getCost(); }",
"@Pure\n\tdouble getEstimatedCost();",
"@Override\r\n\tpublic double getCost() {\n\t\treturn 0;\r\n\t}",
"@Override\n public int getCost() {\n\treturn 0;\n }",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"List<ResourceSkuCosts> costs();",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }",
"public int getHealthCost();",
"@Override\n public double getCost() {\n return cost;\n }",
"double getPricePerPerson();",
"@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}",
"Map<String, Map<String, Double>> getElementCosts();",
"public interface CostReducer {\n /**\n * Get the percent cost reduction, from 0.0 to 1.0\n * @return The percent cost reduction.\n */\n float getCostReduction();\n\n /**\n * Get the percent item consume reduction, from 0.0 to 1.0\n * @return The percent item consume reduction.\n */\n float getConsumeReduction();\n\n /**\n * Get the amount to scale the end cost by.\n * @return The final scale to apply\n */\n float getCostScale();\n\n boolean isCostFree();\n\n boolean isConsumeFree();\n}",
"public int act1Cost()\r\n {\r\n return 1;\r\n }",
"private void calcEfficiency() {\n \t\tdouble possiblePoints = 0;\n \t\tfor (int i = 0; i < fermentables.size(); i++) {\n \t\t\tFermentable m = ((Fermentable) fermentables.get(i));\n \t\t\tpossiblePoints += (m.getPppg() - 1) * m.getAmountAs(\"lb\")\n \t\t\t\t\t/ postBoilVol.getValueAs(\"gal\");\n \t\t}\n \t\tefficiency = (estOg - 1) / possiblePoints * 100;\n \t}",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"double getSolutionCost();",
"@Override\n\tpublic void getCosts() {\n\t\tString renterIDString = String.valueOf(this.renter.getRenterID());\n\t\tString damageChargeString = String.valueOf(this.damageCharge);\n\t\tSystem.out.print(\"The amount owed in damages for renter with ID of: \" + renterIDString + \" is: \" + damageChargeString+\"\\n\");\n\t}",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"public double getCost() {\n return quantity*ppu;\n\n }",
"@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}",
"public double getCost() {\n\t\treturn 1.25;\n\t}",
"@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}",
"public double getCost(){\n return cost;\n }",
"double setEstimatedCost(double cost);",
"public Double getCostInterval();",
"public interface CostByPriceKm {\n\n BigDecimal costByPriceInKm();\n}",
"@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }",
"public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }",
"public double getCost()\n\t{\n\t\treturn 0.9;\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn medicalRecord.cost() + 4.88;\n\t}",
"public int getCost() {\n/* 69 */ return this.cost;\n/* */ }",
"@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}",
"public BigDecimal getLiterAllocation();",
"private CostHelper() {}",
"public double getCost() {\n\t\tif (this.accommodationType.equals(TYPEsingle)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 50.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else {\n\t\t\t\treturn 110.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEdouble)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 98.0;\n\t\t\t} else {\n\t\t\t\treturn 154.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEfamily)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 86.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 180.6;\n\t\t\t\t} else {\n\t\t\t\t\treturn 120.4;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 283.8;\n\t\t\t\t} else {\n\t\t\t\t\treturn 189.2;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEpresidential)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 200.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 420.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 280.0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 660.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 440.0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}",
"@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}",
"public int getWorth() { return 1; }",
"UnsignedLong cost(EigrpMetricVersion version);",
"double setCost(double cost);",
"public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }",
"public abstract double getDiscountRate();",
"public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }",
"@Override\n public double cost()\n {\n return this.price * this.number;\n }",
"public abstract double costPerMin (CallZone zone);",
"public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }",
"public abstract double cost(List<Drink> drinks, Double originalPrice, String pattern);",
"@Override\n public Double getCost() {\n return new Double(0);\n }",
"public abstract float getEstimatedCost(AStarNode paramAStarNode);",
"public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}",
"@Test\n public void shouldWorkAsExpected_WhenOneCourtIsFullyAllocatedToSpecificFacts() {\n String fact = \"unreasonable-behaviour\";\n Map<String, Map<String, BigDecimal>> specificCourtsAllocationPerFact = singletonMap(fact,\n singletonMap(\"court1\", ONE)\n );\n\n GenericCourtWeightedDistributor genericCourtWeightedDistributor = new GenericCourtWeightedDistributor(\n desiredWorkloadPerCourt, divorceRatioPerFact, specificCourtsAllocationPerFact);\n\n //Run 1M times\n BigDecimal totalNumberOfAttempts = new BigDecimal(1000000);\n HashMap<String, BigDecimal> courtsDistribution = new HashMap<>();\n for (int i = 0; i < totalNumberOfAttempts.intValue(); i++) {\n String selectedCourt = genericCourtWeightedDistributor.selectCourt();\n BigDecimal casesPerCourt = courtsDistribution.getOrDefault(selectedCourt, ZERO);\n courtsDistribution.put(selectedCourt, casesPerCourt.add(ONE));\n }\n\n //Assert court one was not allocated\n BigDecimal acceptableError = acceptedDeviation.multiply(totalNumberOfAttempts);\n assertThat(courtsDistribution.keySet(), hasSize(2));\n assertThat(courtsDistribution.keySet(), not(contains(\"court1\")));\n\n //Assert other courts got selected proportionately\n BigDecimal remainingWorkloadDiscountingSpecificFact = ONE.subtract(divorceRatioPerFact.get(fact));\n BigDecimal courtTwoProportionalGenericAllocation = desiredWorkloadPerCourt.get(\"court2\")\n .divide(remainingWorkloadDiscountingSpecificFact, SCALE, DOWN);\n assertThat(courtsDistribution.get(\"court2\"), closeTo(\n courtTwoProportionalGenericAllocation.multiply(totalNumberOfAttempts), acceptableError\n ));\n\n BigDecimal courtThreeProportionalGenericAllocation = desiredWorkloadPerCourt.get(\"court3\")\n .divide(remainingWorkloadDiscountingSpecificFact, SCALE, DOWN);\n assertThat(courtsDistribution.get(\"court3\"), closeTo(\n courtThreeProportionalGenericAllocation.multiply(totalNumberOfAttempts), acceptableError\n ));\n }",
"public abstract double applyDiscount(double p);",
"float getCostScale();",
"@Override\r\n\tprotected float generateBaseCost(IGoapUnit goapUnit) {\n\t\treturn 2f;\r\n\t}",
"public void buyhouse(int cost){\n\t\n}",
"public void calculateEffectiveness(){\n double[] typeEffective = new double[18];\n \n for(int i = 0; i < 18; i++){\n typeEffective[i] = tc.getEffectiveNumber(i, tc.convertType(type1));\n }\n \n if(type2 != null){\n for(int i = 0; i < 18; i++){\n typeEffective[i] *= tc.getEffectiveNumber(i, tc.convertType(type2));\n }\n }\n \n for(int i = 0; i < 18; i++){\n if(typeEffective[i] != 1){\n if(typeEffective[i] > 1){\n double[] newWeak = {i,typeEffective[i]};\n weak.add(newWeak);\n }else{\n double[] newStrong = {i,typeEffective[i]};\n strong.add(newStrong);\n }\n }\n }\n }",
"@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }",
"@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }",
"int getMetricCostsCount();",
"double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }",
"@Override\n\tprotected void setCost(double cst) {\n\t\t\n\t}",
"@Override\n public double computeProfitUsingRisk() {\n return (getVehiclePerformance() / getVehiclePrice()) * evaluateRisk();\n }",
"@Override\n public Double computeCost(double time) {\n // get the time period and policy type\n int timePeriod = Integer.parseInt(period.substring(1, period.length()-1));\n char periodPolicy = period.charAt(period.length()-1);\n\n double finalPrice = 0.0;\n\n // compute the final price\n switch (periodPolicy) {\n case 'D':\n final int secondsPerDay = 86400;\n finalPrice = (time / (secondsPerDay * timePeriod)) * periodCost;\n break;\n case 'W':\n final int secondsPerWeek = 604800;\n finalPrice = (time / (secondsPerWeek * timePeriod)) * periodCost;\n break;\n case 'M':\n final int secondsPerMonth = secondsInMonth(2015, 10); // TODO do this based on real date\n finalPrice = (time / (secondsPerMonth * timePeriod)) * periodCost;\n break;\n case 'Y':\n final int secondsPerYear = 31536000;\n finalPrice = (time / (secondsPerYear * timePeriod)) * periodCost;\n break;\n }\n\n return finalPrice;\n }",
"@Test\n public void testGetCost() {\n VirusAttribute virusAttribute = new VirusAttribute(\"att\", \"desc\", 30);\n int result = virusAttribute.getCost();\n assertEquals(30, result);\n }",
"@Override public double getCosto(){\n double d = 190.00;\n return d;\n }",
"@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}",
"public int getWorkCredCost();",
"private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}",
"public interface Grocery {\n BigDecimal getCost();\n}"
] | [
"0.68487495",
"0.6740443",
"0.6740443",
"0.6631031",
"0.65931934",
"0.65241414",
"0.65016615",
"0.65016615",
"0.65016615",
"0.64212483",
"0.64212483",
"0.64212483",
"0.6373702",
"0.6363065",
"0.63565415",
"0.6324795",
"0.6266283",
"0.6222428",
"0.620551",
"0.6197241",
"0.6160519",
"0.61579674",
"0.61344093",
"0.61036277",
"0.61020774",
"0.60949326",
"0.6093566",
"0.6036974",
"0.6034088",
"0.60293627",
"0.60090995",
"0.5976826",
"0.59662867",
"0.59560406",
"0.59444594",
"0.59344804",
"0.5923998",
"0.59228116",
"0.589804",
"0.5896712",
"0.5863357",
"0.5828656",
"0.58202475",
"0.57935435",
"0.578811",
"0.5780975",
"0.5780432",
"0.5775865",
"0.57719356",
"0.5762952",
"0.57626563",
"0.57569",
"0.5756086",
"0.5748563",
"0.57472825",
"0.5746852",
"0.57398826",
"0.57343453",
"0.5730781",
"0.5728408",
"0.57280976",
"0.5706042",
"0.5689459",
"0.5684407",
"0.5683275",
"0.56787497",
"0.56729466",
"0.56606495",
"0.56597084",
"0.5658767",
"0.56438816",
"0.5641804",
"0.564131",
"0.5639415",
"0.5637567",
"0.5635903",
"0.5629335",
"0.5626082",
"0.562156",
"0.5616834",
"0.5612467",
"0.55961543",
"0.5589257",
"0.55802345",
"0.5579122",
"0.5573866",
"0.5573098",
"0.55705464",
"0.5558812",
"0.5557394",
"0.555202",
"0.5551249",
"0.55510485",
"0.55465573",
"0.5543636",
"0.5542277",
"0.55391115",
"0.55331904",
"0.55243874",
"0.55171883"
] | 0.6626659 | 4 |
NOTE: have to build the filter here: | @PostConstruct
public void init() {
zeroLeggedOAuthProviderProcessingFilter = new ZeroLeggedOAuthProviderProcessingFilter(
oauthConsumerDetailsService, oauthNonceServices, oauthProcessingFilterEntryPoint,
oauthAuthenticationHandler, oauthProviderTokenServices, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}",
"public abstract void filter();",
"@Override\n public boolean shouldFilter() {\n return true;\n }",
"String getFilter();",
"java.lang.String getFilter();",
"FeatureHolder filter(FeatureFilter filter);",
"boolean doFilter() { return false; }",
"BuildFilter defaultFilter();",
"@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}",
"private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"123\"));\r\n Group group2 = new Group();\r\n group2.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"124\"));\r\n group.addFilterGroup(group2);\r\n filter.setFilterGroup(group);\r\n return filter;\r\n }",
"@Override public Filter getFilter() { return null; }",
"Filter getFilter();",
"private void updateFilter(BasicOutputCollector collector) {\n if (updateFilter()){\n \tValues v = new Values();\n v.add(ImmutableList.copyOf(filter));\n \n collector.emit(\"filter\",v);\n \t\n }\n \n \n \n }",
"public String getFilter();",
"public ConcatFilter() {\n super();\n }",
"public abstract void updateFilter();",
"public Filter () {\n\t\tsuper();\n\t}",
"@Override\n public List runFilter(String filter) {\n return runFilter(\"\", filter);\n }",
"CompiledFilter() {\n }",
"public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }",
"StandardFilterBuilder standardFilter(int count);",
"@Override\n public Filter getFilter() {\n\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n String charString = charSequence.toString();\n\n if (charString.isEmpty()) {\n\n mDataset = mArrayList;\n } else {\n\n ArrayList<DataObject> filteredList = new ArrayList<>();\n\n for (DataObject data : mArrayList) {\n\n if (data.getid().toLowerCase().contains(charString.toLowerCase()) || data.getname().toLowerCase().contains(charString.toLowerCase())) {\n\n filteredList.add(data);\n }\n }\n\n mDataset = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mDataset;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n mDataset = (ArrayList<DataObject>) filterResults.values;\n notifyDataSetChanged();\n }\n };\n }",
"void filterChanged(Filter filter);",
"private Filter ssoFilter() {\n\t\tCompositeFilter filter = new CompositeFilter();\n\t\tList<Filter> filters = new ArrayList<>();\n\t\tfilters.add(ssoFilter(facebook(), \"/login/facebook\"));\n\t\tfilters.add(ssoFilter(github(), \"/login/github\"));\n//\t\tfilters.add(ssoFilter(twitter(), \"/login/twitter\"));\n\t\tfilters.add(ssoFilter(linkedin(), \"/login/linkedin\"));\n\t\tfilter.setFilters(filters);\n\t\treturn filter;\n\t}",
"public abstract String getDefaultFilter ();",
"@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();",
"@Override\n\tpublic void filterClick() {\n\t\t\n\t}",
"void setFilter(String filter);",
"@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }",
"java.lang.String getDataItemFilter();",
"@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}",
"@Override\n public Filter getFilter() {\n return main_list_filter;\n }",
"boolean isPreFiltered();",
"private static void addUserFilters() {\n List<FiltersByLocation> filtersByLocations=new ArrayList<>();\n List<String> listOfFilterNamesAlreadyAddedUnModified=HealthDataFilter.returnAllFilterNames();\n List<String> listOfFilterNamesAlreadyAdded=new ArrayList<>(listOfFilterNamesAlreadyAddedUnModified);\n\n Set <String> set1=new HashSet<>();\n set1.add(\"\");\n\n String whereForZipFilter1 = createWhereForZipFilter((HashSet<String>) set1);\n\n if (!listOfFilterNamesAlreadyAdded.contains(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME)){\n filtersByLocations.add(new FiltersByLocation(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME ,whereForZipFilter1));\n listOfFilterNamesAlreadyAdded.add(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME);\n }\n\n Map<String, ?> userZipCodeFilters = PreferenceUtility.getUserZipCodeFilters();\n\n for (Map.Entry<String, ?> entry : userZipCodeFilters.entrySet()) {\n //Upper case\n String filterName=entry.getKey().substring(AppConstant.USER_PREF_ZIP_FILTER_PREFIX.length()).toUpperCase();\n String whereForZipFilter = createWhereForZipFilter((HashSet<String>) entry.getValue());\n if (!listOfFilterNamesAlreadyAdded.contains(filterName)){\n filtersByLocations.add(new FiltersByLocation(filterName,whereForZipFilter));\n }\n }\n }",
"public abstract Filter<T> filter();",
"private void clearAllFilter() {\n }",
"public static NodeFilter makeFilter()\n\t{\n\t\tNodeFilter[] fa = new NodeFilter[3];\n\t\tfa[0] = new HasAttributeFilter(\"HREF\");\n\t\tfa[1] = new TagNameFilter(\"A\");\n\t\tfa[2] = new HasParentFilter(new TagNameFilter(\"H3\"));\n\t\tNodeFilter filter = new AndFilter(fa);\n\t\treturn filter;\n\t}",
"public Filter() {\n }",
"public boolean shouldFilter() {\n return true;\n }",
"@Override\n\tpublic List<PropertyFilter> buildPropertyFilter(CcNoticereceive entity) {\n\t\treturn null;\n\t}",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }",
"public PipelineFilter()\n {\n }",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n if (constraint.length() == 0) {\n array = arrayList_copy;\n\n } else {\n\n if (filterType == 0) {\n array = getItemFilter(constraint.toString().toLowerCase());\n } else {\n array = getCodeFilter(constraint.toString().toLowerCase());\n }\n\n }\n FilterResults filterResults = new FilterResults();\n filterResults.values = array;\n\n\n return filterResults;\n }",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"@Override\n\t public String filterType() {\n\t return \"pre\";\n\t }",
"public interface Filter {\n\n}",
"private boolean updateFilter() {\n \tList<Rankable> items = rankings.getRankings();\n \tHashSet<String> hashtags = new HashSet<String>();\n \t\n \tfor (Rankable item: items) {\n \thashtags.add((String)item.getObject());\n }\n \t\n \n \t\n \tfor(String word: initialWords){\n \t\thashtags.add(word);\n \t}\n \n \tif(filter.equals(hashtags)){\n \t\treturn false;\n \t} else {\n \t\tfilter = hashtags;\n \t\treturn true;\n \t}\n \n\t\t\n\t}",
"void onFilterChanged(ArticleFilter filter);",
"protected void validateFilters(cwterm.service.rigctl.xsd.Filter[] param) {\n }",
"void setFilter(Filter f);",
"public void clickonFilter() {\n\t\t\n\t}",
"private ProductFilterUtils(){}",
"private void filterHandler(Request req, Supplier filter) throws SQLException {\n generalHandler(req);\n params.put(\"currFilter\", filter);\n params.put(\"products\", filter.getProducts());\n }",
"static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 446 */ Global global = new Global(param2String, param2Boolean);\n/* 447 */ return global.isEmpty() ? null : global;\n/* */ }",
"@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}",
"public void onUpdateFilters(SearchFilter newFilter) {\n filter.setSort(newFilter.getSort());\n filter.setBegin_date(newFilter.getBegin_date());\n filter.setNewsDeskOpts(newFilter.getNewsDeskOpts());\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n fetchArticles(0,true);\n }",
"@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n FilterResults filterResults = new FilterResults();\n if (arg0 == null || arg0.length() == 0) {\n filterResults.values = MyArrayObjects;\n filterResults.count = MyArrayObjects.size();\n } else {\n String filterString = arg0.toString().toLowerCase();\n final ArrayList<Com_ItemObject> TempList = new ArrayList<Com_ItemObject>();\n for (Com_ItemObject Sis_ItemObject : MyArrayObjects) {\n //Filters both from Name and Bottom Text\n if ((Sis_ItemObject.getName() + \" \" + Sis_ItemObject.getBottomText()).toLowerCase().contains(filterString)) {\n TempList.add(Sis_ItemObject);\n }\n }\n\n filterResults.values = TempList;\n filterResults.count = TempList.size();\n }\n\n return filterResults;\n }",
"protected Set<String> getFilter(StaplerRequest req) throws ServletException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{\n Set<String> filter = new TreeSet<String>();\n String values[] = {\"other\",\"job\",\"view\",\"computer\",\"user\"};\n for(String s:values){\n if(req.getParameter(s)!=null)\n filter.add(s); \n }\n return filter;\n }",
"static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 448 */ Global global = new Global(param2String, param2Boolean);\n/* 449 */ return global.isEmpty() ? null : global;\n/* */ }",
"public void addFilterToComboRO(ViewerFilter filter);",
"private FilterByAllCompiler() {\n }",
"@Override\n\tpublic String dofilter(String str) {\n\t\tfor(Filter f : filters){\n\t\t\tstr = f.dofilter(str);\n\t\t}\t\t\n\t\treturn str;\n\t}",
"@Test\n public void testCreateFilter() throws Exception {\n System.out.println(\"createFilter\");\n \n String expResult = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<String,String>();\n List<String> values =new ArrayList<String>();\n key.put(\"Delivery\", \"***REMOVED***\");\n key.put(\"FunctionalEnvironment\", \"Production\");\n \n \n \n values.add(\"Company\");\n values.add(\"VirtualDC\");\n values.add(\"Manufacturer\");\n \n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = new ArrayList<CriteriaFilter>();\n resultList.add(instance);\n \n \n String result = \"\";\n for (CriteriaFilter criterio: resultList){\n System.out.println(\"result is \" + criterio);\n result = criterio.toString();\n }\n \n assertEquals(expResult, result);\n \n }",
"public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}",
"@Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n FilterResults results = new FilterResults();\n\n if (charSequence != null && charSequence.length() > 0) {\n charSequence = charSequence.toString().toUpperCase();\n ArrayList<Icon> filterIcon = new ArrayList<>();\n\n for (int i = 0; i < mFilterList.size(); i++) {\n if (mFilterList.get(i).getName().toUpperCase().contains(charSequence)) {\n filterIcon.add(mFilterList.get(i));\n }\n }\n\n results.count = filterIcon.size();\n results.values = filterIcon;\n } else {\n results.count = mFilterList.size();\n results.values = mFilterList;\n }\n\n return results;\n }",
"protected AbstractJoSQLFilter ()\n {\n\n }",
"public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }",
"public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}",
"EventChannelFilter filter();",
"@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }",
"void filterChanged(String filter) {\n if (filter.isEmpty()) {\n treeView.setRoot(rootTreeItem);\n } else {\n TreeItem<FilePath> filteredRoot = createTreeRoot();\n filter(rootTreeItem, filter, filteredRoot);\n treeView.setRoot(filteredRoot);\n }\n }",
"@Override\n public String filterType() {\n return \"pre\";\n }",
"@Override\n public String filterType() {\n return \"pre\";\n }",
"@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"private void applyFilters() {\r\n\t\t// create the new filters\r\n\t\tViewerFilter[] filters = new ViewerFilter[] { new TransportStateViewFilter(IProgramStatus.PROGRAM_STATUS_PREBOOKING),\r\n\t\t\t\tnew TransportDirectnessFilter(IDirectness.TOWARDS_BRUCK), transportDateFilter, transportViewFilter };\r\n\t\t// set up the filters for the view\r\n\t\tviewerBruck.setFilters(filters);\r\n\t\tviewerGraz.setFilters(filters);\r\n\t\tviewerWien.setFilters(filters);\r\n\t\tviewerMariazell.setFilters(filters);\r\n\t\tviewerKapfenberg.setFilters(filters);\r\n\t\tviewerLeoben.setFilters(filters);\r\n\t}",
"private void processFilterFlag(String filter) {\r\n\t\tif (filter.equals(\"none\") == true) {\r\n\t\t\tSystem.out.println(\"Removing board filter.\");\r\n\t\t\tresults.removeFilter();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tchar ch;\r\n\t\tint i = 0;\r\n\t\twhile (i < filter.length()) {\r\n\t\t\tch = Character.toLowerCase(filter.charAt(i));\r\n\t\t\tif (ch == '*') {\r\n\t\t\t\ti++;\r\n\t\t\t} else if(ch >= 'a' && ch <= 'z') {\r\n\t\t\t\tint trailing = (filter.length() - 1) - i;\r\n\t\t\t\tSystem.out.format(\"Added filter: %d%c%d%n\", i, ch, trailing);\r\n\t\t\t\tresults.addFilter(i, ch, trailing);\r\n\t\t\t\treturn;\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Board filter syntax error!\");\r\n\t\tSystem.out.println(\"0 or more '*'s followed by 1 lower case character, followed by 0 or more stars.\");\r\n\t}",
"public ArrayList<CampusEvent> eventListFilter (ArrayList<CampusEvent> campusEvents, Filters filter) {\n ArrayList<CampusEvent> newList = new ArrayList<CampusEvent>();\n //if all the filters are zero, return original list\n Log.d(Globals.TAGG, \"Showing what the filters are\");\n\n if (filter == null) {\n Log.d(Globals.TAGG, \"All filters are null\");\n return campusEvents;\n } else {\n if (filter.getfFood() == 0 && filter.getfEventType() == 0 && filter.getfProgramType() == 0 && filter.getfGender() == 0 && filter.getfGreekSociety() == 0 && filter.getfMajor() == 0 && filter.getfYear() == 0) {\n return campusEvents;\n }\n if (filter.getfFood() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfFood() - 1;\n if (event.getFood() == scaleval) {\n newList.add(event);\n }\n }\n }\n if (filter.getfEventType() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfEventType() - 1;\n if (event.getEventType() == scaleval) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfProgramType() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getProgramType() == filter.getfProgramType()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfYear() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getYear() == filter.getfYear()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfMajor() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getMajor() == filter.getfMajor()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGender() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGender() == filter.getfGender()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGreekSociety() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGreekSociety() == filter.getfGreekSociety()) {\n newList.add(event);\n }\n }\n }\n\n return newList;\n }\n }",
"protected FileExtensionFilter()\n\t{\n\t}",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toUpperCase();\n List<Product> filters = new ArrayList<Product>();\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {\n Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),\n filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),\n filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),\n filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());\n filters.add(p);\n }\n }\n results.count = filters.size();\n results.values = filters;\n if(filters.size()==0){ // if not found result\n TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);\n tv.setText(\"Üzgünüz, aradığınız sonucu bulamadık..\");\n Log.e(\"bbı\",\"oıfnot\");\n }\n else\n mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n }\n return results;\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n\n ArrayList<VehicleData> filterList = new ArrayList<>();\n\n for (int i = 0; i < mflatFilterList.size(); i++) {\n if (\n mflatFilterList.get(i).getName().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getNumber().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getModel().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getColor().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getFlat().getNumber().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getFlat().getName().toLowerCase().contains(constraint.toString().toLowerCase())\n ) {\n filterList.add(mflatFilterList.get(i));\n }\n }\n\n results.count = filterList.size();\n\n results.values = filterList;\n\n } else {\n results.count = mflatFilterList.size();\n results.values = mflatFilterList;\n }\n return results;\n }",
"public void addFilterToCreator(ViewerFilter filter);",
"public void addFilterToAttributes(ViewerFilter filter);",
"protected NullFilterImpl() {\n }",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"protected void addFilter(TableViewer viewer) {\n\t\t//0.6f entspricht einer minimalen durchschnittlichen Bewertung von 3 Punkten\n\t\tviewer.addFilter(new RatingFilter(0.6f));\n\t}",
"public void addBusinessFilterToMethods(ViewerFilter filter);",
"public void addBusinessFilterToCreator(ViewerFilter filter);",
"@Test\n public void filter() {\n\n }",
"private void isFiltersSatisfied() {\n Filter[] filters = rule.getFilters();\n for (int i = 0; i < filters.length; i++) {\n linkedList.add(filters[i]);\n }\n recursiveFiltering(linkedList.peek().filter.split(\":\"),null);\n }",
"@Override\r\n public Page<T> filter(U filter)\r\n {\r\n Class<T> T = returnedClass();\r\n CriteriaBuilder cb = getEm().getCriteriaBuilder();\r\n CriteriaQuery<T> criteriaQuery = cb.createQuery(T);\r\n CriteriaQuery<Long> criteriaQueryCount = cb.createQuery(Long.class);\r\n Root<T> entity = criteriaQuery.from(T);\r\n criteriaQueryCount.select(cb.count(entity));\r\n criteriaQuery.select(entity);\r\n \r\n // collect all filters relevant for affected entity\r\n List<Object> filters = new ArrayList<Object>();\r\n getPreFilters(filters, T, filter);\r\n \r\n filters.add(filter);\r\n List<Hint> hints = new ArrayList<Hint>();\r\n \r\n if (!filters.isEmpty()) {\r\n List<Predicate> filterPredicates = new ArrayList<Predicate>();\r\n for (Object queryCriteria : filters) {\r\n \r\n List<Predicate> orPredicates = new ArrayList<Predicate>();\r\n List<Predicate> andPredicates = new ArrayList<Predicate>();\r\n FilterContextImpl<T> filterContext = new FilterContextImpl<T>(entity, criteriaQuery, getEm(), queryCriteria);\r\n hints.addAll(filterContext.getHints());\r\n \r\n List<Field> fields = AbstractFilteringRepository.getInheritedPrivateFields(queryCriteria.getClass());\r\n for (Field field : fields) {\r\n // I want to skip static fields and fields which are cared of in different(specific way)\r\n if (!Modifier.isStatic(field.getModifiers()) && !ignoredFields.contains(field.getName())) {\r\n if (!field.isAccessible()) {\r\n field.setAccessible(true);\r\n }\r\n \r\n /**\r\n * Determine field path\r\n */\r\n // anottaion specified path has always highest priority, so is processed in the first place processing\r\n FieldPath fieldPathAnnotation = field.getAnnotation(FieldPath.class);\r\n Field f;\r\n if (fieldPathAnnotation != null && StringUtils.isNotBlank(fieldPathAnnotation.value())) {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(fieldPathAnnotation.value(), FieldPath.FIELD_PATH_SEPARATOR), true);\r\n } else {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(field.getName(), StructuredPathFactory.FILTER_PATH_SEPARATOR), true);\r\n }\r\n \r\n // tries to find CustmoProcessor annotation or some annotation metaannotated by custom processor\r\n CustomProcessor processor = field.getAnnotation(CustomProcessor.class);\r\n if (processor == null) {\r\n processor = getMetaAnnotation(CustomProcessor.class, field);\r\n }\r\n \r\n ProcessorContext<T> processorContext = filterContext.getProcessorContext(andPredicates, orPredicates, field);\r\n Object filterFieldValue = getFilterFieldValue(field, queryCriteria);\r\n if (processor == null && f != null) {\r\n processTypes(filterFieldValue, processorContext);\r\n // If field is not pressent in Entity, it needs special care\r\n } else {\r\n Class<CustomFieldProcessor<T, ?>> processorClass = null;\r\n if (processor != null) {\r\n processorClass = (Class<CustomFieldProcessor<T, ?>>) processor.value();\r\n processCustomFields(filterFieldValue, processorContext, processorClass);\r\n } else {\r\n if (!processCustomTypes(filterFieldValue, processorContext)) {\r\n if (shouldCheck(processorContext.getField())) {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" wasn't handled. \");\r\n throw new UnsupportedOperationException(\"Custom filter fields not supported in \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \", required field: \" + processorContext.getField().getName());\r\n } else {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" marked with @Unchecked annotation wasn't handled. \");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!andPredicates.isEmpty() || !orPredicates.isEmpty()) {\r\n Predicate filterPredicate = null;\r\n if (!andPredicates.isEmpty()) {\r\n Predicate andPredicate = cb.and(andPredicates.toArray(new Predicate[1]));\r\n filterPredicate = andPredicate;\r\n }\r\n if (!orPredicates.isEmpty()) {\r\n Predicate orPredicate = cb.or(orPredicates.toArray(new Predicate[1]));\r\n if (filterPredicate != null) {\r\n filterPredicate = cb.and(filterPredicate, orPredicate);\r\n } else {\r\n filterPredicate = orPredicate;\r\n }\r\n }\r\n filterPredicates.add(filterPredicate);\r\n }\r\n }\r\n if (!filterPredicates.isEmpty()) {\r\n Predicate finalPredicate = cb.and(filterPredicates.toArray(new Predicate[1]));\r\n criteriaQuery.where(finalPredicate);\r\n criteriaQueryCount.where(finalPredicate);\r\n }\r\n }\r\n \r\n \r\n TypedQuery<T> query = getEm().createQuery(criteriaQuery);\r\n TypedQuery<Long> queryCount = getEm().createQuery(criteriaQueryCount);\r\n if (filter != null && filter.getPageSize() > 0) {\r\n query = query.setFirstResult(filter.getOffset());\r\n query = query.setMaxResults(filter.getPageSize());\r\n }\r\n // add hints\r\n if (!hints.isEmpty()) {\r\n for (Hint hint : hints) {\r\n query.setHint(hint.getName(), hint.getValue());\r\n queryCount.setHint(hint.getName(), hint.getValue());\r\n }\r\n }\r\n \r\n \r\n PageImpl<T> result = new PageImpl<T>(query.getResultList(), filter, queryCount.getSingleResult().intValue());\r\n return result;\r\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results=new FilterResults();\n\n if(constraint != null && constraint.length()>0)\n {\n //CONSTARINT TO UPPER\n constraint=constraint.toString().toUpperCase();\n\n ArrayList<Busqueda> filters=new ArrayList<Busqueda>();\n\n //get specific items\n for(int i=0;i<FilterDatos.size();i++)\n {\n if(FilterDatos.get(i).getTitulo().toUpperCase().contains(constraint))\n {\n Busqueda p=new Busqueda();\n p.setId(FilterDatos.get(i).getId());\n p.setTitulo(FilterDatos.get(i).getTitulo());\n p.setDescripcion(FilterDatos.get(i).getDescripcion());\n p.setContraseña(FilterDatos.get(i).getContraseña());\n p.setLongitud(FilterDatos.get(i).getLongitud());\n p.setTerminada(FilterDatos.get(i).getTerminada());\n p.setPuntos(FilterDatos.get(i).getPuntos());\n filters.add(p);\n }\n }\n\n results.count=filters.size();\n results.values=filters;\n\n }else\n {\n results.count=FilterDatos.size();\n results.values=FilterDatos;\n\n }\n\n return results;\n }",
"public void updateFilter() {\n Texture2dProgram.ProgramType programType;\n float[] kernel = null;\n float colorAdj = 0.0f;\n\n Log.d(TAG, \"Updating filter to \" + mNewFilter);\n switch (mNewFilter) {\n case CameraActivity.FILTER_NONE:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT;\n break;\n case CameraActivity.FILTER_BLACK_WHITE:\n // (In a previous version the TEXTURE_EXT_BW variant was enabled by a flag called\n // ROSE_COLORED_GLASSES, because the shader set the red channel to the B&W color\n // and green/blue to zero.)\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_BW;\n break;\n case CameraActivity.FILTER_BLUR:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 1f/16f, 2f/16f, 1f/16f,\n 2f/16f, 4f/16f, 2f/16f,\n 1f/16f, 2f/16f, 1f/16f };\n break;\n case CameraActivity.FILTER_SHARPEN:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 0f, -1f, 0f,\n -1f, 5f, -1f,\n 0f, -1f, 0f };\n break;\n case CameraActivity.FILTER_EDGE_DETECT:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n -1f, -1f, -1f,\n -1f, 8f, -1f,\n -1f, -1f, -1f };\n break;\n case CameraActivity.FILTER_EMBOSS:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 2f, 0f, 0f,\n 0f, -1f, 0f,\n 0f, 0f, -1f };\n colorAdj = 0.5f;\n break;\n default:\n throw new RuntimeException(\"Unknown filter mode \" + mNewFilter);\n }\n\n // Do we need a whole new program? (We want to avoid doing this if we don't have\n // too -- compiling a program could be expensive.)\n if (programType != mFullScreen.getProgram().getProgramType()) {\n mFullScreen.changeProgram(new Texture2dProgram(programType));\n // If we created a new program, we need to initialize the texture width/height.\n mIncomingSizeUpdated = true;\n }\n\n // Update the filter kernel (if any).\n if (kernel != null) {\n mFullScreen.getProgram().setKernel(kernel, colorAdj);\n }\n\n mCurrentFilter = mNewFilter;\n }",
"protected void ACTION_B_FILTER(ActionEvent e) {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif(RB_FILTER_ENABLE.isSelected())\r\n\t\t\t{\r\n\t\t\t\tif(RB_PORT_HTTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"ip and tcp\", true);\r\n\t\t\t\t}\r\n\t\t\t\telse if(RB_PORT_DNS.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"udp dst port 53\", true);\r\n\t\t\t\t}else if(RB_PORT_SMTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"smtp dst port 25\", true);\r\n\t\t\t\t}else if(RB_PORT_SSL.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"port 443\", true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Filtering is Disabled\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e2) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(e2);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test\n public void testFilterStructure() throws Exception {\n assertEquals(300.0, maxFilter.filter(300.0), .01);\n }",
"Boolean filterEnabled();",
"@LargeTest\n public void testBWFilter() {\n TestAction ta = new TestAction(TestName.BW_FILTER);\n runTest(ta, TestName.BW_FILTER.name());\n }"
] | [
"0.74241996",
"0.74241996",
"0.7178594",
"0.7105444",
"0.69680244",
"0.69670546",
"0.6925673",
"0.68463504",
"0.6823554",
"0.6800605",
"0.67924047",
"0.67507136",
"0.6711915",
"0.6696826",
"0.6653399",
"0.66337705",
"0.66201055",
"0.6594537",
"0.65890026",
"0.65418535",
"0.65286607",
"0.6481873",
"0.64773506",
"0.64691836",
"0.6430943",
"0.64156324",
"0.6399767",
"0.6374313",
"0.6370115",
"0.6343143",
"0.6333891",
"0.63307506",
"0.62694246",
"0.6256552",
"0.625317",
"0.62518376",
"0.62251014",
"0.6223009",
"0.62194186",
"0.62188655",
"0.6209398",
"0.6185573",
"0.61824745",
"0.617659",
"0.61685485",
"0.6153175",
"0.61485505",
"0.6137035",
"0.6131045",
"0.6125389",
"0.6114025",
"0.61067504",
"0.6102595",
"0.6082807",
"0.60817355",
"0.60770893",
"0.6074043",
"0.6055649",
"0.6055344",
"0.6053909",
"0.60434693",
"0.60374993",
"0.60372746",
"0.6035201",
"0.60308874",
"0.6027342",
"0.6026975",
"0.60268694",
"0.60225374",
"0.601852",
"0.6011234",
"0.60087895",
"0.60079455",
"0.60078764",
"0.6005809",
"0.5996743",
"0.599661",
"0.599661",
"0.59946704",
"0.59887224",
"0.5984785",
"0.5979609",
"0.5977942",
"0.5971807",
"0.5971241",
"0.5952239",
"0.59475815",
"0.59450287",
"0.5943978",
"0.59418905",
"0.59418195",
"0.59393156",
"0.59341735",
"0.59303457",
"0.592203",
"0.591964",
"0.5916486",
"0.5907241",
"0.5902974",
"0.58974504",
"0.58960027"
] | 0.0 | -1 |
NOTE: we don't use the OAuthProviderTokenServices for 0legged but it cannot be null | @Bean(name = "oauthProviderTokenServices")
public OAuthProviderTokenServices oauthProviderTokenServices() {
return new InMemoryProviderTokenServices();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected OAuthProvider getOAuthProvider() {\r\n \tOAuthProvider provider = new CommonsHttpOAuthProvider(MendeleyApiUrls.OAuthUrls.REQUEST_TOKEN_URL,\r\n \t\t\tMendeleyApiUrls.OAuthUrls.ACCESS_TOKEN_URL, MendeleyApiUrls.OAuthUrls.AUTHORIZE_URL);\r\n \t\r\n \tprovider.setOAuth10a(true);\r\n// for (String headerName : requestHeaders.keySet()) {\r\n// \tprovider.setRequestHeader(headerName, requestHeaders.get(headerName));\r\n// }\r\n \t\r\n \treturn provider;\r\n\t}",
"public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }",
"@Override\r\n\tpublic String accessToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}",
"OAuth2Token getToken();",
"AccessToken getOAuthAccessToken(RequestToken requestToken, String oauthVerifier) throws MoefouException;",
"public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}",
"AccessToken getOAuthAccessToken(String oauthVerifier) throws MoefouException;",
"@Override\n String getOAuthUrl() {\n return null;\n }",
"RequestToken getOAuthRequestToken(String callbackURL) throws MoefouException;",
"RequestToken getOAuthRequestToken() throws MoefouException;",
"public Object token(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException {\n try {\n OAuthTokenRequest oauthRequest = new OAuthTokenRequest(request);\n String authCode = oauthRequest.getParam(OAuth.OAUTH_CODE);\n\n // get from cache\n OAuthAuthzParameters oAuthAuthzParameters = oAuthService.getOAuthAuthzParameters(authCode);\n if (oAuthAuthzParameters == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CODE))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_AUTHORIZATION_CODE)\n .buildJSONMessage();\n logger.info(\"no cache for {}\", authCode);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!oAuthAuthzParameters.getClientId().equals(oauthRequest.getClientId())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid client id {}, context: {}\", oauthRequest.getClientId(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client id\n Client openOauthClients = oAuthService.getClientByClientId(oauthRequest.getClientId());\n if (openOauthClients == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"can not get client, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!openOauthClients.getGrantTypes().contains(Constants.OAUTH_AUTHORIZATION_CODE)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"no grant type, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client secret\n if (!openOauthClients.getClientSecret().equals(oauthRequest.getClientSecret())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid secret: {}, context: {}\", openOauthClients.getClientSecret(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check redirect url\n if (!oAuthAuthzParameters.getRedirectUri().equals(oauthRequest.getRedirectURI())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_REDIRECT_URI)\n .buildJSONMessage();\n logger.info(\"invalid redirect url {}, context: {}\", oauthRequest.getRedirectURI(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // build response\n OAuthIssuer oauthIssuerImpl = new OAuthIssuerImpl(new UUIDValueGeneratorEx());\n String accessToken = oauthIssuerImpl.accessToken();\n String refreshToken = oauthIssuerImpl.refreshToken();\n\n /**\n * limit client access token number\n */\n int limitNum = openOauthClients.getClientNum();\n limitNum = limitNum > 0 ? limitNum - 1 : limitNum;\n oAuthService.limitAccessToken(oAuthAuthzParameters.getClientId(),\n oAuthAuthzParameters.getUserId(), limitNum);\n\n oAuthService.saveAccessToken(accessToken, oAuthAuthzParameters);\n oAuthService.saveRefreshToken(refreshToken, accessToken, oAuthAuthzParameters);\n\n OAuthResponse response = OAuthASResponseEx\n .tokenResponse(HttpServletResponse.SC_OK)\n .setTokenType(\"uuid\")\n .setAccessToken(accessToken)\n .setRefreshToken(refreshToken)\n .setExpiresIn(String.valueOf(appConfig.tokenAccessExpire))\n\n .setScope(oAuthAuthzParameters.getScope())\n .buildJSONMessage();\n\n //remove the code from cache\n oAuthService.delOAuthAuthzParameters(authCode);\n\n logger.info(\"response access toke {}, context: {}\", accessToken, oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n } catch (OAuthProblemException e) {\n logger.error(\"oauth problem exception\", e);\n OAuthResponse res = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(e.getMessage())\n .buildJSONMessage();\n return new ResponseEntity<String>(res.getBody(), HttpStatus.valueOf(res.getResponseStatus()));\n }\n\n }",
"@FormUrlEncoded\n @POST(\"oauth/request_token\")\n Flowable<ResponseBody> requestToken(@Field(\"oauth_callback\") String oauthCallback);",
"AccessToken getOAuthAccessToken(RequestToken requestToken) throws MoefouException;",
"public interface OAuthTokenStoreAdapter {\n\n void storeAccessToken(AccessToken token);\n AccessToken retrieveAccessToken(String value);\n\n void storeRefreshToken(RefreshToken token);\n RefreshToken retrieveRefreshToken(String value);\n}",
"@Override\n\tprotected AuthenticationToken createToken(ServletRequest request, ServletResponse response) throws Exception {\n\t\treturn null;\n\t}",
"public interface OauthAccessToken {\n byte[] getAuthentication();\n\n String getTokenId();\n\n String getAuthenticationId();\n\n byte[] getToken();\n\n void setTokenId(String tokenId);\n\n void setToken(byte[] token);\n\n void setAuthenticationId(String authenticationId);\n\n void setUsername(String username);\n\n void setAuthentication(byte[] authentication);\n\n void setRefreshToken(String refreshToken);\n\n void setClientId(String clientId);\n}",
"public void addSocialToken(String token, String authProviderStr){\n socialtoken = token;\n authProvider = authProviderStr;\n saveTokenDataLocally();\n }",
"@FormUrlEncoded\n @POST(\"/oauth/access_token\")\n Flowable<ResponseBody> getAccessToken(@Field(\"oauth_verifier\") String oauthVerifier);",
"private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }",
"@Override\n\tpublic void setAuthProvider(AuthProvider arg0) {\n\t}",
"AccessToken getOAuthAccessToken() throws MoefouException;",
"interface GetAccessTokenCallback {\n /**\n * Invoked on the UI thread if a token is provided by the AccountManager.\n *\n * @param token Access token, guaranteed not to be null.\n */\n void onGetTokenSuccess(AccessTokenData token);\n\n /**\n * Invoked on the UI thread if no token is available.\n *\n * @param isTransientError Indicates if the error is transient (network timeout or\n * unavailable, etc) or persistent (bad credentials, permission denied, etc).\n */\n void onGetTokenFailure(boolean isTransientError);\n }",
"void preTokenRequest() throws MsalUiRequiredException, MsalUserCancelException,\n MsalServiceException, MsalClientException {\n mAuthRequestParameters.getAuthority().resolveEndpoints(\n mAuthRequestParameters.getRequestContext(),\n mAuthRequestParameters.getLoginHint()\n );\n }",
"@Override\r\n\tpublic String refreshToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}",
"@Override\n protected String getAccessTokenUrl(final JsonNode inputOAuthConfiguration) {\n return TOKEN_URL;\n }",
"@Autowired\n public AuthorizationServerTokenServices tokenServices() {\n final DefaultTokenServices defaultTokenServices = new DefaultTokenServices();\n defaultTokenServices.setSupportRefreshToken(true);\n defaultTokenServices.setRefreshTokenValiditySeconds(6 * 60 * 60);\n defaultTokenServices.setAccessTokenValiditySeconds(1 * 60 * 60);\n\n defaultTokenServices.setTokenStore(tokenStore());\n return defaultTokenServices;\n }",
"protected void validateToken() {\n\n authToken = preferences.getString(getString(R.string.auth_token), \"\");\n saplynService = new SaplynService(preferences.getInt(debugLvl, -1), authToken);\n\n // Check if user already authenticated\n if (authToken.equals(\"\")) {\n Intent intent = new Intent(HomeActivity.this, AuthenticationActivity.class);\n startActivityForResult(intent, 0);\n }\n else {\n populateUser();\n }\n }",
"interface PodAuthService {\n @FormUrlEncoded\n @POST(\"/oauth/token\")\n Observable<Auth> authenticate(\n @Field(\"grant_type\") String grantType,\n @Field(\"username\") String username,\n @Field(\"password\") String password,\n @Field(\"client_id\") String clientId,\n @Field(\"client_secret\") String clientSecret\n );\n\n @FormUrlEncoded\n @POST(\"/oauth/token\")\n Observable<Auth> refreshToken(\n @Field(\"grant_type\") String grantType,\n @Field(\"client_id\") String clientId,\n @Field(\"client_secret\") String clientSecret,\n @Field(\"refresh_token\") String refreshToken\n );\n}",
"@Override\n public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)\n throws APIManagementException {\n\n //initiate OAuthApplicationInfo\n OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();\n\n String consumerKey = oAuthApplicationInfo.getClientId();\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n String clientSecret = (String) oAuthApplicationInfo.getParameter(\"client_secret\");\n oAuthApplicationInfo.setClientSecret(clientSecret);\n //for the first time we set default time period.\n oAuthApplicationInfo.addParameter(ApplicationConstants.VALIDITY_PERIOD,\n getConfigurationParamValue(APIConstants.IDENTITY_OAUTH2_FIELD_VALIDITY_PERIOD));\n\n\n //check whether given consumer key and secret match or not. If it does not match throw an exception.\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n try {\n info = getOAuthApplication(oAuthApplicationInfo.getClientId());\n if (!clientSecret.equals(info.getClientSecret())) {\n throw new APIManagementException(\"The secret key is wrong for the given consumer key \" + consumerKey);\n }\n\n } catch (Exception e) {\n handleException(\"Some thing went wrong while getting OAuth application for given consumer key \" +\n oAuthApplicationInfo.getClientId(), e);\n } \n if (info != null && info.getClientId() == null) {\n return null;\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not read information from the retrieved OAuth application\", e);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating semi-manual application for consumer id : \" + oAuthApplicationInfo.getClientId());\n }\n\n\n return oAuthApplicationInfo;\n }",
"@PostConstruct\n public void init() {\n oAuthProviders.registerProvider(this);\n }",
"private String refreshToken() {\n return null;\n }",
"MendeleyOAuthServiceImpl(MendeleyApiConsumer apiConsumer) {\r\n \trequestHeaders = new HashMap<String, String>();\r\n \tthis.apiConsumer = apiConsumer;\r\n }",
"@Override\n public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n endpoints.tokenServices(tokenServices);\n }",
"public OAuthRequestToken(Token token) {\n if (token == null) {\n return;\n }\n this.oauthToken = token.getToken();\n this.oauthTokenSecret = token.getSecret();\n }",
"@Override\n protected AuthenticationInfo doGetAuthenticationInfo(\n AuthenticationToken token) throws AuthenticationException {\n return null;\n }",
"public interface SecurityService\r\n{\r\n\t/**\r\n\t * This method return true if the given 'securityToken' is a valid token for the given security service. The security service can be any service\r\n\t * such as OAuth, LDAP, ActiveDirectory, OpenID etc. It is up to the implementor of this interface to interact with the appropriate security\r\n\t * service to determine if the given securityToken is valid. Reasons for a token to not be valid include but are not limited to, expired tokens, \r\n\t * incorrect tokens, not authenticated tokens etc.<br/>\r\n\t * This method will be used by the provider in a DIRECT environment to authenticate/validate a consumer.\r\n\t * \r\n\t * @param securityToken The token that shall be validated against a given security service such as LDAP, OAuth, Active Directory, etc.\r\n\t * @param requestMetadata Metadata that has been sourced from a request. The environmentID property is always null because the token is\r\n * not yet authenticated and therefore the environment is not yet determined. \r\n\t * \r\n\t * @return TRUE if the token is known and valid to the security server and not expired. If a token is expired then FALSE should be returned.\r\n\t */\r\n\tpublic boolean validate(String securityToken, RequestMetadata requestMetadata);\r\n\r\n\t/**\r\n\t * This method may contact the security server which can be an OAuth server, and LDAP server a Active Directory etc. In return it will provide \r\n\t * information that relate to the securityToken such as: <br/>\r\n\t * a) Information about the application and/or user of that securityToken (appUserInfo property populated in the TokenInfo) or<br/>\r\n\t * b) Information about the SIF environment or SIF session the securityToken relates to. This would be the case for already existing SIF\r\n\t * Environments.<br/>\r\n\t * Further an expire date might be set for the securityToken if the token has expired. If the securityToken does not expire then the \r\n\t * expire date is null in the returned TokenInfo object.<br/>\r\n * This method will be used by the provider in a DIRECT environment to get information about a consumer's security token.\r\n\t * \r\n\t * @param securityToken The security token for which the TokenInfo shall be returned.\r\n\t * @param requestMetadata Metadata that has been sourced from a request. The environmentID property is always null because the token is\r\n * not yet authenticated and therefore the environment is not yet determined. \r\n\t * \r\n\t * @return See Desc. It is expected that this method only returns either the environmentKey or the SIF environment ID or the SIF session token but\r\n\t * not all of these at the same time.\r\n\t */\r\n\tpublic TokenInfo getInfo(String securityToken, RequestMetadata requestMetadata);\r\n\t\r\n\t/**\r\n\t * This method may contact the security server which can be an OAuth server, and LDAP server a Active Directory etc. to generate a \r\n\t * security token based on the given 'coreInfo'. It is expected that any consumer or a provider in a BROKERED environment calls this \r\n\t * method to retrieve a security token which it will use as the authorisation token in all SIF requests to a provider or broker.\r\n\t * \r\n\t * @param coreInfo Information about the consumer/provider that might be used to generate a security token by the external security service.\r\n\t * In most cases it would at least need the application key.\r\n\t * @param password It is very likely that some sort of password will be required to generate a security token.\r\n\t * \r\n\t * @return A TokenInfo object which will have the 'token' property set (the security token). Optional the 'tokenExpiryDate' may be set\r\n\t * if the token has an expire date. If the 'tokenExpiryDate' is null it is assumed that the returned security token won't expire.\r\n\t * The returned token should only be a token without any authentication method as a prefix. For example the token may be\r\n\t * \"ZjI2NThiNTktNDM1Yi00YThkLTlmNzYtYzI0MDBiNjY1NWMxOlBhc3N3b3JkMQ\". It should not hold the authentication method such as 'Bearer'\r\n\t * (i.e. not look like this: \"Bearer ZjI2NThiNTktNDM1Yi00YThkLTlmNzYtYzI0MDBiNjY1NWMxOlBhc3N3b3JkMQ\"). The SIF3 Framework will\r\n\t * manage the authentication method.\r\n\t */\r\n\tpublic TokenInfo createToken(TokenCoreInfo coreInfo, String password);\r\n}",
"@PostConstruct\r\n\tpublic void init() {\n\t\tzeroLeggedOAuthProviderProcessingFilter = new ZeroLeggedOAuthProviderProcessingFilter(\r\n\t\t\t\toauthConsumerDetailsService, oauthNonceServices, oauthProcessingFilterEntryPoint,\r\n\t\t\t\toauthAuthenticationHandler, oauthProviderTokenServices, true);\r\n\t}",
"protected OAuth2ClientApplicationDTO findOAuthConsumerIfTokenIsValid(OAuth2TokenValidationRequestDTO requestDTO) {\n OAuth2TokenValidationService oAuth2TokenValidationService = new OAuth2TokenValidationService();\n return oAuth2TokenValidationService.findOAuthConsumerIfTokenIsValid(requestDTO);\n }",
"private static String getAppTokenId() {\n if (appTokenId == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (appTokenId == null) {\n try {\n if (OAuthProperties.isServerMode()) {\n appTokenId = OAuthServiceUtils.getAdminTokenId();\n }\n else {\n final String username =\n OAuthProperties.get(PathDefs.APP_USER_NAME);\n final String password =\n OAuthProperties.get(PathDefs.APP_USER_PASSWORD);\n appTokenId =\n OAuthServiceUtils.authenticate(username, password, false);\n }\n }\n catch (final OAuthServiceException oe) {\n Logger.getLogger(DefaultEntityManagerImpl.class.getName()).log(\n Level.SEVERE, null, oe);\n throw new WebApplicationException(oe);\n }\n }\n }\n }\n return appTokenId;\n }",
"public static void initialize() {\n Security.addProvider(new OAuth2Provider());\n }",
"private static OAuth2Token createFactory() {\n\t\tOAuth2Token token = null;\n\t\tConfigurationBuilder cb = configure();\n\t\t\n\t\ttry {\n\t\t\ttoken = new TwitterFactory(cb.build()).getInstance().getOAuth2Token();\n\t\t} catch (TwitterException e) {\n\t\t\tSystem.out.println(\"Error getting OAuth2 token!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\treturn token;\n\t}",
"@Override\n\tpublic void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n\t\t endpoints\n\t\t .tokenStore(tokenStore)// Tell which tokenStore it will use\n\t\t\t .tokenEnhancer(jwtTokenEnhancer)//Required when self signed jwt token is implemented\n\t\t\t //Not required in case of In-MemoryTokenStore and JdbcTokenStore\n\t\t\t .authenticationManager(authenticationManager);\n\t}",
"private String handleOAuthAuthorizationRequest(String clientId, HttpServletRequest req, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ throws OAuthSystemException, OAuthProblemException\r\n/* */ {\r\n/* 410 */ OAuth2ClientValidationResponseDTO clientDTO = null;\r\n/* 411 */ String redirect_uri = EndpointUtil.getSafeText(req.getParameter(\"redirect_uri\"));\r\n/* 412 */ if ((clientId == null) || (clientId.equals(\"\"))) {\r\n/* 413 */ String msg = \"Client Id is not present in the authorization request\";\r\n/* 414 */ log.debug(msg);\r\n/* 415 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null); }\r\n/* 416 */ if ((redirect_uri == null) || (redirect_uri.equals(\"\"))) {\r\n/* 417 */ String msg = \"Redirect URI is not present in the authorization request\";\r\n/* 418 */ log.debug(msg);\r\n/* 419 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null);\r\n/* */ }\r\n/* 421 */ clientDTO = validateClient(clientId, redirect_uri);\r\n/* */ \r\n/* */ \r\n/* 424 */ if (!clientDTO.isValidClient()) {\r\n/* 425 */ return EndpointUtil.getErrorPageURL(clientDTO.getErrorCode(), clientDTO.getErrorMsg(), null, null);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 429 */ OAuthAuthzRequest oauthRequest = new OAuthAuthzRequest(req);\r\n/* */ \r\n/* 431 */ OAuth2Parameters params = new OAuth2Parameters();\r\n/* 432 */ params.setClientId(clientId);\r\n/* 433 */ params.setRedirectURI(clientDTO.getCallbackURL());\r\n/* 434 */ params.setResponseType(oauthRequest.getResponseType());\r\n/* 435 */ params.setScopes(oauthRequest.getScopes());\r\n/* 436 */ if (params.getScopes() == null) {\r\n/* 437 */ Set<String> scopeSet = new HashSet();\r\n/* 438 */ scopeSet.add(\"\");\r\n/* 439 */ params.setScopes(scopeSet);\r\n/* */ }\r\n/* 441 */ params.setState(oauthRequest.getState());\r\n/* 442 */ params.setApplicationName(clientDTO.getApplicationName());\r\n/* */ \r\n/* */ \r\n/* 445 */ params.setNonce(oauthRequest.getParam(\"nonce\"));\r\n/* 446 */ params.setDisplay(oauthRequest.getParam(\"display\"));\r\n/* 447 */ params.setIDTokenHint(oauthRequest.getParam(\"id_token_hint\"));\r\n/* 448 */ params.setLoginHint(oauthRequest.getParam(\"login_hint\"));\r\n/* 449 */ if ((oauthRequest.getParam(\"acr_values\") != null) && (!oauthRequest.getParam(\"acr_values\").equals(\"null\")) && (!oauthRequest.getParam(\"acr_values\").equals(\"\")))\r\n/* */ {\r\n/* 451 */ String[] acrValues = oauthRequest.getParam(\"acr_values\").split(\" \");\r\n/* 452 */ LinkedHashSet list = new LinkedHashSet();\r\n/* 453 */ for (String acrValue : acrValues) {\r\n/* 454 */ list.add(acrValue);\r\n/* */ }\r\n/* 456 */ params.setACRValues(list);\r\n/* */ }\r\n/* 458 */ String prompt = oauthRequest.getParam(\"prompt\");\r\n/* 459 */ if (prompt == null) {\r\n/* 460 */ prompt = \"consent\";\r\n/* */ }\r\n/* 462 */ params.setPrompt(prompt);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 494 */ boolean forceAuthenticate = false;\r\n/* 495 */ boolean checkAuthentication = false;\r\n/* */ \r\n/* 497 */ if (prompt != null)\r\n/* */ {\r\n/* 499 */ String[] prompts = prompt.trim().split(\"\\\\s\");\r\n/* 500 */ boolean contains_none = prompt.contains(\"none\");\r\n/* 501 */ if ((prompts.length > 1) && (contains_none)) {\r\n/* 502 */ String error = \"Invalid prompt variable combination. The value 'none' cannot be used with others prompts.\";\r\n/* 503 */ log.debug(error + \" \" + \"Prompt: \" + prompt);\r\n/* 504 */ return OAuthASResponse.errorResponse(302).setError(\"invalid_request\").setErrorDescription(error).location(params.getRedirectURI()).setState(params.getState()).buildQueryMessage().getLocationUri();\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 510 */ if (prompt.contains(\"login\")) {\r\n/* 511 */ checkAuthentication = false;\r\n/* 512 */ forceAuthenticate = true;\r\n/* */ }\r\n/* 514 */ else if ((contains_none) || (prompt.contains(\"consent\"))) {\r\n/* 515 */ checkAuthentication = false;\r\n/* 516 */ forceAuthenticate = false;\r\n/* */ }\r\n/* */ }\r\n/* */ \r\n/* 520 */ String sessionDataKey = UUIDGenerator.generateUUID();\r\n/* 521 */ CacheKey cacheKey = new SessionDataCacheKey(sessionDataKey);\r\n/* 522 */ sessionDataCacheEntry = new SessionDataCacheEntry();\r\n/* 523 */ sessionDataCacheEntry.setoAuth2Parameters(params);\r\n/* 524 */ sessionDataCacheEntry.setQueryString(req.getQueryString());\r\n/* */ \r\n/* 526 */ if (req.getParameterMap() != null) {\r\n/* 527 */ sessionDataCacheEntry.setParamMap(new ConcurrentHashMap(req.getParameterMap()));\r\n/* */ }\r\n/* 529 */ SessionDataCache.getInstance().addToCache(cacheKey, sessionDataCacheEntry);\r\n/* */ try\r\n/* */ {\r\n/* 532 */ return EndpointUtil.getLoginPageURL(clientId, sessionDataKey, forceAuthenticate, checkAuthentication, oauthRequest.getScopes(), req.getParameterMap());\r\n/* */ }\r\n/* */ catch (UnsupportedEncodingException e) {\r\n/* 535 */ log.debug(e.getMessage(), e);\r\n/* 536 */ throw new OAuthSystemException(\"Error when encoding login page URL\");\r\n/* */ }\r\n/* */ }",
"public interface OAuthListener {\n public void onAuthError(AuthPlatform platform,AuthType mAuthType);\n public void onAuthComplete(AuthPlatform mplatform,AuthType mAuthType,Object object);\n public void onAuthCancel(AuthPlatform platform,AuthType mAuthType);\n}",
"private String getTokenV2(TokenRequestBody tokenRequestBody, String tokenEndPoint) throws Exception {\n log.info(\"Entering getTokenV2\");\n String message = null;\n HttpStatus status = null;\n try {\n\n MultiValueMap<String, String> map = new LinkedMultiValueMap<>();\n map.add(GRANT_TYPE, tokenRequestBody.getGrantType());\n map.add(CODE, tokenRequestBody.getCode());\n map.add(CLIENT_ID, tokenRequestBody.getClientId());\n map.add(REDIRECT_URI, tokenRequestBody.getRedirectUri());\n map.add(CLIENT_ASSERTION_TYPE, tokenRequestBody.getClientAssertionType());\n map.add(CLIENT_ASSERTION, tokenRequestBody.getClientAssertion());\n log.info(\"Just created token request map\");\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\n Object loggedHeader = headers.remove(HttpHeaders.AUTHORIZATION);\n\n HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(map, headers);\n log.info(\"User Token v2>>Carrier endpoint: {}\", tokenEndPoint);\n log.info(\"User Token v2>>Carrier Request: {}\", loggedHeader);\n log.info(\"User Token v2>>Carrier Body: {}\", map);\n log.info(\"User Token v2>>Request: {}\", request);\n log.info(\"tokenEndPoint: {}\", tokenEndPoint);\n\n ResponseEntity<String> response = restTemplate.exchange(tokenEndPoint, HttpMethod.POST, request,\n String.class);\n log.info(\"Just made carrier token endpoint REST call\");\n if (!response.getStatusCode().equals(HttpStatus.OK)) {\n throw new OauthException(\"Carrier thrown Exception: \" + response.getStatusCodeValue());\n }\n message = response.getBody();\n log.info(\"User Token2 Response: {}\", message);\n } catch (RestClientResponseException ex) {\n String returnedMessage = \"\";\n if (ex.getRawStatusCode() == 401) {\n returnedMessage = String.format(\"Error getTokenV2: HTTP 401: Unauthorized token: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n if (ex.getResponseBodyAsByteArray().length > 0)\n returnedMessage = new String(ex.getResponseBodyAsByteArray());\n else\n returnedMessage = ex.getMessage();\n status = HttpStatus.BAD_REQUEST;\n log.error(\"HTTP 400: \" + returnedMessage);\n throw new OauthException(returnedMessage, status);\n } catch (Exception ex) {\n String returnedMessage = String.format(\"Error getTokenV2: Error in calling Token end point: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"Leaving getTokenV2\");\n return message;\n }",
"@Primary\n\t@Bean\n\tpublic RemoteTokenServices tokenServices() {\n\t\tfinal RemoteTokenServices tokenService = new RemoteTokenServices();\n\t\ttokenService.setCheckTokenEndpointUrl(\"http://localhost:8282/oauth/check_token\");\n\t\ttokenService.setClientId(\"customer-service\");\n\t\ttokenService.setClientSecret(\"webpass\");\n\t\treturn tokenService;\n\t}",
"private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }",
"void setOAuthConsumer(String consumerKey, String consumerSecret);",
"@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }",
"public void setOauth_token(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localOauth_tokenTracker = true;\r\n } else {\r\n localOauth_tokenTracker = false;\r\n \r\n }\r\n \r\n this.localOauth_token=param;\r\n \r\n\r\n }",
"public String getAccessToken();",
"@Test\n public void testTokenEndPointAnonymousTokenRequestWithInvalidScope() throws Exception {\n String callback = \"Backplane.callback\";\n \n refreshRequestAndResponse();\n \n request.setRequestURI(\"/v2/token\");\n request.setMethod(\"GET\");\n request.setParameter(\"grant_type\", \"client_credentials\");\n setOAuthBasicAuthentication(request, \"anonymous\", \"\");\n request.setParameter(\"scope\",\"channel:notmychannel\");\n request.setParameter(\"callback\", callback);\n \n handlerAdapter.handle(request, response, controller);\n logger.info(\"testTokenEndPointAnonymousTokenRequestWithInvalidScope() => \" + response.getContentAsString());\n assertTrue(response.getContentAsString().contains(ERR_RESPONSE));\n \n refreshRequestAndResponse();\n \n request.setRequestURI(\"/v2/token\");\n request.setMethod(\"GET\");\n request.setParameter(\"grant_type\", \"client_credentials\");\n setOAuthBasicAuthentication(request, \"anonymous\", \"\");\n request.setParameter(\"scope\",\"bus:notmybus\");\n request.setParameter(\"callback\", callback);\n \n handlerAdapter.handle(request, response, controller);\n logger.info(\"testTokenEndPointAnonymousTokenRequestWithInvalidScope() => \" + response.getContentAsString());\n assertTrue(response.getContentAsString().contains(ERR_RESPONSE));\n }",
"@Override\n public void tokenOverdue(final Context context) {\n System.out.println(\"tokenOverdue token 失效,重新获取token\");\n\n // 开发者通过自己的方法获取token,这里是demo\n String acountId = \"\";\n USDKCommonManager.updateToken(context, acountId);\n\n /**** 这份代码是例子。。。。。 ****/\n acountId = USDKTest.getSPToken(context);\n String callerPhone = USDKTest.getCallerPhone(context);\n if (TextUtils.isEmpty(acountId) || TextUtils.isEmpty(acountId)) {\n return;\n }\n USDKTest.getToken(context, callerPhone, acountId, new IUSDKHttpCallback() {\n @Override\n public void onSuccess(Object result) {\n try {\n String json = (String) result;\n System.out.println(\"onSuccess json =\" + json);\n String token = \"\";\n\n USDKTestResultGetTokenBean bean = new USDKTestResultGetTokenBean(new JSONObject(json));\n token = bean.getToken();\n USDKCommonManager.updateToken(context, token);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailed(Object result) {\n System.out.println(\"onFailed result =\" + result);\n }\n });\n /**** 这份代码是例子。。。。。 ****/\n }",
"@Override\r\n\tpublic String authorizationCode() throws OAuthSystemException {\n\t\treturn null;\r\n\t}",
"private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n void parseOAuthResponse(String data) {\n }",
"@Nullable\n private String fetchToken() throws IOException {\n try {\n return GoogleAuthUtil.getToken(mActivity, mEmail, mScope);\n } catch (UserRecoverableAuthException ex) {\n // GooglePlayServices.apk is either old, disabled, or not present\n // so we need to show the user some UI in the activity to recover.\n // TODO: complain about old version\n Log.e(\"aqx1010\", \"required Google Play version not found\", ex);\n } catch (GoogleAuthException fatalException) {\n // Some other type of unrecoverable exception has occurred.\n // Report and log the error as appropriate for your app.\n Log.e(\"aqx1010\", \"fatal authorization exception\", fatalException);\n }\n return null;\n }",
"void onGetTokenSuccess(AccessTokenData token);",
"private TokenHandler(Context context) {\n mContext = context;\n pullTokenDataFromLocal();\n if(hasSocialToken()){\n updateLoginTokens();\n }\n }",
"@Override\n public void intercept(RequestInterceptor.RequestFacade request) {\n if ((mCredentials != null) && (mCredentials.accessToken != null)) {\n request.addEncodedQueryParam(PARAM_ACCESS_TOKEN, mCredentials.accessToken);\n }\n }",
"public void retrieveAccessToken(Context context) {\n PBookAuth mPBookAuth = mApplicationPreferences.getPBookAuth();\n if (mPBookAuth == null || TextUtils.isEmpty(mPBookAuth.getClientName())) {\n view.onReturnAccessToken(null, false);\n return;\n }\n Ion.with(context).load(ACCESS_TOKEN_SERVICE_URL).setBodyParameter(\"client\", mPBookAuth.getClientName()).setBodyParameter(\"phoneNumber\", mPBookAuth.getPhoneNumber()).setBodyParameter(\"platform\", PLATFORM_KEY).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null || !TextUtils.isEmpty(accessToken)) {\n mApplicationPreferences.setTwilioToken(accessToken);\n view.onReturnAccessToken(accessToken, true);\n } else {\n view.onReturnAccessToken(accessToken, false);\n }\n }\n });\n }",
"private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"client_id=\" + CONSUMER_KEY + \"&client_secret=\" + CONSUMER_SECRET + \"&grant_type=client_credentials\");\n\t\tRequest request = new Request.Builder().url(\"https://api.yelp.com/oauth2/token\").post(body)\n\t\t\t\t.addHeader(\"cache-control\", \"no-cache\").build();\n\n\t\ttry {\n\t\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\t\tString respbody = response.body().string().trim();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject json = (JSONObject) parser.parse(respbody);\n\t\t\taccessToken = (String) json.get(\"access_token\");\n\t\t} catch (IOException | ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"String getAccessToken();",
"String getAccessToken();",
"Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder();",
"@Override\r\n public OAuthTokens getTokens()\r\n {\r\n return tokenStore.loadTokens();\r\n }",
"@Override\n public void onTokenRefresh() {\n }",
"public interface ServerTokenExchangeProvider extends Provider, ServerTokenExchange\n{\n}",
"public interface TokenService {\n\n /**\n * Generate a user-based renewal token\n *\n * @param username The username for which the token will be valid\n * @return A renewal JWT for the user\n */\n String generateUserRenewalToken(String username);\n\n /**\n * Generate a unit-based renewal token\n *\n * @param unit The unit for which the token will be valid\n * @param expiration The optional expiration timestamp for the token (defaults to duration specified in application config)\n * @return A renewal JWT for the unit\n */\n String generateUnitRenewalToken(Unit unit, Instant expiration);\n\n /**\n * Generate a user-based request token\n *\n * @param username The username for which the token will be valid\n * @param authorities The list of authorities associated with the user\n * @return A request JWT for the user\n */\n String generateUserRequestToken(String username, Collection<String> authorities);\n\n /**\n * Generate a unit-based request token\n *\n * @param units The list of units for which the token will be valid\n * @return A request JWT for the units\n */\n String generateUnitRequestToken(Collection<String> units);\n}",
"public final synchronized com.microsoft.authentication.OAuthToken mo3469a(java.lang.String r8) {\n /*\n r7 = this;\n monitor-enter(r7)\n boolean r0 = e20.b // Catch:{ all -> 0x00f2 }\n if (r0 == 0) goto L_0x0012\n do0 r0 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r1 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"requestAccessToken() called\"\n jo0 r0 = r0.a // Catch:{ all -> 0x00f2 }\n if (r0 == 0) goto L_0x0012\n r0.a(r1, r2) // Catch:{ all -> 0x00f2 }\n L_0x0012:\n java.lang.String r0 = r7.f1253a // Catch:{ all -> 0x00f2 }\n boolean r0 = C20.b(r0) // Catch:{ all -> 0x00f2 }\n r1 = 0\n if (r0 == 0) goto L_0x002e\n boolean r8 = e20.b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x002c\n do0 r8 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r0 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"_allInOneRefreshToken empty, return\"\n jo0 r8 = r8.a // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x002c\n r8.a(r0, r2) // Catch:{ all -> 0x00f2 }\n L_0x002c:\n monitor-exit(r7)\n return r1\n L_0x002e:\n java.lang.String r0 = \"https://login.live.com/oauth20_token.srf\"\n java.lang.String r2 = r7.f1253a // Catch:{ all -> 0x00f2 }\n java.util.Locale r3 = java.util.Locale.US // Catch:{ all -> 0x00f2 }\n r4 = 4\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ all -> 0x00f2 }\n r5 = 0\n java.lang.String r6 = \"refresh_token\"\n r4[r5] = r6 // Catch:{ all -> 0x00f2 }\n r5 = 1\n java.lang.String r6 = \"000000004C1BC462\"\n r4[r5] = r6 // Catch:{ all -> 0x00f2 }\n r5 = 2\n r4[r5] = r8 // Catch:{ all -> 0x00f2 }\n r5 = 3\n r4[r5] = r2 // Catch:{ all -> 0x00f2 }\n java.lang.String r2 = \"grant_type=%s&client_id=%s&scope=%s&refresh_token=%s\"\n java.lang.String r2 = java.lang.String.format(r3, r2, r4) // Catch:{ all -> 0x00f2 }\n java.lang.String r3 = \"\"\n com.microsoft.authentication.OAuthToken r0 = C20.a(r0, r2, r8, r3) // Catch:{ all -> 0x00f2 }\n boolean r2 = e20.b // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x007f\n do0 r2 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r3 = \"OAuthTokenProvider\"\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x00f2 }\n r4.<init>() // Catch:{ all -> 0x00f2 }\n java.lang.String r5 = \"requestOAuthToken result = [\"\n r4.append(r5) // Catch:{ all -> 0x00f2 }\n if (r0 != 0) goto L_0x006a\n java.lang.String r5 = \"null\"\n goto L_0x006c\n L_0x006a:\n java.lang.String r5 = \"non-null\"\n L_0x006c:\n r4.append(r5) // Catch:{ all -> 0x00f2 }\n java.lang.String r5 = \"]\"\n r4.append(r5) // Catch:{ all -> 0x00f2 }\n java.lang.String r4 = r4.toString() // Catch:{ all -> 0x00f2 }\n jo0 r2 = r2.a // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x007f\n r2.a(r3, r4) // Catch:{ all -> 0x00f2 }\n L_0x007f:\n if (r0 == 0) goto L_0x00f0\n boolean r2 = r0.isRefreshTokenExpired() // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x00a1\n boolean r2 = e20.b // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x0098\n do0 r2 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r3 = \"OAuthTokenProvider\"\n java.lang.String r4 = \"oAuthToken.isRefreshTokenExpired\"\n jo0 r2 = r2.a // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x0098\n r2.a(r3, r4) // Catch:{ all -> 0x00f2 }\n L_0x0098:\n com.microsoft.authentication.OAuthTokenProvider$Listener r2 = r7.f1254b // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x00a1\n com.microsoft.authentication.OAuthTokenProvider$Listener r2 = r7.f1254b // Catch:{ all -> 0x00f2 }\n r2.onCredentialUpdateRequired() // Catch:{ all -> 0x00f2 }\n L_0x00a1:\n boolean r2 = r0.isValidOAuthToken() // Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x00ba\n boolean r8 = e20.b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00b8\n do0 r8 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r0 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"oAuthToken not valid oauth token\"\n jo0 r8 = r8.a // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00b8\n r8.a(r0, r2) // Catch:{ all -> 0x00f2 }\n L_0x00b8:\n monitor-exit(r7)\n return r1\n L_0x00ba:\n java.lang.String r1 = \"service::ssl.live.com::MBI_SSL\"\n boolean r8 = r1.equals(r8) // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00f0\n java.lang.String r8 = r0.getRefreshToken() // Catch:{ all -> 0x00f2 }\n boolean r8 = C20.b(r8) // Catch:{ all -> 0x00f2 }\n if (r8 != 0) goto L_0x00f0\n com.microsoft.authentication.OAuthTokenProvider$Listener r8 = r7.f1254b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00f0\n boolean r8 = e20.b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00e1\n do0 r8 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r1 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"oAuthToken update refresh token\"\n jo0 r8 = r8.a // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00e1\n r8.a(r1, r2) // Catch:{ all -> 0x00f2 }\n L_0x00e1:\n java.lang.String r8 = r0.getRefreshToken() // Catch:{ all -> 0x00f2 }\n r7.f1253a = r8 // Catch:{ all -> 0x00f2 }\n com.microsoft.authentication.OAuthTokenProvider$Listener r8 = r7.f1254b // Catch:{ all -> 0x00f2 }\n java.lang.String r1 = r0.getRefreshToken() // Catch:{ all -> 0x00f2 }\n r8.onOneDriveRefreshTokenUpdated(r1) // Catch:{ all -> 0x00f2 }\n L_0x00f0:\n monitor-exit(r7)\n return r0\n L_0x00f2:\n r8 = move-exception\n monitor-exit(r7)\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.microsoft.authentication.OAuthTokenProvider.mo3469a(java.lang.String):com.microsoft.authentication.OAuthToken\");\n }",
"@Override\n public boolean supports(AuthenticationToken token) {\n return true;\n }",
"@Test\n public void testTokenEndPointAnonymousTokenRequest() throws Exception {\n String callback = \"Backplane.call_back\";\n \n // should return the form:\n // callback({\n // \"access_token\": \"l5feG0KjdXTpgDAfOvN6pU6YWxNb7qyn\",\n // \"expires_in\":3600,\n // \"token_type\": \"Bearer\",\n // \"backplane_channel\": \"Tm5FUzstWmUOdp0xU5UW83r2q9OXrrxt\"\n // })\n \n refreshRequestAndResponse();\n \n request.setRequestURI(\"/v2/token\");\n request.setMethod(\"GET\");\n request.setParameter(\"grant_type\", \"client_credentials\");\n setOAuthBasicAuthentication(request, \"anonymous\", \"\");\n request.setParameter(\"callback\", callback);\n \n handlerAdapter.handle(request, response, controller);\n logger.info(\"testTokenEndPointAnonymousTokenRequest() => \" + response.getContentAsString());\n \n assertTrue(\"Invalid response: \" + response.getContentAsString(), response.getContentAsString().\n matches(callback + \"[(][{]\\\\s*\\\"access_token\\\":\\\\s*\\\".{22}+\\\",\\\\s*\" +\n \"\\\"expires_in\\\":\\\\s*3600,\\\\s*\" +\n \"\\\"token_type\\\":\\\\s*\\\"Bearer\\\",\\\\s*\" +\n \"\\\"backplane_channel\\\":\\\\s*\\\".{32}+\\\"\\\\s*[}][)]\"));\n \n // cleanup test token\n String result = response.getContentAsString().substring(response.getContentAsString().indexOf(\"{\"), response.getContentAsString().indexOf(\")\"));\n Map<String,Object> returnedBody = new ObjectMapper().readValue(result, new TypeReference<Map<String,Object>>() {});\n daoFactory.getTokenDao().delete((String)returnedBody.get(\"access_token\"));\n \n }",
"public interface AccessTokenService extends Managed{\n public UserSession createAccessToken(UserSession userSession);\n\n public UserSession getUserFromAccessToken(String accessToken);\n\n public boolean isValidToken(String accessToken);\n\n public void removeAccessToken(String accessToken);\n\n public void removeUser(String userName);\n\n}",
"TokenFilter(TokenProvider provider) {\n this.provider = provider;\n }",
"@Override\r\n\tpublic Token getAuthToken() {\n\t\treturn null;\r\n\t}",
"Pokemon.RequestEnvelop.AuthInfo.JWT getToken();",
"public synchronized String accessToken(String knownInvalidToken) {\n if (accessToken == null || (knownInvalidToken != null && accessToken.equals(knownInvalidToken))) {\n loadTokens();\n }\n\n return accessToken;\n }",
"@Override\n\tpublic String getTokenId() {\n\t\treturn null;\n\t}",
"protected EscidocAuthenticationProvider() {\r\n }",
"@Override\n\tpublic void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {\n\t\toauthServer.tokenKeyAccess(\"permitAll()\").checkTokenAccess(\"isAuthenticated()\");\n\t}",
"List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();",
"Observable<Boolean> addToken(TokenRequest oauthRequest, Session session, RelyingParty relyingParty, boolean needUpdateRefresh);",
"@Bean\n @Override\n public AuthenticationManager authenticationManagerBean() {\n return new ProviderManager(singletonList(new OAuth2PasswordAuthenticationProvider(properties)));\n }",
"public interface SocialSource {\n\n String getSocialSourceName();\n\n UserEntity getUserProfile(Token token);\n\n OAuthService getAuthService();\n\n}",
"private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n if (globalKeyFile == null || !globalKeyFile.exists()) {\n CLog.d(\"Unable to fetch the service key because neither environment variable \" +\n \"APE_API_KEY is set nor the key file is dynamically downloaded.\");\n return null;\n }\n keyFilePath = globalKeyFile.getAbsolutePath();\n }\n if (Strings.isNullOrEmpty(mApiScope)) {\n CLog.d(\"API scope not set, use flag --business-logic-api-scope.\");\n return null;\n }\n try {\n Credential credential = GoogleCredential.fromStream(new FileInputStream(keyFilePath))\n .createScoped(Collections.singleton(mApiScope));\n credential.refreshToken();\n return credential.getAccessToken();\n } catch (FileNotFoundException e) {\n CLog.e(String.format(\"Service key file %s doesn't exist.\", keyFilePath));\n } catch (IOException e) {\n CLog.e(String.format(\"Can't read the service key file, %s\", keyFilePath));\n }\n return null;\n }",
"@Override\n public void onFailure(Call<TokenApiResponse> call, Throwable t) {\n Log.e(LOG_TAG, t.getMessage());\n tokenCallback.onError(t);\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(requestCode==request_Code){\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode,data);\n if(response.getType()==AuthenticationResponse.Type.TOKEN){\n accessToken = response.getAccessToken();\n }else{\n }\n }\n new SpotifyNewRelease(accessToken).execute();\n }",
"public Token toScribeToken() {\n return new Token(oauthToken, oauthTokenSecret);\n }",
"@Test\n public void testFailureNotParByParRequiredCilent() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n\n oauth.clientId(clientId);\n oauth.openLoginForm();\n assertEquals(OAuthErrorException.INVALID_REQUEST, oauth.getCurrentQuery().get(OAuth2Constants.ERROR));\n assertEquals(\"Pushed Authorization Request is only allowed.\", oauth.getCurrentQuery().get(OAuth2Constants.ERROR_DESCRIPTION));\n\n updateClientDynamically(clientId, (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n });\n\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n String code = loginResponse.getCode();\n\n // Token Request\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {\n //oauthServer.realm(REALM);\n oauthServer.tokenKeyAccess(\"permitAll()\")\n .checkTokenAccess(\"isAuthenticated()\")\n //.passwordEncoder(this.passwordEncoder)\n .allowFormAuthenticationForClients();\n\n }",
"@Override\n\tpublic void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n\t\tTokenEnhancerChain tokenEnhancerChain = new TokenEnhancerChain();\n\t\ttokenEnhancerChain.setTokenEnhancers(Arrays.asList(tokenEnhancer(), accessTokenConverter()));\n\t\t\n\t\tendpoints\n\t\t\t.tokenStore(tokenStore())\t//Armazena o token na memória.\n\t\t\t.accessTokenConverter(accessTokenConverter())\t//conversor de token\n\t\t\t.tokenEnhancer(tokenEnhancerChain)\n\t\t\t.reuseRefreshTokens(false)\t//A cada AccessToekn solicitado um novo refreshToken também é enviado.\n\t\t\t//Autenticação para validar usuario e senha, retornando usuario padrão do sistema com sua senha e lista de permissões.\n\t\t\t//Para validação da senha que está encriptada com BCrypt usa o método passwordEncoder()\n\t\t\t.userDetailsService(this.userDetailsService)\n\t\t\t.authenticationManager(authenticationManager);\t//valida o token\n\t}",
"public synchronized void acquireTokenAsync() {\n if (this.mCallback == null) {\n String str = Analytics.LOG_TAG;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Calling token provider=\");\n sb.append(this.mType);\n sb.append(\" callback.\");\n AppCenterLog.debug(str, sb.toString());\n this.mCallback = new AuthenticationCallback() {\n public void onAuthenticationResult(String str, Date date) {\n AuthenticationProvider.this.handleTokenUpdate(str, date, this);\n }\n };\n this.mTokenProvider.acquireToken(this.mTicketKey, this.mCallback);\n }\n }",
"public void setToken(){\n token=null;\n try {\n OkHttpClient client = new OkHttpClient();\n RequestBody reqbody = RequestBody.create(null, new byte[0]); \n Request request = new Request.Builder()\n .url(\"https://api.mercadolibre.com/oauth/token?grant_type=client_credentials&client_id=\"+clienteID +\"&client_secret=\"+secretKey)\n .post(reqbody)\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"cache-control\", \"no-cache\")\n .addHeader(\"postman-token\", \"67053bf3-5397-e19a-89ad-dfb1903d50c4\")\n .build();\n \n Response response = client.newCall(request).execute();\n String respuesta=response.body().string();\n token=respuesta.substring(respuesta.indexOf(\"APP\"),respuesta.indexOf(\",\")-1);\n System.out.println(token);\n } catch (IOException ex) {\n Logger.getLogger(MercadoLibreAPI.class.getName()).log(Level.SEVERE, null, ex);\n token=null;\n }\n }",
"public interface AuthAPIService {\n\n @FormUrlEncoded\n @POST(\"/oauth/token\")\n public Observable<Tokens> getAccessTokensObs(@Field(\"grant_type\") String grantType,\n @Field(\"scope\") String manageProject,\n @Header(\"Authorization\") String authHeader);\n\n}",
"public static String getAccessToken() {\n return \"\";\n }",
"public static /* synthetic */ String m1254a(OAuthTokenProvider oAuthTokenProvider, String str) {\n OAuthToken a = oAuthTokenProvider.mo3469a(str);\n if (a == null) {\n return null;\n }\n oAuthTokenProvider.f1255c.put(str, new n20(a.getAccessToken(), a.getExpiresIn(), System.currentTimeMillis() / 1000));\n oAuthTokenProvider.mo3471a();\n return a.getAccessToken();\n }",
"private boolean validateAccessToken(String clientId, String clientSecret) {\n log.info(\"Client Id:{} Client Secret:{}\", clientId, clientSecret);\n\n // Enable the Below code when the Introspection URL is ready to test\n /**\n * String auth = clientId + clientSecret; RestTemplate restTemplate = new RestTemplate();\n * HttpHeaders headers = new HttpHeaders(); headers.add(\"Content-Type\",\n * MediaType.APPLICATION_JSON_VALUE); headers.add(\"Authorization\", \"Basic \" +\n * Base64.getEncoder().encodeToString(auth.getBytes())); HttpEntity<String> request = new\n * HttpEntity<String>(headers);\n *\n * <p>log.info(\"Sending Token Intropsection request to Endpoint::::: {}\",\n * tokenIntrospectionURL); ResponseEntity<String> response =\n * restTemplate.exchange(tokenIntrospectionURL, HttpMethod.POST, request, String.class); *\n */\n return true;\n }",
"public void testCheckTokenEndPointIsDisabled() throws Exception {\n // perform POST to /oauth/check_token endpoint with authentication\n this.mockMvc\n .perform(MockMvcRequestBuilders.post(\"/oauth/check_token\").param(\"token\", \"some random value\")\n .principal(new UsernamePasswordAuthenticationToken(testClientId, \"\",\n Arrays.asList(new SimpleGrantedAuthority(\"ROLE_USER\")))))\n // we expect a 403 not authorized\n .andExpect(MockMvcResultMatchers.status().is(403));\n }",
"public void requestToken(View pView){\n mAttestation.fetchApproovToken();\n }",
"void setOAuthAccessToken(AccessToken accessToken);"
] | [
"0.67561555",
"0.65812564",
"0.6562313",
"0.6547364",
"0.6472313",
"0.63891286",
"0.638802",
"0.63158315",
"0.6290098",
"0.6258947",
"0.6251299",
"0.6211915",
"0.61293334",
"0.60760766",
"0.6045625",
"0.59960145",
"0.5978167",
"0.5966795",
"0.5885605",
"0.58793324",
"0.5857896",
"0.5834405",
"0.58219373",
"0.5791541",
"0.57902074",
"0.5774462",
"0.5755345",
"0.5746814",
"0.57264304",
"0.5724463",
"0.5723886",
"0.5723072",
"0.5720382",
"0.5718182",
"0.57058626",
"0.5704536",
"0.5699678",
"0.56837165",
"0.56829214",
"0.5654987",
"0.5654814",
"0.56528217",
"0.5647514",
"0.5646087",
"0.5639491",
"0.5608754",
"0.5607894",
"0.5606801",
"0.5603754",
"0.5585771",
"0.558104",
"0.55781883",
"0.5571603",
"0.55670834",
"0.5561857",
"0.5558783",
"0.5558348",
"0.555816",
"0.5554765",
"0.5539075",
"0.5535629",
"0.5534042",
"0.5525802",
"0.5525802",
"0.5516898",
"0.55164057",
"0.5500535",
"0.5495409",
"0.54911125",
"0.54867977",
"0.5483865",
"0.54736704",
"0.5467826",
"0.5462365",
"0.5454305",
"0.5436589",
"0.5436418",
"0.5436169",
"0.54352957",
"0.54320484",
"0.54290265",
"0.5419232",
"0.5418617",
"0.54156786",
"0.5415619",
"0.5406565",
"0.5396468",
"0.53823423",
"0.5371537",
"0.5358369",
"0.53569865",
"0.53500617",
"0.53428376",
"0.5339653",
"0.5337671",
"0.53291136",
"0.53273875",
"0.5320842",
"0.53151083",
"0.53115356"
] | 0.66243774 | 1 |
Return the unique identifier of this class | public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"public String getUniqueID();",
"public String getUniqueID ( ) { return _uniqueID; }",
"String getUniqueID();",
"public String getClassid() {\n return classid;\n }",
"String getUniqueId();",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"int getClassID();",
"public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }",
"public int getClassId() {\r\n return classId;\r\n }",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"private UniqueIdentifier(){\n\t\t\n\t}",
"public String uniqueId() {\n return this.uniqueId;\n }",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }",
"public Integer getClassId() {\r\n return classId;\r\n }",
"public Integer getClassId() {\n return classId;\n }",
"public String getUniqueId() {\n return _uniqueId;\n }",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"public Integer getClassid() {\n return classid;\n }",
"public int getClassId() {\n\t\treturn this.classId;\n\t}",
"public static String uniqueId() {\r\n return UUID.randomUUID().toString();\r\n }",
"public Integer getClassid() {\r\n return classid;\r\n }",
"public int numericName()\n {\n return Factory.getID(this);\n }",
"public Long getClassId() {\n return this.ClassId;\n }",
"public static String uniqueId() {\n return UUID.randomUUID().toString();\n }",
"String getInstanceID();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"public String getInstanceIdentifier();",
"UUID getUniqueId();",
"public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}",
"public static String id()\n {\n return _id;\n }",
"UUID id();",
"public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }",
"public int getUniqueID() { \n return -1;\n }",
"Identifier getId();",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"String uniqueId();",
"long getInstanceID();",
"public String getId(){\n\t\treturn uuid;\n\t}",
"public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}",
"public String getIdentifier();",
"public String getIdentifier();",
"public long getClassNameId() {\n return classNameId;\n }",
"public int getUID() {\n return 0;\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();"
] | [
"0.8099061",
"0.7793248",
"0.7745005",
"0.773952",
"0.76971465",
"0.76135826",
"0.75959677",
"0.75864595",
"0.754388",
"0.75299907",
"0.75275266",
"0.7500354",
"0.7487855",
"0.74852705",
"0.74435693",
"0.7425048",
"0.74089086",
"0.74007654",
"0.73874485",
"0.7354514",
"0.73528504",
"0.7340511",
"0.7338164",
"0.73118955",
"0.73104423",
"0.72716933",
"0.72658145",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72586036",
"0.72508395",
"0.72500837",
"0.72083086",
"0.71785855",
"0.71684575",
"0.71609515",
"0.7160401",
"0.71590537",
"0.7156529",
"0.7150428",
"0.7130385",
"0.71290153",
"0.7120187",
"0.7057421",
"0.7057421",
"0.7045934",
"0.70416576",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535",
"0.70316535"
] | 0.0 | -1 |
Set the unique identifier of this class | public void setId(Integer id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setID() {\n\t\tthis.ID = UUID.randomUUID().toString();\n\t}",
"public void setUniqueID(String uniqueID)\r\n {\r\n m_uniqueID = uniqueID;\r\n }",
"@Override\n\tpublic void setUniqueId(int id) {}",
"public void setUniqueId(final String uniqueId) {\n _uniqueId = uniqueId;\n }",
"public void setId(String uid){\n this.uid = uid;\n }",
"public String getUniqueID ( ) { return _uniqueID; }",
"private UniqueIdentifier(){\n\t\t\n\t}",
"void setIdNumber(String idNumber);",
"@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}",
"public void setId(Uuid uuid) {\n\t\t this.id = uuid;;\n\t}",
"public void setID() throws IOException;",
"protected void setUniqueID(int newUniqueID) {\n\t\tuniqueID = newUniqueID;\n\t}",
"public void generateID()\n {\n ID = this.hashCode();\n }",
"public String getUniqueID();",
"public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }",
"@Override\n\tpublic void setId(Integer arg0) {\n\n\t}",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"String getUniqueID();",
"public void setId(String anId) {\n _theId = anId;\n }",
"@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}",
"public void setId(String i) {\n\t\tid = i;\n\t}",
"private void setId() {\n id = count++;\n }",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"void setId(String id);",
"void setId(String id);",
"void setId(String id);",
"void setId(int val);",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"private Uniqueid() {\n\n }",
"public void setID(long id);",
"@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}",
"public void setID(Number numID);",
"public void setId(String id) {\n }",
"public void setId (String id);",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"void setId(java.lang.String id);",
"public String getUniqueId() {\n return _uniqueId;\n }",
"public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }",
"@PrePersist\n public void assignUUID() {\n this.uid = UUID.randomUUID();\n }",
"public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }",
"public void setId (String id)\n {\n _id = id;\n }",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"@Override\n public void setId(final long id) {\n super.setId(id);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setIdentifier( String pIdentifier )\n {\n identifier = pIdentifier;\n }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"void setID(java.lang.String id);",
"public void setId(String id);",
"public void setId(String id);",
"@Override\n public void setElementId(String arg0)\n {\n \n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}",
"void setNilID();",
"public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }",
"public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"public void setID(String newID)\r\n {\r\n id=newID;\r\n }",
"public void setId(byte id){this.id = id;}",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setIdentifier(java.lang.String identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }",
"public void setClassId(int value) {\r\n this.classId = value;\r\n }",
"@Override\n\tpublic native final String createUniqueId() /*-{\n // In order to force uid's to be document-unique across multiple modules,\n // we hang a counter from the document.\n if (!this.gwt_uid) {\n this.gwt_uid = 1;\n }\n\n return \"gwt-uid-\" + this.gwt_uid++;\n\t}-*/;",
"public void setId(Long pid) {\n this.pid = pid;\n }",
"protected void setID(int i){\r\n\t\tthis.ID = i;\r\n\t}",
"public void setId(String newValue);",
"public void setId(long id) {\n id_ = id;\n }",
"private void setId(Integer id) { this.id = id; }",
"public native void setIdentifier (String identifier);",
"public void setID(String idIn) {this.id = idIn;}",
"private void AutoID() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"void setId(final String id);",
"@Override\r\n\tpublic void setID(String id) {\n\t\tsuper.id=id;\r\n\t}",
"public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }",
"public void setId(byte value) {\r\n this.id = value;\r\n }",
"@Override\n\t/**\n\t * sets the class ID for the created class, the class ID is the\n\t * primary method for identifying a class's name and all of its methods,\n\t * variables, and comments \n\t * \n\t * @param s \n\t */\n\tpublic void setClassID(int s) {\n\t\tID = s;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"public void setID(java.lang.String ID) { throw new RuntimeException(\"Stub!\"); }",
"public void setId(int i) { id = i; }",
"public void setUID(int value) {\n this.uid = value;\n }",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public abstract void setId(int id);",
"String getUniqueId();",
"void setId(ID id);",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"@JsProperty(name = \"id\")\n public native void setId(String value);",
"public String uniqueId() {\n return this.uniqueId;\n }",
"public String getId(){\n\t\treturn uuid;\n\t}"
] | [
"0.7281828",
"0.7188852",
"0.70595604",
"0.7058688",
"0.69680285",
"0.6883223",
"0.6781155",
"0.67765903",
"0.67603344",
"0.6737482",
"0.6681386",
"0.66533566",
"0.6612935",
"0.66081303",
"0.66040903",
"0.6576922",
"0.657261",
"0.65361136",
"0.653008",
"0.6522364",
"0.65065205",
"0.6502064",
"0.6482504",
"0.6476793",
"0.64671975",
"0.64671975",
"0.64671975",
"0.6460642",
"0.6444427",
"0.64442486",
"0.64442486",
"0.64442486",
"0.6437511",
"0.6420693",
"0.64165735",
"0.6401215",
"0.63754857",
"0.6374878",
"0.63656694",
"0.6361684",
"0.6361684",
"0.63512313",
"0.63502073",
"0.6349321",
"0.6349031",
"0.6324927",
"0.63220745",
"0.6321507",
"0.6315967",
"0.63076204",
"0.63067985",
"0.63067985",
"0.63067985",
"0.63024783",
"0.6294556",
"0.6293237",
"0.62886536",
"0.62886536",
"0.6287711",
"0.62867725",
"0.62856513",
"0.628313",
"0.6282294",
"0.6282294",
"0.6281706",
"0.6278545",
"0.62769866",
"0.62748367",
"0.62739956",
"0.6271003",
"0.6253542",
"0.62521213",
"0.62500745",
"0.62499684",
"0.62454253",
"0.6243884",
"0.6243208",
"0.6241344",
"0.6236422",
"0.6235209",
"0.6231879",
"0.6231015",
"0.6228298",
"0.6226541",
"0.6223203",
"0.62209547",
"0.6217635",
"0.6205935",
"0.61963457",
"0.6195149",
"0.6195149",
"0.6195149",
"0.6195149",
"0.6193496",
"0.6186573",
"0.61819446",
"0.61742383",
"0.61742383",
"0.61723727",
"0.6163484",
"0.6162251"
] | 0.0 | -1 |
Return the value associated with the column: id_checklist | public Checklist_Base getIdChecklist() {
return idChecklist;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<String> getValue() {\n\n\t\tArrayList<String> value = new ArrayList<String>();\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb.getValue()) {value.add(id);}\n\t\t}\n\t\treturn value;\n\t}",
"ChronicCheck selectByPrimaryKey(Integer chroniccheckId);",
"String getValueId();",
"@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton rb=(RadioButton)findViewById(checkedId);\n if(rb.isChecked()){\n for (WorkFlowItem s : listitem) {\n if(rb.getText().equals(s.getTextString())){\n String\tstr=s.getTextString();\n Info_DoFlow_xj.listact.setValueid(s.getValueString());\n Info_DoFlow_xj.listact.setTextsid(s.getTextString());\n\n // Toast.makeText(Info_DoFlow_xj.this, \"选取的值:\"+valueid, Toast.LENGTH_LONG).show();\n\n }\n }\n\n }\n }",
"@Override\n\tpublic int idCheck(String id) {\n\t\treturn sqlSession.selectOne(NS+\".idCheck\", id);\n\t}",
"@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}",
"public Object getCheckedValue();",
"public String getIdRowDelete(boolean checkToDoList, boolean checkToDoCompleteList, List<WebElement> eleToDoCheckBoxList,\n List<WebElement> eleToDoCompleteCheckBoxList, List<WebElement> eleToDoList, List<WebElement> eleToDoCompleteList) {\n String idRow = \"\";\n // Check have row has complete satatus\n if (!checkToDoList && \"\".equals(idRow)) {\n waitForVisibleElement(eleToDoCheckBoxList.get(0), \"Select check box of ToDo item has not status complete\");\n if (!eleToDoCheckBoxList.get(0).isSelected()) {\n hoverElement(eleToDoCheckBoxList.get(0), \"Hover on check box of ToDo has status not complete\");\n clickElement(eleToDoCheckBoxList.get(0), \"Click on check box of ToDo has status not complete\");\n }\n idRow = eleToDoList.get(0).getAttribute(\"data-id\");\n } else if (!checkToDoCompleteList && \"\".equals(idRow)) {\n waitForVisibleElement(eleToDoCompleteCheckBoxList.get(0), \"Select check box of ToDo item has status complete\");\n if (!eleToDoCompleteCheckBoxList.get(0).isSelected()) {\n hoverElement(eleToDoCompleteCheckBoxList.get(0), \"Hover on check box of ToDo has status complete\");\n clickElement(eleToDoCompleteCheckBoxList.get(0), \"Click on check box of ToDo has status complete\");\n }\n idRow = eleToDoCompleteList.get(0).getAttribute(\"data-id\");\n }\n return idRow;\n }",
"CheckboxInfo getCheckboxInfo(int row);",
"String getID(String pid) {\n try {\n Cursor cursor = selectTable(makeMax(TableColumn.ChecklistTable.CID), makeCondition(TableColumn.ChecklistTable.PID, pid));\n cursor.moveToFirst();\n String id = cursor.getString(0);\n cursor.close();\n return id;\n } catch (SQLiteException sql_ex) {\n Log.e(\"SQL\", sql_ex.toString());\n } catch (CursorIndexOutOfBoundsException cur_ex) {\n Log.e(\"SQL\", cur_ex.toString());\n }\n return null;\n }",
"public java.lang.String getValue_id() {\n return value_id;\n }",
"@Nullable\n Object getValueOfColumn(ModelColumnInfo<Item> column);",
"public void setIdChecklist(Checklist_Base idChecklist) {\r\n\t\tthis.idChecklist = idChecklist;\r\n\t}",
"public int getValue()\n { \n return table.get(getSelectedItem());\n }",
"public long getDossierStatusId();",
"@Override\n\tpublic MemberVO idCheck(String userid) {\n\t\treturn sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.idCheck\", userid);\n\t}",
"public Long getQuestionId();",
"public java.lang.Integer getCare_id();",
"public BigDecimal getLstId() {\n return lstId;\n }",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public long getStatusId();",
"public ContentValues get(long id) {\n SQLiteDatabase db = _openHelper.getReadableDatabase();\n if (db == null) {\n return null;\n }\n ContentValues row = new ContentValues();\n Cursor cur = db.rawQuery(\"select name, priority from Exams where _id = ?\", new String[] { String.valueOf(id) });\n if (cur.moveToNext()) {\n row.put(\"name\", cur.getString(0));\n row.put(\"discipline\", cur.getString(1));\n row.put(\"grade\", cur.getInt(2));\n }\n cur.close();\n db.close();\n return row;\n }",
"@Override\n\tpublic Checkingin selectByPrimaryKey(Long id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic CheckBean getSpecificCheck(long checkId) {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"public String getId(){ return id.get(); }",
"public int getM_Splitting_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Splitting_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public int getExamId();",
"TycCompanyCheckCrawler selectByPrimaryKey(Integer id);",
"LitemallUserFormid selectByPrimaryKey(Integer id);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n sparseBooleanArray = listview.getCheckedItemPositions();\n\n ValueHolder = \"\" ;\n\n int i = 0 ;\n\n while (i < sparseBooleanArray.size()) {\n\n if (sparseBooleanArray.valueAt(i)) {\n\n ValueHolder += goodlist [ sparseBooleanArray.keyAt(i) ] + \",\";\n }\n\n i++ ;\n }\n\n ValueHolder = ValueHolder.replaceAll(\"(,)*$\", \"\");\n\n Toast.makeText(listforcar.this, \"ListView Selected Values = \" + ValueHolder, Toast.LENGTH_LONG).show();\n\n }",
"public Cursor getchecklisttaskcmp(String checknum)\n {\n \ttry\n \t{\n \t\tString sql=\"SELECT * FROM checklisttask where checknum='\"+checknum+\"' and (unna='true' or und='true' or une='true')\";\n \t\t\n \t\tCursor mCur=mDb.rawQuery(sql, null);\n \t\tif(mCur!=null)\n \t\t{\n \t\t\tmCur.moveToNext();\n \t\t}\n \t\treturn mCur;\n \t}\n \tcatch(SQLException mSQLException)\n \t{\n \t\tLog.e(TAG, \"getTestData >>\"+ mSQLException.toString());\n \t\tthrow mSQLException;\n \t}\n }",
"Notifiction selectByPrimaryKey(Long id);",
"int getListSnId(int index);",
"@Override\r\n\tpublic Object getValueAt(int row, int col) {\n\t\tCheck tempCheck = checks.get(row);\r\n\t\t\r\n\t\tswitch(col) {\r\n\t\t\tcase CHECK_NUMBER_COL:\r\n\t\t\t\treturn tempCheck.getCheckNum();\r\n\t\t\tcase DATE_OF_CHECK_COL:\r\n\t\t\t\treturn tempCheck.getDateOfCheck();\r\n\t\t\tcase ROUTING_NUMBER_COL:\r\n\t\t\t\treturn tempCheck.getRoutingNum();\r\n\t\t\tcase HEALTH_INSURANCE_PROVIDER_COL:\r\n\t\t\t\treturn tempCheck.getHealthInsProv();\r\n\t\t\tcase CHECK_TOTAL_COL:\r\n\t\t\t\treturn tempCheck.getCheckTotal();\r\n\t\t\tcase REMAINDER_COL:\r\n\t\t\t\treturn tempCheck.getCheckRemain();\r\n\t\t\tcase OBJECT_COL:\r\n\t\t\t\treturn tempCheck;\r\n\t\t\tdefault:\r\n\t\t\t\treturn tempCheck.getCheckNum();\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public Integer getValueId() {\n return valueId;\n }",
"@Override\r\npublic int selectByPrimaryKey(Integer possalesdetailid) {\n\t\r\n\tPossalesdetail p= possalesdetail.selectByPrimaryKey(possalesdetailid);\r\n if(p.getPossalesdetailid()>0){\r\n \t\r\n \treturn 1;\r\n } else{\r\n\t return 0;\r\n }\r\n}",
"io.dstore.values.IntegerValue getForumId();",
"MenuInfo selectByPrimaryKey(Integer menuid);",
"@Override\n\tpublic IdValue getItem(int position) {\n\t\treturn idValues.get(position);\n\t}",
"public String getIdForRow(int row);",
"public Object get_KeyValue(){return\t\t\t Id;}",
"NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);",
"public boolean listIdCheck(int vorgangId) {\n this.checkField = false;\n for(int i=0; i<sortierteVorgaenge.size(); ++i) {\n if(vorgangId == sortierteVorgaenge.get(i).getVorgangId()) {\n this.checkField = true;\n }\n } \n return checkField;\n }",
"public long getVocubalaryId();",
"WizardValuationHistoryEntity selectByPrimaryKey(Integer id);",
"public Integer getValueId() {\n return this.valueId;\n }",
"public int getLBR_NotaFiscal_ID();",
"public int updateCheck(int PID, Boolean check) {\n ContentValues cv = new ContentValues();\n cv.put(DBHelper.SHOPPINGLIST_CHECKMARK, check);\n\n String wheresql = DBHelper.SHOPPINGLIST_PID + \"=?\";\n String[] args = new String[]{String.valueOf(PID)};\n\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n int updates = db.update(DBHelper.TABLE_SHOPPINGLIST, cv, wheresql, args);\n db.close();\n\n return updates;\n }",
"public int getId() {\n return decision.getConsensusId();\n }",
"int getPokedexIdValue();",
"int getPokedexIdValue();",
"public Integer getId() {\n\t\treturn wishlistItemId;\n\t}",
"public int getListId()\n {\n return listId;\n }",
"TrackerListStatus getTrackerListStatus(final Integer id);",
"DrpCommissionRule selectByPrimaryKey(Long id);",
"ClinicalData selectByPrimaryKey(Long id);",
"public ArrayList<String> readAllWishlistID() {\n db = helper.getReadableDatabase();\n ArrayList<String> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_WISHLIST, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n list.add(id);\n }\n return list;\n }",
"String getOrderStatusId();",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public List<String> finddetails(long id ) {\n id=id-1;\n Log.d(SimpleTodoActivity.APP_TAG, \"findspecific triggered with ID----->\"+id);\n List<String> tasks = new ArrayList<String>();\n\n try{\n String query = \"SELECT * FROM \"+TABLE_NAME+\" WHERE id=\" + id +\";\";\n\n Cursor c = storage.rawQuery(query, null);\n if (c.moveToFirst()){\n do{\n String title = c.getString(c.getColumnIndex(KEY_TITLE));\n String description = c.getString(c.getColumnIndex(KEY_DESCRIPTION));\n String priority=c.getString(c.getColumnIndex(KEY_PRIORITY));\n String task_date=c.getString(c.getColumnIndex(KEY_TASKDATE));\n String task_group=c.getString(c.getColumnIndex(KEY_GROUP_NAME));\n tasks.add(title);\n tasks.add(description);\n tasks.add(priority);\n tasks.add(task_group);\n tasks.add(task_date);\n }while(c.moveToNext());\n }\n c.close();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n\n return tasks;\n }",
"Question getQuestionInPick(String questionId);",
"public int getM_Warehouse_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Warehouse_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public abstract long getStatusId();",
"public int getHC_EmployeeGrade2_ID();",
"public String getAccountValue(String elementId) {\n String sqlQuery = \"\", elementValue = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.VALUE as value FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n elementValue = rs.getString(\"value\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return elementValue;\n }",
"@RequestMapping(value = \"editUser\", method = RequestMethod.POST)\n public String edituser(@RequestParam(value = \"checkedId\", required = false) long checkedId, ModelMap model) {\n model.addAttribute(\"id\", checkedId);\n model.addAttribute(\"user\", userService.findById((int) checkedId));\n return \"Admin/edituser\";\n }",
"public List<String> getListCourseId();",
"IymDefAssignment selectByPrimaryKey(Integer id);",
"io.dstore.values.IntegerValue getValueLanguageId();",
"@Nullable\n public byte[] getValue(MDSKey id) {\n Row row = table.get(id.getKey());\n return row.isEmpty() ? null : row.get(COLUMN);\n }",
"QuestionOne selectByPrimaryKey(Integer id);",
"T getValueForSpinner(@IdRes int spinnerId);",
"public String getStatusId(Object object);",
"private boolean checkSingleCheckBox (int checkBoxId) {\n CheckBox checkbox = (CheckBox) findViewById(checkBoxId);\n return checkbox.isChecked();\n }",
"public Cursor getallchecklistrequired(String subjectid)\n {\n \ttry\n \t{\n \t\tString sql=\"SELECT subjectchecklist.id FROM subjectchecklist join checklist on subjectchecklist.checknum=checklist.checknum where subjectId='\"+subjectid+\"' and critical='C' GROUP BY subjectchecklist.id\";\n \t\t\n \t\tCursor mCur=mDb.rawQuery(sql, null);\n \t\tif(mCur!=null)\n \t\t{\n \t\t\tmCur.moveToNext();\n \t\t}\n \t\treturn mCur;\n \t}\n \tcatch(SQLException mSQLException)\n \t{\n \t\tLog.e(TAG, \"getTestData >>\"+ mSQLException.toString());\n \t\tthrow mSQLException;\n \t}\n }",
"public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}",
"public IntColumn getDatasetListId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"dataset_list_id\", IntColumn::new) :\n getBinaryColumn(\"dataset_list_id\"));\n }",
"public interface ChecklistItemDAOQuery {\n public final static String UUID = \"select REPLACE(UUID(),'-','')\";\n public final static String CREATE_ITEM = \"insert into checklist_items (id, taskid, title) \"+\n \"values (unhex(?), unhex(?), ?)\";\n public final static String CHECK_ITEM = \"update checklist_items set checked=TRUE WHERE id=unhex(?)\";\n public final static String GET_ITEM_BY_ID = \"select hex(i.id) as id, hex(i.taskid) as taskid, i.user_checked as user_checked, i.title, i.checked from checklist_items i where i.id=unhex(?)\";\n public final static String GET_ITEMS_FROM_TASK = \"select hex(i.id) as id, hex(i.taskid) as taskid, i.user_checked as user_checked, i.title, i.checked from checklist_items i where i.taskid=unhex(?)\";\n}",
"Trueorfalse selectByPrimaryKey(Integer tfId);",
"Mallscroerule selectByPrimaryKey(Long id);",
"public int getIdCadastroSelecionado(int listPosition, String condition){\n \tif (listPosition == -1){\r\n \t\treturn 0;\r\n \r\n \t}else{\r\n \treturn Integer.parseInt(Controlador.getInstancia().getCadastroDataManipulator().selectIdImoveis(condition).get(listPosition));\r\n \t}\r\n }",
"TResearchTeach selectByPrimaryKey(Long researchid);",
"io.dstore.values.IntegerValue getCampaignId();",
"io.dstore.values.IntegerValue getCampaignId();",
"public Vector<Integer> getCheckList(){\n\t\treturn this._eventCheckList;\n\t}",
"public Cursor getallchecklistindex(String stageid)\n {\n \ttry\n \t{\n \t\tString sql=\"select checklist.Id,checklist.checknum,checklist.name,checklist.rpl from checklistindex inner join checklist on checklistindex.checknum=checklist.checknum where checklistindex.stageid='\"+stageid+\"' GROUP BY checklistindex.checknum\";\n \t\t\n \t\tCursor mCur=mDb.rawQuery(sql, null);\n \t\tif(mCur!=null)\n \t\t{\n \t\t\tmCur.moveToNext();\n \t\t}\n \t\treturn mCur;\n \t}\n \tcatch(SQLException mSQLException)\n \t{\n \t\tLog.e(TAG, \"getTestData >>\"+ mSQLException.toString());\n \t\tthrow mSQLException;\n \t}\n }",
"public List<String> listSelectedSamithiById(Long id);",
"public List<?> queryCheckData(String branchId, MultiQueryCheck multiquerycheck,Pagination pagination){\n\t\t\n\t\tString sql = \"select c.check_id checkid,c.branch_id branchid, c.room_id roomid, c.room_type roomtype,c.rp_id rpid, c.room_price roomprice,\" +\n\t\t\t\t\t \" c.check_user checkuser,transtitles(c.check_user, 'tb_c_member', 'member_id', 'member_name') checkusername,\" +\n\t\t\t\t\t \" substr(c.check_user, 0,decode(instr(c.check_user, ',') - 1, '-1', length(c.check_user), instr(c.check_user, ',') - 1)) firstcheckuser,\" +\n\t\t\t\t\t \"transtitles(substr(c.check_user,0,decode(instr(c.check_user, ',') - 1, '-1',length(c.check_user), instr(c.check_user, ',') - 1)), 'tb_c_member', 'member_id','member_name') firstcheckusername,\" +\n\t\t\t\t\t \" transtitles(substr(c.check_user,0, decode(instr(c.check_user, ',') - 1, '-1',length(c.check_user),instr(c.check_user, ',') - 1)),'tb_c_member','member_id','mobile') firstcheckuserphone, to_char(c.checkin_time, 'YYYY/MM/DD HH24:MI') checkintime,\" +\n\t\t\t\t\t \" to_char(c.checkout_time, 'YYYY/MM/DD HH24:MI') checkouttime, c.deposit deposit, c.ttv ttv, c.cost cost,c.pay pay,c.account_fee accountfee,\" +\n\t\t\t\t\t \" c.total_fee totalfee, c.pay_type paytype,c.pay_info payinfo,c.payer payer,c.switch_id switchid,\" +\n\t\t\t\t\t \" c.status status, decode(c.status, 1,'在住', 2, '离店', '已退未结') statusname, c.record_time recordtime,\" +\n\t\t\t\t\t \" c.record_user recorduser, c.remark remark, r.room_name roomname,o.order_user orderuser,\" +\n\t\t\t\t\t \"transtitles(o.order_user, 'tb_c_member', 'member_id', 'member_name') orderusername,\" +\n\t\t\t\t\t \"(select t2.rank_name from tb_c_member t1,tp_c_memberrank t2 where t1.member_rank=t2.member_rank and t1.member_id=o.order_user) rankname,o.m_phone mphone,\" +\n\t\t\t\t\t \" o.source source,decode(o.source, '1','app', '2','网站', '3','分店', '4','wap', '5','合作渠道','其他') decodesource, o.guarantee guarantee,decode(o.guarantee,'1','无','2','担保') decodeguarantee, o.limited limited from tb_p_check c, tp_p_roomtype r, tb_p_order o\" +\n\t\t\t\t\t \" where c.room_type = r.room_type(+) and c.check_id = o.order_id {and c.status like '%' || ? || '%'}\" +\n\t\t\t\t\t \" {and c.branch_id like '%' || ? || '%'}\" +\n\t\t\t\t\t \" {and c.check_id like '%' || ? || '%'}\" +\n\t\t\t\t\t \" {and c.room_id like '%' || ? || '%'} \" +\n\t\t\t\t\t \" {and r.room_name like '%' || ? || '%'} \" +\n\t\t\t\t\t \" {and to_char(c.checkin_time, 'yyyy/MM/dd') like '%' || ? || '%'}\" +\n\t\t\t\t\t \" {and to_char(c.checkout_time, 'yyyy/MM/dd') like '%' || ? || '%'}\" +\n\t\t\t\t\t \" {and transtitles(substr(c.check_user,0,decode(instr(c.check_user, ',') - 1, '-1',length(c.check_user), instr(c.check_user, ',') - 1)), 'tb_c_member', 'member_id','member_name') like '%' || ? || '%'} \" +\n\t\t\t\t\t \" {and o.guarantee like '%' || ? || '%'} \" +\n\t\t\t\t\t \" {and transtitles(o.order_user, 'tb_c_member', 'member_id', 'member_name') like '%' || ? || '%'} \" +\n\t\t\t\t\t \" {and o.m_phone like '%' || ? || '%'} \" +\n\t\t\t\t\t \" {and o.record_time >= to_date(?, 'yyyy/MM/dd')}\" + \n\t\t\t\t\t \" {and o.record_time <= to_date(?, 'yyyy/MM/dd')}\" +\n\t\t\t\t\t \" {and c.checkin_time >= to_date(?, 'yyyy/MM/dd')}\" + \n\t\t\t\t\t \" {and c.checkin_time <= to_date(?, 'yyyy/MM/dd')}\" +\n\t\t\t\t\t \" {and c.checkout_time >= to_date(?, 'yyyy/MM/dd')}\" + \n\t\t\t\t\t \" {and c.checkout_time <= to_date(?, 'yyyy/MM/dd')}\" + \n\t\t\t\t\t \" order by c.check_id desc\";\n\t\treturn findBySQLWithPagination(sql,new String[]{multiquerycheck.getStatus(),branchId, multiquerycheck.getCheckid(), multiquerycheck.getRoomid(),\n\t\t\t\tmultiquerycheck.getRoomtype(), multiquerycheck.getCheckintime(), multiquerycheck.getCheckouttime(), multiquerycheck.getCheckuser(),multiquerycheck.getGuarantee(),\n\t\t\t\tmultiquerycheck.getOrderuser(), multiquerycheck.getMphone(),multiquerycheck.getOrdertimebegin(),multiquerycheck.getOrdertimeend(),\n\t\t\t\tmultiquerycheck.getArrivaltimebegin(),multiquerycheck.getArrivaltimeend(),multiquerycheck.getLeavetimebegin(),multiquerycheck.getLeavetimeend()},pagination);\n\t}",
"String getSupplierID();",
"int getDoctorId();",
"int getDoctorId();",
"public Cursor getallchecklisttask(String checknum)\n {\n \ttry\n \t{\n \t\tString sql=\"SELECT * FROM checklisttask where checknum='\"+checknum+\"'\";\n \t\tCursor mCur=mDb.rawQuery(sql, null);\n \t\tif(mCur!=null)\n \t\t{\n \t\t\tmCur.moveToNext();\n \t\t}\n \t\treturn mCur;\n \t}\n \tcatch(SQLException mSQLException)\n \t{\n \t\tLog.e(TAG, \"getTestData >>\"+ mSQLException.toString());\n \t\tthrow mSQLException;\n \t}\n }",
"private String getTextID(String key) {\n return fieldID.get(key).getText();\n }",
"public Integer getId() {\n\t\treturn loanId; //changed LoAn_Id to loanId\r\n\t}",
"PensionRoleMenu selectByPrimaryKey(Long id);",
"organize_infoBean selectByPrimaryKey(Integer id);",
"StatusReplies selectByPrimaryKey(Integer id);",
"int getDepartmentID(Vector<Integer> departmentIDs, Vector<String> departmentCodes, String cellValue);",
"int getItemID();",
"private int checkPatientID(List<Patient> list, String value){\n int index = -1;\n for (Patient r : list){\n if(r.getName().compareTo(value) == 0)\n index = r.getPatient_id();\n }\n return index;\n }"
] | [
"0.578712",
"0.57502764",
"0.5727252",
"0.5624909",
"0.5353991",
"0.53455764",
"0.5287698",
"0.5278731",
"0.5198517",
"0.5173206",
"0.5107967",
"0.5097295",
"0.50600386",
"0.5015537",
"0.49981868",
"0.49740398",
"0.49702796",
"0.494245",
"0.4939129",
"0.48967665",
"0.4880277",
"0.48480558",
"0.4847084",
"0.4823212",
"0.48155767",
"0.48027644",
"0.47926593",
"0.47924873",
"0.4789903",
"0.47789344",
"0.47778842",
"0.47761178",
"0.47445357",
"0.474336",
"0.47301367",
"0.47284257",
"0.4723385",
"0.47109777",
"0.46964437",
"0.46852767",
"0.46625653",
"0.46470743",
"0.4635299",
"0.46350625",
"0.46328723",
"0.46323824",
"0.46271715",
"0.4626277",
"0.462403",
"0.46232012",
"0.46232012",
"0.46154374",
"0.4613708",
"0.45983696",
"0.45954636",
"0.45932576",
"0.45931765",
"0.45913464",
"0.45907223",
"0.45900553",
"0.45886964",
"0.45717454",
"0.45692226",
"0.4566309",
"0.45611286",
"0.4554618",
"0.4552054",
"0.45437607",
"0.45353255",
"0.45288104",
"0.45271158",
"0.45264882",
"0.45245317",
"0.45205528",
"0.45163897",
"0.4514379",
"0.45122972",
"0.45088503",
"0.45066264",
"0.45055172",
"0.4504243",
"0.45034698",
"0.45018092",
"0.45018092",
"0.45006788",
"0.44997576",
"0.4494807",
"0.4494685",
"0.44938767",
"0.44910687",
"0.44910687",
"0.44806463",
"0.44798103",
"0.44768685",
"0.4476567",
"0.4473888",
"0.44737282",
"0.44725928",
"0.4468904",
"0.4463348"
] | 0.6059381 | 0 |
Set the value related to the column: id_checklist | public void setIdChecklist(Checklist_Base idChecklist) {
this.idChecklist = idChecklist;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}",
"@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton rb=(RadioButton)findViewById(checkedId);\n if(rb.isChecked()){\n for (WorkFlowItem s : listitem) {\n if(rb.getText().equals(s.getTextString())){\n String\tstr=s.getTextString();\n Info_DoFlow_xj.listact.setValueid(s.getValueString());\n Info_DoFlow_xj.listact.setTextsid(s.getTextString());\n\n // Toast.makeText(Info_DoFlow_xj.this, \"选取的值:\"+valueid, Toast.LENGTH_LONG).show();\n\n }\n }\n\n }\n }",
"public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}",
"public void setValue(ArrayList<String> value) {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb == null) {Window.alert(\"MultilistField setValue null at \" + row);}\n\t\t\tif (value == null) {cb.setValue(false);}\n\t\t\telse {cb.setValue(value.contains(id));}\n\t\t}\n\t\tsuper.setChanged();\n\t}",
"public Checklist_Base getIdChecklist() {\r\n\t\treturn idChecklist;\r\n\t}",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n ref = database.getReference(\"Permisos/\" + permisos.getID() + \"/habilitado\");\n ref.setValue(isChecked);\n }",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"@Override\n public void setField(int id, int value) {\n \n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n\n QueryRow row = (QueryRow) adapterView.getItemAtPosition(position);\n Document document = row.getDocument();\n Map<String, Object> newProperties = new HashMap<String, Object>(document.getProperties());\n\n boolean checked = ((Boolean) newProperties.get(\"check\")).booleanValue();\n newProperties.put(\"check\", !checked);\n\n try {\n document.putProperties(newProperties);\n grocerySyncArrayAdapter.notifyDataSetChanged();\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error updating database, see logs for details\", Toast.LENGTH_LONG).show();\n Log.e(TAG, \"Error updating database\", e);\n }\n\n }",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"public void setIdQuestion(int value) {\n this.idQuestion = value;\n }",
"public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }",
"public void setId1(int value) {\n this.id1 = value;\n }",
"public void setId(Long value) {\r\n this.id = value;\r\n }",
"public void setCheckedValue(Object pValue);",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setLstId(BigDecimal lstId) {\n this.lstId = lstId;\n }",
"@RequestMapping(value = \"editUser\", method = RequestMethod.POST)\n public String edituser(@RequestParam(value = \"checkedId\", required = false) long checkedId, ModelMap model) {\n model.addAttribute(\"id\", checkedId);\n model.addAttribute(\"user\", userService.findById((int) checkedId));\n return \"Admin/edituser\";\n }",
"public int updateCheck(int PID, Boolean check) {\n ContentValues cv = new ContentValues();\n cv.put(DBHelper.SHOPPINGLIST_CHECKMARK, check);\n\n String wheresql = DBHelper.SHOPPINGLIST_PID + \"=?\";\n String[] args = new String[]{String.valueOf(PID)};\n\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n int updates = db.update(DBHelper.TABLE_SHOPPINGLIST, cv, wheresql, args);\n db.close();\n\n return updates;\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public void setId(Long value) {\n this.id = value;\n }",
"public void setToDoId(int index,long newId){\n\t\t//int index = getToDoIndex(oldId);\n\t\tif (index < 0)\n\t\t\tthrow new IllegalArgumentException(\"Index of an ObjectListElement object cannot be a negative number\");\n\t\t\n\t\tObjectListElement e= allToDoLists.get(index);\n\t\te.setId(newId);\n\t}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\t_dmGtStatus.setId(id);\n\t}",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"public void setStatusId(long statusId);",
"public void setCheckListId(int checkListId) {\n this.checkListId = checkListId;\n }",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mCheckBox.setText(courselist.get(position).key());\n holder.mCheckBox.setOnCheckedChangeListener(null);\n holder.mCheckBox.setChecked(courselist.get(position).value());\n holder.mCheckBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {\n courselist.set(position, new MyClassesActivity.MyPair(courselist.get(position).key(), isChecked));\n }\n\n }\n );\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long id) {\n id_ = id;\n }",
"public void setNewsletterId(int v) \n {\n \n if (this.newsletterId != v)\n {\n this.newsletterId = v;\n setModified(true);\n }\n \n \n }",
"void setId(int val);",
"public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }",
"public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}",
"public void setChecked(FriendsListViewHolder holder, int pos) {\n\n\n for (UserModel u : groupDetails) {\n if (u.getUser_id() == FriendsListAdapter.this.friendDetails.get(pos).getUser_id()) {\n friendDetails.setChecked(true);\n itemClickListener.onItemClick(userID);\n }\n }\n }",
"public void setChecked(Integer checked) {\n this.checked = checked;\n }",
"public void setId(Long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"void setId(Long id);",
"public void setId( Long id );",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"void updateNbAlert( List<Integer> listIdUser );",
"public void onClick(DialogInterface dialog, int id) {\n holder.state_imageView.setImageResource(R.drawable.ic_check_mark);\n holder.isdone.setText(\"Complet\");\n holder.isdone.setChecked(true);\n seanceList.get(position).setDone(true);\n }",
"public BaseViewHolder setChecked(@IdRes int viewId, boolean checked) {\n View view = getView(viewId);\n // View unable cast to Checkable\n if (view instanceof Checkable) {\n ((Checkable) view).setChecked(checked);\n }\n return this;\n }",
"public void setId(int value) {\r\n this.id = value;\r\n }",
"public void addToIdValidationList(String id)\n { \n idValidation.put(id,\"\");\n }",
"public void setId(String key, Object value) {\n // remove ID, if empty/0/null\n // if we only skipped it, the existing entry will stay although someone changed it to empty.\n String v = String.valueOf(value);\n if (\"\".equals(v) || \"0\".equals(v) || \"null\".equals(v)) {\n ids.remove(key);\n }\n else {\n ids.put(key, value);\n }\n firePropertyChange(key, null, value);\n\n // fire special events for our well known IDs\n if (Constants.TMDB.equals(key) || Constants.IMDB.equals(key) || Constants.TVDB.equals(key) || Constants.TRAKT.equals(key)) {\n firePropertyChange(key + \"Id\", null, value);\n }\n }",
"@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"private void setSeatChecked(boolean isChecked, final String seatID){\n if(ticketTrans == null) return;\n\n List<SeatInfo> seats = Arrays.asList(ticketTrans.getSeatInfoList());\n\n Predicate<SeatInfo> matchSeatID = new Predicate<SeatInfo>() {\n @Override\n public boolean test(SeatInfo seatInfo) {\n return seatInfo.getSeatId().equals(seatID);\n }\n\n// @Override\n// public boolean apply(SeatInfo seatInfo) {\n// return seatInfo.getSeatId().equals(seatID);\n// }\n };\n\n Collection<SeatInfo> result = Utils.filter(seats, matchSeatID);\n\n if(result.size() == 0) return;\n\n for(SeatInfo seat : result) {\n seat.setChecked(isChecked);\n }\n\n checkedItems.clear();\n for(SeatInfo seat : ticketTrans.getSeatInfoList()) {\n if(seat.isChecked()) {\n checkedItems.add(seat);\n }\n }\n }",
"public void setID(long id);",
"public void setCheckedValue(String value, boolean checked) {\n for (InputCheckbox checkbox : l_campos)\n {\n if (checkbox.getValue().equals(value)) {\n checkbox.setChecked(checked);\n }\n }\n }",
"public void setActive(int id){\r\n\t\tif(_elementList.containsKey(id)){\r\n\t\t\t_elementList.get(id).isHit=false;\r\n\t\t\t_elementList.get(id).isActive=true;\t\t\t\r\n\t//\t\tSystem.out.println(\"active Checkpoint id\"+id);\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error CheckpointPool.setActive(\"+Integer.toHexString(id)+\") there is no such checkpoint\");\r\n\t\t}\r\n\t}",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setC_Subscription_ID (int C_Subscription_ID)\n{\nset_ValueNoCheck (\"C_Subscription_ID\", new Integer(C_Subscription_ID));\n}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ChecklistItem)) {\n return false;\n }\n ChecklistItem other = (ChecklistItem) object;\n if ((this.idChecklistItem == null && other.idChecklistItem != null) || (this.idChecklistItem != null && !this.idChecklistItem.equals(other.idChecklistItem))) {\n return false;\n }\n return true;\n }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"public void setId( Long id ) {\n this.id = id ;\n }",
"public void setID(int id){\n this.id=id;\n }"
] | [
"0.621873",
"0.5856036",
"0.5763242",
"0.56902695",
"0.55951524",
"0.55196184",
"0.5472935",
"0.5439458",
"0.5432707",
"0.54160553",
"0.53731096",
"0.53663546",
"0.53181654",
"0.52896756",
"0.52890897",
"0.5287659",
"0.5283639",
"0.5283639",
"0.5275755",
"0.52639",
"0.52426505",
"0.5235576",
"0.52301794",
"0.5223513",
"0.51911324",
"0.51903325",
"0.51903325",
"0.51732385",
"0.5170511",
"0.5168739",
"0.5168739",
"0.51592755",
"0.5156004",
"0.5152789",
"0.5135955",
"0.513053",
"0.5130439",
"0.5130439",
"0.5130439",
"0.5130439",
"0.5130439",
"0.5130439",
"0.5130439",
"0.511354",
"0.511354",
"0.511354",
"0.511354",
"0.511354",
"0.511354",
"0.511354",
"0.51116234",
"0.5084437",
"0.5081135",
"0.50455004",
"0.5027751",
"0.5025579",
"0.5021418",
"0.50153726",
"0.50060576",
"0.50060576",
"0.500601",
"0.50032324",
"0.49946198",
"0.49937522",
"0.49902233",
"0.49902233",
"0.4990099",
"0.49882978",
"0.49867314",
"0.49835113",
"0.49805778",
"0.49754453",
"0.4974148",
"0.49703583",
"0.49512327",
"0.49498448",
"0.49418283",
"0.49414742",
"0.49378026",
"0.4930787",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49106997",
"0.49088934",
"0.49088934",
"0.49088934",
"0.49088934",
"0.49068582",
"0.49050975",
"0.48905143",
"0.48905143",
"0.48889396",
"0.48873937",
"0.48857495"
] | 0.70767874 | 0 |
Return the value associated with the column: id_jour_ferie | public Jour_Ferie getIdJourFerie() {
return idJourFerie;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }",
"@Override\r\n\tpublic Famille getFamille(Long idFamilleComp) {\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\tObject C=session.get(Famille.class, idFamilleComp);\r\n \t\tif(C==null) throw new RuntimeException(\"FamilleComp non crées\");\r\n \t\tsession.getTransaction().commit();\r\n \t\treturn (Famille)C;\r\n \r\n\t}",
"public int getIdfilial(){\r\n return idfilial;\r\n }",
"public int ObtenerMaximaIdDetalle() {// METODO OBTENER MAXIMA ID\n\n conexionBD.getConnection();\n\n try {\n String SQL = \"SELECT * FROM facturadetalle\";\n Statement stmt = conexionBD.con.createStatement();\n ResultSet rs = stmt.executeQuery(SQL);\n idFacturaDetalle = 0;\n\n while (rs.next()) {\n idFacturaDetalle = rs.getInt(\"idFacturaDetalle\");\n }\n\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return idFacturaDetalle;\n }",
"private static int selectDernierIdUtilisateur() {\n SQLiteDatabase db = MoteurBD.getMoteurBD().getDb();\n //TODO devrais getter sur les interwebs\n Cursor c = db.rawQuery(\"select id from utilisateur order by id desc limit 1;\", null);\n try {\n return c.moveToFirst() ? c.getInt(0) : 1;\n }\n finally {\n c.close();\n }\n }",
"public int obtenerValor(int fila, int columna){\n return tablero[fila][columna];\n }",
"String getValueId();",
"public Integer getIdLocacion();",
"public int getFuerza(){\n\n return this.fuerza;\n\n }",
"public int dameFila() {\n return this.fila;\n }",
"public String getidUsuario(){\n return preferencias.getString(CHAVE_ID, null);\n }",
"public int getTipoEleicao(int idEleicao){\n return this.eleicaoDB.getTipoEleicao(idEleicao);\n }",
"public static Fonction getFonction (int noFonc) {\n try {\n Connection con = ConnexionBase.get();\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT NoFonc, NomFonc FROM Fonction WHERE NoFonc = \" + noFonc);\n rs.next();\n Fonction f = new Fonction(rs.getInt(\"NoFonc\"), rs.getString(\"NomFonc\"));\n stmt.close();\n return f;\n }\n catch (SQLException e) {System.out.println(\"FonctionDao.getFonction(): \" + e.getMessage()); e.printStackTrace(); return null;}\n }",
"public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }",
"public String getDenumireCaroserie(int id) {\n c = db.rawQuery(\"select denumire from caroserii where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public int getFilial();",
"public int obtenerFila() {\n\t\treturn fila;\n\t}",
"public int getFila(){\n\t\treturn fila;\n\t}",
"public Fichier getIdFichier() throws SQLException {\n\t\tString query = SQLQueries.GET_ID_FICHIER_LAST_QUERY ;\n\t\tResultSet rs = null;\n\t\tFichier fichier = new Fichier();\n\t\ttry {\n\t\t\tconnection = Connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\trs = statement.executeQuery(query);\n\t\t\twhile(rs.next()) {\n\t\t\t\tfichier.setId_fichier(rs.getInt(\"id_fichier\"));\n\t\t\t}\n\t\t} finally {\n\t\t\tif (statement != null)\n\t\t\t\tstatement.close();\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\t\t\tconnection.close();\n\t\t}\n\t\treturn fichier;\n\t}",
"public String resultado(String id){\n try{\n Cursor cursor = database.rawQuery(\"select calificacion from calificacion where _id = ?\",new String[]{id});\n cursor.moveToFirst();\n resultado = cursor.getString(0);\n }catch (Exception e){\n Log.i(\"El error \", e.toString());\n }\n return resultado;\n }",
"public abstract java.lang.Integer getEspe_id();",
"public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }",
"public double getPeluangFK(){\n return fakultas[0];\n }",
"public int getIdDetalle_Ventaf() {\n return idDetalle_Ventaf;\n }",
"public String FindById(int id) throws SQLException{\n\t\t\tString req =\"Select NomGroupe from Groupe where ID_Groupe= ? \";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setInt(1,id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\treturn rs.getString(1);\t\n\t\t\t\n\t\t}",
"public int getIden() {\n return iden;\n }",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"public String getDenumireBuget(String id){\n c = db.rawQuery(\"select denumire from buget where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"@RequestMapping(value = \"/getId:{id}\", method = RequestMethod.GET, produces = \"application/json\")\r\n\tpublic @ResponseBody MouvementFiniValue getMouvementFini(@PathVariable Long id) {\r\n\r\n\t\t\r\n\t\treturn mouvementFiniService.findMouvementFiniParId(id);\r\n\t}",
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"public Uang getUang(int id_uang){\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_NAME, new String[]{COLUMN_ID, COLUMN_PEMASUKAN, COLUMN_PENGELUARAN},\n COLUMN_ID + \"=?\", new String[]{String.valueOf(id_uang)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Uang uang = new Uang(cursor.getString(1), cursor.getString(2));\n return uang;\n }",
"public String getDenumireCombustibil(String id){\n c = db.rawQuery(\"select denumire from combustibil where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public String getDenumireSex(String id) {\n c = db.rawQuery(\"select denumire from sex where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public int getFila() {\r\n\t\treturn fila;\r\n\t}",
"public int getFila() {\r\n\t\treturn fila;\r\n\t}",
"public int getIdCandidatura(){\n return idCandidatura;\n }",
"public static float consultarCalificacion(int id_calificacion){\n\t\tfloat puntos=-1;\n\t\tStatement sentencia;\n\t\ttry {\n\t\t\tsentencia = (Statement) conex.createStatement();\n\t\t\tString cadena = \"SELECT puntos from calificacion where calificacion.id_calificacion=\"+id_calificacion;\n\t\t\tResultSet rs = sentencia.executeQuery(cadena);\n\t\t\twhile(rs.next()){\n\t\t\t\tpuntos=rs.getInt(1);\t\t\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\t\n\t}",
"public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }",
"public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kullaniciTur_id;\n case 1: return kullanici_adi;\n case 2: return kullanici_id;\n case 3: return kullanici_soyadi;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Integer getId_rango();",
"public String getDenumireUtilizare(String id) {\n c = db.rawQuery(\"select denumire from utilizare where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public Fornecedor BuscarPorID(int codigo) throws SQLException {\r\n\t\ttry {\r\n\t\t\tString query = \"select * from fornecedor where cd_fornecedor=?\";\r\n\t\t\tPreparedStatement preparedStatement = this.connection.prepareStatement(query);\r\n\t\t\tpreparedStatement.setInt(1, codigo);\r\n\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\tFornecedor fornecedor = new Fornecedor();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tfornecedor.setCodigoFornecedor(rs.getInt(\"cd_fornecedor\"));\r\n\t\t\t\tfornecedor.setNomeLocal(rs.getString(\"nm_local\"));\r\n\t\t\t\tfornecedor.setValorFornecedor(rs.getDouble(\"vl_fornecedor\"));\r\n\t\t\t\tfornecedor.setQuantidadePeso(rs.getInt(\"qt_peso\"));\r\n\t\t\t\tfornecedor.setNomeFornecedor(rs.getString(\"nm_fornecedor\"));\r\n\t\t\t\tfornecedor.setDescricao(rs.getString(\"ds_descricao\"));\r\n\t\t\t}\r\n\r\n\t\t\treturn fornecedor;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\tthis.connection.close();\r\n\t\t}\r\n\t}",
"public java.lang.Integer getCargo_fijo() {\n return cargo_fijo;\n }",
"public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}",
"public int getFila() {\n\t\treturn fila;\n\t}",
"public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }",
"public int ObtenerMaximaIdCabecera() {\n\n conexionBD.getConnection();\n\n try {\n String SQL = \"SELECT * FROM facturacabecera\";\n Statement stmt = conexionBD.con.createStatement();\n ResultSet rs = stmt.executeQuery(SQL);\n idFacturaCabecera = 0;\n\n while (rs.next()) {\n idFacturaCabecera = rs.getInt(\"idFacturaCabecera\");\n }\n\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return idFacturaCabecera;\n }",
"public Info_laboral findByID(int cod){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n Info_laboral IL = new Info_laboral();\n try{\n CallableStatement cs = c.prepareCall(\"{? = call F_BUSNOMINFO(?)}\");\n cs.registerOutParameter(1, Types.VARCHAR);\n cs.setInt(2, cod);\n cs.execute();\n //IL.setId(cod);\n //IL.setJefe(cs.getString(1));\n System.out.println(cs.getString(1));\n con.CerrarCon();\n return IL;\n }catch(SQLException e){\n System.out.println(\"erorrrr findbyid \"+e);\n con.CerrarCon();\n return null;\n }\n \n }",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"public String getId_ciudad() {\n return id_ciudad;\n }",
"public int getCaroserieId(String denumire) {\n c = db.rawQuery(\"select id from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }",
"@Override\n public Object getValueAt(int f, int c) {\n csFilaTabla obj = this.filas.get(f);\n switch(c){\n case 0: return obj.getSemilla();\n case 1: return obj.getOperacion();\n case 2: return obj.getRandom();\n }\n return null;\n }",
"public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }",
"public long getIdSejour(){\n\t\treturn idSejour;\n\t}",
"public java.lang.String getValue_id() {\n return value_id;\n }",
"public int getId_docente() {\n return id_docente;\n }",
"public String getFicheiro()\r\n {\r\n return ficheiro;\r\n }",
"public java.lang.Long getId_tecnico();",
"public Fichier getFichier(int id) throws SQLException {\n\t\tString query = SQLQueries.GET_FICHIER_QUERY + id;\n\t\tResultSet rs = null;\n\t\tFichier fichier = null;\n\t\ttry {\n\t\t\tconnection = Connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\trs = statement.executeQuery(query);\n\t\t\tif (rs.next()) {\n\t\t\t\tfichier = new Fichier();\n\t\t\t\tfichier.setNom_fichier(rs.getString(\"nom_fichier\"));\n\t\t\t\tfichier.setDate_fichier(rs.getDate(\"date_fichier\"));\n\t\t\t\tfichier.setCommentaire(rs.getString(\"commentaire\"));\n\t\t\t\tfichier.setId_matiere(rs.getInt(\"id_matiere\"));\n\t\t\t\tfichier.setFichier(rs.getBytes(\"fichier\"));\n\t\t\t}\n\t\t} finally {\n\t\t\tif (statement != null)\n\t\t\t\tstatement.close();\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\t\t\tconnection.close();\n\t\t}\n\t\treturn fichier;\n\t}",
"public Etudiant getEtudiant(int id) {\n\t\tSession session = ConnexionBD.getConnexion().getFactory().openSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from Etudiant where idEtudiant= :Id\");\n\t\tquery.setParameter(\"Id\", \"idEtudiant\");\n\t\tEtudiant etu = (Etudiant) query.uniqueResult();\n\t\t\n\t\treturn etu;\n\t}",
"public BigDecimal getIdContrato() {\r\n return idContrato;\r\n }",
"public String getId_Pelanggan(){\r\n \r\n return id_pelanggan;\r\n }",
"public Integer getIdNotaFiscal() {\n return idNotaFiscal;\n }",
"public String getCodiceFiscale() {\n return codiceFiscale;\n }",
"public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}",
"@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }",
"public int getIdfuncionario() {\n return idfuncionario;\n }",
"public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}",
"public int dameColumna() {\n return this.columna;\n }",
"public String consultarEstudioUltimaId(){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n //Consulta El valor t_estudio\n Cursor consultaIdPreguntas = BasesDeDatos.rawQuery(\"SELECT id FROM t_estudios ORDER BY id DESC LIMIT 1\", null);\n\n String idPregunta = \"0\";\n\n if (consultaIdPreguntas.moveToFirst()){\n idPregunta = consultaIdPreguntas.getString(0);\n }\n\n consultaIdPreguntas.close();\n BasesDeDatos.close();\n\n return idPregunta;\n\n }",
"@Override\n\tpublic Fournisseur getFourniseur(int idUser) {\n\t\treturn dao.getFourniseur(idUser);\n\t}",
"public String getGeslacht(){\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT geslacht FROM Spelers WHERE idcode = ?\");\n st.setInt(1, Integer.parseInt(spelerIDField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n String geslacht = rs.getString(\"geslacht\");\n System.out.println(geslacht);\n return geslacht;\n }\n\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database (geslacht)\");\n }\n\n return \"poepieScheetje\";}",
"public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaConsulta2Type getIDFactura() {\r\n return IDFactura;\r\n }",
"public int getValeur() {\r\n return valeur;\r\n }",
"public int getIdNoeud() {\n return idNoeud;\n }",
"public Notifiche get(int id){\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero il cpe\r\n\t\tNotifiche notifica = (Notifiche) session.get(Notifiche.class, id );\r\n\t\t\r\n\t\t//Restituisco il cpe trovato\r\n\t\treturn notifica;\r\n\t}",
"public long getIdViaje() {\n\t\treturn idViaje;\n\t}",
"public Object getValueAt(int row, int column) {\n Preso cli = lista.get(row);\n /*if (column == Id) {\n return cli.getId();\n } else*/ if (column == Nome) {\n return cli.getNome();\n } if (column == Tempo) {\n return cli.getTempo();\n } else\n\n return \"\"; //Nunca deve ocorrer \n }",
"public java.lang.Long getPeti_numero();",
"public java.lang.Long getPeti_numero();",
"public int getId_mensaje() {\n return id_mensaje;\n }",
"public int getMarcaId(String denumire) {\n c = db.rawQuery(\"select id from marci where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }",
"public String obtemValor(String id) {\n return obtemValor(By.id(id));\n }",
"public Long getId() {\r\n return idComentario;\r\n }",
"public int obtenerFilas(){\n return FILAS;\n }",
"public long getIdCargaTienda();",
"double getValue(int id);",
"public abstract java.lang.String getCod_localidad();",
"public abstract java.lang.Long getCod_actividad();",
"@Override\n\tpublic FicheSante getFicheSanteById(int id) {\n\t\treturn daofichesante.getFicheSanteById(id);\n\t}",
"public int getIdExamCcEtudiant(String matricule, int idMatiere){\n int id ;\n Query query = em.createQuery(\"select etuex.idexamen from EtudiantExam etuex,Examen exam, MatiereExam matexam where etuex.matricule := ?1 and matexam.idmatiere := ?2 and matexam.idexamen := exam.idexamen and exam.type := 'CC' and exam.idexamen := etuex.idexamen\");\n id = (int)query.getSingleResult(); \n return id;\n \n }",
"public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }",
"@Override\n public FasciaOrariaBean doRetrieveByKey(int id) throws SQLException {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria WHERE id=?\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setInt(1, id);\n System.out.println(\"DoRetrieveByKey\" + statement);\n ResultSet rs = statement.executeQuery();\n if (rs.next()) {\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n return bean;\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return null;\n }",
"public Object getValueAt(int row, int col) {\n Noeud noeud = noeuds.get(row);\n //voici les cellules pour chaque colonne\n return switch (col) {\n case 0 -> noeud.getNomDuFichier();\n case 1 -> noeud.getMot();\n case 2 -> noeud.getFrequence();\n default -> null;\n };\n }",
"public int getEntidad() {\n return entidad;\n }",
"public long getLichChiTietId();",
"public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }",
"public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }"
] | [
"0.69187945",
"0.63679045",
"0.6296829",
"0.6294333",
"0.6288713",
"0.62492687",
"0.61891246",
"0.6159161",
"0.6152227",
"0.6145086",
"0.61294776",
"0.6127009",
"0.61268634",
"0.6106837",
"0.60990673",
"0.60853285",
"0.6071729",
"0.6057127",
"0.6011766",
"0.59941864",
"0.5984902",
"0.5963832",
"0.59548455",
"0.5954663",
"0.59508455",
"0.5936353",
"0.59284776",
"0.5916764",
"0.5913672",
"0.5908086",
"0.5904816",
"0.5903334",
"0.5891886",
"0.5888843",
"0.5879151",
"0.5879151",
"0.58791065",
"0.5856512",
"0.5842481",
"0.5831097",
"0.58247477",
"0.5819496",
"0.5814664",
"0.5801868",
"0.5796986",
"0.579425",
"0.57938266",
"0.57800704",
"0.5779033",
"0.57786304",
"0.57764405",
"0.5772635",
"0.57700723",
"0.5750555",
"0.57371646",
"0.57219136",
"0.5721167",
"0.57128954",
"0.57111216",
"0.57098126",
"0.5696289",
"0.56957114",
"0.56889904",
"0.56773436",
"0.56654793",
"0.5664548",
"0.56635666",
"0.56633186",
"0.5661155",
"0.5660496",
"0.56559694",
"0.564538",
"0.56298",
"0.5624818",
"0.5622844",
"0.5615206",
"0.56097245",
"0.56078887",
"0.5602468",
"0.5600877",
"0.559352",
"0.559352",
"0.5591136",
"0.5588234",
"0.5570829",
"0.5556277",
"0.5556218",
"0.55528474",
"0.55483747",
"0.5546896",
"0.5545389",
"0.5545385",
"0.5545134",
"0.55422765",
"0.5542217",
"0.55207014",
"0.5517611",
"0.55136585",
"0.5506685",
"0.55031717"
] | 0.61961234 | 6 |
Set the value related to the column: id_jour_ferie | public void setIdJourFerie(Jour_Ferie idJourFerie) {
this.idJourFerie = idJourFerie;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }",
"public void setIdUsuario(int value) {\n this.idUsuario = value;\n }",
"public void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}",
"public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }",
"public void setIdAlumno(int value) {\n this.idAlumno = value;\n }",
"public void setIdUsuario(Integer idUsuario) {\n this.idUsuario = idUsuario;\n }",
"public void setFECHAFORMALIZ(int value) {\n this.fechaformaliz = value;\n }",
"public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }",
"public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }",
"public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }",
"@Override\n\tpublic void setDiretorDoFilme(int idFilme, IPessoa diretor) throws SQLException {\n\t\tIFilme filme = this.buscarFilmePorId(idFilme);\n\t\tif(filme!=null)\n\t\t\tfilme.setDiretor(diretor);\n\t}",
"public void setPedidos(int id, int cantidad) {\n for (int i = 0; i < mesa.length; i++) {\n if (mesa [i][0]==id) {\n mesa[i][1]+=cantidad;\n }\n } \n }",
"@Override\n public void setField(int id, int value) {\n \n }",
"public void setIdade(int idade) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.idade = idade;\r\n\t}",
"public void setIdLocacion(Integer idLocacion);",
"public void setEstadoEleicaoEncerrada(int idEleicao){\n this.eleicaoDB.setEstadoEleicaoEncerrada(idEleicao);\n }",
"public void setFid(int value) {\n this.fid = value;\n }",
"public void setIdventa( Integer idventa ) {\n this.idventa = idventa ;\n }",
"public void setIden(int iden) {\n this.iden = iden;\n }",
"public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }",
"public void setIdcliente(java.lang.String idcliente) {\n this.idcliente = idcliente;\n }",
"public void set_point ( String id,String longitud,String latitud, String id_cliente){\n this.id = id;\n this.longitud=longitud;\n this.latitud=latitud;\n this.id_cliente = id_cliente;\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\n fecha= df.format(c.getTime()).toString();\n new define_ubicacion_cliente().execute();\n }",
"public void setIdProducto(int value) {\n this.idProducto = value;\n }",
"public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }",
"public void salvarDadosUsuario(String idUsuario){\n editor.putString(CHAVE_ID, idUsuario);\n editor.commit();\n }",
"public void setFilial(int filial);",
"public abstract void setEspe_id(java.lang.Integer newEspe_id);",
"public void setIdUsuario(Integer idUsuario) {\n\t\tthis.idUsuario = idUsuario;\n\t}",
"public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }",
"public void setIdade(int idade) {\n\t\tthis.idade = idade;\n\t}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"@Override\n public void definirId(Endereco objeto, int id) {\n objeto.setId(id);\n }",
"public void setIdDetalleComponenteCosto(int idDetalleComponenteCosto)\r\n/* 63: */ {\r\n/* 64: 87 */ this.idDetalleComponenteCosto = idDetalleComponenteCosto;\r\n/* 65: */ }",
"public void setIdUsuario(String idUsuario) {\n\t\tthis.idUsuario = idUsuario;\n\t}",
"public void setDato(int dato) {\r\n this.dato = dato;\r\n }",
"public int getIdfilial(){\r\n return idfilial;\r\n }",
"public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }",
"public void setIdproducto(int idproducto) {\r\n\t\tthis.idproducto = idproducto;\r\n\t}",
"public void setIdDeMonje(long newIdDeMonje) {\r\n this.idDeMonje = newIdDeMonje;\r\n }",
"public void setIdContrato(BigDecimal idContrato) {\r\n this.idContrato = idContrato;\r\n }",
"public void setIdCliente(int value) {\n this.idCliente = value;\n }",
"private void setupSpalteID() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteID.setCellValueFactory(new PropertyValueFactory<>(\"idExtern\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteID.setCellFactory(EditCell.<ArbeitspaketTableData>forTableColumn());\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteID.setOnEditCommit(event -> {\r\n\t\t\tfinal String value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setIdExtern(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}",
"public void setIdGrupoDocumento(int value) {\n this.idGrupoDocumento = value;\n }",
"public void setIdCargaEmpleado(int idCargaEmpleado)\r\n/* 108: */ {\r\n/* 109:195 */ this.idCargaEmpleado = idCargaEmpleado;\r\n/* 110: */ }",
"public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }",
"public abstract void setCod_actividad(java.lang.Long newCod_actividad);",
"public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }",
"public void setDatossolicitudBftipoDeConvenio(int value) {\n this.datossolicitudBftipoDeConvenio = value;\n }",
"void setCodiceFiscale(String codiceFiscale);",
"@Override\n\tpublic void setAtoresDoFilme(int idFilme, Iterator<IPessoa> atores) throws SQLException {\n\t\tIFilme filme = this.buscarFilmePorId(idFilme);\n\t\tif(filme!=null)\n\t\t\tfilme.setAtores(atores);\n\t}",
"public void setIdVozilo(long value) {\n this.idVozilo = value;\n }",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"public void setIdVenta(String idVenta) {\n this.idVenta = idVenta;\n }",
"public void setIdCandidatura(int idCandidatura){\n if (idCandidatura < 0 ) {\n throw new IdInvalidoException(\"Id da Candidatura é inválido!\");\n }\n this.idCandidatura = idCandidatura;\n }",
"public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }",
"@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }",
"public void setNumero(int numero) {\n this.dado1 = numero;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setReferencia(int value) {\n this.referencia = value;\n }",
"public void setIdPerfil(Integer idPerfil) {\n this.idPerfil = idPerfil;\n }",
"void definirValorFuncaoCliente(String id, String nome) {\n tfdIdCliente.setText(id);\n tfdCliente.setText(nome);\n }",
"public void fijarFecha(int d, int m, int a)\n {\n // put your code here\n dia.setValor(d);\n mes.setValor(m);\n año.setValor(a);\n }",
"public void setIdCargaTienda(long idCargaTienda);",
"public void setIdLugarNacimiento(long value) {\n this.idLugarNacimiento = value;\n }",
"public void setId_mensaje(int id_mensaje) {\n this.id_mensaje = id_mensaje;\n }",
"public void setIdRichiesta(int idRichiesta) {\n this.idRichiesta = idRichiesta;\n }",
"public void setEntidad(int entidad) {\n this.entidad = entidad;\n }",
"public void setId_tecnico(java.lang.Long newId_tecnico);",
"public void setValor(final int fila, int col, boolean valor) {\n\t\tthis.matriz.setValor(fila, col, valor);\n\t}",
"public final void setId_entreprise(final Long id_entreprise) {\n this.id_entreprise = id_entreprise;\n }",
"public Jour_Ferie getIdJourFerie() {\r\n\t\treturn idJourFerie;\r\n\t}",
"public void setIdMensagem(String idMensagem) \r\n\t{\r\n\t\tthis.idMensagem = idMensagem;\r\n\t}",
"@Override\r\n\tpublic String update(FicheColisageValue ficheColisageValue) {\n\t\tLong nombrePaquet = ZERO_L;\r\n\t\tLong quantiteEclate = ZERO_L;\r\n\t\t\r\n\t\tif(ficheColisageValue.getListColis() != null){\r\n\t\t\t\r\n\t\t\tif (ficheColisageValue.getColPalette() != null && ficheColisageValue.getColPalette() == true)\r\n\t\t\t{\r\n\t\t\t\tRechercheMulticritereBonSortieFiniValue request;\r\n\t\t\t for (ColisValue cv:ficheColisageValue.getListColis())\r\n\t\t\t {\r\n\t\t\t \tif (cv.getOrdrePalette() != null && cv.getOrdrePalette().equals(\"\")) cv.setOrdrePalette(null);\r\n\t\t\t \t\t\r\n\t\t\t \tif (cv.getRefPalette() != null)\r\n\t\t\t \t{\r\n\t\t\t \t\tif (!cv.getRefPalette().equals(\"\"))\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\trequest= new RechercheMulticritereBonSortieFiniValue();\r\n\t\t\t\t \t\trequest.setReferenceBon(cv.getRefPalette());\r\n\t\t\t\t \t\tResultatRechecheBonSortieFiniValue res = bonSortieFiniDomain.rechercherMultiCritere(request);\r\n\t\t\t\t \t\t\r\n\t\t\t\t \t\tif (res != null) \r\n\t\t\t\t \t\t{\r\n\t\t\t\t \t\t\tif (res.getNombreResultaRechercher() > 0)\r\n\t\t\t\t \t\t\t{\r\n\t\t\t\t \t\t\t\tcv.setBonSortie(res.getList().iterator().next().getId());\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\telse \r\n\t\t\t \t\t{\r\n\t\t\t \t\t\tcv.setBonSortie(null);\r\n\t\t\t \t\t\tcv.setOrdrePalette(null);\r\n\t\t\t \t\t\tcv.setFictif(null);\r\n\t\t\t \t\t}\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tnombrePaquet = Long.valueOf(ficheColisageValue.getListColis().size());\r\n\t\t\t\r\n\t\t\tfor(ColisValue element : ficheColisageValue.getListColis()){\r\n\t\t\t\t\r\n\t\t\t\tquantiteEclate = quantiteEclate + ((element.getQuantite() != null) ? element.getQuantite() : ZERO_L);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tficheColisageValue.setQuantiteColis(quantiteEclate);\r\n\t\t\tficheColisageValue.setNombreColis(nombrePaquet);\r\n\t\t\r\n\t\t\r\n\t\t\tif(ficheColisageValue.getOrdreFabricationNumero()!=null){\r\n\t\t\t\tOrdreFabricationValue ordreFabrication =ordreFabricationPersistence.getByNumero(ficheColisageValue.getOrdreFabricationNumero());\r\n\t\t\t \r\n\t\t\t\tif(ordreFabrication!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tficheColisageValue.setOrdreFabricationId(ordreFabrication.getId());\r\n\t\t\t\t\t////System.out.println(\"/***********ordreFabrication.getQtColisage() : \"+ordreFabrication.getQtColisage());\r\n\t\t\t\t\t////System.out.println(\"/*//////////////////////ficheColisageValue.getQuantiteColisBefore() : \"+ficheColisageValue.getQuantiteColisBefore());\r\n\t\t\t\t//\t//System.out.println(\"/*//////////////ficheColisageValue.getQuantiteColis() : \"+ficheColisageValue.getQuantiteColis());\r\n\t\t\t\t\t\r\n\t\t\t\tordreFabrication.setQtColisage(ordreFabrication.getQtColisage()-ficheColisageValue.getQuantiteColisBefore()+ficheColisageValue.getQuantiteColis());\r\n\t\t\t//\tordreFabrication.setSolder(ficheColisageValue.getSolder());\r\n\t\t\t\t ordreFabricationPersistence.modifierOrdreFabrication(ordreFabrication);\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t/*\tLong quantiteTotale = ZERO_L;\r\n\t\t\r\n\t\tif(ficheColisageValue.getListDetails()!=null){\r\n\t\t\t\r\n\t\t\tfor (DetailsColisageValue det:ficheColisageValue.getListDetails()){\r\n\t\t\t\tquantiteTotale+=det.getQuantite();\r\n\t\t\t}\r\n\t\t\tficheColisageValue.setQuantiteTotale(quantiteTotale);\r\n\t\t} */\r\n\t\t\r\n\t}\r\n\t\tPartieInteresseValue partieInteresseValue=partieInteressePersistance.recherchePartieInteresseeParId(ficheColisageValue.getClientId());\r\n\t\tficheColisageValue.setClientAbreviation(partieInteresseValue.getAbreviation());\r\n ficheColisageValue.setClientReference(partieInteresseValue.getReference());\t\r\n\t\t\r\n\t\treturn ficheColisagePersistance.update(ficheColisageValue);\r\n\t}",
"public void setFiIdHoso(Long fiIdHoso) {\n this.fiIdHoso = fiIdHoso;\n }",
"public void setFiIdHoso(Long fiIdHoso) {\n this.fiIdHoso = fiIdHoso;\n }",
"@Test\r\n public void testSetId_fournisseur() {\r\n System.out.println(\"setId_fournisseur\");\r\n int id_fournisseur = 0;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setId_fournisseur(id_fournisseur);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }",
"public void setBunga(int tipeBunga){\n }",
"public abstract void setCod_tecnico(java.lang.String newCod_tecnico);",
"public void setIdDePropiedad(long newIdDePropiedad) {\r\n this.idDePropiedad = newIdDePropiedad;\r\n }",
"public abstract void setCod_localidad(java.lang.String newCod_localidad);",
"public void setIdCurso(Integer idCurso) {\r\n this.idCurso = idCurso;\r\n }",
"public void setId_ciudad(String id_ciudad) {\n this.id_ciudad = id_ciudad;\n }",
"public void setIDFactura(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaConsulta2Type IDFactura) {\r\n this.IDFactura = IDFactura;\r\n }",
"public Famille(int id, String ssFam) {\r\n\t\tthis.id=id;\r\n\t\tthis.intitule = ssFam;\r\n\t\r\n\t}",
"public void setCuenta(Cuenta cuenta) {\r\n this.cuenta = cuenta;\r\n fireTableDataChanged();\r\n }",
"public void setId_seccion(@NotNull String id_seccion) {\n this.id_seccion = id_seccion;\n }",
"public void setDatossolicitudBfclasificacionConvenio(int value) {\n this.datossolicitudBfclasificacionConvenio = value;\n }",
"public void setId_trimestre(int id_trimestre) {this.id_trimestre = id_trimestre;}",
"public void colocarenlacelda(int fila, int columna, int valor){\n\t\tgetvectorjardin()[fila][columna].setcelda(valor);\r\n\t}",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }",
"public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }",
"public void setFid(int fid) {\r\n this.fid = fid;\r\n }",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"public void setId_movimiento(Integer id_movimiento) {\r\n this.id_movimiento = id_movimiento;\r\n }",
"public void setUsua_id(java.lang.Long newUsua_id);",
"public void setIdProveedor(Integer idProveedor) {\n this.idProveedor = idProveedor;\n }"
] | [
"0.69026303",
"0.6758256",
"0.6641567",
"0.64266795",
"0.64057493",
"0.63375604",
"0.63083553",
"0.6298434",
"0.6292544",
"0.62808806",
"0.6266617",
"0.62634915",
"0.6247752",
"0.6247143",
"0.6193981",
"0.61810315",
"0.61613655",
"0.61610496",
"0.61395746",
"0.613919",
"0.6136106",
"0.61253494",
"0.6103758",
"0.60945296",
"0.60403806",
"0.604035",
"0.60259634",
"0.6018335",
"0.60173845",
"0.6008901",
"0.60040027",
"0.60040027",
"0.6001182",
"0.59944665",
"0.59843653",
"0.59643626",
"0.59536546",
"0.59406734",
"0.5938154",
"0.59365857",
"0.5933343",
"0.592488",
"0.59245723",
"0.5922981",
"0.5914689",
"0.5911849",
"0.5911804",
"0.59005755",
"0.5881535",
"0.5881491",
"0.58569497",
"0.58415043",
"0.58348674",
"0.58318776",
"0.58233535",
"0.58105564",
"0.57959706",
"0.5779095",
"0.57690954",
"0.5749981",
"0.5748677",
"0.5744595",
"0.574447",
"0.57310987",
"0.5725562",
"0.57232475",
"0.5716765",
"0.5715189",
"0.571302",
"0.5703107",
"0.569536",
"0.5692145",
"0.5687166",
"0.56867266",
"0.5686231",
"0.5681086",
"0.5681086",
"0.5669098",
"0.56660265",
"0.5665358",
"0.5662683",
"0.5662568",
"0.56600183",
"0.5657548",
"0.56507504",
"0.56482244",
"0.5640645",
"0.5638614",
"0.56331015",
"0.56314754",
"0.5630249",
"0.5629414",
"0.5621402",
"0.5617255",
"0.5613236",
"0.5606977",
"0.5599668",
"0.55983865",
"0.5598197",
"0.55966204"
] | 0.6781767 | 1 |
Return the value associated with the column: lendeveille | public Integer getLendeveille() {
return lendeveille;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLendeveille(Integer lendeveille) {\r\n\t\tthis.lendeveille = lendeveille;\r\n\t}",
"public int getLongueur() {\n\t\treturn this.longueur;\n\t}",
"public int getLongitudDeCaracteres() {\n Integer a = new Integer(longitudDeCaracteres);\n if (a == null) {\n try {\n throw new ExcepcionPersonalizada(\n \"No definiste logitud de caracteres.\",\n this,\n \"getLongitudDeCaracteres\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n return longitudDeCaracteres;\n }",
"public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}",
"public int getLongueur() {\r\n return longueur;\r\n }",
"public int getLongueur() {\n return longueur;\n }",
"private int getCodigoVistoBueno(int columna){\n int intCodVisBue=0;\n int w=0;\n int intCol=columna;\n int intVecCol=0;\n try{\n do{\n intVecCol=Integer.parseInt(strVecDat[w][2]);\n if(intCol==intVecCol){\n intCodVisBue=Integer.parseInt(strVecDat[w][0]);\n break;\n }\n else{\n w++;\n }\n }while(strVecDat[w][2]!=null);\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n \n }\n return intCodVisBue;\n }",
"public int obtenerValor(int fila, int columna){\n return tablero[fila][columna];\n }",
"public int dameColumna() {\n return this.columna;\n }",
"public int obtenerColumna() {\n\t\treturn columna;\n\t}",
"public int getLargeur() {\n\t\treturn DIM_CASE;\n\t}",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public java.lang.Long getPeti_numero();",
"public java.lang.Long getPeti_numero();",
"public int getLargeur() {\r\n return largeur;\r\n }",
"String getValue(String column, int row);",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public Integer getLength(Menu row){\r\n \treturn row.getIdmenu().length();\r\n }",
"public static float larguraDaCena() {\n\t\treturn tamanho().width;\n\t}",
"public int getLargeur() {\n return largeur;\n }",
"public String getLargeVarCharObj(int columnIndex) {\n LargeVarCharVector vector = (LargeVarCharVector) table.getVector(columnIndex);\n return new String(vector.get(rowNumber), getDefaultCharacterSet());\n }",
"public String getVille() {\n\t\treturn ville;\n\t}",
"public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }",
"@Override\n\tpublic BigDecimal getLongitud() {\n\t\treturn model.getLongitud();\n\t}",
"public final NumberDataValue charLength(NumberDataValue result)\n\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tif (result == null)\n\t\t{\n\t\t\tresult = new SQLInteger();\n\t\t}\n\n\t\tif (this.isNull())\n\t\t{\n\t\t\tresult.setToNull();\n\t\t\treturn result;\n\t\t}\n\n\n\t\tresult.setValue(getValue().length);\n\t\treturn result;\n\t}",
"public int getLargeur() {\r\n\t\treturn largeur;\r\n\t}",
"public long getValue();",
"public int getCelular() {\n return celular;\n }",
"Integer getDataLgth();",
"public long getLongColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return -1;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof Long))\n throw new IllegalArgumentException(\"Value is not an long\");\n \n return ((Long) value).longValue();\n }",
"public Ville getVille() {\n\t\treturn ville;\n\t}",
"public boolean getValor(int fila, int col) {\n\t\treturn matriz.getValor(fila, col);\n\t}",
"private String get_VARCHAR(int column) {\n if (ccsid_[column - 1] == 1200) {\n return getStringWithoutConvert(columnDataPosition_[column - 1] + 2,\n columnDataComputedLength_[column - 1] - 2);\n }\n\n // check for null encoding is needed because the net layer\n // will no longer throw an exception if the server didn't specify\n // a mixed or double byte ccsid (ccsid = 0). this check for null in the\n // cursor is only required for types which can have mixed or double\n // byte ccsids.\n if (charset_[column - 1] == null) {\n throw new IllegalStateException(\"SQLState.CHARACTER_CONVERTER_NOT_AVAILABLE\");\n }\n\n int dataLength = columnDataComputedLength_[column - 1] - 2;\n if (maxFieldSize_ != 0 && maxFieldSize_ < dataLength)\n dataLength = maxFieldSize_;\n return dataBuffer_.getCharSequence(columnDataPosition_[column - 1] + 2,\n dataLength, charset_[column - 1]).toString();\n// String tempString = new String(dataBuffer_,\n// columnDataPosition_[column - 1] + 2,\n// columnDataComputedLength_[column - 1] - 2,\n// charset_[column - 1]);\n// return (maxFieldSize_ == 0) ? tempString :\n// tempString.substring(0, Math.min(maxFieldSize_, tempString.length()));\n }",
"public String getLonguitud() {\r\n return longuitud;\r\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public int getLargeur() {\r\n\t\treturn this.largeur;\r\n\t}",
"java.lang.String getField1824();",
"int getColumn();",
"public String getAltitudeColumn()\n {\n return myAltitudeColumn;\n }",
"public Integer getMaxCharsPerColumn()\n {\n return maxCharsPerColumn;\n }",
"public int obtenirLigne() {\n return this.ligne;\n }",
"public String getLenguaje() {\n return lenguaje;\n }",
"public double getLageurDuMonde(){\n\t\treturn largeurDuMonde;\n\t}",
"public byte[] getLargeVarChar(int columnIndex) {\n LargeVarCharVector vector = (LargeVarCharVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"long getLongValue();",
"long getLongValue();",
"java.lang.String getField1750();",
"public int getLon();",
"public long getBigInt(int columnIndex) {\n BigIntVector vector = (BigIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"@AutoEscape\n\tpublic String getLongitud();",
"@Override\n\t\tpublic int getValueColumn() {\n\t\t\treturn valueColumn;\n\t\t}",
"int getNombreColonnesPlateau();",
"public int getMaxColumn();",
"java.lang.String getField1022();",
"public long upperLongValue() {\n\t\treturn getSection().upperLongValue();\n\t}",
"private int separarCoordenadasCol(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[1]);\n\t}",
"public String getLargeVarCharObj(String columnName) {\n LargeVarCharVector vector = (LargeVarCharVector) table.getVector(columnName);\n return new String(vector.get(rowNumber), getDefaultCharacterSet());\n }",
"private int getColumn(double lng) {\r\n\t\tif (lng <= mbr.minLng()) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (lng >= mbr.maxLng()) {\r\n\t\t\treturn nCol - 1;\r\n\t\t}\r\n\t\treturn (int) ((lng - mbr.minLng()) / cellSize);\r\n\t}",
"java.lang.String getField1072();",
"public int getNumeroColis() {\r\n\t\treturn numeroColis;\r\n\t}",
"private int getColumn() {\n return binaryPartition(column);\n }",
"public int getColumna(){\n\t\treturn columna;\n\t}",
"java.lang.String getField1440();",
"public String getCol9value() {\n return col9value;\n }",
"int atColumn();",
"public int getTailleGrille() {\n\t\treturn this.tailleGrille;\r\n\t}",
"public int getLargeur() {\n return getWidth();\n }",
"public java.math.BigDecimal getLen_cable() throws java.rmi.RemoteException;",
"public static ValorCelda getValorFromEdicion( String texto, TablaDatos tabla ) {\n\t\tNumero ret = new Numero( 0.0 );\n\t\tboolean ok = ret.actualizaTexto( texto );\n\t\tif (!ok) ret = null; \n\t\treturn ret;\n\t}",
"public int getMaxColumn() {\n return seatPlan[0].length;\n }",
"public int length(){\n\t\treturn this.tamanho;\n\t}",
"public int getHauteur() {\n\t\treturn DIM_CASE;\n\t}",
"String getColumn();",
"public int getValore() {\n return valore;\n }",
"java.lang.String getField1024();",
"java.lang.String getField1033();",
"long getNumericField();",
"int totalColumns(){\n return column;\n }",
"private int indiceColMax(String tabla[][]){\n int indice=1;\n float aux=Float.parseFloat(tabla[0][1]);\n for (int j = 1; j <= nVariables; j++) {\n if(Float.parseFloat(tabla[0][j])<0 && Float.parseFloat(tabla[0][j])<aux){\n aux=Float.parseFloat(tabla[0][j]);\n indice=j;\n }\n }\n return indice;\n }",
"public java.lang.Long getColumnLong() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"int getCol();",
"public int getValue(int row, int column);",
"public String obtenerValorCampo(String nombreCampo) {\n return columnas.get(nombreCampo);\n }",
"public int getNrLoja() {\n return nrLoja;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }"
] | [
"0.64331263",
"0.60000366",
"0.59681046",
"0.58722377",
"0.58683896",
"0.5849957",
"0.5715813",
"0.570104",
"0.5679761",
"0.5640499",
"0.5638936",
"0.55354565",
"0.55206335",
"0.55206335",
"0.5517151",
"0.54997444",
"0.5498469",
"0.5475634",
"0.54640895",
"0.5455819",
"0.5446902",
"0.5414331",
"0.53857595",
"0.53755766",
"0.53664684",
"0.53659356",
"0.5349594",
"0.5347621",
"0.5339964",
"0.53185135",
"0.5307303",
"0.53020954",
"0.53012687",
"0.5298636",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5295279",
"0.5294937",
"0.5293341",
"0.52896357",
"0.5283199",
"0.5279677",
"0.52779526",
"0.52775794",
"0.52716696",
"0.5270806",
"0.5270646",
"0.5270646",
"0.5264346",
"0.5262809",
"0.5255916",
"0.5248957",
"0.5242568",
"0.52394855",
"0.5232555",
"0.5224817",
"0.5222782",
"0.5218289",
"0.521196",
"0.52029777",
"0.5180918",
"0.5160676",
"0.5159502",
"0.51517546",
"0.5144841",
"0.5142931",
"0.51367325",
"0.5130405",
"0.51034683",
"0.5101073",
"0.5094351",
"0.5093908",
"0.5093541",
"0.50862616",
"0.50834906",
"0.5083133",
"0.5082629",
"0.508045",
"0.50755984",
"0.50747246",
"0.5071765",
"0.5065037",
"0.50609195",
"0.5059664",
"0.5054358",
"0.5053024",
"0.50505286",
"0.50505286",
"0.50505286",
"0.50505286"
] | 0.6639435 | 0 |
Set the value related to the column: lendeveille | public void setLendeveille(Integer lendeveille) {
this.lendeveille = lendeveille;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWidth(int nuova_larghezza)\n {\n \tboolean bo = informaPreUpdate();\n larghezza = nuova_larghezza;\n\t\tinformaPostUpdate(bo);\n }",
"public Integer getLendeveille() {\r\n\t\treturn lendeveille;\r\n\t}",
"public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}",
"public void setLongueur(int longueur) {\r\n this.longueur = longueur;\r\n }",
"public void setPeti_numero(java.lang.Long newPeti_numero);",
"public void setPeti_numero(java.lang.Long newPeti_numero);",
"public void setLongitud(String longitud);",
"void setLength( long length );",
"public void setLength(long length);",
"public void setLength(long length);",
"public void setLength(long length) { \n this.length = length; \n }",
"public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }",
"public void setColumn(String column, long l)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Long(l));\n }",
"public void setColumnLong(java.lang.Long value) {\n this.columnLong = value;\n setDirty(2);\n }",
"public void setLen_cable(java.math.BigDecimal newLen_cable)\n\t\tthrows java.rmi.RemoteException;",
"public void setLength(double length){this.length=length;}",
"public void setLivello(String l){\n \n this.livello = l;\n \n }",
"public void setKredietLimiet(double kredietlimiet) {\n // method body omitted\n this.kredietlimiet = kredietlimiet;\n }",
"public void setlado(int lado) {\r\n this.lado = lado;\r\n }",
"public void setLargeur(int largeur) {\r\n this.largeur = largeur;\r\n }",
"void setLength(int length);",
"public void setTelefono(long value) {\r\n this.telefono = value;\r\n }",
"public void setLageurDuMonde( double valeur) {\n\t\tlargeurDuMonde = valeur;\n\t}",
"public int getLongueur() {\r\n return longueur;\r\n }",
"public void setLenguaje(String lenguaje) {\n this.lenguaje = lenguaje;\n }",
"public int getLongueur() {\n return longueur;\n }",
"public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }",
"public int getLongueur() {\n\t\treturn this.longueur;\n\t}",
"public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"void setAnzahlVerkauft(String anzahlVerkauft);",
"public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setColumnLong(java.lang.Long value) {\n validate(fields()[2], value);\n this.columnLong = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setEscolaridad(long value) {\n this.escolaridad = value;\n }",
"public void setLA(long value) {\n this.la = value;\n }",
"public void setL(double value) {\n this.l = value;\n }",
"public void setLength(Double newlength)\n {\n length = newlength;\n }",
"public void setLenghtPop (int value) {\r\n long_poblacion = value; }",
"public void setLon(double value) {\n lon = value;\n }",
"public void mueve(int fila,char columna){\r\n \r\n if(posicion_rey.fila>0&&posicion_rey.fila<9){\r\n this.posicion_rey.fila=fila;\r\n }\r\n else{\r\n System.out.println(\"Fila erronea. Cogeremos por defecto la fila 1.\");\r\n this.posicion_rey.fila=1;\r\n }\r\n \r\n if(posicion_rey.columna>0&&posicion_rey.columna<9){\r\n this.posicion_rey.columna=columna;\r\n }\r\n else{\r\n System.out.println(\"Fila erronea. Cogeremos por defecto la fila a.\");\r\n this.posicion_rey.columna='a';\r\n }\r\n \r\n }",
"public final NumberDataValue charLength(NumberDataValue result)\n\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tif (result == null)\n\t\t{\n\t\t\tresult = new SQLInteger();\n\t\t}\n\n\t\tif (this.isNull())\n\t\t{\n\t\t\tresult.setToNull();\n\t\t\treturn result;\n\t\t}\n\n\n\t\tresult.setValue(getValue().length);\n\t\treturn result;\n\t}",
"private void setTextAreaLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setTextAreaLenght\", \"Zero or negative lenght\");\n\n // set to default\n textAreaLenght = DEFAULT_TEXT_AREA_LENGHT;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the textAreaLenght\n textAreaLenght = len;\n\n }",
"public void setLong(long data, int row, int column) {\n\t\tcolumns[column].setLong(data, subset[row]);\n\t}",
"public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }",
"public static void largeurColoneMax(DefaultTableColumnModel dtcm, int numColumn, int largeur) {\n dtcm.getColumn(numColumn).setMinWidth(largeur);\n dtcm.getColumn(numColumn).setMaxWidth(largeur);\n dtcm.getColumn(numColumn).setPreferredWidth(largeur);\n }",
"void setLong(int index, long value) throws SQLException;",
"public void setValor(int Valor) {\n this.Valor = Valor;\n }",
"public void setHeight(int nuova_altezza)\n {\n \tboolean bo = informaPreUpdate();\n altezza = nuova_altezza;\n\t\tinformaPostUpdate(bo);\n }",
"public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public int getLargeur() {\r\n return largeur;\r\n }",
"public void setLien(String lien) {\n this.lien1 = lien;\n this.lien2 = lien;\n this.lien3 = lien;\n this.lien4 = lien;\n this.lien5 = lien;\n }",
"public void setLength(double newLength) {\n length = newLength;\n }",
"public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}",
"private void setBarLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setBarLenght\", \"Zero or negative bar lenght\");\n\n // set to default\n barLenght =DEFAULT_BAR_LENGH;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the barLenght\n barLenght = len;\n\n }",
"public void setLength(long length) {\r\n\t\tthis.length = length;\r\n\t}",
"public void setLength(double length)\r\n {\r\n this.length = length;\r\n }",
"public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }",
"public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }",
"public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }",
"public void setOrdem(long value) {\n this.ordem = value;\n }",
"synchronized void setLength(int length) {\n this.length = length;\n }",
"@JsProperty(name = \"length\")\n public native void setLength(@DoNotAutobox Number value);",
"protected final void setLC(int lc) {\n\tif (lc < 1 || lc > 65536) {\n\t throw new IllegalArgumentException(\"Length should be from '1' to '65535'.\");\n\t}\n\tthis.lc = lc;\n }",
"public void setVALCOMPRGSTRODRLEN(int value) {\n this.valcomprgstrodrlen = value;\n }",
"public void setData(long value) {\n this.data = value;\n }",
"public void setValeur(int x) {\r\n\t\tthis.val=x;\r\n\t}",
"public void setLength(double length) {\r\n this.length = length;\r\n }",
"public int getLargeur() {\n return largeur;\n }",
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"public void setCvpOperationLobsLength(long value)\n {\n if(__cvpOperationLobsLength != value)\n {\n _isDirty = true;\n }\n __cvpOperationLobsLength = value;\n }",
"public static void setPrepositionLength(long l){\n\t\tprepositionLength = l;\n\t}",
"public void setNodo(Long nodo);",
"public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }",
"@Override\n\tpublic void setLongitud(BigDecimal longitud) {\n\t\tmodel.setLongitud(longitud);\n\t}",
"public void setC_UOM_Length_ID(int C_UOM_Length_ID) {\n\t\tif (C_UOM_Length_ID <= 0)\n\t\t\tset_Value(\"C_UOM_Length_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_UOM_Length_ID\", new Integer(C_UOM_Length_ID));\n\t}",
"public void setFieldLength(int fieldLength)\n\t{\n\t\tthis.fieldLength = fieldLength;\n\t}",
"public void setLonguitud(String longuitud) {\r\n this.longuitud = longuitud;\r\n }",
"@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}",
"public ColumnMetadataBuilder length(int length) {\n this.length = length;\n return this;\n }",
"public void setPlateau(long plateau)\n {\n this.plateau = plateau;\n }",
"public void setLength(int length)\n {\n this.length = length;\n }",
"public void enfoncerDel() {\n\t\tthis.valC = this.valC/10;\n\t}",
"public void setSezione(char sezione) {\r\n char oldSezione = this.sezione;\r\n this.sezione = sezione;\r\n propertyChangeSupport.firePropertyChange (\"sezione\", new Character (oldSezione), new Character (sezione));\r\n }",
"public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }",
"public void setLength(double length) {\n this.length = length;\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"@Override\n\tpublic void setMaxResultLength(int l) {\n\t\tlen = l;\n\t}",
"@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public Builder setLength(int value) {\n \n length_ = value;\n onChanged();\n return this;\n }",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public void setLongitudDeDecimales(int longitudDeDecimales) {\n try{\n if(this.tipoDeDatos == null){\n throw new ExcepcionPersonalizada(\n \"No has definido el tipo de dato del campo.\",\n this,\n \"setLongitudDeDecimales\");\n }else if(this.tipoDeDatos.equals(\"varchar\")){\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como tipo varchar.\",\n this,\n \"setLongitudDeDecimales\");\n }else if(this.tipoDeDatos.equals(\"int\")){\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como tipo int.\",\n this,\n \"setLongitudDeDecimales\");\n }else if(this.tipoDeDatos.equals(\"date\")){\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como tipo date.\",\n this,\n \"setLongitudDeDecimales\");\n }else if(!this.tipoDeDatos.equals(\"float\") && !this.tipoDeDatos.equals(\"decimal\")){\n throw new ExcepcionPersonalizada(\n \"El campo es diferente de float y decimal .\",\n this,\n \"setLongitudDeDecimales\");\n \n }\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n this.longitudDeDecimales = longitudDeDecimales;\n }",
"@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }",
"public void setOcupacion(long value) {\n this.ocupacion = value;\n }",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}",
"public void setMolecula(Long molecula) {\n this.molecula = molecula;\n }",
"public void setIdVozilo(long value) {\n this.idVozilo = value;\n }",
"public void setDocumentNo (String DocumentNo)\n{\nif (DocumentNo == null) throw new IllegalArgumentException (\"DocumentNo is mandatory\");\nif (DocumentNo.length() > 30)\n{\nlog.warning(\"Length > 30 - truncated\");\nDocumentNo = DocumentNo.substring(0,30);\n}\nset_Value (\"DocumentNo\", DocumentNo);\n}",
"public void setMozzarella(double countNo) {\n mozzarella = countNo;\r\n }"
] | [
"0.6220216",
"0.6169125",
"0.6096114",
"0.6088754",
"0.59479177",
"0.59479177",
"0.58780444",
"0.58529687",
"0.57741517",
"0.57741517",
"0.57551134",
"0.5743812",
"0.5735296",
"0.5683776",
"0.56671673",
"0.5602658",
"0.55857664",
"0.5585696",
"0.5573432",
"0.5570832",
"0.55599487",
"0.5535999",
"0.55063766",
"0.5495555",
"0.5467148",
"0.5461519",
"0.54612464",
"0.54558444",
"0.5406786",
"0.5389668",
"0.5385683",
"0.5361587",
"0.5349526",
"0.5337559",
"0.5336905",
"0.5328122",
"0.53184664",
"0.531397",
"0.531274",
"0.53013116",
"0.5289671",
"0.52853954",
"0.5278543",
"0.5271221",
"0.52694905",
"0.5257156",
"0.525434",
"0.52535045",
"0.5239949",
"0.52387655",
"0.52376133",
"0.523462",
"0.5224865",
"0.5220584",
"0.52067226",
"0.52037454",
"0.5190204",
"0.51857114",
"0.51838684",
"0.51706344",
"0.5165172",
"0.5161297",
"0.516089",
"0.5160144",
"0.5159168",
"0.51545155",
"0.5153948",
"0.51533526",
"0.5146613",
"0.5123906",
"0.5121909",
"0.5121573",
"0.5120188",
"0.5119351",
"0.5115191",
"0.51124054",
"0.5105638",
"0.5105353",
"0.5102821",
"0.50997037",
"0.50994045",
"0.5098035",
"0.5095659",
"0.50945413",
"0.50908625",
"0.50908625",
"0.5089332",
"0.50808734",
"0.5080453",
"0.5080453",
"0.50798756",
"0.5074714",
"0.5074212",
"0.50669175",
"0.50665665",
"0.50659496",
"0.50636935",
"0.5058819",
"0.50556636",
"0.5052091"
] | 0.74103016 | 0 |
The elevator also contains a request object. This is the constructor for the class where it sets default values to its parameters. | public Elevator() {
currentFloor = 1;
elevatorState = IDLE;
request = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }",
"public Elevator() {\n\t\t\n \tsuper(\"Elevator\", RobotConstants.ELEVATOR_P, RobotConstants.ELEVATOR_I, RobotConstants.ELEVATOR_D);\n \t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public\tElevator(){\t\t\t\t\t\t\n\t\tcurrentFloor = 1;\n\t\tcurrentDirection = \"UP\";\n\t\ttotalPassengers = 0;\n\t\ttotalPassDestFloor = new int[8];\n\t\tdestRequest = new char[8];\n\t\t \n\t}",
"public Request(){\n\t\tthis(null, null, null);\n\t}",
"private Request() {\n initFields();\n }",
"public Elevator() {\n boolean elevatorInvert = false;\n boolean elevatorPhase = false;\n spx = new SpectrumVictorSPX(Constants.ELEVATOR_SPX);\n srx = new LeaderTalonSRX(Constants.ELEVATOR_SRX, spx);\n srx.setNeutralMode(NeutralMode.Brake);\n srx.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);\n srx.setSensorPhase(elevatorPhase);\n srx.setInverted(elevatorInvert);\n\n // Enable Soft Limits\n srx.configForwardSoftLimitEnable(false);\n srx.configForwardSoftLimitThreshold(posUpLimit);\n srx.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n \n srx.configReverseSoftLimitEnable(false);\n srx.configReverseSoftLimitThreshold(posDownLimit);\n srx.configReverseLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n\n srx.setStatusFramePeriod(StatusFrameEnhanced.Status_13_Base_PIDF0, 10);\n srx.setStatusFramePeriod(StatusFrameEnhanced.Status_10_MotionMagic, 10);\n\n // Set Ramp Rate and voltage compensation\n srx.configClosedloopRamp(0.25);\n srx.configVoltageCompSaturation(11.5);\n srx.enableVoltageCompensation(true);\n setMotionMagicParams();\n }",
"public Elevator() {\n\t\tthis.motor = new Motor(this);\n\t\tthis.door = new Door(false);\n\t\tthis.elevatorButtons = new HashMap<Integer, ElevatorButton>();\n\t\t\n\t\tgenerateElevatorButtons();\n\n\t\tstate = new ElevatorState(Floor.MINIMUM_FLOOR_NUM, Direction.STATIONARY, Floor.MINIMUM_FLOOR_NUM);\n\t}",
"protected ElevatorController(Elevator elevator) {\n\t\tthis.elevator = elevator;\n\t}",
"public Request() {\n }",
"public UBERequest() {\r\n }",
"private Request() {}",
"private Request() {}",
"public Request() {\n\n }",
"private Elevator(ElevatorSpecs s, int[] f, int[] z, LinkedList<ElevatorQueueObject> q, \n LinkedList<Passenger> c, int w, float cf, BigInteger twt, BigInteger ttt,\n BigDecimal ttd, BigInteger ps) {\n specs = s;\n floors = f;\n queue = q;\n currentPassengers = c;\n waitingTime = w;\n currentFloor = cf;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = twt;\n totalTravelTime = ttt;\n totalTravelDistance = ttd;\n passengersServed = ps;\n zonedFloors = z;\n }",
"public Person(ElevatorController elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = setArrivalTime();\n this.arrivalFloor = setArrivalFloor();\n\t\t this.destinationFloor = setDestinationFloor();\n this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorController = elevatorController;\n }",
"public Elevator(int elevatorID) {\n this.elevatorID = elevatorID;\n currentFloor = 0;\n }",
"protected void initialize() {\n \tRobot.m_elevator.setSetpoint(setpoint);\n \tRobot.m_elevator.setAbsoluteTolerance(tolerance);\n \tRobot.m_elevator.setPID(.3, 0, 0);\n \tRobot.m_elevator.enable();\n }",
"public Elevator request(int floor, Direction dir) {\r\n\t\treturn null;\r\n\t}",
"public AbstractRequestParser()\n {\n super();\n \n //set flag\n this.initialized=false;\n }",
"public RequestOptions() {}",
"public Elevator(ElevatorSpecs spec, int[] floors, float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n zonedFloors = floors; \n }",
"public Elevator(final int id) {\n this.id = id;\n }",
"public CalccustoRequest()\r\n\t{\r\n\t}",
"private RequestExecution() {}",
"public MessageRequest() {\n\t}",
"@Override\n public void initDefaultCommand() {\n setDefaultCommand(new OperationElevator());\n elevator.setOpenLoopRampRate(RobotMap.ELEVATOR_RAMP_RATE);\n }",
"public TboFlightSearchRequest() {\n}",
"public RPCRequest()\n\t{\n\t\tsuper();\n\t}",
"@Override\n\tpublic void initRequest() {\n\n\t}",
"public Eleve() {\r\n\t\tsuper();\r\n\t}",
"private WebRequest() {\n initFields();\n }",
"private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }",
"public DefaultHttpRequest() {\n }",
"@Override\n protected void initialize() {\n System.out.println(\"elevator down initialized\");\n }",
"public SystemCommandRequest()\r\n\t{\r\n\t}",
"public LinkedIntegrationRuntimeRequest() {\n }",
"public DefaultNashRequestImpl() {\n\t\t\n\t}",
"public ElevatorTask(Elevator elevator, int floorId, ElevatorRequestType type) {\n\t\tthis.elevator = elevator;\n\t\tthis.floorId = floorId;\n\t\tthis.type = type;\n\t}",
"public CalccustoRequest(UserContext userContext)\r\n\t{\r\n\t\tsuper(userContext);\r\n\t}",
"public void Elevator() {\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n \t\n }",
"@Override\n protected void initialize() {\n if(inc){\n Robot.m_elevator.incrementPos();\n }else{\n Robot.m_elevator.decrementPos();\n }\n }",
"public ChatRequest()\r\n\t{\r\n\t}",
"public QLearnAgent() {\n\t\tthis(name);\t\n\t}",
"public Request() {\n this.setRequestId(newRequestId());\n this.setRequestValue(0.0);\n this.date = new Date();\n }",
"public ElevatorControllerOperationsDefault() {\n\t\televatorControllerOperations = ElevatorControllerOperationsImplFactory.ElevatorControllerOperationsBuilder();}",
"public LpsClient() {\n super();\n }",
"public RequestMessage() {\r\n\t\tsuper();\r\n\t\tthis.criteria = new PersonSearchCriteria();\r\n\t\tthis.setSourceSystemID(SOURCE_SYSTEM_ID);\r\n\t\tthis.setSourceUserID(SOURCE_USER_ID);\r\n\t}",
"public PIDElevator() {\n \tsuper(\"PIDElevator\", Kp, Ki, Kd);\n \tenco = new Encoder(RobotMap.ENCODER_A_CHANNEL, RobotMap.ENCODER_B_CHANNEL, true);\n enco.reset();\n \n //outputOne = new DigitalOutput(RobotMap.ARDUINO_PIN_ONE);\n //outputTwo = new DigitalOutput(RobotMap.ARDUINO_PIN_TWO);\n //outputThree = new DigitalOutput(RobotMap.ARDUINO_PIN_THREE);\n\n \t\n \tsetAbsoluteTolerance(10);\n \tgetPIDController().setContinuous(false);\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n \televMotor = new CANTalon(RobotMap.ELEV_TALON);\n \t\n //button = new DigitalInput(0); \n \tbottom_hallEffect = new DigitalInput(RobotMap.HALL_EFFECT_PORT);\n \ttop_limitSwitch = new DigitalInput(RobotMap.TOP_LIMIT_SWITCH);\n \t\n \t//wire = new I2C(Port.kOnboard, 4);\n \t\n \tBrakeEngaged = new Solenoid(1, RobotMap.BRAKE_IN);\n \tBrakeDisengaged = new Solenoid(1, RobotMap.BRAKE_OUT);\n \tenable();\n }",
"public ElevatorUI() {\n initComponents();\n }",
"public PickUpCasualtyRequest() {\n\n // empty\n }",
"public Person(ElevatorControllerGUI elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = random.nextInt((30-1)+1)+1; \n this.arrivalFloor = random.nextInt((4-2)+1)+2; \n\t\t this.destinationFloor = random.nextInt((10-5)+1)+5; \n\t\t this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorControllerGUI = elevatorController;\n }",
"public AuthorizationRequest() { }",
"public Request(final FullHttpRequest request) {\n this.request = request;\n }",
"private UserInteraction() {\n\t\tthis.elevatorManager = ElevatorManager.getInstance();\n\t}",
"public InquiryLftrattribRequest()\r\n\t{\r\n\t}",
"public Http()\n {\n numberOfParameters = -1;\n }",
"protected void initialize() {\n \tisAtLimit = Robot.clawElevator.getLowerSwitch();\n \t\n \tif (isAtLimit) {\n \t\tcancel();\n \t} else {\n \t\tRobot.clawElevator.resetEncoder();\n \t}\n \t\n// \tif (Robot.clawElevator.getContainerHeight() == 0) {\n \t\tRobot.clawElevator.decrementContainerHeight();\n// \t}\n }",
"private PredictRequest() {\n\t}",
"private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}",
"public QBXMLRequest() {\n }",
"public RequestBuilder() {\n this.https = false;\n }",
"public ClearRequest() {\n // default constructor\n }",
"public ScaleImpl(int elevatorNumber) throws RemoteException {\n super();\n number = elevatorNumber;\n }",
"public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }",
"public RequestAttribute() {\n }",
"public JwtRequest()\n\t{\n\t\t\n\t}",
"public Elevator(ElevatorSpecs spec, int[] floors, int zonedFloors[], float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n this.zonedFloors = zonedFloors;\n }",
"public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}",
"public SubRequestFacade(Request request) {\n super(request);\n }",
"private void initializeElevatorMotor()\n {\n Rectangle base = new Rectangle(shaftWidth*.3, location, shaftWidth*.4, floorHeight*.8);\n Rectangle latch = new Rectangle(shaftWidth*.45, location-5, shaftWidth*.1, floorHeight*.2);\n\n elevator = Shape.union(base, latch);\n elevator.setFill(Color.valueOf(\"#C0C0C0\"));\n\n elevatorTranslate = 0;\n elevatorOffset = 0;\n elevatorSpeed = 20;\n\n motorTimeline = new Timeline(new KeyFrame(Duration.millis(elevatorSpeed), e -> {\n if(location+elevatorOffset <= shaftHeight-60 && location+elevatorOffset >= 10) {\n if(location <= destination && location >= destination-10)\n {\n// System.out.println(location + \" OF \" + (destination) + \" / \" + (destination-10) + \" \" + (10 - destination/floorHeight));\n// System.out.println(\"EARLY STOP\");\n motorTimeline.pause();\n }\n\n elevatorTranslate += elevatorOffset;\n location += elevatorOffset;\n\n elevator.setTranslateY(elevatorTranslate);\n frame.setTranslateY(elevatorTranslate);\n leftDoor.setTranslateY(elevatorTranslate);\n rightDoor.setTranslateY(elevatorTranslate);\n }\n else motorTimeline.pause();\n }));\n motorTimeline.setCycleCount(Animation.INDEFINITE);\n }",
"private RequestNodePath() {\n }",
"public JwtRequest() {\n\t}",
"protected void initialize() {\n\t\televator.zeroEncoder();\n\t}",
"private AutoCompleteGalRequest() {\n this((String) null);\n }",
"public TestBSSVRequest() {\r\n }",
"private RequestContext() {\n\t\tencoding = DEFAULT_ENCODING;\n\t\tstatusCode = DEFAULT_STATUS_CODE;\n\t\tstatusText = DEFAULT_STATUS_TEXT;\n\t\tmimeType = DEFAULT_MIME_TYPE;\n\t\tcontentLength = DEFAULT_CONTENT_LENGHT;\n\t\theaderGenerated = DEFAULT_HEADER_GENERATED;\n\t\tcharset = Charset.forName(encoding);\n\t}",
"protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }",
"public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}",
"public CalccustoRequest(UserContext userContext, Tenant tenant)\r\n\t{\r\n\t\tsuper(userContext, tenant);\r\n\t}",
"public RequestDatosUsuario(){\r\n\t\tsuper();\r\n\t}",
"public CLIRequest(CLIRequest parent, String[] argv, SSOToken ssoToken) {\n this.parent = parent;\n this.argv = argv;\n this.ssoToken = ssoToken;\n }",
"private EmployeeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public HttpRequest(HttpRequestBuilder builder){\r\n mUrl = builder.Url;\r\n mMethodType = builder.MethodType;\r\n mCallback = builder.Callback;\r\n mJsonRequestParams = builder.JsonRequestParams;\r\n }",
"public WMS100MapRequest() {\n\n }",
"@Test\n\tpublic void returnNullWhenNoneIdel() {\n\t\t\n\t\twhen(elevatorRepository.getElevators()).thenReturn(elevators);\n\t\tElevator elevator = elevatorAllocateService.requestElevator(task);\n\t\tassertNull(elevator);\n\t}",
"public CLIRequest(CLIRequest parent, String[] argv) {\n this.parent = parent;\n this.argv = argv;\n }",
"public RequestUpdateCancha() {\n }",
"private Supervisor() {\r\n\t}",
"@Override\n\tpublic String init_request() {\n\t\treturn null;\n\t}",
"public AdminRebalanceRequest() {\n options = new LinkedHashMap<>();\n }",
"@Test\n public void constructor() {\n\n {\n NodeFullUpdateRequest tested = new NodeFullUpdateRequest();\n Assert.assertNull(tested.getRequest());\n }\n\n {\n FullUpdateRequest request = new FullUpdateRequest();\n NodeFullUpdateRequest tested = new NodeFullUpdateRequest(\"myNode\", request);\n Assert.assertEquals(request, tested.getRequest());\n }\n\n }",
"protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}",
"public LogPoster() {\n\t\t\n\t}",
"HaloMiddlewareRequest(@NonNull HaloRequest request, @NonNull Builder builder) {\n mRequest = request;\n mBuilder = builder;\n }",
"void setRequest(Request req);",
"public ProvisioningEngineerController() {\n super();\n }",
"public ButtonRequests() {\r\n this(null);\r\n }",
"private Road()\n\t{\n\t\t\n\t}",
"public AzureWorkloadSqlRestoreRequest() {\n }",
"public Launcher() {\n //instantiate motors and djustment value using robot map constants\n m_masterMotor = new TalonSRX(RobotMap.MASTER_LAUNCHER_ID);\n m_closeSlaveMotor = new VictorSPX(RobotMap.CLOSE_LAUNCHER_SLAVE_ID);\n m_farSlaveMotor1 = new VictorSPX(RobotMap.FAR_LAUNCHER_SLAVE1_ID);\n m_farSlaveMotor2 = new VictorSPX(RobotMap.FAR_LAUNCHER_SLAVE2_ID);\n\n //Sets the far motors to be inverted so that they don't work against the close ones\n m_farSlaveMotor1.setInverted(RobotMap.LAUNCHER_FAR_SLAVE1_INVERTED);\n m_farSlaveMotor2.setInverted(RobotMap.LAUNCHER_FAR_SLAVE2_INVERTED);\n\n //Instantiates the encoder as the encoder plugged into the master\n m_encoder = new SensorCollection(m_masterMotor);\n\n //run the config methods to set up velocity control\n configVelocityControl();\n }"
] | [
"0.7349366",
"0.7340519",
"0.69283015",
"0.68121254",
"0.67395836",
"0.6710603",
"0.6683558",
"0.6665341",
"0.65841395",
"0.6488701",
"0.64796275",
"0.64796275",
"0.6384623",
"0.6379302",
"0.6327191",
"0.63066566",
"0.628861",
"0.6166152",
"0.6132193",
"0.6118529",
"0.6101719",
"0.60312235",
"0.6022946",
"0.5984618",
"0.5966227",
"0.59535575",
"0.59294474",
"0.5926389",
"0.5890177",
"0.58765376",
"0.5874887",
"0.5855422",
"0.58545727",
"0.5854148",
"0.58522546",
"0.5829143",
"0.5803782",
"0.5778375",
"0.57727665",
"0.5757347",
"0.57516485",
"0.5749026",
"0.5738215",
"0.57374525",
"0.5734749",
"0.57251865",
"0.57182497",
"0.5709648",
"0.57094014",
"0.5688186",
"0.5685696",
"0.5651281",
"0.56383467",
"0.56340146",
"0.5624136",
"0.5619114",
"0.56129855",
"0.5610393",
"0.5608753",
"0.5607943",
"0.56065536",
"0.5588035",
"0.5583159",
"0.55826396",
"0.5577746",
"0.55753237",
"0.5574279",
"0.5563871",
"0.55598223",
"0.55397993",
"0.553085",
"0.5520539",
"0.5512434",
"0.5503381",
"0.54873526",
"0.5476648",
"0.54639417",
"0.54521143",
"0.5450219",
"0.5437726",
"0.54328436",
"0.54230547",
"0.541327",
"0.5405317",
"0.54039913",
"0.5403105",
"0.5402161",
"0.53888863",
"0.5388588",
"0.5379652",
"0.53785014",
"0.53778636",
"0.5375772",
"0.5375059",
"0.53723276",
"0.5367481",
"0.5366646",
"0.5365322",
"0.53539443",
"0.5352361"
] | 0.775625 | 0 |
This is the accessor method to get the current floor the elevator is in. | public int getCurrentFloor() {
return currentFloor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentFloorForElevator(int elevator) {\t\t\n\t\treturn elevators.get(elevator).getCurrentFloor();\n\t}",
"public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }",
"public String getFloor() {\n return this.floor;\n }",
"public Floor floor() {\r\n\t\treturn this.floor;\r\n\t}",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}",
"public String getFloor() {\n\t\treturn floor;\n\t}",
"public int getCurrentFloor();",
"public int currentFloor(){\n return currentFloor;\n }",
"public int getFloor() {\n return floor;\n }",
"public int getCurrentFloorId() {\n\t\treturn currentFloorId;\n\t}",
"public int getFloor();",
"public int getGotoFloor();",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"@Nullable\n/* */ public Floor getFloor(int floorLevel) {\n/* 6423 */ if (this.floors != null)\n/* */ {\n/* 6425 */ for (Floor floor : this.floors) {\n/* */ \n/* 6427 */ if (floor.getFloorLevel() == floorLevel)\n/* 6428 */ return floor; \n/* */ } \n/* */ }\n/* 6431 */ return null;\n/* */ }",
"public Integer getDestinationFloor() {\n return switch (this.currentState){\n case UP -> this.jobs.isEmpty() ? this.currentFloor : this.jobs.last();\n case DOWN -> this.jobs.isEmpty() ? this.currentFloor : this.jobs.first();\n case IDLE -> null;\n };\n }",
"public int getMinFloor();",
"public Elevator request(int floor, Direction dir) {\r\n\t\treturn null;\r\n\t}",
"public int getDestinationFloor(){\n return destinationFloor;\n }",
"public String floorName() {\n return _name;\n }",
"public interface Elevator {\n public static final int UP = 1, LEVEL = 0, DOWN = -1, ERROR = -2;\n /** Returns the minimal floor number to which this Elevator can reach(often a negative value).\n * This is the same value as the lowest floor in the building - this elevator belongs to. */\n public int getMinFloor();\n /** Returns the maximal floor number to which this Elevator can reach.\n * This is the same value as the highest floor in the building - this elevator belongs to. */\n public int getMaxFloor();\n /** Returns the time (in seconds it takes the Elevator to open its doors. */\n public double getTimeForOpen();\n /** Returns the time (in seconds it takes the Elevator to close its doors */\n public double getTimeForClose();\n /** Returns the Elavator's current state: {UP, DOWN, LEVEL, ERROR} the state \"LEVEL\" mark that the elevator has reached the floor -\n * and is now ready to load / unload and get new orders. */\n public int getState(); // UP, DOWN, LEVEL, ERROR\n /** Returns the Elevator's current position (floor) as an Integer. */\n public int getPos();\n /** Moves the elevator form the current position to the destination floor. */\n public boolean goTo(int floor);\n /** Allows the elevator to stop in an intermidiate floor between src and dest, assumeing the elevator has not yer pass the desired floor in which it needs to stop. */\n public boolean stop(int floor);\n /** Returns the speed (in floor per second), e.g. if the Elevator speed is 0.4 - it takes it 2.5 seconds to pass a single floor. */\n public double getSpeed();\n /** Return the time in seconds that it takes the elevator to start moving in full speed (assumed to be a fixed value). */\n public double getStartTime();\n /** Return the time in seconds that it takes the elevator to stop moving in full speed (assumed to be a fixed value).*/\n public double getStopTime();\n /**\n * @return the id of this elevator (simple index as in the building).\n * Note: this index should be the same as in the elevator allocation algorithm.\n */\n public int getID();\n}",
"public java.lang.String getFloorLimit() {\r\n return floorLimit;\r\n }",
"public FloorController getFloor(int number) {\n \treturn floorControllerList.get(number);\n }",
"public Floor getFloor(String buildingName, int floorNum){\n // TODO: Replace return statement of getFloorByBuilding with actual get method from server\n try {\n return demoFloors.get(buildingName)[floorNum];\n } catch (Exception e){\n return null;\n }\n }",
"private IFloor getFloor(int floorId) {\n \tIFloor floor = null;\n \tfor(int i=0;i<floors.size();i++) {\n \t\tif(floors.get(i).getFloorID() == floorId) {\n \t\t\tfloor = floors.get(i);\n \t\t\tbreak;\n \t\t}\n \t}\n \treturn floor;\n }",
"public Elevator() {\n currentFloor = 1;\n elevatorState = IDLE;\n request = null;\n }",
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"public void setFloor(int floor) {\n this.floor = floor;\n }",
"public synchronized Elevator requestElevator(int currentWorkerFloor, boolean goingUp) {\n\t\twhile (true) {\n\t\t\tfor (int liftNum = 0; liftNum < NUM_OF_ELEVATORS; liftNum++) {\n\t\t\t\tif (lift[liftNum].getCurrentFloor() == currentWorkerFloor && lift[liftNum].isDirectionUp() == goingUp) {\n\t\t\t\t\treturn lift[liftNum];\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public int floorNumber() {\n return _number;\n }",
"public Point getElevatorPosition() {\n return this.elevator.getOrigin();\n }",
"public Elevator() {\n\t\tthis.motor = new Motor(this);\n\t\tthis.door = new Door(false);\n\t\tthis.elevatorButtons = new HashMap<Integer, ElevatorButton>();\n\t\t\n\t\tgenerateElevatorButtons();\n\n\t\tstate = new ElevatorState(Floor.MINIMUM_FLOOR_NUM, Direction.STATIONARY, Floor.MINIMUM_FLOOR_NUM);\n\t}",
"private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }",
"public int getElevatorState() {\n return elevatorState;\n }",
"public Queue getFloorQueue(Elevator lift)\n\t{\n\t\tQueue queue = null;\n\t\tif (this.isFloorValid(lift.getCurrentFloor()))\n\t\t{\n\t\t\t// prefer up queue\n\t\t\tqueue = this.upQueues[lift.getCurrentFloor()];\n\t\t\t\n\t\t\t// unless we're headed down or we're idling and the up queue is empty\n\t\t\tif (lift.getDirection() == Elevator.Direction.DOWN ||\n\t\t\t\t(lift.getDirection() == Elevator.Direction.IDLE &&\n\t\t\t\tqueue.size() == 0))\n\t\t\t{\n\t\t\t\tqueue = this.downQueues[lift.getCurrentFloor()];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.err.println(\"ElevatorBank.getFloorQueue got an elevator that found a new floor:\" + lift);\n\t\t}\n\t\t\n\t\treturn queue;\n\t}",
"@Override\n public void gotoFloor(int elevatorId, int floor) {\n if (elevatorId > elevators.size() - 1) {\n System.out.println(\"Incorrect request. Elevator = \" + elevatorId + \" is not a valid elevator\");\n }\n elevators.get(elevatorId).getRequests().offer(floor);\n }",
"public java.lang.String getFLOOR()\n {\n \n return __FLOOR;\n }",
"public Elevator(int elevatorID) {\n this.elevatorID = elevatorID;\n currentFloor = 0;\n }",
"@Override\r\n\tpublic int user_request(Floor current_floor, Elevator elevator) \r\n\t{\n\t\tif(current_floor.floor_door.state==0 && elevator.elevator_door.state==0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}",
"protected int moveUpFloor() {\n delayElevator();\n return currentFloor.incrementAndGet();\n }",
"public Integer selectElevator(int floorId) {\n Integer elevatorId = null;\n for(Elevator elevator : elevatorList) {\n for(Button button : elevator.buttonList) {\n if(!button.isPressed()) {\n button.setPressed(true);\n elevatorId = elevator.getId();\n }\n }\n }\n return elevatorId;\n }",
"@Override\n\tpublic int calledByFloorNumber() {\n\t\treturn this.lastStoppedFloor;\n\t}",
"@JSProperty(\"floor\")\n double getFloor();",
"public int getNextInstruction() {\n\t\t\n\t\tint nextFloor = -1;\n\t\tswitch (elevator.getCurrentDirection()) {\n\t\t\n\t\t//get first element of upQueue that is ABOVE the elevator's current floor\n\t\tcase UP:\n\t\t\tfor (int i = 0; i < upQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) >= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in upQueue is UNDER the elevator's current floor\n\t\t\tif (nextFloor < 0 && downQueue.size() > 0) {\n\t\t\t\tnextFloor = downQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t//get first element of downQueue that is UNDER the elevator's current floor\n\t\tcase DOWN:\n\t\t\tfor (int i = 0; i < downQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) <= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in downQueue is ABOVE the elevator's current floor\n\t\t\tif (nextFloor < 0 && upQueue.size() > 0) {\n\t\t\t\tnextFloor = upQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn nextFloor;\n\t}",
"Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }",
"public ElevatorType ofType() {\n return ElevatorType.SINGLE;\n }",
"public\tElevator(){\t\t\t\t\t\t\n\t\tcurrentFloor = 1;\n\t\tcurrentDirection = \"UP\";\n\t\ttotalPassengers = 0;\n\t\ttotalPassDestFloor = new int[8];\n\t\tdestRequest = new char[8];\n\t\t \n\t}",
"@CrossOrigin\n\t@GetMapping(\"/INSA/{building}/{room}/floor\")\n\tpublic List<String> getRoomFloor(@PathVariable String building, @PathVariable String room) {\n\t\tList<String> returned = new ArrayList<>();\t\n\t\t\n\t\tfor (Room aRoom : roomDB) {\n\t\t\tif (aRoom.getName().equals(room) && aRoom.getBuilding().equals(building)) {\n\t\t\t\tswitch (aRoom.getFloor()) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\treturned.add(\"rdc\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\treturned.add(\"1st\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\treturned.add(\"2nd\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\treturned.add(\"3rd\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturned.add(aRoom.getFloor() + \"th\"); \t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (returned.size() == 0) \n\t\t\treturned.add(\"404\");\n\t\treturn returned;\n\t}",
"public Floor nextFloorUp() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 1: next = Floor.SECOND;\n break;\n case 2: next = Floor.THIRD;\n break;\n case 3: next = Floor.FOURTH;\n break;\n case 4: next = Floor.FIFTH;\n break;\n case 5: next = Floor.SIXTH;\n break;\n case 6: next = Floor.SEVENTH;\n break;\n\n }\n return next;\n }",
"protected int moveDownFloor() {\n delayElevator();\n return currentFloor.decrementAndGet();\n }",
"public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }",
"public int getMaxFloor();",
"FloorType createFloorType();",
"public Elevator getElevator(int index)\n\t{\n\t\tElevator lift = null;\n\t\tif (index >= 0 && index < this.getElevatorCount())\n\t\t\tlift = this.elevators[index];\n\t\treturn lift;\n\t}",
"public boolean hasElevatorFloorUnlocked(int floor) {\n return ((floor/5) <= this.elevatorLevelsUnlocked);\n }",
"public void advanceFloor(){\n //TODO: write method to move onto next floor\n }",
"public void setCurrentFloor(int i);",
"public void update(IFloorModel floor, IElevatorModel elevator) {\n\t\tif(floor == null || elevator == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() NullPointerException\");\n\t\t}\n\t\t\n\t\t//if there are no elevators, do nothing on update. Nothing should or can be updated\n\t\tif(listview_elevators.getItems().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//get current selected elevator\n\t\t//getSelectedIndex() returned -1 if no line is selected\n\t\tif(selectedElevator < 0) {\n\t\t\tthrow new IllegalStateException(\"MainGuiController.update() listview_elevators no line selected!\");\n\t\t}\n\t\t//check if the selected elevator is in manual or automatic mode -> set checkbox and button to right state.\n\t\tif(autoModeAlgo.checkIfInAutoMode(selectedElevator)) {\n\t\t\tcheckbox_manual_mode.setSelected(false);\n\t\t\tbutton_send_to_floor.setDisable(true);\n\t\t}\n\t\telse {\n\t\t\tcheckbox_manual_mode.setSelected(true);\n\t\t\tbutton_send_to_floor.setDisable(false);\n\t\t}\n\t\t\n\t\t//update gui with new values from the given elevator\n\t\t//elevator data\n\t\tPlatform.runLater(() -> {\n\t\t\tInteger targetReranged = elevator.getTarget() + 1;\n\t\t\tlabel_target_text.setText(targetReranged.toString());\n\t\t\tInteger positionReranged = elevator.getPosition() + 1;\n\t\t\tlabel_position_text.setText(positionReranged.toString());\n\t\t\t\n\t\t\tString direction = elevator.getDirection().toString();\n\t\t\tdirection = direction.substring(direction.lastIndexOf('_') + 1);\n\t\t\tdirection = direction.substring(0,1).toUpperCase() + direction.substring(1).toLowerCase();\n\t\t\tlabel_direction_text.setText(direction);\n\t\t\t\n\t\t\tlabel_payload_text.setText(elevator.getPayload().toString());\n\t\t\tInteger speedAbs = Math.abs(elevator.getSpeed());\n\t\t\tlabel_speed_text.setText(speedAbs.toString());\n\t\t\t\n\t\t\tString doorsState = elevator.getDoors().toString();\n\t\t\tdoorsState = doorsState.substring(doorsState.lastIndexOf('_') + 1); \t//get the last part of the enum, this contains the state.\n\t\t\tdoorsState = doorsState.substring(0,1).toUpperCase() + doorsState.substring(1).toLowerCase();\t//all to lower, except the first character\n\t\t\tlabel_doors_text.setText(doorsState);\n\t\t});\n\t\t\n\t\tString floorListViewPrefix = \"Floor \";\n\t\t//stops\n\t\tList<Integer> stops = elevator.getStopsList();\n\t\tif (stops == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() stops\");\n\t\t}\n\t\tObservableList<String> stopsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : stops) {\n\t\t\tstopsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_stops.getItems().setAll(stopsOl));\n\t\t\n\t\t//not serviced floors\n\t\tList<Integer> ignoredFloors = elevator.getIgnoredFloorsList();\n\t\tif (ignoredFloors == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.register() ignoredFloors\");\n\t\t}\n\t\tObservableList<String> ignoredFloorsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : ignoredFloors) {\n\t\t\tignoredFloorsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_no_service.getItems().setAll(ignoredFloorsOl));\n\t\t\n\t\t//calls\n\t\tList<Integer> callsUp = floor.getUpButtonsList();\n\t\tif (callsUp == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsUp\");\n\t\t}\n\t\tObservableList<String> callsUpOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsUp) {\n\t\t\tcallsUpOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_up.getItems().setAll(callsUpOl));\n\t\t\n\t\tList<Integer> callsDown = floor.getDownButtonsList();\n\t\tif (callsDown == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsDown\");\n\t\t}\n\t\tObservableList<String> callsDownOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsDown) {\n\t\t\tcallsDownOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_down.getItems().setAll(callsDownOl));\n\t}",
"public static Elevator getInstance() {\n if (mInstance == null) {\n mInstance = new Elevator();\n return mInstance;\n } else\n return mInstance;\n }",
"public Room getRoom() {\n return currentRoom;\n }",
"public FloorTile getGoalTile() {\r\n return goalTile;\r\n }",
"public Room getRoom()\n {\n return currentRoom;\n }",
"public int getRoom()\n\t{\t\n\t\treturn iCurrentRoom;\n\t\t\n\t}",
"public Room getDoorRoom()\n {\n return room;\n }",
"public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }",
"public static Elevator getInstance() {\r\n return instance;\r\n }",
"public void goToFloor(int floorId, ElevatorRequestType type) {\n\t\tisBusy = true;\n\t\tif(currentFloorId == floorId) {\n\t\t\tSystem.out.print(\"\\nElevator \" + id + \" is already at floor \" + floorId + \"\\n\");\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t}\n\t\t\tisBusy = false;\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tElevatorTask task = new ElevatorTask(this, floorId, type);\n\t\ttask.start();\n\t}",
"public Elevator(ElevatorSpecs spec, int[] floors, float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n zonedFloors = floors; \n }",
"double getElevationWithFlooring();",
"String getElevationWithFlooringAsString();",
"public static Node floorOrCeiling(Node node){\n\t\tNode floorNode = findFloorNode(node);\n\t\tNode ceilingNode = findCeilingNode(node);\n\t\t\n\t\tif (ceilingNode!=null){\n\t\t\tSystem.out.println(\"The ceiling node for the \" + node + \" is \");\n\t\t\tSystem.out.println(ceilingNode);\n\t\t\t\n\t\t\t/*\n\t\t\tSystem.out.println(\"\\nRight child of the floor node:\");\n\t\t\tSystem.out.println(floorNode.getRight());\n\t\t\tSystem.out.println(\"\\nLeft child of the floor node:\");\n\t\t\tSystem.out.println(floorNode.getLeft());\n\t\t\tSystem.out.println(\"\\nParent node of the floor node:\");\n\t\t\tSystem.out.println(node.getParent());\n\t\t\t*/\n\n\t\t\treturn ceilingNode;\n\t\t\n\t\t}else{\t\t\n\t\t\tSystem.out.println(\"The floor node for \" + node + \" is \");\n\t\t\tSystem.out.println(floorNode);\n\t\t\t\n\t\t\t/*\n\t\t\tSystem.out.println(\"\\nRight child of the ceiling node:\");\n\t\t\tSystem.out.println(ceilingNode.getRight());\n\t\t\tSystem.out.println(\"\\nLeft child of the ceiling node:\");\n\t\t\tSystem.out.println(ceilingNode.getLeft());\n\t\t\tSystem.out.println(\"\\nParent node of the ceiling node:\");\n\t\t\tSystem.out.println(ceilingNode.getParent());\n\t\t\t*/\n\t\t\t\n\t\t\treturn floorNode;\n\t\t}\n\n\t\t\n\t}",
"public Floor nextFloorDown() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 2: next = Floor.FIRST;\n break;\n case 3: next = Floor.SECOND;\n break;\n case 4: next = Floor.THIRD;\n break;\n case 5: next = Floor.FOURTH;\n break;\n case 6: next = Floor.FIFTH;\n break;\n case 7: next = Floor.SIXTH;\n break;\n\n }\n return next;\n\n }",
"public ElevatorDoorStatus getDoorStatus() {\n\t\treturn doorStatus;\n\t}",
"public Getter reqGetMeasuredFloorTemperature() {\n\t\t\treqGetProperty(EPC_MEASURED_FLOOR_TEMPERATURE);\n\t\t\treturn this;\n\t\t}",
"public ElevatorStatusObject getStatus() {\n //Fetch destination\n \tif (queue.isEmpty()) {\n \t\treturn new ElevatorStatusObject(currentFloor, 0, -1);\n \t}\n \t\n //Fetch next call\n ElevatorQueueObject q = queue.getFirst();\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Calculate direction\n int dir = 0;\n if (dest > currentFloor) {\n dir = 1;\n } else if (dest < currentFloor) {\n dir = -1;\n }\n \n return new ElevatorStatusObject(currentFloor, dir, dest);\n }",
"public synchronized int setDestinationFloor(){\n\t\tint randomFloor = random.nextInt((10-1)+1)+0;\n\t\twhile(this.arrivalFloor == randomFloor){\n\t\t\trandomFloor = random.nextInt((10-1)+1)+0;\n\t\t}\n\t\t\n\t\treturn randomFloor; \n\t}",
"public Elevator(int id, int maximumLoad, int currentFloorId) {\n\t\tthis.id = id;\n\t\tthis.currentFloorId = currentFloorId;\n\t\tthis.doorStatus = ElevatorDoorStatus.CLOSED;\n\t\tthis.currentDirection = ElevatorStatus.STATIONARY;\n\t}",
"public boolean isElevatorOpen(int elevator) {\r\n\r\n return isButtonPushedAtFloor(getCurrentFloorForElevator(elevator));\r\n }",
"protected String getFloorDescription(int floorNumber) {\n return \"Floor \" + (floorNumber + 1);\n }",
"public Floor() {\r\n\t\tRoom[][] rooms = new Room[Constants.WIDTH][Constants.LENGTH];\r\n\t\tfor (int i = 0; i < Constants.WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < Constants.LENGTH; j++) {\r\n\t\t\t\trooms[i][j] = GenerationUtilities.randomRoom(i, j);\r\n\t\t\t\trooms[i][j].setFloor(this);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.rooms = rooms;\r\n\t\tthis.length = rooms.length;\r\n\t\tthis.width = rooms[0].length;\r\n\t\tGenerationUtilities.placeRandomItems(this);\r\n\t\tenemies = new ArrayList<>();\r\n\t}",
"@Override\n\tpublic int edit(Floor floor) {\n\t\treturn floorDao.edit(floor);\n\t}",
"public Room getCurrentRoom() {\r\t\treturn currentRoom;\r\t}",
"public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}",
"public void setFloor(double input) {\r\n floor=input;\r\n }",
"public Room getCurrentRoom()\n {\n return currentRoom;\n }",
"public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }",
"public String toString()\n\t{\n\t\treturn \"Current Floor: \" + currentFloor +\" Total passangers on board: \" + totalPassengers + \" Direction: \" + currentDirection;\n\t}",
"public Elevator(int floorCnt) {\n\t\tthis.floorCnt = floorCnt;\n\t\tinitialize();\n\t}",
"public Room getBuildingRoom() {\n return buildingRoom;\n }",
"public Room currentRoom() {\n\t\treturn currentRoom;\n\t}",
"public final Item getOnePerTileItem(int floorLevel) {\n/* 4872 */ if (this.vitems == null)\n/* 4873 */ return null; \n/* 4874 */ return this.vitems.getOnePerTileItem(floorLevel);\n/* */ }",
"public final int getDropFloorLevel(int maxFloorLevel) {\n/* 3138 */ int toRet = 0;\n/* 3139 */ if (this.floors != null)\n/* */ {\n/* 3141 */ for (Floor f : this.floors) {\n/* */ \n/* 3143 */ if (f.isSolid()) {\n/* */ \n/* 3145 */ if (f.getFloorLevel() == maxFloorLevel)\n/* */ {\n/* 3147 */ return maxFloorLevel;\n/* */ }\n/* 3149 */ if (f.getFloorLevel() < maxFloorLevel && f.getFloorLevel() > toRet)\n/* */ {\n/* 3151 */ toRet = f.getFloorLevel();\n/* */ }\n/* */ } \n/* */ } \n/* */ }\n/* 3156 */ return toRet;\n/* */ }",
"public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }",
"public Room getRoomIn() {\n\t\treturn roomIn;\n\t}",
"public Room getCurrentRoom ( )\r\n\t{\r\n\t\tif ( currentRow < 0 || currentCol < 0 || \r\n\t\t\t\tcurrentRow >= size || currentCol >= size )\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn maze[currentRow][currentCol];\r\n\t}",
"public ElevatorController getElevator(int number) {\n \treturn elevatorControllerList.get(number);\n }",
"public ElevatorState getState() {\n\t\treturn state;\n\t}",
"public Room getCurrentRoom() {\n if(!currentRooms.isEmpty()) {\n return currentRooms.get(0);\n }\n return null;\n }",
"public static FloorFacade getInstance(){\n if(self == null){\n \tself = new FloorFacade();\n }\n return self;\n }",
"public Room getCurrentRoom() {\n return currentRoom;\n }"
] | [
"0.8364475",
"0.83246475",
"0.7822086",
"0.7725904",
"0.77154416",
"0.77089953",
"0.77010727",
"0.76918286",
"0.7643148",
"0.74395597",
"0.7313832",
"0.704662",
"0.70351803",
"0.6928416",
"0.69102055",
"0.6883677",
"0.682791",
"0.67329305",
"0.6707796",
"0.6613754",
"0.64971334",
"0.6450397",
"0.6438123",
"0.6417827",
"0.6376452",
"0.6376387",
"0.63557327",
"0.6338889",
"0.6281399",
"0.62739414",
"0.62233984",
"0.6197537",
"0.6159745",
"0.61247724",
"0.6099953",
"0.6069116",
"0.6053809",
"0.60159236",
"0.6005316",
"0.59915864",
"0.5964563",
"0.5961387",
"0.5951051",
"0.5935199",
"0.592623",
"0.5919996",
"0.5919752",
"0.59177953",
"0.5916658",
"0.5897816",
"0.58958864",
"0.5889248",
"0.58508605",
"0.58295596",
"0.58014053",
"0.5794238",
"0.5793975",
"0.57830733",
"0.57333606",
"0.5719773",
"0.57088166",
"0.5693528",
"0.56900537",
"0.5689856",
"0.56693506",
"0.56274134",
"0.56193674",
"0.56180555",
"0.5609449",
"0.55955386",
"0.55906475",
"0.5587389",
"0.5576071",
"0.5575897",
"0.5553048",
"0.55448854",
"0.55420977",
"0.55398786",
"0.5532056",
"0.553172",
"0.55292743",
"0.55276495",
"0.55268055",
"0.5517565",
"0.5516287",
"0.551457",
"0.54929036",
"0.5483838",
"0.54804903",
"0.5479361",
"0.5476987",
"0.5472459",
"0.54568136",
"0.5454509",
"0.54540825",
"0.5437889",
"0.5433556",
"0.5423888",
"0.54198015"
] | 0.78386426 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.